/* ============================================================
   /start/: the web onboarding. Colors, type, and shapes from the
   app's first-run screens (web_onboarding_spec.md section 8):
   the Dark Mode palette on the questions, the premium graphite
   skin on the welcome, the build, the reveal, and the hand-off.
   ============================================================ */

/* The flow's own chrome replaces the site header and footer. They come
   back, with a plain fallback, only if the flow cannot start. */
.js:not(.st-failed) .fm-start .skip-link,
.js:not(.st-failed) .fm-start .site-header,
.js:not(.st-failed) .fm-start .site-footer,
.js:not(.st-failed) .fm-start .start-static,
.st-ready .fm-start .skip-link,
.st-ready .fm-start .site-header,
.st-ready .fm-start .site-footer { display: none; }
.start-static { padding: 72px 0 48px; text-align: center; }
.start-static h1 { font-size: clamp(34px, 5vw, 52px); }
.start-static .lede { margin: 18px auto 0; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--text-2); }

.st {
  --st-canvas: #0F1115;
  --st-card: #16191E;
  --st-card-hi: #1B1F25;
  --st-border: rgba(255, 255, 255, .05);
  --st-shadow: rgba(0, 0, 0, .35);
  --st-text: rgba(255, 255, 255, .95);
  --st-text2: rgba(255, 255, 255, .70);
  --st-text3: rgba(255, 255, 255, .45);
  --st-accent: #00A392;
  --st-accent-rgb: 0, 163, 146;
  --st-dose: #BF5AF2;
  --st-food: #92E82A;
  --st-activity: #FA114F;
  --st-weight: #00D3F2;
  --st-track: #21252C;
  --st-btn: #00A392;
  --st-ease: cubic-bezier(.215, .61, .355, 1);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--st-text);
  font-family: var(--font);
  line-height: 1.3;
}
.st[data-skin="premium"], .pg[data-skin="premium"] {
  --st-card: #171A1F;
  --st-card-hi: #1E2228;
  --st-border: rgba(255, 255, 255, .12);
  --st-text: #F4F6F9;
  --st-text2: rgba(203, 210, 220, .72);
  --st-text3: rgba(169, 178, 191, .54);
  --st-accent: #12C8B2;
  --st-accent-rgb: 18, 200, 178;
}
.pg[data-skin="canvas"] {
  --st-card: #16191E;
  --st-card-hi: #1B1F25;
  --st-border: rgba(255, 255, 255, .05);
  --st-text: rgba(255, 255, 255, .95);
  --st-text2: rgba(255, 255, 255, .70);
  --st-text3: rgba(255, 255, 255, .45);
  --st-accent: #00A392;
  --st-accent-rgb: 0, 163, 146;
}
.st svg, .st img { max-width: none; }

/* Backdrops: the flat canvas with its faint lighting, and the graphite. */
.st-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #0F1115; }
.bg { position: absolute; inset: 0; transition: opacity .35s ease; }
.bg::after { content: ""; position: absolute; inset: 0; }
.bg-canvas { background: radial-gradient(circle 150vmin at 50% 5%, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)), #0F1115; }
.bg-canvas::after { background: radial-gradient(circle 150vmin at 50% 40%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .18)); }
.bg-premium {
  opacity: 0;
  background:
    radial-gradient(circle 140vmin at 50% 2.5%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)),
    linear-gradient(128deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .09) 44%, rgba(255, 255, 255, .04) 60%, rgba(255, 255, 255, 0) 90%),
    linear-gradient(180deg, #262A31 0%, #1A1D23 24%, #12151A 62%, #0A0B0E 100%);
}
.bg-premium::after { background: radial-gradient(circle 135vmin at 50% 45%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .30)); }
.st[data-skin="premium"] .bg-premium { opacity: 1; }

