/* Aubergenie website. Colour tokens are filled in from site.config.json at build time.
   The palette is docs/BRAND.md's: Aubergine for the mark, Plum for what you tap, Calyx
   green only on the wordmark's leaf, Yolk once as the closing disc, Flesh as the ground.
   Glass stays neutral. The page's geometry is the circle: the plates, the timer ring,
   the plan day, the disc the icon rises from. No word ever sits on a photograph. */

:root {
  --paper: #FFF8EE;
  --band: #FFF1DE;
  --surface: #FFFCF6;
  --raised: #FFFFFF;
  --hair: #E9D9C8;
  --hair-strong: #D9CED4;
  --ink: #241F23;
  --ink-2: #6E626A;
  --accent: #8E3A99;
  --accent-strong: #6B2575;
  --accent-soft: #F4E5E6;
  --mark: #4A1650;
  --leaf: #5C8A2E;
  --yolk: #FFB51F;
  --flesh: #FFF1DE;
  --success: #286348;
  --glass: rgba(255, 251, 245, .74);
  --glass-edge: rgba(36, 31, 35, .10);
  --glass-lip: rgba(255, 255, 255, .65);
  --g1: #F26A14;
  --g2: #E82267;
  --g3: #7A32E0;
  --shadow-ink: 52, 18, 40;
  --shadow: 0 30px 60px -30px rgba(var(--shadow-ink), .45), 0 6px 18px -10px rgba(var(--shadow-ink), .25);
  --shadow-soft: 0 18px 40px -26px rgba(var(--shadow-ink), .4);
  --plate-shadow: 0 40px 70px -40px rgba(var(--shadow-ink), .55), 0 14px 30px -18px rgba(var(--shadow-ink), .35);
  --radius: 28px;
  --radius-s: 18px;
  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .7s;
  color-scheme: light dark;
}

