/*
  Home page, visual design v3 (B2, founder Oct 27). Every figure on this page is drawn
  from the tokens with sample data, not captured from the app, until the v3 recaptures.
  Motion: things fill, count up and draw in once as they come into view (v3.js adds
  .in-view). Without script, or with Reduce Motion, everything shows in its final state.
*/

.sprite { display: none; }
.v3 { --display: clamp(2.6rem, 1.4rem + 5.4vw, 4.6rem); --title: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.v3 h1, .v3 h2, .v3 h3 { font-weight: 800; letter-spacing: -0.025em; }
.v3 .caption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); }

/* Icons and tints */
.ic, .tic svg, .phase__shot svg, .rg__ic, .noise__k svg, .px__shield svg {
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.ic--food { color: var(--meal); } .ic--water { color: var(--water); } .ic--body { color: var(--weigh); } .ic--meds { color: var(--meds); }
.tic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); }
.tic svg { width: 22px; height: 22px; }

/* Shared surfaces */
.card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 18px; }
.hcard { position: relative; overflow: hidden; border-radius: var(--radius-hero); color: #fff; padding: 20px; }
.hcard::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 100% 0%, rgb(255 255 255 / 0.2), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgb(0 0 0 / 0.14), transparent 70%); }
.hcard > * { position: relative; z-index: 1; }
.hcard--green { background: var(--hero-green); box-shadow: var(--hero-shadow-green); }
.hcard--meds { background: var(--hero-meds); box-shadow: var(--hero-shadow-meds); }
.hcard--blue { background: var(--hero-blue); box-shadow: var(--hero-shadow-blue); }
.hcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hcard__k { font-weight: 700; opacity: 0.92; }
.hcard__big { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.hcard__big small { font-size: 0.42em; letter-spacing: 0; font-weight: 700; }
.hcard__mid { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin-top: 2px; }
.hcard__s { font-weight: 600; opacity: 0.9; }
.estpill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.estpill { gap: 6px; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.2); font-size: 0.8rem; font-weight: 700; }
.glass { display: grid; justify-items: end; text-align: right; padding: 10px 14px; border-radius: 20px; background: rgb(255 255 255 / 0.16); }
.glass b { font-size: 1.05rem; font-weight: 800; }
.glass__k { font-size: 0.8rem; font-weight: 600; opacity: 0.9; }

/* Hero */
.hx { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) var(--space-section); overflow: clip; }
.hx__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.hx__title { font-size: var(--display); line-height: 0.98; letter-spacing: -0.045em; max-width: 12ch; }
.hx__accent { color: var(--primary); }
.hx__sub { margin-top: var(--space-4); font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
.hx__actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.hx__more { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.hx__price { margin-top: var(--space-4); font-weight: 700; }
.hx__facts { margin-top: var(--space-1); color: var(--muted); font-size: var(--step--1); }
.hx__stage { position: relative; display: grid; justify-items: center; padding-block: 8px 28px; }
.hx__cap { position: absolute; bottom: 0; right: 0; font-size: var(--step--2); color: var(--muted); }

/* Sections */
.sx { padding-block: var(--space-section); }
.sx--alt { background: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); }
.sx__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.sx__title { font-size: var(--title); line-height: 1.04; max-width: 18ch; }
.sx__copy > p, .sx__copy > ul, .sx__copy > details, .sx__copy > h3 { margin-top: var(--space-4); max-width: 46ch; }
.sx__copy > p { color: var(--muted); font-size: var(--step-1); }
.sx__copy b { color: var(--fg); }
.sx__h3 { font-size: var(--step-2); }
.sx__list { padding-left: 1.1em; color: var(--muted); font-size: var(--step-1); }
.sx__list li + li { margin-top: var(--space-2); }
.sx__note { font-size: var(--step--1) !important; }
.sx__how summary { cursor: pointer; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); }
.sx__how summary::after { content: "+"; font-weight: 800; }
.sx__how[open] summary::after { content: "\2212"; }
.sx__how ul { padding-left: 1.1em; color: var(--muted); }
.sx__visual { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }

/* The level chart (WDScrubChart, as Today's medication card and a medication's page draw it): faint day columns, the
   area in a soft gradient of the tint, solid to now and dashed ahead, Peak and the next shot named, today's dot, the
   doses in a lane along the bottom. Today's can be scrubbed with a finger, the mouse or the arrow keys. */
