/* Nutri website. Tokens mirror DESIGN.md §3 (Pencil palette) and §4 (the dotted page). */

:root {
  --paper: #FBF7EF;
  --surface: #F1EBDF;
  --raised: #FFFDF8;
  --separator: #E6DED0;
  --ink: #2A241D;
  --pencil: #655B50;
  --primary: #FFD95A;
  --on-primary: #2A241D;
  --highlight: #FCEBB0;
  --accent: #5A4500;
  --link: #2A241D;
  --dot: rgba(101, 91, 80, 0.28);
  --shadow: 0 1px 2px rgba(42, 36, 29, 0.06), 0 12px 32px rgba(42, 36, 29, 0.08);

  --protein: #C72B50;
  --carbs: #087566;
  --fat: #3D5CDD;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;

  --pitch: 17px;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 34rem;
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; display: block; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.lockup img { width: 40px; height: 40px; border-radius: 9px; }
.lockup span { font-weight: 800; font-size: 24px; letter-spacing: -0.035em; }

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--pencil);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero .lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--pencil);
  max-width: 30rem;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.store-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 14px 24px 14px 18px;
  font-weight: 600;
  font-size: 16px;
}
.store-note svg { width: 20px; height: 20px; flex: none; }
.store-sub { margin: 14px 0 0; color: var(--pencil); font-size: 15px; }

/* ---------- The page demo ---------- */

.page {
  position: relative;
  background-color: var(--raised);
  background-image: radial-gradient(circle at center, var(--dot) 1.1px, transparent 1.6px);
  background-size: var(--pitch) var(--pitch);
  background-position: 8px 8px;
  border: 1px solid var(--separator);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  min-height: 460px;
}

.page-date { margin: 0 0 4px; font-size: 13px; color: var(--pencil); }
.page-title { margin: 0 0 22px; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }

.line {
  font-size: 19px;
  line-height: 34px;
  margin: 0;
  min-height: 68px;
  font-weight: 400;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.items { list-style: none; margin: 14px 0 0; padding: 0; }
.items li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  padding: 9px 0;
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.items li.in { opacity: 1; transform: none; }
.items .name { font-weight: 500; }
.items .kcal { font-weight: 600; text-align: right; }
.items .meta { grid-column: 1 / -1; font-size: 13px; color: var(--pencil); display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.badge svg { width: 13px; height: 13px; }
.badge.verified { color: var(--accent); }
.badge.estimated { color: var(--pencil); }

.total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dotted var(--pencil);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.total.in { opacity: 1; }
.total .sum { font-size: 14px; color: var(--pencil); }
.total .saved {
  position: relative;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 6px;
  isolation: isolate;
}
.total .saved::before {
  content: "";
  position: absolute;
  inset: 2px 0 1px;
  background: var(--highlight);
  border-radius: 3px;
  z-index: -1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s;
}
.total.in .saved::before { transform: scaleX(1); }

.replay {
  position: absolute;
  right: 16px;
  bottom: -52px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--pencil);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.replay:hover { color: var(--ink); }

/* ---------- Sections ---------- */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.section h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 18ch;
  text-wrap: balance;
}
.section .intro {
  font-size: 19px;
  color: var(--pencil);
  max-width: var(--measure);
  margin: 0 0 48px;
  text-wrap: pretty;
}

/* The receipt */
.receipt-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.receipt {
  background: var(--raised);
  border: 1px solid var(--separator);
  border-radius: 20px;
  padding: 24px clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
  font-size: 15px;
}
.receipt h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.receipt .rsub { margin: 0 0 16px; color: var(--pencil); font-size: 13px; }
.receipt dl { margin: 0; }
.receipt .row { padding: 12px 0; border-top: 1px solid var(--separator); }
.receipt dt { font-weight: 500; }
.receipt dt small { display: block; font-weight: 400; color: var(--pencil); font-size: 13px; }
.receipt dd { margin: 4px 0 0; color: var(--pencil); }
.receipt dd b { color: var(--ink); font-weight: 600; }
.receipt .sum-row { border-top: 2px dotted var(--pencil); padding-top: 14px; margin-top: 4px; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.macros { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--pencil); flex-wrap: wrap; }
.macros span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.macros .p::before { background: var(--protein); }
.macros .c::before { background: var(--carbs); }
.macros .f::before { background: var(--fat); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.facts h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.facts p { margin: 0; color: var(--pencil); max-width: var(--measure); }

/* Ways in */
.ways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--separator);
}
.ways > div { padding: 24px 24px 8px 0; }
.ways svg { width: 26px; height: 26px; color: var(--ink); margin-bottom: 14px; }
.ways h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.ways p { margin: 0; color: var(--pencil); font-size: 16px; }
.ways q { quotes: "\201C" "\201D"; color: var(--ink); }