/* Type (FirstRunType) */
.t-front { font: 800 32px/1.15 var(--font-display); letter-spacing: -.5px; color: var(--st-text); }
.t-title { font: 800 28px/1.15 var(--font-display); letter-spacing: -.4px; color: var(--st-text); }
.t-subtitle { font: 400 17px/1.3 var(--font); color: var(--st-text2); }
.t-label { font: 600 17px/1.25 var(--font); color: var(--st-text); }
.t-body { font: 400 15px/1.3 var(--font); color: var(--st-text2); }
.t-caption { font: 500 13px/1.3 var(--font); color: var(--st-text2); }
.t-badge { font: 800 11px/1.2 var(--font); letter-spacing: .6px; color: var(--st-text); }
.t-numeral { font: 800 36px/1.1 var(--font-display); letter-spacing: -.6px; font-variant-numeric: tabular-nums; color: var(--st-text); white-space: nowrap; }
.t-price { font: 800 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--st-text); }
.center { text-align: center; }
.c-food { color: var(--st-food); }
.c-activity { color: var(--st-activity); }
.c-accent { color: var(--st-accent); }
.c-weight { color: var(--st-weight); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { display: inline-flex; flex: none; }
.ico svg { display: block; }

/* Frame: top bar, the sliding stage, the pinned button. */
.st-frame {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  max-width: 592px; margin: 0 auto; padding: 0 16px;
}
.st-top { flex: none; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; height: 44px; margin-top: 8px; }
.st-slot { display: flex; align-items: center; }
.st-slot--end { justify-content: flex-end; }
.st-back {
  width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--st-text2); cursor: pointer;
}
.st-back:hover { color: var(--st-text); background: rgba(255, 255, 255, .06); }
.st-back[hidden], .st-progress[hidden], .st-brand[hidden], .st-mark[hidden] { display: none; }
.st-mid { display: flex; justify-content: center; min-width: 0; }
.st-progress { flex: 1; height: 4px; border-radius: 8px; background: rgba(var(--st-accent-rgb), .25); overflow: hidden; }
.st-progress-fill { height: 100%; width: 0; border-radius: 8px; background: var(--st-accent); transition: width .35s var(--st-ease); }
.st-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--st-text); font: 800 17px/1 var(--font-display); letter-spacing: -.02em; }
.st-brand img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.st-mark { border-radius: 6px; opacity: .9; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }

.st-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; margin: 0 -6px; }
.pg { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 6px; color: var(--st-text); }
.pg-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.pg-inner { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.pg-title { margin-bottom: 8px; outline: none; }
.pg-why { flex: none; padding: 8px 0 0; }
.st-actions { flex: none; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
.st-actions[hidden] { display: none; }
.st-actions.is-hidden { visibility: hidden; }
.st-links { display: flex; flex-direction: column; align-items: center; }
.st-links:empty { display: none; }

.st-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--st-btn); color: #fff;
  font: 600 15px/1 var(--font); cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.st-btn:hover { filter: brightness(1.08); }
.st-btn:active { transform: scale(.985); }
.st-btn:disabled { opacity: .55; cursor: default; }
.st-btn[hidden] { display: none; }
.st-btn--block { margin-top: 4px; }
.text-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 0; background: none; color: var(--st-text); font: 600 15px/1.3 var(--font); cursor: pointer; text-align: center;
}
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-btn.quiet { color: var(--st-text3); font-weight: 500; font-size: 13px; }
.text-btn[hidden] { display: none; }

.st :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st h1[tabindex="-1"]:focus, .st h1[tabindex="-1"]:focus-visible { outline: none; }
.st .sel-card:focus-visible, .st .why:focus-visible { border-radius: 18px; }
.st .st-btn:focus-visible, .st .unit-opt:focus-visible, .st .chip-t:focus-visible, .st .text-btn:focus-visible,
.st .auth-btn:focus-visible, .st .rung:focus-visible, .st .ring-day:focus-visible, .st .st-dot:focus-visible { border-radius: 999px; }
.st .st-back:focus-visible, .st .cmp-handle:focus-visible { border-radius: 50%; }
.st .field-input:focus-visible, .st .bd-select:focus-visible { border-radius: 12px; outline-offset: 1px; }

