/* ==========================================================================
   1. TOKENS: Modernist, in the Yolkie brand-kit palette.
      Plum is structure, yolk is the one thing to look at, basil means done.
   ========================================================================== */
:root {
  /* Brand kit colours, used as-is */
  --plum: #6B4DE6;
  --yolk: #FFC83D;
  --basil: #2E9E6A;
  --ink: #1E1A2E;
  --paper: #F6F4FB;
  --night: #1E1740;
  --muted: #8A84A0;

  --bg: var(--paper);
  --surface: #FFFFFF;
  --surface-2: #ECE8F7;
  --line: #DAD4EA;
  --text: var(--ink);
  --text-dim: #5D5775;          /* the kit's muted, darkened so small text passes contrast */
  --accent: var(--plum);        /* accent for text, rules and focus */
  --accent-soft: #E6E0FB;
  --on-accent: #FFFFFF;
  --btn-bg: var(--plum);        /* buttons keep the brand plum in both themes */
  --yolk-soft: #FFF1C7;
  --done: var(--basil);
  --done-text: #1F7A50;
  --done-soft: #DCF1E6;
  --block-dark: var(--night);   /* dark colour block in light mode */
  --shadow: 0 1px 0 rgba(30, 26, 46, .04), 0 14px 32px -16px rgba(30, 23, 64, .28);

  --radius: 6px;
  --radius-l: 14px;
  --ease: cubic-bezier(.65, 0, .35, 1);        /* mechanical: a dial clicking into place */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);   /* reserved for Yolk */

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", monospace;

  --header-h: 72px;
  --gutter: 28px;
  --max: 1180px;

  color-scheme: light;
}

/* Dark tokens, twice: once for the system preference, once for the toggle. Keep them identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night);
    --surface: #271F52;
    --surface-2: #30276A;
    --line: #3F357C;
    --text: var(--paper);
    --text-dim: #BBB5D3;
    --accent: #A28EFF;
    --accent-soft: #352A7A;
    --yolk-soft: #3A2F5E;
    --done-text: #62D29E;
    --done-soft: #1B3D3C;
    --block-dark: #120E2A;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--night);
  --surface: #271F52;
  --surface-2: #30276A;
  --line: #3F357C;
  --text: var(--paper);
  --text-dim: #BBB5D3;
  --accent: #A28EFF;
  --accent-soft: #352A7A;
  --yolk-soft: #3A2F5E;
  --done-text: #62D29E;
  --done-soft: #1B3D3C;
  --block-dark: #120E2A;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ==========================================================================
   2. BASE: keep. Reset, scrolling, focus, icons, skip link.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  margin: 0; font-family: var(--font-display); line-height: 1.02;
  font-weight: 800; font-stretch: 84%; letter-spacing: -0.025em;
}
p, dl, dd, figure { margin: 0; }
a { color: inherit; }
img, video, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon {
  font-family: "Material Symbols Rounded";
  font-size: 20px; line-height: 1; font-weight: normal; font-style: normal;
  display: inline-block; width: 1em; overflow: hidden; white-space: nowrap;
  font-feature-settings: "liga"; user-select: none; flex: none;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--btn-bg); color: var(--on-accent);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   3. LAYOUT AND COMPONENTS
   ========================================================================== */

/* Header: a clean bar with one hairline */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none;
  font: 800 25px/1 var(--font-display); font-stretch: 84%; letter-spacing: -0.03em;
}
.brand__mark { display: block; width: 34px; height: 34px; }
.brand__mark img { display: block; width: 100%; height: 100%; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-dim); white-space: nowrap;
  transition: color .15s var(--ease);
}
/* Active and hover: a yolk dot under the label, the site's one recurring circle */
.site-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--yolk); transform: scale(0); transition: transform .2s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after, .site-nav a.is-active::after, .site-nav a[aria-current="page"]::after { transform: scale(1); }
.site-nav a.is-active, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a.site-nav__try {
  margin-left: 6px; border: 2px solid var(--text); border-radius: 999px; color: var(--text); font-weight: 700;
}
.site-nav a.site-nav__try::after { bottom: -9px; }
.theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--text-dim); }

