/* Token values mirror ../App/apps/web/src/app/tokens.css ("Market stall").
   Change them there first, then copy across; do not invent new ones here. */
:root {
  --bg: #f2efe6;
  --surface: #fffdf8;
  --surface-sunken: #e9e4d7;
  --ink: #22201c;
  --on-ink: #f7f4ec;
  --ink-muted: #5e584d;
  --line: #d8d1c1;
  --line-strong: #8f8778;
  --accent: #d63a24;
  --on-accent: #ffffff;
  --accent-hi: #b82e1b;
  --citrus: #ff9f1c;
  --on-citrus: #22201c;
  --lime: #b5e61d;
  --on-lime: #22201c;
  --postit: #ffe98a;
  --on-postit: #22201c;
  --tape: #ffffff99;
  --danger-hi: #9e1c4b;

  --shadow-paper: 2px 3px 0 #22201c1f, 0 1px 2px #22201c14;
  --shadow-lift: 3px 6px 0 #22201c24, 0 10px 24px -8px #22201c33;
  --shadow-sticker: inset 0 1px 0 #ffffffb3, 1px 2px 0 #22201c33;
  --shadow-emboss: inset 0 1px 0 #ffffff59, inset 0 -3px 0 #00000033, 0 3px 0 #9c2412;
  --shadow-emboss-pressed: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #00000033, 0 1px 0 #9c2412;
  --focus-ring: 0 0 0 2px #f2efe6, 0 0 0 4px #b82e1b;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  --radius-note: 2px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 18px;
  --radius-pill: 9999px;

  --text-display: clamp(2.375rem, 1.5rem + 4vw, 4.25rem);
  --text-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-dot: "Doto", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1915;
    --surface: #26221d;
    --surface-sunken: #15130f;
    --ink: #f4efe4;
    --on-ink: #1c1915;
    --ink-muted: #b3aa9a;
    --line: #3a342c;
    --line-strong: #7a7262;
    --accent: #f05a40;
    --on-accent: #1c1915;
    --accent-hi: #ff7a5c;
    --citrus: #ffaa3b;
    --on-citrus: #1c1915;
    --lime: #c2f03a;
    --on-lime: #1c1915;
    --postit: #e6cf6a;
    --on-postit: #1c1915;
    --tape: #f4efe440;
    --danger-hi: #f58aaa;
    --shadow-paper: 2px 3px 0 #00000066;
    --shadow-lift: 3px 6px 0 #00000080, 0 10px 24px -8px #000000aa;
    --shadow-sticker: inset 0 1px 0 #ffffff26, 1px 2px 0 #00000080;
    --shadow-emboss: inset 0 1px 0 #ffffff59, inset 0 -3px 0 #00000033, 0 3px 0 #a82a16;
    --shadow-emboss-pressed: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #00000033, 0 1px 0 #a82a16;
    --focus-ring: 0 0 0 2px #1c1915, 0 0 0 4px #ff7a5c;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; }
  html { scroll-behavior: auto !important; }
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--accent-hi); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: var(--radius-pill);
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 700 0.75rem/1rem var(--font-sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-muted); max-width: 38em; }
.fineprint { font-size: 0.875rem; color: var(--ink-muted); }
.fineprint--center { text-align: center; margin-top: 28px; }

/* ---- Materials ----------------------------------------------------------- */
.paper { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-paper); }

.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font: 600 0.8125rem/1rem var(--font-sans);
  box-shadow: var(--shadow-sticker);
  width: fit-content;
}
.sticker--lime { background: var(--lime); color: var(--on-lime); }
.sticker--citrus { background: var(--citrus); color: var(--on-citrus); }
.sticker--sm { padding: 4px 10px; font-size: 0.75rem; }

.tape {
  position: absolute; width: 88px; height: 24px;
  background: var(--tape);
  box-shadow: 0 1px 2px #22201c1a;
  backdrop-filter: blur(2px);
}
.tape--tl { top: -10px; left: 28px; rotate: -6deg; }
.tape--top { top: -11px; left: 50%; translate: -50% 0; rotate: 3deg; }

