/* ANOKA fiber gap calculator v10 (2026-11-13). Brand System R37 tokens, same as v9.
   One question per screen: hero + question 1 on the first screen, an honest 6-step bar, tap to advance, Back link.
   Then the gate ("Your numbers are ready"), then results: gap, a bar that builds today + her biggest food swap
   (+ one stick only once the stick's grams are confirmed), Day 1 list, fluid check, where ANOKA fits. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --cream: #F4EFE8; --cream-raised: #FBF8F3; --cream-white: #FFFAF2;
  --berry: #521634; --berry-soft: #8A4566; --ridge: #AE7B88; --edge: #E7DCD3; --field: #8C7881;
  --raspberry: #B3263C; --raspberry-deep: #9E2337; --pink: #EF8D9A; --pink-pale: #F7C9CF; --error: #9A3412;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Figtree, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --pill: 999px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--berry); font: 400 16px/26px var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
a { color: var(--berry); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow { font: 600 12.5px/16px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--berry-soft); }
.small { font: 500 14px/22px var(--sans); color: var(--berry-soft); }
.hint { font: 500 14px/20px var(--sans); color: var(--berry-soft); }

/* berry band */
.band { background: var(--berry); color: var(--cream-white); }
.band-inner { max-width: 1120px; margin: 0 auto; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.brand { display: inline-flex; border-radius: 2px; }
.brand:focus-visible { outline-color: var(--cream-white); }
.brand img { display: block; height: 24px; width: auto; }
.eyebrow.on-band { color: var(--cream-white); }
@media (max-width: 420px) { .eyebrow.on-band { display: none; } }

/* page */
.page { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px;
  padding-block: 40px 0; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.stage { width: 100%; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.hero { display: flex; flex-direction: column; gap: 10px; }
.hero h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.04; letter-spacing: -.01em; }
.lede { font-size: 18px; line-height: 28px; color: var(--berry-soft); }
.trust { font: 500 14px/22px var(--sans); color: var(--berry); }
@media (max-width: 520px) { .page { padding-top: 28px; } .stage { gap: 22px; } .hero h1 { font-size: 40px; } .lede { font-size: 16px; line-height: 24px; } .trust { font-size: 13px; line-height: 19px; } .card.quiz { padding: 20px 16px; gap: 16px; } .opt { min-height: 56px; padding: 10px 14px; } }
.preview-note { font: 600 14px/20px var(--sans); color: var(--berry); background: var(--cream-raised); border: 1px dashed var(--ridge); border-radius: var(--r-sm); padding: 8px 12px; align-self: flex-start; }

/* cards */
.card { background: var(--cream-raised); border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(82, 22, 52, .08);
  padding: 28px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 420px) { .card { padding: 22px 18px; } }
.card h2 { font-size: clamp(28px, 4.4vw, 36px); line-height: 1.12; }
.card h2:focus { outline: none; }
.card h2.eyebrow { font: 600 12.5px/16px var(--sans); }

/* progress: honest, one segment per question */
.steps { display: flex; flex-direction: column; gap: 10px; }
.steps-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.count { font: 600 13px/18px var(--sans); color: var(--berry-soft); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.segs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.segs i { height: 6px; border-radius: var(--pill); background: var(--edge); transition: background-color .25s; }
.segs i.on { background: var(--berry); }
.back { border: 0; background: none; padding: 6px 0; min-height: 44px; font: 600 14px/20px var(--sans); color: var(--berry-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; }
.back:hover { color: var(--berry); }
.back svg { width: 16px; height: 16px; }

/* one question */
.qs { display: flex; flex-direction: column; gap: 6px; }
.q { display: flex; flex-direction: column; gap: 18px; }
.q.enter { animation: rise .28s cubic-bezier(.22, 1, .36, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts.one-col { grid-template-columns: minmax(0, 1fr); }
.opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 60px; width: 100%; padding: 12px 18px; text-align: left;
  border: 1.5px solid var(--field); border-radius: var(--r-md); background: var(--cream-white); color: var(--berry); cursor: pointer;
  font: 600 16px/22px var(--sans); transition: background-color .15s, border-color .15s, color .15s; }
.opt small { font: 500 13.5px/18px var(--sans); color: var(--berry-soft); }
.opt:hover { border-color: var(--berry); }
.opt[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: var(--cream-white); }
.opt[aria-pressed="true"] small { color: var(--pink-pale); }

/* gate */
.signup { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.qlabel { font: 600 15px/22px var(--sans); color: var(--berry); }
.field input { width: 100%; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: var(--r-sm); background: var(--cream-white); color: var(--berry); font: 400 16px/24px var(--sans); }
input::placeholder { color: var(--berry-soft); opacity: 1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font: 500 14px/22px var(--sans); color: var(--berry); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--berry); }
.status { font: 600 14px/20px var(--sans); color: var(--error); min-height: 20px; }
.status:empty { min-height: 0; }
.btn { align-self: flex-start; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--pill); background: var(--raspberry); color: var(--cream-white);
  font: 600 16px/20px var(--sans); letter-spacing: .01em; cursor: pointer; transition: background-color .2s; }
.btn:hover { background: var(--raspberry-deep); }
.skip { margin-top: -6px; }
.linkbtn { border: 0; background: none; padding: 6px 0; min-height: 44px; font: 500 14px/20px var(--sans); color: var(--berry-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--berry); }
@media (max-width: 420px) { .btn { width: 100%; } }

/* results */
.result { gap: 22px; }
.metric { display: flex; flex-direction: column; gap: 14px; }
.metric-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; }
.big { font: 400 clamp(56px, 10vw, 84px)/.9 var(--serif); color: var(--berry); font-variant-numeric: lining-nums tabular-nums; }
.big .unit { font: 500 15px/1 var(--sans); color: var(--berry-soft); letter-spacing: .02em; margin-left: 8px; }
.verdict { font: 500 15px/22px var(--sans); color: var(--berry-soft); max-width: 17rem; text-align: right; }
@media (max-width: 520px) { .verdict { text-align: left; } }

/* the build bar: today (pink + berry outline, the videos' bar) + her swap (pale, dashed) + one stick (berry, only once its grams are confirmed) */
.bar { position: relative; height: 16px; border-radius: var(--pill); background: var(--cream); border: 1px solid var(--ridge); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; width: 0; transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.bar .today { background: var(--pink); box-shadow: inset 0 0 0 1.5px var(--berry); border-radius: var(--pill); position: relative; z-index: 2; }
.bar .swap { background: repeating-linear-gradient(135deg, var(--pink-pale) 0 6px, var(--cream-white) 6px 10px); box-shadow: inset 0 0 0 1px var(--ridge); margin-left: -8px; padding-left: 8px; border-radius: 0 var(--pill) var(--pill) 0; z-index: 1; transition-delay: .35s; }
.bar .stick { background: var(--berry); margin-left: -8px; padding-left: 8px; border-radius: 0 var(--pill) var(--pill) 0; transition-delay: .7s; }
.bar .tgt { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--berry); }
.build { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font: 500 14.5px/20px var(--sans); color: var(--berry); }
.build li { display: flex; align-items: center; gap: 10px; }
.build li b { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.key { flex: none; width: 22px; height: 10px; border-radius: var(--pill); }
.key.today { background: var(--pink); box-shadow: inset 0 0 0 1.5px var(--berry); }
.key.swap { background: repeating-linear-gradient(135deg, var(--pink-pale) 0 5px, var(--cream-white) 5px 8px); box-shadow: inset 0 0 0 1px var(--ridge); }
.key.stick { background: var(--berry); }
.build li.target { color: var(--berry-soft); border-top: 1px solid var(--edge); padding-top: 8px; }
.rule { height: 1px; background: var(--ridge); opacity: .6; }
.fluid { display: flex; flex-direction: column; gap: 6px; }
.fluid-line { font: 500 15px/23px var(--sans); color: var(--berry); }
.sent { border-top: 1px solid var(--edge); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.sent-h { font: 600 15px/22px var(--sans); color: var(--berry); }
.why { border: 0; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.why legend { padding: 0; margin-bottom: 10px; font: 600 15px/22px var(--sans); }
.opt-tag { font: 500 13px/1 var(--sans); color: var(--berry-soft); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: var(--pill); background: var(--cream-white); color: var(--berry); font: 500 15px/20px var(--sans); cursor: pointer; }
.chip-opt[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: var(--cream-white); }
.again { align-self: flex-start; }

/* below the result */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 860px) { .more { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.block { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.block h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; }
.foods { list-style: none; padding: 0; display: flex; flex-direction: column; }
.foods li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--edge); font-size: 16px; }
.foods li b { font: 700 16px/26px var(--sans); color: var(--berry); white-space: nowrap; font-variant-numeric: tabular-nums; }
.foods li.lever span::after { content: "Your biggest swap"; display: block; width: max-content; margin-top: 6px; font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--berry);
  background: var(--pink-pale); border-radius: var(--pill); padding: 4px 8px; white-space: nowrap; }
.foods li.total { border-bottom: 0; color: var(--berry-soft); }
.proof { list-style: none; padding: 12px 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--ridge); border-bottom: 1px solid var(--ridge); }
.proof li { font: 600 16px/22px var(--sans); padding: 2px 16px; }
.proof li:first-child { padding-left: 0; }
.proof li + li { border-left: 1px solid var(--ridge); }
.fitline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.chip { display: inline-flex; align-items: center; border-radius: var(--pill); padding: 6px 18px 8px; background: var(--pink); color: var(--berry); font: 400 22px/26px var(--serif); white-space: nowrap; }
.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--cream-raised); border: 1px solid var(--edge); border-radius: var(--r-md); padding: 14px 16px; }
.share q { quotes: none; font: 400 22px/28px var(--serif); flex: 1 1 200px; min-width: 0; }
.btn-ghost { min-height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1.5px solid var(--berry); background: transparent; color: var(--berry); font: 600 15px/20px var(--sans); cursor: pointer; }
.btn-ghost:hover { background: var(--cream); }
.fit-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* footer note */
.note { border-top: 1px solid var(--ridge); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 46rem; font: 400 14px/22px var(--sans); color: var(--berry-soft); }
.note b { color: var(--berry); font-weight: 600; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 10px; font-weight: 500; }
.legal a { color: var(--berry); }

/* two-peak motif */
.peaks-wrap { display: flex; justify-content: center; margin-top: 56px; overflow: hidden; }
.peaks { display: block; width: min(100%, 600px); height: auto; aspect-ratio: 624 / 300;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%); }

