/* Porzio website. Tokens mirror the app's theme in src/constants/theme: same palette, type, radii and shadows. */

@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/DMSans_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/DMSans_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/DMSans_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/DMSans_700Bold.ttf') format('truetype'); }

:root {
  color-scheme: light;

  /* Primitives */
  --neutral-0: #ffffff; --neutral-50: #fafaf6; --neutral-100: #eff1eb; --neutral-150: #e9ece3; --neutral-300: #d6dfcf;
  --neutral-600: #65716a; --neutral-650: #596355; --neutral-900: #202b26;
  --green-50: #eaf4ec; --green-600: #188e63; --green-700: #105b39;
  --teal-500: #2e9f8d; --gold-200: #f5d78e; --gold-500: #c4a050; --lavender-500: #9772b5;
  --charcoal: #1a1f1c; --mint: #8fdcb8;
  /* Light tints of the three macro colours, for the feature cards. */
  --gold-50: #fbf3df; --lavender-50: #f1ebf7;

  /* Roles */
  --surface: var(--neutral-0);
  --text: var(--neutral-900); --text-2: var(--neutral-600); --text-brand: var(--green-600); --text-brand-strong: var(--green-700);
  --action: var(--green-600); --action-pressed: var(--green-700); --action-subtle: var(--green-50); --action-subtle-pressed: #dcebdf;
  --hairline: var(--neutral-150);
  --protein: var(--teal-500); --carbs: var(--gold-500); --fat: var(--lavender-500);

  /* Effects */
  --shadow-card: 0 0 16px #00000012;
  --shadow-lift: 0 12px 32px -8px rgba(32, 43, 38, 0.22), 0 2px 8px rgba(32, 43, 38, 0.08);
  --shadow-brand: 0 12px 24px -10px rgba(16, 91, 57, 0.6), 0 2px 6px #0f291a0f;

  /* Layout */
  --radius-md: 16px; --radius-input: 20px; --radius-lg: 24px; --radius-card: 36px; --radius-full: 9999px;
  --radius-band: clamp(32px, 4vw, 56px);
  --gutter: 24px; --max: 1200px; --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --quick: 160ms; --standard: 280ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.menu-open { overflow: hidden; }
body {
  margin: 0; min-height: 100dvh; background: var(--surface); color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--green-50); color: var(--green-700); }

/* A crisp brand ring, no glow, the way the app shows focus. */
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; border-radius: var(--radius-full);
  background: var(--text); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform var(--standard) var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* Icons are the app's own SVGs, painted in the current text colour. */
.icon {
  --size: 24px; display: inline-block; flex: none; width: var(--size); height: var(--size); background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.i-photo { --src: url('icons/selector-photo.svg'); }
.i-describe { --src: url('icons/selector-describe.svg'); }
.i-barcode { --src: url('icons/selector-barcode.svg'); }
.i-recipes { --src: url('icons/selector-recipes.svg'); }
.i-label { --src: url('icons/mode-scan-label.svg'); }
.i-check { --src: url('icons/meal-check.svg'); }
.i-close { --src: url('icons/close.svg'); }
.i-flash { --src: url('icons/flash.svg'); }

/* ---------- Type ---------- */
.display { font-weight: 700; font-size: clamp(2.75rem, 1.5rem + 4.2vw, 4.625rem); line-height: 0.98; letter-spacing: -0.045em; }
.title { font-weight: 700; font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem); line-height: 1.02; letter-spacing: -0.04em; }
.display .accent, .title .accent { display: block; color: var(--text-brand); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.5; color: var(--text-2); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px 6px 10px; border-radius: var(--radius-full);
  background: var(--action-subtle); color: var(--text-brand-strong); font-size: 14px; font-weight: 500; line-height: 20px;
}
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 3px rgba(24, 142, 99, 0.18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border: 0; border-radius: var(--radius-full); font-size: 16px; font-weight: 600; line-height: 20px; cursor: pointer; white-space: nowrap;
  transition: background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--action); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--action-pressed); }
.btn-secondary { background: var(--action-subtle); color: var(--text-brand-strong); }
.btn-secondary:hover { background: var(--action-subtle-pressed); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: none; }