.pill {
  font: 600 0.75rem/1 var(--font-sans);
  padding: 6px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); color: var(--ink);
  white-space: nowrap;
}
.pill--lime { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.pill--warn { border-color: var(--danger-hi); color: var(--danger-hi); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: 600 0.9375rem/1.2 var(--font-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 12px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
/* The embossed tomato key: the one primary action per screen. */
.btn--accent {
  margin-bottom: 3px;
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-emboss);
}
.btn--accent:hover { filter: brightness(1.05); }
.btn--accent:active { transform: translateY(2px); box-shadow: var(--shadow-emboss-pressed); }
.btn--accent:focus-visible { box-shadow: var(--focus-ring), var(--shadow-emboss); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { opacity: 0.9; }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--surface-sunken); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-sm); }
.brand__logo { height: 36px; width: auto; }
.brand__logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand__logo--light { display: none; }
  .brand__logo--dark { display: block; }
}
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: 10px 12px; border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast) var(--ease);
}
.site-nav a:hover { background: var(--surface-sunken); }
.site-header__actions { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand__logo { height: 30px; }
  .site-header__actions .btn { padding-inline: 14px; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding-block: clamp(40px, 6vw, 88px);
}
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__copy .lede { color: var(--ink); opacity: 0.86; }
.hl {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--lime) 75%, transparent) 62% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 0.04em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { display: inline-flex; align-items: center; gap: 7px; font-size: 0.875rem; color: var(--ink-muted); }
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1px #22201c33; }