/* Screens */
.screens {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 8px 2px 24px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
}
.screens figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 22vw, 264px); min-width: 0; scroll-snap-align: start; }
.screens img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: 36px;
  border: 1px solid var(--separator);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.screens figcaption { margin-top: 14px; font-size: 15px; color: var(--pencil); }

/* Folds */
.folds-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.folds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 12px; list-style: none; margin: 0; padding: 0; }
.folds li { text-align: center; font-size: 13px; color: var(--pencil); }
.folds img { width: 100%; max-width: 120px; margin: 0 auto 4px; aspect-ratio: 1; object-fit: contain; }
.folds li.unearned img { filter: grayscale(1) contrast(0.7) brightness(1.18); opacity: 0.55; }

/* Price */
.price {
  background: var(--raised);
  border: 1px solid var(--separator);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.price h2 { margin-bottom: 12px; }
.price p { margin: 0; color: var(--pencil); max-width: var(--measure); }
.plans { display: grid; gap: 12px; }
.plan {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
}
.plan-term { font-size: 16px; }
.plan-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-amounts span { display: grid; gap: 2px; min-width: 0; }
.plan-amounts b { font-size: 22px; font-weight: 700; white-space: nowrap; }
.plan-amounts small { color: var(--pencil); font-size: 12px; }
.plan.featured { background: var(--primary); color: var(--on-primary); }
.plan.featured small { color: var(--on-primary); opacity: 0.8; }

/* ---------- Footer ---------- */

.site-footer {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1200px - 2 * var(--gutter));
  margin: 0 auto;
  padding: 32px 0 56px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--pencil);
  font-size: 14px;
  border-top: 2px dotted var(--separator);
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--pencil); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Legal and support pages ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) 80px;
}
.doc-sheet {
  background: var(--raised);
  border: 1px solid var(--separator);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.doc .updated { color: var(--pencil); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc li { max-width: 62ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--separator); vertical-align: top; }
.doc th { font-weight: 600; }
.doc .table-scroll { overflow-x: auto; }
.doc .summary {
  background: var(--highlight);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 8px;
}
.doc .summary p { margin: 0; }
.faq details { border-top: 1px solid var(--separator); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--separator); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; list-style-position: outside; }
.faq details p { margin: 0 0 14px; color: var(--pencil); }
.contact-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 8px 0 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero, .receipt-wrap, .folds-wrap, .price { grid-template-columns: 1fr; }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page { min-height: 0; }
}
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; }
  .ways { grid-template-columns: 1fr; }
  .ways > div { padding-right: 0; }
  .page { padding: 22px 18px 20px; border-radius: 22px; }
  .line { font-size: 17px; }
  .total { flex-direction: column; align-items: flex-start; gap: 6px; }
  .folds { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .items li, .total, .total .saved::before { transition: none; }
}

