/* Yolk — shared styles for the landing pages (EN/ES), the legal pages and the 404s.
   Tokens mirror Pepper/Core/YolkTheme.swift and docs/yolk/landing-brief.md §3.
   Fonts are self-hosted: the site makes no third-party requests. */

@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* Metric-matched fallbacks (computed from the woff files with fontTools): if a web font
   arrives late, the swap keeps line lengths and heights, so text never shifts layout. */
@font-face { font-family: "Unbounded Fallback"; font-weight: 700; src: local("Arial Black"), local("ArialMT-Black"), local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 113.62%; ascent-override: 87.57%; descent-override: 21.56%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 500; src: local("Arial"), local("ArialMT");
  size-adjust: 106.10%; ascent-override: 91.30%; descent-override: 22.73%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 101.61%; ascent-override: 95.34%; descent-override: 23.74%; line-gap-override: 0%; }

:root {
  --chile: #FF4B1F;
  --chile-btn: #DA3510;   /* white label on it passes AA (4.7:1); #FF4B1F only reaches 3.3:1 */
  --chile-dark: #C02E0C;
  --chile-ink: #C93410;   /* chile-coloured text on white, 5.3:1 */
  --gold: #FFB21E;
  --gold-light: #FFD24A;
  --nopal: #2E8B57;
  --nopal-ink: #1F6B41;
  --nopal-soft: #D8EDD8;
  --paper: #F4F3F0;
  --line: #E7E5E0;
  --ink: #111111;
  --grey: #6B6B6B;
  --grey-3: #A3A3A3;
  --white: #FFFFFF;
  --display: "Unbounded", "Unbounded Fallback", "Arial Black", system-ui, sans-serif;
  --body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1160px;
  --gutter: 20px;
  --r-card: 28px;
  --shadow: 0 1px 2px rgba(17,17,17,.06), 0 12px 32px rgba(17,17,17,.10);
  --shadow-lg: 0 2px 6px rgba(17,17,17,.10), 0 30px 60px rgba(17,17,17,.20);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-weight: 500;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--chile-ink); text-underline-offset: 3px; }
a:hover { color: var(--chile-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px;
  border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(32px, 7.6vw, 54px); line-height: 1.08; }
h2 { font-size: clamp(27px, 6.2vw, 46px); line-height: 1.12; }
h3 { font-size: clamp(20px, 4.2vw, 25px); line-height: 1.22; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--chile-ink); margin: 0 0 14px; }
.lede { font-size: clamp(17px, 2.3vw, 20px); color: var(--grey); margin: 18px 0 0; max-width: 34em; }
/* One word per headline in a pill (brief §3, MyFitnessPal pattern). */
.pill { display: inline-block; padding: .02em .26em .08em; border-radius: .34em; background: var(--gold); color: var(--ink); line-height: 1.1; }
.pill--white { background: var(--white); color: var(--chile-ink); }

/* ---------- Buttons + badge ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn--chile { background: var(--chile-btn); color: var(--white); }
.btn--chile:hover { background: var(--chile-dark); color: var(--white); }

/* Placeholder until Apple's official badge artwork is dropped in (TODO in build.py). */
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 9px 22px 9px 16px; border-radius: 14px;
  background: var(--ink); color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.3); transition: transform .15s ease; }
.store-badge:hover { background: #000; color: var(--white); }
.store-badge:active { transform: scale(.97); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11px; line-height: 1.15; opacity: .88; }
.store-badge strong { display: block; font-size: 21px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.soon { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); }
.nav .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.nav__brand { flex: none; display: block; line-height: 0; border-radius: 6px; }
.nav__brand img { width: 80px; height: 28px; }
.nav__links { display: flex; gap: 2px; margin: 0 0 0 20px; padding: 0; list-style: none; }
.nav__links a { display: block; padding: 10px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__links a:hover { background: var(--paper); color: var(--ink); }
.nav__lang { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 600; }
.nav__lang a, .nav__lang span { display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--grey); line-height: 1; }
.nav__lang span { background: var(--ink); color: var(--white); }
.nav__lang a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 879px) { .nav__links { display: none; } }
@media (max-width: 349px) { .nav .btn { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 11vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 760px; margin: 0 0 clamp(36px, 6vw, 60px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--chile); position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 44px; padding-top: clamp(40px, 8vw, 88px); padding-bottom: clamp(56px, 9vw, 104px); }
.hero h1 { color: var(--white); }
.hero .lede { color: var(--ink); }
.hero__cta { margin-top: 28px; }
.hero__cta .soon { color: var(--ink); }
.hero__food { margin: 26px 0 0; font-size: 15px; color: var(--ink); max-width: 30em; }
.hero__food strong { font-weight: 600; }
.hero__visual { position: relative; display: flex; justify-content: center; padding: 0 4px; }
.hero__visual .phone { --w: min(292px, 72vw); }
.mascot { position: absolute; z-index: 1; width: 100px; left: calc(50% - 196px); bottom: 34px; transform: rotate(-16deg); }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; }
  .hero__visual .phone { --w: 316px; }
  .mascot { width: 124px; left: calc(50% + 96px); bottom: -30px; }
}

/* Callouts with hand-drawn arrows (Cal AI pattern, brief §1.2) */
.callout { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; padding: 9px 14px 9px 11px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; box-shadow: var(--shadow); }
.callout .ico { width: 20px; height: 20px; flex: none; color: var(--chile-ink); }
.callout .arrow { position: absolute; width: 58px; height: 44px; color: var(--ink); pointer-events: none; }
/* ≥600px: callouts sit outside the phone, arrows point in. */
.callout--a { right: calc(50% + 150px); top: 70%; }
.callout--a .arrow { right: -48px; top: -30px; }
.callout--b { left: calc(50% + 156px); top: 25%; }
.callout--c { left: calc(50% + 156px); top: 80%; }
.callout--b .arrow, .callout--c .arrow { left: -48px; top: -30px; transform: scaleX(-1); }
@media (min-width: 600px) and (max-width: 959px) {
  .callout--c { left: auto; right: calc(50% + 150px); top: 86%; }
  .callout--c .arrow { left: auto; right: -48px; transform: none; }
  .mascot { left: calc(50% + 92px); bottom: -24px; transform: rotate(14deg); }
}
@media (min-width: 960px) { .callout--a { right: calc(50% + 166px); } .callout--b, .callout--c { left: calc(50% + 172px); } }
@media (max-width: 599px) {
  .callout { font-size: 12.5px; padding: 7px 11px 7px 9px; }
  .callout .ico { width: 17px; height: 17px; }
  .callout .arrow { display: none; }
  .callout--a { left: 0; right: auto; top: 30%; }
  .callout--b { right: 0; left: auto; top: 14%; }
  .callout--c { right: 0; left: auto; top: 87%; }
}