.hero__art { display: grid; justify-items: center; }
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- iPhone frame (shared) ----------------------------------------------- */
/* Proportions follow an iPhone 16 Pro: 71.5 x 149.6 mm body, 393 x 852 pt screen. */
.device { --phone-w: 290px; position: relative; width: var(--phone-w); }
.phone {
  --w: var(--phone-w);
  position: relative; z-index: 1; width: var(--w); aspect-ratio: 71.5 / 149.6;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: #0e0d0c;
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.007) #6a655c,
    inset 0 0 0 calc(var(--w) * 0.013) #2b2926,
    0 0 0 1px var(--line), var(--shadow-lift);
}
/* Action button and volume rocker on the left, side button on the right. */
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; }
.phone::before {
  left: -2px; top: 17%; height: 24%; border-radius: 2px 0 0 2px;
  background: linear-gradient(#4a4640 0 19%, transparent 19% 33%, #4a4640 33% 63%, transparent 63% 71%, #4a4640 71%);
}
.phone::after { right: -2px; top: 28%; height: 10%; border-radius: 0 2px 2px 0; background: #4a4640; }
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.142);
  background: var(--bg);
  display: flex; flex-direction: column;
}
.phone__screen::before {
  content: ""; position: absolute; z-index: 3; left: 50%; translate: -50% 0;
  top: calc(var(--w) * 0.03); width: calc(var(--w) * 0.3); height: calc(var(--w) * 0.088);
  border-radius: 99px; background: #000;
}
.phone__screen::after {
  content: ""; position: absolute; z-index: 3; left: 50%; translate: -50% 0;
  bottom: calc(var(--w) * 0.022); width: calc(var(--w) * 0.34); height: calc(var(--w) * 0.014);
  border-radius: 99px; background: var(--ink); opacity: 0.85;
}
.status {
  flex: none; display: flex; justify-content: space-between; align-items: center;
  height: calc(var(--w) * 0.148); padding: calc(var(--w) * 0.012) calc(var(--w) * 0.085) 0 calc(var(--w) * 0.1);
  font: 650 calc(var(--w) * 0.05)/1 system-ui, -apple-system, sans-serif; letter-spacing: -0.01em; color: var(--ink);
}
.status__icons { width: calc(var(--w) * 0.19); height: auto; fill: currentColor; }
.phone__body {
  flex: 1; min-height: 0; overflow: hidden;
  padding: calc(var(--w) * 0.02) calc(var(--w) * 0.045) calc(var(--w) * 0.08);
  display: grid; gap: 10px; align-content: start;
}
.phone__label { margin-top: 6px; font: 700 0.6875rem/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

.device__mascot {
  position: absolute; z-index: 3; width: 150px; bottom: 5%;
  filter: drop-shadow(3px 6px 0 #22201c1f); pointer-events: none;
}
.device__mascot--left { left: -96px; }
.device__mascot--right { right: -96px; }
/* Tucked behind the phone, so it peeks out further. */
.device__mascot--behind { z-index: 0; right: -130px; }
@media (max-width: 560px) {
  .device { --phone-w: 260px; }
  .device:has(.device__mascot) { margin-bottom: 36px; }
  .device__mascot { width: 112px; bottom: -36px; }
  .device__mascot--left { left: -46px; }
  .device__mascot--right { right: -46px; }
  .device__mascot--behind { right: -54px; }
  .day--extra { display: none; }
}

.app-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-inline: 2px; }
.app-bar__title { font: 800 1.1875rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.app-bar__meta { font-size: 0.75rem; color: var(--ink-muted); font-weight: 600; }

.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.day {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px;
  padding: 10px 11px; border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-paper);
}
.day__name { font: 700 0.6875rem/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.day__meal { font: 650 0.875rem/1.3 var(--font-display); }
.day__meal small { display: block; font: 500 0.6875rem/1.3 var(--font-sans); color: var(--danger-hi); margin-top: 2px; }
.day .pill { font-size: 0.6875rem; padding: 5px 8px; transition: background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.day--empty { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); }
.day--empty .day__meal { font: 600 0.8125rem/1.25 var(--font-sans); color: var(--ink-muted); }
.kid {
  display: inline-block; margin-left: 4px; padding: 2px 7px; rotate: 3deg;
  background: var(--citrus); color: var(--on-citrus);
  font: 700 0.625rem/1.4 var(--font-sans); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker); vertical-align: 2px;
}
.voters { display: flex; margin-top: 5px; }
.voter {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  margin-right: -5px; border: 2px solid var(--surface);
  font: 700 0.625rem/1 var(--font-sans); color: #22201c;
}
.voter--a { background: #ffc7b8; }
.voter--b { background: #cfe8a0; }
.voter--c { background: #ffd98f; }
.js-motion [data-voter]:not(.is-in) { scale: 0; }
[data-voter] { transition: scale 360ms cubic-bezier(0.34, 1.56, 0.64, 1); }

.postit {
  position: relative; background: var(--postit); color: var(--on-postit);
  border-radius: var(--radius-note); box-shadow: var(--shadow-paper);
  padding: 26px 20px 14px;
}
.postit__heading { font: 700 0.75rem/1rem var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.postit__list { list-style: none; margin: 0; padding: 0; }
.postit__list li { display: flex; gap: 10px; align-items: baseline; font: 500 1.5rem/2.1rem var(--font-hand); }
.postit__list b { font-weight: 700; min-width: 3em; }
.postit__list .is-done { text-decoration: line-through 2px var(--accent-hi); opacity: 0.7; }
.postit--hero { position: absolute; z-index: 2; width: 200px; left: -120px; bottom: 9%; rotate: -4deg; }
.postit--hero .postit__list li { font-size: 1.375rem; line-height: 1.9rem; }
@media (max-width: 560px) {
  .postit--hero { left: -36px; bottom: -64px; width: 150px; padding: 22px 14px 10px; rotate: -6deg; }
  .postit--hero .postit__list li { font-size: 1.1875rem; line-height: 1.6rem; }
  .device.device--hero { margin-bottom: 64px; }
}

/* ---- Import -------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.import { overflow: clip; }
.import__title { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.rotator {
  position: relative; display: inline-block; vertical-align: bottom;
  height: 1.3em; margin-left: 0.12em; padding-inline: 0.28em;
  border-radius: 0.28em; rotate: -2deg;
  background: var(--lime); color: var(--on-lime);
  box-shadow: var(--shadow-sticker);
  overflow: hidden; white-space: nowrap; text-align: left;
  transition: width 420ms var(--ease);
}
.rotator__word {
  display: block; line-height: 1.3em;
  transition: translate 420ms var(--ease), opacity 300ms var(--ease);
}
.rotator__word.is-leaving { position: absolute; top: 0; left: 0.28em; translate: 0 -110%; opacity: 0; }
.rotator__word.is-entering { translate: 0 110%; opacity: 0; }

.import__stage {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px;
  max-width: 1000px; margin-inline: auto;
}
.sources { list-style: none; margin: 0; padding: 0; display: contents; }
.src {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-paper);
  font: 650 0.9375rem/1 var(--font-display); white-space: nowrap;
  transition: scale 360ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.src__icon, .src__photo, .src__web { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.src__icon { padding: 7px; fill: #fff; }
.src--instagram .src__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.src--tiktok .src__icon { background: #000; }
.src--youtube .src__icon { background: #ff0000; }
.src__photo {
  border-radius: 6px; background: #fffdf8; border: 3px solid #fff;
  box-shadow: 0 1px 3px #22201c40;
  background-image: repeating-linear-gradient(180deg, #8f877855 0 2px, transparent 2px 6px);
  background-size: 70% 60%; background-position: center 60%; background-repeat: no-repeat;
  rotate: -6deg;
}
.src__web {
  display: grid; grid-auto-flow: column; align-content: start; justify-content: start; gap: 3px;
  padding: 8px 7px; border-radius: 8px; background: var(--surface-sunken); border: 1.5px solid var(--line-strong);
}
.src__web i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.src--instagram { top: 8%; left: 2%; rotate: -5deg; }
.src--tiktok { top: 40%; left: 8%; rotate: 3deg; }
.src--youtube { top: 72%; left: 0; rotate: -2deg; }
.src--photo { top: 6%; right: 6%; rotate: 4deg; }
.src--web { top: 30%; right: 0; rotate: -3deg; }
.import__stage[data-active] .src { opacity: 0.72; }
.import__stage[data-active] .src.is-active { opacity: 1; scale: 1.12; box-shadow: var(--shadow-lift); }

.import__stage > .device { grid-column: 2; }
.from {
  display: flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 12px 6px 6px; border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-paper);
  font: 600 0.8125rem/1 var(--font-sans);
}
.from__icon { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--ink); fill: var(--on-ink); }
.draft { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-paper); padding: 14px 12px; display: grid; gap: 5px; }
.draft__title { font: 800 1.0625rem/1.15 var(--font-display); letter-spacing: -0.01em; }
.draft__meta { font-size: 0.8125rem; color: var(--ink-muted); }
.draft__head { margin-top: 8px; font: 700 0.6875rem/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.draft__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 0.8125rem; }
.draft__list li { padding-left: 14px; position: relative; }
.draft__list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.draft__list .draft__more { color: var(--ink-muted); }
.draft__list .draft__more::before { display: none; }
.draft__step { font-size: 0.8125rem; line-height: 1.45; }
.draft__step b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 0.6875rem; }
.draft__actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.draft__actions .btn { min-height: 40px; pointer-events: none; }

.reading {
  position: absolute; z-index: 2; right: -190px; bottom: 14%; width: 240px;
  padding: 22px 18px 16px; rotate: 2deg; box-shadow: var(--shadow-lift);
}
.reading__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 600 0.9375rem/1.3 var(--font-sans); }
.reading__list li { position: relative; padding-left: 30px; transition: opacity 260ms var(--ease); }
.reading__list li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322201c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.reading__list.is-swapping li { opacity: 0; }


.import__foot { position: relative; display: grid; justify-items: center; gap: 12px; margin-top: 48px; text-align: center; }
.icon-btn {
  position: absolute; right: 0; top: 6px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  cursor: pointer; transition: background-color var(--dur-fast) var(--ease);
}
.icon-btn[hidden] { display: none; }
.icon-btn:hover { background: var(--surface-sunken); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn__play { display: none; }
.icon-btn[aria-pressed="true"] .icon-btn__pause { display: none; }
.icon-btn[aria-pressed="true"] .icon-btn__play { display: block; fill: currentColor; }

@media (max-width: 960px) {
  .import__stage { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
  .src { position: static; rotate: 0deg; font-size: 0.875rem; padding: 6px 12px 6px 6px; }
  .src:nth-child(odd) { rotate: -2deg; }
  .src:nth-child(even) { rotate: 2deg; }
  .src__icon, .src__photo, .src__web { width: 28px; height: 28px; }
  .src__icon { padding: 6px; }
  .src__web { padding: 6px 5px; }
  .src__web i { width: 4px; height: 4px; }
  .import__stage[data-active] .src.is-active { scale: 1.08; }
  .device.device--import { margin-bottom: 88px; }
  .reading { right: -40px; bottom: -88px; width: 220px; }
  .icon-btn { position: static; }
}
@media (max-width: 560px) {
  .rotator { display: block; width: fit-content; margin: 0.08em auto 0; }
  .reading { right: -24px; width: 200px; padding: 18px 14px 12px; }
  .reading__list { font-size: 0.875rem; }
}

/* ---- Facts strip --------------------------------------------------------- */
.facts { background: var(--ink); color: var(--on-ink); }
.facts__list {
  list-style: none; margin-block: 0; padding: 18px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 32px;
  font-size: 0.9375rem;
}
.facts__list li { position: relative; padding-left: 20px; }
.facts__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--lime);
}
.facts__list strong { font-weight: 700; }
@media (max-width: 760px) { .facts__list { grid-template-columns: 1fr; } }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: var(--space-section); }
.section--tight { padding-top: 0; }
.section--sunken { background: var(--surface-sunken); }
.section__head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head .lede { margin-inline: auto; }
.section__head--left { justify-items: start; text-align: left; margin-bottom: 28px; }
.section__head--left .lede { margin-inline: 0; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.split--reverse { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 32px; }
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322201c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks--sm { gap: 10px; font-size: 0.9375rem; }
.checks--sm li { padding-left: 30px; }
.checks--sm li::before { width: 20px; height: 20px; background-size: 12px; top: 0.15em; }

/* ---- Product bands ------------------------------------------------------- */
.band {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.band + .band { margin-top: clamp(64px, 8vw, 112px); }
.band--flip .band__copy { order: 2; }
.band__copy { display: grid; gap: 16px; justify-items: start; max-width: 520px; }
.band__copy > p:not(.sticker):not(.eyebrow):not(.lede) { color: var(--ink-muted); }
.band__title { font: 750 clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem)/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.band__copy .checks { margin-top: 4px; }
.band__art { position: relative; display: grid; justify-items: center; }
@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; }
  .band--flip .band__copy { order: 0; }
  .band__copy { max-width: none; }
}

.mock-btn {
  display: inline-grid; place-items: center; min-height: 36px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong);
  font: 650 0.8125rem/1 var(--font-sans); color: var(--ink);
}
.mock-btn--ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.chip {
  font: 600 0.6875rem/1 var(--font-sans); padding: 5px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--danger-hi); color: var(--danger-hi); white-space: nowrap;
}