/* Dark: the kitchen after dinner. Aubergine-black, the food untouched, the wordmark in Flesh. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16101A;
    --band: #211923;
    --surface: #231A26;
    --raised: #2A202C;
    --hair: #3A2C3B;
    --hair-strong: #514650;
    --ink: #FFF1DE;
    --ink-2: #C4B7BF;
    --accent: #C88FD3;
    --accent-strong: #E2BCEA;
    --accent-soft: #36273B;
    --mark: #FFF1DE;
    --yolk: #E5A11C;
    --success: #96D4AD;
    --glass: rgba(42, 32, 44, .66);
    --glass-edge: rgba(255, 255, 255, .12);
    --glass-lip: rgba(255, 255, 255, .10);
    --shadow-ink: 0, 0, 0;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 6px 18px -10px rgba(0, 0, 0, .5);
    --shadow-soft: 0 18px 40px -26px rgba(0, 0, 0, .7);
    --plate-shadow: 0 40px 70px -36px rgba(0, 0, 0, .9), 0 14px 30px -16px rgba(0, 0, 0, .6);
  }
}
@media (prefers-contrast: more) {
  :root { --accent: var(--accent-strong); --glass: var(--surface); --glass-edge: #887B85; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top)); }
/* The root follows the reader's own text size on Apple devices (Larger Text, Dynamic Type); everything else is in rem. */
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 1rem/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports not (font: -apple-system-body) { body { font-size: 1.0625rem; } }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.028em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.2rem + 4.5vw, 4.75rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.1vw, 3.1rem); font-weight: 740; letter-spacing: -0.025em; line-height: 1.04; }
h3 { font-size: clamp(1.375rem, 1.2rem + .75vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; }
p + p { margin-top: 1em; }

/* Archivo, the brand's face, as one variable font (Google Fonts' latin subset, OFL, 90 KB):
   the wordmark at the brand's exact 760 / 115 instance, headlines at 700 / 112, and dish
   names at 800 / 125, the web twin of the app's SF Pro Expanded Bold. */
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("/static/fonts/archivo-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.wordmark {
  font-family: "Archivo", var(--font); font-weight: 760; font-stretch: 115%;
  letter-spacing: -0.02em; line-height: 1; color: var(--mark); font-size: 1.32rem; white-space: nowrap;
}
.wm-i { position: relative; display: inline-block; }
.wm-i svg { position: absolute; left: 50%; top: 0; width: .36em; height: .36em; transform: translate(-50%, -64%) rotate(-35deg); fill: var(--leaf); stroke: none; }
.wordmark-small { font-size: 1.15rem; }

/* Dish names: the app sets them in SF Pro Expanded Bold; Archivo at 800 / 125 is its web twin. */
.dish { font-family: "Archivo", var(--font); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; line-height: .98; }
h1, h2 { font-family: "Archivo", var(--font); font-stretch: 112%; }
.facts { font-size: .95rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }

code { font-family: var(--mono); font-size: .92em; background: var(--surface); border: 1px solid var(--hair); border-radius: 6px; padding: .05em .35em; }
pre { font-family: var(--mono); font-size: .9rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 1rem 1.2rem; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.eyebrow { font-size: .95rem; font-weight: 600; color: var(--accent); margin: 0 0 .8rem; }
.lede { font-size: clamp(1.15rem, 1.05rem + .55vw, 1.45rem); line-height: 1.42; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.scene-lede { font-size: clamp(1.125rem, 1rem + .56vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 42ch; text-wrap: pretty; margin-top: 1rem; }
.quiet-centre { margin-inline: auto; text-align: center; }
.quiet { margin-top: 1rem; font-size: .92rem; line-height: 1.5; color: var(--ink-2); max-width: 42ch; text-wrap: pretty; }
.meta { color: var(--ink-2); font-size: .95rem; }
.small { font-size: .85rem; color: var(--ink-2); }

.skip { position: absolute; left: 1rem; top: -3rem; background: var(--raised); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- Buttons and chips: neutral glass, Plum on the words, as in the app ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  font: 600 1.04rem/1.2 var(--font); text-decoration: none; color: var(--accent);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-lip), 0 10px 24px -16px rgba(var(--shadow-ink), .5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  cursor: pointer;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--glass-lip), 0 14px 28px -14px rgba(var(--shadow-ink), .5); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { min-height: 54px; padding: 0 1.8rem; box-shadow: inset 0 1px 0 var(--glass-lip), 0 14px 30px -16px rgba(var(--shadow-ink), .55); }
.btn-primary:hover { box-shadow: inset 0 1px 0 var(--glass-lip), 0 18px 34px -16px rgba(var(--shadow-ink), .6); }
.btn-quiet { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-quiet:hover { box-shadow: none; text-decoration: underline; transform: none; }
.btn-small { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn-round { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; }
.btn-round svg { width: 20px; height: 20px; }
.still .btn, .still .btn:hover { transition: none; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 0; padding: 2px; }
.chip:focus-visible { outline-offset: -3px; }
.chip {
  flex: 0 0 auto; min-height: 40px; padding: 0 .95rem; border-radius: 999px;
  font: 600 .95rem/1 var(--font); color: var(--ink); background: var(--glass);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-lip);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
@media (hover: hover) { .chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-edge)); } }

.actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-top: 1.5rem; }
.actions-centre { justify-content: center; }
.cta-note { margin-top: .7rem; font-size: 1rem; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.cta-secondary { margin-top: .45rem; font-size: .92rem; }
.cta-secondary:empty { display: none; }
.link-quiet { color: var(--accent); font-weight: 600; text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }

.copy-btn {
  font: 600 .88rem/1 var(--font); color: var(--accent); background: var(--surface);
  border: 1px solid var(--hair); border-radius: 999px; padding: .5rem .85rem; cursor: pointer; margin-left: .4rem;
}
.copy-btn:hover { border-color: var(--accent); }

/* ---------- Header / footer ---------- */

.site-header { position: sticky; top: 0; z-index: 20; background: transparent; }
.site-header::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 70%, transparent);
}
.motion .site-header::before { transition: opacity .3s ease; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 8px 0; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-icon { border-radius: 8px; box-shadow: 0 2px 8px -3px rgba(var(--shadow-ink), .5); }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
.site-nav > a:not(.btn):hover { color: var(--accent); }
/* The hero already asks; the header's pill arrives once that one has scrolled away. */
.header-cta { white-space: nowrap; }
.js .page-home .header-cta { display: none; }
.js .page-home .site-header.cta-away .header-cta { display: inline-flex; }
.motion .page-home .site-header.cta-away .header-cta { animation: fade .3s ease; }
@media (max-width: 899px) { .wordmark { font-size: 1.15rem; } }

.site-footer { background: var(--band); margin-top: 5rem; padding: 2.6rem 0 calc(2.6rem + env(safe-area-inset-bottom)); font-size: .93rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: 1.1rem; }
.footer-brand { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.footer-tag { color: var(--ink-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-nav a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { font-size: .84rem; max-width: 70ch; }
.brgndy { font-weight: 700; letter-spacing: .04em; }
.page-home .site-footer { margin-top: 0; }
@media (min-width: 720px) {
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; column-gap: 2.5rem; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- Screens and plates: the real thing, no device chrome ---------- */

.screen {
  position: relative; margin: 0; width: 100%;
  border-radius: 12% / 6%; overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--hair-strong) 70%, transparent);
}
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption { position: absolute; left: 0; right: 0; bottom: -2rem; text-align: center; font-size: .88rem; font-weight: 600; color: var(--ink-2); }

.plate { position: relative; margin: 0; border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: #B8362B;
  box-shadow: var(--plate-shadow), 0 2px 4px -2px rgba(var(--shadow-ink), .5), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(60, 10, 10, .25), inset 0 -10px 24px -16px rgba(60, 10, 10, .35); pointer-events: none; }
/* The icon, standing on paper over its own shadow: the one genie cue, used twice. */
.float { position: relative; display: grid; justify-items: center; }
.float-icon { position: relative; z-index: 1; border-radius: 22%; display: block; }
.float-shadow { display: block; width: 64%; height: 10%; min-height: 5px; margin-top: 12%; border-radius: 50%; background: rgba(var(--shadow-ink), .22); filter: blur(4px); }
.motion .float.is-in .float-icon, .motion .hero-float .float-icon { animation: rise .9s var(--ease) .3s backwards; }
.motion .float.is-in .float-shadow, .motion .hero-float .float-shadow { animation: shrink .9s var(--ease) .3s backwards; }
@keyframes rise { from { transform: translateY(14%); } to { transform: none; } }
@keyframes shrink { from { transform: scaleX(1.25); opacity: 1; } to { transform: none; opacity: .8; } }

/* ========================================================================
   HOME
   ======================================================================== */

/* ---------- 1. Hero: the plate first, the icon beside it, then the promise ---------- */

.hero { padding: .4rem 0 1rem; overflow: hidden; }
.hero-grid { display: grid; gap: 1.4rem; }
.hero-stage { order: -1; position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: end; column-gap: .9rem; row-gap: .5rem; }
.plate-hero { grid-column: 1 / -1; grid-row: 1; width: min(70vw, 290px); justify-self: end; margin-right: calc(-1 * var(--gutter) - 6vw); }
.hero-float { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 6%; width: 56px; }
.hero-caption { grid-column: 1 / 3; grid-row: 2; }
.hero-caption .dish { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem); color: var(--ink); }
.hero-caption .facts { margin-top: .15rem; }
.hero-stage [data-next-dish] { grid-column: 3; grid-row: 2; align-self: center; }
.btn-next { min-height: 40px; padding: 0 .9rem 0 .75rem; font-size: .9rem; white-space: nowrap; gap: .4rem; }
.btn-next svg { width: 1em; height: 1em; }
.hero-eyebrow { font-size: .92rem; font-weight: 600; color: var(--ink-2); margin-bottom: .6rem; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lede { margin-top: .9rem; }
.hero-copy .actions { margin-top: 1.3rem; }
/* On arrival, once: the plate is set down, turning a little as it settles. The turn to the
   next dish is a separate transform on the inner wrapper, so the two never fight. */
.motion .plate-hero { animation: setdown 1.1s var(--ease) backwards; }
.motion .plate-hero picture { display: block; transition: transform .7s var(--ease); }
.motion .plate-hero.is-turning picture { transform: rotate(40deg); }
.motion .plate-hero img { transition: opacity .3s ease; }
.motion .plate-hero.is-turning img { opacity: .35; }
.motion .hero-caption { animation: fade .6s ease .7s backwards; }
@keyframes setdown { from { transform: rotate(-12deg) scale(.97); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 900px) {
  .hero { padding: 1.5rem 0 2rem; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2rem; min-height: min(82vh, 820px); }
  .hero-copy { order: 1; }
  .hero-stage { order: 2; grid-template-columns: auto 1fr auto; column-gap: 1.2rem; }
  .plate-hero { width: min(46vw, 700px); margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2) - 2vw); }
  .hero-float { width: 88px; margin-bottom: 8%; }
  .hero-caption .dish { font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem); }
  .hero-copy h1 { max-width: 13ch; }
}

/* ---------- Scenes ---------- */

.scene { padding: 6rem 0 1rem; }
.scene-head { max-width: 46rem; }
.scene-head h2 { max-width: 14ch; }
.scene-head-centre { margin-inline: auto; text-align: center; }
.scene-head-centre h2, .scene-head-centre .scene-lede { margin-inline: auto; }
.band { background: var(--band); margin-top: 3rem; padding-top: 5rem; padding-bottom: 4rem; }

.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 2. Find it. Save it. Make it. ---------- */

.scene-find { overflow: hidden; }
.find-grid { display: grid; gap: 2rem; }
.verbs span { color: var(--ink-2); transition: color .4s ease; }
@media (min-width: 900px) { .verbs span { display: block; } }
.verbs span.is-on { color: var(--ink); }
.truth { margin-top: 1rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 40ch; min-height: 3.1em; }

.find-stage { position: relative; display: grid; gap: 1rem; padding-top: .5rem; }
.find-input { position: relative; z-index: 2; min-height: 96px; display: flex; align-items: center; }
.input-link, .input-hand {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 50px; max-width: 100%; padding: 0 1.1rem 0 .9rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-lip), var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-weight: 500; color: var(--ink);
}
.input-link svg { width: 1.1em; height: 1.1em; color: var(--accent); flex: 0 0 auto; }
.input-hand { border-radius: 16px; min-height: 54px; font-weight: 600; }
.typed { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.motion .typed::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 2px; vertical-align: -0.15em; opacity: 0; }
.motion .is-typing .typed::after { opacity: 1; animation: caret 1s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }
.input-photo { position: relative; width: 96px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.input-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.input-photo i { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; opacity: .9; }
.input-photo i:nth-child(2) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.input-photo i:nth-child(3) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.input-photo i:nth-child(4) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.input-photo i:nth-child(5) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.sheet {
  position: relative; z-index: 1; background: var(--raised); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--hair-strong) 60%, transparent); max-width: 28rem;
}
.sheet-title { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); color: var(--ink); }
.sheet .facts { margin-top: .35rem; }
.sheet-sub { margin-top: 1.1rem; font-size: .92rem; color: var(--ink-2); }
.sheet-more { margin: .5rem 0 0; font-size: .92rem; color: var(--ink-2); }
.sheet-rows { list-style: none; margin: .4rem 0 0; padding: 0; }
.sheet-rows li { display: grid; grid-template-columns: 4.4rem 1fr; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--hair); font-size: 1rem; }
.sheet-rows li:last-child { border-bottom: 0; }
.sheet-rows .qty { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.sheet-saved { margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--success); }
.sheet-saved svg { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: .3em; stroke-width: 2.5; }
.motion .sheet { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.motion .sheet.is-composed { opacity: 1; transform: none; }
.motion .sheet .sheet-title, .motion .sheet .facts, .motion .sheet-sub, .motion .sheet-rows li, .motion .sheet-more, .motion .sheet-actions, .motion .sheet-saved { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.motion .sheet.is-composed .sheet-title, .motion .sheet.is-composed .facts, .motion .sheet.is-composed .sheet-sub, .motion .sheet.is-composed .sheet-rows li, .motion .sheet.is-composed .sheet-more, .motion .sheet.is-composed .sheet-actions, .motion .sheet.is-composed .sheet-saved { opacity: 1; transform: none; }
.motion .sheet.is-composed .facts { transition-delay: .08s; }
.motion .sheet.is-composed .sheet-sub { transition-delay: .16s; }
.motion .sheet.is-composed .sheet-rows li:nth-child(1) { transition-delay: .22s; }
.motion .sheet.is-composed .sheet-rows li:nth-child(2) { transition-delay: .3s; }
.motion .sheet.is-composed .sheet-rows li:nth-child(3) { transition-delay: .38s; }
.motion .sheet.is-composed .sheet-rows li:nth-child(4) { transition-delay: .46s; }
.motion .sheet.is-composed .sheet-rows li:nth-child(5) { transition-delay: .54s; }
.motion .sheet.is-composed .sheet-rows li:nth-child(6) { transition-delay: .62s; }
.motion .sheet.is-composed .sheet-more { transition-delay: .7s; }
.motion .sheet.is-composed .sheet-actions { transition-delay: .78s; }
.motion .sheet.is-composed .sheet-saved { transition-delay: 1.1s; }

@media (min-width: 900px) {
  .scene { padding: 9rem 0 1.5rem; }
  .find-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
  .find-stage { padding: 1rem 0 2rem; }
  .sheet { margin-top: .5rem; padding: 1.7rem 1.8rem 1.5rem; }
}

/* ---------- 3. What should I cook tonight? ---------- */

.tonight-grid { display: grid; gap: 3rem; margin-top: 2.5rem; }
.tonight-grid .answer > p { margin-top: .5rem; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.screen-create, .screen-today { width: min(78%, 300px); margin-top: 1.3rem; }
.screen-crop { aspect-ratio: 600 / 760; }
.screen-crop img { object-fit: cover; object-position: top; height: 100%; }
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1rem; margin-top: 1.3rem; align-items: start; }
.plate-small figcaption { margin-top: .6rem; display: grid; gap: .1rem; }
.plate-small .dish { font-size: .95rem; color: var(--ink); line-height: 1.1; }
.plate-small .facts { font-size: .85rem; }
.plate-small { border-radius: 0; overflow: visible; box-shadow: none; background: none; aspect-ratio: auto; }
.plate-small::after { content: none; }
.plate-small picture { display: block; position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: #B8362B; box-shadow: var(--plate-shadow), 0 2px 4px -2px rgba(var(--shadow-ink), .5); }
.plate-small picture::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(60, 10, 10, .25), inset 0 -10px 24px -16px rgba(60, 10, 10, .35); pointer-events: none; }
.plate-small img { border-radius: 50%; aspect-ratio: 1; }
.motion .plate-small { transition: opacity .4s ease, transform .4s var(--ease); }
.plate-small.is-dim { opacity: .28; }
.motion .plate-small.is-dim { transform: scale(.94); }
.count { margin-top: 1rem; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .tonight-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: start; }
  .answer-saved { padding-top: 2rem; }
  .screen-create, .screen-today { width: 100%; max-width: 280px; }
}

/* ---------- 4. From plan to plate: a method with three steps ---------- */

.rail { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; }
.rail-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; padding: 0 0 3rem 3rem; }
.rail-step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font: 700 .95rem/1 var(--font); display: grid; place-items: center; background: var(--paper);
  font-variant-numeric: tabular-nums; z-index: 1;
}
.rail-step::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.3rem; bottom: .3rem; width: 2px; background: var(--hair); }
.rail-step:last-child::after { display: none; }
.motion .rail-step::after { background: linear-gradient(var(--accent) 0 0) no-repeat 0 0 / 100% 0, var(--hair); transition: background-size 1.2s var(--ease) .3s; }
.motion .rail-step.is-in::after { background-size: 100% 100%; }
@media (forced-colors: active) { .list li button i { forced-color-adjust: none; border-color: ButtonText; } .list li button[aria-checked="true"] i { background: Highlight; } }
.rail-words p { margin-top: .5rem; color: var(--ink-2); max-width: 38ch; text-wrap: pretty; }
.screen-week { width: min(78%, 300px); }