/* Select cards (OnboardingSelectCard) */
.sel-group { display: flex; flex-direction: column; gap: 8px; }
.sel-card {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 16px; text-align: left;
  background: var(--st-card); border: 2px solid var(--st-border); border-radius: 18px;
  color: var(--st-text); font: inherit; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.sel-card:hover { background: var(--st-card-hi); }
.sel-card.is-on { border-color: var(--st-accent); }
.sel-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sel-ico { display: inline-flex; flex: none; transform: scale(.85); transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.sel-ico.is-on { transform: scale(1); }
.sel-ring { stroke: var(--st-text2); }
.sel-fill, .sel-tick { opacity: 0; }
.sel-fill { fill: var(--st-accent); }
.sel-tick { stroke: #fff; }
.sel-ico.is-on .sel-ring { opacity: 0; }
.sel-ico.is-on .sel-fill, .sel-ico.is-on .sel-tick { opacity: 1; }
.grp-head { padding: 8px 0 0 4px; color: var(--st-text2); }
.grp-head:first-child { padding-top: 0; }
.hint { color: var(--st-accent); }
.hint[hidden] { display: none; }
.tm-note { margin-top: 8px; color: var(--st-text3); }
.gate-body { margin-bottom: 8px; }

/* The "why we ask" banner */
.why {
  display: flex; align-items: flex-start; gap: 8px; padding: 16px;
  background: var(--st-card); border: 1px solid rgba(var(--st-accent-rgb), .6); border-radius: 18px;
}
.why p { flex: 1; }
.why-ico { color: var(--st-accent); margin-top: 1px; }
.why--activity { border-color: rgba(250, 17, 79, .6); }
.why--activity .why-ico { color: var(--st-activity); }
.grow { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease, opacity .26s ease; opacity: 0; }
.grow.is-open { grid-template-rows: 1fr; opacity: 1; }
.grow-in { overflow: hidden; min-height: 0; }

/* Readouts, the unit pill, the tape ruler */
.readout-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.readout { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.readout-unit { color: var(--st-text2); }
.dose-pill { padding: 5px 12px; border-radius: 999px; color: var(--st-text2); background: rgba(255, 255, 255, .05); }
.dose-pill.is-on { color: var(--st-dose); background: rgba(191, 90, 242, .12); }
.st-center-row { display: flex; justify-content: center; }
.units { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.unit-opt {
  min-width: 88px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--st-text2); font: 500 13px/1 var(--font); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.unit-opt.is-on { background: var(--st-card-hi); color: var(--st-text); font-weight: 700; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.to-go { color: var(--st-weight); min-height: 24px; }
.age { min-height: 40px; }

.tape { position: relative; height: 88px; border-radius: 14px; }
.tape:has(.tape-input:focus-visible) { outline: 2px solid #fff; outline-offset: 4px; }
.tape-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tape-view {
  height: 88px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  cursor: grab; touch-action: pan-x; user-select: none; -webkit-user-select: none;
}
.tape-view::-webkit-scrollbar { display: none; }
.tape-view.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.tape-strip { display: flex; height: 100%; width: max-content; }
.tape-spacer { flex: none; }
.tape-ticks { position: relative; flex: none; height: 100%; }
.tape-svg { position: absolute; left: 0; top: 4px; overflow: visible; }
.tape-snaps span { position: absolute; top: 0; width: 1px; height: 1px; scroll-snap-align: center; }
.tk { stroke: rgba(255, 255, 255, .30); stroke-width: 1.5; stroke-linecap: round; }
.tk-medium { stroke: rgba(255, 255, 255, .55); }
.tk-major { stroke: var(--st-text); stroke-width: 2; }
.tk.tk-mark { stroke: var(--st-dose); stroke-width: 2.5; }
.tk-label { fill: var(--st-text2); font: 600 13px var(--font); font-variant-numeric: tabular-nums; }
text.tk-mark { fill: var(--st-dose); }
.tape-needle { position: absolute; left: 50%; top: 6px; width: 4px; height: 48px; margin-left: -2px; border-radius: 2px; background: var(--st-accent); pointer-events: none; box-shadow: 0 0 12px rgba(var(--st-accent-rgb), .45); }
.rungs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rung {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(191, 90, 242, .35);
  background: rgba(191, 90, 242, .08); color: var(--st-text); cursor: pointer;
}
.rung:hover { background: rgba(191, 90, 242, .16); }

/* Shot day ring (ShotDayDial) */
.ring-wrap { display: flex; justify-content: center; padding: 8px 0; }
.ring { position: relative; width: min(300px, 100%); aspect-ratio: 1; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-seg { fill: none; stroke: rgba(250, 17, 79, .35); stroke-linecap: round; cursor: pointer; transition: stroke .2s ease; }
.ring-seg.is-on { stroke: var(--st-dose); }
.ring-day {
  position: absolute; transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; padding: 0 4px;
  border: 0; border-radius: 22px; background: none; color: var(--st-text2); cursor: pointer;
}
.ring-day.is-on { color: var(--st-dose); font-weight: 800; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: none; }
.ring-eyebrow { color: var(--st-text2); }

/* Birthday */
.bd-card { padding: 16px; }
.bd { display: grid; grid-template-columns: 1.7fr .8fr 1.1fr; gap: 8px; }
.bd-select {
  width: 100%; height: 56px; padding: 0 30px 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08);
  background: var(--st-track) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='white' stroke-opacity='.6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 10px center no-repeat;
  color: var(--st-text); font: 600 17px var(--font); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.bd-select option { background: #16191E; color: #fff; }

/* Pace */
.pace-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pace-rate { color: var(--st-weight); }
.pace-date, .muted-2 { color: var(--st-text2); min-height: 21px; }
.pace-weeks { min-height: 20px; color: var(--st-text2); }
.pace { padding-top: 8px; }
.pace-marks { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
.pace-mark { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--st-text3); transition: color .2s ease; }
.pace-mark .t-caption { color: inherit; }
.pace-mark.is-on { color: var(--st-weight); }
.pace-range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; --pct: 50%; }
.pace-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--st-weight) var(--pct), rgba(0, 211, 242, .18) var(--pct)); }
.pace-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--st-weight); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.pace-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(0, 211, 242, .18); }
.pace-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--st-weight); }
.pace-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--st-weight); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.pace-range:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px; }