/* Store buttons: the app is not on the stores yet, so they say so. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 24px 10px 18px; border-radius: 18px;
  background: var(--text); color: #fff; line-height: 1.15; transition: transform var(--quick) var(--ease);
}
a.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.store strong { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; }
.store.light { background: #fff; color: var(--text); }
.store.light small { color: var(--text-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color var(--standard) var(--ease), box-shadow var(--standard) var(--ease); }
.site-header.scrolled { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 rgba(32, 43, 38, 0.06); }
.nav { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-right: auto; border-radius: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 14px; border-radius: var(--radius-full); color: var(--text-2); font-size: 15px; font-weight: 500; transition: color var(--quick), background-color var(--quick); }
.nav-links a:hover { color: var(--text); background: rgba(32, 43, 38, 0.05); }
.nav .btn-small { display: none; }

.menu-button { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; border: 0; border-radius: var(--radius-full); background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-button span { position: relative; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: background-color var(--quick); }
.menu-button span::before, .menu-button span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--standard) var(--ease); }
.menu-button span::before { transform: translateY(-6px); }
.menu-button span::after { transform: translateY(6px); }
.menu-open .menu-button span { background: transparent; }
.menu-open .menu-button span::before { transform: rotate(45deg); }
.menu-open .menu-button span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0; z-index: 49; padding: 8px var(--gutter) 24px;
  background: rgba(255, 255, 255, 0.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 32px -16px rgba(32, 43, 38, 0.18); border-radius: 0 0 28px 28px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--standard) var(--ease), transform var(--standard) var(--ease), visibility 0s linear var(--standard);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 60px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; border-bottom: 1px solid var(--hairline); }
.mobile-menu .btn { width: 100%; margin-top: 20px; }
.menu-scrim { position: fixed; inset: 0; z-index: 48; background: rgba(20, 31, 26, 0.38); opacity: 0; visibility: hidden; transition: opacity var(--standard) var(--ease), visibility 0s linear var(--standard); }
.menu-open .menu-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open .site-header { background: #fff; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav .btn-small { display: inline-flex; }
  .menu-button, .mobile-menu, .menu-scrim { display: none; }
}

/* Keep navigation usable when JavaScript is disabled or fails to download. */
@media (max-width: 899px) {
  html:not(.js) .menu-button { display: none; }
  html:not(.js) .nav { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav-links { display: flex; flex-wrap: wrap; order: 3; width: 100%; }
}

/* ---------- Hero ---------- */
/* The app's brand tint: green at the top of the page, fading to nothing. */
.page-tint { position: absolute; top: 0; left: 0; right: 0; height: 1000px; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 55% at 78% 0%, rgba(24, 142, 99, 0.13), transparent 70%), linear-gradient(180deg, rgba(24, 142, 99, 0.1), rgba(24, 142, 99, 0) 60%); }
main { position: relative; isolation: isolate; }
/* Keep the oversized plate inside this section without creating a horizontal page scroller. */
.hero { padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); overflow-x: hidden; overflow-x: clip; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead { max-width: 500px; }
.hero-copy .stores { margin-top: 8px; }

/* The plate is a cut-out photograph. The phone above it has a clear screen, so what it "sees" is the plate itself. */
.stage { --d: min(128vw, 600px); position: relative; width: var(--d); height: calc(var(--d) * 1.14); justify-self: center; margin-inline: calc((100% - var(--d)) / 2); }
.plate { position: absolute; left: 0; top: 7%; width: var(--d); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e9e6df;
  box-shadow: 0 50px 70px -30px rgba(15, 41, 26, 0.45), 0 18px 28px -14px rgba(15, 41, 26, 0.3); }
.plate img { width: 100%; height: 100%; object-fit: cover; }