.list { background: var(--raised); border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem; max-width: 520px; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--hair-strong) 60%, transparent); }
.list-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: .92rem; color: var(--ink-2); padding-bottom: .8rem; border-bottom: 1px solid var(--hair); }
.list-head strong { color: var(--ink); font-size: 1.05rem; }
.aisle { font-size: .9rem; font-weight: 700; color: var(--ink-2); margin: 1rem 0 .3rem; }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li button {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: .8rem; width: 100%; min-height: 48px; padding: 0 .2rem;
  background: none; border: 0; border-bottom: 1px solid var(--hair); font: 400 1rem/1.2 var(--font); color: var(--ink); text-align: left; cursor: pointer;
}
.list li:last-child button { border-bottom: 0; }
.list li button i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-2); display: grid; place-items: center; transition: background .18s ease, border-color .18s ease; }
.list li button i::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--paper); border-bottom: 2.5px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.list li button[aria-checked="true"] i { background: var(--accent); border-color: var(--accent); }
.list li button[aria-checked="true"] i::after { opacity: 1; }
.list li button[aria-checked="true"] span, .list li button[aria-checked="true"] b { color: var(--ink-2); text-decoration: line-through; }
.list li button b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.list li button small { display: block; font-size: .78rem; color: var(--ink-2); margin-top: .1rem; }
.list-more { margin: .6rem 0 0; font-size: .92rem; color: var(--ink-2); text-align: center; }
.demo-tag { display: inline-block; margin: 0 0 .7rem; padding: .25rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--accent); background: var(--accent-soft); }