/* Chips (OnboardingToggleChip) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-t {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 2px solid var(--st-border); border-radius: 999px; background: var(--st-card);
  color: var(--st-text); font: inherit; cursor: pointer; transition: border-color .18s ease, background-color .18s ease;
}
.chip-t .sel-ico { display: none; }
.chip-t.is-on { border-color: var(--st-accent); background: rgba(var(--st-accent-rgb), .14); }
.chip-t.is-on .sel-ico { display: inline-flex; }

/* Cards */
.st-card {
  background: var(--st-card); border: 1px solid var(--st-border); border-radius: 18px;
  box-shadow: 0 4px 18px var(--st-shadow); padding: 4px 16px;
}
.st-pcard {
  background: linear-gradient(180deg, #21252C, #15181C); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .54); padding: 4px 16px;
}

/* Welcome: the tour in a phone over the headline */
.pg-fixed { display: flex; flex-direction: column; height: 100%; }
.pg-fixed--welcome { padding: 4px 0 16px; }
.welcome { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.welcome-title { text-align: center; padding: 16px 0 0; outline: none; }
.tour { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tour-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.tour-track::-webkit-scrollbar { display: none; }
.tour-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.tour-cap { flex: none; height: 84px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-align: center; padding: 0 16px; }
.tour-action { color: var(--st-accent); }
.tour-outcome { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 22em; }
.tour-device-box { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: flex-start; padding-top: 16px; container-type: size; }
/* The device (assets/site.css) sized from one number: as wide as the box allows, or as tall,
   whichever is smaller, so it only ever scales and never changes shape. The 18px leave room for
   its ground shadow, the 92% for its side buttons. */
.tour-device-box .device { --device-w: min(300px, 70vw); }
@supports (width: 1cqh) {
  .tour-device-box .device { --device-w: min(420px, 92cqw, calc((100cqh - 14px) * .4829)); }
}
.dots { flex: none; display: flex; justify-content: center; align-items: center; height: 44px; }
.st-dot { width: 24px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.st-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--st-text3); transition: background-color .2s ease, transform .2s ease; }
.st-dot[aria-current="true"] span { background: var(--st-accent); transform: scale(1.15); }
.st-signin { color: var(--st-text); }

/* Social proof: the before and after rail */
.cmp-rail { display: flex; flex-direction: column; }
.cmp-clip { overflow: hidden; border-radius: 18px; }
.cmp-track { display: flex; transition: transform .45s var(--st-ease); }
.cmp-slide { flex: 0 0 100%; }
.cmp-slide { display: flex; justify-content: center; }
/* The photos' own shape (3:4 portrait), shown whole, at a sensible size, centered. */
.cmp { position: relative; height: clamp(260px, 44vh, 440px); aspect-ratio: 640 / 853; max-width: 100%; overflow: hidden; border-radius: 18px; background: #0B0C0F; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-after-wrap { position: absolute; inset: 0; }
.cmp-chip { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 17, 21, .72); color: var(--st-text); }
.cmp-chip--l { left: 12px; }
.cmp-chip--r { right: 12px; }
.cmp-badge { position: absolute; right: 12px; bottom: 12px; padding: 4px 16px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: var(--st-weight); }
.cmp-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .4); }
.cmp-knob { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.cmp-knob::before, .cmp-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; transform: translateY(-50%); }
.cmp-knob::before { left: 6px; border-right: 6px solid #0F1115; border-left: 0; }
.cmp-knob::after { right: 6px; border-left: 6px solid #0F1115; border-right: 0; }
.pg--socialProof .pg-inner { gap: 16px; }
.legal-foot a { color: var(--st-text2); text-decoration: underline; text-underline-offset: 2px; }
.legal { padding: 4px 16px 16px; }
.legal-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--st-accent); text-decoration: none; }
.legal-link .t-label { color: var(--st-accent); }
.legal-link:hover { opacity: .8; }
.legal-ext { color: var(--st-text3); }
.legal-rule { height: 1px; background: var(--st-border); margin: 12px 0 16px; }
.legal-data { margin-top: 8px; }
.accept { padding-top: 0; }

