/* The muscle plan's own look on top of the brand (brand.css: Onest, linen, deep teal). This stream's shape: a
   question-first landing (the first quiz question sits under the H1), then an app: rounded white cards on the linen
   ground, a top bar with ✕, one pinned action. Five text sizes: 48/34 headline, 26 card numbers, 21 card heads,
   18 body, 16 small. Nothing under 16px but the footer's legal line. */
:root { --bar-h: 60px; --pin-h: 92px; --apricot: #f4b183; --apricot-soft: #fdeadb; }

/* ---------- Landing: photo, H1, one line, one button ---------- */
.lp-hero { padding: 12px 0 28px; }
.lp-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 960px) { .lp-hero { padding: 56px 0; } .lp-grid { grid-template-columns: 1fr 1fr; gap: 64px; } .lp-photo { order: 2; } }
.lp-hero h1 { font-size: clamp(32px, 2.2vw + 24px, 54px); max-width: 14ch; margin-bottom: 10px; }
.lp-lede { font-size: 19px; color: var(--ink-2); max-width: 30ch; margin-bottom: 20px; }
.lp-go { max-width: 420px; }
.lp-photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--linen-2); }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .lp-photo { aspect-ratio: 16 / 10; } }
.lp-micro { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.lp-band { padding: 56px 0; }
.lp-fact { text-align: center; }
.lp-num { font-size: 64px; font-weight: 600; line-height: 1; color: var(--teal); letter-spacing: -0.03em; margin: 0 auto 10px; }
.lp-line { font-size: 21px; max-width: 24ch; margin: 0 auto 12px; color: var(--deep); }
.lp-src { font-size: 16px; color: var(--ink-2); margin: 0 auto; }
.plan-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 26px 24px; max-width: 520px; margin: 0 auto; }
.plan-card h2 { margin: 0 0 12px; font-size: 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-size: 18px; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border: 2.2px solid var(--teal); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.plan-price { font-size: 18px; margin: 0 0 16px; }
.plan-price b { font-size: 40px; font-weight: 600; color: var(--deep); letter-spacing: -0.02em; margin-right: 6px; }

/* Rings: the result's risk meter and the home's protein ring. */
.ring { position: relative; width: 200px; height: 200px; margin: 6px auto 4px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--linen-2); stroke-width: 14; }
.ring .fill { fill: none; stroke: var(--teal); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 600ms var(--ease-out); }
.ring.done .fill { stroke: var(--teal); }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .mid b { font-size: 48px; font-weight: 600; line-height: 1; color: var(--deep); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring .mid span { font-size: 16px; color: var(--ink-2); margin-top: 4px; }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 6px; }
.meter i { height: 12px; border-radius: 99px; background: var(--linen-2); }
.meter i.on { background: var(--teal); }
.meter-l { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 16px; color: var(--ink-2); }
.meter-l span:nth-child(2) { text-align: center; } .meter-l span:nth-child(3) { text-align: right; }
.one-line { font-size: 19px; text-align: center; margin: 10px auto 0; max-width: 30ch; }
details.fold { margin-top: 12px; }
details.fold summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--teal); font-weight: 600; font-size: 16px; }

/* Answer tiles: big, one tap, a check when picked. */
.tiles { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.tile { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--ink); font: 600 18px/1.25 var(--font); text-align: left; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--hair), var(--shadow-1); transition: transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms; }
.tile small { display: block; font-weight: 400; font-size: 16px; color: var(--ink-2); margin-top: 2px; }
.tile .tick { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); display: grid; place-items: center; }
.tile[aria-pressed="true"] { background: var(--mist); box-shadow: inset 0 0 0 2px var(--teal); }
.tile[aria-pressed="true"] .tick { background: var(--teal); box-shadow: none; }
.tile[aria-pressed="true"] .tick::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
@media (hover: hover) { .tile:hover { box-shadow: inset 0 0 0 1.5px var(--ring), var(--shadow-2); color: var(--ink); } }
.tile:active { transform: scale(.98); }
.tile .ico { flex: none; width: 24px; height: 24px; color: var(--teal); }

/* ---------- App shell (quiz, plan, thanks, small pages) ---------- */
body.app { background: var(--linen); min-height: 100dvh; }
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--linen) 94%, transparent); }
.appbar-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); height: var(--bar-h); display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--deep); cursor: pointer; text-decoration: none; flex: none; }
.icon-btn svg { width: 24px; height: 24px; }
@media (hover: hover) { .icon-btn:hover { background: var(--linen-2); color: var(--deep); } }
.icon-btn[hidden] { visibility: hidden; display: inline-grid; }
.appbar .ttl { flex: 1; text-align: center; font-weight: 700; font-size: 16px; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .ttl img { height: 24px; width: auto; display: inline-block; vertical-align: middle; }
.progress { height: 6px; background: var(--linen-2); border-radius: 99px; overflow: hidden; margin: 0 var(--gut); max-width: 1072px; }
@media (min-width: 1168px) { .progress { margin: 0 auto; } }
.progress i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 99px; transition: width 300ms var(--ease-out); }