.cookpanel { background: var(--raised); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; max-width: 640px; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--hair-strong) 60%, transparent); }
.cook-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; }
.cook-stepcount { color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.cook-progress { display: flex; gap: 6px; margin: .7rem 0 1.3rem; }
.cook-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--hair); }
.cook-progress i.is-on { background: var(--accent); }
.cook-step { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; }
.cook-time { display: inline-flex; align-items: center; gap: .22em; padding: .04em .45em .04em .3em; border-radius: .5em; background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.cook-time svg { width: .85em; height: .85em; }
.nowrap { white-space: nowrap; }
.cook-timer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 380px) { .cook-timer { gap: .6rem; padding: .8rem .8rem; } .cook-ring { width: 56px; height: 56px; } .cook-digits { font-size: 2.1rem; } .btn-round { width: 40px; height: 40px; } }
.cook-ring { width: 72px; height: 72px; transform: rotate(-90deg); }
.cook-ring circle { stroke-linecap: round; }
.motion .cook-ring-fill { transition: stroke-dashoffset 1s linear; }
.cook-ring-fill.no-transition { transition: none; }
.cook-digits { font-size: clamp(2.5rem, 2.2rem + 1.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cook-label { color: var(--ink-2); margin-top: .3rem; font-size: 1rem; }
.btn-pause { align-self: center; }
.cook-next { margin: 1.2rem .3rem 0; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.cook-next span { font-weight: 700; color: var(--ink); }

@media (min-width: 900px) {
  .rail { margin-top: 3.5rem; }
  .rail-step { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; padding: 0 0 5rem 3.5rem; align-items: start; }
  .rail-words { position: sticky; top: 5rem; }
  .screen-week { margin: 0; }
  .cook-step { font-size: 2.3rem; }
  .cook-digits { font-size: 3.8rem; }
  .rail-step::before { width: 2.3rem; height: 2.3rem; font-size: 1rem; }
  .rail-step::after { left: calc(1.15rem - 1px); top: 2.6rem; }
  .screen-week { width: 100%; max-width: 300px; margin-inline: auto; }
  .list, .cookpanel { justify-self: start; width: 100%; }
  .cookpanel { padding: 1.7rem 1.8rem 1.5rem; }
  .cook-ring { width: 100px; height: 100px; }
}

/* ---------- 5. Send the recipe, not a screenshot ---------- */

.send-stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .4rem; max-width: 880px; margin: 2.5rem auto 1rem; }
.send-from { width: min(72%, 300px); margin-bottom: 2.4rem; }
.send-path { position: relative; width: 100%; height: 120px; }
.send-to { width: 100%; max-width: 420px; }
.recipe-file {
  position: absolute; left: 50%; top: 50%; width: clamp(76px, 20vw, 118px); transform: translate(-50%, -50%);
  background: var(--raised); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 36px -16px rgba(var(--shadow-ink), .6), 0 0 0 1px color-mix(in srgb, var(--hair-strong) 70%, transparent);
}
.recipe-file img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.recipe-file-title { display: block; padding: .4em .5em .1em; font-size: clamp(.58rem, 1.5vw, .78rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
.recipe-file-ext { display: block; padding: 0 .55em .5em; font-size: clamp(.56rem, 1.5vw, .72rem); color: var(--accent); font-weight: 600; font-family: var(--mono); }
.send-to { background: var(--raised); border-radius: var(--radius-s); padding: 1.1rem; font-size: .95rem; line-height: 1.45; color: var(--ink-2); box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--hair-strong) 60%, transparent); }
.send-to-label { font-size: .95rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem; }
.send-to strong { color: var(--ink); }
.send-to .quiet { margin-top: .7rem; font-size: .86rem; }
.motion .recipe-file { left: 0; transform: translate(-60%, -50%) scale(.6) rotate(-8deg); opacity: 0; }
.motion .is-sending .recipe-file { animation: travel 2.2s var(--ease) forwards; }
@keyframes travel {
  0%   { left: 0;    transform: translate(-60%, -50%) scale(.6) rotate(-8deg); opacity: 0; }
  20%  { opacity: 1; transform: translate(-55%, -64%) scale(.95) rotate(-5deg); }
  55%  { transform: translate(-50%, -86%) scale(1.06) rotate(2deg); }
  100% { left: 100%; transform: translate(-100%, -50%) scale(.94) rotate(0); opacity: 1; }
}
@media (max-width: 899px) {
  .motion .recipe-file { left: 50%; top: 0; transform: translate(-50%, -70%) scale(.6) rotate(-8deg); }
  .motion .is-sending .recipe-file { animation-name: travel-down; }
  @keyframes travel-down {
    0%   { top: 0;    transform: translate(-50%, -70%) scale(.6) rotate(-8deg); opacity: 0; }
    25%  { opacity: 1; transform: translate(-30%, -40%) scale(.95) rotate(4deg); }
    100% { top: 100%; transform: translate(-50%, -100%) scale(.94) rotate(0); opacity: 1; }
  }
}
.motion .send-to { opacity: .55; transition: opacity .6s ease 1.9s; }
.motion .is-sending .send-to { opacity: 1; }
@media (min-width: 900px) {
  .send-stage { grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr) minmax(0, 1.1fr); align-items: center; gap: 1.5rem; margin: 3.5rem auto 2rem; }
  .send-from { width: 100%; max-width: 300px; margin: 0 auto; }
  .send-path { height: 100%; min-height: 160px; }
}

/* ---------- 6. Glad to help ---------- */

.scene-invite { padding-bottom: 3rem; }
.invite-grid { display: grid; justify-items: center; text-align: center; gap: .9rem; max-width: 40rem; margin-inline: auto; }
.yolk { position: relative; width: min(64vw, 240px); aspect-ratio: 1; border-radius: 50%; background: var(--yolk); display: grid; place-items: center; margin-bottom: .4rem; }
.invite-float { width: 46%; }
.invite-icon { width: 100%; height: auto; }
.yolk .float-shadow { background: rgba(60, 30, 0, .22); }
.invite-lede { text-align: center; margin-top: 0; }
.invite-says { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); margin: -.2rem 0 -.2rem; }
.invite-grid .actions { margin-top: .4rem; }
.invite-grid .cta-note { margin-top: 0; }
.next-steps { margin: .6rem auto 0; padding-left: 1.3rem; max-width: 36rem; text-align: left; font-size: 1rem; color: var(--ink-2); text-wrap: pretty; }
.next-steps li + li { margin-top: .4rem; }
.next-steps strong { color: var(--ink); font-weight: 600; }
.invite-address { font-size: .92rem; color: var(--ink-2); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) { .yolk { width: 360px; } }
/* The address and its copy button matter where there may be no mail app; a phone opens Mail. */
@media (hover: none) and (pointer: coarse) and (max-width: 699px) { .invite-address { display: none; } }

