/* ==========================================================================
   Yumu — marketing site
   Tokens mirror the iOS app (Yumu/Core/Theme/YumuTheme.swift): quiet warm
   neutrals, the mascot's greens as accent, macro hues that always mean macros.
   ========================================================================== */

/* Self-hosted variable fonts (latin subset) — no third-party round trips before first paint. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/fonts/baloo2-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --bg: #F7F7F4;
  --cream: #FBF8EE;
  --surface: #FFFFFF;
  --surface-muted: #F0F0EB;
  --line: #E6E6E0;
  --ink: #1D211C;
  --muted: #6F7569;

  --lime: #94C914;
  --lime-soft: #E7F4C2;
  --green: #6F9C0E;
  --leaf: #238A16;
  --deep: #142010;
  --deep-2: #1E2D17;

  --highlight: #E08600;
  --rose: #E0558C;
  --protein: #D1495B;
  --carbs: #0E7490;
  --fat: #9A6B2F;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(29, 33, 28, .06), 0 2px 8px rgba(29, 33, 28, .05);
  --shadow-md: 0 2px 6px rgba(29, 33, 28, .05), 0 12px 32px rgba(29, 33, 28, .08);
  --shadow-lg: 0 8px 24px rgba(29, 33, 28, .08), 0 30px 70px rgba(29, 33, 28, .12);

  --font-display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.display {
  font-size: clamp(2.6rem, 5.3vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
}
.display--sm { font-size: clamp(2.4rem, 5vw, 4rem); }
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 17ch;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 56ch; margin-top: 18px; }
.lede--light { color: rgba(237, 238, 233, .72); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  color: var(--leaf);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 18px; background: url("/img/leaf.svg") center/contain no-repeat; }
.eyebrow--light { color: var(--lime); }

.squiggle {
  white-space: nowrap;
  background: url("/img/squiggle.svg") left 100% / 100% .32em no-repeat;
  padding-bottom: .12em;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 8px 20px rgba(29, 33, 28, .18);
  transition: transform .2s var(--ease-spring), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--small { padding: 10px 18px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 244, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 700; color: var(--muted); font-size: .98rem; }
.nav__links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(148, 201, 20, .20), transparent 60%),
    radial-gradient(600px 400px at 5% 90%, rgba(224, 134, 0, .08), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: var(--muted); box-shadow: var(--shadow-sm);
}
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(148, 201, 20, .12); } }

.hero .lede { margin-top: 26px; }
.hero .display { max-width: 13ch; }

/* ---------- waitlist form ---------- */
.join { margin-top: 30px; max-width: 540px; }
.join__row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: border-color .2s, box-shadow .2s;
}
.join__row:focus-within { border-color: var(--lime); box-shadow: 0 0 0 5px rgba(148, 201, 20, .18), var(--shadow-md); }
.join__input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 0 18px; font: inherit; font-size: 1.05rem; color: var(--ink);
}
.join__input::placeholder { color: #A3A89D; }
.join__btn { --btn-bg: var(--green); white-space: nowrap; box-shadow: 0 2px 0 #557A08, 0 6px 16px rgba(111, 156, 14, .35); }
.join__btn:hover { --btn-bg: #638C0B; }
.join__btn[disabled] { opacity: .7; cursor: progress; }
.join__note { margin-top: 12px; padding-left: 20px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.join__note.is-error { color: #C0392B; }
.join--center { margin-inline: auto; }
.join--center .join__note { padding-left: 0; text-align: center; }

.goals { border: 0; margin: 18px 0 0; padding: 0 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.goals legend { font-weight: 700; font-size: .92rem; margin-bottom: 10px; padding: 0; color: var(--ink); }
.goals legend span { color: var(--muted); font-weight: 600; }
.goals label { position: relative; cursor: pointer; }
.goals input { position: absolute; opacity: 0; pointer-events: none; }
.goals label span {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--muted);
  transition: all .18s;
}
.goals label:hover span { border-color: var(--lime); color: var(--ink); }
.goals input:checked + span { background: var(--lime-soft); border-color: var(--green); color: #3D5A05; }
.goals input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.count { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--muted); }
.count strong { color: var(--ink); }
.count__faces { display: flex; }
.count__faces img { width: 34px; height: 34px; object-fit: contain; background: var(--surface); border-radius: 50%; border: 2px solid var(--bg); padding: 3px; margin-left: -8px; box-shadow: var(--shadow-sm); }
.count__faces img:first-child { margin-left: 0; }

/* success state */
.success {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 22px 18px 14px; margin-top: 30px; max-width: 540px;
  background: var(--surface); border: 2px solid var(--lime); border-radius: var(--r-lg);
  box-shadow: 0 0 0 6px rgba(148, 201, 20, .15), var(--shadow-md);
  animation: pop .5s var(--ease-spring);
  text-align: left;
}
.success img { width: 92px; flex: none; }
.success__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.success__text { color: var(--muted); font-weight: 600; margin-top: 4px; }
.share { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.join--center + .success, .final .success { margin-inline: auto; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

/* stage */
.hero__stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 540px; width: 100%; justify-self: center; }
.blob {
  position: absolute; inset: 10% 6% 4%;
  background: radial-gradient(circle at 40% 35%, #F1FAD6 0%, #D8EE93 55%, #BFE05A 100%);
  border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%;
  animation: morph 12s ease-in-out infinite;
  box-shadow: inset 0 -20px 60px rgba(111, 156, 14, .25);
}
@keyframes morph {
  33% { border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%; }
  66% { border-radius: 42% 58% 57% 43% / 55% 44% 56% 45%; }
}
.hero__mascot {
  position: absolute; left: 50%; bottom: 6%; width: 64%;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 22px rgba(60, 90, 5, .28));
  animation: bob 4.2s ease-in-out infinite;
  transition: opacity .18s;
  cursor: pointer;
}
@keyframes bob { 50% { transform: translate(-50%, -12px) rotate(-1.5deg); } }
.hero__mascot.is-swapping { opacity: 0; }
.float { position: absolute; filter: drop-shadow(0 14px 14px rgba(29, 33, 28, .18)); animation: drift 6s ease-in-out infinite; }
.f-tomato { width: 17%; top: 6%; left: 4%; animation-delay: -1s; }
.f-broccoli { width: 19%; top: 2%; right: 8%; animation-delay: -3s; }
.f-carrot { width: 21%; bottom: 10%; right: -2%; animation-delay: -2s; }
@keyframes drift { 50% { transform: translateY(-14px) rotate(6deg); } }

.bubble, .chip {
  position: absolute; z-index: 2;
  background: var(--surface); border-radius: 18px;
  font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.bubble { padding: 12px 16px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; top: 18%; left: -4%; border-bottom-left-radius: 4px; animation: in-bubble .6s .5s var(--ease-spring) both; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; animation: in-bubble .6s var(--ease-spring) both, drift 7s ease-in-out infinite; }
.chip--a { left: -6%; bottom: 26%; animation-delay: 1s, -2s; }
.chip--b { right: -4%; top: 44%; animation-delay: 1.3s, -4s; }
.chip--c { left: 8%; bottom: 4%; animation-delay: 1.6s, -1s; }
@keyframes in-bubble { from { opacity: 0; transform: translateY(12px) scale(.85); } }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--protein { background: var(--protein); }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: .72rem; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }

/* problem */
.problem { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem .h2 { max-width: 16ch; }
.mess { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 56px 0 48px; }
.scrap {
  width: min(250px, 100%); padding: 16px 18px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: transform .6s var(--ease-spring), opacity .6s;
}
.scrap__app { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.scrap p { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.scrap--1 { transform: rotate(-4deg) translateY(6px); }
.scrap--2 { transform: rotate(2.5deg) translateY(-8px); background: #EEF7E6; }
.scrap--3 { transform: rotate(-1.5deg) translateY(14px); background: #FFF7D6; font-style: italic; }
.scrap--4 { transform: rotate(3.5deg); }
.scrap--5 { transform: rotate(-3deg) translateY(-4px); background: #EAF3FA; }
.mess:not(.is-in) .scrap { opacity: 0; transform: translateY(40px) rotate(0); }
.mess.is-in .scrap:nth-child(2) { transition-delay: .08s; }
.mess.is-in .scrap:nth-child(3) { transition-delay: .16s; }
.mess.is-in .scrap:nth-child(4) { transition-delay: .24s; }
.mess.is-in .scrap:nth-child(5) { transition-delay: .32s; }
.problem__resolve { max-width: 760px; margin: 0 auto; text-align: center; display: grid; gap: 18px; font-size: 1.12rem; color: var(--muted); }
.problem__resolve .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; color: var(--ink); }
.problem__resolve em { font-style: normal; color: var(--protein); }
.problem__resolve strong { color: var(--leaf); }

/* agent */
.agent { background: var(--deep); color: #EDEEE9; position: relative; overflow: hidden; }
.agent::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 500px at 90% 0%, rgba(148, 201, 20, .16), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(35, 138, 22, .18), transparent 60%);
}
.agent .wrap { position: relative; }
.agent__head { max-width: 720px; }
.agent .h2 { max-width: none; }

.demo { display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: 48px; align-items: center; margin-top: 64px; }
.demo__prompts { display: grid; gap: 10px; }
.prompt {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3;
  color: rgba(237, 238, 233, .7); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.prompt span { font-size: 1.25rem; line-height: 1.1; }
.prompt em { font-style: normal; color: rgba(237, 238, 233, .45); font-size: .95rem; }
.prompt:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.prompt.is-active { color: #fff; background: rgba(148, 201, 20, .12); border-color: rgba(148, 201, 20, .5); transform: translateX(6px); }
.prompt.is-active::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--lime); transform-origin: left; animation: progress var(--scene-ms, 7000ms) linear forwards;
}
.demo.is-paused .prompt.is-active::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } }

.phone {
  background: var(--bg); color: var(--ink);
  border-radius: 40px; padding: 10px;
  box-shadow: 0 0 0 10px #0B120A, 0 0 0 11px rgba(255,255,255,.08), 0 40px 80px rgba(0, 0, 0, .5);
  height: 600px; display: flex; flex-direction: column;
}
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; border-bottom: 1px solid var(--line); }
.phone__bar img { border-radius: 8px; }
.phone__bar div { display: grid; line-height: 1.2; }
.phone__bar strong { font-family: var(--font-display); font-size: 1.1rem; }
.phone__bar span { font-size: .78rem; color: var(--green); font-weight: 700; }
.phone__chat { flex: 1; overflow: hidden; padding: 16px 10px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.phone__composer { display: flex; align-items: center; gap: 10px; margin: 6px; padding: 12px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: #A3A89D; font-size: .92rem; font-weight: 600; }
.phone__composer span { flex: 1; }
.phone__composer i { font-style: normal; }

.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.4; font-weight: 600; animation: msg-in .35s var(--ease-spring) both; }
.msg--user { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 5px; }
.msg--yumu { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg--photo { padding: 5px; background: var(--green); }
.msg--photo img { width: 150px; border-radius: 14px; background: var(--cream); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; animation: msg-in .3s both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #B8BDB2; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; transform: translateY(-3px); } }

.block { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; font-size: .86rem; animation: msg-in .4s var(--ease-spring) both; box-shadow: var(--shadow-sm); }
.block__title { font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.rows { display: grid; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--bg); font-weight: 700; }
.row img { width: 32px; height: 32px; object-fit: contain; }
.row small { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.row b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; font-size: .75rem; color: #fff; }
.aisle { display: flex; gap: 6px; align-items: center; font-weight: 700; }
.aisle + .aisle { margin-top: 6px; }
.aisle__tag { font-size: .7rem; padding: 2px 8px; border-radius: 999px; color: #fff; font-weight: 800; }
.aisle__items { color: var(--muted); font-weight: 600; font-size: .82rem; }
.macrochips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.macrochips span { font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--bg); }
.macrochips .p { color: var(--protein); } .macrochips .c { color: var(--carbs); } .macrochips .f { color: var(--fat); }

.approve { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.approve p { flex: 1; font-weight: 700; font-size: .82rem; line-height: 1.3; }
.approve button { border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .8rem; background: var(--green); color: #fff; cursor: default; font-family: var(--font-display); }
.approve .no { background: var(--surface-muted); color: var(--muted); }
.approve.is-done button { display: none; }
.approve.is-done p { color: var(--leaf); }
.approve button.is-pressed { transform: scale(.92); background: var(--leaf); }
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat div { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.stat span { font-size: .7rem; color: var(--muted); font-weight: 700; }

.trust { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust li { color: rgba(237, 238, 233, .68); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.trust strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }

/* loop */
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 92px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 10px, transparent 10px 20px);
  opacity: .6; z-index: 0;
}
.step { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-spring), box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__art { height: 150px; display: grid; place-items: center; margin-bottom: 14px; background: var(--cream); border-radius: var(--r-md); padding: 14px; }
.step__art img { max-height: 118px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(29,33,28,.14)); transition: transform .4s var(--ease-spring); }
.step:hover .step__art img { transform: scale(1.08) rotate(-3deg); }
.step__n { font-family: var(--font-display); font-weight: 800; color: var(--green); font-size: .95rem; }
.step h3 { font-size: 1.3rem; margin: 4px 0 8px; font-weight: 700; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* logging */
.log { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.log__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.log__mascot { position: relative; justify-self: center; max-width: 380px; }
.log__mascot::before { content: ""; position: absolute; inset: 8% -6% 0; background: radial-gradient(circle, var(--lime-soft) 0%, transparent 70%); z-index: -1; }
.log__mascot img { animation: bob-soft 5s ease-in-out infinite; filter: drop-shadow(0 22px 18px rgba(60, 90, 5, .2)); }
@keyframes bob-soft { 50% { transform: translateY(-10px); } }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.way__ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lime-soft); font-size: 1.3rem; margin-bottom: 10px; }
.way h3 { font-size: 1.25rem; font-weight: 700; }
.way p { color: var(--muted); font-size: .96rem; margin-top: 4px; }

/* for you */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.persona {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 28px; min-height: 230px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-spring), box-shadow .3s, border-color .3s;
}
.persona:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lime); }
.persona img { position: absolute; right: 14px; bottom: -34px; width: 104px; transition: transform .4s var(--ease-spring); }
.persona:hover img { transform: translateY(-12px) rotate(-6deg); }
.persona h3 { font-size: 1.45rem; font-weight: 700; padding-right: 60px; }
.persona p { color: var(--muted); margin-top: 10px; padding-right: 104px; }
.persona em { font-style: normal; color: var(--ink); font-weight: 700; }

.cuisines { margin-top: 72px; }
.cuisines__label { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee figure { margin: 0; position: relative; width: 190px; height: 240px; border-radius: var(--r-lg); overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.marquee img { width: 100%; height: 100%; object-fit: cover; }
.marquee figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* numbers */
.numbers__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.today { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-lg); max-width: 420px; justify-self: center; width: 100%; }
.today__head { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.today__streak { font-size: .9rem; color: var(--highlight); background: #FFF3E0; padding: 2px 10px; border-radius: 999px; }
.ring { position: relative; width: 190px; margin: 18px auto; }
.ring svg { width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring__bg { stroke: var(--surface-muted); }
.ring__fg { stroke: var(--green); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.today.is-in .ring__fg { stroke-dashoffset: 32; }
.ring__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__num strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__num span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.macros { display: grid; gap: 10px; }
.macro { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; }
.macro b { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.bar { height: 9px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.4s .2s cubic-bezier(.2, .8, .2, 1); }
.macro--protein span { color: var(--protein); } .macro--protein i { background: var(--protein); }
.macro--carbs span { color: var(--carbs); } .macro--carbs i { background: var(--carbs); }
.macro--fat span { color: var(--fat); } .macro--fat i { background: var(--fat); }
.today.is-in .macro--protein i { width: 78%; }
.today.is-in .macro--carbs i { width: 61%; }
.today.is-in .macro--fat i { width: 66%; }
.today__meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.today__meals div { position: relative; background: var(--cream); border-radius: var(--r-md); padding: 10px 8px 8px; text-align: center; font-weight: 700; font-size: .8rem; }
.today__meals img { width: 64px; margin: 0 auto 4px; }
.today__meals em { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: #fff; font-style: normal; font-size: .65rem; display: grid; place-items: center; }
.today__meals em.todo { background: var(--line); color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 38px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--lime-soft); color: var(--leaf); font-weight: 900; font-size: .8rem; display: grid; place-items: center; }
.checks strong { color: var(--ink); display: block; font-size: 1.08rem; }

/* privacy */
.privacy { padding-top: 0; }
.privacy__card {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-md);
}
.privacy__mascot { width: 100%; filter: drop-shadow(0 16px 16px rgba(29,33,28,.14)); }
.privacy__points { display: grid; gap: 14px; margin-top: 24px; }
.privacy__points p { color: var(--muted); }
.privacy__points strong { color: var(--ink); }

/* meet */
.meet { background: linear-gradient(180deg, var(--bg), #EEF6DA); }
.meet__head { text-align: center; display: grid; justify-items: center; }
.meet__head .h2 { max-width: 18ch; }
.meet__head .lede { text-align: center; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.mood {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 14px 16px; cursor: pointer; display: grid; justify-items: center; gap: 10px;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.mood img { height: 150px; width: auto; transition: transform .3s var(--ease-spring); }
.mood span { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.mood:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mood:hover img { animation: wiggle .6s ease-in-out; }
.mood.is-jump img { animation: jump .7s var(--ease-spring); }
@keyframes wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes jump { 40% { transform: translateY(-34px) scale(1.06, .94); } 70% { transform: translateY(0) scale(.94, 1.06); } }

/* faq */
.faq__wrap { max-width: 820px; }
.faq .h2 { margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s var(--ease-spring), background .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--lime-soft); }
.faq details p { color: var(--muted); padding: 0 44px 24px 0; }

/* final */
.final { padding: clamp(80px, 10vw, 130px) 0; background: radial-gradient(900px 500px at 50% 110%, #CBE872, transparent 70%), #EEF6DA; text-align: center; overflow: hidden; }
.final__inner { display: grid; justify-items: center; }
.final__mascot { width: 170px; margin-bottom: 18px; filter: drop-shadow(0 18px 16px rgba(60, 90, 5, .25)); animation: bob-soft 3.6s ease-in-out infinite; }
.final .lede { text-align: center; }

/* footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.footer nav { display: flex; gap: 20px; margin-left: auto; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer__legal { width: 100%; font-size: .85rem; }
.footer .brand { font-size: 1.35rem; color: var(--ink); }

/* reveal */
[data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal]:not(.is-in):not(.mess) { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .personas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { padding-top: 24px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__stage { order: -1; max-width: 400px; margin-bottom: -8px; }
  .demo { grid-template-columns: 1fr; gap: 32px; }
  .demo__prompts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -24px; padding: 4px 24px 8px; scrollbar-width: none; }
  .demo__prompts::-webkit-scrollbar { display: none; }
  .prompt { flex: 0 0 76%; scroll-snap-align: center; font-size: 1rem; }
  .prompt.is-active { transform: none; }
  .phone { max-width: 400px; width: 100%; margin: 0 auto; height: 560px; }
  .trust { grid-template-columns: 1fr; gap: 18px; margin-top: 56px; }
  .log__grid, .numbers__grid { grid-template-columns: 1fr; gap: 40px; }
  .log__mascot { max-width: 240px; }
  .privacy__card { grid-template-columns: 1fr; gap: 20px; }
  .privacy__mascot { max-width: 200px; justify-self: center; }
  .moods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .demo__prompts { margin: 0 -16px; padding-inline: 16px; }
  .btn--small { padding: 9px 14px; font-size: .88rem; }
  .brand { font-size: 1.4rem; }
  .join__row { flex-direction: column; border-radius: 26px; padding: 6px; }
  .join__input { padding: 14px 14px; }
  .join__btn { width: 100%; padding: 16px; }
  .join__note { padding-left: 4px; }
  .bubble { font-size: .92rem; left: 0; top: 12%; }
  .chip { font-size: .78rem; padding: 7px 10px; }
  .chip--a { left: 0; }
  .chip--b { right: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: start; }
  .step__art { grid-row: span 3; height: 96px; margin: 0; padding: 8px; }
  .step__art img { max-height: 76px; }
  .ways { grid-template-columns: 1fr; }
  .personas { grid-template-columns: 1fr; }
  .persona { min-height: 0; }
  .marquee figure { width: 150px; height: 190px; }
  .mood img { height: 110px; }
  .faq summary { font-size: 1.12rem; }
  .success { flex-direction: column; text-align: center; }
  .share { justify-content: center; }
  .footer nav { margin-left: 0; }
}

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

/* ---------- legal & 404 ---------- */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal .h2 { max-width: none; }
.legal__meta { color: var(--muted); font-weight: 600; margin: 12px 0 32px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.legal p, .legal li { color: #3E443A; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--leaf); font-weight: 700; }
.notfound { min-height: 70vh; display: grid; justify-items: center; align-content: center; text-align: center; gap: 12px; padding-top: 48px; padding-bottom: 96px; }
.notfound img { width: 180px; animation: bob-soft 4s ease-in-out infinite; }
.notfound .lede { margin: 0 0 16px; }

/* Turnstile: invisible unless Cloudflare needs an interaction */
.ts:empty { display: none; }
.ts { margin-top: 12px; min-height: 0; }
.join--center .ts { display: flex; justify-content: center; }