/* Build */
.pg-fixed--building { justify-content: center; }
.build { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 24px 0; }
.halo { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.halo-glow { position: absolute; inset: 6px; border-radius: 50%; background: rgba(var(--st-accent-rgb), .18); filter: blur(14px); }
.halo svg { position: absolute; inset: 0; }
.halo-track { fill: none; stroke: rgba(var(--st-accent-rgb), .16); stroke-width: 3; }
.halo-fill { fill: none; stroke: var(--st-accent); stroke-width: 3; stroke-linecap: round; }
.halo-orbit { transform-origin: 48px 48px; animation: st-orbit 1.8s linear infinite; }
.halo-orbit circle { fill: var(--st-accent); }
.halo-ico { position: relative; color: var(--st-accent); }
@keyframes st-orbit { to { transform: rotate(360deg); } }
.build-card { width: 100%; padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.bl { display: flex; flex-direction: column; gap: 10px; }
.bl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bl-bar { height: 3px; border-radius: 2px; background: rgba(var(--st-accent-rgb), .16); overflow: hidden; }
.bl-fill { display: block; height: 100%; background: var(--st-accent); transform: scaleX(0); transform-origin: left; }
.bl-check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--st-accent); color: #fff; transform: scale(0); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.bl-check.is-on { transform: scale(1); }

/* The reveal */
.proj { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.chart { margin: 0; padding: 16px; border-radius: 18px; background: #16191E; border: 1px solid rgba(255, 255, 255, .06); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart-title { font: 700 16px/1.2 var(--font); color: rgba(255, 255, 255, .95); }
.chart-chip { padding: 5px 10px; border-radius: 999px; background: #21252C; color: rgba(255, 255, 255, .80); }
.chart-legend { display: flex; gap: 16px; margin: 10px 0 6px; color: rgba(255, 255, 255, .70); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { display: inline-block; width: 18px; height: 0; }
.lg-raw i { border-top: 1px solid rgba(0, 211, 242, .45); position: relative; }
.lg-raw i::after { content: ""; position: absolute; left: 6px; top: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 211, 242, .7); }
.lg-trend i { border-top: 3px dashed var(--st-weight); }
.chart-plot { width: 100%; height: 170px; }
.chart-svg { display: block; overflow: visible; }
.ch-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.ch-ytext, .ch-xtext { fill: rgba(255, 255, 255, .55); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.ch-goal { stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; stroke-dasharray: 4 4; }
.ch-raw { fill: none; stroke: rgba(0, 211, 242, .32); stroke-width: 1; stroke-linejoin: round; }
.ch-dot { fill: rgba(0, 211, 242, .55); }
.ch-trend { fill: none; stroke: var(--st-weight); stroke-width: 3; stroke-dasharray: 7 5; stroke-linecap: round; stroke-linejoin: round; }
.ch-tip { fill: var(--st-weight); stroke: #16191E; stroke-width: 2.5; }
.ch-box rect { fill: #21252C; stroke: rgba(255, 255, 255, .08); }
.ch-box text { fill: rgba(255, 255, 255, .95); font: 700 12px var(--font); font-variant-numeric: tabular-nums; }
.proj-cap { color: var(--st-text2); }
.sec { margin-bottom: 8px; }
.tgts { padding: 4px 16px; }
.tgt { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.tgt-label { flex: 1; color: var(--st-text); }
.tgt-val { display: inline-flex; align-items: baseline; gap: 4px; }
.tgt-num { min-width: 2ch; text-align: right; }
.tgt-unit { color: var(--st-text2); }
.tgt-note { padding: 0 0 8px; }
.trn { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.trn-head { display: flex; align-items: center; gap: 8px; padding: 0 0 4px; }
.trn-note { padding-top: 4px; }
.meals { list-style: none; display: flex; gap: 10px; overflow-x: auto; padding: 0 0 6px; margin: 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.meals::-webkit-scrollbar { display: none; }
.meal { flex: 0 0 172px; scroll-snap-align: start; }
.meal-link { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: inherit; }
.meal-link:hover .meal-name { text-decoration: underline; text-underline-offset: 2px; }
/* The whole dish shows: the photo is contained in a 4:3 frame, never cropped. */
.meal-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0B0C0F; border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 4px; }
.meal-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.meal-name { font: 600 15px/1.3 var(--font); color: var(--st-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meal-facts { font: 500 13px/1.3 var(--font); color: var(--st-text2); }
.meal-facts b { color: var(--st-food); font-weight: 700; }
.hype { margin-top: 8px; }
.confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; width: 100vw; height: 100vh; }

/* Account */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { color: var(--st-text2); }
.field-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .28); color: var(--st-text); font: 400 17px var(--font);
}
.field-input:focus { border-color: var(--st-accent); }
.field-pass { position: relative; }
.field-pass .field-input { padding-right: 52px; }
.field-eye { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--st-text2); cursor: pointer; border-radius: 10px; }
.field-hint { color: var(--st-text3); }
.field-hint[hidden] { display: none; }
.auth-options { display: flex; flex-direction: column; gap: 10px; }
.auth-options[hidden], .email-form[hidden], .signed[hidden], .save-state[hidden] { display: none; }
.auth-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--st-text);
  font: 600 16px/1 var(--font); cursor: pointer; transition: filter .15s ease, opacity .15s ease;
}
.auth-btn:hover { filter: brightness(1.1); }
.auth-btn--google, .auth-btn--apple { background: #fff; color: #1F1F1F; border-color: #fff; }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-btn.is-loading { opacity: .6; }
.auth-ico { display: inline-flex; }
.auth-ico svg { display: block; }
.email-form { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 0; }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin: 0 -12px; }
.form-error { padding: 12px 14px; border-radius: 12px; background: rgba(250, 17, 79, .12); border: 1px solid rgba(250, 17, 79, .4); color: #FFD5DE; font: 500 15px/1.35 var(--font); }
.form-info { padding: 12px 14px; border-radius: 12px; background: rgba(var(--st-accent-rgb), .12); border: 1px solid rgba(var(--st-accent-rgb), .4); color: var(--st-text); font: 500 15px/1.35 var(--font); }
.form-error[hidden], .form-info[hidden] { display: none; }
.signed { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.save-state { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); }
.save-check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--st-accent); color: #fff; }
.honest { color: var(--st-text2); }
.legal-foot { color: var(--st-text3); }
.spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: st-spin .8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.auth-btn .spin { position: absolute; left: 18px; }

/* Purchase */
.plan-card { padding: 18px 16px; }
.plan-card .t-price { margin-top: 4px; font-size: 20px; }

/* Download and sign-in pointers */
.done-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--st-accent); color: #fff; box-shadow: 0 8px 24px rgba(var(--st-accent-rgb), .35); }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 14px; }
.step-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--st-accent-rgb), .16); color: var(--st-accent); font: 800 15px/1 var(--font); }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.step-body .store-badges { margin: 10px 0 0; justify-content: flex-start; }
.qr { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.qr-code { width: 132px; height: 132px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; }
.qr-code svg { width: 100%; height: 100%; }
.send { justify-content: flex-start; padding: 0; margin-top: 4px; color: var(--st-accent); }
.note-ok { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--st-accent-rgb), .12); color: var(--st-accent); }
.note-ok p { color: var(--st-text); }
.pg--download .pg-inner > .text-btn.quiet, .pg--download .pg-inner > .quiet { align-self: flex-start; padding: 0; }