/* Vote screen */
.vote { padding: 14px 13px; display: grid; gap: 4px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-paper); }
.vote__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.vote__by { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--ink-muted); white-space: nowrap; }
.vote__top .sticker { white-space: nowrap; }
.vote__by .voter { margin: 0; }
.vote__meal { font: 750 1.1875rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.vote__meta { font-size: 0.75rem; color: var(--ink-muted); }
.vote__tally { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.vote__people { display: flex; }
.vote__people .voter { width: 26px; height: 26px; font-size: 0.6875rem; margin-right: -6px; }
.voter--wait { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--ink-muted); }
.voter--d { background: #c9dcf5; }
.vote__count { font-size: 0.8125rem; justify-self: end; }
.vote__count b { font-weight: 700; }
.vote__note { grid-column: 1 / -1; font-size: 0.6875rem; color: var(--ink-muted); }
.meter { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 99px; background: var(--surface-sunken); }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--lime); box-shadow: inset 0 0 0 1px #22201c26; }
.meter__mark { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.vote__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

/* Grocery screen */
.list { padding: 4px 12px 10px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-paper); }
.aisle { padding-top: 10px; }
.aisle__name { display: flex; align-items: center; gap: 7px; font: 700 0.625rem/1 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.grip { width: 8px; height: 12px; background: radial-gradient(circle, var(--line-strong) 1.2px, transparent 1.6px) 0 0 / 4px 4px; }
.aisle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aisle li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 9px; font-size: 0.8125rem; padding: 3px 0; }
.aisle li b { font-weight: 600; font-size: 0.75rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.aisle li i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); }
.aisle li.is-done { color: var(--ink-muted); text-decoration: line-through 1.5px; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.aisle li.is-done i {
  border-color: transparent;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322201c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Household screen */
.people { padding: 2px 12px; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-paper); }
.people__list { list-style: none; margin: 0; padding: 0; }
.people__list li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.people__list li:last-child { border-bottom: 0; }
.people__list .voter { width: 30px; height: 30px; margin: 0; font-size: 0.75rem; }
.people__name { font: 650 0.875rem/1.2 var(--font-display); }
.people__name small { display: block; font: 500 0.6875rem/1.3 var(--font-sans); color: var(--ink-muted); }
.people__list .kid { margin: 0; vertical-align: 0; }
.alert {
  position: absolute; z-index: 2; right: -150px; bottom: 16%;
  width: 230px; padding: 14px 16px; display: grid; gap: 4px; rotate: 2.5deg;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
}
.alert__meal { font: 750 1rem/1.2 var(--font-display); }
.alert__why { font-size: 0.8125rem; font-weight: 600; color: var(--danger-hi); }
@media (max-width: 1080px) { .alert { right: -60px; } }
@media (max-width: 560px) {
  .device--people { margin-bottom: 56px; }
  .alert { right: -24px; bottom: -56px; width: 210px; }
}

/* Smaller things */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px; }
.extra { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 22px 22px 24px; }
.extra + .extra { border-left: 1.5px dashed var(--line); }
.extra h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.extra p { color: var(--ink-muted); }
.extra__art {
  display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 6px;
  min-height: 116px; padding: 14px; margin-bottom: 6px; border-radius: var(--radius-md); background: var(--surface-sunken);
}
.chip--food { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.extra__arrow { flex-basis: 100%; height: 0; }
.extra__result { padding: 8px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-paper); font: 650 0.875rem/1.2 var(--font-display); }
.extra__result small { display: block; font: 500 0.75rem/1.3 var(--font-sans); color: var(--ink-muted); margin-top: 2px; }
.kcal { font: 800 1.75rem/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kcal small { display: block; font: 600 0.75rem/1.4 var(--font-sans); letter-spacing: 0; color: var(--ink-muted); }
.extra__note { flex-basis: 100%; font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
.extra__note::before { content: ""; display: inline-block; width: 40px; height: 6px; margin-right: 8px; border-radius: 99px; vertical-align: 1px; background: linear-gradient(90deg, var(--lime) 89%, var(--line-strong) 89%); }
.extra__art--books { align-items: flex-end; gap: 4px; flex-wrap: nowrap; }
.book {
  display: grid; place-items: center; width: 34px; border-radius: 4px 4px 2px 2px;
  writing-mode: vertical-rl; rotate: 180deg; font: 700 0.6875rem/1 var(--font-sans); letter-spacing: 0.02em;
  box-shadow: inset -3px 0 0 #00000026, 1px 2px 0 #22201c33; color: #22201c;
}
.book--a { height: 92px; background: var(--accent); color: var(--on-accent); }
.book--b { height: 80px; background: var(--citrus); }
.book--c { height: 88px; background: var(--lime); rotate: 174deg; margin-left: 4px; }
@media (max-width: 900px) {
  .extras { grid-template-columns: 1fr; }
  .extra + .extra { border-left: 0; border-top: 1.5px dashed var(--line); }
}

/* ---- Cook mode art ------------------------------------------------------- */
.cook-art { display: grid; justify-items: center; }
.phone--cook .phone__body { gap: 14px; }
.cook__progress { display: block; height: 5px; border-radius: 99px; background: var(--surface-sunken); }
.cook__progress i { display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--accent); }
.cook__step { font: 700 1.3125rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.cook__step mark {
  background: none; color: inherit;
  text-decoration: underline 0.42em color-mix(in srgb, var(--postit) 80%, transparent);
  text-underline-offset: -0.26em; text-decoration-skip-ink: none;
}
.cook__ingredients { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.8125rem; }
.cook__ingredients li { padding: 7px 10px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-paper); }
.cook__nav { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 4px; }
/* The LCD well stays dark in both themes, so citrus and lime hold contrast. */
.timer {
  display: grid; gap: 4px; justify-items: start; width: fit-content;
  padding: 14px 20px; border-radius: var(--radius-md);
  background: #1a1713; color: var(--citrus);
  box-shadow: inset 0 2px 6px #000000aa, 0 1px 0 #ffffff14;
}
.timer__label { font: 700 0.75rem/1rem var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: #ffd9a6; }
.timer__digits {
  font: 800 3.25rem/1 var(--font-dot); letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px color-mix(in srgb, var(--citrus) 55%, transparent);
}
.timer--sm { grid-auto-flow: column; align-items: center; gap: 12px; padding: 8px 16px; border-radius: var(--radius-pill); }
.timer--sm .timer__digits { font-size: 1.75rem; }
.timer--done { color: var(--lime); }
.timer--done .timer__digits { text-shadow: 0 0 12px color-mix(in srgb, var(--lime) 55%, transparent); }
.phone .timer { padding: 12px 16px; }
.phone .timer__digits { font-size: 2.5rem; }
.phone .timer--sm { padding: 7px 14px; }
.phone .timer--sm .timer__digits { font-size: 1.5rem; }
@media (max-width: 900px) { .cook-art { order: 2; } }

/* ---- Pricing ------------------------------------------------------------- */
.interval {
  display: flex; gap: 4px; width: fit-content; margin: -16px auto 32px;
  padding: 4px; border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-paper);
}
.interval[hidden] { display: none; }
.interval__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); cursor: pointer;
  font: 600 0.9375rem/1 var(--font-sans);
  transition: background-color var(--dur-fast) var(--ease);
}
.interval__btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.interval__save {
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--lime); color: var(--on-lime); font-size: 0.75rem;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; padding: 28px 24px; display: grid; gap: 14px; }
.plan--feature { box-shadow: var(--shadow-lift); outline: 2px solid var(--ink); outline-offset: -2px; }
.plan__flag { position: absolute; top: -14px; right: 18px; rotate: 3deg; }
.plan__name { font-size: 1.375rem; }
.plan__for { color: var(--ink-muted); font-size: 0.9375rem; margin-top: -8px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-height: 3.5rem; }
.plan__amount { font: 800 2.75rem/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--ink-muted); font-weight: 500; }
.plan__note { flex-basis: 100%; font-size: 0.8125rem; color: var(--ink-muted); }
.plan__see { font-weight: 600; align-self: center; display: inline-flex; align-items: center; min-height: 44px; }
.plan__who { font-weight: 600; font-size: 0.9375rem; padding-block: 10px; border-block: 1px solid var(--line); }
.plan__lead { font-weight: 700; font-size: 0.9375rem; margin-top: 4px; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 28px; }
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-paper); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 20px;
  font: 650 1.0625rem/1.35 var(--font-display);
  border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8778' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: rotate var(--dur-base) var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 18px; color: var(--ink-muted); max-width: 62ch; }

/* ---- Final CTA ----------------------------------------------------------- */
.final { padding-bottom: var(--space-section); }
.final__inner {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lift);
}
.final__inner > div { display: grid; gap: 16px; justify-items: start; }
.final__mascot { width: 220px; filter: drop-shadow(3px 6px 0 #22201c1f); }
@media (max-width: 720px) {
  .final__inner { grid-template-columns: 1fr; gap: 20px; }
  .final__mascot { width: 150px; }
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer nav a {
  color: var(--ink); text-decoration: none; font-size: 0.9375rem;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--radius-pill);
}
.site-footer nav a:hover { background: var(--surface-sunken); }
.site-footer__copy { margin-left: auto; font-size: 0.875rem; color: var(--ink-muted); }
@media (max-width: 640px) { .site-footer__copy { margin-left: 0; flex-basis: 100%; } }