@media (prefers-reduced-motion: reduce) { .q.enter { animation: none; } .bar i, .opt, .btn, .segs i { transition: none; } }
@media (max-width: 520px) { .legal { flex-direction: column; gap: 8px; } .legal > span[aria-hidden] { display: none; } }

/* v10.1: second ask sits under Day 1 inside .more; span the grid and keep the card width */
.more > .gate { grid-column: 1 / -1; max-width: 620px; width: 100%; justify-self: center; }
@media (min-width: 861px) { .more > .gate { order: 3; } }
.hint:empty { display: none; }
/* v10.1: short phones (e.g. 360×640 in Instagram's browser): keep every consent word, trim the chrome around it */
@media (max-height: 700px) and (max-width: 520px) {
  .gate .segs, #gateEyebrow, #gateSub { display: none; }
  .gate h2 { font-size: 26px; line-height: 1.15; }
  .gate .steps-top { min-height: 0; }
}
/* v10.1: the skip link reads as the second choice, so it's darker than the policy link beneath it */
#skipBtn { color: var(--berry); font-weight: 600; }
.signup .small:last-child { font-size: 12px; line-height: 18px; }
.signup .small a { color: #9A5C78; }   /* lighter than the skip link, still 4.75:1 on the card */

/* v10.1: footer method note folds away */
.note .how { margin: 10px 0 14px; }
.note .how summary { cursor: pointer; font-weight: 600; color: var(--berry); min-height: 44px; display: flex; align-items: center; list-style: none; }
.note .how summary::-webkit-details-marker { display: none; }
.note .how summary::after { content: "+"; margin-left: 8px; font-weight: 500; }
.note .how[open] summary::after { content: "–"; }

/* v10.1: "fiber gap" emphasis in the headline (synthetic bold of the 400 serif) */
.hero h1 strong { font-weight: 700; }