/* /get/ */
.get-hero { text-align: center; }
.get-icon { margin: 0 auto 18px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.get-hero .lede { margin-left: auto; margin-right: auto; }
.get-status { margin-top: 18px; color: var(--text-2); }
.get-status[hidden], .get-qr[hidden] { display: none; }
.get-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; color: var(--text-2); font-size: 15px; }
.get-qr-code { width: 168px; height: 168px; border-radius: 16px; overflow: hidden; background: #fff; }
.get-qr-code svg { width: 100%; height: 100%; }

@media (min-width: 700px) {
  .st-frame { padding: 0 16px; }
  .pg-fixed--welcome { padding-bottom: 8px; }
}
/* Short windows: the words and the spacing give way first; the device scales last. */
@media (max-height: 760px) {
  .tour-cap { height: 66px; }
  .tour-device-box { padding-top: 10px; }
  .welcome-title { padding-top: 10px; font-size: 28px; }
}
@media (max-height: 640px) {
  .tour-cap { height: 54px; gap: 2px; }
  .tour-cap .t-label { font-size: 15px; }
  .tour-device-box { padding-top: 8px; }
  .welcome-title { padding-top: 6px; font-size: 24px; }
  .dots { height: 36px; }
  .pg-fixed--welcome { padding-bottom: 4px; }
}
@media (max-height: 520px) {
  .tour-cap .tour-outcome { -webkit-line-clamp: 1; }
  .welcome-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .halo-orbit { display: none; }
  .st-progress-fill, .cmp-track, .grow, .sel-ico, .bl-check { transition: none; }
}

/* ============================================================
   The paywall (paywall_screen.dart on the premium skin): hero, trial
   timeline, plan cards, the tour in the shared device, benefits,
   the Free vs Pro table, fine print, and a pinned call to action.
   ============================================================ */
.st-top.has-close { grid-template-columns: 64px 1fr auto; }
.st-close {
  min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12); background: #171A1F; color: var(--st-text2);
  font: 600 15px/1 var(--font); cursor: pointer;
}
.st-close:hover { color: var(--st-text); }
.st-close[hidden] { display: none; }
.st .st-close:focus-visible { border-radius: 999px; }
.pg-footer { flex: none; }
.pg-footer[hidden], .pw-bar[hidden] { display: none; }