/* Landing-page continuation: the dotted page remains the primary design source. */
html { scroll-padding-top: 24px; }
main, main > *, .hero > *, .receipt-wrap > *, .price > * { min-width: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--primary); color: var(--on-primary); border-radius: 12px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.header-cta { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.animating .items li:not(.in) { opacity: 0; transform: translateY(6px); }
.animating .total:not(.in) { opacity: 0; }
.how { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.how-phone { min-width: 0; padding: 36px; background: var(--surface); border-radius: 32px; }
.how-phone img { width: min(100%, 270px); height: auto; margin: auto; border: 1px solid var(--separator); border-radius: 30px; box-shadow: var(--shadow); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid var(--separator); }
.steps h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--pencil); max-width: 40ch; }
.step-num { color: var(--pencil); font-size: 28px; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.features-head { max-width: 680px; margin-bottom: 48px; }
.features-head h2 { max-width: 22ch; }
.features-head .intro { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.tile { margin: 0; min-width: 0; }
.tile-art { display: flex; justify-content: center; align-items: start; padding: 28px 24px 0; height: 380px; overflow: hidden; background: var(--surface); border: 1px solid var(--separator); border-radius: 24px; }
.tile-art img { width: min(100%, 240px); height: auto; flex: 0 1 240px; min-width: 0; border-radius: 24px 24px 0 0; border: 1px solid var(--separator); box-shadow: var(--shadow); }
.tile figcaption { padding: 20px 4px 0; }
.tile h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.tile p { margin: 0; font-size: 16px; color: var(--pencil); text-wrap: pretty; }
.calm-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 72px); border-top: 2px dotted var(--separator); border-bottom: 2px dotted var(--separator); padding: 48px 0; }
.calm-card p { color: var(--pencil); max-width: var(--measure); }
.price .price-cta { margin-top: 24px; color: var(--paper); }
@media (max-width: 560px) {
  .plan { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .plan-amounts b { font-size: 20px; }
}
.big-footer { margin-top: 48px; padding: 48px var(--gutter) 32px; background: var(--surface); border-top: 1px solid var(--separator); }
.big-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 1072px; margin: auto; }
.footer-brand p { max-width: 26ch; color: var(--pencil); margin: 16px 0 0; }
.big-footer nav { display: flex; flex-direction: column; align-items: flex-start; }
.big-footer h3 { margin: 8px 0 12px; font-size: 16px; font-weight: 600; }
.big-footer nav a { min-height: 44px; padding: 10px 0; font-size: 15px; color: var(--pencil); text-decoration: none; }
.big-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { max-width: 1072px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--separator); color: var(--pencil); font-size: 13px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-art { height: 400px; } }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 8px 16px; }
  .site-header .lockup { margin-right: auto; }
  .header-cta { order: 1; }
  .site-nav { order: 2; width: 100%; justify-content: flex-start; gap: 8px 24px; }
  .how, .calm-card { grid-template-columns: minmax(0, 1fr); }
  .how-phone { max-width: 440px; width: 100%; margin: auto; }
  .how-copy { grid-row: 1; }
  .big-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tile-art { height: 410px; padding-top: 28px; }
  .tile-art img { width: 250px; flex-basis: 250px; }
  .features-head { margin-bottom: 32px; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 40px); }
  .site-nav { gap: 8px 16px; }
  .site-nav a { font-size: 13px; }
  .store-note { font-size: 14px; padding: 14px 18px; }
  .big-footer { margin-top: 16px; }
}