/* Page layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section__head {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px;
  padding-top: 20px; margin-bottom: 48px; border-top: 3px solid var(--text);
}
.section__index {
  font: 800 15px/1.6 var(--font-display); letter-spacing: .02em; color: var(--text-dim);
}
.section__index::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px;
  border-radius: 50%; background: var(--yolk); vertical-align: -1px;
}
.section__head h2, .cta h2 { font-size: clamp(34px, 2rem + 2.6vw, 60px); max-width: 16ch; }
.section__sub { grid-column: 2; margin-top: 16px; font-size: 18px; color: var(--text-dim); max-width: 58ch; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.lede { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--text-dim); max-width: 34ch; }
.fine { font-size: 13px; color: var(--text-dim); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Buttons: pills, because the circle is the motif */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--btn-bg); color: var(--on-accent); }
.btn--primary:hover { background: #5A3CD6; }
.btn__dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--yolk); flex: none;
  transition: transform .25s var(--spring);
}
.btn:hover .btn__dot { transform: scale(1.5); }
.btn--secondary { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn--secondary:hover { background: var(--text); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--accent); padding: 0 14px; text-decoration: underline; text-underline-offset: 4px; }
.btn--ghost:hover { color: var(--text); }
.btn--yolk { background: var(--yolk); color: var(--ink); }
.btn--yolk:hover { background: #FFD666; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px; align-items: center; padding: 56px 0 72px;
}
.hero h1 { font-size: clamp(54px, 2rem + 6vw, 112px); line-height: .9; letter-spacing: -0.04em; }
.hero h1 > span { display: block; }
.h1-dot {
  display: inline-block; width: .2em; height: .2em; margin-left: .05em; border-radius: 50%;
  background: var(--yolk); color: transparent; overflow: hidden; vertical-align: baseline;
}
.hero__note { margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* Hero composition: couch, clock, sun and plate on a drafting grid */
.hero-art { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; }
.hero-art__grid {
  position: absolute; inset: 0; border: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 12.5%; opacity: .7;
}
.hero-art__sun {
  position: absolute; right: 6%; top: 6%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--yolk);
}
.hero-art__clock {
  position: absolute; left: 7%; top: 9%; width: 25%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--text);
}
.hero-art__clock::before, .hero-art__clock::after {
  content: ""; position: absolute; left: 50%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 2px;
  background: var(--text); transform-origin: 50% 100%;
}
.hero-art__clock::before { height: 26%; transform: rotate(234deg); }         /* hour hand near 8 */
.hero-art__clock::after { height: 38%; background: var(--plum); transform: rotate(288deg); } /* minute hand at 48 */
.hero-art__time {
  position: absolute; left: 7%; top: 37%; padding: 4px 10px; border-radius: 999px;
  background: var(--text); color: var(--bg); font: 700 14px/1.2 var(--font-body); letter-spacing: .02em;
}
.hero-art__couch { position: absolute; left: 5%; bottom: 10%; width: 62%; height: 25%; }
.hero-art__couch span { position: absolute; display: block; background: var(--plum); }
.couch-back { left: 9%; right: 9%; top: 0; height: 58%; border-radius: 18px 18px 0 0; filter: brightness(.82); }
.couch-seat { left: 6%; right: 6%; top: 46%; height: 34%; border-radius: 8px; }
.couch-arm { top: 26%; width: 17%; height: 58%; border-radius: 999px 999px 8px 8px; }
.couch-arm--l { left: 0; }
.couch-arm--r { right: 0; }
.couch-leg { bottom: 0; width: 5%; height: 20%; background: var(--text) !important; }
.couch-leg--l { left: 14%; }
.couch-leg--r { right: 14%; }
.hero-yolk {
  position: absolute; left: 15%; bottom: 23%; width: 37%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 50%;
}
.hero-yolk img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(30, 23, 64, .18)); }
.hero-art__plate {
  position: absolute; right: 7%; bottom: 13%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--text);
  box-shadow: inset 0 0 0 9px var(--surface), inset 0 0 0 11px var(--line);
}
.hero-art__plate::after {
  content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--basil);
}
.hero-art__path { position: absolute; left: 44%; bottom: 26%; width: 36%; height: 30%; overflow: visible; }
.hero-art__path path { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; }
.hero-art__label {
  position: absolute; right: 4%; bottom: 3%; font: 700 13px/1 var(--font-body); letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}