.screen { max-width: 640px; margin: 0 auto; padding: 22px var(--gut) calc(var(--pin-h) + 28px); }
.screen.wide { max-width: 1120px; }
.screen h1 { font-size: clamp(30px, 1.6vw + 24px, 40px); line-height: 1.1; margin-bottom: 10px; }
.screen h2 { font-size: 26px; }
.screen .lede { font-size: 18px; color: var(--ink-2); margin-bottom: 20px; }
.pin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 14px var(--gut) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--linen) 70%, color-mix(in srgb, var(--linen) 0%, transparent)); }
.pin-in { max-width: 640px; margin: 0 auto; display: grid; gap: 8px; }
.pin .btn { width: 100%; }
.pin[hidden] { display: none; }

.cardx { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 22px; margin: 0 0 14px; }
.cardx h2, .cardx h3 { margin: 0 0 6px; }
.cardx h3 { font-size: 21px; }
.cardx p:last-child { margin-bottom: 0; }
.cardx.tint { background: var(--mist); box-shadow: none; }
.cardx.dark { background: var(--deep); color: #fff; }
.cardx.dark h2, .cardx.dark h3 { color: #fff; }
.big { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--deep); font-variant-numeric: tabular-nums; }
.cardx.dark .big { color: #fff; }
.muted { color: var(--ink-2); }
.small { font-size: 16px; }

/* Number inputs for height and weight: big, labelled, a unit inside. */
.nums { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.nums.one { grid-template-columns: 1fr; }
.numf { position: relative; }
.numf input[type=number] { font-size: 26px; font-weight: 700; min-height: 64px; padding-right: 56px; }
.numf span { position: absolute; right: 18px; bottom: 19px; font-size: 18px; color: var(--ink-2); pointer-events: none; }
.err { color: var(--bad); font-size: 16px; min-height: 24px; margin: 8px 0 0; }

/* The teaching break and the loader. */
.fact { font-size: 22px; line-height: 1.4; color: var(--deep); font-weight: 600; margin: 0 0 12px; }
.loader { display: grid; gap: 12px; margin-top: 18px; }
.loader li { display: flex; gap: 12px; align-items: center; font-size: 18px; list-style: none; opacity: .45; transition: opacity 240ms; }
.loader li.on { opacity: 1; }
.loader li .tick { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); flex: none; }
.loader li.done .tick { background: var(--teal); box-shadow: none; }
.loader { padding: 0; }

/* The result. */
.risk { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.risk .lvl { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.lvl { color: var(--deep); }
.factors { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.factors li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.factors li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--apricot); margin-top: 8px; }
.factors li.ok::before { background: var(--ok); }
.pbar { position: relative; height: 18px; border-radius: 99px; background: var(--linen-2); overflow: hidden; }
.pbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal); border-radius: 99px; transition: width 500ms var(--ease-out); }
.pbar.done i { background: var(--teal); }
.barrow { display: flex; justify-content: space-between; font-size: 16px; color: var(--ink-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.what { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.what li { display: flex; gap: 12px; font-size: 17px; }
.what li svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.offer { background: var(--surface); border-radius: var(--r-sheet); box-shadow: var(--shadow-2); padding: 24px; }
.offer .price { font-size: 48px; font-weight: 700; color: var(--deep); letter-spacing: -0.03em; line-height: 1; }
.offer .price small { font-size: 18px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.addon { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--apricot-soft); cursor: pointer; }
.addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addon .box { flex: none; width: 28px; height: 28px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 2px var(--ring); display: grid; place-items: center; margin-top: 1px; }
.addon input:checked + .box { background: var(--teal); box-shadow: none; }
.addon input:checked + .box::after { content: ""; width: 11px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.addon input:focus-visible + .box { outline: 3px solid var(--deep); outline-offset: 2px; }
.addon b { display: block; font-size: 18px; }
.addon span.t { font-size: 16px; font-weight: 400; color: var(--ink); }
.fine { font-size: 16px; color: var(--ink-2); margin: 12px 0 0; }

/* ---------- The paid home ---------- */
.home-grid { display: grid; gap: 14px; }
@media (min-width: 1024px) { .home-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } .home-grid > .side { position: sticky; top: calc(var(--bar-h) + 12px); } }
.today .big .of { font-size: 21px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 0; }
@media (min-width: 560px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.qf { min-height: 64px; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--linen); color: var(--ink); font: 600 16px/1.2 var(--font); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--hair); }
.qf b { display: block; color: var(--teal); font-size: 16px; }
.qf:active { transform: scale(.97); background: var(--mist); }
@media (hover: hover) { .qf:hover { background: var(--mist); } }
.custom { display: flex; gap: 8px; margin-top: 10px; }
.custom input { margin: 0; min-height: 48px; }
.custom .btn { min-height: 48px; flex: none; }
.eaten { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.eaten li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.eaten button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink-2); font: 600 16px var(--font); cursor: pointer; border-radius: 12px; }
.next-s { display: flex; gap: 16px; align-items: center; }
.next-s .btn { flex: none; }
.dots { display: flex; gap: 8px; margin-top: 10px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring); }
.dots i.on { background: var(--teal); box-shadow: none; }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 14px 18px; border: 0; border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-1); font: 600 18px/1.25 var(--font); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; margin-bottom: 8px; }
.rowlink small { display: block; font-weight: 400; font-size: 16px; color: var(--ink-2); }
.rowlink svg { flex: none; width: 22px; height: 22px; color: var(--ink-2); }
@media (hover: hover) { .rowlink:hover { box-shadow: var(--shadow-2); color: var(--ink); } }
.lock { background: var(--apricot-soft); border-radius: 16px; padding: 16px; margin-top: 12px; }