/* Voice logging lives inside the app's iPhone screen. */
.phone-demo { width: min(100%, 350px); justify-self: center; }
.iphone-frame { position: relative; border: 8px solid #292826; border-radius: 52px; background: #292826; box-shadow: 0 0 0 1px #8f8c86, 0 18px 44px rgba(42,36,29,.18); }
.iphone-screen { position: relative; overflow: hidden; border-radius: 44px; aspect-ratio: 1320 / 2868; background: var(--paper); container-type: inline-size; }
.app-backplate { width: 100%; height: 100%; object-fit: cover; }
.dynamic-island { position: absolute; top: 1.5%; left: 36%; width: 28%; height: 3.5%; border-radius: 999px; background: #111; }
.phone-journal { position: absolute; top: 12.5%; bottom: 18%; left: 0; right: 0; padding: 5cqw 4.55cqw; background-color: var(--paper); background-image: radial-gradient(circle, var(--dot) .25cqw, transparent .4cqw); background-size: 3.86cqw 3.86cqw; background-position: 1.8cqw 0; }
.phone-spoken p { margin: 0; font-size: 4.55cqw; line-height: 1.7; }
.summary-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3cqw; align-items: start; }
.summary-entry p { margin: 0; font-size: 4.55cqw; line-height: 1.6; }
.summary-nutrition { display: flex; flex-direction: column; align-items: flex-end; gap: .5cqw; white-space: nowrap; padding-top: .6cqw; }
.summary-nutrition b { font-size: 4.55cqw; font-weight: 500; }
.summary-nutrition .badge { font-size: 2.8cqw; }
.phone-listening { position: absolute; bottom: 7cqw; left: 10cqw; right: 10cqw; text-align: center; font-size: 3.3cqw; color: var(--pencil); }
.voice-wave { display: flex; align-items: center; justify-content: center; gap: 1cqw; height: 12cqw; margin-bottom: 2cqw; }
.voice-wave i { display: block; width: .7cqw; height: 2cqw; background: var(--pencil); border-radius: 3px; opacity: .6; }
.voice-wave i:nth-child(3n) { height: 6cqw; }
.voice-wave i:nth-child(4n) { height: 9cqw; }
.voice-wave i:nth-child(5n) { height: 4cqw; }
.listening .voice-wave i { animation: voice-pulse .7s ease-in-out infinite alternate; }
.listening .voice-wave i:nth-child(2n) { animation-delay: -.35s; }
.listening .voice-wave i:nth-child(3n) { animation-delay: -.15s; }
@keyframes voice-pulse { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.phone-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 18%; background: var(--paper); padding: 0 9cqw; }
.phone-totals { display: flex; justify-content: center; align-items: center; gap: 2cqw; margin: 1cqw 0 5.5cqw; font-size: 4cqw; white-space: nowrap; }
.phone-totals b { font-weight: 500; font-size: 4.7cqw; }
.phone-totals > span:nth-child(even) { color: #bfb7ab; }
.phone-totals .p { color: var(--protein); }.phone-totals .c { color: var(--carbs); }.phone-totals .f { color: var(--fat); }
.phone-tray { display: flex; align-items: center; justify-content: space-between; background: var(--raised); border: 1px solid #fff; border-radius: 999px; padding: 1.2cqw; box-shadow: 0 4cqw 8cqw rgba(42,36,29,.1); }
.phone-tray > span { width: 13cqw; height: 13cqw; display: flex; align-items: center; justify-content: center; color: var(--pencil); border-radius: 50%; }
.phone-tray svg { width: 6.2cqw; height: 6.2cqw; }
.phone-tray .tray-keyboard { background: var(--primary); color: var(--ink); }
.listening .phone-tray .tray-keyboard { background: none; color: var(--pencil); }
.listening .phone-tray .tray-mic { background: var(--primary); color: var(--ink); }
.home-indicator { position: absolute; bottom: 2.3cqw; left: 33%; right: 33%; height: 1.2cqw; border-radius: 999px; background: var(--ink); }
.phone-demo-caption { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--pencil); font-size: 12px; }
.phone-demo-caption button { min-height: 44px; padding: 0; border: none; background: none; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.phone-demo-caption button:disabled { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .listening .voice-wave i { animation: none; } }

/* Accuracy at a glance; source arithmetic is available on request. */
.accuracy-visual .receipt-wrap { align-items: center; }
.accuracy-visual h2 { max-width: 15ch; font-size: clamp(32px, 3.4vw, 42px); }
.accuracy-visual .intro { margin-bottom: 32px; font-size: 18px; }
.source-key { display: grid; gap: 24px; padding: 0; margin: 0; list-style: none; }
.source-key li { display: flex; gap: 14px; align-items: center; }
.source-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; background: var(--surface); border-radius: 50%; font-size: 24px; font-weight: 500; }
.source-icon.verified { color: var(--accent); }
.source-key h3 { margin: 0 0 2px; font-size: 17px; font-weight: 600; }
.source-key p { margin: 0; color: var(--pencil); font-size: 15px; }
.breakfast-visual > h3 { font-size: 20px; font-weight: 600; }
.food-equation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 32px 0; }
.food-part { display: flex; flex-direction: column; align-items: center; min-width: 0; gap: 10px; text-align: center; }
.food-part > svg { width: 40px; height: 40px; color: var(--pencil); }
.food-part > span { font-size: 12px; color: var(--pencil); }
.food-part b { font-size: 20px; font-weight: 600; line-height: 1.2; }
.food-part small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--pencil); }
.breakfast-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px dotted var(--separator); padding-top: 20px; }
.breakfast-total > span { font-size: 17px; }
.breakfast-total b { font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.breakfast-total small { font-size: 17px; font-weight: 400; letter-spacing: 0; }
.breakfast-visual .macros { margin-top: 8px; }
.calculation-details { margin-top: 24px; border-top: 1px solid var(--separator); }
.calculation-details summary { padding: 14px 0 0; min-height: 44px; cursor: pointer; font-size: 14px; color: var(--pencil); }
.calculation-details > p { color: var(--pencil); font-size: 13px; }
@media (max-width: 380px) { .food-equation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

/* Four feature crops with quiet, caption-only presentation. */
.features-head { max-width: none; margin-bottom: 40px; }
.features-head h2 { max-width: none; font-size: clamp(30px, 3.4vw, 42px); }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.tile-art { height: auto; aspect-ratio: 1.25; padding: 0; align-items: center; border: none; border-radius: 28px; }
.feature-window { width: 82%; max-width: 400px; aspect-ratio: 1.25; overflow: hidden; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.tile-art img { display: block; width: 100%; max-width: none; height: auto; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.tile-voice img { transform: translateY(-18%); }
.tile-nutrition img { transform: translateY(-13%); }
.tile-goals img { transform: translateY(-12%); }
.tile-health img { transform: translateY(-24%); }
.tile figcaption { padding: 20px 4px 0; text-align: center; }
.tile h3 { margin: 0; font-size: 20px; }
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tile-art img { width: 100%; flex-basis: auto; }
  .tile h3 { font-size: 18px; }
}

.founder-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 72px); align-items: center; background: var(--raised); border-radius: 32px; padding: clamp(28px, 5vw, 56px); }
.founder h2 { max-width: none; font-size: clamp(30px, 3.4vw, 42px); }
.founder-copy { min-width: 0; }
.founder-copy > p { max-width: 50ch; color: var(--pencil); font-size: 18px; line-height: 1.65; margin: 0 0 20px; }
.founder-signature { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.founder-signature img { border-radius: 10px; }
.founder-signature b, .founder-signature span { display: block; }
.founder-signature b { font-size: 16px; font-weight: 600; }
.founder-signature span { color: var(--pencil); font-size: 14px; }
.founder-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 14px; }
.founder-portrait { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 50%; }
@media (max-width: 680px) { .founder-card { grid-template-columns: minmax(0, 1fr); } .founder-portrait { width: 140px; grid-row: 1; } .founder-copy > p { font-size: 16px; } }

/* The reference video's rhythm: entry, saved line, nutrition sheet, close, replay. */
.dynamic-island { z-index: 5; }
.phone-details { position: absolute; inset: 0; z-index: 4; transform: translateY(103%); transition: transform .65s cubic-bezier(.2,.8,.2,1), visibility 0s .65s; background: var(--paper); overflow: hidden; border-radius: 40px; pointer-events: none; visibility: hidden; }
.phone-details img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.details-open .phone-details { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.iphone-frame { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.detail-focus .iphone-frame { transform: scale(1.04); }
.phone-tap { position: absolute; z-index: 3; left: 62%; top: 17%; width: 28px; height: 28px; border-radius: 50%; background: rgba(101,91,80,.2); border: 1px solid rgba(101,91,80,.3); opacity: 0; transform: scale(1.5); transition: opacity .2s, transform .4s; pointer-events: none; }
.tapping .phone-tap { opacity: 1; transform: scale(1); }
.demo-paused .voice-wave i { animation-play-state: paused; }
.demo-paused .phone-details, .demo-paused .phone-details img, .demo-paused .iphone-frame { transition: none; }
.phone-demo-caption { gap: 6px 14px; }
.phone-demo-caption > span { flex-basis: 100%; text-align: center; }
.phone-demo-caption button[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .phone-details, .phone-details img, .phone-tap, .iphone-frame { transition: none; } }

/* Feature guide links: the supplied two-column reference, in Nutri tokens. */
.feature-guides h2 { margin-bottom: 12px; }
.feature-guides > p { color: var(--pencil); margin: 0 0 28px; }
.feature-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-guide { display: flex; align-items: center; gap: 18px; min-width: 0; min-height: 88px; padding: 22px 24px; background: var(--raised); border: 1px solid var(--separator); border-radius: 20px; text-decoration: none; font-size: 18px; font-weight: 550; transition: border-color .15s, background-color .15s; }
.feature-guide > span:first-child { color: var(--accent); font-size: 28px; flex: none; }
.feature-guide > span:nth-child(2) { flex: 1; min-width: 0; }
.feature-guide > span:last-child { font-size: 16px; color: var(--pencil); }
.feature-guide:hover { background: var(--highlight); border-color: var(--accent); }
.all-feature-guides { display: inline-block; padding: 20px 0; min-height: 44px; font-size: 15px; font-weight: 550; }
@media (max-width: 680px) { .feature-guide-grid { grid-template-columns: minmax(0, 1fr); } .feature-guide { font-size: 17px; min-height: 80px; padding: 18px 20px; } }
@media (prefers-reduced-motion: reduce) { .feature-guide { transition: none; } }

/* Six essentials: flat paper surfaces without the onboarding's yellow washes. */
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.tile-art { aspect-ratio: 1.12; background: #F0EDE7; container-type: inline-size; }
.mini-ui { width: 84%; padding: 6cqw; border-radius: 20px; background: var(--raised); box-shadow: 0 8px 24px rgba(42,36,29,.06); min-width: 0; font-size: 4.1cqw; color: var(--ink); }
.mini-ui p { margin: 0; }
.mini-label { color: var(--pencil); font-size: 3.7cqw; }
.mini-wave { display: flex; justify-content: center; align-items: center; gap: .9cqw; height: 15cqw; margin: 0 0 3cqw; }
.mini-wave i { display: block; background: var(--ink); width: .9cqw; height: 3cqw; border-radius: 3px; }
.mini-wave i:nth-child(3n) { height: 9cqw; }.mini-wave i:nth-child(4n) { height: 13cqw; }.mini-wave i:nth-child(5n) { height: 6cqw; }
.mini-spoken { color: var(--pencil); text-align: center; line-height: 1.5; font-size: 3.7cqw; }
.mini-down { display: block; text-align: center; color: var(--pencil); margin: 3cqw 0; font-size: 5cqw; }
.mini-saved { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3cqw; border-top: 1px solid var(--separator); padding-top: 4cqw; line-height: 1.5; font-size: 3.7cqw; }
.mini-saved b { font-size: 4cqw; font-weight: 500; white-space: nowrap; }.mini-saved small { font-size: 3cqw; }
.mini-calories { display: flex; flex-direction: column; align-items: center; margin: 6cqw 0 7cqw; gap: 1cqw; }.mini-calories > b { font-size: 17cqw; font-weight: 300; letter-spacing: -.04em; line-height: 1; }.mini-calories > span { color: var(--pencil); font-size: 3.5cqw; }
.mini-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; border-top: 1px solid var(--separator); padding-top: 4cqw; }
.mini-macros > div { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }.mini-macros b { font-size: 6cqw; font-weight: 500; }.mini-macros small { font-size: 3cqw; font-weight: 400; }.mini-macros span { font-size: 3.2cqw; }
.protein-text { color: var(--protein); }.carbs-text { color: var(--carbs); }.fat-text { color: var(--fat); }
.mini-bars { display: flex; align-items: stretch; justify-content: center; height: 19cqw; gap: 1cqw; margin: 2cqw 0 6cqw; }.mini-bars i { width: 1cqw; background: var(--ink); }.mini-bars i:nth-child(3n) { width: 2cqw; }.mini-bars i:nth-child(4n) { width: .5cqw; }
.mini-barcode > p { font-weight: 500; font-size: 4.3cqw; }.mini-product { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; margin: 4cqw 0 1cqw; }.mini-product b { font-size: 9cqw; font-weight: 300; }.mini-product small { font-size: 3.5cqw; }.mini-product span { color: var(--accent); font-size: 3cqw; }.mini-barcode .mini-serving { font-size: 3.5cqw; color: var(--pencil); font-weight: 400; }
.mini-goals { padding-top: 4cqw; padding-bottom: 4cqw; }.mini-goals > p { text-align: center; }.mini-goal-ring { width: 39cqw; height: 39cqw; background: conic-gradient(var(--protein) 0 30%, var(--carbs) 30% 70%, var(--fat) 70%); border-radius: 50%; margin: 3cqw auto 4cqw; padding: 1.8cqw; }.mini-goal-ring > div { height: 100%; background: var(--raised); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; }.mini-goal-ring b { font-size: 9cqw; font-weight: 500; }.mini-goal-ring span { font-size: 3cqw; color: var(--pencil); }.mini-goals .mini-macros { padding-top: 3cqw; }.mini-goals .mini-macros b { font-size: 5cqw; }
.mini-health-icons { display: flex; justify-content: space-around; align-items: center; gap: 4cqw; padding: 7cqw 0 10cqw; }.tile-health .mini-health-icons img { width: 17cqw; height: 17cqw; border-radius: 4cqw; transform: none; }.mini-health-icons > span { font-size: 8cqw; color: var(--pencil); }.mini-health-logo { width: 17cqw; height: 17cqw; display: grid; place-items: center; border: 1px solid var(--separator); border-radius: 4cqw; background: white; }.mini-health-logo svg { width: 11cqw; height: 11cqw; }.mini-health-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3cqw; }.mini-health-data > div { padding-top: 4cqw; border-top: 1px solid var(--separator); }.mini-health-data span { display: block; color: var(--pencil); font-size: 3.3cqw; margin-bottom: 2cqw; }.mini-health-data b { font-size: 4cqw; font-weight: 400; line-height: 1.7; }
.mini-badges { padding: 7cqw 3cqw; text-align: center; }.mini-folds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; margin-top: 5cqw; }.tile-art .mini-folds img { width: 100%; height: auto; transform: none; border: 0; background: transparent; }.mini-fold-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1cqw; color: var(--pencil); font-size: 3.3cqw; }.mini-badges .mini-kept { margin-top: 7cqw; color: var(--pencil); font-size: 3.7cqw; }
.tile h3 { font-size: 18px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.tile-health .mini-health-icons img { flex: 0 0 17cqw; max-width: none; object-fit: contain; }
.mini-health-logo { flex: 0 0 17cqw; }

.jenna-inline { display: inline-block; vertical-align: -.2em; margin: 0 2px; }
.jenna-inline img { display: block; width: 68px; height: 22px; object-fit: contain; }

.region-note { margin: -12px 0 24px; color: var(--ink); font-size: 16px; font-weight: 600; }

/* Meal cards on the hero phone, matching the app's Today page (Breakfast, Lunch, Dinner, Snacks) */
.phone-result .meal-card { background: rgba(120, 100, 70, .09); border-radius: 4.5cqw; padding: 3.4cqw 4cqw 4cqw; margin-bottom: 3.6cqw; }
.phone-result .meal-card.is-empty { min-height: 17cqw; }
.phone-result .meal-card.is-short { min-height: 11cqw; }
.meal-title { display: flex; align-items: center; gap: 2cqw; margin: 0 0 2.4cqw; font-size: 3.1cqw; color: var(--pencil); }
.meal-card.is-empty .meal-title { margin-bottom: 0; }
.meal-emoji { font-size: 4.4cqw; line-height: 1; }

/* Keep the current Today layout visible during voice entry and saved states. */
.phone-result > .meal-card:first-child { min-height: 33cqw; }
.phone-result .meal-card.is-empty { min-height: 22cqw; }
.phone-result .meal-card.is-short { min-height: 14cqw; }
.meal-card .phone-spoken p { font-size: 3.9cqw; line-height: 1.5; }

.summary-entry[hidden] { display: none; }
