/* Dear Calories landing page. Tokens come from app/src/theme/tokens.ts. */


:root {
  --black: #000;
  --white: #fff;
  --ink: #2c2c2c;
  --muted: #5c5c5c;
  --green: #39b450;
  --water: #0f9d3a;
  --green-text: #1f7a35;
  --line: #dfdfdf;
  --blue-text: #0a64bd;

  --pad: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif; /* San Francisco on Apple devices: Apple does not license it for self-hosting, so the system stack reaches it. */
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--white);
  caret-color: var(--water);
  overflow-x: clip; /* clip, not hidden: hidden makes the body a scroll box and position: sticky (the stories tour) stops working */
}
::selection { background: var(--green); color: var(--black); }
img { display: block; max-width: 100%; }
h1, h2 { margin: 0; color: var(--black); text-wrap: balance; }
p, li, summary, figcaption { text-wrap: pretty; } /* no single word left alone on the last line */
p { margin: 0; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.top { padding: max(12px, env(safe-area-inset-top)) var(--pad) 0; max-width: 1240px; margin: 0 auto; }
.brand { display: inline-block; }
.brand img { width: 72px; height: auto; }

/* Waitlist form */
.join { margin-top: 14px; max-width: 30rem; margin-inline: auto; }
.join-form {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.22);
}
.join-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  padding: 0 16px;
  min-height: 48px;
  color: var(--black);
}
.join-form input::placeholder { color: #757575; }
.join-form input:focus-visible { outline: none; }
.join-form:focus-within { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12), 0 10px 24px -10px rgba(0, 0, 0, 0.22); }
.join-form button, .btn {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.12s var(--ease), background-color 0.2s;
}
.join-form button:hover, .btn:hover { background: var(--ink); }
.join-form button:active, .btn:active { transform: scale(0.96); }
.fine { margin-top: 10px; text-align: center; font-size: 1rem; color: var(--muted); }

/* Story sections */
.story { padding: 56px var(--pad) 8px; }
.story-in { max-width: calc(1240px - 2 * var(--pad)); margin: 0 auto; }
.story-in > h2 { max-width: 18ch; }
.story-in > p:not(.note) { max-width: 36rem; }
h2 { font-size: clamp(2rem, 7.4vw, 3.25rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.022em; }
.story p:not(.note), .honest p, .close p { margin-top: 16px; max-width: 34rem; font-size: 1.1875rem; line-height: 1.55; color: #3d3d3d; letter-spacing: -0.005em; }
.note { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

/* Pictures: the real meal photo with pins, and the app in a phone frame */
.visual { margin-top: 24px; }
.photo { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 600 / 675; background: #d8cbbd; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.35); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.photo:hover img { transform: scale(1.025); }
.pin { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px var(--water), 0 4px 10px rgba(0, 0, 0, 0.3); }
.pin span { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--black); font-weight: 800; font-size: 0.875rem; line-height: 1.4; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); }
.pin.left span { left: auto; right: 24px; }
.phone { width: min(300px, 78%); margin-inline: auto; border: 10px solid var(--black); border-radius: 46px; overflow: hidden; background: var(--black); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.4); }
.phone > img { width: 100%; height: auto; }

/* Honest band: black, Cally peeks over the top edge like the app's check-in card */
.honest {
  position: relative;
  margin: 96px var(--pad) 0;
  padding: 72px 24px 36px;
  background: var(--black);
  color: var(--white);
  border-radius: 32px;
  width: calc(100% - 2 * var(--pad));
  max-width: calc(1240px - 2 * var(--pad));
  margin-inline: auto;
}
.honest-in { max-width: 30rem; }
.honest .visual { margin-top: 28px; }
.honest h2 { color: var(--white); }
.honest p { color: #e9e9e9; }
.honest-in { max-width: 32rem; }
.honest .sign { margin-top: 14px; font-weight: 800; color: var(--white); }

.close { padding: 72px var(--pad) 40px; max-width: 1240px; margin: 56px auto 0; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--pad)) 1px no-repeat; } /* the hairline sits inside the content width */
.close-copy p { margin-top: 12px; max-width: 32rem; }
.join-close { margin-top: 24px; margin-inline: 0; }

.foot { padding: 32px var(--pad) max(40px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 1240px; margin: 0 auto; color: var(--muted); font-size: 0.9375rem; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot img { flex: none; width: 68px; height: auto; }
.socials { display: flex; gap: 8px; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--black); background: var(--white); transition: transform 0.2s var(--ease), border-color 0.2s; }
.social:hover { transform: translateY(-2px); border-color: var(--black); }
.social:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 50%; }

