/* MealFeel landing page. Palette and type follow the app's v2 design (canvas "Health recipe app — v2 design").
   Phone screens always use the app's light palette (--app-*), whatever the page theme. */
:root {
  --ground: #F3F4EF;
  --surface: #FFFFFF;
  --surface-2: #EBEEE5;
  --ink: #15211B;
  --ink-2: #3F4A44;
  --muted: #5B6660;
  --line: #E2E6DC;
  --green: #2E6B42;
  --lime: #D4F36B;
  --on-lime: #15211B;
  --on-lime-2: #2F3D35;
  --band: #15211B;
  --band-fg: #F6F8F3;
  --band-muted: #C4CDC7;
  --shadow: 0 30px 60px -28px rgba(21, 33, 27, 0.45);

  --app-bg: #F3F4EF;
  --app-card: #FFFFFF;
  --app-chip: #EEF0E9;
  --app-ink: #15211B;
  --app-ink-2: #3F4A44;
  --app-muted: #5B6660;
  --app-line: #E2E6DC;
  --app-lime: #D4F36B;
  --app-sky: #D3EAF8;
  --app-green: #2E6B42;
  --app-green-soft: #9DB9A6;
  --app-on-ink: #FFFFFF;
  --app-grid: #EEF0EA;
  --bezel: #111A15;
  --bezel-ring: #2A352F;

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter-x: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1511;
    --surface: #17211B;
    --surface-2: #1F2B24;
    --ink: #EAF0E6;
    --ink-2: #C3CDC6;
    --muted: #9AA69F;
    --line: #2B3831;
    --green: #A8D9B5;
    --band: #18231D;
    --band-fg: #EAF0E6;
    --band-muted: #AEB9B2;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
    --bezel: #050806;
    --bezel-ring: #3A4A40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1511;
  --surface: #17211B;
  --surface-2: #1F2B24;
  --ink: #EAF0E6;
  --ink-2: #C3CDC6;
  --muted: #9AA69F;
  --line: #2B3831;
  --green: #A8D9B5;
  --band: #18231D;
  --band-fg: #EAF0E6;
  --band-muted: #AEB9B2;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
  --bezel: #050806;
  --bezel-ring: #3A4A40;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(var(--gutter-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter-x), env(safe-area-inset-right, 0px));
}
.ic { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.sym-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 10px; z-index: 20; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--lime); color: var(--on-lime); transition: box-shadow 200ms ease; }
.nav.scrolled { box-shadow: 0 1px 0 rgba(21, 33, 27, 0.12); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 18px; background: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 20px; height: 20px; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.045em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons and forms ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--on-lime); color: var(--lime);
  font-weight: 750; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 140ms ease, opacity 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible, .field:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.signup { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.signup-row { display: flex; gap: 8px; }
.field {
  flex: 1 1 auto; min-width: 0; min-height: 52px;
  padding: 0 16px; border-radius: 14px;
  border: 1.5px solid rgba(21, 33, 27, 0.25); background: #FFFFFF; color: #15211B;
  font: inherit; font-size: 16px;
}
.field::placeholder { color: #6A746E; }
.signup .btn { min-height: 52px; }
.signup-note { font-size: 13.5px; font-weight: 500; color: var(--on-lime-2); }
.signup-msg { font-size: 15px; font-weight: 650; min-height: 1.4em; }
.signup-msg:empty { display: none; }
.signup-msg[data-state="ok"] { display: flex; align-items: center; gap: 8px; }
.signup.done .signup-row, .signup.done .signup-note { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hero ---------- */
.hero { background: var(--lime); color: var(--on-lime); overflow: hidden; }
.hero .wrap { padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hero .kicker { color: var(--on-lime-2); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 8.6vw, 108px);
  line-height: 0.92; font-weight: 800; letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero .lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; font-weight: 500; color: var(--on-lime-2); max-width: 34em; text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
.fact { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.fact-dot { width: 32px; height: 32px; border-radius: 16px; background: var(--on-lime); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; }
.fact-dot .ic { width: 16px; height: 16px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .plate { position: absolute; width: 150px; filter: drop-shadow(0 18px 24px rgba(21, 33, 27, 0.25)); }
.hero-visual .plate svg { width: 100%; height: auto; display: block; }
.hero-visual .plate.a { left: -14px; bottom: 40px; transform: rotate(-10deg); }
.hero-visual .plate.b { right: -10px; top: 30px; transform: rotate(14deg); width: 124px; }
.hero-visual .phone { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.alt { background: var(--surface); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.sec .kicker { color: var(--green); }
.sec h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1.0; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.sec .lead { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split.rev { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Problem strip ---------- */
.pains { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pain h3 { font-size: 17px; font-weight: 750; }
.pain p { color: var(--ink-2); font-size: 15px; }

/* ---------- Loop ---------- */
.loop-grid { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.loop-grid > * { min-width: 0; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step {
  appearance: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px;
  padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.step:hover { border-color: var(--muted); }
.step:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.step[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; width: 32px; height: 32px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink); }
.step[aria-pressed="true"] .step-num { background: var(--on-lime); color: var(--lime); }
.step-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1.1; }
.step-text { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.step[aria-pressed="true"] .step-text { color: var(--on-lime-2); }
.step .ic { opacity: 0.8; }
.loop-note { margin-top: 16px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.loop-note .ic { width: 18px; height: 18px; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-caption { font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: center; min-height: 1.5em; }

/* ---------- Phone mockups ---------- */
.phone { width: 300px; max-width: 100%;border-radius: 46px; background: var(--bezel); padding: 9px; box-shadow: var(--shadow), 0 0 0 1px var(--bezel-ring); margin-inline: auto; }
.screen { position: relative; border-radius: 38px; background: var(--app-bg); color: var(--app-ink); overflow: hidden; display: flex; flex-direction: column; font-family: var(--font-body); font-size: 13px; line-height: 1.4; }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 78px; height: 22px; margin-left: -39px; border-radius: 12px; background: var(--bezel); z-index: 1; }
.screen.fixed { height: 600px; }
.screen.fixed.tall { height: 680px; }
.screen[hidden] { display: none !important; }
.screen.fade { animation: fadeIn 260ms ease both; }
@keyframes fadeIn { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scr { padding: 42px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.p-h1 { font-family: var(--font-display); font-size: 24px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.p-h2 { font-family: var(--font-display); font-size: 17px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.p-muted { color: var(--app-muted); font-weight: 500; }
.p-small { font-size: 11.5px; }
.p-bold { font-weight: 700; }
.p-body { color: var(--app-ink-2); font-weight: 500; }
.p-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--app-muted); }
.p-card { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.p-card.lime { background: var(--app-lime); border-color: var(--app-lime); }
.p-card.tight { gap: 0; }
.p-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.p-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.p-seg > span { height: 30px; border-radius: 10px; background: var(--app-chip); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: var(--app-ink); }
.p-seg > span.on { background: var(--app-ink); color: var(--app-on-ink); }
.p-tag { display: inline-flex; align-self: flex-start; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--app-lime); color: var(--app-ink); font-size: 9.5px; font-weight: 800; letter-spacing: 0.07em; }
.p-tag.sky { background: var(--app-sky); }
.p-tag.chip { background: var(--app-chip); }
.p-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.p-btn { height: 38px; border-radius: 12px; background: var(--app-ink); color: var(--app-on-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; text-align: center; padding: 0 8px; }
.p-btn.ghost { background: var(--app-card); color: var(--app-ink); border: 1px solid var(--app-line); }
.p-btn.sm { height: 30px; border-radius: 10px; font-size: 11.5px; align-self: flex-start; padding: 0 12px; }
.p-btn.lime { background: var(--app-lime); color: var(--app-ink); }
.p-btn.end { margin-top: auto; }
.p-pill { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: var(--app-card); border: 1px solid var(--app-line); font-weight: 700; font-size: 12px; color: var(--app-ink); }
.p-pill .ic { width: 14px; height: 14px; }
.p-circle { width: 30px; height: 30px; border-radius: 15px; background: var(--app-card); border: 1px solid var(--app-line); display: inline-flex; align-items: center; justify-content: center; color: var(--app-ink); flex-shrink: 0; }
.p-circle .ic { width: 14px; height: 14px; }
.p-check { width: 20px; height: 20px; border-radius: 10px; flex-shrink: 0; background: var(--app-lime); color: var(--app-ink); display: inline-flex; align-items: center; justify-content: center; }
.p-check .ic { width: 11px; height: 11px; }
.p-thumb { width: 52px; height: 52px; flex-shrink: 0; }
.p-thumb svg { width: 100%; height: 100%; display: block; }
.tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--app-card); border-top: 1px solid var(--app-line); padding: 8px 6px 16px; }
.tabbar > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--app-muted); }
.tabbar > span.on { color: var(--app-ink); font-weight: 800; }
.tabbar .ic { width: 18px; height: 18px; }
.tabbar > span.on .ic { width: 44px; height: 24px; padding: 3px 13px; border-radius: 12px; background: var(--app-lime); }
.tabbar > span:not(.on) .ic { margin-block: 3px; }

/* Today screen (app v3): up-next card, other meals, pattern card, check-in bar */
.scr.today { gap: 12px; overflow: hidden; }
.p-h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.up-next { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 20px; overflow: hidden; flex-shrink: 0; }
.up-art { position: relative; height: 92px; background: #F9DCCB; }
.up-tag { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 8px; background: var(--app-ink); color: var(--app-on-ink); font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.up-plate { position: absolute; right: 10px; top: 8px; width: 104px; height: 104px; filter: drop-shadow(0 8px 12px rgba(21, 33, 27, 0.18)); }
.up-plate svg { width: 100%; height: 100%; display: block; }
.up-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.up-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10.5px; font-weight: 600; color: var(--app-muted); }
.up-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.up-meta .ic { width: 12px; height: 12px; }
.why { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 10px; background: var(--app-chip); font-size: 10.5px; line-height: 1.35; font-weight: 500; color: var(--app-ink-2); }
.why .p-tag { flex-shrink: 0; font-size: 8.5px; }
.up-btns { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px; }
.p-btn.sq { padding: 0; }
.p-btn.sq .ic { width: 15px; height: 15px; }
.meal-list { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.meal-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 14px; }
.meal-item .p-col { flex: 1; gap: 1px; }
.meal-item .p-bold { font-size: 12px; }
.meal-pic { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.meal-pic svg { width: 28px; height: 28px; display: block; }
.done, .todo { width: 20px; height: 20px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.done { background: var(--app-green); color: var(--app-on-ink); }
.done .ic { width: 11px; height: 11px; }
.todo { border: 1.5px solid #C9CEC4; }
.pattern-card { background: var(--app-ink); color: var(--app-on-ink); border-radius: 18px; padding: 12px 12px 40px; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.pattern-card .p-label { color: var(--app-lime); }
.pattern-txt { font-family: var(--font-display); font-size: 14px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.pattern-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.pattern-link .ic { width: 12px; height: 12px; }
.checkin-bar { position: absolute; left: 8px; right: 8px; bottom: 66px; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 9px 12px 9px 9px; background: var(--app-card); border-radius: 18px; box-shadow: 0 8px 22px -6px rgba(21, 33, 27, 0.3); font-size: 12.5px; }
.checkin-bar::before { content: ""; position: absolute; top: 4px; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 2px; background: #D3D7CE; }
.checkin-bar .p-col { flex: 1; }
.ci-face { width: 32px; height: 32px; border-radius: 16px; background: var(--app-lime); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-face .ic { width: 17px; height: 17px; }
.ci-sub { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--app-muted); }
.ci-sub .ic { width: 11px; height: 11px; }
.ci-chev { width: 16px; height: 16px; }
.screen .tabbar { position: relative; z-index: 1; }

/* Check-in sheet */
.scr.dimmed { filter: saturate(0.6); }
.ghost-block { border-radius: 20px; background: var(--app-card); border: 1px solid var(--app-line); flex-shrink: 0; }
.screen:has(.sheet)::after { content: ""; position: absolute; inset: 0; background: rgba(21, 33, 27, 0.42); z-index: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--app-bg); border-radius: 26px 26px 0 0; padding: 10px 16px 22px; display: flex; flex-direction: column; gap: 9px; }
.sheet-handle { align-self: center; width: 34px; height: 4px; border-radius: 2px; background: #CDD2C8; margin-bottom: 4px; }
.streak { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: var(--app-card); border: 1px solid var(--app-line); font-size: 11px; font-weight: 700; }
.streak .ic { width: 12px; height: 12px; }
.ci-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ci-opts > span { height: 42px; border-radius: 14px; background: var(--app-card); border: 1px solid var(--app-line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.ci-opts > span.on { background: var(--app-lime); border-color: var(--app-lime); }
.p-btn.big { height: 48px; border-radius: 16px; font-size: 15px; margin-top: 6px; }
.meal-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--app-line); }
.meal-row:first-child { border-top: 0; padding-top: 2px; }
.meal-dot { width: 34px; height: 34px; flex-shrink: 0; }
.meal-dot svg { width: 100%; height: 100%; display: block; }
.progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; flex: 1; }
.progress > span { height: 5px; border-radius: 3px; background: #DCE0D6; }
.progress > span.on { background: var(--app-ink); }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stat3 > span { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stat3 b { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat3 small { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: var(--app-muted); }
.chart-txt { fill: var(--app-muted); font-family: var(--font-body); font-size: 11px; font-weight: 600; }
.chart-grid { stroke: var(--app-grid); }
.chart-bar { fill: var(--app-green); }
.chart-bar.low { fill: var(--app-green-soft); }
.recipe-hero { height: 150px; background: var(--app-lime); position: relative; display: flex; align-items: center; justify-content: center; }
.recipe-hero .p-thumb { width: 128px; height: 128px; filter: drop-shadow(0 10px 14px rgba(21, 33, 27, 0.22)); transform: rotate(-8deg); }
.recipe-hero .p-circle { position: absolute; top: 40px; }
.recipe-hero .p-circle.l { left: 14px; }
.recipe-hero .p-circle.r { right: 14px; }
.ing { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--app-line); font-weight: 600; }
.ing:first-child { border-top: 0; }
.ing span:last-child { color: var(--app-muted); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips > span { padding: 6px 11px; border-radius: 999px; background: var(--app-card); border: 1px solid var(--app-line); font-size: 12px; font-weight: 600; }
.chips.sm > span { padding: 5px 9px; font-size: 11px; }
.timer { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.play { width: 46px; height: 46px; border-radius: 23px; background: var(--app-ink); color: var(--app-on-ink); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.feat { display: flex; flex-direction: column; gap: 6px; }
.feat-ic { width: 40px; height: 40px; border-radius: 20px; background: var(--lime); color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.feat h3 { font-size: 17px; font-weight: 750; }
.feat p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- Coach ---------- */
.sec.dark { background: var(--band); color: var(--band-fg); }
.sec.dark .kicker { color: var(--lime); }
.sec.dark .lead { color: var(--band-muted); }
/* Fixed width, not a percentage: in the split's auto column a % width makes the column size to the bubbles' unwrapped text */
.chat { width: 400px; max-width: 100%;background: var(--app-bg); color: var(--app-ink); border-radius: 28px; padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--app-line); }
.chat-av { width: 36px; height: 36px; border-radius: 18px; background: var(--app-lime); display: inline-flex; align-items: center; justify-content: center; }
.chat-av .ic { width: 18px; height: 18px; }
.bub { max-width: 86%; padding: 10px 12px; font-size: 13px; line-height: 1.45; font-weight: 500; }
.bub.me { align-self: flex-end; background: var(--app-ink); color: var(--app-on-ink); border-radius: 16px 16px 4px 16px; }
.bub.them { align-self: flex-start; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 16px 16px 16px 4px; display: flex; flex-direction: column; gap: 6px; }
.bub.them ul { padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }
.coach-points { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.coach-point { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.coach-point .dot { width: 36px; height: 36px; border-radius: 18px; background: var(--lime); color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; }
.coach-point .dot .ic { width: 18px; height: 18px; }
.coach-point h3 { font-size: 16.5px; font-weight: 750; }
.coach-point p { color: var(--band-muted); font-size: 15px; line-height: 1.5; margin-top: 2px; }

/* ---------- Promises ---------- */
.rules { margin-top: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.sec.alt .rule { background: var(--ground); }
.rule .feat-ic { width: 44px; height: 44px; border-radius: 22px; margin: 0; }
.rule h3 { font-size: 18px; font-weight: 750; }
.rule p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 18px; font-weight: 700; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 6px; }
.faq summary .ic { transition: transform 180ms ease; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }

/* ---------- Final CTA ---------- */
.cta { background: var(--lime); color: var(--on-lime); }
.cta .wrap { padding-block: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.cta h2 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.cta p.lead { margin-top: 16px; font-size: 18px; font-weight: 500; color: var(--on-lime-2); max-width: 32em; }

.foot { padding-block: 36px 48px; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.foot .logo-mark { background: var(--ink); }
.foot .logo-word { font-size: 22px; color: var(--ink); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .split, .split.rev, .loop-grid, .cta .wrap { grid-template-columns: minmax(0, 1fr); }
  .split.rev > .phone { order: 2; }
  .chat { margin-inline: auto; }
  .pains { grid-template-columns: minmax(0, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .signup-row { flex-direction: column; }
  .step { padding: 14px 14px 16px; border-radius: 18px; }
  .step-title { font-size: 18px; }
  .step-text { font-size: 13.5px; }
  .hero-visual .plate.a { width: 110px; left: -8px; }
  .hero-visual .plate.b { width: 96px; right: -6px; }
  .logo-word { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen.fade { animation: none; }
  .step, .btn, .faq summary .ic { transition: none; }
}