.page-404 .page-head { text-align: left; }
.mascot-tile { border-radius: 22px; box-shadow: var(--shadow-soft); margin-bottom: 1.2rem; }

/* ---------- Documents ---------- */

.document { padding-top: 2.5rem; }
.page-head { max-width: 46rem; padding-bottom: 2rem; border-bottom: 1px solid var(--hair); }
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.02; }
.page-head .lede { margin-top: 1rem; max-width: 46ch; }
.page-head .meta { margin-top: 1rem; }
.page-head .meta:empty { display: none; }
.page-head .actions .meta { margin: 0; }
.document-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2rem; }
.document-aside { display: grid; gap: 1.2rem; align-content: start; }
.callout { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-s); padding: 1.1rem 1.2rem; font-size: .95rem; }
.callout-title, .contents-title { font-weight: 700; font-size: 1rem; line-height: 1.4; letter-spacing: 0; margin: 0 0 .5rem; }
.callout ul, .contents ul { margin: 0; padding-left: 1.1rem; }
.callout li + li, .contents li + li { margin-top: .35rem; }
.contents { font-size: .95rem; }
.contents .toc > ul { padding-left: 1.1rem; }
.contents a { color: var(--ink-2); text-decoration: none; }
.contents a:hover { color: var(--accent); text-decoration: underline; }
.contents:has(.toc:empty) { display: none; }