@keyframes settle {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* Desktop */
@media (min-width: 900px) {
  :root {
    --pad: 40px;
  }
  .fine { text-align: left; }
  .story { padding-top: 72px; }
  .story { padding-bottom: 18px; }
  .story-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 56px; align-items: start; min-height: min(66svh, 560px); }
  .story-in > h2 { grid-column: 1; grid-row: 2; align-self: end; }
  .story-in > .lead { grid-column: 1; grid-row: 3; }
  .story-in .visual { grid-column: 2; grid-row: 1 / 5; margin: 0; align-self: center; justify-self: end; width: min(36rem, 100%); }
  .phone { width: min(300px, 100%); }
  .close { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
  .join-close { grid-area: auto; margin: 0; align-self: center; justify-self: end; width: min(34rem, 100%); }
  .join-close .fine { text-align: left; }
  .honest { padding: 80px 48px 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
  .honest .visual { margin: 0; }
  .foot { flex-direction: row; align-items: center; justify-content: space-between; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .join-form button, .photo img, .phone img, .social { transition: none; }
  .social:hover { transform: none; }
}

/* More contrast on request: solid edges on every pill, bubble and frame, and black small print. */
@media (prefers-contrast: more) {
  .pin span, .join-form, .phone, .photo { border: 2px solid var(--black); }
  .join-form input::placeholder { color: var(--black); }
  .fine, .note { color: var(--black); }
  }

/* Copy draft 2 sections: old way vs answer, FAQ */
/* Problem section: fragments of an old calorie app stacked like cards, the Dear Calories answer in front with Cally on its edge. */
.vs { position: relative; max-width: 34rem; margin-top: 40px; padding-top: 4px; }
.story .vs p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; color: inherit; letter-spacing: inherit; }
.vs ul { list-style: none; margin: 0; padding: 0; }
.vs s { text-decoration-thickness: 2px; text-decoration-color: rgba(0, 0, 0, 0.55); }
.old-card, .answer-card { position: relative; border-radius: 22px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.old-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.28); color: var(--muted); }
.old-card:hover, .answer-card:hover { transform: translateY(-2px); }
.old-card:hover { box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.34); }
.old-search { width: 96%; padding: 12px; }
.old-field { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.045); color: var(--black); font-weight: 600; }
.old-glass { position: relative; flex: none; width: 13px; height: 13px; border: 2px solid var(--muted); border-radius: 50%; }
.old-glass::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 6px; height: 2px; border-radius: 2px; background: var(--muted); transform: rotate(45deg); }
.old-caret { width: 2px; height: 20px; margin-left: -8px; border-radius: 1px; background: var(--water); animation: caret 1.1s steps(1) infinite; }
.old-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 56px; padding: 8px 4px 8px 6px; border-top: 1px solid var(--line); }
.old-rows li:first-child { border-top: 0; margin-top: 4px; }
.old-rows b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.old-unit { grid-column: 1; font-size: 0.8125rem; line-height: 1.35; }
.old-step { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.old-step i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.05); font-style: normal; color: var(--muted); }
.old-left { width: 84%; margin: -10px 0 0 auto; padding: 14px 18px 34px; z-index: 1; } /* stacked under 900px, no overlap; the wide layout overlaps the black card below it on purpose */
.vs small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.story .vs .old-sum { margin-top: 4px; font-size: clamp(1.25rem, 5.4vw, 1.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--black); font-variant-numeric: tabular-nums; white-space: nowrap; }
.old-sum span { color: var(--muted); }
.story .vs .old-sigh { margin-top: 6px; font-size: 0.875rem; }
.answer-card { z-index: 2; width: 100%; margin-top: 104px; padding: 26px 26px 14px; background: var(--black); color: var(--white); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, 0.55); }
.answer-card:hover { box-shadow: 0 34px 54px -22px rgba(0, 0, 0, 0.6); }
.answer-card small { color: #a3a3a3; margin-bottom: 4px; }
.answer-card li { display: flex; align-items: center; gap: 14px; min-height: 52px; font-size: clamp(1.1875rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.answer-card li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.answer-card li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(57, 180, 80, 0.22); }
.story .vs .answer-sum { padding: 12px 0 6px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9375rem; line-height: 1.45; color: #d4d4d4; }
.answer-sum b { color: var(--white); font-weight: 600; }
@keyframes caret { 50% { opacity: 0; } }
@media (min-width: 900px) {
  .bridge .story-in > .visual.vs { justify-self: end; width: min(38rem, 100%); }
  .old-search { width: 86%; }
  .old-left { width: auto; margin: -14px 0 0 max(38%, calc(4% + 190px)); padding-bottom: 58px; } /* tucked under the search card's bottom edge, offset to the right so Cally stays clear of it; tall bottom so the black card and Cally never cover the sigh line */
  .answer-card { width: 86%; margin-top: -34px; margin-left: 4%; padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .old-card, .answer-card { transition: none; }
  .old-card:hover, .answer-card:hover { transform: none; }
  .old-caret { animation: none; }
}
@media (prefers-contrast: more) {
  .old-card { border: 2px solid var(--black); color: var(--ink); }
}
.faq { max-width: calc(720px + 2 * var(--pad)); margin: 96px auto 0; padding: 0 var(--pad); text-align: left; }
.faq details { max-width: 720px; border-bottom: 1px solid var(--line); }
.faq summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: var(--black); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; margin: 0; max-width: 36rem; font-size: 1.0625rem; line-height: 1.55; color: #3d3d3d; }
.faq h2 { margin-bottom: 12px; max-width: 720px; font-size: clamp(1.75rem, 5vw, 2.5rem); }
.faq summary:hover { color: #000; }
.faq summary:hover::after { transform: scale(1.15); }
.faq details[open] summary::after { transform: rotate(45deg); }
@media (min-width: 900px) {
  .story.flip .story-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .story.flip .story-in > .visual { grid-column: 1; justify-self: start; }
  .story.flip .story-in > h2, .story.flip .story-in > .lead { grid-column: 2; }
    .bridge .story-in > .visual { justify-self: start; }
}

/* Screenshot stage: the app in a phone over a blurred crop of the barkada table, floating chart cards over its edge. Each section crops the table differently (--pos, --zoom). */
.stage { --hang: -12px; position: relative; isolation: isolate; display: grid; place-items: center; min-height: 470px; padding: 26px 16px; border-radius: 20px; background: #c9b79a; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.35); }
/* The stage itself does not clip, so the floating fragments can hang over its edge: the blurred table clips inside .bg instead. */
.stage:hover .bg::before { transform: scale(1.03); }
.stage .bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; }
.stage .bg::before { content: ""; position: absolute; inset: -24px; transition: transform 0.7s var(--ease); background: url("assets/hero/table-1400.webp") var(--pos, 50% 50%) / var(--zoom, 230%) auto no-repeat; filter: blur(9px) saturate(1.1); }
.stage .vig { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(ellipse 62% 70% at 50% 50%, transparent 38%, rgba(0, 0, 0, 0.32) 100%); }
/* iPhone body: titanium band (gradient + specular edge), black bezel ring drawn by the screen's own shadow, side buttons as a pseudo-element, and the Dynamic Island on live HTML screens only (the captures have their own). */
.stage .phone { position: relative; width: min(230px, 62%); aspect-ratio: 598 / 1300; margin: 0; padding: 8px; border: 0; border-radius: 34px; background: linear-gradient(135deg, #d9d6cf 0%, #8f8c86 22%, #cfccc5 48%, #7d7a75 74%, #bdbab3 100%); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 0 0 2px rgba(0, 0, 0, 0.35); }
.stage .phone > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; box-shadow: 0 0 0 3px #000; }
.stage .phone::before { content: ""; position: absolute; inset: 0 -3px; border-radius: 4px; background:
  linear-gradient(90deg, #6f6c67, #b9b6af) 0 70px / 3px 22px no-repeat,
  linear-gradient(90deg, #6f6c67, #b9b6af) 0 112px / 3px 40px no-repeat,
  linear-gradient(90deg, #6f6c67, #b9b6af) 0 162px / 3px 40px no-repeat,
  linear-gradient(270deg, #6f6c67, #b9b6af) 100% 130px / 3px 64px no-repeat; }
.stage .phone.live::after { content: ""; position: absolute; z-index: 1; top: 14px; left: 50%; width: 26%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.story .visual + .visual { margin-top: 48px; } /* room for the card hanging under the stage above */

/* The live meal sheet in a phone: the app's 402 pt canvas scaled to the screen's width (app.js sets --app-scale). */
.stage .phone.live { aspect-ratio: auto; }
.live-screen { position: relative; width: 100%; aspect-ratio: 402 / 874; overflow: hidden; border-radius: 26px; box-shadow: 0 0 0 3px #000; background: #000; } /* iPhone 16 Pro, 402 by 874 pt, the same proportion as the captures */
.live-screen .app-canvas { background: #000; height: 874px; }

.stage:hover .float { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .stage .bg::before, .float { transition: none; } .stage:hover .bg::before, .stage:hover .float { transform: none; } }

/* Floating fragments: small pieces of the screen in the phone, drawn in the problem section's card style, hanging over the stage edge.
   app.js moves them with the scroll through the translate property, so the hover lift (transform) still adds on top. */
.float { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 22px; background: var(--white); border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 26px 48px -22px rgba(0, 0, 0, 0.42), 0 4px 14px rgba(0, 0, 0, 0.07); color: var(--black); font-size: 0.875rem; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; transition: transform 0.35s var(--ease), opacity 0.6s var(--ease); }
.float.tr { top: -22px; right: var(--hang); }
.float.bl { bottom: -22px; left: var(--hang); }
.float.br { bottom: -22px; right: var(--hang); }
.anim .stage:not(.in) .float { opacity: 0; transform: translateY(14px); }
.float small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.float ol { list-style: none; margin: 0; padding: 0; }
.float img { width: 28px; height: 28px; }
.f-rowline { display: flex; align-items: center; gap: 8px; }
.f-col { display: flex; flex-direction: column; gap: 2px; }
.f-sum { justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.f-days { display: grid; grid-template-columns: repeat(7, 32px); gap: 4px; }
.f-days li { display: grid; justify-items: center; font-size: 0.75rem; font-weight: 600; line-height: 1.2; color: var(--muted); }
.f-days li span { font-weight: 500; }
.f-days li.up { color: var(--blue-text); }
.f-plot { position: relative; display: grid; grid-template-columns: repeat(7, 32px); gap: 4px; }
/* Entrance: app.js adds .anim to the page when motion is allowed and .in to a stage once it is on screen. Without either, everything shows its final state. */

/* Calorie ring (portions, Home): gradient stroke, the kcal counts up with it (app.js) */
.f-meal, .f-home { flex-direction: row; align-items: center; gap: 14px; }
.f-meal b, .f-home b { font-size: 1.375rem; letter-spacing: -0.02em; }
.f-ring { flex: none; transform: rotate(-90deg); overflow: visible; }
.f-ring circle { fill: none; stroke-width: 7; }
.f-ring-bg { stroke: #efefef; }
.f-ring-fg { stroke: url(#fg-blue); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--fill)); transition: stroke-dashoffset 1.4s var(--ease) 0.4s; filter: drop-shadow(0 2px 3px rgba(17, 130, 229, 0.3)); }
.f-orange .f-ring-fg { stroke: url(#fg-orange); filter: drop-shadow(0 2px 3px rgba(221, 114, 25, 0.3)); }
.anim .stage:not(.in) .f-ring-fg { stroke-dashoffset: 100; }
.f-icons { display: flex; gap: 2px; margin-top: 4px; }
.f-icons img { width: 24px; height: 24px; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; }
.f-icons img:nth-child(1) { transition-delay: 0.5s; }
.f-icons img:nth-child(2) { transition-delay: 0.65s; }
.f-icons img:nth-child(3) { transition-delay: 0.8s; }
.anim .stage:not(.in) .f-icons img { opacity: 0; transform: scale(0.4) translateY(6px); }

/* Ate half: the bangus row's portion bar slides from whole to half, the numbers count down (app.js) */
.f-half { width: 236px; }
.f-half .f-m { margin-left: auto; color: var(--muted); font-weight: 600; }
.f-half .f-k { min-width: 4.8em; text-align: right; color: var(--blue-text); font-weight: 700; }
.f-half .f-sum b { font-size: 1.125rem; }
.f-track { display: block; height: 6px; border-radius: 3px; background: #ececec; overflow: hidden; }
.f-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7cc0f7, #1182e5); transform-origin: left; transform: scaleX(0.5); transition: transform 1s var(--ease) 0.5s; }
.anim .stage:not(.in) .f-track i { transform: none; }

/* Big day, like the app's Plan a big day: Saturday rises 500 in blue with its grip, the other days dip under the dotted plan line by their small minus */
.f-head { display: flex; align-items: baseline; gap: 4px; color: var(--blue-text); font-weight: 600; }
.f-head b { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.f-head span { margin-left: auto; padding-left: 16px; color: var(--black); font-weight: 700; }
.f-bars .f-plot { height: 104px; align-items: end; padding-top: 4px; }
.f-bars .f-plot::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: 60px; border-top: 2px dotted #b5b5b5; }
.f-bars .f-plot li { position: relative; display: grid; justify-items: center; align-content: end; gap: 3px; }
.f-bars .f-plot i { display: block; width: 26px; height: calc(var(--h) * 1px); border-radius: 6px; background: var(--ink); transform-origin: bottom; transition: transform 0.9s var(--ease) 0.4s; }
.f-bars .f-plot li.up i { position: relative; background: linear-gradient(#2f92e8, #1182e5); box-shadow: 0 6px 12px -4px rgba(17, 130, 229, 0.5); }
.f-bars .f-plot li.up i::after { content: ""; position: absolute; top: 5px; left: 7px; right: 7px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.9); }
.f-bars em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--muted); transition: opacity 0.4s 1.1s, transform 0.9s var(--ease) 0.4s; }
.f-bars li.up em { color: var(--blue-text); }
.anim .stage:not(.in) .f-bars .f-plot i { transform: scaleY(var(--from)); }
.anim .stage:not(.in) .f-bars em { opacity: 0; }
.anim .stage.in .f-bars li.up i::after { animation: f-grip 2.6s ease-in-out 2s infinite; }
@keyframes f-grip { 50% { opacity: 0.45; } }

/* Day start: a day strip whose marker slides from midnight to noon */
.f-time { width: 236px; }
.f-time .f-rowline { justify-content: space-between; font-weight: 600; }
.f-time b { padding: 5px 10px; border-radius: 999px; background: #ececec; color: var(--blue-text); font-weight: 600; }
.f-strip { position: relative; display: block; height: 6px; margin: 6px 8px 0; border-radius: 3px; background: linear-gradient(90deg, #e3e3e3 50%, #daebfe 50%); }
.f-strip i { position: absolute; inset: 0; transform: translateX(50%); transition: transform 1.2s var(--ease) 0.3s; }
.f-strip i::after { content: ""; position: absolute; left: -9px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #1182e5; border: 3px solid var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.anim .stage:not(.in) .f-strip i { transform: none; }
.f-ticks { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--muted); }

/* When you eat: day and hour labels like the app, the dots light up in turn, the busiest one keeps a slow pulse */
.f-heat small { color: var(--black); font-size: 0.8125rem; font-weight: 700; }
.f-heat ol { display: grid; grid-template-columns: auto repeat(3, 30px); gap: 5px; align-items: center; }
.f-heat li { position: relative; display: grid; place-items: center; height: 30px; border-radius: 50%; background: #ececec; font-size: 0.75rem; font-weight: 700; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; transition-delay: calc(0.3s + var(--i, 0) * 0.06s); }
.f-heat li.f-h { height: auto; background: none; color: var(--muted); font-weight: 600; justify-self: start; padding-right: 6px; }
.f-heat li.f-d { justify-self: center; padding: 0; }
.f-heat .lv1 { background: #daebfe; color: var(--blue-text); }
.f-heat .lv2 { background: rgba(17, 130, 229, 0.33); color: var(--blue-text); }
.f-heat .lv3 { background: #2f92e8; color: var(--white); }
.f-heat .lv4 { background: var(--blue-text); color: var(--white); }
.anim .stage:not(.in) .f-heat li:not(.f-h) { opacity: 0; transform: scale(0.5); }
.f-peak::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue-text); opacity: 0; }
.anim .stage.in .f-peak::after { animation: f-pulse 3s var(--ease) 1.4s infinite; }
@keyframes f-pulse { 0% { opacity: 0.6; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.7); } }
.f-legend { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.f-legend i { width: 10px; height: 10px; border-radius: 50%; background: #ececec; }
.f-legend i:first-child { margin-left: 2px; }
.f-legend i:last-child { margin-right: 2px; }

/* Saved meals: the app's LikeButton (components/LikeButton.tsx). The heart vanishes, a red disc blooms and hollows into a purple
   ring, seven pairs of confetti dots fly off it, and the heart springs back in flame red past its size (1.25, then 1). Its
   timings run inside a 4 s loop that starts 0.4 s in, with the green toast following the press. */
.f-saved { min-width: 276px; }
.f-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.float .f-thumb { flex: none; width: 40px; height: 40px; }
.f-saved .f-col span { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.f-like { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 999px; background: var(--white); border: 1px solid #e1e1e1; }
.f-heart { fill: #eb4b15; stroke: #eb4b15; stroke-width: 0; }
.f-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.f-bloom { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 17px solid #e5484d; opacity: 0; }
.f-burst i { position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0; }
.f-toast { position: absolute; left: 50%; bottom: 100%; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 10px; border-radius: 999px; background: var(--green-text); color: var(--white); font-weight: 600; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); transform: translateX(-50%); }
.anim .stage:not(.in) .f-toast { opacity: 0; }
.anim .stage.in .f-toast { animation: f-toast 4s var(--ease) 0.4s infinite both; }
.anim .stage.in .f-heart { animation: f-like 4s linear 0.4s infinite both; }
.anim .stage.in .f-bloom { animation: f-bloom 4s linear 0.4s infinite both; }
.anim .stage.in .f-burst i { animation: f-confetti 4s linear 0.4s infinite both; }
.anim .stage:not(.in) .f-heart { fill: transparent; stroke: var(--black); stroke-width: 16; }
/* 10% is the press (400 ms in); heart back at 213 ms, 1.25 at 471 ms, 1 at 760 ms; bloom 560 ms; dots 200 ms after, over 620 ms */
@keyframes f-like {
  0%, 9.9% { transform: scale(1); fill: transparent; stroke: var(--black); stroke-width: 16; }
  10%, 15.3% { transform: scale(0); fill: #eb4b15; stroke-width: 0; animation-timing-function: cubic-bezier(0.3, 1.6, 0.4, 1); }
  21.8% { transform: scale(1.25); animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
  29%, 88% { transform: scale(1); fill: #eb4b15; stroke: #eb4b15; stroke-width: 0; }
  94%, 100% { transform: scale(1); fill: transparent; stroke: var(--black); stroke-width: 16; }
}
@keyframes f-bloom {
  0%, 9.9% { opacity: 0; transform: scale(0.15); }
  10% { opacity: 1; transform: scale(0.15); border-width: 17px; border-color: #e5484d; animation-timing-function: cubic-bezier(0.25, 0.8, 0.35, 1); }
  12.1% { transform: scale(1); border-width: 17px; border-color: #cc8ef5; animation-timing-function: ease-out; }
  15.6% { opacity: 1; border-width: 2px; transform: scale(1.06); }
  24% { opacity: 0; border-width: 0; transform: scale(1.12); border-color: #cc8ef5; }
  100% { opacity: 0; }
}
@keyframes f-confetti {
  0%, 15% { opacity: 0; transform: rotate(var(--a)) translate(12px, var(--side)) scale(1); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  16% { opacity: 1; }
  30.5% { opacity: 1; transform: rotate(var(--a)) translate(calc(25px + var(--far)), calc(var(--side) * 1.6)) scale(0); }
  100% { opacity: 0; }
}
@keyframes f-toast { 0%, 14% { opacity: 0; transform: translate(-50%, 12px); } 22%, 72% { opacity: 1; transform: translate(-50%, 0); } 84%, 100% { opacity: 0; transform: translate(-50%, 0); } }

/* Weight trend like Insights: grid lines, the line draws, the soft area fills under it, the dotted path runs to the goal and the goal dot pulses */
.f-trend { width: 242px; }
.f-trend .f-rowline { justify-content: space-between; }
.f-trend .f-rowline b { font-size: 1.125rem; letter-spacing: -0.015em; }
.f-trend .f-sum { padding: 0; border: 0; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.f-trend svg { overflow: visible; width: 100%; height: auto; }
.f-grid { stroke: #f0f0f0; stroke-width: 1; }
.f-goal { stroke: #b5b5b5; stroke-width: 1.5; stroke-dasharray: 4 4; }
.f-area { fill: url(#fg-area); transition: opacity 0.8s var(--ease) 1s; }
.f-solid, .f-dash { fill: none; stroke: #1182e5; stroke-width: 3; stroke-linecap: round; }
.f-solid { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) 0.3s; }
.f-dash { stroke-width: 2.5; stroke-dasharray: 0.1 4.5; transition: opacity 0.6s 1.4s; }
.f-trend text { font-size: 12px; font-weight: 700; font-family: inherit; }
.f-goal-t { fill: var(--muted); }
.f-tip rect { fill: var(--black); }
.f-tip text { fill: var(--white); }
.f-tip { transition: opacity 0.4s 1.4s; }
.f-trend circle { fill: var(--white); stroke: #1182e5; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s; }
.f-trend .f-end { transition-delay: 1.8s; }
.f-trend .f-ping { fill: none; stroke-width: 2; opacity: 0; }
.anim .stage:not(.in) .f-solid { stroke-dashoffset: 100; }
.anim .stage:not(.in) .f-dash, .anim .stage:not(.in) .f-area, .anim .stage:not(.in) .f-tip { opacity: 0; }
.anim .stage:not(.in) .f-trend circle:not(.f-ping) { transform: scale(0); }
.anim .stage.in .f-ping { animation: f-ping 2.4s var(--ease) 2.4s infinite; }
@keyframes f-ping { 0% { opacity: 0.7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3); } }

/* Weekly balance like Insights: the saved days' green bars grow down from the dotted plan line with their minus labels, today marked */
.f-week small { color: var(--black); font-size: 0.8125rem; font-weight: 700; }
.f-under { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #e3f4e6; color: var(--green-text); font-size: 0.8125rem; font-weight: 700; }
.f-week .f-plot { height: 70px; padding-top: 4px; align-items: start; }
.f-week .f-plot::before { content: ""; position: absolute; left: -4px; right: -4px; top: 2px; border-top: 2px dotted #b5b5b5; }
.f-week .f-plot li { display: grid; justify-items: center; align-content: start; gap: 2px; }
.f-week i { display: block; width: 26px; height: max(12px, calc(var(--v) / 383 * 44px)); border-radius: 0 0 10px 10px; background: linear-gradient(#39b450, #2fa346); transform-origin: top; transition: transform 0.8s var(--ease) 0.3s; }
.f-week em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--green-text); transition: opacity 0.4s 1.1s; }
.f-week li:nth-child(2) i { transition-delay: 0.4s; }
.f-week li:nth-child(3) i { transition-delay: 0.5s; }
.f-week li:nth-child(4) i { transition-delay: 0.6s; }
.f-week .f-days li.now { padding: 2px 0; border-radius: 8px; background: #ececec; color: var(--black); }
.anim .stage:not(.in) .f-week i { transform: scaleY(0); }
.anim .stage:not(.in) .f-week em { opacity: 0; }
@media (min-width: 900px) {
  .stage { --hang: -32px; }
}
@media (max-width: 1100px) { .stage { --hang: 8px; } }
/* Phones keep their title area visible: top-right cards drop to the bottom edge. */
@media (max-width: 759px) {
  .float { scale: 0.8; }
  .float.tr, .float.br { top: auto; bottom: -22px; transform-origin: bottom right; }
  .float.bl { transform-origin: bottom left; }
  /* stack each right card above its left partner (their scaled heights plus 8px) so none overlap */
  .f-meal { bottom: 79px; } .f-bars { bottom: 70px; } .f-heat { bottom: 45px; } .f-week { bottom: 130px; }
}
@media (prefers-contrast: more) { .float { border: 2px solid var(--black); } }

/* Dispersed floats (desktop): each card sits somewhere different on its stage, left or right and high, middle or low, instead of the corners. Phones keep the corner stacking above. */
.sticker { position: absolute; z-index: 2; display: none; place-items: center; width: 148px; height: 148px; border-radius: 34px; background: var(--white); border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 26px 48px -22px rgba(0, 0, 0, 0.42), 0 4px 14px rgba(0, 0, 0, 0.07); transition: transform 0.35s var(--ease), opacity 0.6s var(--ease); }
.stage:hover .sticker { transform: translateY(-2px); }
.anim .stage:not(.in) .sticker { opacity: 0; transform: translateY(14px); }
.st-scale { left: var(--hang); bottom: 6%; rotate: -5deg; }
.st-cake { left: var(--hang); top: 5%; rotate: 4deg; }
.st-clock { left: var(--hang); top: 12%; rotate: -4deg; }
@media (min-width: 760px) {
  .sticker { display: grid; }
  .float.f-meal { top: 10%; right: var(--hang); bottom: auto; left: auto; }
  .float.f-half { top: 58%; left: var(--hang); bottom: auto; right: auto; }
  .float.f-bars { top: 46%; right: var(--hang); bottom: auto; left: auto; }
  .float.f-time { top: 12%; left: var(--hang); bottom: auto; right: auto; }
  .float.f-heat { top: auto; bottom: 8%; right: var(--hang); left: auto; }
  .float.f-saved { top: auto; bottom: 22%; left: var(--hang); right: auto; }
  .float.f-trend { top: 8%; left: var(--hang); bottom: auto; right: auto; }
  .float.f-week { top: 40%; right: var(--hang); bottom: auto; left: auto; }
  .float.f-home { top: 58%; left: var(--hang); bottom: auto; right: auto; }
}
@media (prefers-reduced-motion: reduce) { .sticker { transition: none; } .stage:hover .sticker { transform: none; } }
@media (prefers-contrast: more) { .sticker { border: 2px solid var(--black); } }

/* The calorie ring card in the "I quit every calorie app" stage sits on the left edge, halfway down, over the table, not hanging off the bottom corner. */
@media (max-width: 759px) { .float.f-home { top: 58%; bottom: auto; left: -14px; right: auto; transform-origin: top left; } }

/* Questions: centred. */
.faq summary::after { flex: none; }

/* Bento: four white tiles in one block on the soft gray band (research: bento-research.md in the session notes, 28 Nov 2026).
   Every tile reads the same way: heading and one line on top, its floating card under them, a faint glow coming up from the bottom edge.
   The 3D icon sits on the top right edge of its card, above the number it stands for, and enters with the card (it is inside the .float).
   Phone: one column. From 760px: two columns, the wide tiles span both. From 1160px: a wide tile and two small ones on the left, a tall tile on the right.
   Parallax stays off inside the tiles (translate: none); the .stage, .float and data-depth hooks that app.js uses are unchanged. */
.bento { padding: 48px var(--pad); background: #f5f5f6; }
.bento-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: calc(1240px - 2 * var(--pad)); margin: 0 auto; }
.bt { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; padding: 24px 22px 0; border-radius: 32px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 18px 40px -30px rgba(0, 0, 0, 0.2); overflow: hidden; transition: box-shadow 0.45s var(--ease); }
.bt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 95% 66% at 50% 100%, var(--glow), transparent 72%); opacity: 0.85; transition: opacity 0.45s var(--ease); pointer-events: none; }
.t-half { --glow: rgba(245, 165, 36, 0.28); }
.t-day { --glow: rgba(17, 130, 229, 0.2); }
.t-saved { --glow: rgba(229, 72, 77, 0.18); }
.t-scale { --glow: rgba(17, 130, 229, 0.18); }
.bt-copy { max-width: 34rem; }
.bt-copy h2 { margin: 0; font-size: clamp(1.75rem, 6.4vw, 2rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.bt-copy p { margin: 8px 0 0; font-size: 1rem; line-height: 1.4; color: #5c5c5c; letter-spacing: -0.005em; text-wrap: pretty; }
.bt .visual { flex: 1; display: flex; justify-content: center; margin: 0 -22px; }
.bt .stage { flex: 1; display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 14px 16px; min-height: 0; padding: 62px 22px 26px; border-radius: 0; background: none; box-shadow: none; }
.bt .stage .float { position: relative; inset: auto; flex: none; max-width: 100%; margin: 0; scale: 1; transform-origin: center; translate: none !important; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.06); }
.bt .stage:hover .float { transform: none; }
.bt .f-saved .f-col { min-width: 0; }
.bt .f-saved .f-col b { white-space: normal; text-wrap: balance; }
.bt .f-saved .f-toast { left: 38%; }
.bt .float .bt-icon { position: absolute; z-index: 1; top: -48px; right: 12px; width: 60px; height: 60px; max-width: none; rotate: 8deg; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.16)); animation: bt-bob 5s ease-in-out infinite; transition: rotate 0.5s var(--ease), scale 0.5s var(--ease); pointer-events: none; }
.t-day .float .bt-icon { top: -50px; right: 2px; animation-delay: -1.2s; }
.t-scale .float .bt-icon { rotate: -6deg; animation-delay: -3.6s; }
@keyframes bt-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* Ate half? tile: the correction as a tiny chat, then the card changes. Phone: chat, then the card under it on the right. Wider: chat on the left, the card lower on the right. */
.bt-chat { display: grid; gap: 6px; width: 100%; font-size: 0.9375rem; line-height: 1.35; }
.bt-chat p { margin: 0; padding: 10px 14px; border-radius: 20px; }
.bt-chat .c-you { justify-self: end; border-bottom-right-radius: 6px; background: #000; color: #fff; }
.bt-chat .c-cally { justify-self: start; max-width: 212px; border-bottom-left-radius: 6px; background: #fff; color: #000; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.bt-chat .c-dots, .bt-chat .c-cally { grid-row: 2; grid-column: 1; }
.bt-chat .c-dots { display: none; justify-self: start; align-self: start; gap: 4px; padding: 12px 14px; border-bottom-left-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.bt-chat .c-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; }
.t-half .stage { flex: 0 1 332px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 22px 16px 26px; }
.t-half .stage .float { align-self: flex-end; }
.anim .stage:not(.in) .bt-chat p { opacity: 0; transform: translateY(10px) scale(0.96); }
.anim .stage.in .c-you { animation: c-pop 0.45s var(--ease) 0.3s both; }
.anim .stage.in .c-dots { display: flex; pointer-events: none; animation: c-dots 1.1s var(--ease) 0.9s both; }
.anim .stage.in .c-dots i { animation: c-blink 0.9s ease-in-out 0.9s 1 both; }
.anim .stage.in .c-dots i:nth-child(2) { animation-delay: 1.05s; }
.anim .stage.in .c-dots i:nth-child(3) { animation-delay: 1.2s; }
.anim .stage.in .c-cally { animation: c-pop 0.45s var(--ease) 2s both; }
/* The card waits for Cally's reply (2 s), as an animation that only fills backwards, so the hover lift afterwards is not delayed. */
.anim .t-half .stage.in .f-half { animation: bt-rise 0.6s var(--ease) 2s backwards; }
.anim .t-half .stage.in .f-track i { transition-delay: 2.6s; }
@keyframes bt-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes c-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes c-dots { 0% { opacity: 0; transform: translateY(8px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes c-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (max-width: 359px) { .bt .stage .float { scale: 0.88; } }
@media (min-width: 760px) {
  .bento { padding-block: 56px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bt { padding: 28px 28px 0; }
  .bt .visual { margin-inline: -28px; }
  .bt .stage { padding-inline: 20px; padding-bottom: 28px; }
  .t-half, .t-scale { grid-column: 1 / -1; }
  .t-half .stage { flex: 1; flex-direction: row; align-items: flex-end; justify-content: center; gap: clamp(28px, 5vw, 64px); padding: 20px 28px 28px; }
  .t-half .bt-chat { flex: none; align-self: flex-start; width: 300px; }
  .t-half .bt-chat .c-cally { max-width: none; }
  .t-half .stage .float { margin-top: 52px; }
}
@media (min-width: 1160px) {
  .bento-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "half half scale" "day saved scale"; }
  .t-half { grid-area: half; }
  .t-day { grid-area: day; }
  .t-saved { grid-area: saved; }
  .t-scale { grid-area: scale; }
  .t-scale .stage { padding-inline: 28px; }
  .t-scale .stage .f-trend { margin-right: auto; }
  .t-scale .stage .f-week { margin-left: auto; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bt:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 26px 48px -30px rgba(0, 0, 0, 0.3); }
  .bt:hover::before { opacity: 1; }
  .bt:hover .stage .float { transform: translateY(-4px); }
  .bt:hover .float .bt-icon { rotate: -3deg; scale: 1.08; }
  .t-saved:hover .float .bt-icon, .t-scale:hover .float .bt-icon { rotate: 4deg; }
}
@media (prefers-reduced-motion: reduce) { .bt, .bt::before { transition: none; } .bt .float .bt-icon { animation: none; transition: none; } }
/* The black band: our hand holding the phone with the Home screen, no table photo. Same hand and screen hole as the hero's app view (hand-side-*.webp: hole at 20.83% across, 23.13% down, 29.63% wide). */
.honest .hand-stage { min-height: 0; padding: 0; background: none; box-shadow: none; display: block; }
.hand-phone { position: relative; width: min(440px, 100%); aspect-ratio: 900 / 1150; margin-inline: auto; overflow: hidden; }
.hp-in { position: absolute; left: 0; top: -26.1%; width: 100%; aspect-ratio: 900 / 1594; }
.hp-screen { position: absolute; left: 20.83%; top: 23.13%; width: 29.63%; height: 32.56%; object-fit: cover; object-position: top; background: #000; border-radius: 14% / 6.5%; box-shadow: 0 0 0 2px #000; }
.hp-hand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.faq details:last-of-type { border-bottom: 0; }
.honest { overflow: hidden; }
.hand-phone { width: min(520px, 100%); }
@media (min-width: 900px) { .honest .visual { align-self: end; margin: 0 -48px -44px 0; } }
@media (max-width: 899px) { .honest .visual { margin-inline: -20px; margin-bottom: -44px; } .hand-phone { width: min(440px, 100%); } }

/* Black band on desktop: as tall as its text plus even padding; the hand fills the band's height and is cut by its edges. */
@media (min-width: 900px) {
  .honest { padding: 64px 48px; --w: 440px; }
  .honest .visual { align-self: stretch; margin: 0; min-height: 280px; position: relative; }
  .honest .hand-stage { position: static; }
  .hand-phone { position: absolute; inset: -64px -48px -64px auto; width: var(--w); height: auto; aspect-ratio: auto; margin: 0; }
  .hp-in { top: calc(var(--w) * -0.3977 + 96px); }
}

/* The floating card of the three main stories sits under the description, on its own small stage so the entrance still plays. */
.float-stage { display: block; min-height: 0; padding: 0; margin: 24px 0 0; background: none; box-shadow: none; border-radius: 0; }
.float-stage .float { position: relative; inset: auto; top: auto; right: auto; bottom: auto; left: auto; translate: none !important; display: inline-flex; }
.float-stage:hover .float { transform: none; }
@media (min-width: 900px) { .story-in > .float-stage { grid-column: 1; grid-row: 4; align-self: start; margin-top: 28px; } .story.flip .story-in > .float-stage { grid-column: 2; } }

/* Main stories: our hand holding the phone, no background, the bottom fading out into the page (hand-side-*.webp, same screen hole as the black band). */
.hand-phone.big { position: relative; width: min(440px, 100%); height: auto; aspect-ratio: 520 / 720; inset: auto; margin-inline: auto; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 80% 78% at 33% 30%, #000 58%, transparent 98%); mask-image: radial-gradient(ellipse 80% 78% at 33% 30%, #000 58%, transparent 98%); }
.hand-phone.big .hp-in { left: -25%; top: -45.8%; width: 173%; }
.hp-in .live-screen.hp-screen { aspect-ratio: auto; border-radius: 14% / 6.5%; box-shadow: 0 0 0 2px #000; }
@media (min-width: 900px) { .story-in .visual:has(.hand-phone.big) { width: min(30rem, 100%); } }
/* On a phone that left the app screen 172 px wide (46% of the window) and its text too small to read (Georgina, 2 Dec 2026). There the
   stage runs to the window's edges and the phone is 70% of the window, centred: the fingers and thumb show either side, the palm runs off
   the right edge and the bottom fades out below the screen. hp-in is 236% wide, so its screen hole (20.83% across, 29.63% wide) sits
   15% in from the left; -51.3% of the stage's height puts the screen's top 9% of the stage's width down. */
/* Then smaller again (Georgina, 2 Dec 2026, on her iPhone): the phone is 53% of the window, 200 px at 375. hp-in is 180% wide, so the
   screen hole sits 23% in from the left; the stage is 130% of its width tall and -50.5% of that puts the screen's top 8% of the width down. */
@media (max-width: 480px) {
  .story-in .visual:has(.hand-phone.big) { margin-inline: calc(-1 * var(--pad)); }
  .hand-phone.big { width: 100%; aspect-ratio: 100 / 130; -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
  .hand-phone.big .hp-in { left: -14.2%; top: -50.5%; width: 180%; }
}
/* Text, then its floating card, centred on the phone mockup beside it. */
@media (min-width: 900px) {
  .story-in:has(.float-stage) { grid-template-rows: 1fr auto auto auto 1fr; }
  .story-in:has(.float-stage) > .visual { grid-row: 1 / 6; align-self: center; }
  .story-in > .float-stage { grid-row: 4; }
}

/* Black band, front view: one hand holds the phone toward the camera (assets/hand-front, generated with Higgsfield from Georgina's reference, 700 x 1048). The screen hole is a rotated rectangle: centre 44.97% across, 49.74% down, 63.18% wide, 92.85% tall, turned 10.8deg; the screenshot box is that rectangle plus 4 px a side (64.4% by 93.65%, aspect 0.459, the capture is 0.460, so nothing is cropped). hand-front-mask.png is the hole grown a few px under the bezel, so the app screen runs flush with no white ring. */
.honest { overflow: visible; }
.hf { position: relative; width: min(260px, 66%); aspect-ratio: 700 / 1048; margin: 28px auto -72px; }
.hf-screen-wrap { position: absolute; inset: 0; background: #000; -webkit-mask: url(assets/hand-front/hand-front-mask.png) 0 0 / 100% 100% no-repeat; mask: url(assets/hand-front/hand-front-mask.png) 0 0 / 100% 100% no-repeat; }
.hf-screen { position: absolute; left: 12.77%; top: 2.91%; width: 64.4%; height: 93.65%; object-fit: cover; object-position: top; transform: rotate(10.8deg); }
.hf-hand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Phones: the phone under the text, overshooting the band's bottom only. The two floating cards are gone (Georgina, 2 Dec 2026). */
@media (max-width: 899px) {
  .honest { margin-bottom: 104px; }
  .hf { margin-top: 0; }
}
@media (min-width: 900px) {
  .honest { --hfh: 560px; margin-top: 136px; margin-bottom: 136px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .honest .visual { align-self: stretch; min-height: 280px; position: relative; margin: 0; }
  .honest .hf-stage { position: static; }
  .hf { position: absolute; top: 50%; right: 0; height: var(--hfh); width: auto; margin: 0; translate: 0 -50%; }
}
/* 900 to 1099 px: the phone takes the band's height plus 64 px above and below. */
@media (min-width: 900px) and (max-width: 1099px) {
  .hf { top: -128px; bottom: -128px; height: auto; translate: none; }
}

/* The three main stories as one sticky stage (.tour.on, set by app.js from 900 px up; narrower the two columns get too tight for the headings, never with reduced motion). The text
   swaps on the left; on the right the hand holds still and the screens slide one slot per story, like a carousel. The next
   screen waits to the right of the phone and the last one has slid out to the left, both behind the hand and fading to
   their outer edge. Same hand and screen hole as the stories (hand-side-*.webp: hole at 20.83% across, 23.13% down,
   29.63% wide, 32.56% tall). Without .on the stories stay stacked, one hand each, and the stage and dots are not shown. */
.tour-stage, .tour-dots { display: none; }
.tour.on { --w: clamp(420px, min(54vw, 92svh), 740px); height: 330vh; height: 330svh; }
.tour.on .tour-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--w) * 1.03); grid-template-rows: 1fr auto auto 1fr; column-gap: 16px; padding-inline: max(var(--pad), (100% - 1240px) / 2 + var(--pad)); }
.tour.on .story { grid-column: 1; grid-row: 2; padding: 0; opacity: 0; translate: 0 28px; pointer-events: none; transition: opacity 0.3s ease, translate 0.45s var(--ease); }
.tour.on .story.is-before { translate: 0 -28px; }
.tour.on .story.is-on { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity 0.55s ease 0.16s, translate 0.8s var(--ease) 0.16s; }
.tour.on .story-in { display: block; min-height: 0; max-width: 46rem; margin: 0; }
.tour.on .story-in > h2 { max-width: 24ch; }
.tour.on .story-in > .lead { max-width: 40rem; }
.tour.on .story .visual { display: none; }

.tour-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: none; cursor: pointer; }
.tour-dots i { display: block; width: 8px; height: 8px; border-radius: 4px; background: #cfcfcf; transition: width 0.45s var(--ease), background-color 0.3s ease; }
.tour-dots button:hover i { background: #9a9a9a; }
.tour-dots button[aria-current] i { width: 26px; background: var(--black); }
.tour-dots button:focus-visible { outline: 2px solid var(--black); outline-offset: -4px; }
.tour.on .tour-stage { display: block; position: relative; grid-column: 2; grid-row: 1 / 5; margin-right: calc(var(--w) * -0.7); -webkit-mask-image: linear-gradient(#000 78%, transparent 98%); mask-image: linear-gradient(#000 78%, transparent 98%); } /* the arm fades out before the stage edge, so no hard cut when it scrolls away */
/* The hand image sits 0.16w in from the stage's left so the last screen has room to peek out; the phone's screen is centred on the viewport. */
.tour-hand, .tour-track { position: absolute; top: calc(50% - var(--w) * 0.698); left: calc(var(--w) * 0.16); width: var(--w); height: auto; }
.tour-hand { z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 60%, transparent 74%); mask-image: linear-gradient(#000 60%, transparent 74%); }
.tour-track { left: 0; width: calc(var(--w) * 1.03); aspect-ratio: 1.03 / 1.771; -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.3) 24%, #000 35.8%, #000 64.6%, rgba(0, 0, 0, 0.3) 76%, transparent 92%); mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, 0.3) 24%, #000 35.8%, #000 64.6%, rgba(0, 0, 0, 0.3) 76%, transparent 92%); }
.tour-screen { --o: 0; position: absolute; left: 35.76%; top: 23.13%; width: 28.77%; height: 32.56%; object-fit: cover; object-position: top; background: #000; border-radius: 14% / 6.5%; box-shadow: 0 0 0 2px #000; translate: calc(var(--o) * 66%) 0; scale: 0.8; transition: translate 0.75s var(--ease), scale 0.75s var(--ease), opacity 0.5s ease; }
.tour-screen:nth-child(2) { --o: 1; }
.tour-screen:nth-child(3) { --o: 2; }
.tour-screen.is-on { scale: 1; }
.tour-screen.is-far { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tour.on .story, .tour.on .story.is-on, .tour-screen, .tour-dots i { transition: none; } }

/* Each story before the bento fills the screen like the hero, its content centred. */
.story.bridge { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.story.bridge > .story-in { width: 100%; }

/* The neighbour screens sit under the active one (they overlap the hand's screen hole) and are ghosted. */
.tour-screen { z-index: 1; }
.tour-screen.is-on { z-index: 2; opacity: 1; }
.tour-screen:not(.is-on) { opacity: 0; }
.tour-screen.is-far { opacity: 0; }

/* The bento fills at least one screen like the sections before it, its grid centred. */
.bento { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.bento > .bento-grid { width: 100%; }
@media (min-width: 1160px) { .bento { padding-block: 40px; } }


/* Falling icons (drop.js). On the sticky stage the layer covers the whole pin, under the text and the hand (z-index -1 inside
   the pin's own stacking context), and takes no pointer events: drop.js hit-tests the icons from the pin's listeners.
   Without motion, or narrower than 900 px, it is a short still pile under the stories. Hidden until drop.js sets it up. */
.tour-drop { display: none; }
.tour-drop img { position: absolute; left: 0; top: 0; height: auto; user-select: none; -webkit-user-select: none; transition: opacity 0.3s ease; }
.tour.on .tour-pin { isolation: isolate; }
.tour.on .tour-pin.drop-over { cursor: pointer; }
.tour.on .tour-drop { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tour.on .tour-drop img { will-change: transform; }
.tour-drop.is-static { display: block; position: relative; height: 150px; max-width: calc(1240px - 2 * var(--pad)); margin: 24px auto 0; margin-inline: max(var(--pad), (100% - 1240px) / 2 + var(--pad)); overflow: hidden; pointer-events: none; }

/* Text and phone close together, centred as one group; only the active screen shows. */
.tour.on .tour-pin { grid-template-columns: minmax(0, 36rem) calc(var(--w) * 1.03); justify-content: center; column-gap: 0; }
.tour.on .tour-stage { margin-right: 0; margin-left: calc(var(--w) * -0.16); translate: none; }
.tour-hand { max-width: none; }
.tour.on .story, .tour.on .tour-stage { position: relative; left: calc(var(--w) * 0.2); }
/* Text and phone sit higher than centre, so the food along the bottom has clear space and the stage is not bottom heavy (Georgina, 2 Dec 2026) */
.tour.on .tour-pin { grid-template-rows: 0.55fr auto auto 1.45fr; }
.tour.on .tour-stage { top: -7svh; }

/* Cally stickers: her gallery loops as transparent video (landing/tools/build-cally.py). The still shows first and stays with
   reduced motion; app.js lays the video over it while it is near the screen. Peeking poses sit on an edge: bottom: 100% puts
   the picture on top of the edge and --below (from the build) drops the part under her ledge back over it. */
.cally-loop { position: relative; display: block; flex: none; pointer-events: none; user-select: none; -webkit-user-select: none; }
.cally-loop img, .cally-loop video, .foot .cally-loop img { display: block; width: 100%; height: auto; }
.cally-loop video { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 0.4s ease; }
.cally-loop.playing video { opacity: 1; }
.cally-loop.playing img { visibility: hidden; } /* the still stays only for layout, or it shows through as a second Cally */
.cally-loop.peek { position: absolute; bottom: 100%; translate: 0 calc(var(--below, 0) * 100%); }

/* Bridge: sulky on the old-way search card, hanging on to the answer card with a fork and spoon */
.old-search .cally-loop { right: 14px; width: 104px; }
.answer-card .cally-loop.c-grip { left: 22px; width: 136px; z-index: 3; clip-path: inset(-40px -40px calc(var(--below) * 100%) -40px); } /* her loop rises out of its ledge as she lifts the fork and spoon, so trim at the card edge: she pops up from behind it */
@media (min-width: 900px) { .answer-card .cally-loop.c-grip { width: 150px; } }

/* The three stories: a small Cally above each heading */
.story-cally { width: 112px; margin: 0 0 10px -6px; }
.story-cally[data-cally="balanced"] { width: 168px; } /* a wide pose, her food around her */
@media (min-width: 900px) {
  .story-in > .story-cally { grid-column: 1; grid-row: 1; align-self: end; }
  .story.flip .story-in > .story-cally { grid-column: 2; }
  .tour.on .story-in > .story-cally { width: 124px; }
  .tour.on .story-in > .story-cally[data-cally="balanced"] { width: 184px; }
}

/* Bento: chin on the top edge of the first tile, small ones in the corner of the others */
.bt .f-half { overflow: visible; }
.f-half > .half-cally { right: 14px; width: 120px; z-index: 1; } /* peeks over the bangus card where the bread icon was */
@media (max-width: 759px) { .t-half .stage .f-half { margin-top: 84px; } } /* phone: room above the card so she clears the chat */
.bt-corner { position: absolute; top: 14px; right: 12px; width: 84px; z-index: 2; }
.bt:has(.bt-corner) .bt-copy { padding-right: 76px; }
.bt .f-week { overflow: visible; }
.f-week > .week-cally { position: absolute; bottom: calc(100% - 2px); right: 10px; width: 92px; translate: 0 34%; } /* standing on the top right of the calorie balance card */
@media (min-width: 760px) { .f-week > .week-cally { width: 104px; } }
@media (max-width: 759px) { .t-scale .stage { row-gap: 90px; } } /* stacked cards: room for her to stand between them */
@media (min-width: 760px) { .bt-corner { width: 104px; } .bt:has(.bt-corner) .bt-copy { padding-right: 96px; } }

/* Founder block: Cally peeks over its top edge, arms crossed */
.honest > .cally-loop.peek { left: 28px; width: 170px; }
@media (min-width: 900px) { .honest > .cally-loop.peek { left: 48px; width: 210px; } }

/* Thinking stands on the hairline above "Want in early?", bottom left, her ground shadow on the line */
/* Thinking Cally: on a narrow screen she stands on the hairline under the questions; on a wide one she stands beside the last question, left of the list. */
.faq { position: relative; padding-bottom: 120px; }
.close { margin-top: 0; }
.faq > .line-cally { position: absolute; bottom: 0; left: var(--pad); width: 112px; translate: 0 6%; }
@media (min-width: 760px) { .faq { padding-bottom: 144px; } .faq > .line-cally { width: 136px; } }
@media (min-width: 1000px) { .faq { padding-bottom: 0; } .close { margin-top: 56px; } .faq > .line-cally { left: calc(var(--pad) - 156px); } }

/* Footer runner (app.js): she runs along the ground under the footer; on a wide screen she hops up onto the logo and text, down,
   up onto the social icons, down and off, then comes back in on the left. The jump sticker is sized and shifted so its figure
   matches the run sticker's (fitted 2 Dec 2026 on the decoded frames: the jump's first and last frames against the run, same
   body, same ground shadow). Run and jump clips all keep rendering; the one in use is the one with .on (opacity, so a hidden clip
   still has its frame ready when it is shown). */
.foot-stage { position: relative; overflow-x: clip; padding-bottom: 104px; }
.foot-runner { --w: 88px; position: absolute; left: 0; bottom: 16px; width: var(--w); pointer-events: none; user-select: none; -webkit-user-select: none; will-change: transform; translate: -120% 0; }
.foot-cally { position: relative; display: block; opacity: 0; }
.foot-cally.on { opacity: 1; }
.foot-cally img, .foot-cally video { display: block; width: 100%; height: auto; }
.foot-cally video { position: absolute; inset: 0; height: 100%; }
.foot-cally.playing img { visibility: hidden; }
.foot-jump { position: absolute; left: calc(var(--w) * -0.28); bottom: 0; width: calc(var(--w) * 1.43); }
.foot-runner.still { left: auto; right: var(--pad); translate: none; }

@media (min-width: 900px) { .foot-stage { padding-top: 56px; padding-bottom: 0; } } /* room above the logo and icons for her; she runs on the footer's own line, so no lane under it */ /* room above the logo and icons for her when she runs on top of them */
/* Same breakfast card: the chef Cally floats over the meal card's top right corner, where the 3D heart used to be. */
.f-saved > .saved-cally { position: absolute; bottom: calc(100% - 22px); right: -6px; width: 92px; }
@media (min-width: 760px) { .f-saved > .saved-cally { width: 104px; } }
/* Your day starts card: the look-up Cally stands beside the time picker, looking up at it (under it on a phone, where there is no room beside it). */
.f-time > .day-cally { position: absolute; top: calc(100% + 6px); left: 4px; width: 84px; }
.bt.t-day .stage { padding-bottom: 136px; }
@media (min-width: 760px) { .f-time > .day-cally { top: auto; bottom: -4px; left: auto; right: calc(100% + 6px); width: 96px; } .bt.t-day .stage { padding-bottom: 26px; } }
div.lead > p { margin: 0; }
.lead-answer { margin-top: 28px; color: var(--black); font-weight: 600; }
.story .lead-answer p { margin: 0 0 6px; color: var(--black); }
.lead-answer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lead-answer li { position: relative; padding-left: 22px; }
.lead-answer li { font-weight: 400; }
.lead-answer li::before { content: ""; position: absolute; left: 4px; top: 0.32em; width: 5px; height: 10px; border: solid var(--green-text); border-width: 0 2px 2px 0; rotate: 45deg; } /* a green check */ /* the problem section's answer, in the page's text green */

/* ==========================================================================
   Scroll header and waitlist modal (first draft, app.js "Scroll header and waitlist modal").
   The bar is hidden while the hero scene is on screen (the hero has its own logo) and eases in once the scene has scrolled away.
   ========================================================================== */
.site-bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: env(safe-area-inset-top, 0px) calc(max(var(--pad), env(safe-area-inset-right, 0px)) + var(--sbw, 0px)) 0 max(var(--pad), env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); opacity: 0; visibility: hidden; transform: translateY(-100%); transition: transform 0.45s var(--ease), opacity 0.3s ease, visibility 0s linear 0.45s; }
.site-bar.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1240px; min-height: 60px; margin: 0 auto; }
.site-bar-logo { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.site-bar-logo img { width: auto; height: 42px; }
.site-bar-cta { min-height: 44px; padding: 0 18px; }

html.wl-lock { overflow: hidden; } /* the page behind the modal stays where it is */
html.wl-lock body { padding-right: var(--sbw, 0px); } /* --sbw is the width of the scrollbar that just went away, so nothing shifts */

.wl { width: min(26rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.08); overflow: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity 0.25s ease, transform 0.35s var(--ease), overlay 0.35s allow-discrete, display 0.35s allow-discrete; }
.wl[open] { opacity: 1; transform: none; }
@starting-style { .wl[open] { opacity: 0; transform: translateY(12px) scale(0.97); } }
.wl::backdrop { background: rgba(0, 0, 0, 0); transition: background-color 0.3s ease, overlay 0.35s allow-discrete, display 0.35s allow-discrete; }
.wl[open]::backdrop { background: rgba(0, 0, 0, 0.45); }
@starting-style { .wl[open]::backdrop { background: rgba(0, 0, 0, 0); } }
.wl-in { position: relative; padding: 28px 24px 24px; text-align: center; }
.wl-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--black); display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s; }
.wl-x:hover { background: rgba(0, 0, 0, 0.06); }
.wl-cally { width: 112px; height: auto; margin: 0 auto 8px; }
.wl h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; }
.wl-lead { margin-top: 10px; color: var(--ink); }
.wl-join { margin-top: 20px; max-width: none; }
.wl-label { display: block; margin: 0 0 8px 6px; text-align: left; font-size: 0.875rem; font-weight: 600; color: var(--black); }
.wl .fine { font-size: 0.875rem; }
@media (max-width: 440px) { /* no room for the field and the button side by side */
  .wl-in { padding: 24px 18px 20px; }
  /* stacked: no outer pill, the field and the button are each their own full-width pill (Georgina, 2 Dec 2026) */
  .wl .join-form, .wl .join-form:focus-within { flex-direction: column; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .wl .join-form input { flex: none; min-height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-align: left; }
  .wl .join-form input:focus-visible { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12); }
  .wl .join-form button { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .site-bar, .wl, .wl::backdrop, .wl-x { transition: none; } }
@media (prefers-contrast: more) { .site-bar { background: var(--white); border-bottom: 2px solid var(--black); } .wl { border: 2px solid var(--black); } }
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* hidden trap field for bots */
.fine[data-state="ok"] { color: var(--green-text); font-weight: 600; }
.fine[data-state="error"] { color: var(--black); font-weight: 600; } /* no error colour token on the page yet */

/* Waitlist success: a full-screen overlay like the app's big day saved screen (app/src/app/big-day-saved.tsx): a warm glow near the
   top over light blue fading to white, the headline, Cally celebrating as large as the room allows, and a black Done button.
   Colours are the app's tokens: coachCard #daebfe, sendBg #e2eff9, userBubble #fef1da (app/src/theme/tokens.ts). */
:root { --app-coach: #daebfe; --app-send: #e2eff9; --app-warm: #fef1da; }
.wld { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--black);
  background: radial-gradient(110% 30% at 50% 6%, var(--app-warm), transparent 70%), linear-gradient(var(--app-coach), var(--app-send) 14%, var(--white) 36%); } /* white by the time Cally starts, so her soft edges never show */
.wld::backdrop { background: var(--white); }
.wld[open] { display: flex; animation: wld-in 0.35s var(--ease); }
.wld-in { flex: 1; display: flex; flex-direction: column; align-items: center; width: min(100%, 440px); margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 48px) 24px calc(env(safe-area-inset-bottom) + 20px); text-align: center; }
.wld h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; }
.wld-sub { margin-top: 8px; font-size: 1.0625rem; color: var(--muted); }
.wld-art { flex: 1; display: grid; place-items: center; width: 100%; min-height: 0; }
.wld-cally { width: min(300px, 78vw, 42vh); animation: wld-pop 0.56s 0.16s cubic-bezier(0.34, 1.4, 0.64, 1) both, wld-float 2.6s 0.72s ease-in-out infinite alternate; }
.wld-note { margin: 12px 0 24px; font-size: 0.9375rem; }
.wld-done { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--black); color: var(--white); font: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: transform 0.2s var(--ease); }
.wld-done:active { transform: scale(0.97); }
.wld-rise { animation: wld-rise 0.46s var(--ease) both; }
.wld h2.wld-rise { animation-delay: 0.12s; } .wld-sub.wld-rise { animation-delay: 0.18s; } .wld-note.wld-rise { animation-delay: 0.7s; } .wld-done.wld-rise { animation-delay: 0.52s; }
@keyframes wld-in { from { opacity: 0; } }
@keyframes wld-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes wld-pop { from { opacity: 0; transform: translateY(16px) scale(0.6); } }
@keyframes wld-float { to { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .wld-cally { animation: wld-in 0.3s both; } .wld-rise { animation: wld-in 0.3s both; } }

/* Mobile pass (Georgina, 2 Dec 2026, from her iPhone). Phones only: everything here is under 760 px. */
@media (max-width: 759px) {
  /* The three phone-in-hand stories: more air between them and between the text and the hand. */
  .tour .story { padding-top: 96px; padding-bottom: 40px; }
  .tour .story-in > .visual { margin-top: 44px; }
  .tour .story-in > .lead { margin-top: 18px; }
  /* Founder note: tighter, and the text runs the full width of the block. */
  .honest { padding: 52px 20px 28px; }
  .honest-in, .honest p { max-width: none; }
  .honest .visual { margin-top: 20px; }
  /* Questions: thinking Cally stands to the right of the heading, so no room is kept for her under the list. */
  .faq { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; padding-bottom: 0; }
  .faq > h2 { grid-area: 1 / 1; }
  .faq > details { grid-column: 1 / -1; }
  .faq > .line-cally { position: relative; grid-area: 1 / 2; bottom: auto; left: auto; width: 76px; margin: -36px 0 8px 12px; translate: none; }
  /* Want in early: centred, the form as wide as the column. */
  .close { margin-top: 56px; padding: 56px var(--pad) 28px; text-align: center; }
  .close-copy p { max-width: 22rem; margin-inline: auto; }
  .join-close { margin: 28px auto 0; max-width: 28rem; }
  .join-close .fine { max-width: 20rem; margin: 14px auto 0; font-size: 0.875rem; text-align: center; }
  /* Footer: Cally runs along a hairline above it, then logo, line and socials centred in one column. */
  .foot-stage { padding-top: 92px; padding-bottom: 0; background: linear-gradient(var(--line), var(--line)) center 92px / calc(100% - 2 * var(--pad)) 1px no-repeat; }
  .foot-runner { --w: 80px; top: 18px; bottom: auto; } /* her ground shadow rests on the hairline */
  .foot { align-items: center; gap: 20px; padding: 32px var(--pad) max(36px, env(safe-area-inset-bottom)); text-align: center; }
  .foot-brand { flex-direction: column; gap: 12px; }
  .socials { gap: 12px; }
}
@media (max-width: 480px) { /* no room for the field and the button side by side: one under the other, both full width */
  .join-close .join-form, .join-close .join-form:focus-within { flex-direction: column; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; } /* no outer pill: the field and the button are each their own */
  .join-close .join-form input { flex: none; min-height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-align: left; }
  .join-close .join-form input:focus-visible { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12); }
  .join-close .join-form button { min-height: 52px; }
}
@media (max-width: 480px) and (prefers-contrast: more) { .join-close .join-form input, .wl .join-form input { border: 2px solid var(--black); } }

/* Scroll reveal (app.js): a block waits see-through until it comes on screen, then fades in and rises 28 px. */
.rv:not(.rv-in) { opacity: 0; }
.rv.rv-in { animation: rv-up 0.8s var(--ease) var(--rv-d, 0ms) both; }
@keyframes rv-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
.tour.on .rv { opacity: 1; animation: none; } /* the sticky story tour runs its own fades */
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; animation: none !important; } }

/* Footer line: one line only (Georgina, 2 Dec 2026; the "Dear Calories · dearcalories.app" line is gone). */
.foot-line { white-space: nowrap; font-size: clamp(12px, 4.1vw, 0.9375rem); } /* shrinks a touch on the narrowest phones (320 px) so it never wraps */

/* Consent under both waitlist forms (Georgina, 2 Dec 2026). Its own line, so the form's status messages in .fine never replace it.
   The link's tap area is padded out to 44 px tall without moving the text. */
.join .consent { margin: 6px auto 0; max-width: none; text-align: center; font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0; color: var(--muted); } /* .join: beats .close p, which sizes the section's paragraphs */
.join .consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 13px 0; margin: -13px 0; }
@media (hover: hover) { .join .consent a:hover { color: var(--black); } } /* mouse only: on iPhone a hover style can make the first tap only highlight the link */
@media (min-width: 900px) { .join-close .consent { text-align: left; } } /* matches the small print above it on wide screens */

/* Privacy Policy pop-up (#privacy, a .wl dialog): wider, left-aligned, scrolls inside. */
.pp { width: min(36rem, calc(100vw - 32px)); }
.pp-in { text-align: left; padding: 28px 28px 32px; }
.pp h2 { padding-right: 48px; }
.pp .legal-date { margin-top: 6px; color: var(--muted); font-size: 0.875rem; }
.pp h3 { margin: 24px 0 0; font-size: 1.0625rem; line-height: 1.3; color: var(--black); }
.pp p, .pp ul { margin-top: 8px; font-size: 0.9375rem; line-height: 1.55; }
.pp ul { padding-left: 1.25em; }
.pp li + li { margin-top: 2px; }
.pp a { color: var(--black); text-underline-offset: 2px; }
@media (max-width: 480px) { .pp-in { padding: 24px 20px 28px; } }
#pp-title:focus { outline: none; } /* focused only so reading starts at the title when the pop-up opens */
