/* ==========================================================================
   Flora web: the quiz, the reveal and the plan (rebuilt 2026-11-17 to stand
   beside the app's onboarding, src/onboarding).
   What it borrows from the app: the opening on real products that score
   themselves, screens that travel in the direction you are going, titles and
   answers that rise in one after another, an answer that springs and moves on
   by itself, a progress bar with a light streak, one slider per suspect food,
   a build screen that counts, and a reveal told in beats.
   What stays the site's own: direction A type, the cream ground, hairlines,
   the forest buttons (css/site.css). One dark card only (the watchlist).
   No viewport units anywhere: js/quiz.js sets --fh in px, and html.play (a
   frame as tall as the page) puts the button under the content instead of
   pinning it to a bottom edge nobody can see.
   ========================================================================== */
html { height: 100%; scroll-behavior: auto; }
body.quiz {
  min-height: 100%; background: var(--page);
  --col: 580px;
  --out: cubic-bezier(0.16, 1, 0.3, 1);        /* settles like something set down */
  --soft: cubic-bezier(0.3, 1.18, 0.42, 1);    /* a soft spring: a hair past, then home */
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);    /* a firmer spring for ticks and thumbs */
  --good: var(--green); --goodInk: var(--greenDeep); --goodBg: var(--mint);
  --mid: #E39612; --midInk: var(--goldDeep); --midBg: var(--amberBg);
  --bad: #E5482F; --badInk: var(--coralDeep); --badBg: var(--coralBg);
}
body.quiz [hidden] { display: none !important; }
body.quiz .ic { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- the bar: back, brand, skip, and the three phases ---------- */
.qbar { position: sticky; top: 0; z-index: 30; background: rgba(247, 243, 235, 0.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
html.play .qbar { position: static; }
.qbar-inner { max-width: 640px; margin: 0 auto; padding: 12px 18px 8px; display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; min-height: 58px; }
.qback, .qskip { height: 38px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; -webkit-tap-highlight-color: transparent; transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease; }
.qback { grid-column: 1; justify-self: start; padding: 0 15px 0 11px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.qback .ic { width: 16px; height: 16px; }
.qskip { grid-column: 3; justify-self: end; padding: 0 4px; color: var(--ink2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(21, 25, 30, 0.25); }
@media (hover: hover) { .qback:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(14, 58, 43, 0.4); } .qskip:hover { color: var(--ink); text-decoration-color: currentColor; } }
.qback:focus-visible, .qskip:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.qbar .brand { grid-column: 2; justify-self: center; font-size: 23px; }
.qbar .brand img { width: 21px; height: 21px; }
.phases { max-width: 604px; margin: 0 auto; padding: 0 18px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phases div { display: grid; gap: 7px; }
.phases span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); opacity: 0.55; transition: opacity 0.3s ease, color 0.3s ease; }
.phases i { position: relative; display: block; height: 4px; border-radius: 4px; background: rgba(14, 17, 22, 0.08); overflow: hidden; }
.phases i b { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--forest), #1F7455); transition: width 0.65s var(--out); }
.phases i::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 46%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); transform: translateX(-130%); }
.phases i.streak::after { animation: qStreak 0.85s ease-out 0.12s; }
@keyframes qStreak { from { transform: translateX(-130%); } to { transform: translateX(260%); } }
.phases div.on span { opacity: 1; color: var(--forest); }
.phases div.done span { opacity: 0.8; }

/* ---------- the stage: one screen at a time, travelling ---------- */
.qmain { position: relative; max-width: var(--col); margin: 0 auto; padding: 22px 20px 150px; }
html.play .qmain { padding-bottom: 18px; }
.scr { position: relative; }
.scr.in { animation: scrIn 0.5s var(--soft) backwards; animation-delay: 0.09s; }
.scr.first { animation: scrFirst 0.4s ease backwards; }
.scr.out { position: absolute; left: 20px; right: 20px; top: 22px; pointer-events: none; animation: scrOut 0.2s ease-in forwards; }
@keyframes scrIn { from { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 30px), 0, 0); } }
@keyframes scrFirst { from { opacity: 0; } }
@keyframes scrOut { to { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -26px), 0, 0); } }
/* the title, then each answer, rise in turn (js sets --d on every [data-c]) */
.scr.in [data-c], .scr.first [data-c] { animation: qRise 0.55s var(--out) backwards; animation-delay: var(--d, 0ms); }
@keyframes qRise { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
html.still .scr, html.still .scr [data-c] { animation: none !important; }

.qhead { margin-bottom: 22px; }
.qhead .eyebrow { margin-bottom: 14px; }
.scr h1 { font-size: 34px; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 12px; text-wrap: balance; outline: none; }
@media (min-width: 480px) { .scr h1 { font-size: 40px; } }
@media (max-width: 349px) { .scr h1 { font-size: 30px; } }
.scr .sub { margin: 0; color: var(--ink2); font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }
.scr h2 { font-size: 27px; line-height: 1.12; margin: 0 0 14px; }
.qcard { padding: 20px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.cap { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); line-height: 1.2; }

/* ---------- answer tiles ---------- */
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 13px 16px;
  text-align: left; border: 0; border-radius: 18px; cursor: pointer; color: var(--ink); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line2), 0 1px 1px rgba(21, 25, 30, 0.02), 0 12px 24px -20px rgba(21, 25, 30, 0.22);
  transition: box-shadow 0.28s ease, background 0.28s ease, transform 0.35s var(--soft), opacity 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .opt:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(14, 58, 43, 0.42), 0 1px 1px rgba(21, 25, 30, 0.03), 0 18px 30px -20px rgba(21, 25, 30, 0.32); } }