.pw-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 8px; }
.pw-mark { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1); }
.pw-brand { display: inline-flex; align-items: center; gap: 4px; }
.pw-pro { padding: 2px 7px; border-radius: 7px; background: var(--st-accent); color: #fff; font: 800 11px/1.2 var(--font); letter-spacing: .6px; }
.pw-title { text-align: center; margin: 0; outline: none; }
.pg--paywall .pg-inner { gap: 0; }
.pg--paywall .pg-inner > * + * { margin-top: 24px; }
.pg--paywall .pg-inner > .pw-title { margin-top: 16px; }
.pg--paywall .pg-inner > .pw-sub { margin-top: 4px; }
.pg--paywall .pg-inner > .pw-slot:empty { display: none; }

.pw-timeline { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.pw-rows { list-style: none; margin: 0; padding: 0; }
.pw-row { position: relative; display: flex; gap: 16px; padding-bottom: 16px; }
.pw-row:last-child { padding-bottom: 8px; }
.pw-row:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.pw-disc { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pw-row-text { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.pw-row-body { color: var(--st-text); }
@media (prefers-reduced-motion: no-preference) {
  .pw-row { animation: pw-row-in .32s cubic-bezier(.215, .61, .355, 1) both; animation-delay: calc(var(--i) * 110ms); }
}
@keyframes pw-row-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pw-plans-wrap { display: flex; flex-direction: column; align-items: stretch; }
.pw-plans { display: flex; flex-direction: column; gap: 8px; }
.pw-plan {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; text-align: left; color: var(--st-text); font: inherit; cursor: pointer;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #21252C, #15181C); box-shadow: 0 6px 18px rgba(0, 0, 0, .54);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.pw-plan.is-on { border: 2px solid var(--st-accent); padding: 15px; background: rgba(18, 200, 178, .12); box-shadow: 0 6px 22px rgba(18, 200, 178, .18); }
.pw-plan:disabled { cursor: default; }
.pw-plan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pw-plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pw-chip { padding: 2px 6px; border-radius: 6px; border: 1px solid var(--st-accent); color: var(--st-accent); font: 800 11px/1.2 var(--font); letter-spacing: .6px; white-space: nowrap; }
.pw-chip.is-filled { background: var(--st-accent); color: #fff; }
.pw-plan-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.pw-plan-price .t-body { white-space: nowrap; }
.st .pw-plan:focus-visible { border-radius: 18px; }
.pw-more { align-self: center; color: var(--st-accent); font-weight: 500; margin-top: 4px; }
.pw-more[hidden] { display: none; }
.pw-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; color: var(--st-text2); font: 500 15px/1.35 var(--font); text-align: center; }
.pw-status:empty { display: none; }
.pw-status--error { padding: 12px 14px; border-radius: 12px; background: rgba(250, 17, 79, .12); border: 1px solid rgba(250, 17, 79, .4); color: #FFD5DE; }
.pw-status--ok { padding: 12px 14px; border-radius: 12px; background: rgba(18, 200, 178, .12); border: 1px solid rgba(18, 200, 178, .4); color: var(--st-text); }

.pw-tour { display: flex; flex-direction: column; align-items: stretch; }
.pw-tour-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pw-tour-track::-webkit-scrollbar { display: none; }
.pw-tour-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 16px 28px; scroll-snap-align: center; }
.pw-tour-action { color: var(--st-accent); }
.pw-tour-outcome { max-width: 22em; min-height: 2.5em; }
.pw-device { --device-w: min(240px, 62vw); margin-top: 16px; }

.pw-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pw-benefit { display: flex; align-items: center; gap: 16px; }
.pw-tile { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }

.pw-table { padding: 16px; }
.pw-table table { width: 100%; border-collapse: collapse; }
.pw-th-main { text-align: left; padding-bottom: 8px; }
.pw-th { width: 44px; text-align: center; padding-bottom: 8px; font-weight: 500; }
.pw-td-main { text-align: left; padding: 8px 0; color: var(--st-text); font-weight: 400; }
.pw-table tbody tr + tr > * { border-top: 1px solid rgba(255, 255, 255, .12); }
.pw-cell { width: 44px; text-align: center; vertical-align: middle; }
.pw-yes { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--st-accent); color: #08201C; }
.pw-yes .ico svg { stroke-width: 3; }
.pw-no { display: inline-grid; place-items: center; color: var(--st-text3); }

.pw-details { display: flex; flex-direction: column; gap: 6px; }
.pw-details .t-caption { color: var(--st-text2); }
.pw-legal { text-align: center; color: var(--st-text3); }
.pw-legal a { color: var(--st-text2); font-weight: 600; text-decoration: none; display: inline-block; padding: 12px 8px; }
.pw-legal a:hover { color: var(--st-text); text-decoration: underline; }

.pw-bar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 max(10px, env(safe-area-inset-bottom)); }
.pw-nopay { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--st-text); }
.pw-nopay[hidden] { display: none; }
.pw-nopay .pw-yes { width: 18px; height: 18px; }
.pw-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 20px;
  border: 0; border-radius: 999px; background: #12C8B2; color: #04201C; font: 600 16px/1.2 var(--font); text-align: center; cursor: pointer;
  box-shadow: 0 8px 28px -4px rgba(18, 200, 178, .32); transition: filter .15s ease, transform .15s ease;
}
.pw-cta:hover { filter: brightness(1.06); }
.pw-cta:active { transform: scale(.985); }
.pw-cta:disabled { opacity: .7; cursor: default; }
.st .pw-cta:focus-visible { border-radius: 999px; outline-offset: 3px; }
.pw-barline { color: var(--st-text2); font-size: 14px; }
.note-plan { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--st-accent); }
.note-plan p { color: var(--st-text); }
@media (max-width: 360px) {
  .pw-cta { font-size: 15px; min-height: 50px; padding: 6px 16px; }
  .pw-barline { font-size: 13px; }
  .pw-nopay { font-size: 15px; }
  .pw-plan { gap: 8px; padding: 14px 12px; }
  .pw-plan.is-on { padding: 13px 11px; }
  .pw-plan-price .t-price { font-size: 19px; }
}
@media (max-height: 700px) {
  .pw-cta { min-height: 48px; }
  .pw-bar { gap: 6px; }
}
.pw-store-note { margin-top: 8px; color: var(--st-text2); }
.pw-store-note[hidden] { display: none; }
.pw-bar .pw-status { margin-top: 0; }
