@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,500;6..12,600;6..12,700;6..12,800&display=swap");

:root {
  --oat: #f5efe4;
  --paper: #fffcf6;
  --paper-deep: #f0e7da;
  --cocoa: #2d2925;
  --cocoa-soft: #5d554e;
  --muted: #82776d;
  --sage: #5f7b63;
  --sage-dark: #405846;
  --sage-soft: #dbe6d8;
  --honey: #e7b64a;
  --line: rgba(71, 56, 44, .11);
  --shadow: 0 0 0 1px rgba(71,56,44,.05), 0 2px 4px rgba(71,56,44,.04), 0 20px 60px rgba(71,56,44,.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--oat); color: var(--cocoa); font-family: "Nunito Sans", "Trebuchet MS", sans-serif; -webkit-font-smoothing: antialiased; }
body { min-width: 0; margin: 0; overflow-x: hidden; background: var(--oat); }
a { color: inherit; }
.site-header { width: min(1180px, calc(100% - 40px)); min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; }
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.header-action { min-height: 44px; display: inline-flex; align-items: center; padding: 0 17px; color: var(--sage-dark); font-size: 14px; font-weight: 800; text-decoration: none; background: var(--sage-soft); border-radius: 13px; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: calc(100svh - 84px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); align-items: center; gap: clamp(44px, 8vw, 112px); padding: 56px 0 92px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(52px, 6.7vw, 94px); line-height: .93; letter-spacing: -.075em; text-wrap: balance; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: var(--cocoa-soft); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.primary-action { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; background: var(--sage-dark); border-radius: 15px; box-shadow: 0 10px 28px rgba(64,88,70,.2); transition: transform 140ms cubic-bezier(.23,1,.32,1), background-color 160ms ease; }
.primary-action:hover { background: #344c3b; }
.primary-action:active { transform: scale(.98); }
.primary-action svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.text-action { min-height: 44px; display: inline-flex; align-items: center; color: var(--sage-dark); font-size: 14px; font-weight: 800; text-underline-offset: 5px; }
.beta-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.beta-note span { width: 8px; height: 8px; flex: 0 0 auto; background: var(--honey); border-radius: 50%; box-shadow: 0 0 0 5px rgba(231,182,74,.16); }
.product-scene { position: relative; display: grid; justify-items: center; }
.app-preview { width: min(100%, 390px); padding: 16px; background: var(--oat); border: 10px solid var(--paper); border-radius: 40px; box-shadow: var(--shadow), 0 35px 80px rgba(45,41,37,.12); transform: rotate(1.4deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 1px 16px; }
.preview-brand { display: flex; align-items: center; gap: 10px; }
.preview-brand img { width: 40px; height: 40px; border-radius: 12px; }
.preview-brand small, .preview-brand strong { display: block; }
.preview-brand small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-brand strong { font-size: 13px; }
.preview-plus { width: 42px; height: 42px; display: grid; place-items: center; font-size: 25px; font-weight: 500; background: var(--paper); border-radius: 13px; box-shadow: 0 0 0 1px var(--line); }
.day-preview { padding: 22px; background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1px rgba(71,56,44,.04), 0 12px 30px rgba(71,56,44,.06); }
.calories { display: block; margin-top: 2px; font-size: 50px; line-height: .95; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.calories small { font-size: 14px; letter-spacing: 0; }
.day-preview > p { margin: 9px 0 20px; color: var(--cocoa-soft); font-size: 12px; }
.vector { position: relative; height: 11px; overflow: hidden; background: var(--paper-deep); border-radius: 999px; }
.vector span { display: block; width: 73%; height: 100%; background: var(--sage); border-radius: inherit; }
.vector i { position: absolute; top: -4px; left: calc(100% - 3px); width: 3px; height: 19px; background: var(--cocoa); border-radius: 4px; opacity: .52; }
.vector-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.macro-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 17px; }
.macro-preview > span { padding: 9px; background: var(--oat); border-radius: 11px; }
.macro-preview strong, .macro-preview small { display: block; }
.macro-preview strong { font-size: 12px; }
.macro-preview small { margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 700; }
.coach-preview { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 13px; color: var(--sage-dark); background: var(--sage-soft); border-radius: 17px; }
.coach-preview img { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; }
.coach-preview p { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.35; }
.coach-preview small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.scene-caption { margin-top: 22px; color: var(--muted); font-size: 12px; }
.screens { padding: 116px 0 126px; border-top: 1px solid var(--line); }
.screens-heading { max-width: 700px; margin-bottom: 54px; }
.screens-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: .96; letter-spacing: -.065em; text-wrap: balance; }
.screens-heading p { max-width: 590px; margin: 20px 0 0; color: var(--cocoa-soft); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.screen-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.screen-example { min-width: 0; }
.screen-example-raised { transform: translateY(-22px); }
.screen-shell { min-height: 530px; padding: 16px; overflow: hidden; background: var(--oat); border: 9px solid var(--paper); border-radius: 34px; box-shadow: var(--shadow), 0 28px 70px rgba(45,41,37,.1); }
.screen-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 12px; }
.screen-head strong { font-size: 15px; }
.screen-head > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo-actions > div { min-width: 0; min-height: 122px; display: grid; place-content: center; justify-items: center; gap: 5px; padding: 12px 7px; text-align: center; background: var(--paper); border-radius: 17px; box-shadow: 0 0 0 1px rgba(71,56,44,.04); }
.photo-actions svg { width: 33px; height: 33px; margin-bottom: 4px; color: var(--sage-dark); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-actions strong { font-size: 12px; line-height: 1.2; text-wrap: balance; }
.photo-actions small { color: var(--muted); font-size: 9px; }
.screen-divider { display: flex; align-items: center; gap: 9px; margin: 17px 0; color: var(--muted); font-size: 9px; text-align: center; }
.screen-divider::before, .screen-divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.food-input { min-height: 72px; padding: 13px; color: var(--cocoa-soft); font-size: 12px; line-height: 1.4; background: var(--paper-deep); border-radius: 13px; }
.screen-button { min-height: 45px; display: grid; place-items: center; margin-top: 9px; color: #fff; font-size: 12px; font-weight: 800; background: var(--sage-dark); border-radius: 12px; }
.usual-meal { margin-top: 18px; padding: 13px; background: var(--sage-soft); border-radius: 14px; }
.usual-meal small, .usual-meal span { display: block; }
.usual-meal small { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.usual-meal span { color: var(--sage-dark); font-size: 12px; font-weight: 800; }
.diary-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 4px; background: var(--paper); border-radius: 14px; box-shadow: 0 0 0 1px rgba(71,56,44,.04); }
.diary-summary > span { min-width: 0; text-align: center; border-right: 1px solid var(--line); }
.diary-summary > span:last-child { border-right: 0; }
.diary-summary strong, .diary-summary small { display: block; }
.diary-summary strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.diary-summary small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.meal-lines { margin-top: 14px; padding: 2px 12px; background: var(--paper); border-radius: 16px; }
.meal-lines > div { min-height: 72px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.meal-lines > div:last-child { border-bottom: 0; }
.meal-lines time { color: var(--muted); font-size: 9px; font-weight: 700; }
.meal-lines span { min-width: 0; }
.meal-lines strong, .meal-lines small { display: block; }
.meal-lines strong { overflow: hidden; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.meal-lines small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.meal-lines b { font-size: 10px; font-variant-numeric: tabular-nums; }
.yesterday-preview { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 14px; padding: 13px; background: var(--paper); border-radius: 14px; }
.yesterday-preview small, .yesterday-preview strong { display: block; }
.yesterday-preview small { color: var(--muted); font-size: 8px; }
.yesterday-preview strong { margin-top: 3px; font-size: 12px; }
.yesterday-preview p { margin: 0; color: var(--cocoa-soft); font-size: 9px; line-height: 1.35; }
.streak-preview { padding: 18px; background: #f6e7b8; border-radius: 17px; }
.streak-preview small { color: var(--cocoa-soft); font-size: 9px; font-weight: 700; }
.streak-preview strong { display: block; margin-top: 3px; font-size: 52px; line-height: .95; letter-spacing: -.06em; }
.streak-preview p { margin: 8px 0 0; color: var(--cocoa-soft); font-size: 10px; line-height: 1.35; }
.week-preview, .weight-preview { margin-top: 12px; padding: 14px; background: var(--paper); border-radius: 16px; }
.week-preview > small, .weight-preview small { color: var(--muted); font-size: 8px; font-weight: 700; }
.week-preview > div { height: 74px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; margin-top: 10px; }
.week-preview i { display: block; height: var(--bar); background: var(--sage-soft); border-radius: 6px 6px 2px 2px; }
.week-preview i.active { background: var(--sage); }
.weight-preview > span { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.weight-preview > span strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.weight-preview svg { display: block; width: 100%; height: 74px; margin-top: 4px; overflow: visible; }
.weight-grid-line { fill: none; stroke: var(--line); stroke-dasharray: 3 5; }
.weight-path { fill: none; stroke: var(--sage-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.weight-preview circle { fill: var(--sage-dark); }
.weight-preview p { margin: 4px 0 0; color: var(--cocoa-soft); font-size: 9px; }
.screen-note { display: grid; gap: 4px; margin: 18px 7px 0; }
.screen-note strong { font-size: 14px; }
.screen-note span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.how { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(48px, 9vw, 120px); padding: 116px 0; border-top: 1px solid var(--line); }
.section-intro { position: sticky; top: 32px; align-self: start; }
.section-intro h2, .philosophy h2, .closing h2 { margin: 0; font-size: clamp(36px, 4.2vw, 58px); line-height: 1; letter-spacing: -.06em; text-wrap: balance; }
.section-intro p { max-width: 470px; margin: 20px 0 0; color: var(--cocoa-soft); font-size: 17px; line-height: 1.55; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--sage); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0; font-size: 23px; line-height: 1.15; letter-spacing: -.035em; }
.steps p { max-width: 560px; margin: 9px 0 0; color: var(--cocoa-soft); font-size: 15px; line-height: 1.55; }
.philosophy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(44px, 8vw, 100px); padding: clamp(34px, 6vw, 72px); background: var(--paper); border-radius: 32px; box-shadow: var(--shadow); }
.principles { display: grid; align-content: center; }
.principles p { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; padding: 14px 0; color: var(--cocoa-soft); font-size: 16px; border-bottom: 1px solid var(--line); }
.principles p:last-child { border-bottom: 0; }
.principles span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--sage-dark); font-size: 13px; font-weight: 800; background: var(--sage-soft); border-radius: 9px; }
.closing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin: 112px 0 40px; padding: 30px; color: #fff; background: var(--sage-dark); border-radius: 28px; }
.closing > img { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 0 0 7px rgba(255,255,255,.3); }
.closing h2 { max-width: 650px; font-size: clamp(30px, 3.8vw, 48px); }
.closing .eyebrow { color: rgba(255,255,255,.78); }
.closing p { margin: 12px 0 0; color: rgba(255,255,255,.9); font-size: 15px; }
.closing .primary-action { white-space: nowrap; }
.closing .primary-action { color: var(--sage-dark); background: #fff; box-shadow: 0 10px 28px rgba(31,47,35,.2); }
.closing .primary-action:hover { background: var(--paper); }
footer { width: min(1180px, calc(100% - 40px)); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer a { color: var(--sage-dark); font-weight: 800; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 58px; padding: 54px 0 80px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .beta-note { justify-content: center; }
  .product-scene { width: 100%; }
  .screens { padding: 86px 0 94px; }
  .screen-gallery { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 20px; scroll-padding-inline: 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .screen-example { flex: 0 0 min(82vw, 350px); scroll-snap-align: start; }
  .screen-example-raised { transform: none; }
  .screen-shell { height: 530px; }
  .how { grid-template-columns: 1fr; gap: 44px; padding: 86px 0; }
  .section-intro { position: static; }
  .philosophy { grid-template-columns: 1fr; }
  .closing { grid-template-columns: auto minmax(0, 1fr); }
  .closing .primary-action { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .brand span { max-width: 125px; line-height: 1.05; }
  .header-action { padding-inline: 13px; font-size: 12px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(45px, 14.5vw, 68px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .primary-action { width: 100%; }
  .text-action { justify-content: center; }
  .beta-note { align-items: flex-start; font-size: 11px; line-height: 1.4; }
  .beta-note span { margin-top: 4px; }
  .app-preview { border-width: 7px; border-radius: 32px; transform: none; }
  .screens-heading { margin-bottom: 38px; }
  .screens-heading h2 { font-size: 42px; }
  .screens-heading p { font-size: 15px; }
  .screen-example { flex-basis: min(88vw, 330px); }
  .screen-shell { min-height: 510px; height: 510px; border-width: 7px; border-radius: 29px; }
  .day-preview { padding: 18px; }
  .calories { font-size: 44px; }
  .macro-preview > span { padding: 8px 6px; }
  .how { padding: 76px 0; }
  .section-intro h2, .philosophy h2 { font-size: 39px; }
  .steps li { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 25px 0; }
  .steps h3 { font-size: 20px; }
  .philosophy { gap: 34px; padding: 30px 20px; border-radius: 24px; }
  .principles p { font-size: 14px; }
  .closing { grid-template-columns: 1fr; justify-items: center; margin-top: 78px; padding: 28px 20px; text-align: center; }
  .closing > img { width: 74px; height: 74px; }
  .closing .primary-action { grid-column: auto; }
  footer { min-height: 92px; flex-direction: column; justify-content: center; gap: 8px; }
}

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