.opt:active { transform: scale(0.985); transition-duration: 0.12s; }
.opt:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.opt .ico, .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--forest); background: linear-gradient(160deg, #F9F5EC, #EEE7D8); box-shadow: inset 0 0 0 1px rgba(14, 17, 22, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85); transition: background 0.28s ease, color 0.28s ease, transform 0.45s var(--pop), box-shadow 0.28s ease; }
.opt .txt { flex: 1; min-width: 0; }
.opt .lbl { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.opt .osub { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink3); margin-top: 2px; }
.opt .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(21, 25, 30, 0.2); transition: background 0.2s ease, box-shadow 0.2s ease; }
.opt .tick .ic { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transform: scale(0.3); transition: transform 0.4s var(--pop), opacity 0.15s ease; }
.opt.sel { background: #F3F8F4; box-shadow: inset 0 0 0 1.5px var(--forest), 0 0 0 4px rgba(13, 160, 87, 0.1), 0 16px 30px -16px rgba(13, 160, 87, 0.45); }
.opt.sel .ico { color: var(--cream); background: linear-gradient(180deg, #1B5A45, #0E3A2B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 6px 12px -6px rgba(9, 54, 38, 0.6); }
.opt.sel .tick { background: var(--forest); box-shadow: none; }
.opt.sel .tick .ic { opacity: 1; transform: none; }
/* the beat after a tap: the icon springs, a ring of light leaves the tile, the others step back */
.opt.beat .ico { transform: scale(1.1); }
.opt.beat::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: qRing 0.6s ease-out forwards; }
@keyframes qRing { from { box-shadow: 0 0 0 0 rgba(13, 160, 87, 0.42); } to { box-shadow: 0 0 0 14px rgba(13, 160, 87, 0); } }
.opts.picked .opt:not(.sel) { opacity: 0.42; }
.opts.grid2 { grid-template-columns: 1fr 1fr; }
.opts.grid2 .opt { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 106px; padding: 14px; }
.opts.grid2 .opt .tick { position: absolute; top: 14px; right: 14px; border-radius: 8px; }
html.still .opt, html.still .opt .ico, html.still .opt .tick .ic { transition: none; }

/* ---------- the button at the foot ---------- */
.qfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; justify-items: center; gap: 10px; padding: 22px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(247, 243, 235, 0), var(--page) 40%); pointer-events: none; }
.qfoot > * { pointer-events: auto; }
.qfoot .btn { display: flex; width: 100%; max-width: 540px; }
.qfoot .btn[disabled] { opacity: 0.45; pointer-events: none; }
.qfoot .btn[disabled]::after { display: none; }
.qfoot-note { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink3); }
.qfoot.rise { animation: qFoot 0.55s var(--out) backwards; }
@keyframes qFoot { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
/* on a wide screen the button rests under a short screen and only pins when the page is long */
@media (min-width: 760px) {
  .qfoot { position: sticky; padding-top: 16px; }
  .qmain { padding-bottom: 10px; }
}
html.short .qfoot-note { display: none; }
html.play .qfoot { position: static; max-width: var(--col); margin: 0 auto; padding: 6px 20px 44px; background: none; }
html.play .qfoot-note { display: block; }
html.still .qfoot.rise { animation: none; }

/* ---------- 1. the opening: America's favorites, scored ---------- */
.favs { margin: 0 -20px; }
.fav-row { position: relative; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 20px; padding: 6px 20px 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.fav-row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .fav-row { -webkit-mask: linear-gradient(90deg, #000 0, #000 88%, rgba(0, 0, 0, 0)); mask: linear-gradient(90deg, #000 0, #000 88%, rgba(0, 0, 0, 0)); } }
.fav { position: relative; flex: 0 0 min(318px, calc(100% - 48px)); height: var(--favH, 404px); scroll-snap-align: start; border-radius: 26px; background: #fff; overflow: hidden; isolation: isolate; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line), 0 1px 1px rgba(21, 25, 30, 0.03), 0 18px 34px -20px rgba(21, 25, 30, 0.3); -webkit-tap-highlight-color: transparent; }
.fav[data-tone="good"] { --tint: #E2F2E9; --tone: var(--goodInk); --arc: var(--good); }
.fav[data-tone="mid"] { --tint: #FBF0D9; --tone: var(--midInk); --arc: var(--mid); }
.fav[data-tone="bad"] { --tint: #FBE6E1; --tone: var(--badInk); --arc: var(--bad); }
.fav-row.nudge .fav { animation: favNudge 0.95s var(--out); }
@keyframes favNudge { 0%, 100% { transform: none; } 38% { transform: translate3d(-38px, 0, 0); } }
.fav-front { height: 100%; display: flex; flex-direction: column; transform-origin: 50% 30%; transition: transform 0.38s var(--out); }
.fav.open .fav-front { transform: scale(0.975); }
.fav-well { position: relative; flex: 0 0 var(--wellH, 176px); display: grid; place-items: center; background: linear-gradient(180deg, var(--tint), #fff); }
.fav-well::after { content: ''; position: absolute; left: 50%; bottom: 13px; width: 46%; height: 10px; margin-left: -23%; border-radius: 50%; background: rgba(21, 25, 30, 0.1); filter: blur(5px); }
.fav-well img { position: relative; z-index: 1; display: block; width: auto; height: auto; max-width: 70%; max-height: calc(var(--wellH, 176px) - 34px); object-fit: contain; }
.fav-dial { position: absolute; z-index: 2; right: 16px; top: calc(var(--wellH, 176px) - 37px); width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(21, 25, 30, 0.06), 0 12px 22px -12px rgba(21, 25, 30, 0.36); }
.fav-dial svg { grid-area: 1 / 1; width: 62px; height: 62px; }
.fav-dial .arc { stroke: var(--arc); }
.fav-dial b { grid-area: 1 / 1; font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 60; font-size: 25px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; opacity: 0; transition: opacity 0.3s ease; }
.fav.live .fav-dial b { opacity: 1; }
.fav-info { flex: 1; min-height: 0; padding: 14px 18px 0; overflow: hidden; }
.fav-brand { display: block; margin-right: 84px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 84px 0 0; font-weight: 600; font-size: 17px; line-height: 1.3; }
.fav-tier { display: block; margin-top: 5px; font-size: 13.5px; font-weight: 600; color: var(--tone); }
.fav-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-height: 26px; overflow: hidden; }
.tg { height: 26px; padding: 0 9px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tg-bad { background: var(--badBg); color: var(--badInk); }
.tg-good { background: var(--goodBg); color: var(--goodInk); }
.tg-warn, .tg-neutral { background: var(--midBg); color: var(--midInk); }
.fav-why { flex: 0 0 auto; margin: 12px 18px 16px; height: 44px; border: 0; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 13.5px; color: var(--ink); background: linear-gradient(180deg, #FDFBF6, #F3EEE3); box-shadow: inset 0 0 0 1px var(--line2), inset 0 1px 0 #fff, 0 6px 12px -8px rgba(21, 25, 30, 0.2); -webkit-tap-highlight-color: transparent; transition: box-shadow 0.25s ease, transform 0.3s var(--soft); }
.fav-why .ic { width: 14px; height: 14px; stroke-width: 2.2; color: var(--ink3); }
@media (hover: hover) { .fav-why:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(14, 58, 43, 0.4), inset 0 1px 0 #fff, 0 10px 16px -10px rgba(21, 25, 30, 0.3); } }
.fav-why:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.fav-veil { position: absolute; inset: 0; z-index: 3; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity 0.34s ease; }
.fav.open .fav-veil { opacity: 0.34; }
/* the reasons arrive as a sheet from the card's own bottom edge */
.fav-sheet { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: calc(100% - 22px); display: flex; flex-direction: column; padding: 10px 18px 14px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 24px -10px rgba(21, 25, 30, 0.26); transform: translate3d(0, 106%, 0); visibility: hidden; transition: transform 0.3s cubic-bezier(0.55, 0.06, 0.68, 0.19), visibility 0s linear 0.3s; }
.fav.open .fav-sheet { transform: none; visibility: visible; transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s; }
.fs-grab { flex: 0 0 auto; align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--line2); margin-bottom: 12px; }
.fs-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tone); }
.fs-head .ic { width: 14px; height: 14px; stroke-width: 2.2; color: var(--ink3); }
.fs-name { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-rows { flex: 1; min-height: 0; overflow: hidden; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; align-content: start; scrollbar-width: none; }
.fs-rows::-webkit-scrollbar { display: none; }
.fs-rows li { display: flex; gap: 10px; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.2s ease, transform 0.2s ease; }
.fav.open .fs-rows li { opacity: 1; transform: none; transition: opacity 0.32s ease, transform 0.45s var(--out); transition-delay: calc(160ms + var(--k, 0) * 70ms); }
.fs-rows li > i { flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; }
.fs-rows li > i .ic { width: 12px; height: 12px; stroke-width: 2.8; }
.fs-rows li.t-bad > i { background: var(--badBg); color: var(--badInk); }
.fs-rows li.t-good > i { background: var(--goodBg); color: var(--goodInk); }
.fs-rows li.t-neutral > i, .fs-rows li.t-warn > i { background: var(--page2); color: var(--ink3); }
.fs-rows b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.fs-rows span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--ink2); }
.fav-nav { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-top: -12px; padding: 0 20px; }
.fav-dots { display: flex; gap: 6px; }
.fav-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(21, 25, 30, 0.16); transition: width 0.35s var(--out), background 0.3s ease; }
.fav-dots i.on { width: 22px; background: var(--forest); }
.fav-arrows { display: none; gap: 8px; }
@media (hover: hover) and (pointer: fine) { .fav-arrows { display: flex; } }
.fav-arrows button { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line2), var(--sh-1); transition: transform 0.3s var(--soft), box-shadow 0.25s ease, opacity 0.25s ease; }
.fav-arrows button .ic { width: 16px; height: 16px; }
.fav-arrows button:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(14, 58, 43, 0.4), var(--sh-1); }
.fav-arrows button[disabled] { opacity: 0.35; pointer-events: none; }
.fav-arrows .nx .ic { transform: scaleX(-1); }
html.short .scr-tour .qhead { margin-bottom: 14px; }
html.short .scr-tour .sub { display: none; }
html.still .fav-sheet, html.still .fav-front, html.still .fs-rows li { transition: none !important; }

/* ---------- when did you last have these: one slider per food ---------- */
.recs { display: grid; gap: 12px; }
.rec { padding: 15px 16px 12px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2), 0 12px 24px -20px rgba(21, 25, 30, 0.22); transition: box-shadow 0.3s ease; }
.rec.set, .rec.rare { box-shadow: inset 0 0 0 1px rgba(14, 58, 43, 0.3), 0 12px 24px -20px rgba(21, 25, 30, 0.22); }
.rec-top { display: flex; align-items: center; gap: 12px; }
.rec .ico { width: 40px; height: 40px; border-radius: 13px; }
.rec .ico .ic { width: 22px; height: 22px; }
.rec-name { flex: 1; min-width: 0; }
.rec-name b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
.rec-read { display: block; margin-top: 1px; font-size: 13.5px; color: var(--ink3); transition: color 0.2s ease; }
.rec.set .rec-read, .rec.rare .rec-read { color: var(--forest); font-weight: 600; }
.rec-rare { flex: 0 0 auto; height: 34px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink2); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); -webkit-tap-highlight-color: transparent; transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.rec.rare .rec-rare { color: var(--cream); background: linear-gradient(180deg, #1B5A45, #0E3A2B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.rec-rare:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.rec-track { position: relative; height: 46px; margin-top: 6px; cursor: pointer; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: opacity 0.25s ease; }
.rec-rail { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: rgba(21, 25, 30, 0.08); }
.rec-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(15px + (100% - 30px) * var(--p, 0)); border-radius: 6px; background: linear-gradient(90deg, var(--forest), var(--green)); opacity: 0; transition: width 0.28s var(--soft), opacity 0.2s ease; }
.rec.set .rec-fill { opacity: 1; }
.rec-dot { position: absolute; top: 50%; left: calc(15px + (100% - 30px) * var(--k) / 7); width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(21, 25, 30, 0.24); transition: background 0.2s ease; }
.rec-dot.past { background: rgba(255, 255, 255, 0.9); }
.rec-thumb { position: absolute; top: 50%; left: calc(15px + (100% - 30px) * var(--p, 0)); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--forest), 0 1px 2px rgba(21, 25, 30, 0.14), 0 8px 16px -6px rgba(13, 160, 87, 0.6); transition: left 0.28s var(--soft), transform 0.25s var(--pop), opacity 0.2s ease, box-shadow 0.2s ease; }
.rec-thumb::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--forest); transform: scale(0); transition: transform 0.3s var(--pop); }
.rec.set .rec-thumb::after { transform: none; }
.rec:not(.set) .rec-thumb { opacity: 0.6; box-shadow: inset 0 0 0 2px rgba(21, 25, 30, 0.3), 0 1px 2px rgba(21, 25, 30, 0.1); }
.rec.hint:not(.set):not(.rare) .rec-thumb { animation: recHint 1.9s ease-in-out infinite; }
@keyframes recHint { 0%, 55%, 100% { transform: none; } 25% { transform: translate3d(9px, 0, 0); } }
.rec-track.drag .rec-thumb { transform: scale(1.14); }
.rec-track:focus-visible .rec-thumb { outline: 2px solid var(--forest); outline-offset: 3px; }
.rec.rare .rec-track { opacity: 0.32; }
.rec.rare .rec-thumb { opacity: 0; }
.rec-ends { display: flex; justify-content: space-between; margin-top: -4px; font-size: 11.5px; font-weight: 500; color: var(--ink3); }
html.still .rec-thumb, html.still .rec-fill { transition: none; animation: none !important; }

/* ---------- the science break: real foods, counting up ---------- */
.lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.sci { margin-top: 18px; padding: 4px 20px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.sci-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px 12px; padding: 15px 0 16px; box-shadow: inset 0 -1px 0 var(--line); }
.sci-row:last-child { box-shadow: none; }
.sci-row b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.sci-row b small { display: block; font-weight: 500; font-size: 13px; color: var(--ink3); margin-top: 1px; }
.sci-n { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: 34px; line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--cInk); }
.sci-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 6px; background: rgba(21, 25, 30, 0.07); overflow: hidden; }
.sci-bar u { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--c); transition: width 1.15s var(--out); transition-delay: calc(var(--k, 0) * 140ms); }
.sci.go .sci-bar u { width: calc(var(--s) * 1%); }
.sci-row.t-good { --c: var(--good); --cInk: var(--goodInk); }
.sci-row.t-mid { --c: var(--mid); --cInk: var(--midInk); }
.sci-row.t-bad { --c: var(--bad); --cInk: var(--badInk); }
.note { margin: 18px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ink2); }
.src { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink3); }
html.still .sci-bar u { transition: none; }