/* Yolk reacts: a short squash-and-stretch when the face changes */
.is-wobbling { animation: yolk-wobble .55s var(--spring); }
@keyframes yolk-wobble {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.08, .92); }
  60% { transform: scale(.96, 1.05); }
  100% { transform: scale(1, 1); }
}
.is-celebrating { animation: yolk-hop .7s var(--ease-out) 3; }
@keyframes yolk-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  20% { transform: translateY(0) scale(1.1, .9); }
  50% { transform: translateY(-18%) scale(.95, 1.06); }
  80% { transform: translateY(0) scale(1.06, .95); }
}

/* Problem: three panels, one big fact each */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--line); }
.problem-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  padding: 28px 28px 32px; border-right: 1px solid var(--line);
}
.problem-card__big {
  font: 800 clamp(52px, 2rem + 3vw, 84px)/.9 var(--font-display); font-stretch: 80%; letter-spacing: -0.04em;
}
.problem-card:nth-child(1) .problem-card__big { color: var(--accent); }
.problem-card:nth-child(3) .problem-card__big { font-style: italic; }
.problem-card h3 { font-size: 22px; }
.problem-card p { color: var(--text-dim); }
.problem-card__mascot { width: 92px; height: auto; margin-top: auto; align-self: flex-end; }
.problem-card__lemon {
  display: inline-block; width: .62em; height: .5em; margin-left: .08em; border-radius: 50%;
  background: var(--yolk); vertical-align: .05em; transform: rotate(-18deg);
}
.problem-close {
  margin-top: 40px; font: 800 clamp(26px, 1.2rem + 1.6vw, 38px)/1.1 var(--font-display); font-stretch: 84%; letter-spacing: -0.02em;
}
.problem-close mark { background: var(--yolk); color: var(--ink); padding: 0 .15em; }

/* How it works: four numbered stops on one line */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.steps::before {
  content: ""; position: absolute; left: 32px; right: 32px; top: 31px; height: 3px; background: var(--text);
}
.step { position: relative; }
.step__num {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px;
  border-radius: 50%; border: 3px solid var(--text); background: var(--surface);
  font: 800 26px/1 var(--font-display); color: var(--ink);
}
.step:nth-child(2) .step__num { background: var(--yolk); }
.step:nth-child(3) .step__num { background: var(--plum); color: #fff; }
.step:nth-child(4) .step__num { background: var(--basil); color: #fff; }
.step:nth-child(1) .step__num { color: var(--text); }
.step h3 { font-size: 26px; margin-bottom: 10px; }
.step p { color: var(--text-dim); }
.step__tag {
  display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); font-size: 13px; font-weight: 600;
}

/* Features: colour-blocked poster tiles */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 320px;
  padding: 32px; border-radius: var(--radius); overflow: hidden;
}
.feature h3 { font-size: clamp(28px, 1.4rem + 1vw, 38px); }
.feature p { max-width: 40ch; }
.feature--yolk { background: var(--yolk); color: var(--ink); }
.feature--plum { background: var(--plum); color: #fff; }
.feature--paper { background: var(--surface); border: 1px solid var(--line); }
.feature--paper p { color: var(--text-dim); }
.feature--night { background: var(--block-dark); color: var(--paper); border: 1px solid var(--line); }
.feature__visual { margin-top: auto; }
.dish-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 800 26px/1 var(--font-display); font-stretch: 84%;
}
.dish-badge .icon { font-size: 26px; color: var(--yolk); }
.clean-chip {
  display: flex; gap: 12px; align-items: center; max-width: 380px; padding: 14px 16px; border-radius: 10px;
  background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45);
}
.clean-chip .icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yolk); font-size: 20px; }
.clean-chip strong { display: block; font-size: 15px; }
.clean-chip span:not(.icon) { font-size: 14px; color: #5D5775; }
.feature__shape {
  position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); pointer-events: none;
}
.feature--yolk .feature__shape { background: rgba(255, 255, 255, .35); right: auto; left: auto; top: auto; bottom: -90px; right: -40px; }
.nutri-demo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 16px; border-radius: 10px; background: var(--surface-2);
}
.nutri-demo__meal { font-weight: 700; }
.nutri-demo__nums { display: flex; gap: 8px; }
.nutri-pill {
  padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.avatar-row { display: flex; align-items: flex-end; gap: 4px; }
.avatar-row img { width: 84px; height: auto; }
.avatar-row img:nth-child(2) { width: 100px; }

/* Switch (a real checkbox, styled) */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px;
  background: var(--line); transition: background .2s var(--ease);
}
.switch__track::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--basil); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Nutrition can be hidden everywhere with one switch */
.hide-nutrition .nutri { display: none !important; }