.phase { position: relative; margin-top: 10px; color: var(--fg); }
.lvl { --tint: var(--meds); position: relative; height: 150px; color: var(--tint);
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--cols) - 1px), color-mix(in srgb, var(--fg) 9%, transparent) calc(100% / var(--cols) - 1px) calc(100% / var(--cols))); }
.phase__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.lvl__g0 { stop-color: var(--tint); stop-opacity: 0.35; } .lvl__g1 { stop-color: var(--tint); stop-opacity: 0; }
.phase__line { fill: none; stroke: var(--tint); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.phase__next { fill: none; stroke: var(--tint); stroke-width: 2.5; stroke-dasharray: 4 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lvl__pt { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 75%, transparent); }
.phase__word { position: absolute; translate: -50% calc(-100% - 6px); font-size: 0.75rem; font-weight: 600; color: var(--fg); white-space: nowrap; pointer-events: none; }
.phase__word--low { left: auto !important; right: 0; translate: 0 8px; }
.phase__dot, .phase__rule { position: absolute; pointer-events: none; }
.phase__dot { left: var(--x); top: calc(var(--y) * 0.5%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1.5px #fff; }
.phase__rule { top: 0; bottom: 0; width: 1.5px; margin-left: -0.75px; left: var(--x); background: color-mix(in srgb, var(--fg) 50%, transparent); opacity: 0; transition: opacity 0.2s; }
.lvl__mk { position: absolute; bottom: calc(4px + var(--row) * 26px); width: 22px; height: 22px; margin-left: -11px; display: grid; place-items: center; border-radius: 50%; background: var(--meds); color: #fff; }
.lvl__mk svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lvl__mk--rx { background: var(--weigh); }
.lvl__mk--up { background: none; box-shadow: none; border: 1.5px dashed var(--meds); }
.lvl__band { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.lvl__band i { background: color-mix(in srgb, var(--noise) calc(var(--d) * 100%), transparent); }
.phase__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.78rem; color: var(--muted); }
.phase__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-line { width: 14px; height: 3px; border-radius: 2px; background: var(--meds); }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--weigh); }
.phase__days { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 8px; text-align: center; font-size: 0.75rem; color: var(--muted); }
.phase__days > span { display: grid; justify-items: center; gap: 3px; }
.phase__days b { font-weight: 400; }
.phase__days .is-today b { font-weight: 800; color: var(--fg); }
.dd__r { display: flex; gap: 2px; min-height: 5px; }
.dd__r i { width: 5px; height: 5px; border-radius: 50%; background: var(--meal); }
.dd__r .dd__w { background: var(--water); } .dd__r .dd__b { border-radius: 1px; background: var(--weigh); }
.phase__scrub { position: absolute; left: 0; right: 0; top: 0; height: 150px; width: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.phase:has(.phase__scrub:focus-visible) { outline: 3px solid var(--primary); outline-offset: 6px; border-radius: 12px; }
.phase__read { position: absolute; left: 50%; top: -6px; translate: -50% -100%; padding: 4px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.78rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.scrubbing .phase__read, .phase:focus-within .phase__read, .scrubbing .phase__rule, .phase:focus-within .phase__rule { opacity: 1; }
@media (max-width: 420px) { .phase__read { font-size: 0.7rem; white-space: normal; width: 92%; text-align: center; } }

/* Rings and tiles */
.rgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; text-align: center; }
.rg { position: relative; display: grid; justify-items: center; }
.rg > svg:first-child { width: 100%; max-width: 104px; transform: rotate(-90deg); }
.rg__track { fill: none; stroke: rgb(255 255 255 / 0.22); stroke-width: 7; }
.rg__val { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.3s var(--ease); }
.rg__n { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 104px; margin-inline: auto; display: grid; place-content: center; line-height: 1.05; }
.rg__n b { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rg__n small { font-size: 0.68rem; font-weight: 700; opacity: 0.85; }
.rg__k { margin-top: 6px; font-weight: 700; font-size: 0.9rem; }
.rg--big { width: 132px; flex: none; }
.rg--big > svg:first-child { max-width: none; }
.rg--protein .rg__track { stroke: var(--track); stroke-width: 9; }
.rg--protein .rg__val { stroke: var(--protein); stroke-width: 9; }
.rg__ic { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; color: var(--protein); transform: none; }

.checkin, .report { display: flex; align-items: center; gap: 14px; }
.checkin p, .report p { color: var(--muted); font-size: var(--step--1); }

.fhero > div:first-child { min-width: 0; }
.fhero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; }
.fhero__k { font-weight: 700; color: var(--muted); }
.fhero__big { color: var(--protein); line-height: 1; margin: 4px 0 8px; }
.fhero__big b { font-size: clamp(3.4rem, 2.6rem + 3vw, 4.4rem); font-weight: 900; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.fhero__big small { font-size: 1.5rem; font-weight: 800; color: var(--muted); margin-left: 4px; }
.fhero__s { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 4px; min-width: 0; }
.tile__k { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.tile__k i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tile b { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile b small { font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.pbar { display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; margin-top: 4px; }
.pbar i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 3px; background: var(--c); transition: width 1.2s var(--ease); }

.meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meal { display: flex; align-items: center; gap: 14px; padding: 14px; }
.meal b, .mplan__big b { display: block; font-weight: 800; line-height: 1.25; }
.meal__k, .meal__s { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
/* A drawn plate stands in for a photo (licensed recipe photos come with the v3 photo set). */
.plate { position: relative; flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--surface-2); }
.plate::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: #fbfaf6; box-shadow: 0 4px 10px rgb(0 0 0 / 0.1), inset 0 0 0 4px #f1ede4; }
.plate::after { content: ""; position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(circle at 34% 40%, var(--b) 0 18%, transparent 19%), radial-gradient(circle at 64% 60%, var(--c) 0 16%, transparent 17%), var(--a); }
.plate--big { width: 96px; height: 96px; border-radius: 24px; }

.mplan { display: grid; gap: 16px; }
.mplan__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mplan__day { position: relative; display: grid; justify-items: center; padding: 8px 0; border-radius: 14px; font-weight: 800; font-size: 0.95rem; }
.mplan__day b { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.mplan__day.is-on { background: var(--fg); color: var(--bg); }
.mplan__day.is-on b { color: inherit; opacity: 0.7; }
.mplan__day.is-shot::after { content: ""; position: absolute; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--meds); }
.mplan__big { display: flex; align-items: center; gap: 16px; }
.mplan__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mplan__row .tile { box-shadow: none; background: var(--surface-2); }

.sitelist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sitelist li { padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.14); font-weight: 700; font-size: 0.85rem; }
.sitelist small { margin-left: 6px; font-weight: 800; opacity: 0.85; }
.sitelist .is-next { background: #fff; color: #43278a; }
.noise { margin-top: 18px; padding: 14px; border-radius: 20px; background: rgb(255 255 255 / 0.12); }
.noise__k { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; }
.noise__k svg { width: 18px; height: 18px; }
.noise__bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 64px; margin-top: 10px; }
.noise__bars i { display: block; height: calc(var(--h) * 25%); border-radius: 6px; background: rgb(255 255 255 / 0.4); transform-origin: bottom; transition: transform 0.9s var(--ease); }
.noise__bars .is-loud { background: #ffd666; }
.noise__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; text-align: center; font-size: 0.72rem; font-weight: 700; opacity: 0.85; }

.seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / 0.14); font-size: 0.75rem; font-weight: 800; }
.seg span { padding: 5px 9px; border-radius: 999px; }
.seg .is-on { background: #fff; color: #173f8a; }
/* Weight: only logged weigh-ins are joined, and each shot sits on the line as the week hero's purple circle,
   with the amount as entered where it changed. Markers are HTML so they stay round while the chart stretches. */
.wchart { position: relative; height: 150px; margin: 18px 0 6px; }
.wchart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wchart__band { fill: rgb(255 255 255 / 0.1); }
.wchart__line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wchart__dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; }
.wchart__shot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; border-radius: 50%; background: var(--meds); color: #fff; box-shadow: 0 0 0 2.5px #fff, 0 4px 10px rgb(0 0 0 / 0.2); }
.wchart__shot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wchart__dose { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 999px; background: #fff; color: #173f8a; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.wchart__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 0.78rem; font-weight: 700; opacity: 0.92; }
.wchart__legend span { display: inline-flex; align-items: center; }
.lg { display: inline-grid; place-items: center; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; flex: none; }
.lg--shot { width: 18px; height: 18px; border-radius: 50%; background: var(--meds); color: #fff; }
.lg--shot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lg--dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.lg--band { background: rgb(255 255 255 / 0.3); }

/* The day timeline: in the order it happened, a now line, then Next up. */
.tl { padding: 18px 16px; }
.tl__h { font-weight: 800; font-size: 1.05rem; margin: 0 0 10px 4px; }
.tl__h--next { margin-top: 16px; }
.tl__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.tl__list::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--track); }
.tl__e { --c: var(--meds); position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.tl__e--food { --c: var(--meal); } .tl__e--water { --c: var(--water); } .tl__e--meds { --c: var(--meds); }
.tl__ic { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface)); box-shadow: 0 0 0 3px var(--surface); }
.tl__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl__b { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 9px 12px; border-radius: 16px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.tl__b b { font-weight: 800; }
.tl__b time { font-size: 0.85rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl__b span { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.tl__e--due .tl__b { background: transparent; outline: 1.5px dashed color-mix(in srgb, var(--c) 45%, transparent); outline-offset: -1.5px; }
.tl__now { display: flex; align-items: center; gap: 8px; padding-left: 12px; color: var(--meal); font-size: 0.8rem; font-weight: 800; }
.tl__now::before { content: ""; position: relative; z-index: 1; width: 10px; height: 10px; margin-left: 1px; border-radius: 50%; background: var(--meal); box-shadow: 0 0 0 3px var(--surface); }
.tl__now::after { content: ""; flex: 1; height: 2px; background: var(--meal); }

/* Merge (merge.css), v3 surfaces */
.v3 .merge { background: var(--bg); }
.v3 .merge__tile { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.v3 .merge__tile svg { fill: none; }

/* Founder */
.v3 .founder4 { padding-block: var(--space-section); }
.v3 .founder4__inner { max-width: 46rem; }
.v3 .founder4__note { margin-top: var(--space-5); padding: clamp(20px, 3vw, 32px); background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.v3 .founder4__note p { font-size: var(--step-1); line-height: 1.6; }
.v3 .founder4__note p + p { margin-top: var(--space-4); }
.v3 .founder4__name { font-weight: 900; font-size: var(--step-2); }

/* Privacy: the promises float around the shield (setup's privacy page). */
.px { padding-block: var(--space-section); background: var(--hero-green); color: #fff; overflow: clip; }
.px .sx__title { color: #fff; }
.px__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.px__copy > p { margin-top: var(--space-4); max-width: 46ch; color: rgb(255 255 255 / 0.88); font-size: var(--step-1); }
.px__lead { font-weight: 800; color: #fff !important; }
.px__more { margin-top: var(--space-4); max-width: 60ch; }
.px__more summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.px__more p { margin-top: var(--space-2); color: rgb(255 255 255 / 0.85); }
.px a { color: #fff; }
.px :focus-visible { outline-color: #fff; }
.px__orbit { position: relative; height: 300px; }
.px__shield { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; display: grid; place-items: center; border-radius: 34px; background: rgb(255 255 255 / 0.16); }
.px__shield svg { width: 56px; height: 56px; stroke-width: 1.6; }
.px__tile { position: absolute; padding: 10px 16px; border-radius: 18px; background: #fffcf7; color: #1b1713; font-weight: 800; box-shadow: 0 14px 30px rgb(0 0 0 / 0.18); white-space: nowrap; }
.px__tile--1 { left: 4%; top: 8%; rotate: -4deg; }
.px__tile--2 { right: 2%; top: 18%; rotate: 3deg; }
.px__tile--3 { left: 10%; bottom: 12%; rotate: 3deg; }
.px__tile--4 { right: 6%; bottom: 4%; rotate: -3deg; }

/* FAQ and finale */
.v3 .close { padding-block: var(--space-section); }
.v3 .faq-list { max-width: 48rem; }
.v3 .qa { border-radius: var(--radius-lg); }
.fx { padding-block: var(--space-section); }
.fx__inner { background: var(--fg); color: var(--bg); border-radius: var(--radius-hero); padding: clamp(28px, 4vw, 56px); }
.fx__title { color: var(--bg); font-size: var(--title); line-height: 1.04; max-width: 16ch; }
.fx__terms { margin-top: var(--space-4); max-width: 60ch; opacity: 0.85; }
.fx a { color: var(--bg); }
.fx :focus-visible { outline-color: var(--bg); }
.fx__cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

/* Wider screens */
@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hx__grid { grid-template-columns: 1.05fr 1fr; }
  .sx__grid { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 2rem + 4vw, 6rem); }
  .sx__grid--flip .sx__copy { order: 2; }
  .px__grid { grid-template-columns: 1fr 1fr; }
  .px__orbit { height: 380px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .rg__n small { font-size: 0.58rem; }
  .fhero { padding: 18px; }
  .rg--big { width: 96px; }
  .fhero__big b { font-size: 3rem; }
  .fhero__big small { font-size: 1.2rem; }
  .tile b { font-size: 1.25rem; }
  .rg > svg:first-child { max-width: 92px; } .rg__n { max-width: 92px; }
  .px__tile { font-size: 0.9rem; padding: 8px 12px; }
}

/* Motion. v3.js adds .motion to <html> only when Reduce Motion is off, and .in-view
   as each piece arrives, so without either everything is already in place. */
.motion [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.motion [data-reveal].in-view { opacity: 1; translate: none; }
.motion [data-anim]:not(.in-view) .rg__val { stroke-dashoffset: 100; }
.motion [data-anim]:not(.in-view) .pbar i { width: 0; }
.motion [data-anim]:not(.in-view) .noise__bars i { transform: scaleY(0); }
.motion .noise__bars i:nth-child(n) { transition-delay: calc(var(--h) * 0.08s + 0.2s); }
.motion .phase__line, .motion .wchart__line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1); }
.motion [data-anim]:not(.in-view) .phase__line, .motion [data-anim]:not(.in-view) .wchart__line { stroke-dashoffset: 1; }
.motion .phase__fill, .motion .phase__next, .motion .phase__dot, .motion .phase__word, .motion .lvl__pt, .motion .lvl__mk { transition: opacity 0.6s var(--ease) 1.6s; }
.motion [data-anim]:not(.in-view) :is(.phase__fill, .phase__next, .phase__dot, .phase__word, .lvl__pt, .lvl__mk) { opacity: 0; }
/* Weigh-ins appear as the line draws, then each shot pops onto it. */
.motion .wchart__dot { transition: opacity 0.4s var(--ease) 1.2s; }
.motion .wchart__shot { transition: scale 0.5s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s; transition-delay: calc(1.4s + var(--k) * 0.18s); }
.motion [data-anim]:not(.in-view) .wchart__dot { opacity: 0; }
.motion [data-anim]:not(.in-view) .wchart__shot { opacity: 0; scale: 0.3; }
/* Timeline entries slide in one by one as each reaches the screen. */
.motion .tl [data-reveal] { translate: -18px 0; transition-duration: 0.55s; }
.motion .tl [data-reveal].in-view { translate: none; }
.motion .phase__days > span { transition: opacity 0.4s var(--ease); }
.motion [data-anim]:not(.in-view) .phase__days > span { opacity: 0; }
.motion .phase__days > span:nth-child(2) { transition-delay: 0.24s; } .motion .phase__days > span:nth-child(3) { transition-delay: 0.48s; }
.motion .phase__days > span:nth-child(4) { transition-delay: 0.72s; } .motion .phase__days > span:nth-child(5) { transition-delay: 0.96s; }
.motion .phase__days > span:nth-child(6) { transition-delay: 1.2s; } .motion .phase__days > span:nth-child(7) { transition-delay: 1.44s; }
.motion .phase__days > span:nth-child(8) { transition-delay: 1.68s; }
.motion.scrubbing .phase__dot, .motion.scrubbing .phase__rule { transition: none; }

/* The hero week: days pop in, the rows fill day by day, the phase bar draws, then the card settles. */
@keyframes pop { from { opacity: 0; scale: 0.4; } }
@keyframes grow { from { opacity: 0; transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; translate: 0 12px; } }
@keyframes settle { from { scale: 1.035; box-shadow: 0 30px 60px rgb(70 45 20 / 0.16); } }
@keyframes bob { 50% { translate: 0 -10px; } }

/* Privacy tiles drift slowly. */

/* Scroll-linked parallax where the browser supports scroll-driven animations (no script). */
@supports (animation-timeline: view()) {
  .motion .sx__visual > .hcard, .motion .sx__visual > .fhero, .motion .sx__visual > .mplan { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .motion .px__orbit { animation: lift-slow linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
@keyframes lift { from { translate: 0 36px; } to { translate: 0 -36px; } }
@keyframes lift-slow { from { translate: 0 60px; } to { translate: 0 -40px; } }

@media (prefers-reduced-motion: reduce) {
  .px__tile, [data-reveal] { animation: none !important; transition: none !important; }
}


/* Shared v3 cards (tools/v3_cards.py): search pages, /features and the home page's feature tiles. */
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.fstack { display: grid; gap: 10px; }

.rep__h svg, .rep__chip svg, .co__k svg, .ck__k svg, .wat__say svg, .wat__ic svg, .la__ic svg, .rg--fast .rg__ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.bm { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; }
.bm__fig { position: relative; aspect-ratio: 2 / 3; max-width: 200px; }
.bm__body { width: 100%; height: 100%; fill: var(--surface-2); }
.bm__site { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; display: grid; place-items: center; border: 2px solid color-mix(in srgb, var(--meds) 40%, transparent); background: var(--surface); transition: scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s; transition-delay: calc(0.2s + var(--i) * 0.1s); }
.bm__site--recent { background: color-mix(in srgb, var(--meds) 30%, var(--surface)); border-color: transparent; }
.bm__site--last { background: var(--meds); border-color: transparent; }
.bm__site--next { background: var(--surface); border: 2.5px solid var(--meds); color: var(--meds); }
.bm__site--next b { font-size: 12px; line-height: 1; }
.bm__k { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.bm__row { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.bm__row i { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; }
.bm__row--next i { border: 2.5px solid var(--meds); } .bm__row--last i { background: var(--meds); } .bm__row--recent i { background: color-mix(in srgb, var(--meds) 30%, var(--surface)); }
.bm__row span { display: grid; font-size: 0.9rem; color: var(--muted); }
.bm__row b { color: var(--fg); font-weight: 800; }

.notif { padding: 14px 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.notif__top { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.notif__top b { color: var(--fg); font-weight: 700; } .notif__top time { margin-left: auto; }
.notif__app img { width: 20px; height: 20px; border-radius: 5px; }
.notif__t { margin-top: 6px; font-weight: 800; } .notif__s { font-size: 0.9rem; color: var(--muted); }
.notif__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.notif__acts span { padding: 9px 4px; border-radius: 12px; background: var(--surface-2); text-align: center; font-weight: 700; font-size: 0.85rem; }
.notif__acts span:first-child { background: var(--primary); color: var(--on-primary); }

.fast { display: grid; gap: 10px; }
.fast__card { display: flex; align-items: center; gap: 18px; }
.rg--fast { width: 96px; flex: none; }
.rg--fast > svg:first-child { max-width: none; }
.rg--fast .rg__track { stroke: var(--track); stroke-width: 8; } .rg--fast .rg__val { stroke: var(--fast); stroke-width: 8; }
.rg--fast .rg__ic { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; color: var(--fast); }
.fast__k { font-weight: 700; color: var(--muted); } .fast__v { font-size: 1.1rem; font-weight: 700; }
.fast__v b { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fast__s { color: var(--muted); font-size: 0.9rem; }
.la { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 26px; background: #111; color: #fff; }
.la__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, #858ffa 30%, #111); color: #a9b0ff; }
.la div { display: grid; font-size: 0.85rem; } .la div b { font-weight: 800; } .la div span { opacity: 0.7; }
.la__t { margin-left: auto; font-size: 1.5rem; font-weight: 900; color: #a9b0ff; font-variant-numeric: tabular-nums; }

.wat { display: grid; gap: 12px; }
.wat__say { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-weight: 700; }
.wat__row { display: flex; align-items: center; gap: 12px; }
.wat__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--water); background: color-mix(in srgb, var(--water) 15%, var(--surface)); }
.wat__ic svg { width: 20px; height: 20px; }
.wat__row b { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.wat__row small { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.wat__plus { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--water); color: #fff; font-weight: 800; font-size: 0.85rem; }

.ck__k, .co__k, .rep__h { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.ck__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 70px; margin-top: 14px; }
.ck__scale i { display: block; height: calc(20% + var(--h) * 20%); border-radius: 8px; background: color-mix(in srgb, var(--meds) 22%, var(--surface)); transform-origin: bottom; transition: transform 0.6s var(--ease); transition-delay: calc(0.2s + var(--h) * 0.08s); }
.ck__scale i.is-on { background: var(--meds); }
.ck__names { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.ck__felt { margin-top: 12px; color: var(--muted); font-size: 0.9rem; } .ck__felt b { color: var(--fg); }

.rep { display: grid; gap: 10px; }
.rep__s { color: var(--muted); font-size: 0.85rem; margin: 2px 0 10px; }
.rep__rows { display: grid; gap: 6px; }
.rep__row { display: grid; grid-template-columns: 0.8fr 0.8fr 1.4fr; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.85rem; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); transition-delay: calc(0.2s + var(--i) * 0.12s); }
.rep__row span { color: var(--muted); }
.rep__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rep__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 800; font-size: 0.85rem; }

.co__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.co__chips span { padding: 8px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 0.85rem; }
.co__chips .is-on { background: var(--fg); color: var(--bg); }
.co__a { margin-top: 12px; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); font-weight: 600; transition: opacity 0.6s var(--ease) 0.6s; }
.co__s { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }

.prom { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 24px; border-radius: var(--radius-hero); background: var(--hero-green); color: #fff; }
.prom__shield { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: rgb(255 255 255 / 0.16); }
.prom__shield svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prom__t { padding: 8px 14px; border-radius: 16px; background: #fffcf7; color: #1b1713; font-weight: 800; font-size: 0.9rem; box-shadow: 0 10px 24px rgb(0 0 0 / 0.16); }

.pr { display: grid; gap: 8px; }
.pr__opt { display: grid; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--line); }
.pr__opt b { font-weight: 900; } .pr__opt span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.pr__opt.is-on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

/* Home: compact tiles for the features the page only names. */

/* Their motion: at rest by default, primed only under .motion until in view. */
.motion [data-anim]:not(.in-view) .bm__site { opacity: 0; scale: 0.3; }
.motion .bm__site--next { animation: pulse 2.4s ease-in-out 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--meds) 18%, transparent); } }
.motion [data-anim]:not(.in-view) .ck__scale i { transform: scaleY(0); }
.motion [data-anim]:not(.in-view) .rep__row { opacity: 0; translate: 0 8px; }
.motion [data-anim]:not(.in-view) .co__a { opacity: 0; }
.motion .la { animation: fade 0.7s var(--ease) both; }

/* /features and the search pages: a v3 card beside or under each section. */
.fx-page { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) 0; }
.fx-page__top { max-width: 40rem; }
.fx-page__top h1 { font-size: var(--display); line-height: 0.98; letter-spacing: -0.045em; }
.fx-page__top .lede { margin-top: var(--space-4); font-size: var(--step-1); color: var(--muted); }
.fx-page__cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.fx-page__price { margin-top: var(--space-3); font-weight: 700; }
.fsec { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: center; border-top: 1px solid var(--line); }
.fsec h2 { font-size: var(--title); line-height: 1.04; }
.fsec ul { margin: var(--space-4) 0 0; padding-left: 1.1em; color: var(--muted); }
.fsec li + li { margin-top: var(--space-2); }
.fsec__vis { display: grid; gap: 12px; min-width: 0; max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 900px) {
  .fsec { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: start; }
  .fsec:nth-of-type(even) .fsec__copy { order: 2; }
  /* The copy stays in view while a tall stack of cards scrolls past it. */
  .fsec__copy { position: sticky; top: 104px; }
}
.guide__vis { margin: var(--wd-space-6, 32px) 0; max-width: 460px; display: grid; gap: 12px; }
.guide__vis figcaption { font-size: var(--step--2); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bm__site--next, .la { animation: none !important; } }


/* The hero on a flat green band, like the App Store frames (founder, Oct 31: calm, no glass or glow).
   The shadow carries the band edge to edge while the hero's content keeps its own width. */
.hz { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.hz__copy, .hz .hz__cap { color: var(--band-fg); }
.hz .hz__sub { color: color-mix(in srgb, var(--band-fg) 85%, transparent); }
.hx__accent { color: #a9dcbc; }

/* Cards lean toward a mouse pointer (not on touch, not under Reduce Motion). */
.tilt { transition: transform 0.25s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Privacy as a dark band, with a still shield. */
.px { background: #110f0c; }
.px__shield { background: rgb(127 201 160 / 0.14); color: #7fc9a0; }


/* Copies of the app's own views (founder, Oct 27: every visual copies a real app view).
   System colors as iOS draws them: .pink, .teal, .orange, .purple, light and dark. */
:root { --sys-pink: #ff2d55; --sys-teal: #30b0c7; --sys-orange: #ff9500; --sys-purple: #af52de; --band: #2f7a55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sys-pink: #ff375f; --sys-teal: #40cbe0; --sys-orange: #ff9f0a; --sys-purple: #bf5af2; --band: #1b4a34; } }
:root[data-theme="dark"] { --sys-pink: #ff375f; --sys-teal: #40cbe0; --sys-orange: #ff9f0a; --sys-purple: #bf5af2; --band: #1b4a34; }

/* "Your first week" (WholeWeekCard, setup's last step): eight columns with the day after dimmed, today filled green, the
   shot day ringed purple, the pills, the dots, then the level (WeekLevelGraph) and the legend. */
.fwk { display: grid; gap: 14px; width: min(100%, 460px); }
.fw { padding: 16px; display: grid; gap: 12px; }
.fw__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.fw__cols { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: start; }
.fw__col { display: grid; justify-items: center; gap: 4px; }
.fw__col.is-after { opacity: 0.6; }
.fw__wd { font-size: 0.75rem; color: var(--muted); }
.fw__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 600; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.fw__n.is-today { background: var(--primary); color: var(--on-primary); }
.fw__n.is-shot { color: var(--meds); box-shadow: inset 0 0 0 2.5px var(--meds); }
.fw__chips { display: grid; gap: 2px; justify-items: center; min-height: 18px; }
.fw__chip { padding: 1px 3px; border-radius: 5px; font-size: 0.66rem; font-weight: 700; line-height: 1.25; color: var(--meds); background: color-mix(in srgb, var(--meds) 15%, transparent); }
.fw__chip--shot { background: var(--meds); color: #fff; }
.fw__dots { display: flex; gap: 2px; min-height: 6px; }
.fw__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--protein); }
.fw__dots i:nth-child(2) { background: var(--water); } .fw__dots i:nth-child(3) { background: var(--meal); }
.fw__graph { display: grid; gap: 4px; }
.fw__est { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.phase--fw { margin-top: 14px; }
.phase--fw .lvl { height: 110px; }
.fw__strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 4px; }
.fw__strip .fnb { width: 100%; }
.fw__said { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.fnb--band { width: 14px; height: 8px; background: color-mix(in srgb, var(--noise) 40%, transparent); }
.fw__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--muted); }
.fw__legend span { display: inline-flex; align-items: center; gap: 4px; }
.fw__legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
@media (max-width: 420px) { .fw { padding: 14px 8px; } .fw__n { width: 28px; height: 28px; font-size: 0.9rem; } .fw__chip { font-size: 0.56rem; padding: 1px 2px; } .fw__wd { font-size: 0.68rem; } }
/* The play-in: a day every 0.4 s, each fading in, the graph drawing across with them, then the legend. */
.motion .fw__col { transition: opacity 0.6s ease-out; transition-delay: calc(var(--i) * 0.4s); }
.motion .phase--fw { clip-path: inset(-30px 0 0 0); transition: clip-path 3.2s ease-in-out; }
.motion .fw__legend, .motion .fw__said { transition: opacity 0.4s ease-out 3.2s; }
.motion [data-anim]:not(.in-view) .fw__col, .motion [data-anim]:not(.in-view) .fw__legend, .motion [data-anim]:not(.in-view) .fw__said { opacity: 0; }
.motion [data-anim]:not(.in-view) .phase--fw { clip-path: inset(-30px 100% 0 0); }

/* Today's week strip (TodayView). */
.ts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 14px 8px; }
.ts__day { display: grid; justify-items: center; gap: 6px; }
.ts__day b { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.ts__orb { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.ts__orb--today { color: var(--fg); box-shadow: inset 0 0 0 2.5px var(--band); }
.ts__dots { display: flex; gap: 2px; height: 6px; }
.ts__dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c); }
.ts__dot.is-on { background: var(--c); }
@media (max-width: 420px) { .ts__orb { width: 34px; height: 34px; } .ts__orb svg { width: 17px; height: 17px; } }
.motion .ts__orb { transition: scale 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.3s; transition-delay: calc(var(--i) * 0.07s); }
.motion [data-anim]:not(.in-view) .ts__orb { scale: 0.4; opacity: 0; }

/* The Meds tab's hero and its two tiles (5-meds-list.png). */
.mh { display: grid; gap: 12px; }
.mh__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mh__t { padding: 16px; }
.mh__k { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.mh__k svg { width: 24px; height: 24px; color: var(--meds); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh__v { margin-top: 4px; font-size: 1.15rem; font-weight: 600; }
.mh__v b { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; margin-right: 4px; }
.mh__s { color: var(--muted); }


/* Founder's review, Oct 27. */
/* Hero: the real Today screen in a phone, with "Your first week" in front of it on wide screens. */
.phone { display: none; }
@media (min-width: 900px) {
  .hx__stage { grid-template-columns: 1fr; justify-items: end; padding-block: 0 24px; }
  .phone { display: block; position: relative; width: 310px; margin-right: 0; }
  .hx__stage .fwk { position: absolute; left: -16%; bottom: -12px; width: 430px; zoom: 0.86; z-index: 2; }
  .motion .phone { animation: fade 0.9s var(--ease) 0.2s both; }
}

/* The Meds week strip and the next shots. */
.ms { display: grid; gap: 12px; }
.ms__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ms__day { display: grid; justify-items: center; gap: 6px; }
.ms__day b { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.ms__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 600; font-variant-numeric: tabular-nums; }
.ms__n.is-today { background: var(--band); color: #fff; }
.ms__dots { display: flex; gap: 3px; min-height: 9px; }
.ms__d { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--weigh); }
.ms__d--glp { background: var(--meds); }
.ms__d--s { background: transparent; box-shadow: inset 0 0 0 1.6px var(--weigh); }
.ms__d--glp.ms__d--s { box-shadow: inset 0 0 0 1.6px var(--meds); }
.ms__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: var(--muted); }
.ms__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ms__h { margin-top: 4px; font-weight: 800; }
.ms__next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms__next li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--meds) 8%, var(--surface)); }
.ms__next li:first-child { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--meds) 50%, transparent); }
.ms__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--meds); background: color-mix(in srgb, var(--meds) 16%, var(--surface)); }
.ms__ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ms__site { font-weight: 700; color: var(--meds); font-size: 0.9rem; white-space: nowrap; }
.motion .ms__next li { transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); transition-delay: calc(0.3s + var(--i) * 0.12s); }
.motion [data-anim]:not(.in-view) .ms__next li { opacity: 0; translate: 12px 0; }

/* The paywall's plan cards. */
.pcards { display: grid; gap: 10px; }
.pcard { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 2px transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: box-shadow 0.2s, background 0.2s; }
.pcard.is-on { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); box-shadow: var(--shadow), inset 0 0 0 2px var(--primary); }
.pcard__radio { width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); }
.pcard.is-on .pcard__radio { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: none; }
.pcard__body { display: grid; gap: 4px; }
.pcard__title { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.pcard__badge { padding: 2px 8px; border-radius: 999px; background: var(--band); color: #fff; font-size: 0.75rem; font-weight: 800; }
.pcard__big { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pcard__small { font-size: 0.9rem; color: var(--muted); }

/* The meal plan week. */
.mp { display: grid; gap: 10px; }
.mp__title { font-weight: 800; font-size: 1.1rem; }
.mp__prefs { font-size: 0.8rem; color: var(--muted); }
.mp__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mp__day { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; border-radius: 10px; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.mp__day.is-on { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.mp__wd { font-size: 0.72rem; }
.mp__day.is-on .mp__wd { font-weight: 700; }
.mp__n { font-weight: 700; font-variant-numeric: tabular-nums; }
.mp__shot { font-size: 9px; line-height: 1; color: transparent; }
.mp__shot.is-shot { color: var(--meds); }
.mp__marks { display: flex; gap: 2px; }
.mp__m { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--meal); }
.mp__m--food { background: var(--meal); box-shadow: none; }
.mp__m--eaten { background: var(--move); box-shadow: none; }
.mp__head { font-weight: 800; }
.mp__sum { font-size: 0.85rem; color: var(--muted); }
.mp__list ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.mp__list li { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.mp__slot { font-size: 0.8rem; color: var(--muted); }

/* The weight card's range buttons. */
.seg button { padding: 5px 10px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 800; cursor: pointer; min-height: 30px; }
.seg button.is-on { background: #fff; color: #173f8a; }
.seg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wchart__marks { position: absolute; inset: 0; }
.wchart__shot.is-small { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 2px #fff; }
.wchart__shot.is-small svg { width: 10px; height: 10px; }
.wchart.is-redrawing .wchart__line { transition: none; }

/* The report as a page. */
.rep__doc { display: grid; gap: 6px; }
.rep__title { font-weight: 800; font-size: 1.1rem; }
.rep__range { font-size: 0.8rem; color: var(--muted); }
.rep__sec { margin-top: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 800; }
.rep__line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.rep__line span:first-child { color: var(--muted); }
.rep__line.is-bold span:last-child { font-weight: 800; }
.rep__row { grid-template-columns: 0.8fr 0.9fr 0.7fr 1.3fr !important; }
.rep__foot { margin-top: 8px; font-size: 0.72rem; color: var(--muted); }


/* The tour: a scroll index built from scratch (founder, Oct 27). Each tab takes the screen in turn, its color behind
   it, its name huge behind the phone, and the app's floating tab bar marks the place. Phones get the same stage.
   Without script or with Reduce Motion, the panels stack, each with its own screen. */
.si-sec { padding-block: 0 var(--space-section); }
.si__stage { display: none; }
.si__panel { --tint: var(--hero-green); padding: var(--space-7) var(--gutter); color: #fff; background: var(--tint); display: grid; gap: var(--space-5); justify-items: center; text-align: center; }
.si--meds { --tint: var(--hero-meds); } .si--food { --tint: var(--hero-food); } .si--blue { --tint: var(--hero-blue); }
.si--water { --tint: var(--hero-water); }
.si--coach { --tint: linear-gradient(150deg, #1b1713 0%, #2a3a2f 60%, #2f7a55 100%); }
.si__copy h3 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.si__copy p { margin-top: 10px; max-width: 34ch; font-size: var(--step-1); color: rgb(255 255 255 / 0.88); }
.si__phone { position: relative; width: min(72vw, 280px); }
.si__app { width: 100%; height: 100%; overflow: hidden; padding: 44px 10px 10px; background: var(--bg); color: var(--fg); text-align: left; zoom: 0.72; }
.si__app .hcard, .si__app .fstack { width: auto; }

.motion .si { position: relative; }
.motion .si__stage { display: block; position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff; }
.motion .si__panels { position: relative; margin-top: -100svh; }
.motion .si__panel { min-height: 100svh; background: none; display: flex; align-items: flex-end; justify-content: flex-start; text-align: left; padding: 0 var(--gutter) 15svh; pointer-events: none; }
.motion .si__inline { display: none; }
.motion .si__copy { max-width: 22rem; pointer-events: auto; opacity: 0.25; transition: opacity 0.5s var(--ease); }
.motion .si__panel.is-on .si__copy { opacity: 1; }
.motion .si__copy h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.si__bg { position: absolute; inset: 0; background: var(--hero-green); transition: opacity 0.6s var(--ease); }
.si__bg::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); background: var(--next, none); }
.si__stage[data-at="1"] .si__bg { background: var(--hero-meds); }
.si__stage[data-at="2"] .si__bg { background: var(--hero-food); }
.si__stage[data-at="3"] .si__bg { background: var(--hero-water); }
.si__stage[data-at="4"] .si__bg { background: var(--hero-blue); }
.si__stage[data-at="5"] .si__bg { background: linear-gradient(150deg, #1b1713 0%, #2a3a2f 60%, #2f7a55 100%); }
.si__word { position: absolute; left: 50%; top: 42%; translate: -50% -50%; font-weight: 900; font-size: clamp(5rem, 2rem + 16vw, 16rem); letter-spacing: -0.06em; line-height: 1; white-space: nowrap; color: rgb(255 255 255 / 0.9); opacity: 0; scale: 0.92; filter: blur(6px); transition: opacity 0.6s var(--ease), scale 0.8s var(--ease), filter 0.6s var(--ease); }
.si__stage[data-at="0"] [data-word="0"], .si__stage[data-at="1"] [data-word="1"], .si__stage[data-at="2"] [data-word="2"],
.si__stage[data-at="3"] [data-word="3"], .si__stage[data-at="4"] [data-word="4"], .si__stage[data-at="5"] [data-word="5"] { opacity: 1; scale: 1; filter: none; }
.si__phone--stage { position: absolute; left: 50%; top: 46%; translate: -50% -50%; width: min(60vw, 300px, 33svh); }
.si__screen { position: absolute; overflow: hidden; opacity: 0; translate: 0 24px; transition: opacity 0.5s var(--ease), translate 0.6s var(--ease); }
.si__screen img { border-radius: 0; }
.si__screen .si__app { border-radius: 0; }
.si__stage[data-at="0"] [data-screen="0"], .si__stage[data-at="1"] [data-screen="1"], .si__stage[data-at="2"] [data-screen="2"],
.si__stage[data-at="3"] [data-screen="3"], .si__stage[data-at="4"] [data-screen="4"], .si__stage[data-at="5"] [data-screen="5"] { opacity: 1; translate: none; }
.si__bar { position: absolute; left: 50%; bottom: 4svh; translate: -50% 0; display: flex; align-items: center; gap: 10px; }
.tb { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgb(255 252 247 / 0.92); color: #3b3631; box-shadow: 0 10px 30px rgb(0 0 0 / 0.16); }
.tb__tab { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px; color: #3b3631; transition: background 0.35s var(--ease), color 0.35s var(--ease); }
.tb svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb__tab b { display: none; font-weight: 700; }
.tb__tab.is-on { background: #fffcf7; color: #1b1713; }
.tb__tab.is-on b { display: inline; }
@media (max-width: 599px) {
  .motion .si__panel { padding-bottom: 14svh; }
  .motion .si__copy { max-width: none; }
  .si__word { top: 18%; font-size: clamp(4rem, 1rem + 18vw, 6rem); }
  .si__phone--stage { top: 42%; width: min(40vw, 21svh); }
  .si__app { zoom: 0.56; }
  .tb__tab { padding: 0 10px; }
}
@media (min-width: 900px) {
  .motion .si__panel { align-items: center; padding-bottom: 0; }
  .si__phone--stage { left: 64%; }
  .si__word { left: 62%; }
}

/* Food tiles as the app draws them: four across, the target under the figure when it doesn't fit. */
.fstack .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
.fstack .tile { padding: 12px 10px; }
.fstack .tile { min-width: 0; overflow: hidden; }
.fstack .tile b { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; white-space: normal; font-size: 1.3rem; line-height: 1.15; }
.fstack .tile b small { white-space: nowrap; }
@media (max-width: 420px) { .fstack .tile b { font-size: 1.1rem; } .fstack .tile__k { font-size: 0.75rem; } }


/* The home page around the tour (Oct 27): a full-screen hero, the tour, everything else, pricing, privacy. */
.hz { position: relative; isolation: isolate; overflow: clip; padding: clamp(2rem, 1rem + 4vw, 5rem) 0 0; text-align: center; }
.hz__copy { display: grid; justify-items: center; }
.hz__title { font-size: clamp(3rem, 1rem + 8.5vw, 8.5rem); line-height: 0.92; letter-spacing: -0.055em; font-weight: 900; max-width: 11ch; text-wrap: balance; }
.hz__sub { margin-top: var(--space-4); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); color: var(--muted); }
.hz__cta { margin-top: var(--space-5); }
.hz__price { margin-top: var(--space-3); font-weight: 700; font-size: 0.95rem; }
.hz__stage { position: relative; display: grid; justify-items: center; margin-top: clamp(2rem, 1rem + 3vw, 4rem); padding-bottom: 0; }
.hz__stage .phone { display: block; width: min(68vw, 330px); margin-bottom: -18%; }
.hz__stage .fwk { position: relative; z-index: 2; width: min(100% - 32px, 440px); text-align: left; }
.hz__next { display: none; text-align: left; }
.hz__cap { margin: 10px 0 var(--space-6); font-size: var(--step--2); color: var(--muted); }
@media (min-width: 900px) {
  .hz__stage { display: block; width: min(100% - 2 * var(--gutter), 1100px); margin-inline: auto; height: 640px; }
  .hz__stage .phone { position: absolute; left: 50%; top: 0; translate: -50% 0; width: 330px; margin: 0; }
  .hz__stage .fwk { position: absolute; left: 0; top: 150px; width: 430px; zoom: 0.92; }
  .hz__next { display: block; position: absolute; right: 2%; top: 230px; width: 280px; z-index: 2; rotate: 2deg; }
  .hz__cap { position: absolute; right: 0; bottom: 0; margin: 0; }
  .hz__stage::after { content: ""; position: absolute; inset: auto -50vw 0; height: 140px; background: linear-gradient(transparent, var(--band)); z-index: 3; pointer-events: none; }
}
.motion .hz__stage .phone { animation: rise 1s var(--ease) 0.1s both; }
.motion .hz__next { animation: fade 0.7s var(--ease) 3.3s both; }
@keyframes rise { from { opacity: 0; translate: -50% 60px; } }
@media (max-width: 899px) { @keyframes rise { from { opacity: 0; transform: translateY(60px); } } }

/* Tour backgrounds drawn from each tab's own content. */
.si__art { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none; }
.si__stage[data-at="0"] [data-art="0"], .si__stage[data-at="1"] [data-art="1"], .si__stage[data-at="2"] [data-art="2"],
.si__stage[data-at="3"] [data-art="3"], .si__stage[data-at="4"] [data-art="4"], .si__stage[data-at="5"] [data-art="5"] { opacity: 1; }
.si__art svg { position: absolute; left: -2%; right: -2%; top: 18%; width: 104%; height: 64%; overflow: visible; }
.art__band { fill: rgb(255 255 255 / 0.06); } .art__band.is-alt { fill: rgb(255 255 255 / 0.02); }
.art__fill { fill: rgb(255 255 255 / 0.08); }
.art__line { fill: none; stroke: rgb(255 255 255 / 0.35); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(0.4, 0, 0.2, 1); }
.si__stage:not([data-at="0"]) .si__art--0 .art__line, .si__stage:not([data-at="4"]) .si__art--4 .art__line { stroke-dashoffset: 1; }
.si__art--4 .art__line { stroke-width: 6; }
.art__week { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; display: grid; grid-template-columns: repeat(7, 1fr); padding-inline: 2vw; }
.art__day { display: grid; justify-items: center; gap: 2vh; color: rgb(255 255 255 / 0.22); }
.art__day b { font-size: clamp(1rem, 2vw, 2rem); }
.art__day i { display: grid; place-items: center; width: clamp(56px, 10vw, 150px); aspect-ratio: 1; border-radius: 50%; font-style: normal; font-weight: 900; font-size: clamp(1.4rem, 3vw, 3rem); box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.2); transition: scale 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); transition-delay: calc(var(--i) * 0.07s); }
.art__day--rx i { background: rgb(255 255 255 / 0.1); box-shadow: none; }
.art__day--today i { background: rgb(255 255 255 / 0.22); color: rgb(255 255 255 / 0.5); }
.art__day--shot i { background: rgb(255 255 255 / 0.3); color: #fff; box-shadow: 0 0 60px 10px rgb(255 255 255 / 0.15); }
.art__day--shot svg { width: 45%; height: 45%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.si__stage:not([data-at="1"]) .art__day i { scale: 0.6; }
.art__site { position: absolute; right: 4vw; bottom: 22svh; font-weight: 900; font-size: clamp(1.2rem, 2.5vw, 2.4rem); color: rgb(255 255 255 / 0.3); }
.art__pattern { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4vw; padding: 4vw; rotate: -8deg; }
.art__pattern span { display: grid; place-items: center; color: rgb(255 255 255 / 0.13); }
.art__pattern svg { width: clamp(40px, 7vw, 110px); height: clamp(40px, 7vw, 110px); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.motion .art__pattern { animation: drift-up 40s linear infinite; }
@keyframes drift-up { to { translate: 0 -12%; } }
.art__chips { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2vw; padding: 4vw; rotate: -6deg; }
.art__chips span { padding: 1.2vw 2vw; border-radius: 999px; background: rgb(255 255 255 / 0.08); color: rgb(255 255 255 / 0.3); font-weight: 800; font-size: clamp(1rem, 2.2vw, 2.2rem); white-space: nowrap; }
.si__word { z-index: 1; color: rgb(255 255 255 / 0.95); text-shadow: 0 10px 40px rgb(0 0 0 / 0.15); }
.si__phone--stage { z-index: 2; }
@media (max-width: 599px) { .art__site { bottom: 30svh; } .art__chips span { font-size: 0.9rem; padding: 6px 12px; } }

/* Everything else, pricing and the founder's line. */
.evx, .pz { padding-block: var(--space-section); }
.evx__title { font-size: clamp(2.4rem, 1.2rem + 5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 900; text-align: center; }
.flist { display: grid; gap: var(--space-6); margin-top: var(--space-7); align-items: start; }
.flist__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 60ch; font-size: var(--step-0); color: var(--muted); }
.flist__list b { color: var(--fg); }
.flist .notif { width: min(100%, 360px); justify-self: center; }
@media (min-width: 900px) { .flist { grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(3rem, 2rem + 4vw, 6rem); } }
.evx__more { margin-top: var(--space-5); text-align: center; font-weight: 700; }
.pz__inner { display: grid; justify-items: center; gap: var(--space-6); }
.pz .pcards { width: min(100%, 980px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pz .pcard { height: 100%; }
.pz .caption { text-align: center; max-width: 52ch; }
.fq { padding-block: var(--space-section); }
.fq__inner { max-width: 54rem; text-align: center; }
.fq__note { margin: 0; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.fq__name { margin-top: var(--space-4); color: var(--muted); font-weight: 700; }

/* The Progress weight hero (9-progress-weight.png). */
.wt { display: grid; gap: 12px; }
.wt__btn { flex-direction: row; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.wt__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.wt__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wt__from { margin-top: 2px; font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.wt .wchart__legend { display: flex; align-items: center; gap: 8px; }
.wt .lg--shot { width: 26px; height: 26px; background: #fff; color: var(--meds); }
.wt .lg--shot svg { width: 14px; height: 14px; }
.wt__seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; padding: 0; background: none; }
.wt__seg button { background: rgb(255 255 255 / 0.16); min-height: 40px; font-size: 1rem; }
.wt .mh__k svg { color: var(--muted); }

/* Hero sized so the app shows in the first view; tour art kept off the copy. */
.hz__title { font-size: clamp(3rem, 1rem + 7vw, 7rem); }
@media (min-width: 900px) {
  .hz { padding-top: 2.5rem; }
  .si__art { left: 34%; }
  .si__art svg { left: 0; right: 0; width: 100%; }
  .si__art--1 .art__week { padding-inline: 0 2vw; }
  .art__day i { width: clamp(56px, 7vw, 110px); }
}
@media (max-width: 899px) { .si__art > * { opacity: 0.6; } .si__art svg { top: 26%; height: 44%; } .art__week { top: 62%; } .art__site { display: none; } }

/* Wide screens: the headline on the left, the app filling the right (founder, Oct 27). */
@media (min-width: 1100px) {
  .hz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; max-width: 1360px; margin-inline: auto; padding: 1.5rem var(--gutter) 0; text-align: left; min-height: calc(100svh - 80px); }
  .hz__copy { justify-items: start; padding: 0; }
  .hz__title { font-size: clamp(4rem, 1rem + 4.6vw, 6.4rem); }
  .hz__stage { width: 100%; height: 660px; margin: 0; }
  .hz__stage .phone { left: 58%; width: 310px; }
  .hz__stage .fwk { left: -2%; top: 300px; zoom: 0.84; }
  .hz__next { right: -2%; top: 120px; width: 250px; }
  .hz__stage::after { display: none; }
}

:root { --hero-water: linear-gradient(150deg, #04506a 0%, #0a7690 55%, #1590ad 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-water: linear-gradient(150deg, #02303f 0%, #064d5e 60%, #0a5f73 100%); } }
:root[data-theme="dark"] { --hero-water: linear-gradient(150deg, #02303f 0%, #064d5e 60%, #0a5f73 100%); }

/* The Water screen (WaterDayView). */
.wd { --fill: 0.2; display: grid; gap: 10px; }
.wd__glass { position: relative; width: 150px; height: 190px; }
.wd__svg { width: 100%; height: 100%; overflow: visible; }
.wd__bg { fill: color-mix(in srgb, var(--water) 10%, transparent); }
.wd__rim { fill: none; stroke: color-mix(in srgb, var(--water) 55%, transparent); stroke-width: 2.5; stroke-linejoin: round; }
.wd__level { transform: translateY(calc(184px - var(--fill) * 178px)); transition: transform 0.9s cubic-bezier(0.3, 1.3, 0.5, 1); }
.motion .wd__wave { animation: wave 3s linear infinite; }
@keyframes wave { to { transform: translateX(150px); } }
.wd__amt { position: absolute; inset: 30px 0 auto; display: grid; justify-items: center; }
.wd__amt b { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.wd__amt span { font-size: 0.8rem; color: var(--muted); }
.wd__cups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.wd__cup { display: grid; justify-items: center; gap: 2px; padding: 10px 2px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.wd__cup svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.wd__cup:active { scale: 0.96; }
.wd__h { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.wd__bars { position: relative; display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 3px; height: 70px; margin-top: 8px; }
.wd__bars i { height: calc(var(--h) * 0.8%); border-radius: 3px; background: color-mix(in srgb, var(--water) 40%, transparent); transform-origin: bottom; transition: transform 0.7s var(--ease); }
.wd__bars i.is-met { background: var(--water); }
.wd__goal { position: absolute; left: 0; right: 0; bottom: 68%; border-top: 1.5px dashed var(--primary); }
.motion [data-anim]:not(.in-view) .wd__bars i { transform: scaleY(0); }
.art__waves { top: 40% !important; height: 60% !important; }
.art__wv { fill: rgb(255 255 255 / 0.1); }
.art__wv--2 { fill: rgb(255 255 255 / 0.07); }
.motion .art__wv { animation: wave-big 9s linear infinite; }
.motion .art__wv--2 { animation-duration: 13s; animation-direction: reverse; }
@keyframes wave-big { to { transform: translateX(300px); } }
.art__say { position: absolute; right: 6vw; top: 22%; display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 30px 30px 30px 8px; background: rgb(255 255 255 / 0.12); color: rgb(255 255 255 / 0.5); font-weight: 800; font-size: clamp(1rem, 2vw, 1.8rem); }
.art__say svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 899px) { .art__say { display: none; } }
@media (prefers-reduced-motion: reduce) { .wd__wave, .art__wv { animation: none !important; } }

/* Hero, no overlap: phone and cards side by side on wide screens, stacked below. */
@media (min-width: 1100px) and (max-width: 1259px) { .hz { display: block; text-align: center; } .hz__copy { justify-items: center; } }
@media (min-width: 1100px) {
  .hz__stage { height: auto; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
  .hz__stage .phone { position: relative; inset: auto; translate: none; width: 290px; grid-row: 1 / 3; }
  .hz__stage .fwk, .hz__next { position: static; zoom: 1; width: auto; rotate: 0deg; }
  .hz__next { order: -1; grid-column: 2; }
  .hz__stage .fwk { grid-column: 2; }
  .hz__cap { position: static; grid-column: 1 / -1; text-align: right; }
  .motion .hz__stage .phone { animation: rise-flat 1s var(--ease) 0.1s both; }
}
@keyframes rise-flat { from { opacity: 0; transform: translateY(60px); } }
@media (min-width: 900px) and (max-width: 1099px), (min-width: 1100px) and (max-width: 1259px) {
  .hz__stage { display: grid; grid-template-columns: 300px 400px; justify-content: center; gap: 28px; height: auto; width: auto; }
  .hz__stage .phone { position: relative; inset: auto; translate: none; grid-row: 1 / 3; }
  .hz__stage .fwk, .hz__next { position: static; zoom: 1; width: auto; rotate: 0deg; display: grid; }
  .hz__next { display: block; }
  .hz__cap { position: static; grid-column: 1 / -1; text-align: right; }
  .hz__stage::after { display: none; }
  .motion .hz__stage .phone { animation: rise-flat 1s var(--ease) 0.1s both; }
}

/* Water, matched to 13-water-top.png. */
.wd { gap: 8px; }
.wd__title { text-align: center; font-weight: 700; font-size: 1.05rem; }
.wd__glass { position: relative; width: 170px; height: 215px; margin: 10px auto 6px; }
.wd__bg { fill: color-mix(in srgb, var(--water) 13%, var(--surface)); }
.wd__rim { stroke: color-mix(in srgb, var(--water) 60%, transparent); stroke-width: 3; }
.wd__wave { fill: #0aa6c9; }
.wd__level { transform: translateY(calc(186px - var(--fill) * 180px)); }
.wd__amt { inset: 44% 0 auto; translate: 0 -50%; }
.wd__amt b { font-size: 1.9rem; }
.wd__hd { display: flex; justify-content: space-between; margin: 8px 4px 0; font-weight: 700; color: var(--muted); font-size: 0.92rem; }
.wd__edit { color: var(--primary); }
.wd__sizes { padding: 12px; }
.wd .wd__cups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wd .wd__cup { padding: 10px 4px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 16%, var(--surface)); font-size: 0.82rem; }
.wd .wd__cup svg { fill: currentColor; stroke: none; }

/* Snap your plate: the photo, each plate lifting out in turn, then On the plate (MealPhotoView). The end state is the
   resting layout; .is-play (v3.js, when the Food panel arrives) runs the sequence into it. */
.cut { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); }
.cut__canvas { position: absolute; left: 0; top: 0; width: 300px; height: 570px; transform-origin: 0 0; scale: var(--cs, 1); color: var(--fg); text-align: left; }
.cut__nav { position: absolute; left: 26px; right: 26px; top: 16px; display: grid; grid-template-columns: 1fr auto 1fr; font-size: 13px; }
.cut__nav span:first-child { color: var(--primary); } .cut__nav b { font-weight: 700; }
.cut__photo { position: absolute; left: 25px; top: 40px; width: 250px; height: 333px; border-radius: 10px; object-fit: cover; }
.cut__piece { position: absolute; height: auto; transform-origin: 0 0; transform: translate(var(--tx), var(--ty)) scale(var(--ts)); filter: drop-shadow(0 5px 6px rgb(0 0 0 / 0.25)); }
.cut__check { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 0 0 2px #fff; }
.cut__check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cut__hd { position: absolute; left: 14px; top: 384px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cut__row { position: absolute; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 28px; border-radius: 8px; background: var(--surface); color: var(--primary); font-size: 13px; font-weight: 600; }
.cut__row svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cut__row--1 { top: 478px; } .cut__row--2 { top: 510px; }
.cut__foot { position: absolute; left: 14px; right: 14px; top: 544px; font-size: 9.5px; color: var(--muted); }
.si__copy .si__credit { margin-top: 12px; font-size: 0.72rem; line-height: 1.4; color: rgb(255 255 255 / 0.7); max-width: 40ch; }

/* Slower, one at a time (founder, Oct 28): each plate lifts out, holds, then the cut-outs move down to
   On the plate one by one, each check appearing as its cut-out lands. About 9 seconds in all. */
.motion .cut.is-play .cut__photo { animation: cut-dim 9s ease both; }
.motion .cut.is-play .cut__piece { animation: cut-lift 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both, cut-settle 1.1s cubic-bezier(0.5, 0, 0.2, 1) forwards;
  animation-delay: calc(0.8s + var(--i) * 0.9s), calc(4.8s + var(--i) * 0.9s); }
.motion .cut.is-play .cut__check { animation: fade 0.4s var(--ease) both; animation-delay: calc(5.8s + var(--i) * 0.9s); }
.motion .cut.is-play .cut__hd { animation: fade 0.5s var(--ease) 4.6s both; }
.motion .cut.is-play :is(.cut__row, .cut__foot) { animation: fade 0.5s var(--ease) 8.6s both; }
@keyframes cut-dim { 0%, 8% { opacity: 1; } 14%, 90% { opacity: 0.4; } 100% { opacity: 1; } }
@keyframes cut-lift {
  0% { opacity: 0; transform: none; scale: 1; filter: none; }
  1% { opacity: 1; }
  100% { opacity: 1; transform: none; scale: 1.07; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 10px 14px rgb(0 0 0 / 0.4)); }
}
@keyframes cut-settle {
  from { transform: none; scale: 1.07; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 10px 14px rgb(0 0 0 / 0.4)); }
  to { transform: translate(var(--tx), var(--ty)) scale(var(--ts)); scale: 1; filter: drop-shadow(0 5px 6px rgb(0 0 0 / 0.25)); }
}
@media (prefers-reduced-motion: reduce) { .cut * { animation: none !important; } }

/* The phone's screenshot rule must not stretch the cut-out's own images. */
.cut img.cut__photo { width: 250px; height: 333px; object-fit: cover; border-radius: 10px; }
.cut img.cut__piece { height: auto; object-fit: initial; border-radius: 0; }
.si__screen .cut { position: absolute; inset: 0; }

.si__copy .si__credit a { color: inherit; }

@media (max-width: 599px) { .motion .si__panel { padding-bottom: 12svh; } .si__copy .si__credit { font-size: 0.66rem; } }

/* The Coach screen (14-coach-top.png). */
.fitbox { position: absolute; inset: 0; overflow: hidden; }
.cs { position: absolute; left: 0; top: 0; width: 300px; height: calc(100% / var(--cs, 1)); transform-origin: 0 0; scale: var(--cs, 1); display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 12px; text-align: left; font-size: 12.5px; color: #1b1713;
  background: radial-gradient(80% 50% at 0% 0%, #dfe9e1, transparent 70%), radial-gradient(70% 50% at 100% 60%, #f6e3d8, transparent 70%), #f6f1e9; }
.cs__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cs__nav b { font-size: 14px; font-weight: 700; }
.cs__pill { justify-self: start; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.7); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); font-size: 12px; }
.cs__dots { justify-self: end; padding: 5px 9px; letter-spacing: -1px; }
.cs__date { text-align: center; font-size: 11px; font-weight: 600; color: #6b6259; }
.cs__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2f7a55; color: #fff; }
.cs__av svg, .cs__qh svg, .cs__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs__bubble { padding: 10px 12px; border-radius: 16px; background: #fffcf7; font-size: 13.5px; line-height: 1.35; max-width: 88%; }
.cs__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs__chips span { padding: 6px 11px; border-radius: 999px; background: #dfe7df; font-size: 12px; }
.cs__disc { font-size: 10px; color: #6b6259; }
.cs__qh { display: flex; align-items: center; gap: 8px; color: #2f7a55; font-weight: 600; font-size: 13px; margin-top: 4px; }
.cs__qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.cs__qs li { padding: 7px 10px; border-radius: 10px; background: rgb(255 255 255 / 0.75); font-size: 12px; }
.cs__composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; border-radius: 18px; background: #fffcf7; color: #a89f93; font-size: 12.5px; }
.cs__send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2f7a55; color: #fff; }
.motion .si__stage[data-at="5"] .cs__qs li { animation: fade 0.45s var(--ease) both; animation-delay: calc(0.5s + var(--i) * 0.12s); }
.motion .si__stage[data-at="5"] .cs__bubble { animation: fade 0.5s var(--ease) 0.2s both; }

/* The panel's heading is the tab's name, big, beside the phone (never behind it). Oct 28. */
.motion .si__copy { max-width: min(26rem, 40vw); }
.motion .si__copy h3 { font-size: clamp(3.4rem, 1rem + 6vw, 7.5rem); line-height: 0.92; letter-spacing: -0.05em; }
.motion .si__copy p:not(.si__credit) { margin-top: 14px; }
@media (max-width: 899px) {
  .motion .si__copy { max-width: none; }
  .motion .si__copy h3 { font-size: clamp(2.6rem, 1.5rem + 6vw, 4rem); }
  .si__phone--stage { top: 38%; width: min(48vw, 24svh); }
}
@media (max-width: 599px) { .si__phone--stage { top: 36%; width: min(40vw, 20svh); } }

/* Calls to action after the tour and in pricing. */
.pz__inner > .store-cta { margin-top: -8px; }

/* Tour copy: the tab's name, its one-line title, then two short points (the live site's lines). */
.si__title { margin-top: 10px; font-weight: 800; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); color: #fff; letter-spacing: -0.01em; }
.si__list { margin: 10px 0 0; padding-left: 1.1em; color: rgb(255 255 255 / 0.88); font-size: var(--step-1); }
.si__list li + li { margin-top: 6px; }
.motion .si__copy .si__title { color: #fff; }

.hz__sub { max-width: 40ch; }
@media (max-width: 1099px) { .hz__sub { margin-inline: auto; } }
/* Report, right after the tour. */
.rp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: center; margin-top: var(--space-7); }
.rp__k { font-weight: 800; color: var(--primary); font-size: 0.95rem; }
.rp__h { margin-top: 6px; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 900; }
.rp__copy > p:last-child { margin-top: var(--space-4); color: var(--muted); font-size: var(--step-1); max-width: 44ch; }
.rp__vis { max-width: 480px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .rp { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 2rem + 4vw, 6rem); } }
@media (max-width: 599px) { .motion .si__copy h3 { font-size: 2.6rem; } .si__list { font-size: 1rem; } .si__title { font-size: 1.1rem; } .motion .si__panel { padding-bottom: 13svh; } }

/* What we kept hearing, and what we built: the customer's words, then the answer, leading into the tiles. */
.hd { padding-block: var(--space-section) 0; }
.hd__note { margin-top: var(--space-3); text-align: center; color: var(--muted); }
.hd__list { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.hd__i { display: grid; align-content: start; gap: 14px; padding: 22px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.hd__q { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.hd__a { color: var(--muted); }
.hd__k { display: block; margin-bottom: 4px; font-size: 0.9rem; font-weight: 800; color: var(--primary); }
.hd + .evx { padding-top: var(--space-7); }

/* Weight chart: the line leads, shots are small marks on it (founder, Oct 28: the markers hid the line). */
.wt .wchart { height: 170px; }
.wt .wchart__line { stroke-width: 3.5; }
.wt .wchart__shot { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 2px #fff; }
.wt .wchart__shot svg { width: 10px; height: 10px; }
.wt .wchart__shot.is-small { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; box-shadow: 0 0 0 1.5px #fff; }
.wt .wchart__shot.is-small svg { display: none; }
.wt .wchart__dose { font-size: 0.65rem; padding: 1px 6px; bottom: calc(100% + 5px); }
.wt .wchart__shot.is-small { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #e4d8ff; box-shadow: 0 0 0 2px #6a43bf; }

.fsec__vis .fx-phone { width: min(80%, 300px); justify-self: center; }
.fsec__vis .wd { position: relative; padding: 16px; border-radius: var(--radius-xl); background: var(--bg); box-shadow: var(--shadow); }
.wd__glass { overflow: hidden; }

/* Food noise marks, copied from the app (FoodNoiseStrip.swift): solid pale to deep yellow by level, diagonal stripes
   from loud up so the level doesn't rest on color, a dashed outline where the person said louder, a faint track when
   nothing was logged. WD.Tint.noise, mixed into near-white so the shade holds on any card. */
:root { --noise: #f2c230; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --noise: #f5d15c; } }
:root[data-theme="dark"] { --noise: #f5d15c; }
.fnb { display: block; width: 22px; max-width: 100%; height: 6px; border-radius: 2px; box-sizing: border-box; }
.fnb--0 { background: color-mix(in srgb, var(--noise) 22%, #f7f7f7); } .fnb--1 { background: color-mix(in srgb, var(--noise) 40%, #f7f7f7); }
.fnb--2 { background: color-mix(in srgb, var(--noise) 58%, #f7f7f7); }
.fnb--3, .fnb--4 { background: repeating-linear-gradient(135deg, transparent 0 2.5px, rgb(0 0 0 / 0.35) 2.5px 3.5px), color-mix(in srgb, var(--noise) 80%, #f7f7f7); }
.fnb--4 { background: repeating-linear-gradient(135deg, transparent 0 2.5px, rgb(0 0 0 / 0.35) 2.5px 3.5px), var(--noise); }
.fnb--said { border: 1.5px dashed var(--noise); }
.fnb--none { background: rgb(128 128 128 / 0.12); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.25); }
.fns { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; width: 100%; }
.fns__d { display: grid; justify-items: center; gap: 4px; }
.fns__d b { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.fns .fnb { width: 100%; }
.fnk { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 0.74rem; font-weight: 600; }
.fnk__i { display: inline-flex; align-items: center; gap: 6px; }
.fnk__s { display: inline-flex; gap: 1px; }
.fnk__s .fnb { width: 8px; }
.fnk .fnk__i > .fnb { width: 14px; }
.phase__days > span { display: grid; justify-items: center; gap: 3px; }
.phase__days .fnb { width: min(22px, 80%); }
.fwt__fn { width: 100%; align-items: center; }
.ck .fns { margin-top: 12px; }
.ck .fnk { color: var(--muted); }
.fwt__fn { display: flex; width: 100%; align-items: center; }

.sup { display: grid; gap: 10px; }
.sup__row { display: flex; align-items: center; gap: 12px; padding: 14px; }
.sup__row div { display: grid; flex: 1; min-width: 0; font-size: 0.85rem; color: var(--muted); }
.sup__row b { font-size: 1rem; color: var(--fg); font-weight: 700; }
.sup__ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--meds) 14%, transparent); color: var(--meds); }
.sup__ic--rx { background: color-mix(in srgb, var(--water) 14%, transparent); color: var(--water); }
.sup__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sup__log { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.85rem; font-weight: 700; }
.mp__acts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.mp__acts span { padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.mp__acts .is-on { background: var(--primary); color: #fff; }
.tb__tab.is-on { background: var(--primary); color: #fff; }

/* Build 4 (v1-freeze-12, Nov 2): Today, Meds and Progress are plain light cards; color stays in charts, rings and bars.
   Each block names the view it copies. */
:where(.card, .wkc, .ms, .sup, .bm, .fstack, .mp) svg:where(:has(> use)) { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Today's medication card (WeekPhaseCard) and the rings card under it. */
.wkc { display: grid; gap: 12px; }
.wk { padding: 18px 18px 8px; }
.wk__name { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font-weight: 600; }
.wk__name svg, .wk__next svg:last-child { width: 14px; height: 14px; color: var(--muted); }
.wk__day { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.wk__day p { display: grid; }
.wk__day b { font-weight: 600; }
.wk__day p > span { font-size: 0.8rem; color: var(--muted); }
.wk__day > svg { width: 16px; height: 16px; color: var(--primary); }
.wk__next { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.wk__next > svg:first-child { width: 17px; height: 17px; }
.wk__next span { flex: 1; }
.rgs--plain { margin-top: 0; padding: 16px 10px; }
.rgs--plain .rg__track { stroke: var(--track); }
.rgs--plain .rg__val { stroke: var(--primary); }
.rgs--plain .rg__n small { color: var(--fg); opacity: 0.85; }

/* The shared week strip (WDWeekStrip): Today's with every dot, the Meds tab's with the meds dot. */
.ts__orb--done { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.ts__orb--done svg { width: 17px; height: 17px; stroke-width: 3; }
.ts__orb--today { box-shadow: inset 0 0 0 2.5px var(--primary); }
.ts__dot { width: 7px; height: 7px; }
.ts__dots { height: 7px; }

/* The medication's page (MedicationHero, then the chart-only card). */
.mh__top { display: grid; justify-items: center; gap: 14px; padding: 10px 4px 0; }
.rg--day { width: 168px; height: 168px; place-items: center; }
.rg--day > svg:first-child { position: absolute; inset: 0; max-width: none; height: 100%; }
.rg--day .rg__track { stroke: color-mix(in srgb, var(--meds) 20%, transparent); stroke-width: 7; }
.rg--day .rg__val { stroke: var(--meds); stroke-width: 7; }
.rg--day .rg__n { position: static; max-width: none; aspect-ratio: auto; justify-items: center; }
.rg--day .rg__n b { font-size: 1.5rem; font-weight: 800; }
.rg--day .rg__n small { color: var(--muted); font-size: 0.74rem; font-weight: 500; opacity: 1; }
.mh__next { display: flex; gap: 24px; text-align: center; }
.mh__next span { display: block; color: var(--muted); font-size: 0.8rem; }
.mh__next b { font-weight: 700; }
.mh__log { justify-self: stretch; padding: 12px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; text-align: center; }
.mh__lvl { padding: 14px 16px; }
.mh__lvl .mh__k { font-weight: 500; font-size: 0.85rem; }
.mh__lvl .mh__k svg.mh__info { width: 16px; height: 16px; color: var(--primary); }
.mh__seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; padding: 3px; border-radius: 10px; background: var(--surface-2); font-size: 0.8rem; text-align: center; }
.mh__seg span { padding: 5px 2px; border-radius: 8px; white-space: nowrap; }
.mh__seg .is-on { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); font-weight: 600; }

/* The top of the Meds tab (MedsHeroView without the chart). */
.mtop { padding: 16px; }
.mtop > * + * { margin-top: 8px; }
.mtop__t { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.mtop__t b { font-weight: 700; }
.mtop__t svg { width: 15px; height: 15px; stroke-width: 2.6; }
.mtop__chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--meds) 14%, transparent); font-size: 0.8rem; font-weight: 700; }
.mtop__chip svg { width: 14px; height: 14px; }
.mtop__rows { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.mtop__rows p { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.mtop__rows p span:last-child { display: grid; text-align: right; }
.mtop__rows b { color: var(--fg); font-weight: 600; }

/* The Meds tab's week and This week (WDWeekStrip, MedsWeekSection). */
.ms { display: grid; gap: 8px; }
.ms .ts { padding: 12px 6px; }
.ms__h { margin: 6px 0 0 6px; font-weight: 700; color: var(--muted); }
.ms__list { display: grid; padding: 4px 16px; }
.ms__row { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.ms__row + .ms__row { border-top: 1px solid var(--line); }
.ms__row span { display: grid; flex: 1; font-size: 0.8rem; color: var(--muted); }
.ms__row b { font-size: 1rem; font-weight: 500; color: var(--fg); }
.ms__row--more { color: var(--primary); }
.ms__row--more span { font-size: 1rem; color: var(--fg); }
.ms__row--more svg { width: 20px; height: 20px; }
.ms__row--more svg:last-child { width: 14px; height: 14px; color: var(--muted); }

/* The Meds list (MedsView): the GLP-1 and Prescriptions groups. */
.sup__h { display: flex; align-items: center; gap: 8px; margin: 4px 0 -2px 4px; font-weight: 700; color: var(--meds); }
.sup__h svg { width: 20px; height: 20px; }
.sup__h--rx, .sup__ic--rx { color: var(--weigh); }
.sup__ic--rx { background: color-mix(in srgb, var(--weigh) 14%, transparent); }
.sup .sup__chev { flex: none; width: 14px; height: 14px; color: var(--muted); }

/* Log shot's site and how it felt (BodySiteMap, DoseLogSheet). */
.bm { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.bm__h { margin-left: 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.bm__card { padding: 14px; }
.bm__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; justify-items: center; }
.bm__fig { display: grid; justify-items: center; gap: 4px; width: 100%; max-width: 150px; aspect-ratio: auto; }
.bm__t { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.bm__body { position: relative; width: 100%; aspect-ratio: 1 / 2; }
.bm__body svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bm__body path { fill: color-mix(in srgb, var(--fg) 9%, transparent); stroke: none; }
.bm__z { position: absolute; display: grid; place-content: center; justify-items: center; border-radius: 6px; font-size: 0.72rem; font-weight: 700; line-height: 1;
  background: color-mix(in srgb, var(--meds) calc(var(--a) * 100%), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--meds) 35%, transparent);
  transition: scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s; }
.bm__z i { font-style: normal; }
.bm__z b { font-size: 8px; }
.bm__z--area { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.bm__z--on { background: var(--primary); color: var(--on-primary); }
.bm__z.is-next { box-shadow: inset 0 0 0 2px var(--primary); }
.bm__sides { display: flex; justify-content: space-between; width: 100%; font-size: 0.68rem; color: var(--muted); }
.bm__other { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.bm__other b { font-weight: 500; color: color-mix(in srgb, var(--primary) 45%, transparent); }
.bm__foot { margin: -2px 0 6px 4px; font-size: 0.85rem; font-weight: 600; }
.bm__feel { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.bm__feel span { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 8%, transparent); font-size: 0.88rem; }
.bm__feel .is-on { background: var(--primary); color: var(--on-primary); }
.motion [data-anim]:not(.in-view) .bm__z { opacity: 0; scale: 0.4; }
.motion .bm__z.is-next { animation: pulse 2.4s ease-in-out 1.2s infinite; }
@media (prefers-reduced-motion: reduce) { .bm__z.is-next { animation: none !important; } }

/* The fast in progress (FastRing) and its Lock Screen activity (FastLockScreen). */
.rg--fast .rg__n { inset: 0; max-width: none; }
.rg--fast .rg__n b { font-size: 0.82rem; font-weight: 700; }
.rg--fast .rg__n small { color: var(--muted); font-size: 0.66rem; opacity: 1; }
.fast__k { display: flex; align-items: center; gap: 6px; color: var(--fg); }
.fast__goal { padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--fast) 14%, transparent); color: var(--fast); font-size: 0.75rem; font-weight: 600; }
.fast__s { margin-top: 4px; }
.fast__s--sm { font-size: 0.8rem; }
.la { display: grid; gap: 8px; padding: 14px 16px; border-radius: 22px; background: #1c1c1e; color: #fff; }
.la .la__top, .la .la__bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: inherit; }
.la__k { display: inline-flex; align-items: center; gap: 6px; color: #a9b0ff; font-weight: 600; font-size: 0.9rem; }
.la__k svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.la .la__t { margin: 0; font-size: 1.15rem; font-weight: 600; color: #fff; }
.la__bar { display: block; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.la__bar i { display: block; height: 100%; background: #a9b0ff; }
.la__bot span:first-child { font-size: 0.78rem; opacity: 0.7; }
.la__end { padding: 4px 12px; border-radius: 999px; background: rgb(169 176 255 / 0.2); color: #a9b0ff; font-size: 0.78rem; font-weight: 600; }

/* Water with Siri. */
.wat__reply { justify-self: end; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: color-mix(in srgb, var(--water) 14%, var(--surface)); font-weight: 600; }

/* Food's top bar. */
.fbar { display: flex; justify-content: flex-end; }
.fbar__btn { padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }

/* The meal plan sheet (PlanViews). */
.mp__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mp__title svg { flex: none; width: 22px; height: 22px; color: var(--primary); }
.mp__shot.is-shot { color: var(--meds); }
.mp__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.mp__head { color: var(--muted); }
.mp__room { font-size: 0.8rem; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.mp__add { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.mp__list li { gap: 2px; }
.mp__list li b { font-weight: 500; }
.mp__water { display: flex !important; align-items: center; gap: 10px; }
.mp__water svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.mp__water span { margin-left: auto; color: var(--muted); }

/* Progress's weight card (ProgressWeightHeroView): plain, the line in the app's green, shots in a lane. */
.wcard { padding: 18px; }
.wt__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wt__k { font-weight: 600; }
.wt__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 0.88rem; font-weight: 600; }
.wt__btn svg { width: 15px; height: 15px; stroke-width: 2.6; }
.wt__big { margin-top: 2px; line-height: 1; }
.wt__big b { font-size: clamp(2.4rem, 2rem + 1.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wt__big small { margin-left: 4px; font-size: 1.3rem; font-weight: 700; opacity: 0.8; }
.wt__day { margin-top: 6px; text-align: right; font-size: 0.9rem; font-weight: 600; opacity: 0.85; }
.wt .wchart { height: auto; margin: 10px 0 0; }
.wchart__plot { position: relative; height: 170px; }
.wchart__grid line { stroke: color-mix(in srgb, var(--fg) 15%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wt .wchart__line { stroke: var(--primary); stroke-width: 2.5; }
.wchart__y { position: absolute; left: 4px; translate: 0 calc(-100% - 2px); font-size: 0.7rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.wt .wchart__dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 50%, transparent); }
.wchart__lane { position: absolute; left: 0; right: 0; bottom: 4px; height: 0; }
.wt .wchart__shot { top: -9px; width: 18px; height: 18px; margin: 0 0 0 -9px; background: var(--meds); box-shadow: none; }
.wt .wchart__shot svg { width: 10px; height: 10px; }
.wt .wchart__dose { bottom: calc(100% + 4px); padding: 0; background: none; color: var(--fg); font-size: 0.72rem; font-weight: 600; }
.wchart__x { position: relative; height: 18px; margin-top: 6px; font-size: 0.75rem; color: var(--muted); }
.wchart__x span { position: absolute; translate: -50% 0; white-space: nowrap; }
.wt__legend { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.8rem; font-weight: 600; }
.wt__lg { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--meds); box-shadow: 0 0 0 1px var(--line); }
.wt__lg svg { width: 13px; height: 13px; }
.wt .wt__seg { margin-top: 12px; }
.wt .wt__seg button { min-height: 40px; background: var(--surface-2); color: var(--fg); font-size: 0.95rem; font-weight: 700; }
.wt .wt__seg button.is-on { background: var(--primary); color: var(--on-primary); }
.wt .wt__seg button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wt .mh__k svg { width: 20px; height: 20px; color: var(--muted); }
.motion .wt .wchart__dot { transition: opacity 0.4s var(--ease) 1.2s; }

/* The report as a page (PrescriberReportView). */
.rep__sub { margin-top: 4px; font-size: 0.85rem; font-weight: 700; }
.rep__sec--sub { border: 0; padding: 0; font-size: 0.85rem; color: var(--muted); }
.rep .rep__row { display: grid; grid-template-columns: 1fr !important; gap: 0; padding: 0; background: none; font-size: 0.85rem; }
.rep__row b { font-weight: 700; }
.rep__row span { color: var(--fg); }
.rep__none { font-size: 0.85rem; color: var(--muted); }

/* The Water sheet (WaterDayView). */
.wd__title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wd__title b { font-weight: 700; }
.wd__done { justify-self: end; padding: 4px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 600; }
.wd__row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.wd__row > span:first-child { flex: 1; }
.wd__ph { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.wd__add { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); }
.wd__add svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--primary); color: var(--on-primary); stroke-width: 3; }
.wd__pill { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); }
.wd__today { padding: 12px 16px; }
.wd__today p { display: flex; justify-content: space-between; align-items: baseline; }
.wd__today small { font-size: 0.78rem; color: var(--muted); }

/* The Coach sheet before the first question (CoachView.welcome). */
.cs__hi { font-size: 16px; font-weight: 600; color: #6b6259; margin-top: 6px; }
.cs__ask { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.cs__note { font-size: 11px; color: #6b6259; }
.cs__qs li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fffcf7; font-size: 12.5px; font-weight: 500; }
.cs__qi { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e3ede5; color: #2f7a55; }
.cs__qi svg, .cs__tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs__tools { display: inline-flex; align-items: center; gap: 10px; color: #6b6259; }

/* Food tiles under the top bar. */
.fstack .fbar { margin-bottom: -2px; }

/* The floating tab bar (WDTabBar): every tab with its name under its icon. */
.tb { gap: 2px; padding: 5px; }
.tb__tab { flex-direction: column; justify-content: center; gap: 2px; height: 50px; min-width: 64px; padding: 0 10px; }
.tb__tab b, .tb__tab.is-on b { display: block; font-size: 0.68rem; font-weight: 600; }
.tb__tab.is-on { background: var(--primary); color: var(--on-primary); }
@media (max-width: 599px) { .tb__tab { min-width: 0; padding: 0 9px; } }
.mp .mp__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mp .mp__acts span { padding: 6px 4px; text-align: center; white-space: nowrap; font-size: 0.8rem; }
.mp .mp__list ul { gap: 0; padding: 0 12px; border-radius: 14px; background: var(--surface-2); }
.mp .mp__list li { padding: 10px 0; border-radius: 0; background: none; }
.mp .mp__list li + li { border-top: 1px solid var(--line); }
.rep .rep__line { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 12px; justify-content: start; }
.tb__tab { flex: 1 1 0; }
.si__bar .tb { width: min(360px, 88vw); }


/* One iPhone frame for every phone on the site (founder, Nov 2: "should at least look like a modern iphone").
   iPhone 17 Pro proportions: a 71.9 x 149.6 mm body, so a fixed 719 / 1496 that never squashes to its content.
   Bezel 3% of the width, outer corners 15% of the width, the screen's corners the outer radius less the bezel.
   Corner radii are written as width % / height % so they stay circular. The Dynamic Island is a black capsule
   31% of the screen wide and 3.6% of its height, 1.3% below the screen's top. No gloss, no glow, no float. */
.phone, .si__phone { aspect-ratio: 719 / 1496; height: auto; padding: 3%; border-radius: 15% / 7.21%; background: #0c0c0d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, 0 28px 56px -20px rgb(20 16 12 / 0.4); }
.phone::after, .si__phone::after { content: ""; position: absolute; z-index: 4; left: 50%; top: 2.71%; translate: -50% 0;
  width: 29.1%; height: 3.5%; border-radius: 999px; background: #000; pointer-events: none; }
.phone > img, .si__phone > img, .si__phone > .si__app { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12.77% / 5.94%; }
.si__phone > div:not(.si__screen) { width: 100%; height: 100%; overflow: hidden; border-radius: 12.77% / 5.94%; }
.si__screen { inset: 1.442% 3%; border-radius: 12.77% / 5.94%; }
.si__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Phones (under 600 px): the tour stacks, each tab's copy above its own phone, so the copy never sits under
   a phone at any screen height (dev check, Nov 2). The pinned stage stays for wider screens. */
@media (max-width: 599px) {
  .motion .si__stage { display: none; }
  .motion .si__panels { margin-top: 0; }
  .motion .si__panel { min-height: 0; display: grid; gap: var(--space-5); justify-items: center; align-items: start; text-align: center; padding: var(--space-7) var(--gutter); background: var(--tint); pointer-events: auto; }
  .motion .si__inline { display: block; }
  .motion .si__copy { opacity: 1; max-width: none; }
  .si__inline .si__phone { width: min(62vw, 240px); }
  .si__copy p, .si__list { margin-inline: auto; }
  .si__list { text-align: left; max-width: 34ch; }
}
/* The cut-out sheet starts below the Dynamic Island, as a sheet does on the iPhone. */
.si__phone .cut__canvas { top: 6%; }