/* ---------- the watchlist: the one dark card, assembling ---------- */
.wl { position: relative; margin-top: 4px; padding: 20px 16px 18px; border-radius: 26px; overflow: hidden; color: var(--cream); background: radial-gradient(120% 70% at 50% -12%, rgba(130, 226, 178, 0.2) 0%, rgba(130, 226, 178, 0) 62%), linear-gradient(180deg, #134B38 0%, #0C3326 56%, #092A1F 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(228, 203, 134, 0.24), 0 2px 4px rgba(6, 30, 22, 0.2), 0 30px 60px -28px rgba(9, 54, 38, 0.7); }
.wl::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(228, 203, 134, 0) 38%, rgba(228, 203, 134, 0.26) 50%, rgba(228, 203, 134, 0) 62%); transform: translateX(-120%); }
.wl.done::after { animation: wlShine 1.05s ease-out; }
@keyframes wlShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.wl-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.wl-head .cap { color: var(--gold2); }
.wl-count { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: 54px; line-height: 0.82; letter-spacing: -0.03em; color: var(--gold2); font-variant-numeric: lining-nums tabular-nums; }
.wl-rows { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.wl-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.06); opacity: 0; transform: translate3d(0, 14px, 0) scale(0.96); }
.wl-row.in { opacity: 1; transform: none; transition: opacity 0.3s ease, transform 0.55s var(--soft); }
.wl-row .ic { width: 22px; height: 22px; color: rgba(251, 248, 241, 0.92); }
.wl-row b { flex: 1; min-width: 0; font-weight: 600; font-size: 16.5px; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-live { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 248, 241, 0.4); transition: color 0.3s ease; }
.wl-live i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: background 0.3s ease, box-shadow 0.3s ease; }
.wl-row.live .wl-live { color: rgba(251, 248, 241, 0.86); }
.wl-row.live .wl-live i { background: #46E09E; box-shadow: 0 0 0 4px rgba(70, 224, 158, 0.16), 0 0 12px rgba(70, 224, 158, 0.85); animation: wlBreathe 2.4s ease-in-out infinite; }
@keyframes wlBreathe { 50% { box-shadow: 0 0 0 6px rgba(70, 224, 158, 0.07), 0 0 16px rgba(70, 224, 158, 0.5); } }
.wl-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.wl-fields div { padding: 10px 10px 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.wl-fields span { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(251, 248, 241, 0.5); line-height: 1.3; }
.wl-fields b { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.wl-beats { margin-top: 16px; padding: 15px 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.wl-beats .cap { color: var(--gold2); font-size: 10px; }
.wl-beats ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wl-beats li { display: grid; gap: 8px; align-content: start; font-size: 12.5px; line-height: 1.4; color: rgba(251, 248, 241, 0.82); }
.wl-beats li .ic { width: 20px; height: 20px; color: var(--gold2); }
.wl-fields, .wl-beats { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.45s ease, transform 0.6s var(--out); }
.wl.done .wl-fields, .wl.done .wl-beats { opacity: 1; transform: none; }
.wl.done .wl-beats { transition-delay: 0.16s; }
html.still .wl-row, html.still .wl-fields, html.still .wl-beats { transition: none; }
html.still .wl::after, html.still .wl-live i { animation: none !important; }

/* ---------- the build: a percent that counts, a list that ticks ---------- */
.th { text-align: center; padding-top: 14px; }
.th h1 { font-size: 30px; margin: 0; }
.th-pct { margin-top: 30px; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: 112px; line-height: 0.9; letter-spacing: -0.035em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.th-pct small { font-size: 0.4em; margin-left: 3px; color: var(--ink3); letter-spacing: 0; }
.th-bar { height: 4px; max-width: 250px; margin: 22px auto 0; border-radius: 4px; background: rgba(21, 25, 30, 0.08); overflow: hidden; }
.th-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--green), #D8B55C); }
.th-line { min-height: 25px; margin: 18px 0 0; font-size: 16.5px; color: var(--ink2); transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.th-line.swap { opacity: 0; transform: translate3d(0, 4px, 0); transition: opacity 0.14s ease-in, transform 0.14s ease-in; }
.th-list { list-style: none; margin: 28px auto 0; padding: 0; max-width: 400px; display: grid; gap: 10px; text-align: left; }
.th-list li { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: 16px; font-size: 15.5px; font-weight: 500; color: var(--ink3); background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
.th-list li i { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line2); transition: background 0.2s ease, box-shadow 0.2s ease; }
.th-list li i .ic { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(0.3); transition: transform 0.45s var(--pop), opacity 0.15s ease; }
.th-list li.done { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.th-list li.done i { background: var(--forest); box-shadow: 0 0 0 4px rgba(13, 160, 87, 0.12); }
.th-list li.done i .ic { opacity: 1; transform: none; }

/* ---------- your score is ready: the ring waits behind glass ---------- */
.gate { text-align: center; }
.gate-ring { position: relative; width: 176px; height: 176px; margin: 2px auto 22px; }
.gate-ring .ring { width: 176px; height: 176px; filter: blur(7px); opacity: 0.92; }
.gate-ring .ring .num-in { font-size: 62px; filter: blur(9px); }
.gate-ring .ring .num-in small { visibility: hidden; }
.gate-lock { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(21, 25, 30, 0.06), 0 16px 30px -14px rgba(21, 25, 30, 0.4); }
.gate-lock .ic { width: 24px; height: 24px; }
.gate .qhead { margin-bottom: 20px; }
.field { display: grid; gap: 8px; text-align: left; }
.field input { width: 100%; height: 60px; padding: 0 18px; border: 0; border-radius: 18px; background: #fff; color: var(--ink); font: inherit; font-size: 18px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--line2), var(--sh-1); transition: box-shadow 0.25s ease; }
.field input::placeholder { color: var(--ink3); opacity: 0.7; font-weight: 400; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--forest), 0 0 0 4px rgba(13, 160, 87, 0.12), var(--sh-1); }
.field .err { min-height: 20px; font-size: 14px; font-weight: 500; color: var(--coralDeep); }
.consent { margin: 8px 0 0; display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13.5px; line-height: 1.5; color: var(--ink3); font-weight: 500; }
.consent.box { cursor: pointer; }
.consent.box input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #0E3A2B; }
.consent .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--ink3); }

/* ---------- the reveal, in beats ---------- */
.rv-hero { text-align: center; }
.rv-hero .eyebrow { margin-bottom: 12px; }
.rv-hero h1 { font-size: 32px; margin: 0; }
@media (min-width: 480px) { .rv-hero h1 { font-size: 38px; } }
.rv-ring { position: relative; width: 220px; height: 220px; margin: 22px auto 14px; }
.rv-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; box-shadow: 0 0 0 0 var(--glow, rgba(13, 160, 87, 0.35)); opacity: 0; }
.rv-hero.landed .rv-ring::before { animation: rvLand 1.1s ease-out; }
@keyframes rvLand { from { opacity: 1; box-shadow: 0 0 0 0 var(--glow, rgba(13, 160, 87, 0.35)); } to { opacity: 0; box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.ring.lg { width: 220px; height: 220px; }
.ring.lg .num-in { font-size: 78px; }
.ring.lg .num-in small { font-size: 14px; }
.rv-tier { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 72; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
.rv-rule { width: 44px; height: 1px; margin: 16px auto 14px; background: var(--gold); opacity: 0.7; }
.rv-hero .sub { max-width: 340px; margin: 0 auto; font-size: 15.5px; }
.rv-tier, .rv-rule, .rv-hero .sub { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.5s ease, transform 0.65s var(--out); }
.rv-hero.landed .rv-tier, .rv-hero.landed .rv-rule, .rv-hero.landed .sub { opacity: 1; transform: none; }
.rv-hero.landed .rv-rule { transition-delay: 0.12s; }
.rv-hero.landed .sub { transition-delay: 0.2s; }
.rv-block { margin-top: 44px; }
[data-rv] > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 0.5s ease, transform 0.7s var(--out); transition-delay: calc(var(--k, 0) * 80ms); }
[data-rv].in > * { opacity: 1; transform: none; }
html.still .rv-tier, html.still .rv-rule, html.still .rv-hero .sub, html.still [data-rv] > * { opacity: 1; transform: none; transition: none; }
.drv { padding: 18px 18px 4px; }
.drv + .drv { margin-top: 12px; }
.drv .cap { display: flex; align-items: center; gap: 9px; }
.drv .cap::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--cBg); }
.drv.bad { --c: var(--bad); --cBg: rgba(229, 72, 47, 0.14); }
.drv.good { --c: var(--good); --cBg: rgba(13, 160, 87, 0.14); }
.drv ul, .steps { list-style: none; margin: 6px 0 0; padding: 0; }
.drv li { padding: 13px 0 14px; box-shadow: inset 0 -1px 0 var(--line); }
.drv li:last-child, .steps li:last-child { box-shadow: none; }
.drv li b, .steps li b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.drv li span, .steps li span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.drv li span:only-child, .steps li div > span:only-child { margin-top: 0; font-size: 15.5px; line-height: 1.45; font-weight: 550; color: var(--ink); }
.howin .steps li div > span:only-child { font-weight: 400; }
.steps strong { font-weight: 600; }
/* the next 90 days */
.curve { padding: 16px 10px 14px; }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; }
.cv-grid { stroke: rgba(21, 25, 30, 0.14); stroke-width: 1; stroke-dasharray: 3 5; }
.cv-area { opacity: 0; transition: opacity 0.9s ease 0.5s; }
.cv-line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cv-node, .cv-val, .cv-day { opacity: 0; transition: opacity 0.3s ease; transition-delay: var(--nd, 0ms); }
.cv-val { font-family: var(--serif); font-variation-settings: 'opsz' 60; font-size: 19px; fill: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.cv-val.end { font-size: 24px; fill: var(--goldDeep); }
.cv-day { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; fill: var(--ink3); text-transform: uppercase; }
[data-rv].in .cv-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }
[data-rv].in .cv-area, [data-rv].in .cv-node, [data-rv].in .cv-val, [data-rv].in .cv-day { opacity: 1; }
html.still .cv-line { stroke-dashoffset: 0; transition: none; }
html.still .cv-area, html.still .cv-node, html.still .cv-val, html.still .cv-day { opacity: 1; transition: none; }
.curve p { margin: 8px 10px 0; font-size: 13px; line-height: 1.5; color: var(--ink3); }
/* the day one plan */
.d1 { display: grid; gap: 12px; }
.d1 .qcard { padding: 18px; }
.d1 .qcard > p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.d1 .qcard > p b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: var(--page); box-shadow: inset 0 0 0 1px var(--line2); }
.chip .ic { width: 18px; height: 18px; color: var(--forest); }
.steps { counter-reset: st; }
.steps li { counter-increment: st; display: flex; gap: 14px; padding: 13px 0 14px; box-shadow: inset 0 -1px 0 var(--line); }
.steps li::before { content: counter(st); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-variation-settings: 'opsz' 36; font-size: 16px; line-height: 1; color: var(--forest); box-shadow: inset 0 0 0 1px rgba(14, 58, 43, 0.32); font-variant-numeric: lining-nums; }
.steps li div { flex: 1; min-width: 0; align-self: center; }
.days { list-style: none; margin: 8px 0 0; padding: 0; }
.days li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; font-weight: 500; box-shadow: inset 0 -1px 0 var(--line); }
.days li:last-child { box-shadow: none; padding-bottom: 2px; }
.days .ic { width: 20px; height: 20px; color: var(--forest); }
.fineprint { margin: 22px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink3); text-align: center; }
.fineprint a { color: inherit; }