/* The ad */
.ad { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ad__frame {
  position: relative; width: min(100%, 360px); margin-inline: auto; padding: 12px;
  border-radius: 36px; background: var(--ink); box-shadow: var(--shadow);
}
.ad__frame::before {
  content: ""; position: absolute; z-index: -1; left: -14%; top: 12%; width: 128%; aspect-ratio: 1;
  border-radius: 50%; background: var(--yolk);
}
.ad__frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 26px; background: var(--night); }
.ad__copy h2 { font-size: clamp(34px, 2rem + 2.6vw, 60px); margin-bottom: 18px; }
.ad__copy p { color: var(--text-dim); font-size: 18px; max-width: 44ch; }
.ad__beats { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ad__beats li { display: flex; gap: 12px; align-items: baseline; }
.ad__beats b {
  flex: none; width: 52px; font: 700 13px/1.6 var(--font-mono); color: var(--text-dim);
}

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 0;
  cursor: pointer; list-style: none; font: 800 clamp(20px, 1rem + .8vw, 26px)/1.2 var(--font-display); font-stretch: 86%; letter-spacing: -0.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--text); font: 600 22px/1 var(--font-body); transition: transform .25s var(--ease), background .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--yolk); border-color: var(--yolk); color: var(--ink); }
.faq__item p { padding: 0 56px 22px 0; color: var(--text-dim); font-size: 17px; }