/* ---------- The flip ---------- */
.flip { display: grid; gap: 18px; }
.flip__col { border-radius: var(--r-card); padding: 22px; }
.flip__label { font-family: var(--display); font-size: 17px; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; min-height: 28px; }
.flip__col--them { background: #ECEBE7; }
.flip__col--them .flip__label { color: #5E5E5E; }
.flip__them { filter: grayscale(1); opacity: .9; }
.diary { background: var(--white); border-radius: 18px; padding: 16px; display: grid; gap: 4px; color: #8C8C8C; }
.diary__q { font-weight: 600; font-size: 15px; color: #777; margin-bottom: 6px; }
.diary__field { border: 1.5px dashed #C9C7C2; border-radius: 12px; padding: 12px 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.diary__row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid #EEECE8; font-size: 15px; }
.diary__row b { font-weight: 600; color: #8C8C8C; }
.flip__col--yolk { background: var(--white); box-shadow: var(--shadow-lg); }
.flip__col--yolk .flip__label img { width: 68px; height: 24px; }
.daycard { display: grid; gap: 10px; }
.daycard__meal { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: var(--paper); }
.daycard__meal img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.daycard__slot { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
.daycard__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.daycard__kcal { font-size: 13px; color: var(--grey); white-space: nowrap; padding-right: 6px; font-variant-numeric: tabular-nums; }
.flip__line { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: clamp(36px, 6vw, 56px) auto 0; text-align: center; max-width: 19em; font-size: clamp(24px, 4.8vw, 40px); }
@media (min-width: 820px) { .flip { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 28px; } .flip__col { padding: 32px; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: clamp(56px, 9vw, 96px); list-style: none; margin: 0; padding: 0; }
.step { display: grid; gap: 28px; align-items: center; }
.step__num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(60px, 13vw, 100px); line-height: .9; color: var(--chile); margin: 0 0 10px; }
.step__text p { color: var(--grey); margin: 14px 0 0; max-width: 28em; }
.step__visual { display: flex; justify-content: center; gap: 14px; }
.step__visual .phone { --w: min(232px, 44vw); }
.step__visual--one .phone { --w: min(292px, 72vw); }
@media (min-width: 880px) {
  .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  .step:nth-child(even) .step__text { order: 2; }
  .step__visual .phone { --w: 236px; }
  .step__visual--one .phone { --w: 300px; }
}

/* ---------- Goal chips (radio inputs: works without JS) ---------- */
.goals { display: grid; justify-items: center; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { width: 100%; text-align: center; font-weight: 600; color: var(--grey); margin-bottom: 16px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #D5D2CB;
  background: var(--white); font-weight: 600; font-size: 15px; transition: transform .15s ease, background-color .15s, border-color .15s; }
.chip input:active + span { transform: scale(.97); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.sample { width: 100%; max-width: 580px; }
.sample__day { display: none; background: var(--white); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); }
.sample__day.is-shown { display: block; }
.goals:has(#g-lose:checked) .sample__day--lose,
.goals:has(#g-muscle:checked) .sample__day--muscle,
.goals:has(#g-both:checked) .sample__day--both,
.goals:has(#g-easy:checked) .sample__day--easy { display: block; }
.sample__top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sample__title { font-family: var(--display); font-size: 16px; }
.sample__totals { font-weight: 600; font-size: 14px; color: var(--chile-ink); font-variant-numeric: tabular-nums; }
.sample__note { margin: 14px 0 0; font-size: 13.5px; color: var(--grey); }

/* ---------- Food wall (marquee) ---------- */
.foodwall { overflow: hidden; display: grid; gap: 18px; padding: 4px 0; }
.marquee { display: flex; width: max-content; gap: 16px; animation: marquee 70s linear infinite; }
.marquee--rev { animation-direction: reverse; animation-duration: 84s; }
.foodwall:hover .marquee { animation-play-state: paused; }
.dish { flex: none; width: 150px; margin: 0; }
.dish img { width: 150px; height: 150px; border-radius: 24px; object-fit: cover; background: #EDE6DA; }
.dish figcaption { margin-top: 8px; font-weight: 600; font-size: 14px; line-height: 1.25; }
@media (min-width: 768px) { .dish, .dish img { width: 200px; } .dish img { height: 200px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features { display: grid; gap: clamp(64px, 10vw, 112px); }
.feature { display: grid; gap: 28px; align-items: center; }
.feature__text p { color: var(--grey); margin: 14px 0 0; max-width: 30em; }
.tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; line-height: 1.2; }
.tag--soon { background: #FFE9A8; color: #5C4400; }
.feature__visual { display: flex; justify-content: center; }
.feature__visual .phone { --w: min(276px, 70vw); }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature__text { order: 2; }
  .feature__visual .phone { --w: 290px; }
}
.trust { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--nopal); margin-top: 2px; }

/* "Snap your plate" — illustration, not a phone (the screen isn't built yet) */
.platecard { position: relative; width: min(320px, 82vw); }
.platecard img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 32px; object-fit: cover; box-shadow: var(--shadow-lg); }
.platecard__frame { position: absolute; inset: 9%; border: 3px solid rgba(255,255,255,.95); border-radius: 26px; pointer-events: none; }
.platecard__chip { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); background: var(--white); border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow); width: max-content; max-width: 92%; font-size: 14px; line-height: 1.35; }
.platecard__chip b { display: block; font-weight: 600; font-size: 15px; }
.platecard__chip span { color: var(--grey); }

/* Numbers block */
.numbers { width: min(360px, 88vw); background: var(--white); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.numbers__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.numbers__row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.numbers__row span { color: var(--grey); }
.numbers__row b { font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.numbers__foot { font-size: 13px; color: var(--grey); margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--white); border-radius: var(--r-card); padding: 28px; border: 2px solid var(--line); position: relative; }
.plan--best { border-color: var(--chile); }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--chile-btn); color: var(--white); font-weight: 600; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 21px; }
.plan__trial { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 6vw, 36px); line-height: 1.1; margin: 12px 0 0; color: var(--chile-ink); }
.plan p { margin: 10px 0 0; color: var(--grey); }
.plans__note { text-align: center; color: var(--grey); margin: 28px auto 0; max-width: 34em; font-size: 15px; }
@media (min-width: 680px) { .plans { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 20px; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 58px 18px 20px; font-weight: 600; font-size: 16.5px; position: relative; border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center/15px no-repeat;
  transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 20px 20px; color: #3A3A3A; }
.faq .faq__a p { margin: 0; }

/* ---------- Final CTA + egg ---------- */
.final { background: var(--chile); text-align: center; overflow: hidden; }
.final .wrap { display: grid; justify-items: center; gap: 2px; padding-top: clamp(40px, 8vw, 80px); padding-bottom: clamp(64px, 10vw, 104px); }
.final h2 { color: var(--white); margin-top: 22px; }
.final .store-badge { margin-top: 26px; }
.final__fine { margin: 14px 0 0; font-weight: 600; color: var(--ink); }
.egg { width: min(280px, 70vw); aspect-ratio: 1; }
.egg svg { width: 100%; height: 100%; overflow: visible; }
.egg__word { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 12vw, 72px); letter-spacing: -.02em; line-height: 1; color: var(--white); }
.egg__tag { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 4.6vw, 24px); color: var(--white); margin-top: 6px; }
/* Ported from assets/brand/yolk-egg-animation.html: same keyframes, same 6 s cycle.
   Paused until the CTA is on screen (site.js toggles .is-playing). */
.egg .fb { transform-box: fill-box; transform-origin: center; }
.final .T { animation-duration: 6s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.3,.7,.3,1); animation-fill-mode: both; }
/* Until it scrolls into view (and with no JS or reduced motion): a still of the cracked egg, yolk smiling. */
.final:not(.is-playing) .T { animation: none; }
.final:not(.is-playing) #shell { display: none; }
.final:not(.is-playing) .cheek { opacity: .4; }
#shell { animation-name: drop; transform-origin: 200px 290px; }
@keyframes drop { 0% { transform: translateY(-360px) rotate(0); } 8% { transform: translateY(0) rotate(0); } 10% { transform: translateY(-22px) rotate(0); } 12% { transform: translateY(0) rotate(0); } 14% { transform: rotate(-7deg); } 16% { transform: rotate(6deg); } 18% { transform: rotate(-4deg); } 20%, 100% { transform: rotate(0); } }
#crack { stroke-dasharray: 420; animation-name: crack; }
@keyframes crack { 0%,13% { stroke-dashoffset: 420; opacity: 1; } 19% { stroke-dashoffset: 0; opacity: 1; } 21%,100% { opacity: 0; } }
#top { animation-name: topOff; }
@keyframes topOff { 0%,20% { transform: translate(0,0) rotate(0); opacity: 1; } 28% { transform: translate(-40px,-190px) rotate(-40deg); opacity: 0; } 100% { opacity: 0; } }
#bottom { animation-name: botOff; }
@keyframes botOff { 0%,20% { transform: translate(0,0); opacity: 1; } 27% { transform: translate(0,70px) scale(.9); opacity: 0; } 100% { opacity: 0; } }
#white { animation-name: splat; }
@keyframes splat { 0%,21% { transform: scale(0); opacity: 1; } 25% { transform: scale(1.12,.92); } 28% { transform: scale(.97,1.03); } 31%,95% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
#yolk { animation-name: pop; }
@keyframes pop { 0%,23% { transform: scale(0); opacity: 1; } 27% { transform: scale(1.18); } 30% { transform: scale(.94); } 33%,95% { transform: scale(1); opacity: 1; } 100% { transform: scale(.85); opacity: 0; } }
.eye { animation-name: eyes; }
@keyframes eyes { 0%,31% { transform: scaleY(.1); } 34%,54% { transform: scaleY(1); } 55.5% { transform: scaleY(.1); } 57%,100% { transform: scaleY(1); } }
#eyeL { animation-name: eyeL; }
@keyframes eyeL { 0%,31% { transform: scaleY(.1); } 34%,54% { transform: scaleY(1); } 55.5% { transform: scaleY(.1); } 57%,74% { transform: scaleY(1); } 76%,82% { transform: scaleY(.08); } 84%,100% { transform: scaleY(1); } }
#smile { stroke-dasharray: 60; animation-name: smile; }
@keyframes smile { 0%,32% { stroke-dashoffset: 60; } 37%,100% { stroke-dashoffset: 0; } }
.cheek { animation-name: cheek; }
@keyframes cheek { 0%,34% { opacity: 0; } 38%,100% { opacity: .4; } }
.arm { animation-name: arm; }
@keyframes arm { 0%,40% { transform: scale(0); } 44% { transform: scale(1.15); } 46% { transform: scale(1); } 49% { transform: rotate(-10deg); } 52% { transform: rotate(4deg); } 55% { transform: rotate(-10deg); } 58% { transform: rotate(0); } 68% { transform: scale(1); } 72%,100% { transform: scale(0); } }
#armR { animation-name: armR; }
@keyframes armR { 0%,40% { transform: scale(0); } 44% { transform: scale(1.15); } 46% { transform: scale(1); } 49% { transform: rotate(10deg); } 52% { transform: rotate(-4deg); } 55% { transform: rotate(10deg); } 58% { transform: rotate(0); } 68% { transform: scale(1); } 72%,100% { transform: scale(0); } }
.egg__word { animation-name: rise; }
.egg__tag { animation-name: rise2; }
@keyframes rise { 0%,58% { opacity: 0; transform: translateY(18px); } 64%,94% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes rise2 { 0%,62% { opacity: 0; transform: translateY(14px); } 68%,94% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.78); font-size: 15px; padding: 48px 0 40px; }
.footer .wrap { display: grid; gap: 26px; }
.footer__brand img { width: 88px; height: 31px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-left: -10px; margin-right: 8px; color: var(--white); text-decoration: none; font-weight: 600; }
.footer ul a:hover { color: var(--gold); }
.footer p { margin: 0; }
.footer__fine { display: grid; gap: 6px; font-size: 14px; }
.footer :focus-visible { outline-color: var(--white); }
@media (min-width: 900px) { .footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } .footer ul { justify-content: center; } .footer__fine { text-align: right; } }

/* ---------- Motion ----------
   html.motion is set inline before first paint, only when reduced motion is off.
   Without it (reduced motion, no JS, or the 4 s failsafe) everything is visible and still.
   Only transform and opacity animate. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; }
html.motion .wi { animation: maskUp .95s cubic-bezier(.2,.75,.15,1) both; animation-delay: calc(.04s + var(--i) * .055s); }
html.motion .hero .lede { animation: riseIn .8s cubic-bezier(.2,.75,.15,1) .38s both; }
html.motion .hero__cta { animation: riseIn .8s cubic-bezier(.2,.75,.15,1) .48s both; }
html.motion .hero__food { animation: riseIn .8s cubic-bezier(.2,.75,.15,1) .58s both; }
html.motion .hero__in > .phone { animation: phoneIn 1.1s cubic-bezier(.2,.75,.15,1) .1s both; }
html.motion .callout--b { animation: calloutIn .7s cubic-bezier(.2,.75,.15,1) .75s both; }
html.motion .callout--a { animation: calloutIn .7s cubic-bezier(.2,.75,.15,1) .87s both; }
html.motion .callout--c { animation: calloutIn .7s cubic-bezier(.2,.75,.15,1) .99s both; }
html.motion .mascot__in { animation: riseIn .9s cubic-bezier(.2,.75,.15,1) .65s both; }
@keyframes maskUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes calloutIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.hero__para, .hero__floaty, .hero__in { position: relative; width: 100%; display: flex; justify-content: center; }
.mascot__in { display: block; }

/* Scroll reveals: site.js (GSAP) brings these to opacity 1 / y 0, staggered, once. */
html.motion .section__head > *, html.motion [data-stagger] > *, html.motion .reveal { opacity: 0; transform: translateY(24px); }

/* Count-ups: the ghost holds the final width, so nothing moves while digits change. */
.count { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.count__ghost { visibility: hidden; }
.count__v { position: absolute; inset: 0; text-align: inherit; white-space: nowrap; }

/* Pinned tour. Static (default): three rows. With motion: one sticky stage, steps stacked. */
.tour__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 9vw, 96px); }
.tour__step { display: grid; gap: 24px; align-items: center; }
.tour__n { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--chile-ink); margin-bottom: 10px; letter-spacing: .02em; }
.tour__text p { color: var(--grey); margin: 12px 0 0; max-width: 28em; }
.tour__phone { display: flex; justify-content: center; }
.tour__phone .phone { --w: min(276px, 70vw); }
.tour__dots { display: none; }
@media (min-width: 880px) { .tour__step { grid-template-columns: 1fr 1fr; gap: 64px; } .tour__phone .phone { --w: 290px; } }
html.motion .tour { padding-bottom: 0; }
html.motion .tour__track { height: 320vh; }
html.motion .tour__stage { position: sticky; top: 60px; height: calc(100vh - 60px); height: calc(100svh - 60px); display: flex; align-items: center; overflow: hidden; }
html.motion .tour__stage > .wrap { position: relative; height: 100%; }
html.motion .tour__steps { display: grid; height: 100%; gap: 0; }
html.motion .tour__step { grid-area: 1 / 1; height: 100%; grid-template-rows: 172px 1fr; align-items: start; gap: 12px; padding-top: 16px; }
html.motion .tour__step:nth-child(2) { z-index: 2; } html.motion .tour__step:nth-child(3) { z-index: 3; }
html.motion .tour__text { align-self: end; }
html.motion .tour__phone .phone { --w: min(68vw, calc((100svh - 60px - 172px - 48px) * 390 / 844)); }
html.motion .tour__step:not(:first-child) .tour__text, html.motion .tour__step:not(:first-child) .tour__phone { opacity: 0; }
html.motion .tour__dots { display: flex; gap: 8px; position: absolute; right: var(--gutter); top: 24px; }
html.motion .tour__dots i { width: 8px; height: 8px; border-radius: 50%; background: #D5D2CB; transition: background-color .3s, transform .3s; }
html.motion .tour__dots i.on { background: var(--chile); transform: scale(1.25); }
@media (min-width: 880px) {
  html.motion .tour__step { grid-template-rows: none; align-items: center; padding-top: 0; }
  html.motion .tour__text { align-self: center; }
  html.motion .tour__phone .phone { --w: min(300px, calc((100svh - 60px - 64px) * 390 / 844)); }
  html.motion .tour__dots { flex-direction: column; top: 50%; transform: translateY(-50%); right: var(--gutter); left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .foodwall { overflow-x: auto; }
  .final .T { animation: none !important; }
  .egg #shell { display: none !important; }
  .btn, .chip span, .store-badge { transition: none; }
}

/* ======================================================================
   Phone frame + app screens. Screens are drawn in iPhone points:
   1pt = var(--pt), so a whole screen scales with --w. Sizes follow
   YolkTheme.swift and the SwiftUI views on branch `yolk`.
   ====================================================================== */
.phone { --w: 280px; --pt: calc(var(--w) / 390); position: relative; flex: none; overflow: hidden; width: var(--w); height: calc(var(--w) * 844 / 390);
  border-radius: calc(var(--w) * .165); background: #0D0D0D; padding: calc(var(--w) * .03); box-shadow: var(--shadow-lg); z-index: 2; }
.phone::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 calc(var(--w) * .006) #3C3C3C; pointer-events: none; }
.scr { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .135); background: var(--white);
  font-family: var(--body); font-weight: 500; color: var(--ink); line-height: 1.22; letter-spacing: -.01em; font-size: calc(15 * var(--pt)); }
.scr * { line-height: inherit; }
.scr--paper { background: var(--paper); }
.scr--chile { background: var(--chile-btn); color: var(--white); }  /* a shade deeper than #FF4B1F so small white text passes AA */
.island { position: absolute; top: calc(11 * var(--pt)); left: 50%; width: calc(120 * var(--pt)); height: calc(35 * var(--pt)); transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 9; }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: calc(54 * var(--pt)); display: flex; align-items: center; justify-content: space-between;
  padding: calc(4 * var(--pt)) calc(30 * var(--pt)) 0 calc(42 * var(--pt)); font-weight: 600; font-size: calc(16 * var(--pt)); z-index: 8; }
.sbar i { display: flex; gap: calc(5 * var(--pt)); align-items: center; }
.sbar i::before { content: ""; width: calc(17 * var(--pt)); height: calc(11 * var(--pt)); background: linear-gradient(to right, currentColor 0 22%, transparent 22% 26%, currentColor 26% 48%, transparent 48% 52%, currentColor 52% 74%, transparent 74% 78%, currentColor 78%);
  -webkit-mask: linear-gradient(to top, #000 100%, #000); clip-path: polygon(0 70%, 22% 70%, 22% 50%, 48% 50%, 48% 30%, 74% 30%, 74% 0, 100% 0, 100% 100%, 0 100%); }
.sbar i::after { content: ""; width: calc(25 * var(--pt)); height: calc(12 * var(--pt)); border-radius: calc(3.5 * var(--pt)); border: calc(1.2 * var(--pt)) solid currentColor; opacity: .9;
  background: linear-gradient(to right, currentColor 0 78%, transparent 78%) content-box; padding: calc(1.5 * var(--pt)); }
.body { position: absolute; inset: calc(54 * var(--pt)) 0 0; padding: calc(6 * var(--pt)) calc(20 * var(--pt)) 0; display: flex; flex-direction: column; gap: calc(12 * var(--pt)); }
.dsp { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.muted { color: var(--grey); }
.faint { color: var(--grey-3); }
.ok { color: var(--nopal); }
.cap { font-weight: 600; font-size: calc(13 * var(--pt)); }
.pbtn, .sbtn { display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.pbtn { background: var(--chile-btn); color: var(--white); }
.sbtn { background: var(--paper); color: var(--ink); }
.btn56 { height: calc(52 * var(--pt)); font-size: calc(17 * var(--pt)); }

/* Today */
.t-head { display: flex; justify-content: space-between; align-items: flex-end; }
.t-head .dsp { font-size: calc(23 * var(--pt)); margin-top: calc(2 * var(--pt)); }
.avatar { width: calc(40 * var(--pt)); height: calc(40 * var(--pt)); border-radius: 50%; background: #E9E7E2; display: grid; place-items: center; }
.avatar::before { content: ""; width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); border-radius: 50%; background: var(--grey); box-shadow: 0 calc(13 * var(--pt)) 0 calc(4 * var(--pt)) var(--grey); transform: translateY(calc(-5 * var(--pt))); clip-path: inset(0 -100% calc(-8 * var(--pt)) -100%); }
.hcard { background: var(--white); border-radius: calc(24 * var(--pt)); overflow: hidden; }
.hcard__photo { position: relative; height: calc(214 * var(--pt)); }
.hcard__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(24 * var(--pt)); }
.hpill { position: absolute; top: calc(12 * var(--pt)); display: flex; align-items: center; gap: calc(6 * var(--pt)); background: var(--white); border-radius: 999px;
  padding: calc(7 * var(--pt)) calc(11 * var(--pt)); font-weight: 600; font-size: calc(12.5 * var(--pt)); white-space: nowrap; }
.hpill--l { left: calc(12 * var(--pt)); }
.hpill--l::before { content: ""; width: calc(8 * var(--pt)); height: calc(8 * var(--pt)); border-radius: 50%; background: var(--chile); }
.hpill--r { right: calc(12 * var(--pt)); }
.hcard__body { padding: calc(14 * var(--pt)) calc(16 * var(--pt)) calc(16 * var(--pt)); display: grid; gap: calc(5 * var(--pt)); }
.hcard__body .dsp { font-size: calc(19 * var(--pt)); }
.hcard__body .sub { font-size: calc(13.5 * var(--pt)); color: var(--grey); }
.hcard__btns { display: flex; gap: calc(9 * var(--pt)); margin-top: calc(8 * var(--pt)); }
.hcard__btns .pbtn, .hcard__btns .sbtn { height: calc(44 * var(--pt)); font-size: calc(14.5 * var(--pt)); padding: 0 calc(16 * var(--pt)); }
.hcard__btns .sbtn { flex: 1; }
.was { color: var(--grey); text-decoration: line-through; }
.fcard { display: flex; align-items: center; gap: calc(12 * var(--pt)); background: var(--white); border-radius: calc(22 * var(--pt)); padding: calc(13 * var(--pt)); }
.fcard__ico { width: calc(42 * var(--pt)); height: calc(42 * var(--pt)); border-radius: calc(12 * var(--pt)); background: var(--paper); display: grid; place-items: center; flex: none; }
.fcard__ico svg, .fcard__go svg { width: 55%; height: 55%; }
.fcard__txt { flex: 1; min-width: 0; }
.fcard__txt b { display: block; font-weight: 600; font-size: calc(15 * var(--pt)); }
.fcard__txt span { display: block; font-size: calc(12.5 * var(--pt)); color: var(--grey); }
.fcard__go { width: calc(36 * var(--pt)); height: calc(36 * var(--pt)); border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; flex: none; }
.ncard { display: flex; align-items: center; gap: calc(14 * var(--pt)); background: var(--white); border-radius: calc(22 * var(--pt)); padding: calc(14 * var(--pt)); }
.ring { --p: 23; width: calc(52 * var(--pt)); height: calc(52 * var(--pt)); border-radius: 50%; flex: none;
  background: conic-gradient(var(--chile) calc(var(--p) * 1%), #DAD7D0 0); -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 77%); mask: radial-gradient(closest-side, transparent 76%, #000 77%); }
.ncard__num b { display: block; font-family: var(--display); font-size: calc(21 * var(--pt)); letter-spacing: -.03em; }
.ncard__num span { font-weight: 600; font-size: calc(11.5 * var(--pt)); color: var(--grey); }
.ncard__right { flex: 1; display: grid; gap: calc(6 * var(--pt)); font-weight: 600; font-size: calc(11.5 * var(--pt)); }
.ncard__row { display: flex; justify-content: space-between; }
.bar { height: calc(6 * var(--pt)); border-radius: 999px; background: #DAD7D0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--chile); border-radius: inherit; }
.track { display: flex; align-items: center; gap: calc(6 * var(--pt)); }
.track::before { content: ""; width: calc(7 * var(--pt)); height: calc(7 * var(--pt)); border-radius: 50%; background: var(--nopal); }
.toast { position: absolute; left: calc(16 * var(--pt)); right: calc(16 * var(--pt)); bottom: calc(96 * var(--pt)); z-index: 7; background: var(--ink); color: var(--white); border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; padding: calc(10 * var(--pt)) calc(10 * var(--pt)) calc(10 * var(--pt)) calc(18 * var(--pt)); font-weight: 600; font-size: calc(13.5 * var(--pt)); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast span { background: rgba(255,255,255,.18); border-radius: 999px; padding: calc(6 * var(--pt)) calc(12 * var(--pt)); }

/* Tab bar (three tabs: what ships) */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(86 * var(--pt)); background: var(--white); border-top: 1px solid var(--line); z-index: 6;
  display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(8 * var(--pt)) calc(12 * var(--pt)) 0; }
.tab { display: grid; justify-items: center; align-content: start; gap: calc(4 * var(--pt)); font-size: calc(11.5 * var(--pt)); color: var(--grey); }
.tab i { width: calc(38 * var(--pt)); height: calc(38 * var(--pt)); border-radius: 50%; display: grid; place-items: center; }
.tab svg { width: calc(20 * var(--pt)); height: calc(20 * var(--pt)); }
.tab--on { color: var(--ink); font-weight: 600; }
.tab--on i { background: var(--chile); color: var(--white); }
.homebar { position: absolute; bottom: calc(8 * var(--pt)); left: 50%; width: calc(134 * var(--pt)); height: calc(5 * var(--pt)); margin-left: calc(-67 * var(--pt)); border-radius: 999px; background: var(--ink); z-index: 9; }
.scr--chile .homebar { background: var(--white); }

/* Swap sheet */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.38); z-index: 5; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 33%; background: var(--white); z-index: 6; border-radius: calc(26 * var(--pt)) calc(26 * var(--pt)) 0 0;
  padding: calc(28 * var(--pt)) calc(20 * var(--pt)) 0; display: flex; flex-direction: column; gap: calc(10 * var(--pt)); }
.sheet::before { content: ""; position: absolute; top: calc(7 * var(--pt)); left: 50%; width: calc(36 * var(--pt)); height: calc(5 * var(--pt)); margin-left: calc(-18 * var(--pt)); border-radius: 999px; background: #D5D2CB; }
.sheet .dsp { font-size: calc(19 * var(--pt)); }
.sheet .sub { font-size: calc(14 * var(--pt)); color: var(--grey); margin-bottom: calc(8 * var(--pt)); }
.srow { display: flex; align-items: center; gap: calc(12 * var(--pt)); background: var(--paper); border-radius: calc(18 * var(--pt)); padding: calc(11 * var(--pt)); }
.srow img { width: calc(54 * var(--pt)); height: calc(54 * var(--pt)); border-radius: calc(14 * var(--pt)); object-fit: cover; flex: none; }
.srow div { flex: 1; min-width: 0; }
.srow b { display: block; font-weight: 600; font-size: calc(14.5 * var(--pt)); line-height: 1.2; }
.srow span { display: block; font-size: calc(12.5 * var(--pt)); color: var(--grey); margin-top: calc(3 * var(--pt)); }
.srow svg { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); color: var(--grey-3); flex: none; }
.keep { text-align: center; font-weight: 600; color: var(--grey); font-size: calc(15 * var(--pt)); margin-top: calc(8 * var(--pt)); }

/* Plan reveal (V34, the only full-chile screen) */
.rv { position: absolute; inset: calc(54 * var(--pt)) 0 0; padding: calc(6 * var(--pt)) calc(18 * var(--pt)) 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--pt)); }
.rv__egg { width: calc(56 * var(--pt)); height: calc(60 * var(--pt)); }
.rv .dsp { font-size: calc(21 * var(--pt)); color: var(--white); }
.rv__sub { font-size: calc(13.5 * var(--pt)); color: var(--white); margin-bottom: calc(8 * var(--pt)); }
.rv__days { display: grid; gap: calc(6 * var(--pt)); width: 100%; text-align: left; }
.rday { display: flex; align-items: center; gap: calc(10 * var(--pt)); background: var(--white); color: var(--ink); border-radius: calc(16 * var(--pt)); padding: calc(7 * var(--pt)) calc(10 * var(--pt)); }
.rday__d { width: calc(36 * var(--pt)); flex: none; }
.rday__d b { display: block; font-weight: 600; font-size: calc(14 * var(--pt)); }
.rday__d span { display: block; font-size: calc(11.5 * var(--pt)); color: var(--grey); }
.rday__t { display: flex; flex: none; }
.rday__t img { width: calc(28 * var(--pt)); height: calc(28 * var(--pt)); border-radius: 50%; object-fit: cover; border: calc(1.5 * var(--pt)) solid var(--white); }
.rday__t img + img { margin-left: calc(-7 * var(--pt)); }
.rday__n { font-size: calc(11.5 * var(--pt)); color: var(--grey); min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv__why { font-weight: 600; font-size: calc(14.5 * var(--pt)); margin-top: calc(14 * var(--pt)); }
.rv__cta { position: absolute; left: calc(20 * var(--pt)); right: calc(20 * var(--pt)); bottom: calc(30 * var(--pt)); display: grid; gap: calc(10 * var(--pt)); text-align: center; }
.rv__cta .btn56 { background: var(--white); color: var(--chile-ink); }
.rv__cta span { font-weight: 600; font-size: calc(14 * var(--pt)); }

/* Quiz chrome (onboarding) */
.qhead { display: flex; align-items: center; justify-content: center; position: relative; height: calc(40 * var(--pt)); }
.qhead__back { position: absolute; left: 0; width: calc(38 * var(--pt)); height: calc(38 * var(--pt)); border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-weight: 600; font-size: calc(17 * var(--pt)); }
.qhead img { height: calc(19 * var(--pt)); width: auto; }
.qprog { height: calc(4 * var(--pt)); border-radius: 2px; background: var(--paper); overflow: hidden; }
.qprog i { display: block; height: 100%; background: var(--ink); }
.q { font-size: calc(23 * var(--pt)); margin-top: calc(16 * var(--pt)); }
.ruler-val { text-align: center; margin-top: calc(26 * var(--pt)); }
.ruler-val b { display: block; font-family: var(--display); font-weight: 700; font-size: calc(42 * var(--pt)); letter-spacing: -.03em; }
.ruler-val span { font-size: calc(14 * var(--pt)); color: var(--grey); }
.ruler { position: relative; height: calc(56 * var(--pt)); margin: calc(44 * var(--pt)) auto 0; width: calc(270 * var(--pt));
  background: repeating-linear-gradient(to right, #6B6B6B 0 calc(2 * var(--pt)), transparent calc(2 * var(--pt)) calc(45 * var(--pt))) bottom / 100% calc(36 * var(--pt)) no-repeat,
              repeating-linear-gradient(to right, #D5D2CB 0 calc(2 * var(--pt)), transparent calc(2 * var(--pt)) calc(9 * var(--pt))) bottom / 100% calc(20 * var(--pt)) no-repeat;
  -webkit-mask: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); }
.needle { position: absolute; left: 50%; width: calc(3 * var(--pt)); height: calc(56 * var(--pt)); margin-left: calc(-1.5 * var(--pt)); background: var(--chile); border-radius: 2px; }
.ruler-wrap { position: relative; }
.ruler-wrap .needle { top: calc(44 * var(--pt)); }
.qfoot { position: absolute; left: calc(20 * var(--pt)); right: calc(20 * var(--pt)); bottom: calc(30 * var(--pt)); }

/* Yum or nah */
.yum__sub { font-size: calc(14 * var(--pt)); color: var(--grey); }
.stack { position: relative; height: calc(392 * var(--pt)); margin-top: calc(4 * var(--pt)); }
.stack__b2, .stack__b1, .stack__f { position: absolute; border-radius: calc(26 * var(--pt)); }
.stack__b2 { left: calc(22 * var(--pt)); right: calc(22 * var(--pt)); top: 0; bottom: calc(20 * var(--pt)); background: #EDEBE5; }
.stack__b1 { left: calc(11 * var(--pt)); right: calc(11 * var(--pt)); top: calc(9 * var(--pt)); bottom: calc(10 * var(--pt)); background: #E5E3DE; }
.stack__f { left: 0; right: 0; top: calc(18 * var(--pt)); bottom: 0; overflow: hidden; transform: rotate(4deg) translateX(calc(10 * var(--pt))); background: var(--paper); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.stack__f img { width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; top: calc(22 * var(--pt)); left: calc(18 * var(--pt)); transform: rotate(-12deg); font-family: var(--display); font-weight: 700; font-size: calc(26 * var(--pt));
  color: var(--nopal-ink); border: calc(4 * var(--pt)) solid var(--nopal-ink); border-radius: calc(8 * var(--pt)); padding: calc(4 * var(--pt)) calc(10 * var(--pt)); background: rgba(255,255,255,.85); }
.npill { position: absolute; left: calc(12 * var(--pt)); bottom: calc(12 * var(--pt)); right: calc(60 * var(--pt)); background: var(--white); border-radius: calc(16 * var(--pt)); padding: calc(12 * var(--pt)) calc(14 * var(--pt)); }
.npill b { display: block; font-weight: 600; font-size: calc(15 * var(--pt)); }
.npill span { font-size: calc(12.5 * var(--pt)); color: var(--grey); }
.yum__btns { display: flex; justify-content: center; gap: calc(36 * var(--pt)); margin-top: calc(6 * var(--pt)); }
.yum__btns i { width: calc(60 * var(--pt)); height: calc(60 * var(--pt)); border-radius: 50%; display: grid; place-items: center; }
.yum__btns i:first-child { background: var(--paper); }
.yum__btns i:last-child { background: var(--chile); color: var(--white); }
.yum__btns svg { width: 42%; height: 42%; }

/* Fridge scan result */
.fr .dsp { font-size: calc(24 * var(--pt)); margin-top: calc(10 * var(--pt)); }
.fr__sub { font-size: calc(14.5 * var(--pt)); color: var(--grey); }
.chipsx { display: flex; flex-wrap: wrap; gap: calc(7 * var(--pt)); margin-top: calc(6 * var(--pt)); }
.chipsx span { display: inline-flex; align-items: center; gap: calc(6 * var(--pt)); background: var(--ink); color: var(--white); border-radius: 999px; padding: calc(8 * var(--pt)) calc(12 * var(--pt)); font-size: calc(13 * var(--pt)); white-space: nowrap; }
.chipsx span::after { content: "×"; font-weight: 600; opacity: .8; }
.chipsx span.add { background: transparent; color: var(--ink); border: 1px dashed var(--grey); }
.chipsx span.add::after { content: none; }
.sugg { background: var(--paper); border-radius: calc(22 * var(--pt)); padding: calc(14 * var(--pt)); display: flex; gap: calc(12 * var(--pt)); align-items: center; margin-top: calc(8 * var(--pt)); }
.sugg img { width: calc(76 * var(--pt)); height: calc(76 * var(--pt)); border-radius: calc(16 * var(--pt)); object-fit: cover; flex: none; }
.sugg small { display: block; font-size: calc(12.5 * var(--pt)); color: var(--grey); }
.sugg .dsp { font-size: calc(16 * var(--pt)); margin: calc(3 * var(--pt)) 0; }
.sugg span { display: block; font-size: calc(12 * var(--pt)); color: var(--grey); }
.sugg em { display: block; font-style: normal; font-size: calc(12 * var(--pt)); color: var(--nopal-ink); font-weight: 600; margin-top: calc(3 * var(--pt)); }
.fr__foot { position: absolute; left: calc(20 * var(--pt)); right: calc(20 * var(--pt)); bottom: calc(26 * var(--pt)); display: grid; gap: calc(12 * var(--pt)); text-align: center; }
.fr__foot > span:last-child { font-weight: 600; color: var(--grey); font-size: calc(15 * var(--pt)); }

/* Cooking mode */
.ck__top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: calc(13.5 * var(--pt)); color: var(--grey); }
.ck__top b { font-size: calc(20 * var(--pt)); color: var(--ink); font-weight: 600; }
.ck__step { font-weight: 600; font-size: calc(13 * var(--pt)); color: var(--grey); margin-top: calc(14 * var(--pt)); }
.ck .dsp { font-size: calc(23 * var(--pt)); line-height: 1.22; }
.ck__dots { display: flex; gap: calc(5 * var(--pt)); }
.ck__dots i { flex: 1; height: calc(4 * var(--pt)); border-radius: 2px; background: #DAD7D0; }
.ck__dots i.on { background: var(--ink); }
.timer { background: var(--white); border-radius: calc(22 * var(--pt)); padding: calc(18 * var(--pt)); display: flex; align-items: center; justify-content: space-between; margin-top: calc(8 * var(--pt)); }
.timer b { font-family: var(--display); font-weight: 700; font-size: calc(38 * var(--pt)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.timer .sbtn { height: calc(40 * var(--pt)); padding: 0 calc(16 * var(--pt)); font-size: calc(14 * var(--pt)); }
.ck__foot { position: absolute; left: calc(20 * var(--pt)); right: calc(20 * var(--pt)); bottom: calc(30 * var(--pt)); display: grid; gap: calc(10 * var(--pt)); }
.ck__foot .sbtn { background: #E7E5E0; }

/* ---------- Legal pages (text unchanged; restyled) ---------- */
.legal { padding: 48px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 8px; }
.legal .updated { color: var(--grey); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: clamp(19px, 3.6vw, 23px); line-height: 1.3; margin: 44px 0 12px; padding-top: 8px; }
.legal h3 { font-family: var(--body); font-weight: 600; letter-spacing: 0; font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: #2A2A2A; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { background: var(--paper); border-radius: 20px; padding: 20px 24px; margin: 0 0 8px; }
.legal .summary ul { margin: 8px 0 0; }
.legal .callout { position: static; display: block; white-space: normal; box-shadow: none; font-weight: 500; font-size: inherit; line-height: inherit; color: inherit;
  border-left: 4px solid var(--chile); background: #FFF3EF; border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 20px 0; }
.legal .callout p, .legal .callout ul { margin: 0; }
.legal .toc { font-size: 15px; columns: 2; column-gap: 32px; padding-left: 22px; margin: 0 0 8px; }
.legal .toc a { display: inline-block; padding: 3px 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--paper); font-weight: 600; }
@media (max-width: 640px) { .legal .toc { columns: 1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 64px 20px; }
.notfound svg { margin: 0 auto; width: 120px; }
.notfound h1 { font-size: clamp(28px, 7vw, 42px); margin: 20px 0 8px; }
.notfound p { color: var(--grey); }

/* Plan tab */
.pl { gap: calc(10 * var(--pt)); }
.pl .dsp { font-size: calc(27 * var(--pt)); margin-top: calc(8 * var(--pt)); }
.pl__sub { font-size: calc(14 * var(--pt)); color: var(--grey); margin-bottom: calc(4 * var(--pt)); }
.pl__day { background: var(--white); border-radius: calc(22 * var(--pt)); padding: calc(14 * var(--pt)); display: grid; gap: calc(8 * var(--pt)); }
.pl__head { display: flex; justify-content: space-between; align-items: baseline; }
.pl__head b { font-weight: 600; font-size: calc(14.5 * var(--pt)); }
.pl__head span { font-weight: 600; font-size: calc(12 * var(--pt)); color: var(--grey); }
.pl__meal { display: flex; align-items: center; gap: calc(10 * var(--pt)); font-size: calc(13.5 * var(--pt)); }
.pl__meal img { width: calc(34 * var(--pt)); height: calc(34 * var(--pt)); border-radius: calc(10 * var(--pt)); object-fit: cover; flex: none; }

/* Progress tab (the shipped first cut: no chart until weigh-ins exist) */
.pr__eye { font-family: var(--display); font-weight: 700; font-size: calc(10.5 * var(--pt)); letter-spacing: .06em; color: var(--grey); margin-top: calc(8 * var(--pt)); }
.pr .dsp { font-size: calc(27 * var(--pt)); }
.pr__card { background: var(--white); border-radius: calc(22 * var(--pt)); padding: calc(16 * var(--pt)); display: grid; gap: calc(5 * var(--pt)); font-size: calc(13.5 * var(--pt)); }
.pr__kg { font-family: var(--display); font-weight: 700; font-size: calc(36 * var(--pt)); letter-spacing: -.03em; }
.pr__card hr { border: 0; border-top: 1px solid var(--line); margin: calc(6 * var(--pt)) 0; width: 100%; }
.pr__row { display: flex; justify-content: space-between; gap: calc(12 * var(--pt)); font-size: calc(14 * var(--pt)); }
.pr__row span { color: var(--grey); }
.pr__row b { font-weight: 600; text-align: right; }
.pr__ptitle { font-weight: 600; font-size: calc(15 * var(--pt)); }
.pr__phs { display: grid; grid-template-columns: 1fr 1fr; gap: calc(9 * var(--pt)); margin: calc(4 * var(--pt)) 0; }
.pr__ph { position: relative; height: calc(150 * var(--pt)); border-radius: calc(14 * var(--pt)); background: var(--paper); display: grid; place-items: end center; overflow: hidden; }
.pr__ph svg { width: 62%; height: auto; }
.pr__ph span { position: absolute; top: calc(8 * var(--pt)); left: calc(8 * var(--pt)); background: var(--white); border-radius: 999px; padding: calc(3 * var(--pt)) calc(8 * var(--pt)); font-weight: 600; font-size: calc(11 * var(--pt)); }
.pr__cap { font-size: calc(12.5 * var(--pt)); }