/* ---------- the plan and the checkout ---------- */
.plan-top { text-align: center; }
.plan-top .ring { margin: 0 auto 14px; }
.plan-top h1 { font-size: 32px; margin: 0; }
@media (min-width: 480px) { .plan-top h1 { font-size: 38px; } }
.journey { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 20px; margin: 18px 0 0; padding: 13px 24px 12px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.journey .pt { display: grid; justify-items: center; gap: 4px; }
.journey b { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.journey span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.journey .ar { width: 22px; height: 12px; background: var(--ink3); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.journey-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink3); }
.tailor { margin-top: 22px; padding: 4px 18px; text-align: left; }
.tailor div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; padding: 13px 0; box-shadow: inset 0 -1px 0 var(--line); font-size: 15px; line-height: 1.45; color: var(--ink); }
.tailor div:last-child { box-shadow: none; }
.tailor .cap { font-size: 10.5px; }
.plancard { position: relative; margin-top: 30px; padding: 30px 20px 8px; border-radius: 26px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1.5px var(--forest), 0 0 0 5px rgba(13, 160, 87, 0.08), 0 30px 60px -30px rgba(9, 54, 38, 0.5); }
.plancard .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); height: 28px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); background: linear-gradient(180deg, #1B5A45, #0E3A2B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 16px -8px rgba(9, 54, 38, 0.7); }
.plancard .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.plancard .pname { font-weight: 600; font-size: 19px; line-height: 1.25; }
.plancard .pname small { display: block; margin-top: 4px; font-weight: 500; font-size: 14px; color: var(--ink3); }
.plancard .pprice { text-align: right; white-space: nowrap; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: 40px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.plancard .pprice s { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink3); text-decoration-thickness: 1.5px; }
.plancard.is-offer .tag { background: linear-gradient(180deg, #C9A24A, #A8822E); }
.plancard .pprice small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--forest); }
.plancard .psave { margin: 12px 0 0; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #6B4F12; background: #FBF1D9; box-shadow: inset 0 0 0 1px rgba(168, 130, 46, 0.35); }
.plancard.is-compact { padding-bottom: 20px; }
.pay-head s { color: var(--ink3); font-weight: 500; margin-right: 2px; }
.urgent { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; color: #FBF8F1; background: linear-gradient(180deg, #1B5A45, #0E3A2B); box-shadow: 0 6px 16px -10px rgba(9, 54, 38, 0.7); }
.urgent b { color: #E4CB86; font-weight: 700; }
.urgent i { font-style: normal; font-variant-numeric: tabular-nums; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.whatyouget { margin-top: 26px; padding: 18px 18px 4px; text-align: left; }
.whatyouget .feats { margin-top: 8px; border-top: 0; }
.ended { margin: 0 auto 18px; max-width: 520px; }
.plancard .paylater { margin: 16px 0 0; padding: 11px 14px; border-radius: 13px; font-size: 14.5px; line-height: 1.4; color: var(--ink2); background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.plancard .paylater b { font-weight: 600; color: var(--ink); }
.feats { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feats li { display: flex; align-items: center; gap: 13px; padding: 13px 0; font-size: 15.5px; font-weight: 500; box-shadow: inset 0 -1px 0 var(--line); }
.feats li:last-child { box-shadow: none; }
.feats .ic { width: 21px; height: 21px; color: var(--forest); }
.guar { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; text-align: left; font-size: 14.5px; line-height: 1.45; font-weight: 500; color: var(--ink2); background: var(--page2); box-shadow: inset 0 0 0 1px var(--line); }
.guar svg { flex: 0 0 auto; width: 46px; height: 46px; }
.guar b { display: block; color: var(--ink); font-weight: 600; }
#checkout { margin-top: 18px; }
#checkout:empty { display: none; }
.howin { margin-top: 18px; padding: 18px 18px 6px; text-align: left; }
.trustline { margin: 18px 0 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink3); }
.trustline .ic { width: 15px; height: 15px; }
.notice { margin-top: 12px; padding: 14px 16px; border-radius: 16px; text-align: left; font-size: 14.5px; line-height: 1.5; font-weight: 500; color: var(--ink2); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- after paying (welcome.html): the three steps into the app ---------- */
.qmain.wel { padding-bottom: 64px; }
.wel-top { text-align: center; padding-top: 10px; }
.wel-seal { position: relative; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); background: linear-gradient(180deg, #1B5A45, #0E3A2B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 0 0 8px rgba(13, 160, 87, 0.1), 0 18px 34px -14px rgba(9, 54, 38, 0.6); }
body.quiz .wel-seal .ic { width: 34px; height: 34px; stroke-width: 2.3; }
.wel-seal::before { content: ''; position: absolute; inset: 0; border-radius: 50%; --glow: rgba(13, 160, 87, 0.4); animation: rvLand 1.2s ease-out 0.55s backwards; }
html.still .wel-seal::before { animation: none; }
.wel-top .eyebrow { margin-bottom: 12px; }
.wel-top .sub { max-width: 360px; margin: 0 auto; }
.wel-steps { margin-top: 30px; }
.wel-steps .steps li { padding: 16px 0 17px; }
.wel-steps .steps li b { font-size: 16.5px; }
.wel-steps .steps li::before { margin-top: -2px; }
.wel-steps .btn { display: flex; width: 100%; max-width: 330px; margin-top: 14px; }
.wel-steps .steps li .wel-mail { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 9px 0 7px; padding: 7px 7px 7px 14px; border-radius: 14px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line2); }
.wel-steps .steps li .wel-mail b { display: inline; min-width: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.wel-mail button { flex: 0 0 auto; height: 32px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cream); background: linear-gradient(180deg, #1B5A45, #0E3A2B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24); -webkit-tap-highlight-color: transparent; }
.wel-mail button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.wel .notice { margin-top: 14px; }
.wel .desk { display: none; }
@media (hover: hover) and (pointer: fine) { .wel .desk { display: block; } }

/* ---------- Flora's own checkout (js/pay.js) ----------
   One white card on the cream page. Everything in it is the site's own: the
   serif heading, the cream wells for the fields, the forest button with its
   glow. Stripe's secure fields (the card, Klarna, Apple Pay) are drawn inside
   it in the same colours and type (the APPEARANCE block in js/pay.js mirrors
   the numbers here: 16px corners, a 1px hairline, forest focus ring). */
#checkout .pay { margin-top: 0; }
.pay { position: relative; margin-top: 18px; padding: 22px 18px 20px; border-radius: 26px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); }
.pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pay-head b { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 72; font-size: 25px; line-height: 1.1; letter-spacing: -0.01em; }
.pay-head span { font-size: 13.5px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
/* Apple Pay and Google Pay: Stripe's own buttons, in a pill */
.pay-express { border-radius: 999px; overflow: hidden; }
.pay-wallet { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 17px; background: linear-gradient(180deg, #2A2D31, #0B0C0E); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 22px -12px rgba(0, 0, 0, 0.6); }
.pay-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.pay-f { display: block; margin-top: 14px; }
.pay-f > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink2); }
.pay-in { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--page); color: var(--ink); font: inherit; font-size: 17px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line2); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
input.pay-in { -webkit-appearance: none; appearance: none; }
input.pay-in::placeholder { color: #8D949C; font-weight: 400; opacity: 1; }
@media (hover: hover) { input.pay-in:hover { box-shadow: inset 0 0 0 1px rgba(14, 58, 43, 0.4); } }
input.pay-in:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--forest), 0 0 0 4px rgba(13, 160, 87, 0.12); }
input.pay-in.bad { box-shadow: inset 0 0 0 1.5px var(--coralDeep); }
.pay-f small { display: block; margin-top: 7px; font-size: 13px; line-height: 1.4; color: var(--ink3); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Stripe's fields, and what stands in for them while they load (and in a preview) */
.pay-el { position: relative; margin-top: 14px; min-height: 236px; }
.pay-ghost .pay-f:first-of-type { margin-top: 12px; }
.pay-in.ph { font-weight: 400; color: #8D949C; }
.pay-in i { display: flex; gap: 5px; }
.pay-in i u { display: block; width: 30px; height: 20px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.pay-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-seg div { display: flex; align-items: center; justify-content: center; gap: 9px; height: 52px; border-radius: 16px; font-weight: 600; font-size: 15px; color: var(--ink2); background: var(--page); box-shadow: inset 0 0 0 1px var(--line2); }
.pay-seg div.on { color: var(--forest); background: #F3F8F4; box-shadow: inset 0 0 0 1.5px var(--forest), 0 0 0 4px rgba(13, 160, 87, 0.1); }
.pay-seg small { font-weight: 500; font-size: 12.5px; color: var(--ink3); }
.pay.is-loading .pay-ghost { animation: payWait 1.5s ease-in-out infinite; }
@keyframes payWait { 50% { opacity: 0.5; } }
.pay.is-loading .pay-live { position: absolute; left: 0; right: 0; top: 0; opacity: 0; pointer-events: none; }   /* the real fields arrive behind the stand-ins, then take their place */
.pay:not(.is-loading):not(.is-preview) .pay-ghost { display: none; }
.pay-live { animation: payIn 0.35s ease backwards; }
@keyframes payIn { from { opacity: 0; } }
.pay-msg { margin: 14px 0 0; padding: 11px 14px; border-radius: 13px; font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--coralDeep); background: var(--coralBg); }
.pay.is-preview .pay-msg { color: var(--ink2); background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.pay .btn { display: flex; width: 100%; margin-top: 18px; }
.pay .btn.is-busy::after { display: none; }
.pay-terms { margin: 12px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--ink3); }
.pay-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 13px; font-weight: 500; color: var(--ink3); }
body.quiz .pay-trust .ic { width: 15px; height: 15px; }
html.still .pay.is-loading .pay-ghost, html.still .pay-live { animation: none; }
#checkout .notice { margin-top: 0; }

/* ---------- the direct annual page (plus.html): the link Chris sends ----------
   The same pieces as the quiz's last step, without the quiz. On a wide screen
   the checkout stands beside the plan and stays in view. */
.qmain.buy { padding-bottom: 56px; }
.buy-top { text-align: center; padding-top: 6px; }
.buy-top .eyebrow { margin-bottom: 12px; }
.buy-top h1 { margin: 0 0 10px; }
.buy-top .sub { max-width: 350px; margin: 0 auto; }
.buy .plancard { margin-top: 34px; }
.buy-pay { margin-top: 18px; }
.buy-quiz { margin: 20px 0 0; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
@media (min-width: 980px) {
  .qmain.buy { max-width: 1060px; padding-top: 44px; }
  .buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-areas: 'a pay' 'b pay'; column-gap: 64px; align-items: start; }
  .buy-a { grid-area: a; }
  .buy-b { grid-area: b; }
  .buy-pay { grid-area: pay; margin-top: 0; position: sticky; top: 92px; }
  html.play .buy-pay { position: static; }
  .buy-top { text-align: left; padding-top: 0; }
  .buy-top h1 { font-size: 52px; line-height: 1.04; }
  .buy-top .sub { max-width: 30em; margin: 0; font-size: 18px; }
  .buy-quiz, .buy .fineprint { text-align: left; }
}