/* Call to action: a plum block, with the sign-up card on it */
.cta {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding: 88px 56px 64px; border-radius: var(--radius-l); background: var(--plum); color: #fff;
}
.cta__copy .eyebrow { color: var(--yolk); }
.cta__copy p:not(.eyebrow) { margin-top: 16px; font-size: 18px; max-width: 46ch; opacity: .95; }
.cta__copy .actions { margin-top: 28px; }
.cta__copy .btn--secondary { color: #fff; border-color: #fff; }
.cta__copy .btn--secondary:hover { background: #fff; color: var(--plum); }

/* Early-access form: a paper card with Yolk peeking over the top */
.signup {
  position: relative; align-self: start; padding: 64px 24px 24px; border-radius: var(--radius-l);
  background: var(--surface); color: var(--text); box-shadow: 0 28px 48px -26px rgba(20, 10, 40, .55);
}
.signup__yolk { position: absolute; left: 50%; top: -70px; width: 120px; margin-left: -60px; z-index: 2; }
.signup__yolk img { display: block; width: 100%; height: auto; transform-origin: 50% 90%; }
.signup__title { font-size: 30px; text-align: center; margin-bottom: 18px; }
.signup__title:focus { outline: none; }
.signup .field { margin: 0; padding: 0; border: 0; min-width: 0; }
.signup .field + .field { margin-top: 16px; }
.signup label:not(.chip), .signup legend { display: block; padding: 0; font-weight: 700; font-size: 15px; }
.field__opt { font-weight: 500; color: var(--text-dim); }
.signup input[type="email"], .signup textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; min-height: 50px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text);
  font: 500 16px/1.4 var(--font-body); transition: border-color .15s var(--ease), background .15s var(--ease);
}
.signup textarea { resize: vertical; min-height: 84px; }
.signup input::placeholder, .signup textarea::placeholder { color: var(--text-dim); opacity: .8; }
.signup input:hover, .signup textarea:hover { border-color: var(--text-dim); }
.signup input:focus-visible, .signup textarea:focus-visible { outline: 3px solid var(--yolk); outline-offset: 1px; border-color: var(--text); background: var(--surface); }
.signup input[aria-invalid="true"] { border-color: var(--text); border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--line); font-weight: 700; font-size: 15px; transition: background .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover span { border-color: var(--text-dim); }
.chip input:checked + span { background: var(--yolk); border-color: var(--text); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__submit { width: 100%; margin-top: 20px; }
.signup__status { min-height: 1.5em; margin: 12px 0 4px; font-weight: 600; font-size: 15px; text-align: center; }
.signup__status.is-error { padding: 8px 12px; border-radius: 10px; background: var(--yolk-soft); }
.signup .fine { text-align: center; }
.signup__done { text-align: center; padding: 8px 0 4px; }
.signup__done p { margin: 0 auto 20px; max-width: 32ch; color: var(--text-dim); }
.signup .confetti { border-radius: var(--radius-l); }

/* Footer */
.site-footer {
  max-width: var(--max); margin: 40px auto 0; padding: 28px var(--gutter) 48px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  border-top: 3px solid var(--text); font-size: 15px; color: var(--text-dim);
}
.site-footer strong { color: var(--text); }
.site-footer__links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.site-footer__links a:hover { color: var(--accent); }
.back-to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.back-to-top:hover { color: var(--accent); }

/* 404 page */
.not-found { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.not-found h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.035em; max-width: 14ch; }
.not-found__yolk { width: 140px; margin-bottom: 20px; }

/* Scroll reveal: blocks slide up along the grid */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

/* ==========================================================================
   3b. TRY PAGE: the demo. Same tokens, one decision per card.
   ========================================================================== */
.page-hero { padding: 40px 0 8px; max-width: 760px; }
.page-hero h1 { font-size: clamp(44px, 2rem + 4vw, 84px); line-height: .92; letter-spacing: -0.04em; }
.page-hero .lede { max-width: 44ch; font-size: 18px; margin-top: 16px; }

.demo { padding: 28px 0 80px; max-width: 860px; scroll-margin-top: calc(var(--header-h) + 8px); }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--text);
}
.demo-badge .icon { font-size: 18px; color: var(--accent); }

/* Progress track: four stops, like the landing page's steps */
.demo-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; padding: 0; list-style: none; position: relative; }
.demo-track::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 2px; background: var(--line); }
.demo-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.demo-track li::before {
  content: ""; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.demo-track li.is-done::before { background: var(--basil); border-color: var(--basil); }
.demo-track li[aria-current="step"] { color: var(--text); }
.demo-track li[aria-current="step"]::before { background: var(--yolk); border-color: var(--text); border-width: 3px; }

/* Yolk and the speech bubble */
.yolk-bar { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; min-height: 96px; }
.yolk-face { width: 96px; height: auto; flex: none; transform-origin: 50% 90%; }
.yolk-says {
  position: relative; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 2px solid var(--text);
  font-weight: 600; font-size: 16px; line-height: 1.4;
}
.yolk-says::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: var(--surface); border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg);
}

.stage { scroll-margin-top: calc(var(--header-h) + 8px); }
.stage[hidden] { display: none; }
.stage__title { font-size: clamp(30px, 1.4rem + 2vw, 44px); margin-bottom: 6px; }
.stage__title:focus { outline: none; }
.stage__sub { color: var(--text-dim); margin-bottom: 20px; }
.panel {
  padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line);
}
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 24px; margin-bottom: 4px; }

/* Choice tiles (radio buttons) */
.choice-group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 10px; font: 800 20px/1.2 var(--font-display); font-stretch: 86%; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 88px; padding: 12px 8px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center;
  font-weight: 700; font-size: 17px; transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.choice__face .icon { font-size: 28px; color: var(--text-dim); }