.prose { max-width: 42rem; min-width: 0; font-size: 1.05rem; line-height: 1.6; }
.prose h2 { font-size: 1.6rem; margin: 2.8rem 0 .9rem; scroll-margin-top: 4.5rem; letter-spacing: -0.025em; font-weight: 700; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: .9em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: .8rem 0; }
.prose li + li { margin-top: .45rem; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2.5rem 0; }
.prose blockquote { margin: 1.2rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--hair); }
.prose th { font-weight: 600; }
.prose td.num { text-align: right; white-space: nowrap; }
.prose pre { margin: 1rem 0; }
.prose dl { margin: 1rem 0; }
.prose dt { font-weight: 600; margin-top: 1rem; }
.prose dd { margin: .3rem 0 0; color: var(--ink-2); }
.prose .notice { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--hair)); border-radius: 14px; padding: .9rem 1.1rem; margin: 1.2rem 0; font-size: .98rem; }
.prose .notice p + p { margin-top: .6em; }
.prose .big-link { display: inline-flex; margin-top: .4rem; }

.contact-card {
  display: grid; gap: .5rem; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-s);
  padding: 1.1rem 1.2rem; margin: 1.4rem 0; font-size: 1rem;
}
.contact-card .address { font-weight: 700; color: var(--ink); font-size: 1.1rem; word-break: break-all; }
.contact-card .row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.contact-card .meta { font-size: .9rem; }

.faq details { border-top: 1px solid var(--hair); padding: .2rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; color: var(--accent); font-weight: 500; font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; content: "–" / ""; }
.faq .answer { padding: 0 0 1.1rem; color: var(--ink-2); }
.faq .answer p + p { margin-top: .6em; }
.faq .answer strong { color: var(--ink); }
.faq .faq-group { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 2.4rem 0 .5rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 2.6rem; margin: .9rem 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }

@media (min-width: 900px) {
  .document { padding-top: 3.5rem; }
  .document-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; }
  .document-aside { position: sticky; top: 4.5rem; }
}

/* ---------- Tablet: between a phone and a desk ---------- */

@media (min-width: 600px) and (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.5rem; }
  .plate-hero { width: min(48vw, 420px); }
  .find-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .tonight-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .answer-saved { grid-column: 1 / -1; }
  .rail-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; }
  .screen-week { width: 100%; max-width: 280px; }
}