.lens {
  --w: calc(var(--d) * 0.54); --u: calc(var(--w) / 300);
  position: absolute; z-index: 2; left: 22%; top: 0; width: var(--w); aspect-ratio: 300 / 620; rotate: -7deg;
  border: calc(9 * var(--u)) solid var(--charcoal); border-radius: calc(48 * var(--u));
  box-shadow: 0 0 0 calc(1.5 * var(--u)) #3a423e, 0 calc(40 * var(--u)) calc(70 * var(--u)) calc(-20 * var(--u)) rgba(10, 30, 20, 0.6), 0 calc(12 * var(--u)) calc(24 * var(--u)) rgba(10, 30, 20, 0.28);
}
.lens-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: calc(39 * var(--u)); font-size: calc(12 * var(--u)); line-height: 1.3;
  -webkit-backdrop-filter: saturate(1.2) brightness(1.04); backdrop-filter: saturate(1.2) brightness(1.04);
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.34), rgba(10, 16, 13, 0) 20%);
  box-shadow: inset 0 0 calc(30 * var(--u)) rgba(0, 0, 0, 0.2);
}
.lens-island { position: absolute; top: calc(9 * var(--u)); left: 50%; width: calc(80 * var(--u)); height: calc(22 * var(--u)); border-radius: 99px; background: var(--charcoal); translate: -50% 0; }
.lens-button { position: absolute; top: calc(42 * var(--u)); display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; color: #fff;
  background: rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lens-button .icon { --size: calc(18 * var(--u)); }
.lens-close { left: calc(14 * var(--u)); }
.lens-flash { right: calc(14 * var(--u)); }
/* The white line that passes over a meal while it is read, with a soft trail above it. */
.lens-sweep { position: absolute; left: 0; right: 0; top: 0; height: calc(90 * var(--u)); border-bottom: calc(2 * var(--u)) solid #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28)); opacity: 0; animation: lens-sweep 9s linear infinite; }

.pin { position: absolute; z-index: 2; }
.pin i { position: absolute; left: calc(-6 * var(--u)); top: calc(-6 * var(--u)); width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%;
  background: var(--action); border: calc(2.5 * var(--u)) solid #fff; box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.3); }
.pin::before { content: ''; position: absolute; left: calc(-0.75 * var(--u)); bottom: calc(4 * var(--u)); width: calc(1.5 * var(--u)); height: calc(16 * var(--u)); background: #fff; }
.pin > span { position: absolute; left: 0; bottom: calc(18 * var(--u)); translate: -50% 0; display: grid; justify-items: center; padding: calc(6 * var(--u)) calc(11 * var(--u));
  border-radius: calc(12 * var(--u)); background: #fff; white-space: nowrap; box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, 0.22); transform-origin: 50% 130%; }
.pin b { font-weight: 600; }
.pin em { color: var(--text-brand); font-weight: 600; }
.pin-avocado { left: 22%; top: 38%; animation: pin-a 9s var(--ease) infinite; }
.pin-salmon { left: 70%; top: 47%; animation: pin-b 9s var(--ease) infinite; }
.pin-quinoa { left: 34%; top: 71%; animation: pin-c 9s var(--ease) infinite; }

.lens-result { position: absolute; left: calc(8 * var(--u)); right: calc(8 * var(--u)); bottom: calc(8 * var(--u)); display: grid; gap: calc(10 * var(--u)); padding: calc(13 * var(--u));
  border-radius: calc(26 * var(--u)); background: rgba(255, 255, 255, 0.96); box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, 0.25); animation: lens-result 9s var(--ease) infinite; }
.lens-result-row { display: flex; justify-content: space-between; align-items: center; padding: 0 calc(4 * var(--u)); }
.lens-result-row b { display: block; font-weight: 600; font-size: calc(14 * var(--u)); }
.lens-result-row small { display: block; font-size: calc(11 * var(--u)); color: var(--text-2); }
.lens-result-row strong { font-weight: 700; font-size: calc(22 * var(--u)); letter-spacing: -0.02em; }
.lens-result-row strong small { display: inline; font-weight: 500; }
.lens-add { display: grid; place-items: center; height: calc(40 * var(--u)); border-radius: 99px; background: var(--action); color: #fff; font-weight: 600; font-size: calc(13 * var(--u)); }

.orbit { position: absolute; z-index: 3; display: none; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: var(--radius-full); background: #fff;
  box-shadow: var(--shadow-lift); font-size: 14px; color: var(--text-2); white-space: nowrap; }
.orbit i { width: 10px; height: 10px; border-radius: 50%; }
.orbit b { color: var(--text); font-weight: 600; }
.orbit-protein { top: 15%; right: -3%; animation: orbit-a 9s var(--ease) infinite; }
.orbit-protein i { background: var(--protein); }
.orbit-carbs { top: 47%; right: -6%; animation: orbit-b 9s var(--ease) infinite; }
.orbit-carbs i { background: var(--carbs); }
.orbit-fat { bottom: 12%; right: -1%; animation: orbit-c 9s var(--ease) infinite; }
.orbit-fat i { background: var(--fat); }

/* One 9 second loop: the sweep reads the plate, the tags land one by one, the result rises, the macros follow. */
@keyframes lens-sweep { 0%, 2% { opacity: 0; transform: translateY(-100%); } 4% { opacity: 1; } 20% { opacity: 1; } 24%, 100% { opacity: 0; transform: translateY(620%); } }
@keyframes pin-a { 0%, 12% { opacity: 0; scale: 0.5; } 16%, 90% { opacity: 1; scale: 1; } 94%, 100% { opacity: 0; scale: 0.9; } }
@keyframes pin-b { 0%, 17% { opacity: 0; scale: 0.5; } 21%, 90% { opacity: 1; scale: 1; } 94%, 100% { opacity: 0; scale: 0.9; } }
@keyframes pin-c { 0%, 22% { opacity: 0; scale: 0.5; } 26%, 90% { opacity: 1; scale: 1; } 94%, 100% { opacity: 0; scale: 0.9; } }
@keyframes lens-result { 0%, 29% { transform: translateY(130%); } 35%, 90% { transform: none; } 95%, 100% { transform: translateY(130%); } }
@keyframes orbit-a { 0%, 36% { opacity: 0; translate: -16px 0; } 40%, 90% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 0; } }
@keyframes orbit-b { 0%, 40% { opacity: 0; translate: -16px 0; } 44%, 90% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 0; } }
@keyframes orbit-c { 0%, 44% { opacity: 0; translate: -16px 0; } 48%, 90% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 0; } }

@media (min-width: 640px) { .orbit { display: inline-flex; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
  .stage { --d: clamp(420px, 38vw, 560px); margin-inline: 0 2%; }
}
@media (max-width: 959px) {
  .hero-copy { justify-items: center; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-copy .stores { justify-content: center; }
}

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding: 12px 0 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; padding: 11px 20px 11px 16px; border-radius: var(--radius-full); background: #fff; box-shadow: var(--shadow-card); font-size: 15px; font-weight: 500; white-space: nowrap; }
.ticker-track b { color: var(--text-2); font-weight: 400; }
.ticker-track i { width: 8px; height: 8px; border-radius: 50%; }
.ticker-track .c1 { background: var(--protein); }
.ticker-track .c2 { background: var(--carbs); }
.ticker-track .c3 { background: var(--fat); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement-wrap { padding: clamp(72px, 11vw, 168px) 0; }
.statement { max-width: 17.5em; font-size: clamp(1.875rem, 1rem + 3.6vw, 3.875rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.statement .w { color: #ccd4c7; transition: color 320ms var(--ease); }
.statement .w.on { color: var(--text); }
.statement .w.key.on { color: var(--text-brand); }

/* ---------- Features ---------- */
.features { padding-bottom: clamp(72px, 10vw, 136px); }
.stages { display: grid; gap: 20px; grid-template-columns: 1fr; }
.stagecard { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-card); isolation: isolate; }
.stage-copy { display: grid; gap: 12px; align-content: start; padding: 18px 28px 34px; }
.stage-copy h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.stage-copy p { color: var(--text-2); font-size: 17px; max-width: 30em; }
.way { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 14px; font-weight: 600; color: var(--way, var(--text-brand-strong)); }
.way .icon { --size: 20px; }
.demo { position: relative; height: 380px; overflow: hidden; display: grid; place-items: center; }

/* Describe: a working demo. */
.s-describe { background: linear-gradient(135deg, #e3f1e6, #f1f8ee); grid-template-rows: auto auto; }
.s-describe .stage-copy { padding: 34px 28px 8px; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.try-label { flex-basis: 100%; font-size: 14px; font-weight: 500; color: var(--text-2); }
.chip { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-full); background: #fff; box-shadow: inset 0 0 0 1px rgba(32, 43, 38, 0.12);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color var(--quick), color var(--quick), transform var(--quick) var(--ease); -webkit-tap-highlight-color: transparent; }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(32, 43, 38, 0.3); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--text); color: #fff; box-shadow: none; }
.demo-describe { height: auto; padding: 24px 20px 28px; }
.sheet-card { width: min(100%, 440px); display: grid; gap: 14px; padding: 20px; border-radius: 30px; background: #fff; box-shadow: 0 30px 60px -24px rgba(16, 91, 57, 0.35), 0 4px 12px rgba(32, 43, 38, 0.06); }
.field { min-height: 80px; padding: 14px 16px; border-radius: var(--radius-input); background: #f7f7f7; box-shadow: inset 0 0 0 1px #d0d0d0; font-size: 16px; line-height: 26px; transition: box-shadow var(--quick); }
.typing .field { box-shadow: inset 0 0 0 2px var(--action); }
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 1px; vertical-align: -4px; border-radius: 2px; background: var(--action); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rows { display: grid; align-content: start; min-height: 176px; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; border-bottom: 1px solid var(--hairline); font-size: 15px; animation: row-in 320ms var(--ease) both; }
.rows li b { color: var(--text-2); font-weight: 400; white-space: nowrap; }
@keyframes row-in { from { opacity: 0; translate: 0 10px; } }
.total { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.total-kcal { display: flex; align-items: baseline; gap: 6px; }
.total-kcal b { font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.total-kcal span { color: var(--text-2); }
.total-macros { display: flex; gap: 12px; font-size: 13px; color: var(--text-2); }
.total-macros span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.total-macros i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.total-macros b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fake-btn { display: grid; place-items: center; height: 52px; border-radius: var(--radius-full); background: var(--action); color: #fff; font-weight: 600; box-shadow: var(--shadow-brand); }

/* Scan label: the camera's charcoal, a paper label and the line that reads it. */
.s-label { background: var(--charcoal); color: #fff; --way: var(--mint); }
.s-label .stage-copy p { color: rgba(255, 255, 255, 0.68); }
.paper { width: 232px; padding: 16px 18px 12px; border-radius: 6px; background: #fbfaf5; color: var(--text); font-size: 12px; rotate: -4deg; translate: 0 -34px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
.paper > b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.paper > small { display: block; padding-bottom: 6px; border-bottom: 5px solid var(--text); color: var(--text-2); }
.paper div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(32, 43, 38, 0.3); font-weight: 500; }
.paper div:last-child { border-bottom: 0; }
.corners { position: absolute; inset: 26px calc(50% - 150px) 86px; --c: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(var(--c), var(--c)) top left / 30px 3px, linear-gradient(var(--c), var(--c)) top left / 3px 30px,
    linear-gradient(var(--c), var(--c)) top right / 30px 3px, linear-gradient(var(--c), var(--c)) top right / 3px 30px,
    linear-gradient(var(--c), var(--c)) bottom left / 30px 3px, linear-gradient(var(--c), var(--c)) bottom left / 3px 30px,
    linear-gradient(var(--c), var(--c)) bottom right / 30px 3px, linear-gradient(var(--c), var(--c)) bottom right / 3px 30px;
  background-repeat: no-repeat; }
.scanline { position: absolute; left: calc(50% - 150px); right: calc(50% - 150px); top: 26px; height: 70px; border-bottom: 2px solid #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18)); animation: scan 8s var(--ease) infinite; }
.label-sheet { position: absolute; left: 16px; right: 16px; bottom: 16px; max-width: 360px; margin-inline: auto; display: grid; gap: 12px; padding: 18px 20px; border-radius: 26px; background: #fff; color: var(--text);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35); animation: sheet 8s var(--ease) infinite; }
.label-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.label-sheet-head b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.label-sheet-head span { padding: 4px 14px; border-radius: var(--radius-full); background: #f1f1f1; font-size: 14px; font-weight: 500; }
.label-nums { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
.label-nums small { display: block; font-size: 12px; color: var(--text-2); }
.label-nums b { font-size: 16px; font-weight: 600; }
.impact { display: grid; gap: 7px; }
.impact small { font-size: 12px; font-weight: 500; }
.impact i { display: block; height: 5px; border-radius: 99px; background: linear-gradient(var(--c), var(--c)) left / calc(var(--p) * 100%) 100% no-repeat, #e8e8e8; }
@keyframes scan { 0% { transform: translateY(-70px); opacity: 0; } 4% { opacity: 1; } 18% { transform: translateY(200px); } 34% { transform: translateY(-60px); opacity: 1; } 38%, 100% { transform: translateY(-60px); opacity: 0; } }
@keyframes sheet { 0%, 36% { transform: translateY(140%); } 43%, 90% { transform: none; } 96%, 100% { transform: translateY(140%); } }

/* Barcode */
.s-barcode { background: var(--gold-50); --way: #79510b; }
.pack { position: relative; width: 236px; display: grid; justify-items: center; gap: 8px; padding: 24px 22px 12px; border-radius: 18px; background: #fff; translate: 0 -44px; box-shadow: 0 24px 40px -18px rgba(121, 81, 11, 0.35), 0 2px 8px rgba(32, 43, 38, 0.06); }
.bars { width: 100%; height: 92px; background: repeating-linear-gradient(90deg, var(--text) 0 3px, transparent 3px 5px, var(--text) 5px 6px, transparent 6px 10px, var(--text) 10px 14px, transparent 14px 16px, var(--text) 16px 17px, transparent 17px 19px, var(--text) 19px 21px, transparent 21px 26px, var(--text) 26px 27px, transparent 27px 29px); }
.digits { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; font-variant-numeric: tabular-nums; }
.laser { position: absolute; left: 6px; right: 6px; top: 24px; height: 2px; border-radius: 2px; background: var(--action); box-shadow: 0 0 0 4px rgba(24, 142, 99, 0.14); animation: laser 7s var(--ease) infinite; }
.found { position: absolute; left: 50%; bottom: 36px; width: min(calc(100% - 40px), 330px); translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lift); animation: found 7s var(--pop) infinite; }
.found-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--action); color: #fff; }
.found-mark .icon { --size: 20px; }
.found-text { flex: 1; min-width: 0; }
.found-text b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.found-text small { display: block; font-size: 13px; color: var(--text-2); }
.found strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.found strong small { font-size: 13px; font-weight: 500; color: var(--text-2); }
@keyframes laser { 0% { transform: none; opacity: 0; } 4% { opacity: 1; } 16% { transform: translateY(90px); } 30% { transform: none; opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes found { 0%, 32% { opacity: 0; scale: 0.8; } 38%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: 0.95; } }

/* Recipes */
.s-recipe { background: var(--lavender-50); --way: #5f3f80; }
.recipe-card { width: min(calc(100% - 40px), 330px); display: grid; gap: 6px; padding: 20px; border-radius: 26px; background: #fff; box-shadow: 0 24px 40px -18px rgba(95, 63, 128, 0.4), 0 2px 8px rgba(32, 43, 38, 0.06); }
.recipe-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; }
.recipe-head b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.recipe-head small { font-size: 13px; color: var(--text-2); }
.recipe-card li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; animation: ingredient 7s var(--ease) infinite both; }
.recipe-card li span:last-child { color: var(--text-2); }
.recipe-card li:nth-child(2) { animation-delay: 0.15s; }
.recipe-card li:nth-child(3) { animation-delay: 0.3s; }
.recipe-card li:nth-child(4) { animation-delay: 0.45s; }
.recipe-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; }
.recipe-foot b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.recipe-foot small { display: block; font-size: 12px; color: var(--text-2); }
.recipe-btn { position: relative; display: grid; place-items: center; min-width: 156px; height: 44px; padding: 0 16px; overflow: hidden; border-radius: var(--radius-full); background: var(--action); color: #fff; font-size: 14px; font-weight: 600; animation: press 7s var(--ease) infinite; }
.recipe-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.recipe-btn .icon { --size: 18px; }
.recipe-btn-a { animation: label-a 7s var(--ease) infinite; }
.recipe-btn-b { animation: label-b 7s var(--ease) infinite; }
.recipe-btn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: #fff; opacity: 0; animation: tap 7s var(--ease) infinite; }
@keyframes ingredient { 0%, 4% { opacity: 0; translate: 0 8px; } 10%, 90% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 0; } }
@keyframes press { 0%, 50% { scale: 1; } 53% { scale: 0.94; } 57%, 100% { scale: 1; } }
@keyframes tap { 0%, 50% { opacity: 0; scale: 0.4; } 52% { opacity: 0.4; } 60%, 100% { opacity: 0; scale: 4; } }
@keyframes label-a { 0%, 54% { opacity: 1; translate: 0 0; } 58%, 92% { opacity: 0; translate: 0 -12px; } 96%, 100% { opacity: 1; translate: 0 0; } }
@keyframes label-b { 0%, 54% { opacity: 0; translate: 0 12px; } 58%, 92% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; translate: 0 12px; } }

/* Photo */
.s-photo { background: #f4f2ed; }
.photo-media { position: relative; height: 380px; overflow: hidden; }
.photo-media img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 15%; transition: transform 1200ms var(--ease); }
.photo-media::after { content: ''; position: absolute; inset: 70% 0 0 0; background: linear-gradient(180deg, rgba(244, 242, 237, 0), #f4f2ed); }
.s-photo:hover .photo-media img { transform: scale(1.04); }

@media (min-width: 720px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .s-describe { grid-column: span 2; grid-template-columns: 1fr 1.05fr; grid-template-rows: none; align-items: center; }
  .s-describe .stage-copy { padding: 48px 12px 48px 48px; }
  .demo-describe { padding: 40px 40px 44px 16px; }
  .stage-copy { padding: 18px 36px 40px; }
}
@media (min-width: 1040px) {
  .stages { grid-template-columns: repeat(12, 1fr); }
  .s-describe { grid-column: span 12; }
  .s-describe .stage-copy { padding: 64px 24px 64px 72px; }
  .demo-describe { padding: 56px 72px 56px 24px; }
  .s-label, .s-photo { grid-column: span 7; }
  .s-barcode, .s-recipe { grid-column: span 5; }
  .demo, .photo-media { height: 420px; }
  .demo-describe { height: auto; }
}

/* ---------- Your day: the Daily summary, as large as it deserves ---------- */
.day { position: relative; overflow: hidden; margin-inline: clamp(8px, 1.6vw, 24px); padding: clamp(64px, 9vw, 128px) 0; border-radius: var(--radius-band); color: #fff;
  background: linear-gradient(150deg, #167f59 0%, var(--green-700) 52%, #0a3b25 100%);
  --protein: #63d3c0; --carbs: #f2d27e; --fat: #cfaee9; }
.day::before { content: ''; position: absolute; width: 900px; height: 900px; top: -480px; right: -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(24, 142, 99, 0.95), rgba(24, 142, 99, 0.4) 45%, rgba(24, 142, 99, 0)); }
.day-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.day-copy { display: grid; gap: 20px; align-content: start; }
.day .title .accent { color: var(--mint); }
.day .lead { color: rgba(255, 255, 255, 0.8); max-width: 30em; }
.day-points { display: grid; gap: 18px; margin-top: 12px; max-width: 30em; }
.day-points li { padding-left: 18px; border-left: 2px solid rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.76); }
.day-points b { color: #fff; font-weight: 600; }

.board { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.board-top { display: flex; justify-content: space-between; font-weight: 500; }
.board-top span:last-child { color: var(--mint); }
.board-kcal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.board-kcal b { font-size: clamp(4.25rem, 2rem + 9vw, 8rem); line-height: 0.95; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.board-kcal span { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem); color: rgba(255, 255, 255, 0.7); }
.bar { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.bar.big { height: 14px; }
.bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--c, #fff); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1300ms var(--ease); }
.board-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); margin-top: 10px; }
.board-macro { display: grid; gap: 6px; }
.board-macro > span { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.board-macro > b { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.board-macro small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.board-macro .bar { margin-top: 4px; }
.board-weight { display: flex; align-items: center; gap: 18px; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.board-weight small { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.board-weight b { font-size: 20px; font-weight: 600; white-space: nowrap; }
.spark-wrap { flex: 1; min-width: 0; }
.board-weight svg { width: 100%; height: 44px; overflow: visible; }
.board-weight em { color: var(--mint); font-weight: 500; white-space: nowrap; }
.spark { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease) 300ms; }
.board.in-view .spark { stroke-dashoffset: 0; }
@media (min-width: 980px) { .day-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; } }

/* ---------- Privacy ---------- */
.privacy { padding: clamp(80px, 11vw, 152px) 0 clamp(48px, 6vw, 80px); }
.privacy-grid, .questions-grid { display: grid; gap: 40px; }
.privacy-copy { display: grid; gap: 16px; align-content: start; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid var(--hairline); }
.facts li:last-child { border-bottom: 1px solid var(--hairline); }
.fact-n { padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--text-brand); font-variant-numeric: tabular-nums; }
.facts b { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.facts p { margin-top: 6px; color: var(--text-2); max-width: 32em; }

/* ---------- Questions ---------- */
.questions { padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 136px); }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 0; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--action-subtle) center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23105b39' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform var(--standard) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 52px 24px 0; color: var(--text-2); font-size: 17px; max-width: 38em; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--standard) var(--ease), content-visibility var(--standard) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
@media (min-width: 980px) {
  .privacy-grid, .questions-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
  .privacy-copy, .questions-grid > .title { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Download: the app icon, at full size ---------- */
.download { padding-bottom: clamp(24px, 3vw, 40px); }
.download .container { max-width: none; padding-inline: clamp(8px, 1.6vw, 24px); }
.cta { position: relative; overflow: hidden; display: grid; align-items: center; min-height: clamp(420px, 44vw, 560px); padding: clamp(48px, 7vw, 104px) clamp(28px, 7vw, 112px); border-radius: var(--radius-band); background: var(--green-600); color: #fff; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 20% 0%, rgba(255, 255, 255, 0.12), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(0, 0, 0, 0.22), transparent 70%); }
.cta-mark { position: absolute; right: clamp(24px, 7vw, 120px); top: 50%; height: 78%; width: auto; max-width: none; translate: 0 -50%; rotate: 8deg; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.2)); }
.cta-copy { position: relative; display: grid; gap: 20px; justify-items: start; max-width: 560px; }
.cta .title { max-width: 9em; }
.cta .lead { color: rgba(255, 255, 255, 0.86); }
.cta .stores { margin-top: 8px; }
@media (max-width: 899px) { .cta-mark { right: -14%; top: 42%; height: 84%; opacity: 0.16; } }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-row .brand { margin-right: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin-inline: auto; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-full); color: var(--text-2); font-size: 15px; transition: color var(--quick); }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--text-2); font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--text-2); font-size: 14px; }
@media (max-width: 760px) { .footer-row { flex-direction: column; align-items: flex-start; } .footer-links { margin-inline: -12px; } }

/* ---------- Motion ---------- */
/* Content stays visible before scrolling, even if the script or observer fails. */
.js .reveal.in-view { animation: reveal 800ms var(--ease) backwards; animation-delay: var(--delay, 0ms); }
@keyframes reveal { from { transform: translateY(24px); } }
.rise { animation: rise 700ms var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes rise { from { transform: translateY(18px); } }
/* The looping demos rest while they are off screen. */
.js .loop:not(.live) * { animation-play-state: paused; }

/* ---------- Document pages (legal) ---------- */
.doc { padding: clamp(32px, 6vw, 72px) 0 96px; }
.doc-inner { max-width: 720px; margin-inline: auto; }
.doc-head { display: grid; gap: 12px; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--hairline); }
.doc-head p { color: var(--text-2); }
.doc-body { font-size: 17px; line-height: 1.7; }
.doc-body h2 { font-size: 23px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 12px; }
.doc-body h3 { font-size: 18px; line-height: 24px; font-weight: 600; margin: 32px 0 8px; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body table { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { padding-left: 1.25em; }
.doc-body ul { list-style: disc; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: var(--text-brand-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--hairline); }
.doc-body th { font-weight: 600; background: var(--neutral-50); }
.doc-body blockquote { margin: 0 0 16px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--action-subtle); color: var(--text-brand-strong); }

/* 404 */
.not-found { min-height: calc(100dvh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found .inner { display: grid; justify-items: center; gap: 20px; max-width: 520px; }
.not-found .code { font-size: clamp(6rem, 3rem + 14vw, 11rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; color: var(--text-brand); }

@media (max-width: 480px) {
  :root { --gutter: 20px; --header-h: 64px; --radius-card: 30px; }
  .hero-copy .stores { width: 100%; }
  .hero-copy .store, .cta .store { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: 12px; }
  .cta .stores { width: 100%; }
  .cta { padding-inline: 22px; }
  .store { gap: 10px; }
  .store strong { font-size: 16px; }
  .stage-copy { padding: 16px 24px 30px; }
  .s-describe .stage-copy { padding: 30px 24px 4px; }
  .demo-describe { padding: 20px 14px 22px; }
  .sheet-card { padding: 16px; border-radius: 26px; }
  .total-macros { gap: 10px; }
  .chip { padding: 0 16px; }
  .faq .answer { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lens-sweep, .scanline, .laser, .caret { display: none; }
  .ticker { overflow-x: auto; }
}

/* Until the tap, only the first label shows (also the resting state when motion is reduced). */
.recipe-btn-b { opacity: 0; }
