/* One stylesheet for every page. Large type and big tap targets for people who are not
   comfortable with technology, kept quiet and precise so it reads as a real product. */
:root {
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #8a837c;
  --line: #e7e5e4;
  --paper: #ffffff;
  --wash: #faf8f5;
  --tile: #f5f2ee;
  --accent: #1e3a5f;
  --accent-ink: #ffffff;
  --brand: #1e3a5f;
  --good: #166534;
  --good-wash: #f0fdf4;
  --stop: #b91c1c;
  --stop-wash: #fef2f2;
  --wait: #92400e;
  --wait-wash: #fffbeb;
  --radius: 12px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgb(28 25 23 / 0.06), 0 8px 24px rgb(28 25 23 / 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.55 "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main, .bar-inner, .footer-inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

h1 { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.35em; font-weight: 600; }
h2 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; margin: 1.6em 0 0.5em; font-weight: 600; }
h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; font-weight: 600; }
p { margin: 0.4em 0 1em; }
a { color: inherit; }
.soft { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* Header */
.bar { border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.94); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 0.95rem; font-weight: 700; }

/* Buttons */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  transition: background 120ms, border-color 120ms;
}
button:hover, .button:hover { background: #172e4c; }
button.secondary, .button.secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
button.secondary:hover, .button.secondary:hover { background: var(--wash); }
button.wide, .button.wide { width: 100%; }
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #93c5fd; outline-offset: 2px;
}

/* Forms */
label { display: block; font-weight: 600; font-size: 0.95rem; margin: 1.1em 0 0.35em; }
input[type=text], input[type=tel], input[type=email], input[type=search], input[type=number],
input[type=password], input[type=datetime-local], textarea, select {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit;
  border: 1px solid #d4d4d4; border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(0 0 0 / 0.08); outline: none; }
textarea { min-height: 96px; }
.choice { display: flex; gap: 12px; align-items: center; font-weight: 400; font-size: 1rem; margin: 0.5em 0; }
.choice input { width: 22px; height: 22px; accent-color: var(--ink); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { margin: 0; position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 12px;
  border: 1px solid #cbd5e1; border-radius: var(--radius); font-weight: 500; cursor: pointer; text-align: center; }
.segmented input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--wash); }
.segmented input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 2px; }

.card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 14px 0; background: var(--paper); }
.wash { background: var(--wash); }

/* Home page: for older families, trust first. Real photos, a real name, two lines at most. */
.hero { text-align: center; padding: 56px 0 24px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); max-width: 11em; margin: 0 auto 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 auto 26px; }
.hero .row { justify-content: center; }
.hero .row > * { flex: 0 1 auto; }
.hero .button { min-height: 56px; padding: 0 28px; font-size: 1.1rem; }
.photos { display: flex; gap: 14px; justify-content: center; margin: 32px auto 0; padding: 8px 0 24px; overflow: hidden; }
.photos img { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--tile);
  box-shadow: var(--shadow); flex: 0 0 auto; }
.photos img:nth-child(odd) { transform: rotate(-3deg); }
.photos img:nth-child(even) { transform: rotate(3deg) translateY(10px); }
.trust { display: grid; gap: 0; list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.trust li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center;
  text-align: left; }
.trust .dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px; }

.shop-head { position: sticky; top: 64px; z-index: 5; background: var(--paper); padding: 12px 0 0;
  border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--paper); }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; scroll-margin-top: 170px;
  font-size: 1.4rem !important; }
.section-title span { font-size: 0.85rem; color: var(--ink-faint); font-weight: 500; letter-spacing: 0; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.product { display: flex; flex-direction: column; background: var(--paper); }
.product .photo { aspect-ratio: 1; background: var(--tile); border-radius: 14px; display: grid; place-items: center;
  overflow: hidden; }
.product img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product .placeholder { color: var(--ink-faint); font-size: 0.8rem; }
.product .body { padding: 10px 2px 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product .name { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.product .meta { font-size: 0.85rem; color: var(--ink-soft); }
.product .price { font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.product .push { margin-top: auto; padding-top: 10px; }
.product .push > button { min-height: 42px; width: 100%; }
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink);
  border-radius: var(--radius); min-height: 44px; }
.qty button { min-width: 44px; min-height: 42px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; }
.qty button:hover { background: var(--wash); }
.qty span { font-weight: 700; font-variant-numeric: tabular-nums; }

/* List and checkout */
.checkout { display: grid; gap: 28px; align-items: start; }
.summary { border-radius: 14px; padding: 20px 22px; background: var(--wash); }
.summary h2 { margin-top: 0; }
.list-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line); }
.list-line:last-child { border-bottom: 0; }
.total { display: flex; justify-content: space-between; font-weight: 600; padding-top: 12px; margin-top: 4px;
  border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }

.cart-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(1000px, calc(100% - 24px));
  background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
  padding: 10px 10px 10px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; z-index: 20;
}
.cart-bar .button { background: #fff; color: var(--ink); border-color: #fff; min-height: 44px; }

/* Status */
.banner { border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; font-weight: 500; border: 1px solid transparent; }
.banner.good { background: var(--good-wash); color: var(--good); border-color: #bbf7d0; }
.banner.stop { background: var(--stop-wash); color: var(--stop); border-color: #fecaca; }
.banner.wait { background: var(--wait-wash); color: var(--wait); border-color: #fde68a; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1em 2.6em; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0.1em; width: 1.8em; height: 1.8em;
  border-radius: 50%; background: var(--tile); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 0.85rem;
}

.progress { list-style: none; padding: 0; margin: 1em 0; }
.progress li { padding: 10px 0 18px 36px; position: relative; color: var(--ink-faint); }
.progress li::before { content: ""; position: absolute; left: 8px; top: 16px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); }
.progress li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: -12px; width: 2px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress li.done { color: var(--ink-soft); }
.progress li.done::before { background: var(--good); border-color: var(--good); }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.now::before { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 4px rgb(0 0 0 / 0.1); }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.hidden { display: none !important; }

footer { border-top: 1px solid var(--line); margin-top: 0; padding: 28px 0 110px; background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.875rem;
  color: var(--ink-soft); }

@media (min-width: 860px) {
  .hero { padding: 88px 0 24px; }
  .photos img { width: 190px; }
  .trust { grid-template-columns: repeat(2, auto); justify-content: center; column-gap: 48px; border-top: 0; }
  .trust li { border-bottom: 0; justify-content: center; }
  .checkout { grid-template-columns: 1fr 1.1fr; }
  .summary { position: sticky; top: 90px; }
}

@media (max-width: 480px) {
  body { font-size: 18px; }
  .photos img { width: 110px; border-radius: 14px; }
  h1 { font-size: 2rem; }
}

.photos:empty { display: none; }

/* A short note from Oren with his photo: in a small community, a real neighbor is the trust. */
.note { display: flex; gap: 16px; align-items: center; text-align: left; max-width: 720px; margin: 32px auto 0;
  padding: 18px 20px; background: var(--wash); border-radius: 16px; }
.note p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.avatar { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
