/* Know My Meals marketing site v2. App tokens + an editorial serif accent. */
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --bg: #F6F5F3; --paper: #FBFAF8; --card: #FFFFFF;
  --ink: #0C0D0F; --ink-2: #2A2C31; --soft: #62656C; --faint: #94969C;
  --line: rgba(12,13,15,.09); --line-2: rgba(12,13,15,.055); --chip: #EEEDEB;
  --protein: #2F6BEA; --carbs: #E9A23B; --fat: #8A6BEF; --streak: #F06A2B; --ok: #1F9D55;
  --wrap: 1200px; --ease: cubic-bezier(.22, .8, .16, 1);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 1px rgba(12,13,15,.03), 0 2px 6px rgba(12,13,15,.04);
  --shadow: 0 1px 2px rgba(12,13,15,.04), 0 12px 32px -14px rgba(12,13,15,.16);
  --shadow-lg: 0 1px 2px rgba(12,13,15,.05), 0 30px 60px -28px rgba(12,13,15,.32), 0 60px 120px -60px rgba(12,13,15,.25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em.s, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 40px); } }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--protein); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s; }
.nav.scrolled { background: rgba(246,245,243,.78); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); box-shadow: 0 1px 0 var(--line-2); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.035em; }
.mark img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--soft); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 15.5px; text-decoration: none; letter-spacing: -0.01em; transition: transform .3s var(--ease), background .2s, box-shadow .3s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(12,13,15,.2), 0 8px 20px -10px rgba(12,13,15,.6); }
.btn-ink:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Footer */
footer { padding: 80px 0 48px; color: var(--soft); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 48px; border-top: 1px solid var(--line); }
.foot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .about p { margin-top: 14px; max-width: 30ch; }
.legal-line { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--faint); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* Document pages */
.doc-hero { padding: 132px 0 36px; }
.doc-hero .kicker { margin-bottom: 18px; }
.doc-hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.doc-hero p { color: var(--soft); margin-top: 18px; font-size: 18px; max-width: 60ch; }
.doc-hero p a { color: var(--ink); }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 72px; padding: 24px 0 100px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc p { font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.toc a { text-decoration: none; color: var(--soft); display: block; padding-left: 14px; margin-left: -1px; border-left: 1px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: 700px; font-size: 17px; color: var(--ink-2); }
.prose .summary { background: var(--card); border-radius: 24px; padding: 28px 30px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2); margin-bottom: 52px; }
.prose .summary h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 14px; }
.prose .summary ul { margin: 0; padding-left: 20px; }
.prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin: 60px 0 16px; scroll-margin-top: 96px; }
.prose h3 { font-size: 18px; letter-spacing: -0.015em; margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--faint); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(12,13,15,.3); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.prose th, .prose td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose th { font-weight: 700; font-size: 13px; color: var(--soft); background: var(--paper); }
.prose tr:last-child td { border-bottom: 0; }
.prose .formula { background: var(--ink); color: #fff; border-radius: 20px; padding: 22px 24px; font-size: 16px; margin: 0 0 20px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.prose .formula span { color: #9A9DA4; }
.callout { background: var(--card); border-radius: 18px; padding: 18px 22px; box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 20px; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } .doc-hero { padding-top: 112px; } .prose table { display: block; overflow-x: auto; } }
.nf { min-height: 76vh; display: grid; place-items: center; text-align: center; padding-top: 64px; }
.nf h1 { font-size: clamp(56px, 10vw, 120px); font-weight: 700; letter-spacing: -0.055em; line-height: .95; }
.nf p { color: var(--soft); margin: 18px 0 30px; font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Live app replica (designed at 393 × 852, scaled by JS) ---------- */
.app { position: absolute; left: 0; top: 0; width: 393px; height: 852px; transform-origin: 0 0; font-size: 16px; line-height: 1.3; color: var(--ink); background: var(--bg); overflow: hidden; }
.app .status { position: relative; z-index: 2; background: var(--bg); height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px 0 40px; font-weight: 700; font-size: 17px; }
.app .status .ic { display: flex; gap: 6px; align-items: center; }
.app .hdr { padding: 6px 20px 0; }
.app .date { color: var(--soft); font-size: 14px; font-weight: 500; }
.app .title-row { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.app .circ { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.app .circ.dim { background: transparent; color: #C4C6CB; }
.app .title-row h3 { font-size: 34px; font-weight: 900; letter-spacing: -0.04em; }
.app .streak { margin-left: auto; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 99px; padding: 9px 14px; font-weight: 700; font-size: 17px; transform: translateY(-12px); }
.app .cal-card { margin: 14px 20px 0; background: #fff; border-radius: 22px; padding: 18px 20px 18px; }
.app .cal-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--soft); font-weight: 500; }
.app .cal-top b { color: var(--ink); font-weight: 700; }
.app .cal-mid { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 4px; }
.app .big { white-space: nowrap; font-size: 52px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.app .big small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--soft); margin-left: 4px; }
.app .toggle { display: flex; background: var(--chip); border-radius: 99px; padding: 4px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.app .toggle span { padding: 7px 14px; border-radius: 99px; color: var(--soft); }
.app .toggle span.on { background: var(--ink); color: #fff; }
.app .track { height: 6px; background: var(--chip); border-radius: 9px; overflow: hidden; }
.app .fill { height: 100%; width: 0; background: var(--ink); border-radius: 9px; transition: width 1.1s var(--ease); }
.app .macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 1px solid var(--line-2); margin-top: 18px; padding-top: 16px; }
.app .macro .lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); font-weight: 500; }
.app .macro .lbl i { width: 7px; height: 7px; border-radius: 50%; }
.app .macro .v { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 7px; font-variant-numeric: tabular-nums; }
.app .macro .v small { font-size: 12px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.app .macro .track { height: 4px; }
.app .sec { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 10px; font-weight: 700; font-size: 17px; }
.app .sec span { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.app .chips { display: flex; gap: 8px; padding: 0 20px; white-space: nowrap; overflow: hidden; }
.app .chip { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 8px 14px 8px 8px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.app .chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.app .chip em { font-style: normal; color: var(--soft); }
.app .scroll { transition: transform .7s var(--ease); }
.app .meals { margin: 0 20px; background: #fff; border-radius: 20px; overflow: hidden; }
.app .meal { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line-2); min-height: 62px; }
.app .meal:first-child { border-top: 0; }
.app .meal .t { color: var(--soft); font-size: 14px; }
.app .meal .n { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.app .meal .s { font-size: 13px; color: var(--soft); display: flex; align-items: center; gap: 6px; }
.app .meal .k { text-align: right; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.app .meal .k small { display: block; font-size: 11px; color: var(--soft); font-weight: 500; }
.app .meal.new { animation: rowIn .6s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: #F0F4FF; } to { opacity: 1; transform: none; background: #fff; } }
.app .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #D5D7DC; border-top-color: var(--soft); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.app .dock { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line-2); padding: 10px 16px 30px; z-index: 3; }
.app .bar { display: flex; align-items: center; gap: 10px; background: var(--chip); border-radius: 26px; padding: 7px 7px 7px 18px; min-height: 52px; }
.app .bar .field { flex: 1; font-size: 16px; color: var(--faint); line-height: 1.3; }
.app .bar .field.typed { color: var(--ink); }
.app .bar .field .caret { display: inline-block; width: 2px; height: 18px; background: var(--protein); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app .mic { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform .2s; }
.app .mic.press { transform: scale(.88); }
.app .cam { color: var(--ink); display: grid; place-items: center; }
.app .tabs { display: flex; justify-content: space-around; padding-top: 10px; font-size: 12px; font-weight: 700; color: var(--faint); }
.app .tabs div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app .tabs .on { color: var(--ink); }
.app .scrim { position: absolute; inset: 0; background: rgba(12,13,15,.32); opacity: 0; transition: opacity .35s; z-index: 4; pointer-events: none; }
.app .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 28px 28px 0 0; padding: 12px 24px 40px; z-index: 5; transform: translateY(105%); transition: transform .5s var(--ease); text-align: center; }
.app.sheet-on .scrim { opacity: 1; }
.app.sheet-on .sheet { transform: none; }
.app .grab { width: 36px; height: 5px; border-radius: 9px; background: #DADBDF; margin: 0 auto 22px; }
.app .sheet .lab { font-size: 13px; letter-spacing: .12em; font-weight: 700; color: var(--soft); }
.app .sheet .timer { font-size: 32px; font-weight: 700; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.app .wave { display: flex; justify-content: center; align-items: center; gap: 5px; height: 64px; }
.app .wave i { width: 4px; border-radius: 4px; background: var(--ink); height: 10px; animation: wv 1s ease-in-out infinite; }
@keyframes wv { 0%,100% { height: 10px; } 50% { height: var(--h, 40px); } }
.app .sheet .hint { color: var(--soft); font-size: 15px; margin-top: 8px; }
.app .sheet .stop { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); margin: 22px auto 0; display: grid; place-items: center; }
.app .sheet .stop::after { content: ""; width: 22px; height: 22px; background: #fff; border-radius: 5px; }
.app .sheet .big-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #E3E4E7; border-top-color: var(--ink); margin: 8px auto 18px; animation: spin .8s linear infinite; }
.app .sheet .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; animation: pop .45s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.app .sheet h4 { font-size: 22px; letter-spacing: -0.02em; }
.app .sheet .said { color: var(--soft); margin-top: 6px; font-size: 15px; }


/* ---------- Device frame (flat, no perspective) ---------- */
.device { --w: 300px; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .165);
  background: linear-gradient(150deg, #3a3b40 0%, #111215 18%, #0c0d0f 50%, #17181c 85%, #34353a 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 .5px rgba(12,13,15,.4), var(--shadow-lg); }
.device::before { content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 9%; border-radius: 0 3px 3px 0; background: #2a2b30; }
.device::after { content: ""; position: absolute; left: -2px; top: 19%; width: 3px; height: 5%; border-radius: 3px 0 0 3px; background: #2a2b30; box-shadow: 0 calc(var(--w) * .1) 0 #2a2b30; }
.device .screen { position: relative; aspect-ratio: 393 / 852; border-radius: calc(var(--w) * .132); overflow: hidden; background: #F6F6F7; isolation: isolate; container-type: inline-size; }
.device .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device .island { position: absolute; z-index: 10; top: 1.35%; left: 50%; transform: translateX(-50%); width: 31.5%; height: 4.3%; border-radius: 99px; background: #000; }
.device .swap > img { opacity: 0; transition: opacity .6s var(--ease); }
.device .swap > img.on { opacity: 1; }
.snap-photo { position: absolute; left: 5.1%; top: 46.4%; width: 89.8%; height: 29.3%; border-radius: 5.1cqw; overflow: hidden; z-index: 2; opacity: 0; transition: opacity .6s var(--ease); }
.snap-photo.on { opacity: 1; }
.snap-photo img { width: 100%; height: 100%; object-fit: cover; }
.snap-photo span { position: absolute; right: 3.2cqw; top: 3.2cqw; background: #fff; color: var(--ink); border-radius: 99px; font-size: 3.8cqw; font-weight: 500; padding: 1.6cqw 4cqw; }

/* ---------- Hero ---------- */
.hero { padding: 112px 0 24px; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--soft); padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3.5px rgba(31,157,85,.15); margin-left: 3px; }
.hero h1 { font-size: clamp(54px, 6.3vw, 92px); font-weight: 700; letter-spacing: -0.058em; line-height: .93; margin: 28px 0 28px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; font-size: 1.1em; line-height: .8; padding-right: .04em; }
.lede { font-size: clamp(18px, 1.55vw, 21px); color: var(--soft); max-width: 32ch; line-height: 1.5; }
.lede b { color: var(--ink); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.meta-row { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--faint); font-size: 14px; font-weight: 500; }
.meta-row svg { width: 17px; height: 17px; fill: currentColor; }
.meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.stage { position: relative; border-radius: 40px; overflow: hidden; display: grid; place-items: center; padding: 72px 24px; background: #ECE9E4; min-height: 740px; }
.stage > picture, .stage > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .device { z-index: 2; }
.fcard { position: absolute; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 20px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.6); padding: 14px 16px 15px; font-size: 14px; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.fcard.on { opacity: 1; transform: none; }
.fcard .k { display: flex; align-items: center; gap: 7px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; margin-bottom: 7px; }
.fcard .k svg { width: 13px; height: 13px; }
.fc-1 { left: 3%; top: 4%; width: 200px; }
.fc-1 .said { font-size: 16px; line-height: 1.4; color: var(--ink); min-height: 44px; }
.fc-2 { right: 3%; bottom: 7%; width: 214px; }
.fc-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; }
.fc-row:first-child { border-top: 0; }
.fc-row span:last-child { color: var(--soft); font-variant-numeric: tabular-nums; }
.fc-2 .tot { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.fc-2 .tot b { color: var(--ink); }
@media (max-width: 1080px) { .fc-1 { left: 3%; width: 190px; } .fc-2 { right: 3%; width: 206px; } }
@media (max-width: 960px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stage { min-height: 0; padding: 56px 16px; margin-inline: -8px; border-radius: 32px; }
  .stage .device { --w: 268px; }
  .fcard { display: none; }
}

/* ---------- Section scaffolding ---------- */
.sec { padding: clamp(96px, 12vw, 168px) 0 0; }
.head { max-width: 780px; }
.head .kicker { margin-bottom: 20px; }
.h2 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; letter-spacing: -0.05em; line-height: .98; }
.h2 em, .h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.08em; }
.sub { font-size: clamp(17px, 1.45vw, 20px); color: var(--soft); max-width: 44ch; margin-top: 22px; line-height: 1.55; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: none; margin-top: 30px; padding-bottom: 3px; border-bottom: 1.5px solid currentColor; transition: gap .25s var(--ease); }
.link-arrow:hover { gap: 12px; }

/* ---------- Examples ribbon ---------- */
.ribbon { padding: 120px 0 0; overflow: hidden; }
.ribbon-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.ribbon-head p { color: var(--faint); font-size: 14px; max-width: 30ch; text-align: right; }
.marquee { display: flex; gap: 16px; width: max-content; animation: marquee 90s linear infinite; padding: 6px 0 24px; }
.ribbon:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.ex { width: 268px; flex: none; background: var(--card); border-radius: 26px; padding: 8px 8px 18px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2); }
.ex img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 19px; background: #ECE9E4; }
.ex .b { padding: 14px 10px 0; }
.ex .via { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.ex .via svg { width: 13px; height: 13px; }
.ex q { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.4; color: var(--ink-2); quotes: "“" "”"; min-height: 44px; }
.ex .out { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.ex .kc { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ex .kc small { font-size: 12.5px; color: var(--soft); font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.ex .mc { display: flex; gap: 10px; font-size: 12.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.ex .mc i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
@media (max-width: 600px) { .ribbon-head { flex-direction: column; align-items: start; } .ribbon-head p { text-align: left; } .ex { width: 236px; } }

/* ---------- How it works (tabs) ---------- */
.ways { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; margin-top: 48px; }
.ways-list { display: grid; gap: 6px; }
.way { position: relative; display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 24px; padding: 22px 24px 24px; cursor: pointer; transition: background .35s, box-shadow .35s; }
.way:hover { background: rgba(255,255,255,.5); }
.way.on { background: var(--card); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2); }
.way h3 { display: flex; align-items: center; gap: 14px; font-size: 24px; letter-spacing: -0.03em; color: var(--faint); transition: color .3s; }
.way.on h3, .way:hover h3 { color: var(--ink); }
.way h3 .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--ink); flex: none; transition: background .3s, color .3s; }
.way.on h3 .ic { background: var(--ink); color: #fff; }
.way h3 .ic svg { width: 18px; height: 18px; }
.way p { color: var(--soft); font-size: 16.5px; line-height: 1.55; margin: 0 0 0 52px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.way.on p { max-height: 140px; opacity: 1; margin-top: 10px; }
.way .bar { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; }
.way.on .bar { opacity: 1; }
.way .bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.way.on.run .bar i { animation: prog var(--dur, 6s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
.ways-stage { position: relative; border-radius: 40px; background: linear-gradient(180deg, #EEECE8, #E6E3DE); display: grid; place-items: center; padding: 64px 24px; overflow: hidden; }
.ways-stage .device { --w: 300px; }
.ways-note { display: none; }
@media (max-width: 960px) {
  .ways { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .ways-list { grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--chip); padding: 4px; border-radius: 99px; order: -1; }
  .way { padding: 10px 4px; border-radius: 99px; text-align: center; }
  .way.on { box-shadow: var(--shadow-sm); }
  .way h3 { font-size: 14.5px; justify-content: center; letter-spacing: -0.01em; color: var(--soft); }
  .way h3 .ic, .way p { display: none; }
  .way .bar { left: 18px; right: 18px; bottom: 4px; }
  .ways-stage { padding: 48px 16px; border-radius: 32px; margin-inline: -8px; }
  .ways-stage .device { --w: 260px; }
  .ways-note { display: block; color: var(--soft); font-size: 17px; text-align: center; max-width: 34ch; margin: 6px auto 0; min-height: 3.2em; }
}

/* ---------- Ingredients ---------- */
.fix-visual { position: relative; }
.fix-photo { border-radius: 36px; overflow: hidden; aspect-ratio: 5 / 4; background: #ECE9E4; }
.fix-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.meal-card { position: relative; z-index: 2; width: min(430px, calc(100% - 32px)); margin: -150px 24px 0 auto; background: var(--card); border-radius: 28px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-2); padding: 24px; }
.meal-card .meta { font-size: 13.5px; color: var(--soft); font-weight: 500; }
.meal-card h3 { font-size: 26px; letter-spacing: -0.035em; margin-top: 4px; }
.mc-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 18px; background: var(--paper); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); }
.mc-total .kc { font-size: 44px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.mc-total .kc small { font-size: 14px; font-weight: 500; color: var(--soft); letter-spacing: 0; margin-left: 5px; }
.mc-total .macs { display: flex; gap: 14px; font-size: 12.5px; color: var(--soft); }
.mc-total .macs b { display: block; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mc-total .macs i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.ings { margin-top: 10px; }
.ing { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; align-items: center; width: 100%; padding: 11px 12px; border: 0; background: transparent; text-align: left; border-radius: 14px; cursor: pointer; transition: background .2s, box-shadow .2s; }
.ing:hover { background: var(--paper); }
.ing.sel { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ing .nm { font-weight: 700; font-size: 15.5px; }
.ing .amt { font-size: 13.5px; color: var(--soft); grid-column: 1; }
.ing .kc { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.portion { margin-top: 10px; padding: 16px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.portion .ph { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--soft); }
.portion .ph b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.portion input[type=range] { width: 100%; margin: 12px 0 10px; accent-color: var(--ink); height: 28px; }
.mults { display: flex; gap: 6px; }
.mults button { flex: 1; min-height: 40px; border-radius: 99px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; cursor: pointer; font-size: 14.5px; transition: background .2s, color .2s; }
.mults button.on { background: var(--ink); color: #fff; box-shadow: none; }
.checks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); font-size: 17px; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; }
.hint { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--protein); margin-top: 30px; }
.hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,107,234,.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(47,107,234,0); } }
@media (max-width: 960px) { .fix-visual { order: 2; } .meal-card { margin: -96px auto 0; width: calc(100% - 20px); padding: 20px; } .fix-photo { border-radius: 30px; margin-inline: -8px; } }

/* ---------- Repeat ---------- */
.duo { display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
.duo .device { --w: 286px; }
.duo .device + .device { margin-top: 64px; }
@media (max-width: 1100px) { .duo .device { --w: 250px; } }
@media (max-width: 960px) { .duo .device:first-child { display: none; } .duo .device + .device { margin-top: 0; --w: 280px; } }

/* ---------- Coach ---------- */
.dark { background: var(--ink); color: #fff; border-radius: clamp(32px, 4vw, 52px); margin: clamp(96px, 12vw, 168px) clamp(8px, 1.2vw, 20px) 0; padding: clamp(80px, 10vw, 140px) 0; }
.dark .kicker { color: #7D8088; }
.dark .h2 { color: #fff; }
.dark .h2 .mute { color: #6E7178; }
.dark .sub { color: #A2A5AC; }
.chat { background: #151619; border-radius: 30px; padding: 26px; box-shadow: inset 0 0 0 1px #24262B, 0 40px 80px -40px rgba(0,0,0,.6); min-height: 500px; display: flex; flex-direction: column; }
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #222428; font-weight: 700; font-size: 15px; }
.chat-top .av { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.chat-top .av svg { width: 15px; height: 15px; }
.chat-top .meta { color: #7D8088; font-weight: 500; margin-left: auto; font-size: 13px; }
.chat .q { align-self: flex-end; background: #fff; color: var(--ink); border-radius: 22px 22px 6px 22px; padding: 12px 18px; font-size: 16.5px; max-width: 85%; font-weight: 500; }
.chat .tool { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: #8B8E95; opacity: 0; transition: opacity .4s; }
.chat .tool.on { opacity: 1; }
.chat .tool svg { width: 15px; height: 15px; }
.chat .a { margin-top: 12px; font-size: 17.5px; line-height: 1.62; color: #E3E4E7; min-height: 210px; }
.chat .a b { color: #fff; font-weight: 700; }
.chat .a .cur { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-left: 4px; vertical-align: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat .ask { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px; }
.chat .ask button { border: 0; background: #212226; color: #C9CBD0; border-radius: 99px; padding: 10px 16px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; min-height: 42px; }
.chat .ask button:hover { background: #2C2D32; color: #fff; }
.chat .ask button.on { background: #fff; color: var(--ink); }
@media (max-width: 600px) { .chat { padding: 20px; min-height: 540px; } }

/* ---------- Targets calculator ---------- */
.calc { background: var(--card); border-radius: 30px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); padding: 26px; display: grid; gap: 18px; }
.calc .lbl { font-size: 12.5px; font-weight: 700; color: var(--soft); letter-spacing: .02em; margin-bottom: 7px; display: block; }
.calc .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc label { display: grid; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.calc input, .calc select { font: inherit; font-size: 16.5px; font-weight: 500; color: var(--ink); width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); appearance: none; -webkit-appearance: none; transition: box-shadow .2s; }
.calc input:focus, .calc select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.calc select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235F636B' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.seg { display: flex; background: var(--chip); border-radius: 99px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 99px; min-height: 40px; font-weight: 700; font-size: 14.5px; color: var(--soft); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.calc-out { border-radius: 22px; background: var(--ink); color: #fff; padding: 22px; }
.calc-out .kc { font-size: 52px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out .kc small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: #9A9DA4; margin-left: 6px; }
.calc-out .work { font-size: 13.5px; color: #A2A5AC; margin-top: 10px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.calc-out .work b { color: #fff; font-weight: 500; }
.calc-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.calc-macros div { background: #1C1D21; border-radius: 14px; padding: 11px 13px; font-size: 12.5px; color: #A2A5AC; }
.calc-macros b { display: block; font-size: 21px; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.calc-macros i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.calc .note { font-size: 12.5px; color: var(--faint); }

/* ---------- Screens rail ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.rail-btns { display: flex; gap: 8px; }
.rail-btns button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.rail-btns button:hover { background: #fff; }
.rail-btns button:disabled { opacity: .35; cursor: default; }
.rail { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 56px max(24px, calc((100vw - var(--wrap)) / 2)) 24px; scroll-padding-inline: max(24px, calc((100vw - var(--wrap)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: none; width: 272px; scroll-snap-align: start; }
.rail .device { --w: 272px; }
.rail figcaption { margin-top: 24px; font-size: 15px; color: var(--soft); padding-right: 8px; }
.rail figcaption b { display: block; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; margin-bottom: 3px; }
@media (max-width: 600px) { .rail { gap: 20px; padding-inline: 20px; scroll-padding-inline: 20px; } .rail figure, .rail .device { width: 240px; --w: 240px; } .rail-btns { display: none; } }

/* ---------- Privacy ---------- */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.promise { background: var(--card); border-radius: 28px; padding: 30px 28px 32px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2); }
.promise .n { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--faint); }
.promise h3 { font-size: 22px; letter-spacing: -0.03em; margin-top: 22px; }
.promise p { color: var(--soft); margin-top: 10px; font-size: 16px; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.who span { border-radius: 99px; padding: 7px 14px; font-size: 13.5px; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.who span b { font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), background .25s, color .25s; }
.faq summary .pm svg { width: 13px; height: 13px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; box-shadow: none; }
.faq .ans { padding: 0 0 26px; color: var(--soft); max-width: 62ch; font-size: 16.5px; }
.faq .ans a { color: var(--ink); }

/* ---------- Final ---------- */
.final { padding: clamp(96px, 12vw, 168px) 0 0; }
.final-card { position: relative; border-radius: clamp(32px, 4vw, 48px); overflow: hidden; min-height: 600px; display: grid; place-items: center; text-align: center; padding: 80px 24px; background: #ECE9E4; }
.final-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 52% at 50% 50%, rgba(246,245,243,.92), rgba(246,245,243,.55) 60%, rgba(246,245,243,0) 100%); z-index: 1; }
.final-card .in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; }
.final-card .h2 { font-size: clamp(42px, 6vw, 84px); max-width: 12ch; }
.final-card p { color: var(--soft); font-size: 15px; }
@media (max-width: 600px) { .final-card { min-height: 520px; margin-inline: -8px; } .final-card::before { background: radial-gradient(ellipse 80% 46% at 50% 50%, rgba(246,245,243,.94), rgba(246,245,243,.6) 65%, rgba(246,245,243,0) 100%); } }
@media (max-width: 600px) {
  .mc-total { flex-direction: column; align-items: stretch; gap: 14px; }
  .mc-total .macs { justify-content: space-between; }
  .mc-total .kc { font-size: 46px; }
}