.choice__face small { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.choice:hover .choice__face { border-color: var(--text-dim); }
.choice input:checked + .choice__face { border-color: var(--text); background: var(--yolk); color: var(--ink); }
.choice input:checked + .choice__face .icon, .choice input:checked + .choice__face small { color: var(--ink); }
.choice input:focus-visible + .choice__face { outline: 3px solid var(--accent); outline-offset: 3px; }
.choice-hint { color: var(--text-dim); font-size: 15px; }

/* The suggested meal */
.meal-card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-l); background: var(--surface); border: 2px solid var(--text); }
.meal-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--yolk); opacity: .9;
}
.meal-card > * { position: relative; z-index: 1; }
.meal-card.is-new { animation: card-in .45s var(--ease); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.meal-card__name { font-size: clamp(30px, 1.3rem + 2.2vw, 46px); max-width: 15ch; }
.meal-card__blurb { margin-top: 10px; color: var(--text-dim); max-width: 46ch; }
.meal-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stat {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface-2); font-size: 15px; font-weight: 600;
}
.stat .icon { font-size: 18px; }
.stat--dishes { background: var(--ink); color: var(--paper); }
.stat--dishes .icon { color: var(--yolk); }
.meal-card .fine { margin-top: 10px; }
.meal-card .actions { margin-top: 22px; }
.meal-note { margin-top: 12px; font-size: 14px; color: var(--text-dim); }
.nutri-toggle-row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Servings stepper */
.servings { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.servings__label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--text); border-radius: 999px; }
.stepper button {
  display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.stepper button:hover:not([disabled]) { background: var(--surface-2); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 56px; text-align: center; font: 800 24px/1 var(--font-display); }

/* Got everything? checklist */
.checklist { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.check-row__item { min-width: 0; }
.check-row__qty { font-weight: 800; font-family: var(--font-display); font-stretch: 86%; font-size: 18px; margin-right: 4px; }
.check-row__section { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.have-need { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.have-need button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--text-dim); transition: background .15s var(--ease), color .15s var(--ease);
}
.have-need button[aria-pressed="true"][data-mark="have"] { background: var(--basil); color: #fff; }
.have-need button[aria-pressed="true"][data-mark="need"] { background: var(--yolk); color: var(--ink); }
.check-row.is-have .check-row__item { color: var(--text-dim); }
.check-row.is-have .check-row__name { text-decoration: line-through; text-decoration-thickness: 2px; }
.check-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 14px; }

/* Spice rack */
.spice-rack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.spice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px;
}
.spice .icon { font-size: 18px; color: var(--done-text); }
.spice[aria-pressed="true"] { border-color: var(--text); border-style: dashed; color: var(--text-dim); }
.spice[aria-pressed="true"] .icon { color: var(--text-dim); }
.swap-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.swap {
  padding: 14px 16px; border-radius: 10px; background: var(--yolk-soft); border-left: 4px solid var(--yolk);
}
.swap strong { display: block; }
.swap .switch { margin-top: 4px; font-size: 14px; min-height: 40px; }

/* Shopping list, grouped by store section */
.shop-list { margin-top: 12px; display: grid; gap: 16px; }
.shop-section h4 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 13px/1.4 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
}
.shop-section h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--section-dot, var(--plum)); }
.shop-section[data-section="Produce"] { --section-dot: var(--basil); }
.shop-section[data-section="Dairy"] { --section-dot: #9DB8FF; }
.shop-section[data-section="Meat"] { --section-dot: #FF7D6B; }
.shop-section[data-section="Pantry"] { --section-dot: var(--yolk); }
.shop-section[data-section="Spices"] { --section-dot: var(--plum); }
.shop-section ul { margin: 0; padding: 0 0 0 18px; }
.shop-section li { padding: 3px 0; }
.shop-empty { color: var(--text-dim); }

.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; }

/* Cook mode */
.cook-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.cook-head .stage__title { margin: 0; font-size: clamp(24px, 1.1rem + 1.4vw, 34px); }
.now-card {
  position: relative; padding: 28px 24px; border-radius: var(--radius-l); background: var(--plum); color: #fff;
  min-height: 250px; display: flex; flex-direction: column; gap: 14px;
}
.now-card.is-new { animation: card-in .4s var(--ease); }
.now-card__label {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--yolk); color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.now-card__text { font: 800 clamp(26px, 1.1rem + 2.4vw, 40px)/1.12 var(--font-display); font-stretch: 88%; letter-spacing: -0.015em; }
.now-card__note { font-size: 16px; opacity: .92; }
.now-card .actions { margin-top: auto; padding-top: 6px; }
.now-card .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, .7); }
.now-card .btn--secondary:hover { background: #fff; color: var(--plum); }
.now-card.is-waiting { background: var(--block-dark); border: 1px solid var(--line); }
.now-card.is-zero { background: var(--yolk); color: var(--ink); }
.now-card.is-zero .now-card__label { background: var(--ink); color: var(--yolk); }
.now-card__wait {
  font: 800 clamp(48px, 2rem + 4vw, 80px)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--yolk);
}
.clean-prompt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--paper); color: var(--ink);
}
.clean-prompt .icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yolk); }
.clean-prompt__text { flex: 1 1 200px; font-weight: 600; }
.clean-prompt__text small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5D5775; }
.clean-prompt.is-done { background: var(--done-soft); color: var(--text); }
.clean-prompt.is-done .icon { background: var(--basil); color: #fff; }
.up-next { margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--text-dim); color: var(--text-dim); }
.up-next strong { color: var(--text); }
.timers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.timers:empty { display: none; }
.timer {
  position: relative; overflow: hidden; padding: 14px 14px 16px; border-radius: 12px; background: var(--surface); border: 2px solid var(--text);
}
.timer__label { font-size: 14px; font-weight: 700; padding-right: 30px; }
.timer__time { font: 800 34px/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.timer__bar { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.timer__bar span { display: block; height: 100%; width: 100%; background: var(--plum); transform-origin: left; }
.timer__skip {
  position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--text-dim);
}
.timer__skip:hover { background: var(--surface-2); color: var(--text); }
.timer.is-done { border-color: var(--basil); background: var(--done-soft); }
.timer.is-done .timer__bar span { background: var(--basil); }
.timer.is-done .timer__time { color: var(--done-text); }
.timer.is-ringing { animation: ring .5s var(--ease) 3; }
@keyframes ring { 0%, 100% { transform: none; } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.cook-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }

/* Done */
.done-card { position: relative; overflow: hidden; padding: 32px 24px; border-radius: var(--radius-l); background: var(--basil); color: #fff; text-align: center; }
.done-card h2 { font-size: clamp(44px, 2rem + 4vw, 80px); }
.done-card__meal { margin-top: 8px; font-size: 18px; font-weight: 600; }
.done-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.done-stat { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.done-stat dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.done-stat dd { margin: 4px 0 0; font: 800 30px/1.1 var(--font-display); }
.done-stat dd small { display: block; margin-top: 4px; font: 500 14px/1.4 var(--font-body); color: var(--text-dim); }
.log-list { margin: 10px 0 0; padding: 0; list-style: none; }
.log-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.log-list time { color: var(--text-dim); white-space: nowrap; }

/* Confetti: flat shapes in brand colours */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.confetti i {
  position: absolute; top: -20px; left: var(--x); width: var(--s); height: var(--s); background: var(--c);
  border-radius: var(--r); animation: confetti-fall var(--d) var(--ease-out) forwards; animation-delay: var(--delay);
}
@keyframes confetti-fall {
  from { transform: translateY(0) rotate(0); opacity: 1; }
  to { transform: translateY(var(--fall, 420px)) rotate(var(--rot)); opacity: 0; }
}

/* House vote */
.vote-label {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: var(--yolk-soft); border-left: 4px solid var(--yolk); font-size: 15px; margin-bottom: 16px;
}
.vote-label .icon { margin-top: 2px; }
.player-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.player { display: flex; align-items: center; gap: 12px; }
.player label { flex: 1; display: grid; gap: 2px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.player input {
  width: 100%; min-height: 44px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: 600 16px var(--font-body);
}
.player input:focus-visible { border-color: var(--accent); }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.avatar img { width: 100%; height: auto; }
.avatar--guest { border-radius: 50%; background: var(--surface); border: 3px solid var(--text); box-shadow: inset 0 0 0 7px var(--surface), inset 0 0 0 9px var(--line); }
.avatar--guest .icon { font-size: 26px; color: var(--plum); }
.avatar--big { width: 132px; height: 132px; margin: 0 auto; }
.avatar--big.avatar--guest .icon { font-size: 52px; }
.count-choices { display: inline-flex; gap: 6px; }
.count-choices button {
  min-width: 52px; min-height: 46px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  cursor: pointer; font: 800 20px/1 var(--font-display);
}
.count-choices button[aria-pressed="true"] { background: var(--yolk); border-color: var(--text); color: var(--ink); }
.handoff { text-align: center; padding: 36px 20px; }
.handoff h3 { font-size: clamp(30px, 1.4rem + 2vw, 44px); margin: 16px 0 8px; }
.handoff p { color: var(--text-dim); margin-bottom: 20px; }
.ballot { display: grid; gap: 10px; margin-top: 14px; }
.pick {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; width: 100%;
  padding: 16px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); text-align: left; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.pick:hover { border-color: var(--text); }
.pick__name { font: 800 22px/1.15 var(--font-display); font-stretch: 86%; }
.pick__meta { grid-column: 1; font-size: 14px; color: var(--text-dim); }
.pick__votes { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 2px; }
.pick__votes img, .pick__votes .avatar { width: 40px; height: 40px; }
.pick__votes .avatar--guest .icon { font-size: 18px; }
.pick.is-spot { border-color: var(--text); background: var(--yolk-soft); }
.pick.is-winner { border-color: var(--text); background: var(--yolk); color: var(--ink); transform: scale(1.02); }
.pick.is-winner .pick__meta { color: var(--ink); }
.pick__stamp {
  position: absolute; right: 12px; top: -12px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--yolk);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.reveal-zone { position: relative; }
.vote-reactions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; }
.vote-reactions--center { justify-content: center; margin: 0 0 8px; }
.vote-reactions figure { display: grid; justify-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.vote-result { margin-top: 14px; font-weight: 600; }

/* ==========================================================================
   4. MOTION AND RESPONSIVE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.smooth { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero, .ad { grid-template-columns: 1fr; }
  .hero { gap: 32px; }
  .hero-art { max-width: 460px; }
  .problem-grid { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line); }
  .problem-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .problem-card__mascot { position: absolute; right: 0; top: 22px; width: 76px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 30px; right: auto; top: 32px; bottom: 32px; width: 3px; height: auto; }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; }
  .step__num { margin-bottom: 0; grid-row: span 3; }
  .cta { grid-template-columns: 1fr; row-gap: 104px; }
}

/* Phones: the nav drops to its own row and scrolls sideways, so both pages stay reachable. */
@media (max-width: 720px) {
  :root { --header-h: 118px; }
  .site-header__inner { flex-wrap: wrap; row-gap: 4px; }
  .theme-toggle { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 0 10px; font-size: 14px; }
  .site-nav a:first-child { padding-left: 0; }
  .site-nav a:first-child::after { left: calc(50% - 5px); }
  .site-nav a.site-nav__try::after { bottom: -8px; }
  .section__head { grid-template-columns: 1fr; }
  .section__index { margin-bottom: 10px; }
  .section__sub { grid-column: 1; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .hero { padding-top: 24px; padding-bottom: 40px; }
  .lede { font-size: 18px; }
  .hero .actions .btn, .cta__copy .actions .btn { width: 100%; }
  .feature { padding: 24px; min-height: 0; }
  .cta { padding: 40px 16px 16px; }
  .signup { padding: 60px 18px 20px; }
  .faq__item p { padding-right: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .panel, .meal-card { padding: 20px 16px; }
  .choice__face { min-height: 76px; font-size: 16px; }
  .yolk-face { width: 76px; }
  .yolk-bar { min-height: 76px; }
  .yolk-says { font-size: 15px; }
  .check-row { flex-wrap: wrap; }
  .have-need { margin-left: auto; }
  .now-card { padding: 22px 18px; min-height: 230px; }
  .timer__time { font-size: 28px; }
  .stage-actions .btn { flex: 1 1 auto; }
  .done-stat dd { font-size: 24px; }
  .ad__frame { width: min(100%, 300px); }
  .ad__frame::before { left: -8%; width: 116%; }
  .avatar-row img { width: 64px; }
  .avatar-row img:nth-child(2) { width: 78px; }
}