/* The session player. */
.move-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.setline { font-size: 26px; font-weight: 700; color: var(--deep); }
.cues { margin: 12px 0; padding-left: 20px; }
.cues li { margin-bottom: 6px; font-size: 18px; }
.swap { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.swap .btn { min-height: 44px; }
.timer { font-size: 72px; font-weight: 700; letter-spacing: -0.04em; text-align: center; color: var(--deep); font-variant-numeric: tabular-nums; margin: 6px 0; }
.setdots { display: flex; gap: 8px; }
.setdots i { width: 28px; height: 8px; border-radius: 99px; background: var(--linen-2); }
.setdots i.on { background: var(--teal); }
.steps-l { counter-reset: s; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps-l li { background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-1); }
.chart { width: 100%; height: auto; display: block; }
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.week-row div { text-align: center; font-size: 16px; color: var(--ink-2); }
.week-row b { display: block; height: 52px; border-radius: 10px; background: var(--linen-2); position: relative; overflow: hidden; margin-bottom: 4px; }
.week-row b i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--teal); }
.week-row b i.hit { background: var(--deep); }
.recipe h3 { margin-bottom: 2px; }
.recipe .meta { font-size: 16px; color: var(--ink-2); margin: 0 0 8px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--mist); color: var(--deep); font-size: 16px; font-weight: 600; }
details.recipe summary { cursor: pointer; list-style: none; min-height: 44px; }
details.recipe summary::-webkit-details-marker { display: none; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.filters button { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--hair); font: 600 16px var(--font); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--deep); color: #fff; box-shadow: none; }
.textarea { min-height: 140px; }
.center { text-align: center; }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
::view-transition { pointer-events: none; }
.move-img { width: 100%; height: auto; max-height: 280px; object-fit: contain; border-radius: 16px; margin: 0 0 14px; background: var(--linen-2); }
/* Desktop: the app screens use the width (two-column tiles, a wider column), the doc pages get a side panel. */
@media (min-width: 1024px) {
  body.app .screen { max-width: 920px; }
  body.app .tiles { grid-template-columns: 1fr 1fr; }
  body.app .pin-in { max-width: 920px; }
  .doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
  .doc-side { position: sticky; top: 96px; }
}
.doc-side { margin-top: 32px; }
.doc-side img { width: 100%; height: auto; border-radius: var(--r-card); margin-bottom: 16px; }
/* Look inside (paywall preview, 2026-11-01) */
.peek-h { font-size: 24px; margin: 0 0 12px; }
.peek { padding: 18px 20px; }
.peek-k { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--deep); text-transform: uppercase; }
.peek-src { margin: 14px 0 0; }
.peek .eaten .num { white-space: nowrap; }
/* check v2: two picks on one screen, the free number on the email screen */
.tile-k { font-weight: 600; margin: 20px 0 10px; color: var(--ink); }
.screen h1 + .tile-k, .screen .lede + .tile-k { margin-top: 4px; }
.big-num { margin: 6px 0 0; font-size: 20px; line-height: 1.1; color: var(--ink-2); }
.big-num b { font-size: 56px; font-weight: 600; color: var(--teal); letter-spacing: -0.03em; margin-right: 4px; }
/* Offer B (2026-11-02): two ways to pay, the first week picked */
.pick-list { display: grid; gap: 10px; margin: 18px 0 14px; }
.pick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--linen); border: 2px solid transparent; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-dot { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hair); }
.pick:has(input:checked) { border-color: var(--teal); background: var(--surface); }
.pick:has(input:checked) .pick-dot { border-color: var(--teal); box-shadow: inset 0 0 0 5px var(--surface); background: var(--teal); }
.pick-txt { display: flex; flex-direction: column; gap: 2px; }
.pick-txt b { font-size: 18px; }
