/* MyBetterSelf marketing site - shared stylesheet.
   Palette follows the app's LIGHT "Ocean" shadcn theme (uishadcn,
   openclaw-ocean.css): aliceblue canvas, white cards, slate ink, green primary
   reserved for CTAs + payoff lines (the `--citrus` token NAME is kept so nothing
   downstream moves), per-angle hue on subject words only, darkened for text by
   ink() in lib/hue.mjs. Corners and shadows follow shadcn's radius scale.
   No color-mix() anywhere - tints arrive as plain rgba from build.mjs (older
   webviews drop unsupported declarations silently). */

/* DM Sans, the app's own face (uishadcn's Ocean theme). One variable file covers 400-900. */
@font-face { font-family: 'DM Sans'; font-weight: 100 1000; font-display: swap; src: url('fonts/dm-sans.woff2') format('woff2-variations'), url('fonts/dm-sans.woff2') format('woff2'); }

:root {
  --bg: #f0f8ff;
  --bg-deep: #e3eef9;
  --ink: #1f2937;
  --muted: #4b5563;
  --muted-2: #6b7280;
  /* `--citrus` is the PRIMARY (the token name is kept so nothing downstream
     moves). #16a34a, one step deeper than the app's #22c55e: white button text
     on #22c55e is 2.3:1, on this 3.3:1. As small text use --citrus-text. */
  --citrus: #16a34a;
  --citrus-ink: #ffffff;
  --citrus-text: #15803d;   /* 4.9:1 on --bg */
  --panel: rgba(255, 255, 255, .78);
  --panel-solid: #ffffff;
  --hairline: rgba(15, 23, 42, .10);
  --shell: #111827;
  --angle: #15803d; /* overridden per page, always via ink() in lib/hue.mjs */

  /* The front door's own surfaces. The dialogs are OPAQUE, unlike the panels on
     the page: they hold form fields, and a translucent fill over a moving
     gradient is where a password field stops being readable. */
  --dialog: #ffffff;
  --field: rgba(15, 23, 42, .035);
  --edge: rgba(15, 23, 42, .18);
  /* The page's primary is reserved for CTAs, so an error cannot borrow it. */
  --danger: #dc2626;
}

/* ⛔ FIRST, and it has to stay first. app.js hides things with the `hidden`
   PROPERTY (the claim dialog's close control, the spaces list, the clear
   control), and `hidden` is only a UA rule — so any rule below that sets
   `display` on one of those elements outranks it and the element stays on
   screen with nothing erroring. That is exactly how a 100dvh login wall once
   survived signing in, in the operator console. */
[hidden] { display: none !important; }

/* The /begin journey for habits and goals. No entrance motion: animation in the
   in-app webview is this funnel's worst bug class. Only the build's progress bar
   and the rail's fill move, both as plain width transitions. */
.quiz.goals-signup .wrap { max-width: 640px; }
.g-panel { animation: none !important; }
.g-panel > * { animation: none !important; }
.g-rail { margin: 0 0 22px; }
.g-rail-row { display: grid; grid-template-rows: 28px auto; row-gap: 6px; }
.g-rail .q-back { grid-row: 1; justify-self: start; margin: 0; }
.g-rail nav { grid-row: 2; }
.g-rail ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0; }
.g-seg { display: block; height: 6px; border-radius: 99px; background: rgba(15, 23, 42, .10); overflow: hidden; }
.g-seg i { display: block; height: 100%; width: 0; background: var(--citrus); border-radius: inherit; transition: width .35s ease; }
.g-chapter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-chapter-name { margin-top: 10px; text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--citrus-text); }
.g-options { display: grid; gap: 10px; margin: 22px 0 6px; }
.g-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .g-grid { grid-template-columns: 1fr; } }
.goals-signup .g-option { width: 100%; display: flex; flex-direction: row; align-items: center; gap: 13px; text-align: left; padding: 15px 18px; }
.g-option-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.g-option strong { font-weight: 700; font-size: 16.5px; line-height: 1.4; }
.g-option small { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 3px; font-weight: 450; }
.g-emoji { font-size: 23px; line-height: 1; flex: none; }
.g-option:focus-visible, .g-scale:focus-visible, .g-tier:focus-visible, .g-panel .linkish:focus-visible { outline: 3px solid var(--citrus-text); outline-offset: 3px; }
.g-say { margin: 16px 0 6px; padding: 16px 18px; text-align: left; background: rgba(22, 163, 74, .07); border: 1px solid rgba(22, 163, 74, .32); border-radius: 14px; }
.g-say strong { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.g-say p { margin-top: 4px; color: var(--muted); line-height: 1.55; font-size: 15.5px; }
.g-say-cite { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.g-statement { font-size: clamp(22px, 5.2vw, 30px); }
/* Every question's emoji, inline before its words (Dan, 2026-10-24). */
.g-qemoji { margin-right: .3em; font-weight: 400; letter-spacing: 0; }
.g-qemoji:empty { display: none; }
.g-likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 26px 0 8px; }
.g-scale { height: 60px; font: inherit; font-size: 20px; font-weight: 800; color: var(--ink); background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; transition: border-color .16s, background .16s; }
.g-scale:hover { border-color: rgba(15, 23, 42, .24); }
.g-scale.is-on { border-color: var(--citrus); background: rgba(22, 163, 74, .12); box-shadow: 0 0 0 1px var(--citrus) inset; }
.g-likert-ends { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted-2); margin-bottom: 4px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.g-chip { padding: 7px 13px; border-radius: 99px; background: var(--panel-solid); border: 1px solid var(--hairline); font-size: 14px; font-weight: 650; line-height: 1.3; }
/* "You're in the right place": a pin at the start of the path, the flag at its end. */
.g-here { position: relative; max-width: 340px; margin: 4px auto 18px; }
.g-here svg { display: block; width: 100%; height: auto; }
.g-here span { position: absolute; transform: translateX(-50%); font-size: 13px; font-weight: 800; white-space: nowrap; }
.g-here-you { left: 20%; top: 88%; color: var(--citrus-text); }
.g-here-goal { left: 82%; top: 36%; color: var(--muted); }
.g-welcome-line { font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: 0 auto 10px; max-width: 34ch; }
/* "Built on proven science": the authority beat. The universities read as a logo bar, in serif. */
.g-expert-stat { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 12px; padding: 14px 18px; text-align: left; background: rgba(22, 163, 74, .07); border: 1px solid rgba(22, 163, 74, .32); border-radius: 14px; }
.g-expert-stat b { flex: none; font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--citrus-text); }
.g-expert-stat span { max-width: 24ch; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.g-expert-list { list-style: none; margin: 0 0 18px; padding: 2px 18px; text-align: left; background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: 14px; }
.g-expert-list li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hairline); }
.g-expert-list li:first-child { border-top: 0; }
.g-expert-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; font-size: 22px; line-height: 1; background: rgba(22, 163, 74, .08); border-radius: 12px; }
.g-expert-list small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--citrus-text); }
.g-expert-list strong { display: block; margin-top: 1px; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.g-expert-list p { margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.q-card.g-expert-coach { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 15px 18px; margin: 0 0 8px; }
.g-expert-coach > span { font-size: 26px; line-height: 1; }
.g-expert-coach strong { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.g-expert-coach p { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.g-bars { display: grid; gap: 14px; margin: 24px 0 16px; text-align: left; }
.g-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.g-bar > span:first-child { grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: var(--muted); }
.g-bar-track { height: 14px; background: rgba(15, 23, 42, .08); border-radius: 99px; overflow: hidden; }
.g-bar-track i { display: block; height: 100%; background: var(--citrus); border-radius: inherit; }
.g-bar b { font-size: 20px; font-weight: 900; color: var(--citrus-text); }
.g-bar.is-dim .g-bar-track i { background: #94a3b8; }
.g-bar.is-dim b { color: var(--muted-2); }
.g-fact { font-size: 16.5px; line-height: 1.55; color: var(--ink); margin: 6px 0 2px; }
.g-beat .pl-cite { margin-bottom: 18px; }
.g-fig { margin: 20px 0 10px; padding: 18px; background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: 14px; }
.g-fig svg { width: 100%; height: auto; display: block; }
.g-fig-key { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.g-fig-key i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: #fb7185; margin-right: 6px; vertical-align: middle; }
.g-fig-key i.is-win { background: linear-gradient(90deg, #2dd4bf, #059669); }
.g-next-card { padding: 16px 20px; }
.g-next-card p:not(.q-mini-head) { color: var(--muted); line-height: 1.55; }
.g-next-card .g-next-list { gap: 8px; margin: 10px 0 12px; }
.g-next-card .g-next-list li { font-size: 15.5px; }
.g-heard { list-style: none; margin: 18px 0; padding: 2px 18px; text-align: left; background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: 14px; }
.g-heard li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline); line-height: 1.4; }
.g-heard li:first-child { border-top: 0; }
.g-heard span { font-size: 13.5px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.g-heard strong { font-size: 16px; font-weight: 650; color: var(--ink); }
@media (max-width: 420px) { .g-heard li { grid-template-columns: 1fr; gap: 2px; } }
.g-progress { display: grid; gap: 16px; margin: 10px 0 24px; text-align: left; }
.g-progress-row { animation: g-bar-in .3s ease-out; }
@keyframes g-bar-in { from { opacity: 0; transform: translateY(6px); } }
.g-progress-row.is-done .g-stage-pct { color: var(--citrus-text); }
.g-progress-row.is-done .g-stage-pct::before { content: '✓ '; }
.g-progress-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; margin-bottom: 8px; }
.g-progress-track { height: 10px; border-radius: 99px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.g-progress-track i { display: block; height: 100%; width: 0; background: var(--citrus); border-radius: inherit; transition: width .18s linear; }
.g-wait { text-align: left; padding: 16px 20px; }
.g-wait-stat { font-size: 28px; font-weight: 900; color: var(--citrus-text); letter-spacing: -.02em; }
.g-wait p:not(.q-mini-head):not(.g-wait-stat):not(.pl-cite) { line-height: 1.55; }
.g-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .45); }
.g-modal-card { width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 22px; text-align: center; box-shadow: 0 20px 60px rgba(15, 23, 42, .25); }
.g-modal-kicker { font-size: 14px; color: var(--muted); }
.g-modal-q { font-size: 20px; font-weight: 800; margin: 6px 0 18px; line-height: 1.3; }
.g-modal-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-modal-opts .q-opt { justify-content: center; }
.g-modal-phone { display: grid; gap: 10px; }
/* the WhatsApp number: one white field, a phone glyph inside its left edge, text left-aligned */
.g-phone-field { position: relative; display: block; margin-top: 2px; }
.g-phone-field svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #94a3b8; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; transition: stroke .15s; }
.g-modal-phone input { width: 100%; height: 54px; padding: 0 16px 0 46px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; letter-spacing: .02em; text-align: left; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.g-modal-phone input::placeholder { color: #a8b1bd; font-weight: 400; letter-spacing: .02em; opacity: 1; }
.g-modal-phone input:focus { outline: none; border-color: #059669; box-shadow: 0 0 0 3px rgba(52, 211, 153, .3); }
.g-phone-field:focus-within svg { stroke: #059669; }
.g-modal-err { min-height: 0; margin: 0; font-size: 14px; color: #b91c1c; }
.g-modal-err:empty { display: none; }
.g-modal-skip { justify-self: center; min-height: 44px; background: none; border: 0; padding: 6px 14px; font: inherit; font-size: 16px; font-weight: 500; color: var(--muted); text-decoration: underline; cursor: pointer; }
.g-plan-card { text-align: left; background: #fff; border: 1px solid rgba(22, 163, 74, .35); border-radius: 16px; padding: 4px 20px 6px; margin: 22px 0 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.g-plan-top { padding: 16px 0 14px; border-bottom: 1px solid var(--hairline); }
.g-plan-name { font-size: 21px; font-weight: 900; letter-spacing: -.01em; line-height: 1.25; }
.g-plan-for { font-size: 13.5px; color: var(--citrus-text); font-weight: 700; margin-top: 3px; }
.g-plan-row { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.g-plan-row:last-child { border-bottom: 0; }
.g-plan-row .q-mini-head { margin-bottom: 6px; }
.g-plan-row p { line-height: 1.55; color: var(--muted); }
.g-plan-row .g-chips { justify-content: flex-start; margin: 0; }
.g-first strong { display: block; font-size: 16.5px; color: var(--ink); }
.g-first p { margin: 4px 0 8px; }
.g-minutes { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: rgba(22, 163, 74, .10); color: var(--citrus-text); font-size: 13px; font-weight: 800; }
.g-coach-note { font-style: italic; color: var(--ink) !important; }
.g-coach-bits { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g-coach-bits li { font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--hairline); color: var(--muted); }
/* "Your personal plan is ready": Deepstash's page, in our palette. One white card. */
.g-ready { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 28px 22px 26px; margin: 0 0 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.g-ready .q-title { font-size: clamp(30px, 7.6vw, 40px); line-height: 1.15; }
.g-ready > .q-sub { margin-top: 10px; }
.g-growth { margin: 18px 0 8px; }
.g-growth-plot { padding-top: 58px; }
.g-growth-svg { position: relative; }
.g-growth-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-growth-now, .g-growth-goal { position: absolute; transform: translateY(-100%); padding: 5px 10px; border-radius: 8px; color: #fff; font-size: 13.5px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.g-growth-now { left: 0; top: calc(82% - 16px); background: #9ca3af; }
.g-growth-goal { right: 0; top: calc(23.5% - 16px); background: #f59e0b; max-width: 62%; white-space: normal; text-align: center; }
.g-growth-now::after, .g-growth-goal::after { content: ''; position: absolute; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.g-growth-now::after { left: 10px; }
.g-growth-goal::after { right: 12px; }
.g-growth-dates { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; font-size: 16px; color: #22a05a; }
.g-growth-dates span:last-child { color: #d97706; }
.g-platforms { display: flex; align-items: center; gap: 14px; text-align: left; margin: 20px 0 6px; }
.g-platform-icons { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 12px; color: var(--ink); }
.g-platforms p { flex: 1; font-size: 16.5px; line-height: 1.4; color: var(--ink); }
/* "Be the disciplined person others envy": Deepstash's before/after split as two
   photographs bleeding to the card's edges, a label over each photo's foot, then the
   activity line beneath. The diagonal leans the other way from Deepstash's so both
   labels sit clear of it at the bottom. */
.g-outcome { padding-bottom: 0; overflow: hidden; }
.g-versus { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 22px -22px 0; height: clamp(270px, 72vw, 370px); text-align: left; }
.g-versus > div { position: relative; overflow: hidden; }
.g-vs-before { background: #1e293b; }
.g-versus > .g-vs-after { background: #fde68a; clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%); margin-left: -18%; }
.g-vs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.g-vs-before .g-vs-photo { filter: saturate(.55); }
.g-vs-after .g-vs-photo { object-position: 58% 25%; }
.g-vs-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 16px 16px; background: linear-gradient(rgba(15, 23, 42, 0), rgba(15, 23, 42, .86) 58%); }
.g-vs-after .g-vs-label { padding-left: calc(18% + 14px); }
.g-vs-big { font-size: clamp(19px, 5vw, 25px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.g-vs-after .g-vs-big { color: #34d399; }
.g-vs-small { margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; }
.g-activity { margin: 0 -22px; padding: 18px 22px 20px; background: var(--panel-solid); border-top: 1px solid var(--hairline); }
.g-activity.is-sample { outline: 2px dashed #f59e0b; outline-offset: -6px; }
.g-activity-head { font-size: 16.5px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.g-activity-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff; font-size: 16px; }
.g-activity-row span:first-child { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-activity-row span:last-child { flex: none; font-size: 15px; color: var(--muted); white-space: nowrap; }
.g-road-head { text-align: left; }
.g-reveal .q-road { margin-top: 12px; }
.g-feeling { font-size: 18px; font-weight: 800; color: var(--citrus-text); margin: 0 0 22px; line-height: 1.4; }
.g-stats { display: grid; gap: 12px; margin: 22px 0; text-align: left; }
.g-stat { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.g-stat b { display: block; font-size: 30px; font-weight: 900; color: var(--citrus-text); letter-spacing: -.02em; line-height: 1.1; }
.g-stat p { line-height: 1.5; color: var(--ink); margin: 4px 0 4px; }
.g-proof-count { font-weight: 800; font-size: 17px; color: var(--citrus-text); margin-bottom: 18px; }
.g-quotes { display: grid; gap: 12px; margin: 0 0 22px; text-align: left; }
.g-quote { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.g-quote blockquote { font-size: 16px; line-height: 1.55; }
.g-quote figcaption { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
/* The daily goal reads like Deepstash's: the label left, "5 min/day" right. */
[data-g-options="capacity"] .g-option-text { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
[data-g-options="capacity"] .g-option small { margin-top: 0; font-size: 16px; color: var(--muted); white-space: nowrap; }
/* The community screen: the ringed map fills the middle, the claim sits below it. */
.g-community-art { display: flex; align-items: center; justify-content: center; min-height: clamp(220px, 42vh, 380px); margin: 0 -6px 8px; }
.g-community-art img { width: 100%; max-width: 560px; height: auto; display: block; }
.g-community .q-head { font-size: clamp(26px, 6.4vw, 34px); }
/* A notable person (QUOTES in lib/goals.mjs): portrait, the quote large in a
   system serif, name and role, then the brief deliberately quieter beneath. */
.g-person { margin: 4px 0 18px; text-align: center; }
.g-portrait { display: block; width: 132px; height: 132px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--hairline), 0 12px 30px rgba(15, 23, 42, .14); background: var(--panel-solid); }
.g-portrait.g-cover { width: 120px; height: auto; aspect-ratio: 240 / 363; border-radius: 3px 6px 6px 3px; border: 0; box-shadow: 0 0 0 1px var(--hairline), 0 14px 30px rgba(15, 23, 42, .18); }
.g-person-quote { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(22px, 5.6vw, 29px); font-weight: 600; line-height: 1.38; letter-spacing: -.005em; color: var(--ink); max-width: 560px; margin: 0 auto; }
.g-person figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.g-person figcaption strong { font-size: 16px; font-weight: 800; }
.g-person figcaption span { font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 420px; margin: 2px auto 0; }
.g-person-brief { max-width: 520px; margin: 0 auto 22px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 19px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.g-person-panel .pl-cite { margin-bottom: 6px; }
.g-dots { list-style: none; display: flex; gap: 6px; justify-content: center; margin: 6px 0 8px; }
.g-dots li { width: 8px; height: 8px; border-radius: 99px; background: rgba(15, 23, 42, .18); transition: width .2s; }
.g-dots li.is-on { background: var(--citrus); width: 22px; }
/* ── The offer: Deepstash's paywall and checkout on one page (2026-10-23) ──
   Their red is our green; every shape, order and proportion is theirs. */
.g-offer-panel { text-align: left; }
/* The promo ticket: notched sides, a dashed tear line, the code and the clock. */
.g-ticket { position: relative; margin: 0 0 26px; padding: 18px 20px 16px; border-radius: 16px; background: var(--citrus); color: #fff; box-shadow: 0 0 0 2px #15803d inset; }
.g-ticket::before, .g-ticket::after { content: ''; position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; background: var(--bg); border: 2px solid #15803d; border-radius: 50%; }
/* Only the inner half shows, so each reads as a bite out of the ticket. */
.g-ticket::before { left: -19px; clip-path: inset(0 0 0 50%); }
.g-ticket::after { right: -19px; clip-path: inset(0 50% 0 0); }
.g-ticket-top { display: flex; align-items: center; gap: 18px; padding: 0 10px 14px; border-bottom: 2px dashed rgba(255, 255, 255, .55); margin: 0 6px 14px; }
.g-ticket-top svg { flex: none; color: #fff; }
.g-ticket-title { font-size: clamp(22px, 5.8vw, 28px); font-weight: 900; line-height: 1.12; color: #fff; letter-spacing: -.01em; }
.g-ticket-bottom { display: flex; gap: 12px; justify-content: center; }
.g-ticket-code { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 10px; border-radius: 12px; background: #15803d; box-shadow: 0 0 0 2px #166534 inset; font-size: clamp(14.5px, 4.1vw, 20px); font-weight: 800; white-space: nowrap; }
.g-ticket-check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #15803d; display: grid; place-items: center; font-size: 15px; font-weight: 900; }
.g-ticket-timer { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 16px; border-radius: 12px; background: #15803d; box-shadow: 0 0 0 2px #166534 inset; color: #fff; line-height: 1.05; }
.g-ticket-timer b { font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.g-ticket-timer small { font-size: 13px; font-weight: 600; }
.g-ticket.is-expired { background: #6b7280; box-shadow: 0 0 0 2px #4b5563 inset; }
.g-ticket.is-expired .g-ticket-code, .g-ticket.is-expired .g-ticket-timer { background: #4b5563; box-shadow: none; }
.g-ticket.is-expired .g-ticket-code span:last-child { text-decoration: line-through; }
.g-ticket.is-expired .g-ticket-check { color: #4b5563; }
.g-sticky { position: fixed; z-index: 55; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px max(16px, calc(50vw - 300px)); background: var(--citrus); box-shadow: 0 8px 22px rgba(15, 23, 42, .18); }
.g-sticky .g-ticket-timer { padding: 4px 14px; }
.g-sticky-go { font: inherit; font-size: 18px; font-weight: 900; color: #fff; background: #15803d; border: 0; box-shadow: 0 0 0 2px #166534 inset; border-radius: 12px; padding: 12px 26px; cursor: pointer; }
.g-choose-head { text-align: center; font-size: clamp(24px, 6vw, 30px); font-weight: 800; margin: 0 0 22px; }
/* The plan cards. */
.g-tiers { display: grid; gap: 14px; margin: 0 0 18px; }
.g-tier { position: relative; display: block; width: 100%; font: inherit; text-align: left; color: var(--ink); background: #fff; border: 1.5px solid var(--hairline); border-radius: 18px; padding: 0; cursor: pointer; overflow: hidden; transition: border-color .16s, background .16s; }
.g-tier.is-on { border-color: var(--citrus); background: #ecfdf3; }
.g-tier-badge { display: block; text-align: center; padding: 7px; background: var(--citrus); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.g-tier-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 16px; }
.g-tier-left { display: flex; gap: 14px; align-items: center; min-width: 0; }
.g-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(15, 23, 42, .18); background: #fff; }
.g-tier.is-on .g-radio, .g-method.is-on .g-radio { border-color: var(--citrus); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--citrus); }
.g-tier-name { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.g-tier-name strong { font-size: 19px; font-weight: 600; }
.g-save { white-space: nowrap; padding: 3px 11px; border-radius: 8px; background: rgba(15, 23, 42, .07); color: var(--citrus-text); font-size: 15px; font-weight: 600; text-transform: uppercase; }
.g-tier.is-on .g-save { background: var(--citrus); color: #fff; }
.g-tier-price { font-size: 16px; color: var(--muted); }
.g-tier-price s { margin-right: 5px; }
.g-tier-day { display: flex; align-items: flex-start; gap: 8px; flex: none; color: var(--muted-2); }
.g-tier.is-on .g-tier-day { color: var(--ink); }
.g-day-was { margin-top: 10px; font-size: 15px; text-decoration-color: #dc2626; }
.g-day-fig { display: flex; align-items: flex-start; }
.g-day-sym { font-size: 15px; margin: 10px 2px 0 0; }
.g-day-whole { font-size: 64px; font-weight: 500; line-height: .9; letter-spacing: -.03em; }
.g-day-tail { display: flex; flex-direction: column; margin: 6px 0 0 4px; }
.g-day-pence { font-size: 17px; font-weight: 600; }
.g-day-per { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }
/* Select payment method: one card per method, the chosen one open. */
.g-pay { padding-top: 22px; border-top: 1px solid var(--hairline); margin-top: 8px; }
.g-pay-head { font-size: 22px; font-weight: 800; margin: 0 0 18px; color: var(--ink); }
.g-methods { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.g-method { background: #fff; border: 1.5px solid var(--hairline); border-radius: 18px; overflow: hidden; }
.g-method[data-g-method="apple_pay"] { order: 1; } .g-method[data-g-method="google_pay"] { order: 3; } .g-method[data-g-method="link"] { order: 5; } .g-method[data-g-method="paypal"] { order: 6; } .g-method[data-g-method="card"] { order: 7; }
.g-method-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 16px; font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.g-method-head strong { flex: 1; font-size: 18px; font-weight: 800; white-space: nowrap; }
@media (max-width: 420px) { .g-method-head { gap: 10px; padding: 18px 12px; } .g-method-head .g-mark { min-width: 38px; height: 27px; padding: 0 5px; font-size: 12.5px; } }
.g-method-body { max-height: 0; overflow: hidden; padding: 0 16px; }
.g-method.is-on .g-method-body { max-height: none; overflow: visible; padding-bottom: 18px; }
.g-ticks { list-style: none; display: grid; gap: 6px; margin: 0 0 14px; text-align: left; }
.g-ticks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.g-ticks li::before { content: '\2713'; position: absolute; left: 2px; top: 0; color: var(--citrus-text); font-weight: 700; }
/* The shared wallet body sits right under the chosen wallet's card (order), and
   joins it visually; collapsed (never display:none) while card is chosen. */
.g-method.is-on { border-color: var(--citrus); }
.g-method .wallet-btn { width: 100%; margin-bottom: 8px; }
/* PayPal by redirect (assets/checkout.js): our own gold button in the row, sized like Stripe's. */
.g-method .g-paypal-go { height: 52px; border-radius: 10px; }
.g-method .g-paypal-go .wallet-logo-paypal { width: 92px; height: 28px; }
.g-method .g-paypal-go:disabled { opacity: .7; cursor: progress; }
.g-pay-failed { margin: -6px 0 16px; padding: 14px 16px; border-radius: 14px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 15.5px; line-height: 1.5; }
.g-card-form { padding: 14px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--panel-solid); margin-bottom: 14px; }
.g-card-label { font-size: 15px; color: var(--muted-2); margin-bottom: 10px; }
.g-confirm { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.g-ssl { margin-top: 12px; text-align: center; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.g-marks { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.g-mark { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 44px; height: 30px; padding: 0 7px; border: 1.5px solid #111827; border-radius: 6px; background: #fff; color: #111827; font-size: 14px; font-weight: 600; line-height: 1; }
.g-mark-google { border-radius: 99px; border-color: #5f6368; color: #5f6368; }
.g-g { font-weight: 800; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 2px; }
.g-mark-link { border: 0; background: #00d66f; color: #011e0f; font-weight: 800; gap: 4px; }
.g-mark-paypal { border: 0; background: #ffc439; color: #003087; font-style: italic; font-weight: 800; }
.g-mark-visa { color: #1a1f71; font-style: italic; font-weight: 900; letter-spacing: .02em; }
.g-mark-mc { padding: 0 4px; }
.g-mark-amex { background: #2e77bc; border-color: #2e77bc; color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .04em; }
.g-renewal { margin: 16px 0 22px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--muted); }
.g-unavailable { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--hairline); line-height: 1.55; }
.g-guarantee { position: relative; text-align: left; background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 24px 22px; margin: 0 0 24px; }
.g-guarantee h3 { font-size: clamp(22px, 5.6vw, 27px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; padding-right: 64px; }
.g-guarantee p { font-size: 17px; color: var(--ink); line-height: 1.55; }
.g-rosette { position: absolute; top: -12px; right: 14px; }
.g-stripe-row { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 0 30px; }
.g-powered { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 18px; border: 1.5px solid #111827; border-radius: 8px; font-size: 16px; color: #111827; background: #fff; }
.g-startover { margin: 14px 0 0; text-align: center; font-size: 13px; }
.g-startover a { color: inherit; opacity: .65; text-decoration: underline; }
.g-powered b { font-size: 21px; font-weight: 900; letter-spacing: -.04em; }
.g-stripe-row .g-marks { justify-content: center; }
.g-stripe-row .g-mark { height: 26px; min-width: 40px; font-size: 12.5px; }
.g-laurel { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px -22px 26px; padding: 24px 12px; background: #fff; }
.g-laurel svg:last-child { transform: scaleX(-1); }
.g-laurel p { max-width: 190px; text-align: center; font-size: 22px; font-weight: 800; line-height: 1.2; color: #6b7280; }
.g-section-head { font-size: clamp(22px, 5.6vw, 28px); font-weight: 800; letter-spacing: -.01em; margin: 34px 0 18px; text-align: center; }
/* The app, as Deepstash's phone carousel: swipe, snap, dots. */
.g-shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18% 12px; margin: 0 -22px; scrollbar-width: none; }
.g-shots::-webkit-scrollbar { display: none; }
.g-shot { flex: none; width: 64%; scroll-snap-align: center; text-align: center; }
.g-shot-phone { aspect-ratio: 9 / 18; border: 7px solid #111827; border-radius: 30px; overflow: hidden; background: #111827; box-shadow: 0 14px 30px rgba(15, 23, 42, .18); }
.g-shot-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: 22px; }
.g-shot figcaption { margin-bottom: 12px; font-size: 18px; font-weight: 800; color: var(--citrus-text); }
.g-shot-dots { margin: 10px 0 26px; }
/* The tinted boxes: what you get (green), the FAQ (yellow), the reviews (blue). */
.g-box { border-radius: 20px; padding: 26px 20px; margin: 0 0 22px; border: 1.5px solid; }
.g-box h3 { text-align: center; font-size: clamp(22px, 5.6vw, 28px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.g-box-auto { background: #fff; border-color: var(--hairline); }
.g-auto { display: grid; gap: 18px; text-align: left; }
.g-auto-row { display: flex; gap: 14px; align-items: flex-start; }
.g-auto-row > span { font-size: 26px; line-height: 1.2; flex: none; }
.g-auto-row strong { display: block; font-size: 17.5px; font-weight: 800; margin-bottom: 3px; }
.g-auto-row p { color: var(--muted); line-height: 1.55; }
.g-box-get { background: #f0fdf4; border-color: #4ade80; }
.g-box-get .g-ticks li { font-size: 18px; padding-left: 34px; }
.g-box-get .g-ticks li::before { font-size: 20px; color: #16a34a; }
.g-box-faq { background: #fffbeb; border-color: #fcd34d; }
.g-box-love { background: #eff6ff; border-color: #93c5fd; }
.g-faq { display: grid; gap: 10px; text-align: left; }
.g-panel .g-faq details { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 0; margin: 0; line-height: 1.5; }
.g-faq details summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; position: relative; padding: 18px 48px 18px 18px; }
.g-faq details summary::-webkit-details-marker { display: none; }
.g-faq details summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.g-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.g-faq p { padding: 0 18px 18px; color: var(--muted); line-height: 1.6; }
.g-box-love .g-quote { border-radius: 18px; padding: 18px 20px; }
.g-box-love .g-quote-top figcaption { text-align: left; color: var(--muted) !important; font-size: 16px; }
/* The plan choice again, on a dark card, as Deepstash closes. */
.g-dark { margin: 34px 0 10px; padding: 26px 12px 22px; border-radius: 22px; background: #0f172a; color: #f8fafc; }
.g-dark > h3 { text-align: center; font-size: clamp(24px, 6vw, 30px); font-weight: 800; margin-bottom: 20px; color: #fff; }
.g-dark .g-tier { background: #1e293b; border-color: #334155; color: #f8fafc; }
.g-dark .g-tier.is-on { background: #052e16; border-color: #22c55e; }
.g-dark .g-tier-badge { background: #22c55e; color: #052e16; }
.g-dark .g-radio { background: transparent; border-color: #475569; }
.g-dark .g-tier.is-on .g-radio { border-color: #22c55e; box-shadow: inset 0 0 0 4px #052e16, inset 0 0 0 12px #22c55e; }
.g-dark .g-save { background: #334155; color: #4ade80; }
.g-dark .g-tier.is-on .g-save { background: #22c55e; color: #052e16; }
.g-dark .g-tier-price, .g-dark .g-tier-day { color: #94a3b8; }
.g-dark .g-tier.is-on .g-tier-day { color: #fff; }
.g-dark .g-renewal { color: #cbd5e1; }
.g-dark .g-guarantee { background: #1e293b; border-color: #334155; }
.g-dark .g-guarantee p, .g-dark .g-guarantee h3 { color: #f8fafc; }
.g-dark .g-powered { background: transparent; border-color: #f8fafc; color: #f8fafc; }
.g-dark .g-stripe-row { margin-bottom: 4px; }
.g-dark .g-stripe-row > .g-marks { display: none; }
@media (max-width: 420px) { .g-tier-body { padding: 16px 12px; gap: 6px; } .g-tier-left { gap: 10px; } .g-day-whole { font-size: 56px; } .g-dark .g-day-whole { font-size: 50px; } .g-day-was { font-size: 13.5px; } }
.g-panel textarea { width: 100%; padding: 14px; font: inherit; font-size: 17px; color: var(--ink); background: white; border: 1px solid var(--hairline); border-radius: 10px; resize: vertical; }
.g-panel .form-status { margin: 12px 0; }
.g-panel .form-status:empty { margin: 0; }
.g-panel .linkish { min-height: 36px; }
.g-panel details { margin-top: 24px; line-height: 1.65; }
.g-panel details summary { cursor: pointer; font-size: 14px; }
.g-panel details form { display: grid; gap: 10px; margin: 18px 0; }
.g-panel details input { font: inherit; font-size: 17px; padding: 12px; width: 100%; border: 1px solid var(--hairline); border-radius: 8px; }
.g-legal { margin-top: 30px; }
.g-legal a { display: inline-block; padding: 8px 4px; }
/* ── The goal interview (2026-10-23) ─────────────────────────────────────── */
/* The goal pill: their goal and date above every interview screen once set. */
.g-goal-pill { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin: -6px auto 18px; padding: 8px 14px; max-width: 34rem; border-radius: 99px; background: rgba(22, 163, 74, .07); border: 1px solid rgba(22, 163, 74, .28); font-size: 14px; line-height: 1.35; }
.g-pill-label { font-weight: 800; color: var(--ink); }
.g-pill-by { color: var(--muted); }
.g-goal-pill .linkish { min-height: 0; font-size: 13.5px; padding: 2px 0; }
/* The goal screen: preset cards two across, their own words underneath. */
.g-goal-grid { grid-template-columns: 1fr 1fr; }
.g-goal-grid .g-option { padding: 13px 14px; gap: 10px; }
.g-goal-grid .g-option strong { font-size: 15.5px; line-height: 1.3; }
@media (max-width: 380px) { .g-goal-grid { grid-template-columns: 1fr; } }
/* Where did you hear about us: eleven short sources, two across (Dan, 2026-10-28); an odd last card spans the row. */
.g-options[data-g-options="hear"] { grid-template-columns: 1fr 1fr; }
.g-options[data-g-options="hear"] .g-option { padding: 13px 14px; gap: 10px; }
.g-options[data-g-options="hear"] .g-option strong { font-size: 15.5px; line-height: 1.3; }
.g-options[data-g-options="hear"] .g-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 340px) { .g-options[data-g-options="hear"] { grid-template-columns: 1fr; } }
.g-detail, .g-own { margin-top: 16px; }
/* sits with the cards: the grid's 6px bottom margin + 4px = its 10px gap */
.g-own-open { margin-top: 4px; }
.g-goal-panel .g-own-open { padding: 13px 14px; gap: 10px; }
.goals-signup .g-own-open { border-style: dashed; }
.g-own-open[aria-expanded="true"] small { display: none; }
.g-detail label small, .g-own label small { font-weight: 500; color: var(--muted-2); }
.g-own textarea { min-height: 3.4em; }
/* A goal question: the wait while the set is written, then its own widget. */
.g-ask-wait { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px 0; color: var(--muted); font-weight: 650; }
.g-ask-wait p { margin: 0; }
.g-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(22, 163, 74, .2); border-top-color: var(--citrus); animation: g-spin .8s linear infinite; flex: none; }
@keyframes g-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .g-spinner { animation-duration: 2.4s; } }
.g-multi-note { margin: 14px 0 -10px; text-align: left; }
.g-other, .g-number input, .g-body input { height: 54px; padding: 8px 14px; border: 1px solid var(--edge); border-radius: 14px; background: var(--field); color: var(--ink); font: inherit; font-size: 17px; }
.g-other { width: 100%; margin-top: 10px; }
.g-number { display: flex; align-items: center; gap: 10px; margin: 24px auto 8px; max-width: 18rem; }
.g-number input { flex: 1; min-width: 0; }
.g-unit { font-weight: 750; color: var(--muted); }
.g-body { margin: 20px 0 6px; text-align: left; }
.g-units { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin-bottom: 18px; background: rgba(15, 23, 42, .05); border-radius: 12px; }
.g-unit-btn { min-height: 40px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.g-unit-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.g-body-row { display: flex; align-items: center; gap: 8px; }
.g-body-row input { width: 6.5rem; }
.g-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.g-consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--citrus); }
/* The goal card: the target line, what was learned, any care lines. */
.g-goalcard .q-head { margin-bottom: 6px; }
.g-card-target { font-size: 16.5px; font-weight: 700; color: var(--citrus-text); margin: 0 0 4px; }
.g-care { margin: 14px 0; padding: 14px 16px; text-align: left; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 14px; }
.g-care p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.g-care p + p { margin-top: 8px; }
.g-change-goal { display: block; margin: 0 auto 10px; font-size: 13px; min-height: 0; padding: 2px 0; }
/* Milestones, on the reveal and the offer's plan card. */
.g-milestones { list-style: none; counter-reset: ms; display: grid; gap: 0; margin: 18px 0; padding: 4px 16px; text-align: left; background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: 14px; }
.g-milestones li { counter-increment: ms; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--hairline); }
.g-milestones li:first-child { border-top: 0; }
.g-milestones li::before { content: counter(ms); font-weight: 800; color: var(--citrus-text); }
.g-milestones strong { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.g-milestones span { font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
/* The offer: the goal named above the ticket, the plan card below the laurel. */
.g-offer-goal { text-align: center; font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
/* Support: only after a crisis or abuse match on what they typed. */
.g-support-list { list-style: none; display: grid; gap: 10px; margin: 22px 0; padding: 0; text-align: left; }
.g-support-list li { display: grid; gap: 3px; padding: 14px 16px; background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: 14px; }
.g-support-list strong { font-size: 16.5px; }
.g-support-list a { font-weight: 800; color: var(--citrus-text); }
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.direction-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 25px; border: 1px solid var(--hairline); border-radius: 16px; background: white; color: var(--ink); text-decoration: none; }
.direction-card:hover { border-color: var(--citrus); }
.direction-card:focus-visible { outline: 3px solid var(--citrus-text); outline-offset: 3px; }
.direction-emoji { font-size: 28px; }
.direction-card h3 { font-size: 19px; line-height: 1.35; }
.direction-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.direction-link { margin-top: auto; color: var(--citrus-text); font-size: 14px; font-weight: 700; }
.direction-custom { margin-top: 24px; text-align: center; }
.direction-custom a { color: var(--citrus-text); text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; display: inline-block; }
.direction-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.direction-intro p { margin-top: 18px; color: var(--muted); line-height: 1.8; }
.direction-benefits { list-style: none; padding: 0; display: grid; gap: 22px; }
.direction-benefits li { padding-left: 30px; position: relative; line-height: 1.6; }
.direction-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--citrus-text); }
.direction-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.direction-goal { padding: 26px; border: 1px solid var(--hairline); border-radius: 16px; background: white; display: flex; flex-direction: column; align-items: flex-start; }
.direction-goal h3 { font-size: 21px; line-height: 1.45; }
.direction-goal .cta-row { margin-top: auto; padding-top: 22px; }
.direction-goal .btn { font-size: 15px; padding: 12px 19px; }
.direction-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.direction-how h3 { margin-bottom: 14px; }
.direction-how p { color: var(--muted); line-height: 1.8; }
.direction-preview { max-width: 780px; text-align: center; }
.direction-preview p:not(.eyebrow) { margin-top: 20px; color: var(--muted); line-height: 1.8; }
#directions, #goals { scroll-margin-top: 90px; }
@media (max-width: 759px) {
  .direction-grid, .direction-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction-intro, .direction-how { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .direction-grid, .direction-goals { grid-template-columns: 1fr; }
}
.g-plan-detail { margin: 24px 0; line-height: 1.65; }
.g-plan-detail p + h2 { margin-top: 22px; }
@media (max-width: 480px) {
  .g-options[data-g-options="direction"] { grid-template-columns: 1fr; }
  .g-rail li { font-size: 11px; }
  .g-option { padding: 15px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--citrus); color: var(--citrus-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--citrus); outline-offset: 3px; border-radius: 6px; }

/* ---------- ambient background ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob.b1 { width: 120vmax; height: 120vmax; left: -46vmax; top: -50vmax; background: radial-gradient(circle, rgba(45, 212, 191, .16) 0%, transparent 62%); animation: drift1 68s ease-in-out infinite alternate; }
.blob.b2 { width: 110vmax; height: 110vmax; right: -50vmax; top: 4%; background: radial-gradient(circle, rgba(56, 189, 248, .10) 0%, transparent 60%); animation: drift2 84s ease-in-out infinite alternate; }
.blob.b3 { width: 130vmax; height: 130vmax; left: 6%; bottom: -62vmax; background: radial-gradient(circle, rgba(34, 197, 94, .11) 0%, transparent 62%); animation: drift3 76s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0); } 50% { transform: translate(6vw, 4vh); } to { transform: translate(-4vw, 7vh); } }
@keyframes drift2 { from { transform: translate(0, 0); } 50% { transform: translate(-7vw, 5vh); } to { transform: translate(3vw, -5vh); } }
@keyframes drift3 { from { transform: translate(0, 0); } 50% { transform: translate(5vw, -5vh); } to { transform: translate(-6vw, -2vh); } }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 22px; }
section { padding-block: clamp(58px, 10vw, 108px); }
section.tight { padding-block: clamp(40px, 7vw, 72px); }

/* reveal-on-scroll (JS adds html.js; without it everything stays visible) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(15, 23, 42, .06); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* The lockup IS the wordmark (assets/wordmark.svg, the light-on-navy variant of
   Dan's mybetterself-wordmark-transparent.svg). Height-led so it never squashes. */
.lockup img.wordmark { height: 28px; width: auto; }
.head-links { display: flex; align-items: center; gap: 20px; }

/* ---------- buttons ---------- */
/* ⚠️ `font: inherit` and `border: 0` are here because a CTA is a <button> and
   not an <a> since 2026-09-16 — pressing it makes a space rather than going
   anywhere. Without them a button renders in the UA's own 13px system font with
   a grey bevel, which reads as broken rather than as a different element. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; border: 0; cursor: pointer; text-align: center;
  background: var(--citrus); color: var(--citrus-ink); text-decoration: none;
  font-weight: 700; font-size: 16px; border-radius: 10px; padding: 13px 26px;
  box-shadow: 0 4px 8px -1px rgba(15, 23, 42, .1), 0 1px 2px -2px rgba(15, 23, 42, .1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #15803d; box-shadow: 0 6px 14px -2px rgba(15, 23, 42, .12); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.big { font-size: 18px; padding: 16px 34px; border-radius: 12px; animation: ctapulse 3.8s ease-in-out infinite alternate; }
.btn.big:hover { animation: none; box-shadow: 0 6px 22px rgba(22, 163, 74, .28); }
.btn.small { font-size: 14px; padding: 10px 18px; border-radius: 8px; box-shadow: none; }
@keyframes ctapulse { from { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } to { box-shadow: 0 0 22px rgba(22, 163, 74, .22); } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 96px); }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 7fr 5fr; gap: 28px; } }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--angle); margin-bottom: 18px; }
/* The AI badge wears the scale badge's exact style (Dan, 2026-10-23): white pill,
   amber hairline, ink text, amber icon. Change both together or neither. */
.ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin-bottom: 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(245, 158, 11, .45); color: var(--ink); font-weight: 700; font-size: 12.5px; }
.ai-badge svg { flex: none; color: #f59e0b; }
/* 1.18, not 1.07 (owner, 2026-09-16). At 56px the tight setting had the
   descenders of one line almost touching the caps of the next, which reads as
   cramped exactly where the page is trying to feel calm. */
h1 { font-weight: 800; font-size: clamp(33px, 7.2vw, 60px); line-height: 1.18; letter-spacing: -.018em; }
h1 .kw { color: var(--angle); }
h1 .yl, .yl { color: var(--citrus); font-weight: 900; }
/* The white half of a two-phrase headline. ⛔ It sets NO font-weight on purpose
   (owner, 2026-09-16): it has to sit at exactly the weight of the white text
   either side of it, so it inherits rather than naming 800 - name a weight here
   and it silently stops matching the day the h1's own weight is touched. So the
   only thing marking the phrase is near-black against the page's slate ink. */
h1 .wh, .wh { color: #0b1220; }
.stage.art svg { width: clamp(280px, 60vw, 470px); height: auto; }
/* Desktop: on an art hero the TEXT gets two thirds of the row and the art
   column is pinned to the remaining third (min-width: 0 stops the oversized
   svg inflating its grid track, which is what squeezed the text). The svg is
   anchored to the RIGHT edge of its column and overflows leftwards, so it
   still renders large and simply overlaps the text column's edge - the
   accepted trade. */
@media (min-width: 860px) {
  .hero .wrap:has(.stage.art) { grid-template-columns: 2fr 1fr; }
  .hero .stage.art { min-width: 0; justify-content: flex-end; }
  /* flex-shrink: 0 is what makes the overlap real - without it the svg just
     shrinks to its third and never overflows leftwards. */
  .stage.art svg { width: min(42vw, 560px); flex-shrink: 0; }
}
.hero-src { margin-top: 14px; color: var(--muted-2); font-size: 12.5px; font-weight: 500; line-height: 1.6; max-width: 34em; }
.hero .sub { margin-top: 22px; font-weight: 500; font-size: clamp(16.5px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.hero .sub b { color: var(--ink); font-weight: 700; }
.hero-note {
  margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; max-width: 34em;
  background: rgba(22, 163, 74, .08); border: 1px solid rgba(22, 163, 74, .25);
  border-radius: 14px; padding: 12px 16px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
}
.hero-note b { color: var(--ink); }
.hero .cta-row { margin-top: 28px; }
/* ⚠️ The hero shot IS shown on mobile. It was hidden for one revision on
   2026-09-16 and put back the same day on the owner's instruction: the cost is
   that it stacks under the copy and pushes the next section down, which was the
   original reason for hiding it. That is the accepted trade, not an oversight. */

/* ---------- phone frame ---------- */
.stage { display: flex; justify-content: center; }
.hero .stage { animation: phonefloat 7s ease-in-out infinite alternate; }
@keyframes phonefloat { from { transform: translateY(5px); } to { transform: translateY(-7px); } }
.phone {
  position: relative; width: clamp(232px, 62vw, 318px); flex: none;
  background: var(--shell); border: 2px solid rgba(15, 23, 42, .07);
  border-radius: 46px; padding: 10px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .18), 0 0 80px rgba(45, 212, 191, .25);
}
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: var(--shell); border-radius: 14px; z-index: 3; }
/* ⚠️ The screenshots start at the very top of the app's page, so the notch pill
   sat directly over the first line of content. The content is pushed down by
   --pad, and the strip that opens up is filled with the shot's OWN top row,
   stretched.

   Why the image and not a colour: the app's top strip is not one colour. Goal
   and home pages sit on #382579, chat pages on #201549, and several carry a
   horizontal gradient rather than a flat fill, so any single colour leaves a
   visible band on two thirds of the shots. A per-shot colour map would fix that
   and then drift silently the first time a screenshot is re-exported. Stretching
   row 0 of the image itself is correct for every shot, gradient included, and
   has nothing to keep in step.

   background-size 100% 5000px means the padded strip shows roughly the first ten
   rows of the image, blown up. That is well inside the flat/gradient band on
   every current shot (the shallowest is the chat header at about 28 rows). */
.phone .clip {
  border-radius: 37px; overflow: hidden;
  --pad: 34px;                 /* island is 22px tall at top:20px, inside 10px of frame */
  padding-top: var(--pad);
  background-image: var(--shot);
  background-size: 100% 5000px;
  background-position: center top;
  background-repeat: no-repeat;
}
.phone .clip img { width: 100%; height: auto; }
/* Feature-row phones are CROPPED (Dan, 2026-09-17): the bottom third of every
   shot is list tail and nav chrome that earns nothing, so the frame stops at
   roughly 16:9-ish (9 / 16.5) and the shot keeps its TOP. object-position top
   is the load-bearing half - center would cut the page title instead. Hero
   duos keep the full shot. */
.feature .phone { width: clamp(250px, 66vw, 396px); }
/* A little tilt, varied row to row so the page does not read as a template:
   row 1 leans left, row 2 right, row 3 barely left, and the cycle repeats on
   longer pages. */
.feature .phone { transform: rotate(-2.4deg); }
.feature:nth-of-type(2n) .phone { transform: rotate(2.2deg); }
.feature:nth-of-type(3n) .phone { transform: rotate(-1.3deg); }
.feature .phone .clip { aspect-ratio: 9 / 16.5; }
.feature .phone .clip img { height: 100%; object-fit: cover; object-position: center top; }
@media (min-width: 860px) { .hero .phone.tilt { transform: rotate(-3deg); } }

/* ---------- two phones, hero only ---------- */
/* The back phone is a real frame rather than a flat image so both carry the same
   bezel, notch and shadow. It overlaps deliberately: side by side, two phones at
   this width leave each too small to read, and the overlap is what makes them
   read as one composition rather than two pictures.

   ⚠️ The stage is the positioning context AND the thing that floats: the hero's
   phonefloat animation is on .stage, so animating a phone here as well would
   override its rotation (an animation on transform beats a static transform,
   the same trap the chip bob hit). */
.duo { position: relative; justify-content: center; align-items: center; }
.duo .phone { width: clamp(186px, 46vw, 250px); }
.duo .ph-back {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-82%, -52%) rotate(-9deg) scale(.9);
  z-index: 1; opacity: .92;
  /* Pushed back with a wash rather than blur: blurring a screenshot of an app
     makes the product look out of focus in its own advert. */
  filter: saturate(.85) brightness(.8);
}
.duo .ph-front {
  position: relative; z-index: 2;
  transform: translateX(14%) rotate(4deg);
}
/* Narrow phones: tighten the overlap and shrink, or the pair runs off the edge. */
@media (max-width: 519px) {
  .duo .phone { width: clamp(150px, 44vw, 200px); }
  .duo .ph-back { transform: translate(-78%, -52%) rotate(-9deg) scale(.88); }
  .duo .ph-front { transform: translateX(12%) rotate(4deg); }
}
/* The stage has no height of its own once the back phone is absolute, so the
   front one sets it and the back is centred against that. */
.duo::after { content: ''; display: block; }

/* ---------- desktop + phone, together ---------- */
/* ⭐ The product runs on both, so the frame shows both (Dan, 2026-10-22): a
   browser window with the desktop shot, and a phone overlapping its lower
   right corner with the same screen on mobile. The bottom/right padding is the
   room the phone hangs into, so it never covers the next block or the edge.
   ⚠️ The phone rules here must out-rank `.feature .phone` (width, tilt, crop)
   further up, which is why they carry the extra `.devices` class. */
.devices { position: relative; display: block; width: 100%; max-width: 640px; margin-inline: auto; padding: 0 7% 9% 0; }
.browser {
  margin: 0; background: #fff; overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12); border-radius: 12px;
  box-shadow: 0 28px 60px -18px rgba(15, 23, 42, .28), 0 2px 6px rgba(15, 23, 42, .06);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #f1f5f9; border-bottom: 1px solid rgba(15, 23, 42, .08); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.browser-bar span {
  margin-left: 10px; flex: 0 1 220px; height: 17px; border-radius: 6px; background: #fff;
  display: flex; align-items: center; padding: 0 8px; font-size: 10.5px; font-weight: 600; color: var(--muted-2);
}
.browser img { width: 100%; height: auto; }
.devices .phone.ph-over {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 31%; min-width: 104px; padding: 5px; border-radius: 24px; border-width: 1px;
  transform: none;
  box-shadow: 0 22px 44px -10px rgba(15, 23, 42, .4), 0 0 0 1px rgba(15, 23, 42, .06);
}
.devices .phone.ph-over .island { top: 10px; width: 30%; height: 9px; border-radius: 6px; }
.devices .phone.ph-over .clip { border-radius: 19px; --pad: 18px; aspect-ratio: 9 / 16.5; }
.devices .phone.ph-over .clip img { height: 100%; object-fit: cover; object-position: center top; }
/* A little lean, alternating like the feature phones did, so the rows do not
   read as one template stamped three times. */
.feature .devices { transform: rotate(-1deg); }
.feature:nth-of-type(2n) .devices { transform: rotate(1deg); }
@media (min-width: 860px) {
  .hero .wrap:has(.devices) { grid-template-columns: 5fr 6fr; gap: 40px; }
  .hero .devices { max-width: none; }
}

/* ---------- section headings ---------- */
.sec-head { max-width: 660px; margin-bottom: clamp(34px, 5vw, 54px); }
.sec-head.center { margin-inline: auto; text-align: center; }
h2 { font-weight: 800; font-size: clamp(27px, 5vw, 44px); line-height: 1.12; letter-spacing: -.015em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.9vw, 20px); font-weight: 500; }

/* ---------- the angle explainer ---------- */
/* Directly under the hero on an angle page: why the change is worth wanting,
   before a single screenshot of the product. Two parts, and the order is the
   argument - the mechanism (the sec-head lead), then the two panels, what it
   costs you now against what comes back.

   ⛔ A third part, a four step timeline under the panels, was cut by the owner
   on 2026-09-16. Its rules are gone with it; do not put a `.why-line` back
   without asking. See the note in build.mjs above deepSection().

   ⚠️ It uses var(--angle), which only an angle page sets on <body>. On the
   homepage --angle falls back to citrus, so nothing here may be used there
   without checking how it reads in yellow.

   ⚠️ THE SPACING IS THE DESIGN HERE, so treat these numbers as load-bearing
   rather than taste (owner, 2026-09-16, twice). With no panels and no rules
   except the one divider, whitespace is the ONLY thing separating one point
   from the next, so tightening any of it puts the clutter straight back. The
   value that does the most work is the 26/30px between list items: it is what
   makes each point read as its own block instead of one of four lines in a
   stack. */
.why { padding-block: clamp(48px, 7.5vw, 104px); }
/* ⚠️ The heading and the lead get DIFFERENT measures, unlike every other
   .sec-head on the site. The heading is a full-width statement line (at 660px
   "What nicotine is actually doing to your day" breaks with two words orphaned
   on the second line); the lead is a paragraph of mechanism rather than a
   one-line subtitle, and it needs a reading measure or it sets as one very long
   line on a wide screen. */
.why .sec-head { max-width: none; margin-bottom: clamp(42px, 6vw, 76px); }
.why .sec-head h2 { text-wrap: balance; }
.why .sec-head p { max-width: 44em; margin-inline: auto; line-height: 1.62; }

/* ⛔ NO PANELS (owner, 2026-09-16). Two filled, bordered cards sat inside a
   section that is itself inside a page already made of panels, and the section
   read as heavy before a word of it was read. What replaces the boxes is a
   SINGLE hairline between the columns and a lot more air: one line instead of
   two outlines, and nothing enclosing the text.

   ⚠️ The divider lives on .why-next, so it flips with the layout rather than
   needing a pseudo-element positioned into the grid gap: a rule ABOVE the
   second column when they are stacked, to its LEFT when they are side by side.
   The gap is 0 at that breakpoint because the padding on either side of the
   hairline is what makes the gutter, and a grid gap on top of it would push the
   rule off centre. */
.why-pair { display: grid; gap: 44px; }
.why-next { padding-top: 44px; border-top: 1px solid rgba(15, 23, 42, .07); }
@media (min-width: 760px) {
  .why-pair { grid-template-columns: 1fr 1fr; gap: 0; }
  .why-now { padding-right: clamp(40px, 5.8vw, 78px); }
  .why-next {
    padding-top: 0; border-top: 0;
    padding-left: clamp(40px, 5.8vw, 78px);
    border-left: 1px solid rgba(15, 23, 42, .07);
  }
}
/* The contrast the two boxes used to carry. Ink on the left, the angle's own
   colour on the right, so "this is the side you want" reads before the words
   do - the same job .feature h3 .tick does further down the page. */
.why-col h3 { font-weight: 800; font-size: clamp(20px, 2.5vw, 26px); line-height: 1.2; letter-spacing: -.012em; }
.why-next h3 { color: var(--angle); }
.why-list { margin-top: 28px; list-style: none; }
.why-list li { position: relative; padding-left: 28px; margin-top: 26px; color: var(--muted); font-size: clamp(15.5px, 1.7vw, 17px); font-weight: 500; line-height: 1.62; }
/* ⭐ The SCAN PATH. Each point opens with a short bold claim and then explains
   itself, so the section can be read at two depths: four claims a side for
   somebody skimming, the sentences for somebody who wants them. Before this the
   points were full paragraphs and the whole section read as one block of text. */
.why-list li b { color: var(--ink); font-weight: 800; }
.why-list li::before { position: absolute; left: 2px; top: 0; font-weight: 900; }
/* The cost side gets a neutral mark, not a cross. The page is not telling
   anybody off, and a column of red crosses reads as a scolding. */
.why-now .why-list li::before { content: '•'; color: var(--muted-2); }
.why-next .why-list li::before { content: '✓'; color: var(--angle); left: 0; }

.why-close { margin: clamp(46px, 6vw, 76px) auto 0; max-width: 34em; text-align: center; color: var(--ink); font-size: clamp(17px, 2vw, 20px); font-weight: 600; line-height: 1.5; }
.why .cta-row { margin-top: 32px; text-align: center; }
/* The citations, as small print. They are the reason the numbers above are
   allowed to be there at all, so they are quiet but never hidden.
   ⚠️ One middot-separated line rather than a paragraph of parentheticals: at
   five sources the descriptions were four lines of grey text closing a section
   that was already too long, and the names are what make a figure checkable. */
.why-src { margin: clamp(36px, 4.4vw, 54px) auto 0; max-width: 58em; text-align: center; color: var(--muted-2); font-size: 12.5px; font-weight: 500; line-height: 1.8; }
/* The 2026-09-17 explainer redesign (.why-v2, opt-in per angle): a band of big
   cited numbers between the lead and the columns, plus a small spot svg on top
   of each column. Type and space only - no boxes, per the owner's standing
   rule for this section. */
/* ⚠️ Stacked by default, three-up from 760px - min-width ON PURPOSE: the
   research-reveal verify check reads the FIRST max-width:759px block in this
   file and must keep finding the html.js reveal rule, not this grid. */
/* The band sits between the lead and the columns, so it owns the space on
   BOTH sides: the pair has no top margin of its own and sat crammed against
   the stats without the bottom one. */
.why-stats { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 62em; margin: 0 auto clamp(52px, 7vw, 92px); text-align: center; }
@media (min-width: 760px) { .why-stats { grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); } }
.why-stat { display: grid; gap: 8px; justify-items: center; align-content: start; }
.ws-n { font-size: clamp(36px, 4.6vw, 50px); font-weight: 900; line-height: 1; color: var(--angle, var(--citrus-text)); }
.ws-t { color: var(--ink); font-weight: 600; font-size: clamp(16.5px, 1.9vw, 19px); line-height: 1.5; max-width: 20em; text-wrap: balance; }
.ws-c { color: var(--muted-2); font-size: 13px; font-weight: 500; }
/* When the band is present the sec-head hands its outsize bottom margin to
   the band, so the lead, stats and columns read as three even beats. */
.why-v2 .sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
/* The explainer's own bottom padding plus the feature section's top padding
   added up to ~170px of empty violet; the explainer gives most of its half
   back. */
.why-v2 { padding-bottom: clamp(16px, 2.5vw, 36px); }
.why-colart { display: block; margin-bottom: 16px; }
.why-src i { font-style: italic; }

/* ---------- feature rows ---------- */
.feature { display: grid; gap: 36px; align-items: center; padding-block: clamp(30px, 5vw, 54px); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature.flip .stage { order: -1; }
}
.feature h3 { font-weight: 800; font-size: clamp(26px, 4.2vw, 42px); line-height: 1.18; letter-spacing: -.014em; }
.feature h3 .tick { color: var(--angle); }
.feature p { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 2.1vw, 22px); font-weight: 500; line-height: 1.6; max-width: 32em; }
.feature p b { color: var(--ink); font-weight: 700; }
.feature ul { margin-top: 16px; list-style: none; }
.feature li { position: relative; padding-left: 30px; margin-top: 14px; color: var(--muted); font-size: clamp(16.5px, 1.9vw, 20px); font-weight: 500; }
.feature li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--citrus); font-weight: 900; }

/* ---------- the science cards ---------- */
/* ---------- the paged carousel (research + testimonials) ---------- */
/* One component, two rows. It has to LOOK like a carousel, which the first
   version did not: at 430px wide with a single right-hand fade it read as one
   panel with decoration beside it.

   scroll-snap is correct here and wrong on the topic lanes: nothing
   auto-scrolls these, so there is no drift for the snap to fight, and these
   cards are read rather than glanced at. */
.car-holder { position: relative; }
.car {
  --car-w: min(380px, 72vw);
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* ⚠️ The side padding is what lets the FIRST and LAST card centre, which is
     what puts a cut-off neighbour on both sides of everything in between.
     ⚠️ And the card must be WIDER than (container - 2*gap) / 3, or the
     neighbours fit entirely inside this padding: three whole cards, nothing
     crossing an edge, and it reads as a static row again. At the 1036px content
     width that threshold is ~336px. */
  padding-inline: calc((100% - var(--car-w)) / 2);
  scroll-padding-inline: calc((100% - var(--car-w)) / 2);
}
.car::-webkit-scrollbar { display: none; }
/* ⚠️ A drag across a row of text selects it, and the selection then survives the
   drag as a blue smear across the card. The cards are marketing copy rather than
   reference text, so losing select-to-copy here is the right trade. */
.car { -webkit-user-select: none; user-select: none; cursor: grab; }
.car.grabbing { cursor: grabbing; }
.car-card {
  flex: 0 0 var(--car-w); scroll-snap-align: center;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 14px;
  /* The neighbours sit back so the middle card is unambiguously the one being
     read, and the contrast says "these are separate cards". */
  opacity: .42; transform: scale(.94);
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease;
}
.car-card.is-current { opacity: 1; transform: scale(1); }

.car-btn {
  position: absolute; top: 46%; z-index: 2; display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 1);
  color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.car-btn:hover { background: #fff; border-color: var(--citrus); color: var(--citrus-text); }
.car-btn.prev { left: -6px; transform: translateY(-50%); }
.car-btn.next { right: -6px; transform: translateY(-50%); }
.car-btn[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (min-width: 860px) { html.js .car-btn { display: inline-flex; } }

/* The pager. Present at every width: on a phone it is the clearest signal that
   more cards exist, since there is no hover and the arrows are desktop only. */
.car-dots { position: relative; display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.car-dot {
  position: relative;
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(15, 23, 42, .15); cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.car-dot.is-current { background: var(--citrus); width: 22px; }
/* 8px of ink, 30px of reachable area. */
.car-dot::before { content: ''; position: absolute; width: 30px; height: 30px; margin: -11px 0 0 -11px; }
@media (prefers-reduced-motion: reduce) { .car-card { transition: none; } }

/* ---------- research cards ---------- */
.sci-card { padding: 24px 24px 26px; }
.sci-card .emoji { font-size: 26px; }
.sci-card h3 { margin-top: 12px; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.sci-card p { margin-top: 10px; color: var(--muted); font-size: 17px; font-weight: 500; line-height: 1.6; }
/* The figures and the citations carry the authority, so they get the contrast:
   bold numbers in full-strength ink, journal names in italic muted. */
.sci-card p b { color: var(--ink); font-weight: 800; }
.sci-card p i { font-style: italic; }

/* ---------- testimonial cards ---------- */
/* Taller than a research card and evenly sized, so the row reads as a set rather
   than as ragged blocks: the quote takes the space it needs and the person is
   pinned to the foot by margin-top auto. */
.pcar { --car-w: min(400px, 76vw); }
.pcard { padding: 26px 26px 24px; min-height: 258px; }
.pcard.is-current { border-color: rgba(22, 163, 74, .3); }
.pquote {
  display: block; font-family: Georgia, 'Times New Roman', serif;
  font-size: 46px; line-height: .8; color: var(--citrus); opacity: .5;
}
.pcard blockquote {
  margin-top: 6px; font-size: 16.5px; font-weight: 500; line-height: 1.55; color: var(--ink);
}
.person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; }
.face {
  width: 42px; height: 42px; border-radius: 999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em;
  border: 1px solid rgba(15, 23, 42, .15);
}
.who .name { display: block; font-weight: 700; font-size: 14.5px; }
.who .role { display: block; color: var(--muted-2); font-size: 13px; font-weight: 500; margin-top: 2px; }

/* ⛔ MOBILE ONLY, and gated on html.js so a failed script can never bury the
   research: six evidence cards is a wall of text on a phone and pushes the use
   cases far below the fold. Desktop ignores all of this and always shows them. */
.sci-more {
  display: none; margin: 18px auto 0;
  font: inherit; font-weight: 800; font-size: 15px;
  background: none; border: 1px solid var(--hairline); border-radius: 999px;
  padding: 9px 18px; color: var(--ink); cursor: pointer;
}
.sci-more:hover { border-color: var(--citrus); color: var(--citrus-text); }
.sci-more::after { content: ' ↓'; }
.sci-more[aria-expanded="true"]::after { content: ' ↑'; }
@media (max-width: 759px) {
  html.js .sci-more { display: inline-flex; align-items: center; }
  html.js .sec-head:not(.sci-open) + .sci { display: none; }
  html.js .sec-head:not(.sci-open) ~ .car-dots { display: none; }
}

/* ⚠️ The hint sits OUTSIDE .wrap (the drift is full-bleed), so it needs its own
   gutter or it touches the screen edge on a narrow phone. */
.tap-hint {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 22px; margin: 0 0 16px; padding-inline: 22px; text-align: center;
  font-size: 14.5px; font-weight: 700; color: var(--muted);
}
.tap-bit { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tap-finger, .tap-swipe { display: inline-block; font-size: 17px; }
.tap-finger { animation: tapnudge 2.6s ease-in-out infinite; }
.tap-swipe { animation: tapswipe 2.6s ease-in-out infinite; }
/* ⚠️ The pulse on the + badge stays MOBILE ONLY. On desktop a chip already
   answers the hover, so there it is noise; on a phone it is the only thing
   saying the chip is pressable. */
@media (max-width: 759px) {
  .chip-x { animation: tappulse 2.4s ease-in-out infinite; }
}
@keyframes tapnudge {
  0%, 62%, 100% { transform: translateY(0); }
  74% { transform: translateY(-5px); }
  86% { transform: translateY(-2px); }
}
@keyframes tapswipe {
  0%, 58%, 100% { transform: translateX(0); }
  70% { transform: translateX(-6px); }
  84% { transform: translateX(6px); }
}
@keyframes tappulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0); }
  82% { box-shadow: 0 0 0 5px rgba(15, 23, 42, .09); }
}

/* ---------- the topic drift ---------- */
/* Three full-bleed lanes of small chips, drifting at different speeds. Sits
   OUTSIDE .wrap, so it runs the whole width of the viewport rather than the
   1080px column the rest of the page uses.

   ⚠️ Each lane is a real scroll container (`overflow-x: auto`), which is what
   gives touch drag, a trackpad and a scrollbar for free. The drift itself is
   scrollLeft advanced per frame from the page script, NOT an animation on this
   element: a transform animation cannot be interrupted, so it would keep running
   underneath a finger that is trying to drag. */
.drift {
  margin-top: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lane {
  display: flex; width: 100%;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-block: 6px;
  cursor: grab;
  /* A drag across a row of text labels would otherwise select them all. */
  -webkit-user-select: none; user-select: none;
  /* ⛔ No scroll-snap. It fights a continuous drift: the browser keeps pulling
     the nearest chip to the edge and the motion judders to a halt every chip. */
}
.lane::-webkit-scrollbar { display: none; }
.lane.grabbing { cursor: grabbing; }
/* ⚠️ padding-right must equal the gap, or the seam between the two copies is a
   visibly different width from every other gap once per loop. */
.lane-run { display: flex; flex: none; gap: 11px; padding-right: 11px; }

.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 17px; white-space: nowrap;
  padding: 12px 17px; border-radius: 999px; cursor: pointer;
  color: var(--ink);
  background: linear-gradient(150deg, var(--cw) 0%, rgba(255, 255, 255, .87) 100%);
  border: 1px solid var(--cb);
  /* ⚠️ NEAT on purpose (owner, 2026-09-16): no vertical stagger, no bob, no
     transform at rest. The first version floated each chip on its own offset
     and the instruction was to keep them aligned with even spacing instead -
     do not reintroduce per-chip motion here. */
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.chip:hover {
  border-color: var(--ct);
  box-shadow: 0 8px 26px rgba(15, 23, 42, .15);
}
.chip-e { font-size: 19px; line-height: 1; }
/* Treatment A from the ad system: the subject word wears the topic's colour.
   Across forty chips it is what makes "any change" readable before a single
   label has been. */
.chip-l { color: var(--ct); }
/* The affordance. Without it these read as labels rather than as controls, and
   nobody finds out there is anything underneath. */
.chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 23px; height: 23px; flex: none; margin-left: 1px;
  border-radius: 999px; background: var(--cb); color: var(--ink);
  font-size: 16px; font-weight: 800; line-height: 1; padding-bottom: 2px;
}
.chip:hover .chip-x { background: var(--ct); color: #fff; }
/* ⭐ The nine chips that have a landing page are <a>, not <button> (Dan,
   2026-09-16), so they need the two things a button gave them for free. The
   arrow badge sits 1px high in the pill against the + it replaced, because the
   glyphs have different optical centres. */
.chip-go { text-decoration: none; }
.chip-go .chip-x { padding-bottom: 0; font-size: 15px; }

.drift-foot {
  margin-top: 28px; text-align: center; color: var(--muted);
  font-size: 15.5px; font-weight: 500;
}
/* Centred, unlike the hero's CTA row: this one closes a full-width section whose
   heading and footer line are both centred, and a left-aligned button under them
   reads as a stray. */
.drift-foot + .cta-row { margin-top: 18px; text-align: center; }

/* ---------- a topic, expanded ---------- */
.dialog-topic .dialog-head h2 { display: flex; align-items: center; gap: 10px; color: var(--ct, var(--ink)); }
.t-emoji { font-size: 23px; line-height: 1; }
.t-head {
  margin-top: 16px; font-size: 12px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ct, var(--muted));
}
#topic-content > div > .t-head:first-child { margin-top: 0; }
.t-copy { margin-top: 6px; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.t-link { margin-top: 16px; }
.t-link a {
  color: var(--ct, var(--citrus-text)); font-weight: 700; font-size: 15px;
  text-decoration: none; border-bottom: 1px solid currentColor;
}
.dialog-topic .btn-block { margin-top: 22px; }

/* ---------- mission ---------- */
.mission { background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px; padding: clamp(34px, 6vw, 60px) clamp(24px, 5vw, 56px); text-align: center; }
.mission .heart { font-size: 34px; }
.mission h2 { margin-top: 14px; }
.mission p { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.9vw, 19.5px); font-weight: 500; max-width: 38em; margin-inline: auto; }
/* The mission statement itself, so it leads the section rather than sitting in
   the body copy with the origin story. Sized between h2 and the paragraphs. */
.mission-lead {
  font-size: clamp(19px, 2.7vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.35;
  color: var(--ink) !important;
  max-width: 24em !important;
}
.mission p b { color: var(--ink); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; }
.cta-band::before { content: ''; position: absolute; inset: -40px 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(22, 163, 74, .07) 0%, transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(30px, 6vw, 46px); }
.cta-band p { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 2vw, 20.5px); font-weight: 500; max-width: 36em; margin-inline: auto; }
.cta-band .cta-row { margin-top: 30px; }

/* ---------- /terms and /privacy ----------
   ⭐ ONE COLUMN AND NOTHING ELSE. These are the only pages on the site with no
   argument to make: somebody checking that a real company stands behind the
   advert needs to read, so the layout's whole job is to be unremarkable.
   ⚠️ The measure is 40em rather than the 44em the explainer columns use, because
   this is the longest unbroken prose on the site and 40em is where a dense legal
   paragraph stops losing its place on the return sweep. */
.legal { padding-block: clamp(42px, 7vw, 76px) clamp(30px, 6vw, 60px); }
.legal-title { font-size: clamp(32px, 5.4vw, 48px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; }
.legal-meta { margin-top: 12px; color: var(--muted-2); font-size: 14px; font-weight: 600; }
.legal-body { max-width: 40em; margin-top: clamp(26px, 4vw, 40px); }
.legal-lead {
  font-size: clamp(17px, 2.1vw, 20px); font-weight: 600; line-height: 1.55;
  color: var(--ink); padding-bottom: 26px; border-bottom: 1px solid var(--hairline);
}
/* The numbers come from the renderer, not a counter: an <ol> would restart at
   every list inside a clause, and these headings have to match what somebody
   quotes back at us in an email. */
.legal-body h2 {
  margin-top: 36px; font-size: clamp(19px, 2.3vw, 23px); font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.25; color: var(--ink);
}
.legal-body p { margin-top: 14px; color: var(--muted); font-size: 16.5px; font-weight: 500; line-height: 1.65; }
.legal-body p + p { margin-top: 13px; }
.legal-body a { color: var(--citrus-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-list { margin-top: 14px; padding-left: 0; list-style: none; }
.legal-list li {
  position: relative; margin-top: 11px; padding-left: 22px;
  color: var(--muted); font-size: 16.5px; font-weight: 500; line-height: 1.6;
}
/* A dot drawn rather than a bullet glyph, so its colour and size are ours and it
   lines up with the first line of a wrapped item. */
.legal-list li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--citrus); opacity: .75;
}

/* ---------- footer ---------- */
footer { background: var(--bg-deep); border-top: 1px solid rgba(15, 23, 42, .06); padding-block: 42px 30px; margin-top: clamp(30px, 6vw, 60px); }
.foot-brand { text-align: center; }
.foot-brand .lockup { justify-content: center; }
.foot-brand .tag { margin: 12px auto 0; color: var(--muted); font-size: 14.5px; font-weight: 500; max-width: 44em; }
/* Links and copyright share ONE line (Dan, 2026-10-24), under a hairline that
   closes off the brand block. The markup is unchanged (verify:email compares
   it with /p/'s copy), so the row is the .wrap itself. */
footer .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 18px; }
.foot-brand { flex: 0 0 100%; padding-bottom: 26px; border-bottom: 1px solid rgba(15, 23, 42, .06); }
.foot-base { color: var(--muted-2); font-size: 13px; font-weight: 500; white-space: nowrap; }

/* Terms, Privacy, Contact, then the copyright on the same line. ⚠️ Underlined
   at rest, not on hover alone, because the footer is the one place on the site
   where colour is the only other thing marking a link. */
.foot-nav {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  justify-content: center; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.foot-nav a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-nav a:hover { color: var(--ink); }

/* ⛔ THE STATUTORY COMPANY LINE IS NOT IN THIS FOOTER AND HAS NO RULE HERE
   (Dan, 2026-10-07, hours after it shipped: findable from the terms and privacy
   pages, which the row above reaches from every page). The Regulations want the
   four facts on the website rather than on every page of it, and section 1 of
   both legal pages opens with all four. ⚠️ The rule was DELETED rather than
   left unused: a dead `.foot-co` is how somebody re-adds the markup and finds it
   already styled, which reads as evidence it was meant to be there. */

/* ---------- the front door: no-JS notice, ghost button ---------- */
/* The one thing on the site that cannot degrade: Get started is a POST whose
   answer has to be followed, so without JS there is no space to be had. Said
   once, at the top, rather than under four dead buttons. */
.nojs {
  margin: 0; padding: 12px 22px; text-align: center;
  background: rgba(22, 163, 74, .12); border-bottom: 1px solid rgba(22, 163, 74, .3);
  color: var(--ink); font-size: 14.5px; font-weight: 600;
}

/* Sign in, in the header. A text control rather than a second pill: two filled
   buttons side by side would make neither of them the thing to press. */
.ghost {
  font: inherit; font-weight: 700; font-size: 15px;
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  color: var(--muted); white-space: nowrap;
}
.ghost:hover { color: var(--ink); }
@media (max-width: 400px) { .head-links { gap: 12px; } .ghost { font-size: 14px; } }

/* ---------- dialogs ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.dialog {
  /* ⚠️ `margin: auto` is RESTORED here, not inherited: the `*` reset at the top
     of this file sets margin 0 on everything, which silently defeats the UA's
     own centring for <dialog> and pins the modal to the top-left of the
     viewport. Nothing errors; it just sits in the wrong place. */
  margin: auto;
  width: calc(100% - 2rem); max-width: 27rem;
  padding: 22px; border: 1px solid var(--hairline); border-radius: 16px;
  background: var(--dialog); color: var(--ink);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .33);
}
.dialog::backdrop { background: rgba(15, 23, 42, .37); }
/* showModal() puts focus on the DIALOG itself when nothing inside it is
   autofocused (the claim dialog has no field), and the site's global
   :focus-visible then draws a 3px citrus ring around the whole panel — which
   reads as an alert rather than as "this is where you are". The ring stays on
   every control inside it; this only takes it off the container, which is not
   operable. */
.dialog:focus, .dialog:focus-visible { outline: none; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .12s ease, color .12s ease, transform .12s ease;
}
.icon-btn:hover { background: rgba(15, 23, 42, .07); color: var(--ink); }
.icon-btn:active { transform: scale(.95); }

.linkish {
  font: inherit; font-size: 15px; font-weight: 500;
  background: none; border: 0; padding: 0; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.linkish:hover { color: var(--ink); }

/* ---------- claim progress ---------- */
.status {
  margin: 0; min-height: 28px;   /* reserved, so the dialog does not jump on the first message */
  font-size: 16.5px; font-weight: 500; color: var(--muted);
}
.status strong { color: var(--ink); font-weight: 800; }

.error { margin-top: 14px; font-size: 16.5px; color: var(--danger); }
.error:empty { margin-top: 0; }
.error p { margin: 0 0 10px; }
.error details { margin-top: 10px; color: var(--muted); }
.error summary { cursor: pointer; font-size: 14px; }
.error pre {
  margin: 6px 0 0; padding: 8px 10px; border-radius: 10px;
  background: rgba(15, 23, 42, .1);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  white-space: pre-wrap; word-break: break-word; color: var(--muted);
}

/* currentColor on both, so it is legible on the citrus fill and on the glass. */
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn[data-busy] .spinner { display: block; }
.spinner {
  display: none; width: 20px; height: 20px;
  border: 2px solid rgba(15, 23, 42, .21); border-top-color: currentColor;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { margin-bottom: 12px; text-align: left; }
.field label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; height: 54px; padding: 8px 16px;
  border: 1px solid var(--edge); border-radius: 14px;
  background: var(--field); color: var(--ink);
  font: inherit; font-size: 17px;   /* never under 16px, or iOS zooms the page on focus */
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline-offset: 0; border-color: var(--citrus); }

.btn-block { width: 100%; margin-top: 4px; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--edge); box-shadow: none;
}
.btn-outline:hover { background: rgba(15, 23, 42, .06); box-shadow: none; }
/* ⛔ AN OUTLINE BUTTON MUST NOT PULSE, and `box-shadow: none` above does NOT stop
   it. `.btn.big` carries `animation: ctapulse`, whose keyframes set box-shadow, and
   an animated value beats a normal declaration whatever its specificity - so the
   first `.btn-outline.big` in the codebase (/begin's Skip, which is quiet
   precisely so it does not shout) glowed citrus on a transparent button. It is
   the combination that is new, not either class. */
.btn-outline.big { animation: none; }

/* ---------- the login wall's other two doors ---------- */
/* ⛔ NOT citrus. The page's yellow means "this is the action" and it is spent on
   Get started; a provider button that wore it would compete with the primary
   control inside the same dialog. Black is also what both providers' own
   branding guidance asks for on a dark surface, and it is what Google's own
   rendered button (theme: filled_black) comes out as — so the two sit level
   instead of looking like one belongs and one was bolted on. */
.providers { margin: 0 0 4px; }
.provider-slot { min-height: 44px; }
.provider-slot:empty { display: none; }
.btn-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 10px; padding: 13px 22px;
  background: #000; color: #fff;
  border: 1px solid rgba(15, 23, 42, .15);
  font-size: 16px; font-weight: 600; box-shadow: none;
}
/* Same specificity as `.btn:hover` and later in the file, which is what takes
   the citrus glow off. Moving this block above .btn would silently restore it. */
.btn-provider:hover { background: #141414; box-shadow: none; }
.provider-mark {
  /* .icon sets stroke-width 2 on everything, which draws a fat outline around a
     glyph that is a solid fill. Both properties have to be undone here. */
  width: 19px; height: 19px; flex: none; fill: currentColor; stroke: none;
}
.or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 14px; font-size: 14px; color: var(--muted);
}
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

.field-hint { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.foot-q { margin-right: 4px; color: var(--muted); }

.form-status { margin: 10px 0 0; min-height: 22px; font-size: 15px; font-weight: 500; color: var(--muted); text-align: center; }
.form-status[data-tone="error"] { color: var(--danger); }

/* ---------- the spaces list ---------- */
/* Account rows are <button> and local rows are <a> — styled identically on
   purpose: the distinction is real (one mints a key, one relies on a cookie
   already being there) but it is not the visitor's problem, and two treatments
   would imply a choice they cannot act on. */
.spaces {
  list-style: none; margin: 0 0 16px; padding: 0;
  max-height: 21rem; overflow-y: auto;   /* ~6 rows, then scroll: it must not outgrow a phone */
  border-top: 1px solid var(--hairline);
}
.spaces li { border-bottom: 1px solid var(--hairline); }
.space {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 14px;
  border: 0; border-radius: 14px; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer;
}
.space:hover { background: rgba(15, 23, 42, .06); }
.space[aria-disabled="true"] { opacity: .55; cursor: default; }
.space-name { overflow-wrap: anywhere; }

.dialog-note { margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: var(--muted); text-align: left; }
.dialog-note:empty { margin: 0; }
.dialog-foot { margin: 12px 0 0; text-align: center; }
.dialog-foot:has(> [hidden]) { margin: 0; }

/* ---------- desktop type scale ---------- */
/* ⚠️ Mobile-first sizes, bumped rather than replaced: every value below reads
   correctly on a phone and small on a 1280px screen, where the viewing distance
   is greater and the measure is wider. Anything already fluid (clamp) is left
   alone: it scales on its own. */
@media (min-width: 860px) {
  .chip { font-size: 19px; }
  .chip-e { font-size: 22px; }
  .chip-x { width: 26px; height: 26px; font-size: 17px; }
  .tap-hint { font-size: 16px; }
  .tap-finger, .tap-swipe { font-size: 18px; }
  .drift-foot { font-size: 18px; }
  .sci-card h3 { font-size: 24px; }
  .sci-card p { font-size: 18px; }
  .sci-card .emoji { font-size: 26px; }
  .lockup img.wordmark { height: 30px; }
  .eyebrow { font-size: 14.5px; }
  .btn { font-size: 17px; }
  .btn.big { font-size: 19.5px; }
  .pcard blockquote { font-size: 19px; }
  .who .name { font-size: 15.5px; }
  .who .role { font-size: 14px; }
  .ghost { font-size: 16px; }
  .btn.small { font-size: 15px; }
  .foot-brand .tag { font-size: 16px; }
  .foot-base { font-size: 14px; }
  .foot-nav { font-size: 14px; }
  .legal-body p, .legal-list li { font-size: 17.5px; }
  /* The angle explainer. It carries the most words of any section on the site,
     so it is the one that reads smallest at a desktop viewing distance - owner,
     2026-09-16. Everything here is a bump on a mobile-first value above. */
  .why .sec-head p { font-size: 21px; line-height: 1.62; }
  .why-col h3 { font-size: 28px; }
  .why-list li { font-size: 18.5px; line-height: 1.6; padding-left: 32px; margin-top: 30px; }
  .why-close { font-size: 22px; }
  .why-src { font-size: 13.5px; }
  .t-head { font-size: 13px; }
  .t-copy { font-size: 17px; }
  .t-link a { font-size: 16px; }
  .dialog-head h2 { font-size: 24px; }
  .field label { font-size: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .hero .stage, .btn.big, .tap-finger, .tap-swipe, .chip-x { animation: none; }
  .slide-track { animation: none; }
  .slider { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE PAID FUNNEL (/quiz and /welcome)
   ═══════════════════════════════════════════════════════════════════════════

   ⛔ THE HEADER'S GET STARTED IS HIDDEN ON BOTH FUNNEL PAGES.
   Since 2026-09-21 it is an <a href="/quiz" data-start> on every page of the
   site, because Get started now leads into the paid funnel rather than handing
   out a free space. On the two pages that ARE that funnel it is worse than
   useless: on /quiz it links to the page you are already reading, and on
   /welcome it would push somebody who has just paid back to the start of the
   questions they have already answered.

   ⚠️ Sign in STAYS on both. An account holder who lands here from an ad has no
   other way in: their space's key is a host-only cookie on <handle>.mybetterself.app and
   this origin cannot read it. Hiding both would strand exactly the people who
   already pay. ⛔ Do not "tidy" this into hiding the whole nav.

   ⚠️ The selector is [data-start], NOT [data-cta]. It was the latter until the
   front door changed, and the rule silently stopped matching anything the moment
   the header CTA became a link - a dead rule that reads as if it still works. */
body[data-page="quiz"] .head-links [data-start],
body[data-page="planner"] .head-links [data-start],
body[data-page="begin"] .head-links [data-start],
body[data-page="welcome"] .head-links [data-start] { display: none; }

/* Keep the signup focused; its own legal/contact links remain in the flow. */
body[data-page="begin"] > footer { display: none; }

/* ⚠️ The top padding and the rail's gap are the cheapest height on a short
   phone, where the Continue button on the taller screens (the focus grid) sat
   below the fold — on a multi-select screen that button is the only way out. */
.quiz { padding-block: clamp(16px, 4vw, 56px); }
.quiz .wrap { max-width: 640px; }

/* ---------- progress ---------- */
.q-top { margin-bottom: clamp(14px, 3.5vw, 28px); }
.q-back {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 4px 6px 4px 0; margin-bottom: 10px;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted);
  cursor: pointer;
}
.q-back:hover { color: var(--ink); }
.q-count {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 9px;
}
.q-bar { height: 6px; border-radius: 99px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.q-fill {
  height: 100%; width: 25%; border-radius: 99px;
  background: var(--citrus); box-shadow: none;
  transition: width .32s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- panels ---------- */
.q-panel { text-align: center; }
.q-panel:focus, .q-panel h1:focus, .q-panel h2:focus { outline: none; }
.q-title {
  font-size: clamp(30px, 7.4vw, 46px); font-weight: 900; letter-spacing: -.022em;
  line-height: 1.1; margin-bottom: 16px;
}
.q-head {
  font-size: clamp(24px, 5.6vw, 34px); font-weight: 900; letter-spacing: -.018em;
  line-height: 1.16; margin-bottom: 10px;
}
.q-sub { font-size: 16.5px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; }
.q-sub-lg { font-size: 18px; margin-bottom: 22px; }
.q-note { margin-top: 14px; font-size: 14px; color: var(--muted-2); }
.q-intro .btn { margin-top: 4px; }

/* ---------- the options ----------

   ⚠️ FULL WIDTH ROWS, AND A BIG TAP TARGET. Every one of these is 56px+ tall
   because the traffic this page is built for is a thumb in an in-app browser,
   and a missed tap on a single-select question that auto-advances reads as a
   page that ignored you. */
.q-opts { display: grid; gap: 8px; }
.q-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 58px; padding: 15px 18px;
  font: inherit; font-size: 17px; font-weight: 700; text-align: left; color: var(--ink);
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .1s;
}
.q-opt:hover { border-color: rgba(15, 23, 42, .24); background: rgba(226, 232, 240, .7); }
.q-opt:active { transform: scale(.985); }
/* The 240ms in which the answer is visibly taken, before the panel moves on. */
.q-opt.is-on {
  border-color: var(--citrus); background: rgba(22, 163, 74, .14);
  box-shadow: 0 0 0 1px var(--citrus) inset;
}
.q-emoji { font-size: 21px; line-height: 1; flex: none; }
.q-label { flex: 1; }

/* Question 1 only: nine choices read as a wall as a single column. */
.q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-grid .q-opt {
  flex-direction: column; align-items: flex-start; gap: 8px;
  min-height: 84px; padding: 14px; font-size: 15.5px; line-height: 1.25;
}
.q-grid .q-emoji { font-size: 24px; }

/* The age bands: seven short labels and no emoji, so the tall corner-labelled
   boxes above read as empty. This variant centres the label in a compact chip
   instead. Doubled class on purpose: it has to outrank both `.q-grid .q-opt`
   and the 3-up desktop override below, which would orphan the seventh band.
   56px keeps the thumb floor the comment at the top of this section sets, and
   an odd last chip spans the row rather than hanging beside a gap. */
.q-grid.q-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-grid.q-tight .q-opt {
  flex-direction: row; align-items: center; justify-content: center; gap: 0;
  min-height: 56px; padding: 12px 10px;
  font-size: 16.5px; line-height: 1.2; text-align: center;
}
.q-grid.q-tight .q-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- building ---------- */
.q-build-list { list-style: none; display: grid; gap: 14px; max-width: 380px; margin: 26px auto 0; text-align: left; }
.q-build-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16.5px; font-weight: 600; color: var(--muted-2);
  opacity: .45; transition: opacity .3s, color .3s;
}
.q-build-list li.is-done { opacity: 1; color: var(--ink); }
.q-tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, .15); position: relative;
  transition: border-color .3s, background .3s;
}
.q-build-list li.is-done .q-tick { border-color: var(--citrus); background: var(--citrus); }
.q-build-list li.is-done .q-tick::after {
  content: ''; position: absolute; left: 5px; top: 1px;
  width: 6px; height: 11px; border: solid var(--citrus-ink);
  border-width: 0 2.5px 2.5px 0; transform: rotate(43deg);
}

/* ---------- the email ---------- */
.q-form { max-width: 380px; margin: 0 auto; }
.q-form .field { text-align: left; }
.q-form .btn { margin-top: 10px; }

/* ---------- the paywall ---------- */
.q-card {
  background: var(--panel-solid); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 6px 20px; margin: 22px 0; text-align: left;
}
.q-plan { list-style: none; }
.q-plan li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--hairline);
}
.q-plan li:last-child { border-bottom: 0; }
.q-plan-k { font-size: 14.5px; font-weight: 600; color: var(--muted); flex: none; }
.q-plan-v { font-size: 16.5px; font-weight: 800; text-align: right; }

.q-incl { list-style: none; display: grid; gap: 12px; text-align: left; margin-bottom: 26px; }
.q-incl li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.45; }
.q-incl li::before {
  content: ''; position: absolute; left: 4px; top: 7px;
  width: 6px; height: 11px; border: solid var(--citrus);
  border-width: 0 2.5px 2.5px 0; transform: rotate(43deg);
}

.q-price { margin-bottom: 20px; }
/* ⭐ The billing line is PART OF THE PRICE, never small print (Dan, 2026-10-06).
   Zero of the first eight buy-button presses completed, and Stripe showed no
   payment attempt at all: the page sells 96p a week, the Stripe page then asks
   for £24.99, and that gap reads as a bait-and-switch at the exact moment card
   details are requested. The real charge must be read BEFORE the press, so the
   person who taps has already accepted £24.99. Fewer presses, more completions,
   on purpose. Dimming this back to a q-note recreates the shock with nothing
   erroring, so a verify:begin check pins the rule. */
/* ⭐ The weekly equivalent, deliberately QUIETER than the amount above it
   (Dan, 2026-10-07). It used to BE the amount, at 46px, over a charge thirteen
   times larger in 16px small print. It keeps its job as the number somebody
   prices the plan against, and loses the prominence that made it read as the
   price. ⛔ It must stay smaller than .q-amount and lighter than .q-note: the
   order of weight on this block is charge, then reassurance, then comparison. */
.q-equiv { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }

.q-price .q-note { margin: 10px auto 0; font-size: 16px; font-weight: 600; color: var(--ink); max-width: 400px; }

/* ⭐ The handoff line (2026-10-06): the one sentence between the price and the
   button, so it reads in the same breath as both. Since the loss line merged
   into it (Dan, same day) it carries the scarcity clause too, so it takes the
   loss line's old treatment: full ink rather than muted, one step up from a
   q-note, and capped so it wraps as short lines on a phone. */
.q-handoff { margin: 0 auto 16px; font-size: 15.5px; color: var(--ink); max-width: 400px; }

/* ---------- the inbox ending (/begin, 2026-10-08) ----------

   ⭐ THE FLOW'S DEFAULT ENDING once the plan email has gone (Dan): the plan and
   the price are not shown in the browser at all, and the last screen says the
   plan is in their inbox. Everything after it happens on /p/<token>, which
   opens from a mail client in a REAL browser where every payment rail works.

   ⛔ THE OFFER IS HIDDEN BY THIS CLASS, NOT BY A WRAPPER, and the reason is two
   bugs it avoids. A <div> around the offer would have collapsed `.q-wall > *`
   below to ONE element, so the whole screen would rise as a single block
   instead of in sequence. And a stale stylesheet (an open tab across a deploy,
   since site.css is hashed into the page like every other asset) makes this
   rule a no-op, which shows the inbox card AND the checkout button together -
   two things that both work - rather than hiding somebody's ending.

   ⚠️ `[hidden] { display: none !important }` is the first rule in this file and
   outranks this one, which is what lets the ending itself ship hidden while the
   rule that hides its sibling is already in force. Neither may move.
   ⚠️ The delay reset is not cosmetic: #b-inbox is a late child of .q-wall, so
   it inherits a ~0.5s stagger delay and would appear half a second after an
   otherwise empty screen. */
.q-wall.is-inbox > *:not(.q-inbox) { display: none; }
.q-wall.is-inbox > .q-inbox { animation-delay: 0s; }
/* ⭐ THE ENDING IS FOUR LINES OF TEXT (Dan, 2026-10-08: simplify the content
   AND the styling). It carried a citrus card and a bulleted list; both are gone,
   so there is nothing here to lay out beyond the rhythm between sentences, which
   is the whole point of the change. */
.q-inbox-go { font-size: 17.5px; font-weight: 700; line-height: 1.45; margin-top: 18px; }
.q-inbox-note { margin-top: 8px; }
/* The quiet link, and the block it opens. ⛔ The link gets NO button
   treatment: it is support, not a route (see the markup's own note). */
.q-inbox-help { text-align: left; margin: 0; }
.q-help { text-align: left; margin-top: 16px; }
.q-help-lead { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; }
.q-help .q-form { max-width: none; margin: 0; }
.q-help .form-status { text-align: left; min-height: 0; }
.q-help .form-status:empty { margin: 0; }
.q-help-or { text-align: left; margin: 14px 0 0; }

/* ⛔ THE EMAIL GATE CARD IS GONE, AND ITS RULES WENT WITH IT (Dan, 2026-10-08:
   simplify the styling). It was a citrus card inside the inbox ending carrying
   the one instruction, and before that it stood over the checkout button on the
   ticket. ⚠️ The rules are DELETED rather than left unused, because a styled
   class with no markup is how the card comes back: the next person finds
   `.q-gate` already designed and reads that as evidence it belonged. A
   verify:begin check fails if either the class or the rule returns.
   ⚠️ `.q-gate-email` is NOT part of this - `id="b-gate-email"` survives on the
   ending's address line, and the engine paints it with textContent. */
.q-linklike {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
}
/* ⚠️ SIZED FOR A SENTENCE, NOT A FIGURE (2026-10-07). This line carries the whole
   offer now ("4 day free trial, then £29.99 every 3 months"), and at the old
   46px it wrapped to three lines on a phone and read as shouting. ⛔ Do not push
   it back up for emphasis: the emphasis is that it is the FIRST thing on the
   block, and the charge is inside it. */
.q-amount { font-size: clamp(25px, 5.4vw, 33px); font-weight: 900; letter-spacing: -.02em; line-height: 1.25; }
/* ⛔ FULL INK, because the term is half of what is being charged. It was muted
   while the amount beside it was a weekly rate and the real term lived in the
   line below; the line below is the cancel clause now, so this is the only place
   "every 3 months" appears on the block. */
.q-cadence { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.q-go { width: 100%; max-width: 380px; }

/* ---------- the ticket (/begin's merged plan + offer screen, 2026-10-06) ----

   The plan as an owned OBJECT: their name on it, their habits in it, the price
   directly beneath it. The citrus border keeps it one of the two brightest
   things on the screen beside the CTA, same doctrine as .q-first on /quiz.
   Hidden ships via the [hidden] attribute, so nothing here may set display. */
.q-ticket {
  text-align: left;
  background: var(--panel-solid);
  border: 1px solid rgba(22, 163, 74, .38);
  border-radius: 14px;
  padding: 18px 20px 14px;
  margin: 26px 0 10px;
}
.q-ticket-name { font-size: 21px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 2px; }
.q-ticket-for {
  font-size: 12.5px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.q-ticket-rows {
  list-style: none; display: grid; gap: 11px;
  border-top: 1px solid var(--hairline); padding-top: 14px; margin-bottom: 13px;
}
.q-ticket-rows li { display: flex; gap: 10px; align-items: flex-start; }
.q-ticket-emoji { font-size: 20px; line-height: 1.25; }
.q-ticket-rows strong { display: block; font-size: 15.5px; line-height: 1.3; }
.q-ticket-rows p { font-size: 14px; color: var(--muted); line-height: 1.4; margin: 1px 0 0; }
.q-ticket-foot {
  border-top: 1px solid var(--hairline); padding-top: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}

/* ⛔ The "Read the full plan" toggle and its .q-full/.q-full-toggle rules
   are gone (Dan, 2026-10-06): the last screen sells what starting unlocks
   rather than offering the document for reading. verify:begin pins them out;
   a dead rule is how the door comes back looking current. */

/* ---------- the first step (the immediate win) ----------

   ⚠️ THE CITRUS CARD IS THE ONE LOUD THING ON THE PAYWALL. The step inside it
   is concrete and doable today, shown before the price on purpose: the plan
   proves it is real by handing over its smallest piece. Keep it warmer than
   everything below it, and keep citrus fills off the rest of the panel so the
   card and the CTA stay the two brightest things on screen. */
.q-first {
  text-align: left;
  background: rgba(22, 163, 74, .09);
  border: 1px solid rgba(22, 163, 74, .38); border-radius: 14px;
  padding: 18px 20px 16px; margin: 26px 0 28px;
}
.q-first-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.q-tag {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hairline); border-radius: 99px;
  padding: 4px 11px;
}
.q-tag-hot { color: var(--citrus-ink); background: var(--citrus); border-color: var(--citrus); }
.q-first-step { font-size: 18px; font-weight: 700; line-height: 1.42; margin-bottom: 10px; }
.q-first-note { font-size: 14px; color: var(--muted); }

/* ---------- the road (the long term arc) ----------

   Four stops, today to destination. The lit first dot says "you are already on
   it"; the hollow citrus last dot is the destination not yet reached, which is
   the honest version of the same sell. */
.q-mini-head {
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); text-align: left; margin: 0 0 12px;
}
.q-road { list-style: none; text-align: left; margin: 0 0 28px; }
.q-road li { position: relative; padding: 0 0 20px 36px; }
.q-road li::before {
  content: ''; position: absolute; left: 10px; top: 26px; bottom: 2px; width: 2px;
  border-radius: 2px; background: rgba(15, 23, 42, .1);
}
.q-road li:last-child { padding-bottom: 0; }
.q-road li:last-child::before { display: none; }
.q-dot {
  position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, .18);
}
.q-road-now .q-dot { border-color: var(--citrus); background: var(--citrus); }
.q-road-end .q-dot { border-color: var(--citrus); }
.q-road strong { display: block; font-size: 16.5px; font-weight: 800; margin-bottom: 3px; }
.q-road p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.q-road-end strong { color: var(--citrus-text); }

/* The blocker, answered inside the plan card rather than just echoed. */
.q-card-note {
  border-top: 1px solid var(--hairline); padding: 13px 0 10px;
  font-size: 14.5px; line-height: 1.5; color: var(--muted);
}
/* ---------- the reveal ----------

   ⚠️ Triggered by the `hidden` attribute coming off: a display:none subtree
   runs its animations from the start the moment it first renders, so the
   stagger needs no JavaScript. It carries on the build screen's "being made"
   feel; keep the rises short - this is a paywall, not a title sequence. */
@keyframes q-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.q-wall > * { animation: q-rise .45s cubic-bezier(.2, .7, .3, 1) both; }
.q-wall > :nth-child(2) { animation-delay: .06s; }
.q-wall > :nth-child(3) { animation-delay: .12s; }
.q-wall > :nth-child(4) { animation-delay: .18s; }
.q-wall > :nth-child(5) { animation-delay: .26s; }
.q-wall > :nth-child(6) { animation-delay: .32s; }
.q-wall > :nth-child(7) { animation-delay: .40s; }
.q-wall > :nth-child(n+8) { animation-delay: .48s; }

/* Three soft pulses on today's dot once the panel has settled, then still. An
   infinite pulse next to a price reads as pressure; three reads as "start here". */
@keyframes q-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
}
.q-road-now .q-dot { animation: q-pulse 2s ease-out .9s 3; }

@media (min-width: 620px) {
  .q-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .q-fill { transition: none; }
  .q-build-list li, .q-tick { transition: none; }
  .q-wall > *, .q-road-now .q-dot { animation: none; }
}

/* /welcome names the plan that was just bought, above the account form. Hidden
   in the markup and revealed by assets/welcome.js only when there is something
   to say, so a cold visit to this URL sees the generic page rather than an
   empty line. */
.q-plan-line { margin: 0 0 22px; font-size: 17px; font-weight: 700; color: var(--citrus-text); }

/* ==================================================================== /plan

   The planner funnel (2026-09-27): MyBetterSelf's interview as a CHAT, then the phased
   plan reveal. It reuses the /quiz paywall grammar (.q-wall, .q-first, .q-card,
   .q-incl, .q-price) so the two funnels' money screens stay siblings; only the
   conversation and the phase rail are new. Same audience note as .q-opt: every
   control is thumb-sized for an in-app webview. */
.planner .wrap { max-width: 640px; }
.pl-top { margin-bottom: clamp(18px, 4vw, 28px); }
.pl-bar { height: 6px; border-radius: 99px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.pl-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: var(--citrus); box-shadow: none;
  transition: width .32s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- the conversation ---------- */
.pl-chat { text-align: left; }
.pl-log { display: grid; gap: 14px; }
.pl-msg { display: flex; gap: 10px; align-items: flex-end; }
.pl-msg.pl-user { justify-content: flex-end; }
.pl-av {
  flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  background: var(--panel); border: 1px solid var(--hairline);
}
.pl-av img { display: block; width: 100%; height: 100%; }
.pl-bubble {
  max-width: 86%; padding: 12px 16px; border-radius: 14px;
  font-size: 16.5px; line-height: 1.45;
  background: var(--panel-solid); border: 1px solid var(--hairline);
}
.pl-amy .pl-bubble { border-bottom-left-radius: 6px; }
.pl-user .pl-bubble {
  border-bottom-right-radius: 6px; font-weight: 700;
  background: rgba(22, 163, 74, .12); border-color: rgba(22, 163, 74, .38);
}

/* The typing beat. Three dots, softly cycling; stilled under reduced motion so
   the bubble simply waits. */
.pl-dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.pl-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(15, 23, 42, .32);
  animation: pl-dot 1s ease-in-out infinite;
}
.pl-dots span:nth-child(2) { animation-delay: .16s; }
.pl-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes pl-dot {
  0%, 60%, 100% { opacity: .35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- the tray (the current round's controls) ---------- */
.pl-tray { margin-top: 18px; display: grid; gap: 12px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.pl-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 11px 16px;
  font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink); text-align: left;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 999px;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .1s;
}
.pl-chip:hover { border-color: rgba(15, 23, 42, .24); background: rgba(226, 232, 240, .7); }
.pl-chip:active { transform: scale(.97); }
.pl-chip.is-on {
  border-color: var(--citrus); background: rgba(22, 163, 74, .14);
  box-shadow: 0 0 0 1px var(--citrus) inset;
}
.pl-chip-emoji { font-size: 18px; line-height: 1; }
.pl-chip-sm { min-height: 38px; padding: 8px 13px; font-size: 14px; }
.pl-go { justify-self: start; }
.pl-go[disabled] { opacity: .45; cursor: default; }
.pl-skip { font: inherit; font-size: 15px; }

/* The free line. One textarea, deliberately shallow: it asks for a sentence,
   not a story, and a tall empty box makes skipping feel like failing. */
.pl-note {
  /* ⚠️ `block`, or the textarea sits on a text baseline and adds a few pixels of
     inline leading under itself - which showed up as the one screen in the flow
     whose Continue button was further down than every other. */
  display: block;
  width: 100%; padding: 13px 15px; resize: none;
  font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink);
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 14px;
}
.pl-note:focus { outline: none; border-color: rgba(15, 23, 42, .28); }
.pl-note-row { display: flex; gap: 12px; align-items: center; }

/* ---------- the habit proposal cards ---------- */
.pl-hab-grid { display: grid; gap: 10px; }
.pl-hab {
  display: grid; gap: 6px; width: 100%; padding: 13px 15px;
  font: inherit; text-align: left; color: var(--ink);
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .1s;
}
.pl-hab:hover { border-color: rgba(15, 23, 42, .24); }
.pl-hab:active { transform: scale(.99); }
.pl-hab.is-on {
  border-color: var(--citrus); background: rgba(22, 163, 74, .1);
  box-shadow: 0 0 0 1px var(--citrus) inset;
}
.pl-hab-head { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.pl-hab-emoji { font-size: 19px; line-height: 1; flex: none; }
.pl-hab-min { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted-2); }
.pl-hab-line { font-size: 14px; line-height: 1.4; color: var(--muted); }
.pl-more { font: inherit; font-size: 14.5px; justify-self: start; }

/* The build beat inside a bubble: the /quiz build list, sized for chat. */
.pl-build-list { list-style: none; display: grid; gap: 10px; }
.pl-build-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--muted-2);
  opacity: .45; transition: opacity .3s, color .3s;
}
.pl-build-list li.is-done { opacity: 1; color: var(--ink); }
.pl-tick {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, .15); position: relative;
  transition: border-color .3s, background .3s;
}
.pl-build-list li.is-done .pl-tick { border-color: var(--citrus); background: var(--citrus); }
.pl-build-list li.is-done .pl-tick::after {
  content: ''; position: absolute; left: 4px; top: 0;
  width: 5px; height: 10px; border: solid var(--citrus-ink);
  border-width: 0 2.5px 2.5px 0; transform: rotate(43deg);
}

/* ---------- the plan reveal ---------- */
.pl-habs { list-style: none; display: grid; gap: 12px; text-align: left; margin-bottom: 26px; }
.pl-habrow { display: flex; gap: 11px; align-items: flex-start; }
.pl-habrow strong { display: block; font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.pl-habrow p { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
/* The AI draft's "why this one, for you" line, when a plan carries one. */
.pl-hab-why { margin-top: 3px; font-style: italic; color: var(--muted-2); }
/* /begin's phase one road carries the same line, where .q-road p has already set
   a larger size; keep it subordinate to the dose above it. */
.q-road .pl-hab-why { font-size: 14px; }

/* The phase rail. Phase one is OPEN and warm; the later phases are locked
   cards whose ghost bars stand for detail that is deliberately unwritten (the
   product writes each phase from how the one before went). The bars are
   decoration and say so to a screen reader via aria-hidden in the markup. */
.pl-phases { display: grid; gap: 12px; text-align: left; margin-bottom: 10px; }
.pl-ph {
  background: var(--panel-solid); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 16px 18px;
}
.pl-ph.is-open { border-color: rgba(22, 163, 74, .38); background: rgba(22, 163, 74, .05); }
.pl-ph-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.pl-ph-n {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 800;
  border: 2px solid rgba(15, 23, 42, .18); color: var(--muted);
}
.pl-ph.is-open .pl-ph-n { border-color: var(--citrus); background: var(--citrus); color: var(--citrus-ink); }
.pl-ph-head strong { display: block; font-size: 17px; font-weight: 800; }
.pl-ph-weeks { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.pl-ph-focus { font-size: 15px; line-height: 1.5; color: var(--muted); margin-bottom: 12px; }
.pl-ph-steps { list-style: none; display: grid; gap: 10px; margin-bottom: 12px; }
.pl-ph-steps li { display: flex; gap: 10px; align-items: flex-start; }
.pl-ph-steps strong { display: block; font-size: 15px; font-weight: 800; }
.pl-ph-steps p { font-size: 14px; line-height: 1.4; color: var(--muted); }
.pl-ph-detail { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 7px; }
.pl-ghosts { display: grid; gap: 8px; margin-bottom: 11px; }
.pl-ghost { display: block; height: 10px; border-radius: 6px; background: rgba(15, 23, 42, .06); }
.pl-ghost:nth-child(1) { width: 88%; }
.pl-ghost:nth-child(2) { width: 64%; }
.pl-ghost:nth-child(3) { width: 76%; }
.pl-ph-lock { font-size: 13px; color: var(--muted-2); margin-bottom: 9px; }
.pl-ph-mile { font-size: 13.5px; font-weight: 800; color: var(--citrus-text); }
.pl-phase-note { text-align: left; margin: 0 0 26px; }

/* The evidence. Cited findings only — the numbers here shipped on the public
   site first — with the citation visibly attached to every line. */
.pl-why { display: grid; gap: 20px; text-align: left; margin-bottom: 26px; }
.pl-why-head { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.pl-why-pt p:first-child { font-size: 15px; line-height: 1.5; }
.pl-why-grp { display: grid; gap: 14px; }
.pl-cite { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }

/* The tailoring row. */
.pl-tune { text-align: left; margin-bottom: 26px; display: grid; gap: 12px; }
.pl-tune-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pl-tune-k { flex: none; min-width: 64px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pl-tune-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.pl-tune .q-note { margin-top: 2px; }

/* ⛔ The GP line. A boundary sentence, not decoration: visibly set apart, never
   citrus (it is not a sell), and nothing may hide it while a plan carries it. */
.pl-gp {
  text-align: left; font-size: 14.5px; line-height: 1.55; color: var(--muted);
  border-left: 3px solid rgba(15, 23, 42, .21);
  padding: 4px 0 4px 14px; margin: 0 0 26px;
}

@media (prefers-reduced-motion: reduce) {
  .pl-fill { transition: none; }
  .pl-dots span { animation: none; }
  .pl-build-list li, .pl-tick { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE SIGN UP FLOW (/begin) — THE ADDITIONS ONLY
   ═══════════════════════════════════════════════════════════════════════════

   ⭐ Dan's flow (2026-09-30) was designed as a static mock in ~/plantest on a
   VERBATIM copy of this stylesheet, which is why it costs so little here. Its
   question screens, its email panel, its paywall, its plan document
   and its loaders are drawn with classes that already existed above:

     .q-top .q-bar .q-fill .q-count .q-back   the progress rail
     .q-panel .q-head .q-sub .q-note          a screen
     .q-opts .q-grid .q-opt .q-emoji          tappable answers
     .q-build-list .q-tick                    the "being made" loaders
     .q-form .field .btn-provider .or         the email, providers included
     .q-wall .q-first .q-road .q-card .q-plan .q-incl .q-price   the paywall
     .pl-phases .pl-ph .pl-habs .pl-why .pl-cite .pl-gp          the plan
     .pl-tune-row .pl-chip .pl-chip-sm .pl-hab                   chips + cards

   What follows is the FIVE things this site had no grammar for, and that is the
   honest cost of the flow. Everything inherits the tokens above (--citrus,
   --panel, --hairline, --angle), so a palette change carries into it for free.
     1. .a-fig     — figures. Nothing else on this site draws a chart.
     2. .a-cat     — the habit menu, grouped by domain rather than one flat list.
     3. .a-story   — the full screen reveal. The one new LAYOUT.
     4. .a-dial    — the pace control. CUT 2026-10-06 with its screen; the
                    number is kept so 5 below stays what the notes call it.
     5. .a-mom     — the "already taking shape" momentum line.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- 1. figures ----------
   ⚠️ The recolour follows this site's own rule and is not a free choice: citrus
   is the payoff line, the angle hue is the subject, and greys are the thing
   being argued against. A chart that made the grey line citrus would be arguing
   the opposite of its caption with nothing erroring. */
.a-fig {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 18px 16px 14px; margin: 4px 0 22px;
}
.a-fig svg { width: 100%; height: auto; display: block; }
.a-fig-key { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }
.a-fig-k { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.a-fig-sw { width: 20px; height: 3px; border-radius: 2px; background: currentColor; }
.a-fig-cap { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted-2); text-align: center; }

/* ---------- the argument beats ----------
   The three screens of /begin that carry a FINDING rather than a question
   (science, proof, seeing).

   ⛔ SCOPED TO `.a-beat`, NEVER SET GLOBALLY. `.pl-why-pt` and `.pl-cite` are
   the PLAN's classes: assets/begin.js and assets/planner.js render them into
   the plan document too, where a habit card's evidence is one row among six and
   is deliberately sized for a list. Retuning them at the top level would resize
   every /plan paywall and plan document on the way past, which is a change to
   two other funnels nobody asked for and nothing would flag.

   ⭐ THE RATIO IS THE POINT (Dan, 2026-09-30: much smaller source, larger main
   text; widened again 2026-10-06, fractionally smaller citation for the older
   readers the flow actually gets). The source was 12.5px under a 15px body -
   0.83 of it - so the finding and its citation read as one block of small
   print, and the screen's whole content looked like a footnote. The body is
   the entire argument on these screens, so it is set to be READ; the source
   under it is provenance, and at 0.57 of the body it reads as a footnote to a
   sentence instead of more of it.
   ⚠️ Do not close the gap back up by nudging one value: the two numbers are a
   pair, and the thing being tuned is the distance between them.
   ⚠️ The body rule is p:first-child, so it only lands on a HEADLESS pl-why-pt.
   The proof beat's card head was soaking it up until 2026-10-06 (the head got
   the 18.5px and the finding under it stayed at the 16px default, which is
   what read as small); the head is the screen's headline now, so both prose
   beats take this size on the finding itself. */
.a-beat .pl-why-pt p:first-child { font-size: 18.5px; line-height: 1.5; }
.a-beat .a-fig-cap { font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.a-beat .pl-cite { margin-top: 9px; font-size: 10.5px; line-height: 1.45; }

/* ⚠️ The one beat whose `.pl-why` is followed by the momentum pill rather than
   by the button, so the shared 26px is 4px more air than it wants above a pill.
   Scoped to the panel rather than written inline, and it does NOT touch the
   Continue arithmetic: `.a-mom` owns the gap under itself on this screen. */
.q-panel[data-b-panel="seeing"] .pl-why { margin-bottom: 22px; }

/* ---------- 2. the habit menu ----------
   Twenty seven habits filtered to what the answers touched, grouped by domain.
   ⚠️ A flat .q-opts list of that many rows reads as a chore; the headings turn
   it into a menu you scan. The rows are still .q-opt, so a tap feels the same
   here as everywhere else in the flow. */
.a-cat { display: grid; gap: 22px; text-align: left; }
.a-cat-grp h3 {
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--angle); margin-bottom: 10px;
}
.a-cat .q-opt { min-height: 54px; font-size: 16px; }
.a-cat .q-opt .q-label { display: block; }
.a-cat-tiny {
  display: block; margin-top: 3px; font-size: 13.5px; font-weight: 500; color: var(--muted);
}
/* The per category reveal. Left aligned under its own rows rather than centred
   like the note that widens the whole menu: it belongs to the category above it,
   and a centred link at the foot of six categories reads as six ways out. */
.a-cat-more { margin: 10px 0 0; }
.a-cat-more .linkish { font-size: 14.5px; }
/* ⭐ A ticked habit wears the PERSON'S hue, not citrus (Dan, 2026-10-06: the
   gold selected state read wrong on a screen that opens with several rows
   pre-ticked - citrus means "this is the action", and five gold boxes compete
   with the one Continue button). Scoped to the habit menu only: every other
   screen's is-on stays citrus, and by this screen --angle always holds their
   focus hue (focus and primary are both REQUIRED, and a restored session
   re-applies the hue at boot).
   ⛔ IT SURVIVED THE 2026-10-07 REVERT OF THE SHORTLIST ON PURPOSE. The
   `.a-picks` half of this selector went with it, along with `.a-pick-why`; this
   rule is a SEPARATE decision of Dan's from the same review and is not part of
   what the funnel numbers argued against. Do not "finish" that revert by
   restoring citrus here. */
.a-cat .q-opt.is-on {
  border-color: var(--angle);
  background: color-mix(in srgb, var(--angle) 14%, transparent);
  box-shadow: 0 0 0 1px var(--angle) inset;
}
/* The live count, pinned above the footer so the ask stays visible while the
   menu scrolls under it. */
.a-count {
  position: sticky; bottom: 0; z-index: 2;
  margin: 14px -22px 0; padding: 12px 22px;
  background: linear-gradient(to top, var(--bg) 60%, rgba(240, 248, 255, 0));
  font-size: 14.5px; font-weight: 700; color: var(--muted); text-align: center;
}
.a-count b { color: var(--citrus-text); }

/* ---------- 3. the reveal, as a story ----------
   One idea a screen: ten words of headline, a figure, a button. The rest of
   this site is scroll pages, so this is the only piece needing a layout of its
   own.
   ⛔ IT IS OPAQUE, AND THE GLOW IS ITS OWN (owner, 2026-09-30: "I can see the
   page content behind this overlay"). It was `rgba(255, 255, 255, 1)` so that
   the drifting `.blob`s would still show through - but a fill that passes a
   blob passes everything else at z-index 0 too, and what actually came through
   was the paywall's own headings and citrus card, ghosting behind the beat.
   ⚠️ So do not solve this by dimming the fill further: the blobs are the
   whole reason it was translucent, and dropping to .98 keeps the ghost while
   losing them. The two radial layers below ARE the ambient background, baked
   into this element over a solid canvas, so the takeover still reads as the
   same product with nothing behind it to bleed. They are static rather than
   drifting on purpose - a beat is on screen for seconds, and an animated
   backdrop under a headline that is itself animating in is motion competing
   with the only thing being read. */
.a-story {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  background:
    radial-gradient(90vmax 90vmax at 10% -14%, rgba(45, 212, 191, .20) 0%, transparent 62%),
    radial-gradient(80vmax 80vmax at 106% 16%, rgba(56, 189, 248, .12) 0%, transparent 60%),
    radial-gradient(95vmax 95vmax at 30% 118%, rgba(34, 197, 94, .13) 0%, transparent 62%),
    var(--bg-deep);
}
.a-story-segs { display: flex; gap: 5px; padding: 16px 18px 0; }
.a-story-seg { flex: 1; height: 3px; border-radius: 99px; background: rgba(15, 23, 42, .11); overflow: hidden; }
.a-story-seg i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--citrus); transition: width .45s ease; }
.a-story-seg.is-on i { width: 100%; }
.a-story-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 24px 26px 120px; text-align: center; max-width: 560px; margin-inline: auto;
  animation: a-beat .5s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes a-beat { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.a-story-body .eyebrow { margin-bottom: 14px; color: var(--angle); }
.a-story-h { font-size: clamp(30px, 8.2vw, 46px); font-weight: 900; line-height: 1.12; letter-spacing: -.024em; }
.a-story-l { margin-top: 16px; font-size: 17.5px; line-height: 1.5; color: var(--muted); max-width: 26em; }
.a-story-big { font-size: clamp(64px, 20vw, 120px); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--citrus); }
.a-story-biglab { margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.a-story-fig { width: 100%; margin: 22px 0 4px; background: none; border: 0; padding: 0; }
/* ⭐ The MyBetterSelf beats' screenshot rides the homepage's own phone frame (Dan,
   2026-10-06, second pass: the four captures have four aspect ratios, so bare
   rounded imgs rendered at four visibly different sizes; the bezel, the island
   and ONE top-anchored 9/16.5 crop are what make the beats read as the same
   phone carried from screen to screen). The shell metrics are the homepage's
   scaled to this width - restate them together or the frame reads home-made.
   ⚠️ Sized by the WIDTH terms only: the clip's fixed aspect makes the frame
   about 1.83x taller than wide, and .a-story-body does not scroll, so the vh
   term is the old height cap solved for width - without it a tall capture
   pushes the statement and the button off a short phone with nothing
   erroring. */
.a-story-shot { margin: 18px auto 0; }
.a-story-shot .phone {
  width: min(176px, 48vw, calc(19.6vh + 8px));
  border-radius: 26px; padding: 7px; transform: rotate(-2.4deg);
}
.a-story-shot .phone .island { width: 48px; height: 13px; top: 12px; border-radius: 9px; }
.a-story-shot .phone .clip { border-radius: 20px; --pad: 20px; aspect-ratio: 9 / 16.5; }
.a-story-shot .phone .clip img { height: 100%; object-fit: cover; object-position: center top; }
/* ⭐ The statement under a product beat (Dan, 2026-10-06, second pass): the
   beat's own one line benefit, uncited by design - so it may carry no figure,
   and verify:begin counts the digits. Brighter than .a-story-l on purpose: it
   is the argument, not a caption. */
.a-story-fact { margin-top: 18px; font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--ink); max-width: 26em; }
/* ⭐ THE "ALL OF IT" BEAT'S HABIT LIST IS MARKUP, NOT A DRAWING (owner,
   2026-09-30: the boxes were "condensed and tiny"). The rows were 16 units tall
   in a 300 unit viewBox, so every label rendered at around 11px on every screen
   and the whole plan read as a grey block on the one beat whose job is to show
   the person their own habits. They are cards now, at the size a full screen
   takeover asks for, in the same shape the pace panel uses one screen later.
   ⚠️ `.is-many` exists because the list may neither scroll nor be cut short:
   at six or seven habits the comfortable row will not fit a small phone beside
   a 30px headline, so it tightens rather than losing a habit off the bottom. */
.a-story-areas { width: 100%; display: grid; gap: 8px; margin: 20px 0 4px; text-align: left; }
.a-story-area {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--hairline); background: rgba(15, 23, 42, .03);
}
.a-story-area.is-on { border-color: var(--citrus); background: rgba(22, 163, 74, .12); }
.a-story-area-e { flex: none; font-size: 19px; line-height: 1; }
.a-story-area-l { min-width: 0; font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--muted); }
.a-story-area.is-on .a-story-area-l { color: var(--ink); }
.a-story-area-t {
  margin-left: auto; flex: none; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.a-story-area.is-on .a-story-area-t { color: var(--citrus-text); }
.a-story-areas.is-many { gap: 6px; margin-top: 16px; }
.a-story-areas.is-many .a-story-area { gap: 9px; padding: 8px 12px; border-radius: 12px; }
.a-story-areas.is-many .a-story-area-e { font-size: 17px; }
.a-story-areas.is-many .a-story-area-l { font-size: 14.5px; }
/* ⛔ THE z-index IS LOAD BEARING AND THE REASON IS NOT OBVIOUS. .a-story-body
   carries `animation: a-beat ... both`, and a forwards-filled TRANSFORM
   animation leaves the element with a stacking context forever, so it paints in
   the positioned layer at z-index 0 - i.e. it can paint over anything in this
   overlay that does not outrank it. That is how the story's own controls once
   became untappable: every press landed on the headline, it looked completely
   correct, and only real input reproduced it (a programmatic .click() works
   fine). The foot holds the only controls left, so it keeps its layer.
   ⛔ AND IT IS WHY NOTHING INVISIBLE GOES BACK IN HERE. This carried two
   full-height transparent buttons - forward on the right, back on the left -
   until 2026-09-30, when the owner asked for a plain Continue instead. A tap
   target you cannot see is a control with no affordance AND the element most
   likely to end up under that animation. */
.a-story-foot {
  position: absolute; inset: auto 0 0; padding: 0 26px 34px;
  display: grid; gap: 12px; justify-items: center;
  z-index: 3;
}
/* The story is a takeover, so nothing behind it may scroll under it. */
body.is-story { overflow: hidden; }

/* ---------- 4. the pace dial HAS NO RULES ANY MORE ----------
   ⛔ THE SCREEN WAS CUT (Dan, 2026-10-06: "we don't need the starting pace
   screen") and `.a-dial` and `.a-load` came out with it - the dial was a
   display control, and the compiled plan carries its pace from the person's
   own intensity answer. The `.a-areas` habit list that once sat under the
   meter stays gone too (Dan, 2026-09-30: "too text-heavy"). ⛔ Do not bring
   any of them back: a dead rule is how a removed screen returns looking
   current, and verify:begin pins all three families out. The story's
   `.a-story-area` rows above are what still show You do / MyBetterSelf watches. */

/* ---------- 5. the momentum line ----------
   Sits under the subhead on the screens that have earned it. It is the cheapest
   thing in the flow and it is most of why a flow this long does not read as a
   form. */
.a-mom {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 7px 14px; border-radius: 99px;
  background: rgba(22, 163, 74, .1); border: 1px solid rgba(22, 163, 74, .28);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.a-mom::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--citrus); }

/* The read-back chips. .pl-chip-sm already exists; this is only the wrap. */
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }

/* ---------- the starting line has NO RULES OF ITS OWN ----------
   ⛔ AND THAT IS THE POINT, SINCE 2026-09-30 (Dan: split the multi question step
   into clean steps). It was one screen asking four things, so it needed a row
   layout (`.b-base`, `.b-base-row`, `.b-base-k`, `.b-base-note`,
   `.b-base-opts`, plus its own Continue override below) and a hairline between
   the rows to stop four questions reading as one wall. Four screens of one
   question each are ORDINARY question screens: `.q-panel` + `.q-head` +
   `.q-sub` + `.q-opts`, exactly like every other round in the flow, so all six
   rules came out.
   ⛔ Do not bring them back for a stack of questions on one screen. The version
   before them reused `.pl-tune-row`, the paywall's HORIZONTAL tune row sized for
   the one word key "PACE", and paid for it with three inline `style=` attributes
   per row undoing the layout it had just opted into. If a screen ever needs two
   questions again, the thing to question is the screen. */

/* ---------- the Continue button's own air ----------
   ⚠️ THE SHARED .btn-block RULE GIVES IT 4px, which is less than the 10px
   BETWEEN two answer rows - so on every screen in the flow the action read as one more
   option in the list rather than as the way out of the screen. One rule owns the
   gap for the whole flow, and the overrides below exist because .btn is
   `inline-flex`, so its margin does NOT collapse with the block above it: where
   that block already ends in a margin, the two would simply add up.
   ⛔ Keep the arithmetic, not just the numbers: every line below lands on the
   same 28px, so a screen whose last block changes needs its own line here rather
   than a nudge to the base value. */
.quiz [data-b-next] { margin-top: 28px; }
.quiz .a-mom + [data-b-next] { margin-top: 8px; }        /* .a-mom ends in 20px */
.quiz .pl-tune + [data-b-next] { margin-top: 2px; }      /* .pl-tune ends in 26px */
.quiz .q-card + [data-b-next] { margin-top: 2px; }       /* .q-card ends in 22px, 26px inline */
.quiz .pl-why + [data-b-next] { margin-top: 2px; }       /* .pl-why ends in 26px */
.quiz .q-form [data-b-next] { margin-top: 16px; }        /* .field ends in 12px */

@media (prefers-reduced-motion: reduce) {
  .a-story-body { animation: none; }
  .a-story-seg i { transition: none; }
}

/* ───────────────────────────── Wallet-first checkout (/begin ticket panel)
   Four prominent payment options rendered immediately so there is no layout
   jump as Stripe boots. The row grid is responsive: 2x2 under 480px, 1x4
   above. Each placeholder uses the provider's brand treatment with a central
   logo + a loading spinner; when Stripe reports availability the whole row is
   replaced by the live Stripe Express Checkout mount. */

.checkout { margin-top: 10px; }

.checkout-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
@media (min-width: 540px) { .checkout-wallets { grid-template-columns: repeat(4, 1fr); } }

.wallet-btn {
  position: relative;
  height: 54px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #000;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .08s ease, box-shadow .18s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wallet-btn:active { transform: scale(.98); }
.wallet-btn:focus-visible { outline: 2px solid var(--citrus); outline-offset: 2px; }

.wallet-btn.wallet-google { background: #000; }
.wallet-btn.wallet-link { background: #00d66f; }
.wallet-btn.wallet-link .wallet-logo-link { color: #011e0f; }
.wallet-btn.wallet-revolut { background: #0666eb; }
.wallet-btn.wallet-paypal { background: #ffc439; }

/* Loading state: dimmed overlay + spinner, logo still visible. */
.wallet-btn.is-loading { opacity: .9; }
.wallet-btn.is-loading .wallet-logo { opacity: .55; }
.wallet-btn.is-loading .wallet-spinner { opacity: 1; }

.wallet-btn.is-unavailable {
  background: #e9e4f4;
  color: #6c6386;
  cursor: not-allowed;
  opacity: .72;
}
.wallet-btn.is-unavailable .wallet-logo { opacity: .5; filter: grayscale(.6); }

/* Logos — SVG masks, kept tiny on purpose so the row reads as a wallet
   first and foremost rather than as a text button. Brand compliance: Apple
   wordmark, Google "G" + Pay wordmark, Link wordmark, Revolut wordmark. */
.wallet-logo {
  display: inline-block;
  width: 56%;
  height: 24px;
  background: currentColor;
  color: #fff;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.wallet-logo-apple {
  color: #fff;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 72'><path d='M39.9 20.9c-2.6 3.1-6.8 5.5-10.9 5.1-.5-4.1 1.5-8.4 4-11 2.6-3.1 7.2-5.3 10.9-5.5.4 4.2-1.3 8.3-4 11.4zm3.9 6.2c-6-.3-11 3.4-13.9 3.4-2.9 0-7.3-3.2-12-3.2-6.2.1-11.9 3.6-15 9.1-6.4 11.1-1.7 27.4 4.6 36.4 3 4.4 6.7 9.3 11.5 9.2 4.6-.2 6.3-3 11.9-3 5.5 0 7 3 11.9 2.9 4.9-.1 8-4.5 11-8.9 3.4-5 4.8-9.9 4.9-10.1-.1 0-9.5-3.6-9.6-14.3-.1-9 7.3-13.3 7.6-13.5-4.2-6.1-10.7-6.8-13-7zM73 15.3h17.5c9 0 15.3 6.2 15.3 15.2s-6.4 15.3-15.5 15.3H80.4V62H73zm7.4 6.2v18h7.4c5.6 0 8.8-3 8.8-9s-3.2-9-8.8-9zm27.7 32c0-5.3 4-8.5 11.2-9l8.2-.5v-2.3c0-3.4-2.3-5.4-6.1-5.4-3.6 0-5.9 1.7-6.5 4.4h-6.7c.4-5.5 5-9.6 13.4-9.6s12.9 4.2 12.9 10.6V62h-6.9v-4.1h-.2c-2 2.8-5.5 4.6-9.1 4.6-5.6 0-9.5-3.4-9.5-8.5zm19.4-2.8V48l-7.3.5c-3.7.3-5.8 1.9-5.8 4.5s2.1 4.3 5.5 4.3c4.3 0 7.6-2.9 7.6-6.6zm11.2 20.4v-5.6c.5.1 1.7.1 2.3.1 3.4 0 5.2-1.4 6.3-5l.7-2.1-12.5-34.3h7.8l8.8 28.1h.1l8.8-28.1h7.5l-13 36.1c-3 8.3-6.4 11-13.7 11-.5 0-2.5-.1-3.1-.2z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 72'><path d='M39.9 20.9c-2.6 3.1-6.8 5.5-10.9 5.1-.5-4.1 1.5-8.4 4-11 2.6-3.1 7.2-5.3 10.9-5.5.4 4.2-1.3 8.3-4 11.4zm3.9 6.2c-6-.3-11 3.4-13.9 3.4-2.9 0-7.3-3.2-12-3.2-6.2.1-11.9 3.6-15 9.1-6.4 11.1-1.7 27.4 4.6 36.4 3 4.4 6.7 9.3 11.5 9.2 4.6-.2 6.3-3 11.9-3 5.5 0 7 3 11.9 2.9 4.9-.1 8-4.5 11-8.9 3.4-5 4.8-9.9 4.9-10.1-.1 0-9.5-3.6-9.6-14.3-.1-9 7.3-13.3 7.6-13.5-4.2-6.1-10.7-6.8-13-7zM73 15.3h17.5c9 0 15.3 6.2 15.3 15.2s-6.4 15.3-15.5 15.3H80.4V62H73zm7.4 6.2v18h7.4c5.6 0 8.8-3 8.8-9s-3.2-9-8.8-9zm27.7 32c0-5.3 4-8.5 11.2-9l8.2-.5v-2.3c0-3.4-2.3-5.4-6.1-5.4-3.6 0-5.9 1.7-6.5 4.4h-6.7c.4-5.5 5-9.6 13.4-9.6s12.9 4.2 12.9 10.6V62h-6.9v-4.1h-.2c-2 2.8-5.5 4.6-9.1 4.6-5.6 0-9.5-3.4-9.5-8.5zm19.4-2.8V48l-7.3.5c-3.7.3-5.8 1.9-5.8 4.5s2.1 4.3 5.5 4.3c4.3 0 7.6-2.9 7.6-6.6zm11.2 20.4v-5.6c.5.1 1.7.1 2.3.1 3.4 0 5.2-1.4 6.3-5l.7-2.1-12.5-34.3h7.8l8.8 28.1h.1l8.8-28.1h7.5l-13 36.1c-3 8.3-6.4 11-13.7 11-.5 0-2.5-.1-3.1-.2z'/></svg>");
}
.wallet-logo-google {
  width: 72px;
  color: #fff;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 70'><text x='0' y='48' font-family='Arial,sans-serif' font-size='32' font-weight='700'>G Pay</text></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 70'><text x='0' y='48' font-family='Arial,sans-serif' font-size='32' font-weight='700'>G Pay</text></svg>");
}
.wallet-logo-link {
  width: 42px;
  color: #011e0f;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'><text x='0' y='30' font-family='Arial,sans-serif' font-size='26' font-weight='800'>Link</text></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'><text x='0' y='30' font-family='Arial,sans-serif' font-size='26' font-weight='800'>Link</text></svg>");
}
.wallet-logo-paypal {
  width: 78px;
  color: #003087;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 40'><text x='0' y='30' font-family='Arial,sans-serif' font-size='28' font-weight='800' font-style='italic'>PayPal</text></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 40'><text x='0' y='30' font-family='Arial,sans-serif' font-size='28' font-weight='800' font-style='italic'>PayPal</text></svg>");
}
.wallet-logo-revolut {
  width: 76px;
  color: #fff;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40'><text x='0' y='30' font-family='Arial,sans-serif' font-size='26' font-weight='800'>Revolut</text></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40'><text x='0' y='30' font-family='Arial,sans-serif' font-size='26' font-weight='800'>Revolut</text></svg>");
}

/* Spinner — a thin crescent that rotates. Overlaid on the logo when loading. */
.wallet-spinner {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, .21);
  border-top-color: #fff;
  animation: walletSpin .9s linear infinite;
  opacity: 0;
  transition: opacity .2s;
}
.wallet-btn.wallet-link .wallet-spinner { border-color: rgba(1, 30, 15, .25); border-top-color: #011e0f; }
.wallet-btn.wallet-link.is-unavailable .wallet-spinner,
.wallet-btn.is-unavailable .wallet-spinner { display: none; }
@keyframes walletSpin { to { transform: rotate(1turn); } }

/* The real Stripe Express Checkout container. Hidden until it is ready and
   at least one wallet is available. */
.checkout-express { margin-bottom: 6px; }
/* Divider: "Or pay by card" between wallets and Payment Element. */
.checkout-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* Payment Element: lives on a solid white card so Stripe's card inputs are
   readable against the ambient background. */
.checkout-payment {
  background: #fff;
  color: #0b1222;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .19);
  margin-bottom: 16px;
  min-height: 160px;
}

#checkout-pay[disabled] { opacity: .55; cursor: not-allowed; }
#checkout-pay[disabled]:hover { animation: none; box-shadow: none; }

/* ── wallet overlay: shown when a visitor taps a placeholder before Stripe
   reports availability. One modal per boot, dismissible. */
.wallet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .43);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: walletOverlayFade .18s ease;
}
.wallet-overlay[hidden] { display: none; }
@keyframes walletOverlayFade { from { opacity: 0; } to { opacity: 1; } }

.wallet-overlay-card {
  background: var(--dialog, #1e293b);
  color: var(--ink);
  border-radius: 14px;
  padding: 28px 24px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .2);
  animation: walletOverlayCard .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes walletOverlayCard { from { transform: translateY(10px) scale(.98); opacity: 0; } }

.wallet-overlay-logo {
  width: 72px;
  height: 42px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-overlay-logo::before {
  content: '';
  display: block;
  width: 60%;
  height: 20px;
  background: currentColor;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

.wallet-overlay-title { font-size: 20px; font-weight: 800; margin: 0; }
.wallet-overlay-text { margin: 10px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.wallet-overlay-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, .13);
  border-top-color: var(--citrus);
  animation: walletSpin 1s linear infinite;
}
.wallet-overlay-ready { background: rgba(22, 163, 74, .14); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.wallet-overlay-ok { margin: 0; color: var(--ink); font-weight: 600; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(15, 23, 42, .06); }

body.wallet-overlay-open { overflow: hidden; }

.form-status.is-error { color: #fca5a5; }
.g-stars { display: block; flex: none; color: #f59e0b; letter-spacing: 2px; font-size: 17px; }
.g-quote-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.g-quote-top figcaption { margin: 0 !important; text-align: left; font-weight: 600 !important; color: var(--muted-2) !important; }
.g-quote-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.g-quote-photo { display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; }
.g-build-title { margin-bottom: 18px; }
.g-wait-head { margin: 26px 0 12px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.g-wait-reviews .g-quote { min-height: 150px; }
.g-quote { position: relative; }
.g-quote.is-placeholder { border-style: dashed; border-color: #f59e0b; }
.g-quote-flag { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 99px; background: #fef3c7; color: #92400e; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.g-wait-reviews { margin-top: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-badges .ai-badge { margin-bottom: 0; }
.proof-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(245, 158, 11, .45); color: var(--ink); font-weight: 700; font-size: 12.5px; }
.proof-badge svg { flex: none; color: #f59e0b; }
.g-proof-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 14px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(245, 158, 11, .45); font-size: 13px; font-weight: 700; color: var(--ink); }
.g-proof-pill span { color: #f59e0b; }
.g-email-panel .g-proof-pill { margin-top: 18px; }
.g-proof-line { margin: 18px 0 6px; font-size: 16px; color: var(--ink); }
.g-wait-proof { text-align: center; margin-top: 20px; }
.g-wait-proof span { color: #f59e0b; }
.g-stat-proof { background: var(--citrus); border-color: var(--citrus); color: #fff; }
.g-stat-proof b, .g-stat-proof p { color: #fff; }
.g-trust li:first-child span { color: #f59e0b; }

/* ═══════════════════════════════════════════════════════════════════════════
   THE SKY HERO, homepage only (Dan, 2026-10-24, after the FintechX Framer
   template). skyHero() in build.mjs writes the markup; the art is Dan's, in
   assets/sky/. Mobile: sky over a meadow path, nothing else downloaded.
   Desktop (900px+): the app in the valley between two hills, clouds drifting.
   ═══════════════════════════════════════════════════════════════════════════ */

/* The header floats as a white pill over the sky (any page with `data-sky`
   on <body>: the homepage and the health landing page). The negative margin pulls
   the hero up underneath it; sticky keeps the pill with the reader. */
body[data-sky] .site-head {
  background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding-top: 12px; margin-bottom: -72px; pointer-events: none;
}
body[data-sky] .site-head .wrap {
  pointer-events: auto; width: calc(100% - 28px); max-width: 820px; height: 60px; padding-inline: 14px 8px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .45), 0 12px 30px -14px rgba(15, 23, 42, .28);
}
body[data-sky] .site-head .btn.small { border-radius: 999px; padding: 10px 18px; }

.hero.sky {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 0 0 72px; background: #90bbe6;
}
.hero.sky .wrap { display: block; }
.sky-bg { position: absolute; inset: 0; z-index: -1; }
/* Mobile: the image is anchored to the bottom at a fixed height, so the
   meadow's horizon lands just above the app however long the copy runs; its
   top edge is the same blue as the section, so the join does not show. */
.sky-img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 640px; object-fit: cover; object-position: 50% 100%; }
/* soft landing into the page below */
.sky-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(to bottom, rgba(240, 248, 255, 0), var(--bg)); }

.cloud { position: absolute; height: auto; pointer-events: none; will-change: transform; }
.cloud.c1 { width: 300px; top: 56px; right: -110px; opacity: .55; animation: cloud-a 46s ease-in-out infinite alternate; }
.cloud.c2, .cloud.c3 { display: none; }
@keyframes cloud-a { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@keyframes cloud-b { from { transform: translateX(0); } to { transform: translateX(70px); } }
@keyframes cloud-c { from { transform: translate(0, 0); } to { transform: translate(-50px, 8px); } }

.sky-copy { text-align: center; padding-top: calc(72px + 46px); }
.sky-h1 {
  font-weight: 700; color: #111827; letter-spacing: -.04em; line-height: 1.02;
  font-size: clamp(34px, 10.4vw, 112px);
}
.sky-h1 .nw { white-space: nowrap; }
/* Below 900px the headline sits on the meadow art's deeper blue, so it goes
   white with a dark shadow; on desktop's pale sky it stays near-black (Dan,
   2026-10-27). */
@media (max-width: 899.98px) {
  .sky-h1 { color: #fff; text-shadow: 0 2px 4px rgba(15, 23, 42, .45), 0 4px 22px rgba(15, 23, 42, .35); }
}
.sky-tile {
  position: relative; display: inline-block; width: .92em; height: .92em; margin-inline: .03em .06em;
  vertical-align: -.1em; border-radius: .25em; transform: rotate(-16deg);
  box-shadow: 0 .14em .32em -.06em rgba(15, 23, 42, .45), 0 .02em .05em rgba(15, 23, 42, .25);
  animation: sky-tile 1.1s cubic-bezier(.34, 1.5, .64, 1) .25s both;
}
.sky-tile img { width: 100%; height: 100%; border-radius: inherit; }
/* a glassy highlight across the top of the tile */
.sky-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 45%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* Near-ink, a touch larger, and a soft white halo so it lifts off the blue
   (Dan, 2026-10-24: "could it be easier to read?"). */
.hero.sky .sub {
  margin: 20px auto 0; max-width: 30em; color: #1e293b; font-weight: 500;
  font-size: clamp(17.5px, 1.7vw, 21px); line-height: 1.55;
  text-shadow: 0 0 18px rgba(255, 255, 255, .7), 0 1px 2px rgba(255, 255, 255, .5);
}
.hero.sky .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero.sky .btn.big {
  border-radius: 999px; padding: 9px 9px 9px 28px; gap: 14px; font-size: 18px; font-weight: 600;
  background: linear-gradient(180deg, #19ad4f 0%, #138a3c 100%);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .28), 0 0 0 7px rgba(255, 255, 255, .7), 0 12px 26px -8px rgba(21, 128, 61, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: none;
}
.hero.sky .btn.big:hover { background: linear-gradient(180deg, #17a04a 0%, #117a35 100%); }
.go-arr { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #15803d; transition: transform .2s ease; }
.hero.sky .btn.big:hover .go-arr { transform: translateX(3px); }
.btn.ghost {
  background: #fff; color: #111827; border-radius: 999px; padding: 15px 28px; font-size: 18px; font-weight: 600;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .45);
}
.btn.ghost:hover { background: #fff; box-shadow: 0 14px 28px -14px rgba(15, 23, 42, .5); }

.sky-trust {
  list-style: none; margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  color: #334155; font-size: 14px; font-weight: 500;
}
.sky-trust li { display: inline-flex; align-items: center; gap: 6px; }
.sky-trust .proof-badge { all: unset; }

.sky-stage { position: relative; z-index: 1; width: calc(100% - 28px); max-width: 560px; margin: 36px auto 0; animation: sky-up 1.1s cubic-bezier(.2, .8, .2, 1) .6s both; }
.hero.sky .stage { animation: none; max-width: none; }
.sky-hills { display: none; }

@media (max-width: 639.98px) {
  .hero.sky .cta-row { gap: 10px; margin-top: 26px; }
  .hero.sky .btn.big { font-size: 16px; padding: 6px 6px 6px 20px; gap: 10px; }
  .hero.sky .go-arr { width: 32px; height: 32px; }
  .btn.ghost { font-size: 16px; padding: 11px 22px; }
  .sky-trust { margin-top: 24px; font-size: 13.5px; gap: 6px 14px; }
}

/* entrance: a staggered rise, then the tile swings into its tilt */
.sky-in { animation: sky-up .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
@keyframes sky-up { from { opacity: 0; transform: translateY(20px); } }
@keyframes sky-tile { from { opacity: 0; transform: translateY(20px) rotate(0); } to { opacity: 1; transform: rotate(-16deg); } }
@keyframes sky-rise { from { opacity: 0; transform: translate(-50%, 50px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sky-hills { from { transform: translateY(60px); } }

@media (min-width: 640px) {
  .sky-trust { gap: 10px 0; font-size: 15px; }
  .sky-trust li + li::before { content: ""; width: 1px; height: 18px; margin-inline: 16px 10px; background: rgba(15, 23, 42, .2); }
  .sky-trust li + li { gap: 6px; }
}

@media (min-width: 900px) {
  .hero.sky { min-height: clamp(820px, 100vh, 960px); padding-bottom: 0; }
  /* Tall enough that the meadow's horizon (57% down the art) always sits
     behind the hills, however tall the window: the hills own the ground. */
  .sky-img { top: 0; height: max(100%, calc((100% - 200px) / .57)); object-position: 50% 0; }
  .sky-bg::after { display: none; }
  .sky-copy { padding-top: calc(72px + clamp(70px, 9vh, 120px)); position: relative; z-index: 3; }

  .cloud.c1 { width: 30vw; max-width: 560px; top: 40px; left: -6vw; right: auto; opacity: .9; }
  .cloud.c2 { display: block; width: 26vw; max-width: 480px; top: 130px; right: -4vw; opacity: .85; animation: cloud-b 52s ease-in-out infinite alternate; }
  .cloud.c3 { display: block; width: 24vw; max-width: 420px; top: -40px; left: 38%; opacity: .35; animation: cloud-c 60s ease-in-out infinite alternate; }

  .sky-stage {
    position: absolute; left: 50%; top: calc(100% - 250px); margin: 0; max-width: none;
    width: min(780px, 60vw); transform: translateX(-50%);
    animation: sky-rise 1.2s cubic-bezier(.2, .8, .2, 1) .6s both;
  }
  .sky-hills {
    display: block; position: absolute; z-index: 2; left: -10px; right: -10px; top: calc(100% - 235px);
    aspect-ratio: 1960 / 767; background: var(--hills) center top / 100% auto no-repeat; pointer-events: none;
    animation: sky-hills 1.4s cubic-bezier(.2, .8, .2, 1) .05s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky-in, .sky-tile, .sky-stage, .sky-hills, .cloud { animation: none; }
}

/* ---------- HERO ONLY (Dan, 2026-10-24) ----------
   `data-hero-only` on <body> (HERO_ONLY in build.mjs): the homepage and the
   health landing page show the sky hero and the footer, nothing else. The
   rest of <main> is still in the page, hidden, for later, and "How it works"
   goes with the sections it pointed at. */
body[data-hero-only] main > :not(.hero) { display: none !important; }
body[data-hero-only] .hero.sky .btn.ghost[href^="#"] { display: none; }
body[data-hero-only] .sky-bg::after { display: none; }

/* The footer has no ground of its own: it is pulled up onto the bottom of
   the hero, where a short fade to the page's near-white gives its two small
   lines somewhere to sit (Dan, 2026-10-24: "a bit of a fade to white ... not
   too tall"). The brand block and Contact are hidden here, not removed (the
   shared footer keeps them on every other page). */
/* The hero always reaches the bottom of the screen, so the footer sits on
   the bottom edge however tall the window (Dan: "align it all to the bottom"). */
body[data-hero-only] .hero.sky { padding-bottom: 96px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
/* ...and on a screen taller than the content, the content stacks down onto
   the ground with it: the spare height becomes sky above, never a gap
   between the button and the app. */
body[data-hero-only] .hero.sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 96px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(240, 248, 255, 0), rgba(240, 248, 255, .82) 55%, var(--bg));
}
body[data-hero-only] > footer {
  position: relative; z-index: 5; margin-top: -64px; height: 64px; padding: 0 0 12px;
  background: none; border-top: 0; display: flex; align-items: flex-end;
}
body[data-hero-only] > footer .foot-brand,
body[data-hero-only] > footer .foot-nav a[href^="mailto:"] { display: none; }
body[data-hero-only] > footer .foot-nav { gap: 18px; }
body[data-hero-only] > footer .foot-nav,
body[data-hero-only] > footer .foot-nav a,
body[data-hero-only] > footer .foot-base {
  font-size: 13px; font-weight: 500; color: var(--muted);
}
body[data-hero-only] > footer .foot-nav a:hover { color: var(--ink); }
@media (min-width: 900px) {
  body[data-hero-only] .hero.sky { padding-bottom: 0; min-height: max(820px, 100vh); min-height: max(820px, 100svh); }
  /* the app and hills are absolute here, so the copy keeps their 250px clear */
  body[data-hero-only] .sky-copy { padding-bottom: 300px; }
  /* The app stops short of the bottom, fading out, so the footer's lines
     sit on grass rather than on a light screenshot. */
  body[data-hero-only] .sky-stage { height: 168px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE SIGN-UP, PLAIN (Dan, 2026-10-24, replacing "under the sky" the same day:
   "I dont want the bg image, just a solid, light colour. I dont want boxes on
   the page for the content"). /begin only, scoped on body[data-page="begin"].
   · A solid page colour (the site's --bg), no backdrop art, no clouds, and no
     card: every screen's content sits straight on the page.
   · A compact wordmark at the top with the progress rail right under it.
   · Continue (.g-foot, from signup.mjs) is the panel's last child, pushed to
     the bottom and stuck just above the fixed footer, so it is in the SAME
     place on every screen, short or long. A 1-5 scale sits just above it;
     every other answer list sits under the heading.
   · The primary is the wordmark's own pair: emerald #34d399 ("better") with
     navy #0f172a ("my"/"self") as the ink ON it. White on #34d399 is 1.9:1,
     navy is 10:1. As TEXT the emerald goes to #047857 (5.5:1 on white), and a
     heading's accent words keep the ink and wear the emerald as a highlighter.
   ⛔ No transform, filter or backdrop-filter on the panel or its wrappers:
     .g-modal and .g-sticky are position: fixed inside them.
   ═══════════════════════════════════════════════════════════════════════════ */
body[data-page="begin"] {
  --citrus: #34d399;
  --citrus-ink: #0f172a;
  --citrus-text: #047857;
  --better-deep: #059669;   /* rings and state edges: 3.8:1 on white */
  --better-tint: rgba(52, 211, 153, .16);
  --g-foot-h: calc(38px + env(safe-area-inset-bottom, 0px));
  /* the page colour: betterselfplantester's warm off-white (Dan, 2026-10-27:
     "I don't like the blue background"); was #dfeaf6 */
  --g-bg: #f7f5f0;
  background: var(--g-bg);
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  padding-bottom: var(--g-foot-h);
}
body[data-page="begin"] .blobs { display: none; }
/* the header: just the wordmark, small, centred, scrolling away with the page */
body[data-page="begin"] .site-head { position: static; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-page="begin"] .site-head .wrap { height: auto; padding-top: 14px; justify-content: center; }
body[data-page="begin"] .site-head .lockup img.wordmark { height: 19px; }

/* the progress rail, straight under the wordmark: one thin bar, Back as a
   chevron to its left (the word stays as its accessible name) */
body[data-page="begin"] .quiz.goals-signup { padding-block: 10px 0; flex: 1; display: flex; flex-direction: column; }
body[data-page="begin"] main { flex: 1; display: flex; flex-direction: column; }
body[data-page="begin"] .quiz.goals-signup > .wrap { flex: 1; display: flex; flex-direction: column; }
body[data-page="begin"] .g-rail { margin: 0 0 18px; }
body[data-page="begin"] .g-rail-row { grid-template-rows: none; grid-template-columns: 28px 1fr 28px; align-items: center; column-gap: 6px; }
body[data-page="begin"] .g-rail .q-back { grid-row: 1; grid-column: 1; justify-self: center; padding: 4px; font-size: 0; gap: 0; }
body[data-page="begin"] .g-rail nav { grid-row: 1; grid-column: 2; }
body[data-page="begin"] .g-rail ol { gap: 4px; }
body[data-page="begin"] .g-seg { height: 4px; }
body[data-page="begin"] .g-chapter-name { display: none; }

/* the screen fills what is left; Continue goes to its foot */
body[data-page="begin"] .g-panel:not(.g-offer-panel) { flex: 1; display: flex; flex-direction: column; }
body[data-page="begin"] .g-panel > .linkish { align-self: center; }
body[data-page="begin"] .g-panel .g-foot .g-change-goal { min-height: 0; }
body[data-page="begin"] .g-foot {
  margin-top: auto; position: sticky; bottom: var(--g-foot-h); z-index: 5;
  padding: 22px 0 12px;
  background: linear-gradient(rgba(247, 245, 240, 0), var(--g-bg) 20px);
}
body[data-page="begin"] #g-email-form { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: none; margin: 0; }
body[data-page="begin"] #g-email-form .field input { width: 100%; }
/* text fields are WHITE here: the shared --field tint vanishes on this page's
   darker background (Dan, 2026-10-24). EVERY text field, by element, so a new
   one (or one built by goals.js) can't slip back to the tint. */
body[data-page="begin"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body[data-page="begin"] textarea,
body[data-page="begin"] select { background: #fff; }
body[data-page="begin"] .g-panel .form-status:empty,
body[data-page="begin"] #g-boot-status:empty { display: none; }
/* a payment error on the white payment rows (the global pink is for dark pages) */
body[data-page="begin"] .g-method .form-status.is-error { color: #b91c1c; }
/* a 1-5 scale sits just above Continue, so the foot gives up its own push */
body[data-page="begin"] .g-likert-panel .g-likert,
body[data-page="begin"] [data-g-ask-body]:has(> .g-likert) { margin-top: auto; }
body[data-page="begin"] .g-likert-panel .g-foot,
body[data-page="begin"] .g-ask-panel:has([data-g-ask-body] > .g-likert) .g-foot { margin-top: 0; }
body[data-page="begin"] .g-likert-panel .g-likert { margin-bottom: 8px; }
/* its reply sits above the numbers: the reply takes the push, the scale sits under it */
body[data-page="begin"] .g-likert-panel .g-say,
body[data-page="begin"] .g-ask-panel .g-say:has(+ [data-g-ask-body] > .g-likert) { margin: auto 0 0; }
body[data-page="begin"] .g-likert-panel .g-say:not([hidden]) + .g-likert,
body[data-page="begin"] .g-ask-panel .g-say:not([hidden]) + [data-g-ask-body] > .g-likert { margin-top: 14px; }
body[data-page="begin"] .g-ask-panel .g-say:not([hidden]) + [data-g-ask-body]:has(> .g-likert) { margin-top: 0; }

/* accents: ink on an emerald highlighter, never emerald text */
body[data-page="begin"] .yl {
  color: inherit;
  background: linear-gradient(transparent 58%, rgba(52, 211, 153, .55) 58%, rgba(52, 211, 153, .55) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em;
}
body[data-page="begin"] .g-dark .yl { color: #34d399; background: none; }

/* buttons: the hero's pill, emerald with navy ink */
body[data-page="begin"] .btn { color: var(--citrus-ink); }
body[data-page="begin"] .btn:hover { background: #10b981; }
body[data-page="begin"] .btn.big {
  border-radius: 999px; font-weight: 800; animation: none;
  background: linear-gradient(180deg, #4ade9f 0%, #2bc48c 100%);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .18), 0 12px 24px -10px rgba(5, 150, 105, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
body[data-page="begin"] .btn.big:hover { background: linear-gradient(180deg, #34d399 0%, #10b981 100%); }
body[data-page="begin"] .btn.ghost { color: #111827; }
body[data-page="begin"] ::selection { background: #34d399; color: #0f172a; }
body[data-page="begin"] :focus-visible { outline-color: var(--better-deep); }

/* picks and states */
body[data-page="begin"] .q-opt.is-on,
body[data-page="begin"] .g-scale.is-on { border-color: var(--better-deep); background: var(--better-tint); box-shadow: 0 0 0 1px var(--better-deep) inset; }
body[data-page="begin"] .g-expert-stat { background: rgba(52, 211, 153, .10); border-color: rgba(5, 150, 105, .35); }
/* the reply box is SOLID (no alpha over the page): ink 16:1, body text 9:1 on it */
body[data-page="begin"] .g-say { background: #ecfdf5; border-color: #34d399; }
body[data-page="begin"] .g-say strong { color: #0f172a; }
body[data-page="begin"] .g-say p { color: #374151; }
/* ⭐ The emoji sticker on the reply's top-right corner (Dan, 2026-10-27: "fun and colourful"),
   painted by sayInto(); the heading keeps clear of it. */
body[data-page="begin"] .g-say { position: relative; }
body[data-page="begin"] .g-say strong { padding-right: 18px; }
.g-say-emoji:empty { display: none; }
body[data-page="begin"] .g-say-emoji { position: absolute; top: -12px; right: -8px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 19px; line-height: 1; background: #fff; border: 1.5px solid #34d399; border-radius: 50%; box-shadow: 0 3px 8px rgba(15, 23, 42, .12); transform: rotate(10deg); pointer-events: none; }
body[data-page="begin"] .g-expert-icon,
body[data-page="begin"] .g-goal-pill,
body[data-page="begin"] .g-minutes { background: var(--better-tint); }
body[data-page="begin"] .g-plan-card { border-color: rgba(5, 150, 105, .35); }
body[data-page="begin"] .g-next-goals li { border-color: rgba(5, 150, 105, .45); }
body[data-page="begin"] .g-spinner { border-color: rgba(52, 211, 153, .25); border-top-color: var(--better-deep); }

body[data-page="begin"] .g-box-get { background: #ecfdf5; }
body[data-page="begin"] .g-box-get { border-color: #34d399; }
body[data-page="begin"] .g-box-get .g-ticks li::before { color: var(--better-deep); }
body[data-page="begin"] .g-growth-dates { color: var(--better-deep); }
body[data-page="begin"] .wallet-overlay-ready { background: var(--better-tint); }
/* the plan cards */
body[data-page="begin"] .g-tier.is-on { border-color: var(--better-deep); background: #ecfdf5; }
body[data-page="begin"] .g-tier-badge,
body[data-page="begin"] .g-tier.is-on .g-save { color: #0f172a; }
body[data-page="begin"] .g-tier.is-on .g-radio,
body[data-page="begin"] .g-method.is-on .g-radio { border-color: var(--better-deep); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--better-deep); }
/* the closing dark card: the wordmark's navy with its emerald */
body[data-page="begin"] .g-dark .g-tier.is-on { background: #064e3b; border-color: #34d399; }
body[data-page="begin"] .g-dark .g-tier-badge,
body[data-page="begin"] .g-dark .g-tier.is-on .g-save { background: #34d399; color: #0f172a; }
body[data-page="begin"] .g-dark .g-tier.is-on .g-radio { border-color: #34d399; box-shadow: inset 0 0 0 4px #064e3b, inset 0 0 0 12px #34d399; }
body[data-page="begin"] .g-dark .g-save { color: #6ee7b7; }
/* the promo ticket: emerald with navy ink, the code and clock on navy */
body[data-page="begin"] .g-ticket { color: #0f172a; box-shadow: 0 0 0 2px #10b981 inset; }
body[data-page="begin"] .g-ticket::before,
body[data-page="begin"] .g-ticket::after { background: #fff; border-color: #10b981; }
body[data-page="begin"] .g-ticket-top { border-bottom-color: rgba(15, 23, 42, .3); }
body[data-page="begin"] .g-ticket-top svg,
body[data-page="begin"] .g-ticket-title { color: #0f172a; }
body[data-page="begin"] .g-ticket-top svg circle { fill: #34d399; }
body[data-page="begin"] .g-ticket-code,
body[data-page="begin"] .g-ticket-timer,
body[data-page="begin"] .g-sticky-go { background: #0f172a; color: #fff; box-shadow: none; }
body[data-page="begin"] .g-ticket-check { color: #0f172a; background: #34d399; }
body[data-page="begin"] .g-ticket.is-expired { color: #fff; }
body[data-page="begin"] .g-ticket.is-expired .g-ticket-title,
body[data-page="begin"] .g-ticket.is-expired .g-ticket-top svg { color: #fff; }
/* the inline art drew in the old green */
body[data-page="begin"] [fill="#16a34a"] { fill: #34d399; }
body[data-page="begin"] [stroke="#16a34a"] { stroke: #10b981; }
body[data-page="begin"] [stroke="#15803d"] { stroke: #047857; }
body[data-page="begin"] [stroke="#22a05a"] { stroke: #10b981; }
body[data-page="begin"] [fill="#22a05a"] { fill: #10b981; }

/* the footer: one quiet line (Terms, Privacy, copyright), fixed to the bottom
   of the screen so Continue can always sit just above it */
body[data-page="begin"] > footer {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  height: var(--g-foot-h); margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); border-top: 0;
  background: var(--g-bg);
}
body[data-page="begin"] > footer .wrap { height: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; }
body[data-page="begin"] > footer .foot-brand,
body[data-page="begin"] > footer .foot-nav a[href^="mailto:"],
body[data-page="begin"] .g-legal { display: none; }
body[data-page="begin"] > footer .foot-nav { margin-top: 0; gap: 18px; }
body[data-page="begin"] > footer .foot-nav,
body[data-page="begin"] > footer .foot-nav a,
body[data-page="begin"] > footer .foot-base { font-size: 12.5px; font-weight: 500; color: var(--muted); }
body[data-page="begin"] > footer .foot-nav a:hover { color: var(--ink); }
body[data-page="begin"] > footer .foot-base { margin-top: 0; padding-top: 0; border-top: 0; }

/* ── SIGN-UP READABILITY (Dan, 2026-10-24): body text on the beat screens was too small
   to read. Everything that isn't a heading or a citation steps up; citations (.pl-cite)
   stay tiny everywhere on /begin. Scoped to the sign-up so the rest of the site is untouched. */
body[data-page="begin"] .g-fact { font-size: 19px; line-height: 1.55; margin-top: 10px; }
body[data-page="begin"] .g-fact + .g-fact { margin-top: 16px; }
body[data-page="begin"] .g-beat .q-sub,
body[data-page="begin"] .g-reveal .q-sub { font-size: 18px; line-height: 1.5; }
/* The science beat's closing line reads as part of the paragraph above it: same ink, same size. */
body[data-page="begin"] #g-science-line { font-size: 19px; line-height: 1.55; color: var(--ink); margin-top: 16px; }
body[data-page="begin"] .g-bar > span:first-child { font-size: 16.5px; }
body[data-page="begin"] .g-bar b { font-size: 24px; }
/* Willpower: a hundred-dot comparison makes the gap tangible at a glance. */
.g-proof-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; width: 100%; max-width: 390px; margin: 26px auto 20px; text-align: center; }
.g-proof-side { min-width: 0; }
.g-proof-side.is-plan { color: #047857; }
.g-proof-side.is-will { color: #64748b; }
.g-proof-label { display: block; font-size: 15px; line-height: 1.35; font-weight: 700; }
.g-proof-number { display: block; margin: 5px 0 12px; font-size: clamp(48px, 12vw, 68px); line-height: 1.1; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.g-proof-number span { font-size: .48em; letter-spacing: -.03em; margin-left: 3px; }
.g-proof-side svg { display: block; width: 100%; max-width: 154px; margin-inline: auto; overflow: visible; }
.g-proof-side circle { fill: #e2e4df; }
.g-proof-side .is-filled { fill: currentColor; }
.g-proof-side.is-plan .is-filled { fill: #10b981; }
.g-proof-compare figcaption { grid-column: 1 / -1; font-size: 15px; font-weight: 700; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .g-proof:not([hidden]) .is-filled { animation: g-proof-dot .65s ease-out both; animation-delay: var(--dot-delay); }
  @keyframes g-proof-dot { from { opacity: .15; } to { opacity: 1; } }
}
body[data-page="begin"] .g-fig-key { font-size: 15px; }
/* Small steps: an open, growing landscape with a gentle violet comparison. */
body[data-page="begin"] .g-science-chart { background: transparent; border: 0; border-radius: 0; padding: 0; width: 100%; max-width: 460px; margin: 26px auto 22px; }
.g-science-chart .g-fig-key { flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.g-science-chart .g-fig-key i:not(.is-win) { background: repeating-linear-gradient(90deg, #a78bca 0 5px, transparent 5px 8px); width: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .g-science:not([hidden]) .g-science-rise { stroke-dasharray: 1; animation: g-science-draw 1.8s ease-in-out both; }
  .g-science:not([hidden]) .g-science-goal { animation: g-science-arrive .6s 1.5s ease-out both; }
  @keyframes g-science-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes g-science-arrive { from { opacity: 0; } to { opacity: 1; } }
}
body[data-page="begin"] .g-expert-stat span { font-size: 17.5px; }
body[data-page="begin"] .g-expert-list small { font-size: 12.5px; }
body[data-page="begin"] .g-expert-list strong,
body[data-page="begin"] .g-expert-coach strong { font-size: 18px; }
body[data-page="begin"] .g-expert-list p,
body[data-page="begin"] .g-expert-coach p { font-size: 16.5px; }
body[data-page="begin"] .g-next-card .g-next-list li,
body[data-page="begin"] .g-next-card p { font-size: 17px; }
/* The read-back rows get room to breathe: more inset in the box, more air between rows. */
body[data-page="begin"] .g-heard { padding: 6px 22px; }
body[data-page="begin"] .g-heard li { padding: 16px 0; gap: 14px; }
@media (max-width: 420px) { body[data-page="begin"] .g-heard li { gap: 4px; } }
body[data-page="begin"] .g-heard span { font-size: 15.5px; }
body[data-page="begin"] .g-heard strong { font-size: 18px; }
body[data-page="begin"] .g-card-target { font-size: 18px; }
body[data-page="begin"] .g-here span { font-size: 15px; }
body[data-page="begin"] .g-platforms p { font-size: 17.5px; }
body[data-page="begin"] .g-vs-small { font-size: 15.5px; }
body[data-page="begin"] .g-activity-head { font-size: 18px; }
body[data-page="begin"] .g-activity-row span:first-child,
body[data-page="begin"] .g-activity-row span:last-child { font-size: 16px; }
body[data-page="begin"] .g-wait p:not(.q-mini-head):not(.g-wait-stat):not(.pl-cite) { font-size: 18px; }
body[data-page="begin"] .g-wait-head { font-size: 17px; }
body[data-page="begin"] .pl-cite { font-size: 11.5px; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════════════════════
   THE OPENING SPLASH (`intro`, Dan 2026-10-24), after Deepstash's "Replace
   doomscrolling with microlearning": the headline with its struck word, two
   laurel badges, the drawing with a speech bubble over its corner, a pull
   quote, then Continue. Nothing to answer. ⛔ The bubble's tilt is a transform
   on the BUBBLE only; never on the panel (see THE SIGN-UP, PLAIN).
   ═══════════════════════════════════════════════════════════════════════════ */
.g-intro { text-align: center; }
.g-intro-head { margin: 10px auto 26px; max-width: none; font-size: clamp(25px, 7.6vw, 44px); line-height: 1.16; }
.g-intro-head > span { display: inline-block; white-space: nowrap; }
.g-intro-head s {
  color: inherit; text-decoration-line: line-through; text-decoration-color: #f43f5e;
  text-decoration-thickness: .11em; text-decoration-skip-ink: none;
}
.g-badges { display: flex; justify-content: center; gap: clamp(4px, 2.5vw, 36px); margin: 0 0 30px; }
.g-badge { display: flex; align-items: center; gap: 0; color: #374151; }
.g-badge svg { width: clamp(30px, 9.5vw, 42px); height: clamp(60px, 19vw, 84px); flex: none; margin-inline: -2px; }
.g-badge svg:last-child { transform: scaleX(-1); }
.g-badge [fill="#9ca3af"] { fill: #4b5563; }
.g-badge p { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.1; }
.g-badge small { font-size: clamp(12.5px, 3.7vw, 16px); font-weight: 700; white-space: nowrap; }
.g-badge b { font-size: clamp(26px, 8.2vw, 36px); font-weight: 900; letter-spacing: -.02em; color: #0f172a; }
.g-intro-art { position: relative; margin: 0 auto 18px; width: min(100%, 420px, 44svh); padding-top: 40px; }
.g-intro-art img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, #000 58%, transparent 100%);
  mix-blend-mode: multiply;
}
.g-bubble {
  position: absolute; z-index: 1; left: 0; top: 0; max-width: 82%;
  padding: 11px 18px 12px; border-radius: 18px; background: #0f172a; color: #fff;
  font-size: 15.5px; font-weight: 800; line-height: 1.3; text-align: center;
  transform: rotate(-4deg); box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .6);
}
.g-bubble span { display: block; color: #34d399; }
.g-bubble::after {
  content: ''; position: absolute; right: 18%; bottom: -9px; width: 18px; height: 18px;
  background: #0f172a; border-radius: 0 0 4px 0; transform: rotate(45deg);
}
.g-intro-tag { margin: 2px auto 0; max-width: none; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(15px, 4.5vw, 21px); line-height: 1.35; color: #1f2937; }
/* The award, after Deepstash's: Apple logo on top, three equal bold lines, no big figure. */
.g-award p { gap: 3px; }
.g-badge .g-apple { width: clamp(20px, 6vw, 26px); height: clamp(20px, 6vw, 26px); margin: 0; transform: none; color: #1f2937; }
.g-award span { font-size: clamp(12px, 3.6vw, 16px); font-weight: 700; line-height: 1.18; color: #374151; white-space: nowrap; }

/* The "Over 10K plans" laurel: the -22px bleed was for the old card's padding;
   with no card the panel is flush to the content column, so it stays inside it. */
body[data-page="begin"] .g-laurel { margin-inline: 0; background: transparent; }

/* ═══════════════════════════════════════════════════════════════════════════
   THE HABIT PLANNER (Dan, 2026-10-27, from betterselfplantester, "adapted for
   our styles and form"): `habitsall`, the picker (`habits`), the habit pages
   with their coach chat (`mine`), By when (`target`), Your start (`kickoff`)
   and Pace. Built from this page's own pieces: white option cards, emerald
   picks, the reply box's mint, pills for chips. ⛔ No entrance motion (see the
   top of the sign-up block); only the typing dots and the card flash move, and
   both look right standing still.
   ═══════════════════════════════════════════════════════════════════════════ */
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.goals-signup button.g-chip { font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); cursor: pointer; transition: border-color .16s, background .16s; }
.goals-signup button.g-chip:hover { border-color: rgba(15, 23, 42, .24); }
.goals-signup button.g-chip.is-on { border-color: var(--better-deep, #059669); background: var(--better-tint, rgba(52, 211, 153, .16)); box-shadow: 0 0 0 1px var(--better-deep, #059669) inset; }
.g-badge-rec { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 99px; background: #fef3c7; color: #78350f; font-size: 12px; font-weight: 750; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.g-note { margin: 14px 0 4px; padding: 11px 14px; border-radius: 12px; background: #ecfdf5; font-size: 15px; line-height: 1.5; color: #374151; }

/* Every goal is built on habits across your life: the areas round their goal. */
.g-wheel { --r: min(118px, 31vw); position: relative; width: calc(var(--r) * 2 + 64px); aspect-ratio: 1; margin: 18px auto 8px; }
.g-wheel-ring { position: absolute; inset: 32px; border: 2px dashed rgba(5, 150, 105, .35); border-radius: 50%; }
.g-wheel-area { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.g-wheel-area > span { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--hairline); box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .35); font-size: 24px; line-height: 1; }
.g-wheel-goal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #ecfdf5; border: 2px solid #34d399; box-shadow: 0 0 0 6px rgba(52, 211, 153, .15); font-size: 40px; line-height: 1; }
.g-all-quote { display: flex; gap: 18px; align-items: center; margin: 22px 0 8px; padding: 18px 20px; text-align: left; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; }
.g-all-quote .g-cover { flex: none; width: 84px; height: auto; border-radius: 4px; box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .5); }
.g-all-quote blockquote { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink); }
.g-all-quote figcaption { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.g-all-quote figcaption strong { color: var(--ink); }
.g-allareas .g-person-brief { text-align: center; }

/* The picker: a row of areas, then the area's habits as cards. */
/* The picker's bullets sit on the habitsall beat (Dan, 2026-10-27): one a line, a tick each. */
.g-reassure { list-style: none; display: grid; gap: 7px; margin: 8px 0 4px; padding: 0; font-size: 15px; font-weight: 650; line-height: 1.4; color: var(--citrus-text); text-align: left; }
.g-reassure li { display: flex; gap: 8px; }
.g-reassure li::before { content: '✓'; flex: none; font-weight: 800; }
.g-allareas .g-reassure { width: fit-content; max-width: 100%; margin: 0 auto 20px; }
.g-adots { display: flex; justify-content: space-between; gap: 4px; margin: 16px 0 18px; }
.g-adot { position: relative; flex: 0 1 42px; min-width: 0; aspect-ratio: 1; display: grid; place-items: center; padding: 0; font: inherit; font-size: 19px; line-height: 1; background: #fff; border: 1.5px solid var(--hairline); border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-adot.is-on { border-color: var(--better-deep, #059669); background: #ecfdf5; box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); }
.g-adot-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--citrus); color: var(--citrus-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
/* the area their own habit was moved to, flashed once (goals.js movedHabit) */
.g-adot.is-new { animation: g-adot-new 1.4s ease-out 2; }
@keyframes g-adot-new { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 100% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); } }
@media (prefers-reduced-motion: reduce) { .g-adot.is-new { animation: none; border-color: var(--better-deep, #059669); } }
/* Every area page: dots, then the area as the page's title, then the cards. */
.g-habits-panel .g-adots { margin-top: 4px; }
.g-area-title { margin-bottom: 16px; }
.g-hgrid { display: grid; grid-template-columns: 1fr; gap: 9px; align-items: start; }
@media (min-width: 560px) { .g-hgrid { grid-template-columns: 1fr 1fr; } }
.goals-signup .g-hcard { position: relative; align-items: flex-start; min-height: 60px; padding: 14px 44px 14px 15px; gap: 12px; background: #fff; }
.g-hcard .g-emoji { font-size: 25px; margin-top: 1px; }
.g-hcard strong { font-size: 16px; line-height: 1.35; }
.g-hcard small { font-size: 14px; }
.g-tick { position: absolute; top: 17px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(15, 23, 42, .22); }
.g-hcard.is-on .g-tick { border-color: var(--better-deep, #059669); background: var(--better-deep, #059669); }
.g-hcard.is-on .g-tick::after { content: '✓'; display: block; color: #fff; font-size: 12px; font-weight: 900; line-height: 18px; text-align: center; }
/* "Add your own" on every page: a card like the habits above it, not a demoted dashed
   link (Dan, 2026-10-27), with a + where their tick sits. It opens the box. */
.goals-signup .g-habits-panel .g-own-habit-open { position: relative; margin-top: 0; min-height: 60px; padding: 14px 44px 14px 15px; gap: 12px; background: #fff; border-style: solid; }
.g-own-habit-open .g-emoji { font-size: 25px; }
.g-own-habit-open strong { font-size: 16px; line-height: 1.35; }
.g-own-habit-open::after { content: '+'; position: absolute; top: 50%; right: 14px; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #ecfdf5; border: 1.5px solid #059669; color: #047857; font-size: 17px; font-weight: 800; line-height: 19px; text-align: center; }
.g-own-add { display: flex; gap: 8px; margin: 9px 0 0; }
.g-own-add input { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 16px; border: 1px solid var(--edge); border-radius: 12px; }
.g-own-add .btn { flex: none; }
/* Open on an area page, the box sits in the add card's own grid cell, same size as a card. */
.g-own-add.is-cell { margin: 0; align-items: center; min-height: 60px; padding: 6px 6px 6px 4px; background: #fff; border: 1.5px solid #059669; border-radius: 16px; box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); }
.g-own-add.is-cell input { border: 0; outline: 0; background: transparent; padding: 10px 8px 10px 12px; }
.g-own-add.is-cell .btn { min-height: 0; padding: 10px 14px; border-radius: 11px; box-shadow: none; font-size: 15px; }
/* The last page, "Something else?" (Dan, 2026-10-27): not an area, so no cards. One
   line on what goes here, the box as a single field with its button inside, then a
   plain row per habit they added, each with a remove button. */
.g-habits-panel.is-own .g-own-add { margin: 0; padding: 6px 6px 6px 4px; background: #fff; border: 1.5px solid var(--edge); border-radius: 16px; }
.g-habits-panel.is-own .g-own-add:focus-within { border-color: #059669; box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); }
.g-habits-panel.is-own .g-own-add input { border: 0; outline: 0; background: transparent; padding: 10px 12px; }
.g-habits-panel.is-own .g-own-add .btn { min-height: 0; padding: 10px 18px; border-radius: 11px; box-shadow: none; font-size: 15px; }
.g-own-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.g-own-row { display: flex; align-items: center; gap: 12px; padding: 11px 8px 11px 14px; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; }
.g-own-row .g-emoji { font-size: 22px; line-height: 1; flex: none; }
.g-own-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; }
.g-own-row-text strong { font-size: 16px; font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.g-own-row-text small { font-size: 13.5px; color: var(--muted); }
.g-own-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; font: inherit; font-size: 22px; line-height: 1; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.g-own-x:hover, .g-own-x:focus-visible { background: rgba(15, 23, 42, .06); color: var(--ink); }
/* The picker's foot (Dan, 2026-10-27): the brief of the habit just picked (the
   green reply, compact so the sticky foot stays short), one tidy row (what is
   picked, and "Skip this area" while nothing here is), then the big button. */
body[data-page="begin"] .g-foot > .g-say { margin: 0 0 10px; padding: 11px 14px; }
body[data-page="begin"] .g-foot > .g-say strong { font-size: 15.5px; }
body[data-page="begin"] .g-foot > .g-say p { margin-top: 2px; font-size: 14.5px; line-height: 1.45; }
.g-pickrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin: 0 0 10px; }
.g-pickrow:has(> .g-picked:empty) { justify-content: center; }
.g-picked { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; color: var(--ink); }
.g-picked:empty { display: none; }
.g-picked b { font-weight: 750; }
.g-picked-stack { display: flex; }
.g-picked-stack > span { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--g-bg, #f7f5f0); box-shadow: 0 0 0 1px var(--hairline); font-size: 16px; line-height: 1; }
.g-picked-stack > span:first-child { margin-left: 0; }
.g-picked-stack > .g-picked-more { background: #ecfdf5; font-size: 11.5px; font-weight: 800; color: var(--citrus-text); }
.g-skip-area { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--edge); border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-skip-area:hover { border-color: var(--better-deep, #059669); }

/* ⭐ Your habits, as ONE chat box (Dan, 2026-10-27, second pass: "too much info
   on screen"): the coach's first message beside the logo as its avatar, replies to
   tap under the latest coach message, theirs on the right in emerald, and the
   message box at the foot. No header, no habit card. */
.g-mine-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.g-mine-head .g-qemoji { font-size: 1.3em; }
.g-vlabel { display: inline-block; padding: 2px 9px; border-radius: 8px; background: #ecfdf5; color: var(--citrus-text); font-size: 13px; font-weight: 750; letter-spacing: 0; vertical-align: 4px; }
.g-chat { display: flex; flex-direction: column; margin: 12px 0 4px; text-align: left; background: #fff; border: 1px solid rgba(15, 23, 42, .1); border-radius: 22px; box-shadow: 0 16px 34px -26px rgba(15, 23, 42, .4); overflow: hidden; }
.g-chat-av { flex: none; width: 30px; height: 30px; border-radius: 50%; }
.g-msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; align-self: flex-start; }
.g-msg-row .g-msg { max-width: none; }
.g-undo { min-height: 0; padding: 0; font-size: 12.5px; }
/* the conversation scrolls inside the box; the box never grows past this (Dan, 2026-10-28) */
.g-thread { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; max-height: min(50vh, 460px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.g-thread > * { flex-shrink: 0; }
.g-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.g-msg-coach { align-self: flex-start; background: #f1f3f1; border-bottom-left-radius: 6px; white-space: pre-line; }
.g-msg-you { align-self: flex-end; background: #34d399; color: #0f172a; border-bottom-right-radius: 6px; }
.g-msg-note { align-self: center; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.g-ctag { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: var(--citrus-text); }
.g-typing { display: flex; gap: 5px; padding: 15px 16px; }
.g-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: g-blink 1.1s infinite; }
.g-typing i:nth-child(2) { animation-delay: .18s; }
.g-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes g-blink { 50% { opacity: .25; } }
/* replies to tap, lined up with the coach's bubble, then the message box */
.g-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0 38px; }
.g-quick:empty { display: none; }
.goals-signup button.g-quick-chip { padding: 7px 12px; background: #fff; border-color: #6ee7b7; color: var(--citrus-text); font-size: 13.5px; }
.goals-signup button.g-quick-chip:hover { border-color: var(--better-deep, #059669); }
.goals-signup button.g-quick-own { border-style: dashed; border-color: #94a3b8; color: var(--ink, #1f2937); }
/* "Tell me something else" calls the message box: a green ring that pulses twice */
.g-chat-row.is-calling input { border-color: #059669; box-shadow: 0 0 0 3px rgba(52, 211, 153, .45); animation: g-call 1.1s ease-out 2; }
@keyframes g-call { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .75); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .45); } }
.g-chat-row { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--hairline); background: #fbfaf7; }
.g-chat-row input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; font: inherit; font-size: 16px; border: 1px solid var(--edge); border-radius: 23px; }
.g-chat-row .g-send { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.g-chat-row .g-send:disabled, .g-chat-row input:disabled { opacity: .5; }
.g-mine-panel [data-g-next]:disabled { opacity: .45; cursor: wait; }
.g-starters-panel [data-g-next]:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .g-typing i, .g-chat-row.is-calling input { animation: none; } }
/* on a phone, Continue stops floating while they type, so it never covers the box */
@media (pointer: coarse) { body[data-page="begin"] .g-mine-panel:has(#g-chat-in:focus) .g-foot { position: static; } }

/* By when, Your start and Pace. */
.g-target-date { margin: 12px 0 4px; }
.g-target-date label { font-weight: 700; }
.goals-signup .g-pcard { align-items: center; gap: 14px; }
.g-curve { flex: none; width: 74px; height: 44px; }
.g-curve .g-area { fill: #10b981; opacity: .16; }
.g-pcard .g-curve .g-area { opacity: .3; }
.g-pace-panel .g-curve .g-area { opacity: .16; }
.g-curve .g-line { fill: none; stroke: #059669; stroke-width: 2.6; stroke-linecap: round; }
.g-curve .g-dot { fill: #059669; }
.g-pcard small.g-why { color: var(--muted-2); font-size: 13px; }
/* Pace choices: roomy cards with larger curves and readable labels. */
.g-pace-panel .g-modes { gap: 14px; }
.goals-signup .g-pace-panel .g-pcard { padding: 24px 20px; gap: 18px; min-height: 140px; }
.g-pace-panel .g-curve { width: 92px; height: 54px; }
.g-pace-panel .g-option strong { font-size: 18px; }
.g-pace-panel .g-option small { font-size: 15px; margin-top: 5px; }
/* How would you like to start? (Dan, 2026-10-27): larger cards, and the reply
   sits just above Continue like a scale's does, taking the foot's push. */
.g-kickoff-panel .g-modes { gap: 14px; }
.goals-signup .g-kickoff-panel .g-pcard { padding: 22px 20px; gap: 18px; min-height: 104px; }
.g-kickoff-panel .g-curve { width: 92px; height: 54px; }
.g-kickoff-panel .g-option strong { font-size: 18px; }
.g-kickoff-panel .g-option small { font-size: 15px; margin-top: 5px; }

/* The goal card's habits. */
.g-card-habits { margin: 16px 0 4px; padding: 6px 18px 12px; text-align: left; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; }
.g-card-habits-head { margin: 8px 0 2px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--citrus-text); }
/* Grouped by life area, each saying how it feeds the goal (Dan, 2026-10-27). The
   goal's own area wears the emerald edge; the rest a hairline, all pointing up at it. */
.g-card-sum { margin: 0 0 12px; font-size: 16px; font-weight: 650; line-height: 1.45; color: var(--ink); }
.g-card-group { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 3px solid var(--hairline); }
.g-card-group.is-direct { border-left-color: #34d399; }
.g-card-ghead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 16px; }
.g-card-ghead .g-emoji { font-size: 20px; }
.g-card-tag { padding: 2px 9px; border-radius: 999px; background: #d1fae5; color: #047857; font-size: 12.5px; font-weight: 800; }
.g-card-why { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.g-card-habits ul { list-style: none; margin: 4px 0 0; padding: 0; }
.g-card-habits li { padding: 7px 0; }
.g-card-habits li strong { display: block; font-size: 16px; font-weight: 650; }
.g-card-habits li small { display: block; font-size: 14px; color: var(--muted); }
.g-card-first { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 15.5px; font-weight: 650; color: var(--ink); }


/* The rest of their habits (Dan, 2026-10-27): set them up now or as each starts.
   The habits that join later sit as a small row; each card lists its benefits. */
.g-later-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; }
.g-later-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--hairline); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.g-later-panel .g-modes { gap: 14px; }
.goals-signup .g-later-card { align-items: flex-start; gap: 14px; padding: 18px; }
.g-later-card .g-emoji { font-size: 26px; margin-top: 1px; }
.g-later-panel .g-option strong { font-size: 18px; }
.g-perks { display: block; margin-top: 8px; }
.g-perks > span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--ink); margin-top: 3px; }
.g-perks > span > span { color: #047857; font-weight: 800; margin-right: 2px; }

/* ============ QUOTE PITCH CARD (Dan, 2026-10-27) ============
   The line under a notable person's quote sells the app, so it is a card hung off
   the quote by a dotted line: the logo tile on its top edge, an emerald eyebrow, the
   brief's first sentence bold, the rest plain, a small staircase-to-a-flag in its top corner.
   Markup: pitch() in frontend/signup.mjs. */
.g-pitch { max-width: 520px; margin: 0 auto 22px; }
.g-pitch-link { display: block; width: 0; height: 22px; margin: -4px auto 0; border-left: 2px dashed #6ee7b7; }
.g-pitch-card { position: relative; margin-top: 24px; padding: 36px 22px 22px; text-align: center; background: linear-gradient(165deg, #ecfdf5 0%, #f7fefb 55%, #fff 100%); border: 1px solid #a7f3d0; border-radius: 20px; box-shadow: 0 16px 34px -20px rgba(4, 120, 87, .45); overflow: visible; }
.g-pitch-logo { position: absolute; top: -24px; left: 50%; margin-left: -24px; width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 0 4px var(--g-bg, #f7f5f0), 0 10px 20px -8px rgba(4, 120, 87, .55); }
.g-pitch-art { position: absolute; top: 12px; right: 14px; width: 46px; height: auto; opacity: .45; pointer-events: none; }
.g-pitch-art rect { fill: #10b981; }
.g-pitch-art line { stroke: #065f46; stroke-width: 2.5; stroke-linecap: round; }
.g-pitch-art path { fill: #f59e0b; }
.g-pitch-eyebrow { position: relative; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #047857; }
.g-pitch .g-person-brief, .g-allareas .g-pitch .g-person-brief { position: relative; max-width: none; margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 500; line-height: 1.5; color: #334155; text-align: center; }
.g-pitch .g-person-brief strong { display: block; margin-bottom: 6px; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════════
   THE APP SLIDES (Dan, 2026-10-28: "a bit shit ... more graphical and
   interesting ... snippets/elements that are relevant"). The `story` screen
   after the reveal: four app snippets on coloured stages, painted from THEIR
   plan by goals.js (paintSlides), replacing four shrunken screenshots of demo
   data. The stage sits first at a FIXED height so it stays put from slide to
   slide; the words go under it.
   · Every element's resting style is its END state. The entrance is keyframes
     FROM the start state, run on .is-in (the engine re-adds it per slide), so
     reduced motion simply shows the finished picture.
   · The app cards use the app's own look (white cards, slate ink, green ticks).
   ⛔ Transforms only inside the stage, never on the panel (THE SIGN-UP, PLAIN).
   ═══════════════════════════════════════════════════════════════════════════ */
.g-story { text-align: center; }
.g-as-stage {
  --as-bg: linear-gradient(165deg, #d1fae5, #ecfdf5); --as-blob: #a7f3d0;
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: clamp(250px, 46svh, 392px); margin: 2px 0 18px; padding: 18px 16px; border-radius: 28px;
  background: var(--as-bg); text-align: left; color: #1f2937;
}
.g-as-stage-grow { --as-bg: linear-gradient(165deg, #dbeafe, #eff6ff); --as-blob: #bfdbfe; }
.g-as-stage-progress { --as-bg: linear-gradient(165deg, #fef3c7, #fffbeb); --as-blob: #fde68a; }
.g-as-stage-coach { --as-bg: linear-gradient(165deg, #ede9fe, #f5f3ff); --as-blob: #ddd6fe; }
.g-as-stage::before, .g-as-stage::after { content: ''; position: absolute; border-radius: 50%; background: var(--as-blob); opacity: .6; pointer-events: none; }
.g-as-stage::before { width: 230px; height: 230px; left: -80px; bottom: -110px; }
.g-as-stage::after { width: 160px; height: 160px; right: -60px; top: -70px; }
.g-as-stage > * { position: relative; z-index: 1; }
.g-as-sticker {
  position: absolute; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(15, 23, 42, .16); transform: rotate(var(--r, 0deg));
}
.g-as-text .eyebrow { margin: 0 0 6px; }
.g-as-text .q-head { margin: 0 auto 8px; text-wrap: balance; }
.g-as-text .q-head .yl { white-space: nowrap; }
.g-as-text .q-sub { text-wrap: balance; }
.g-as-text .q-sub { margin: 0 auto; }
.g-story .g-dots { margin: 18px 0 4px; }

/* the app's cards */
.g-as-card {
  width: min(100%, 340px); padding: 14px; background: #fff; border: 1px solid rgba(15, 23, 42, .07); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 18px 36px -20px rgba(15, 23, 42, .45); font-size: 14px; line-height: 1.35;
}
.g-as-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.g-as-label { margin: 0 0 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.g-as-habit { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; font-weight: 800; color: #0f172a; }
.g-as-habit > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-as-chip { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #1d4ed8; background: #dbeafe; }
.g-as-chip.is-on { color: #047857; background: #d1fae5; }
.g-as-tile { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 21px; line-height: 1; background: #f1f5f9; }

/* 1 · their first day, ready to tick */
.g-as-day { font-size: 18px; font-weight: 800; color: #0f172a; }
.g-as-tally { display: inline-grid; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #047857; background: #ecfdf5; }
.g-as-tally > span { grid-area: 1 / 1; text-align: center; }
.g-as-was { opacity: 0; }
.g-as-goal { display: flex; gap: 6px; margin: -2px 0 10px; font-size: 13px; font-weight: 600; color: #64748b; }
.g-as-rows, .g-as-soon ul, .g-as-steps, .g-as-ms { list-style: none; margin: 0; padding: 0; display: grid; }
.g-as-rows { gap: 8px; }
.g-as-row { display: grid; grid-template-columns: 40px 1fr 26px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.g-as-txt { min-width: 0; display: grid; gap: 2px; }
.g-as-txt b { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; color: #0f172a; }
.g-as-txt b em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: #64748b; }
.g-as-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: #475569; }
.g-as-check { position: relative; width: 26px; height: 26px; border: 2px solid #cbd5e1; border-radius: 50%; }
.g-as-row.is-ticked { border-color: #6ee7b7; background: #f0fdf4; }
.g-as-row.is-ticked .g-as-check { background: #10b981; border-color: #10b981; }
.g-as-row.is-ticked .g-as-check::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.g-as-row.is-ticked .g-as-check::before { content: ''; position: absolute; inset: -7px; border: 2px solid #34d399; border-radius: 50%; opacity: 0; }
.g-as-soon { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.g-as-soon ul { gap: 6px; }
.g-as-later { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; font-size: 13px; }
.g-as-later b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #334155; }
.g-as-later em { font-style: normal; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #475569; background: #f1f5f9; }
.g-as-more { margin: 7px 0 0; font-size: 12px; font-weight: 600; color: #94a3b8; }
.g-as-more:empty { display: none; }

/* 2 · one habit, first step to goal */
.g-as-steps { gap: 11px; margin-top: 6px; }
.g-as-step p { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 5px; font-size: 13px; font-weight: 600; color: #334155; }
.g-as-step p em { flex: none; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.g-as-fill { display: block; width: var(--w, 100%); height: 10px; border-radius: 999px; background: linear-gradient(90deg, #bfdbfe, #3b82f6); }
.g-as-step.is-goal p { font-weight: 800; color: #0f172a; }
.g-as-step.is-goal p em { color: #047857; }
.g-as-step.is-goal .g-as-fill { height: 12px; background: linear-gradient(90deg, #6ee7b7, #10b981); box-shadow: 0 4px 10px -4px rgba(16, 185, 129, .7); }

/* 3 · their goal, its milestones, a month of ticks */
.g-as-goalcard .g-as-tile { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
.g-as-bar { height: 10px; margin: 6px 0 5px; overflow: hidden; border-radius: 999px; background: #f1f5f9; }
.g-as-bar i { display: block; width: 38%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #10b981); }
.g-as-barnote { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #64748b; }
.g-as-barnote:empty { display: none; }
.g-as-ms { gap: 7px; }
.g-as-ms li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; font-size: 13px; color: #334155; }
.g-as-mark { position: relative; width: 18px; height: 18px; border: 2px solid #cbd5e1; border-radius: 50%; }
.g-as-mtext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-as-ms em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.g-as-ms .is-done .g-as-mark { background: #10b981; border-color: #10b981; }
.g-as-ms .is-done .g-as-mark::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.g-as-ms .is-done .g-as-mtext { font-weight: 700; color: #0f172a; }
.g-as-ms .is-next .g-as-mark { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.g-as-ms .is-goal .g-as-mark { border: 0; }
.g-as-ms .is-goal .g-as-mark::after { content: '🏁'; position: absolute; inset: -2px; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.g-as-month { padding: 11px 14px 10px; }
.g-as-month .g-as-label { margin-bottom: 6px; }
.g-as-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.g-as-grid i { aspect-ratio: 1; border-radius: 4px; background: #e2e8f0; }
.g-as-grid .is-done { background: #34d399; }
.g-as-grid .is-later { background: #fff; box-shadow: inset 0 0 0 1.5px #e2e8f0; }
.g-as-monthnote { margin: 7px 0 0; font-size: 12px; font-weight: 600; color: #64748b; }

/* 4 · the coach moves a habit for a busy week */
.g-as-chat { width: min(100%, 340px); display: grid; gap: 10px; }
.g-as-you { justify-self: end; max-width: 84%; margin: 0; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: #0f172a; color: #fff; font-size: 14px; line-height: 1.4; }
.g-as-coach, .g-as-typing { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: 30px 1fr; align-items: end; gap: 8px; }
.g-as-coach img, .g-as-typing img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 6px rgba(15, 23, 42, .15); }
.g-as-coach p { margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .5); }
.g-as-typing { align-self: start; opacity: 0; }
.g-as-typing span { display: inline-flex; gap: 4px; width: max-content; padding: 13px 14px; border-radius: 18px 18px 18px 4px; background: #fff; }
.g-as-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.g-as-change { width: auto; margin-left: 38px; padding: 11px 13px; }
.g-as-change .g-as-label { margin-bottom: 6px; }
.g-as-move { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.g-as-move .g-as-habit { font-size: 14px; }
.g-as-times { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.g-as-times s { color: #94a3b8; }
.g-as-times b { color: #047857; }
.g-as-ok { display: grid; margin: 10px 0 0; }
.g-as-ok > span { grid-area: 1 / 1; padding: 7px; border-radius: 10px; font-size: 13px; font-weight: 800; text-align: center; }
.g-as-approve { background: #34d399; color: #0f172a; opacity: 0; }
.g-as-approved { background: #ecfdf5; color: #047857; }

/* the entrance, replayed per slide */
@keyframes g-as-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes g-as-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-as-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes g-as-grow { from { width: 0; } }
@keyframes g-as-sticker { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(.3); } }
@keyframes g-as-tick { from { background: #fff; border-color: #cbd5e1; } 60% { transform: scale(1.22); } }
@keyframes g-as-done { from { background: #fff; border-color: #e5e7eb; } }
@keyframes g-as-ping { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.7); } }
@keyframes g-as-cell { from { background: #e2e8f0; transform: scale(.55); } }
@keyframes g-as-typing { 0% { opacity: 0; transform: translateY(8px); } 18%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes g-as-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes g-as-press { 0%, 45% { opacity: 1; transform: none; } 30% { transform: scale(.94); } 100% { opacity: 0; } }
.g-as-slide.is-in .g-as-card { animation: g-as-rise .45s ease .05s both; }
.g-as-slide.is-in .g-as-sticker { animation: g-as-sticker .6s cubic-bezier(.3, 1.6, .5, 1) .9s both; }
.g-as-slide.is-in .g-as-row, .g-as-slide.is-in .g-as-later { animation: g-as-rise .4s ease calc(var(--i, 0) * .12s + .25s) both; }
.g-as-slide.is-in .g-as-row.is-ticked { animation: g-as-rise .4s ease .25s both, g-as-done .3s ease 1.4s both; }
.g-as-slide.is-in .g-as-row.is-ticked .g-as-check { animation: g-as-tick .4s cubic-bezier(.3, 1.6, .5, 1) 1.4s both; }
.g-as-slide.is-in .g-as-row.is-ticked .g-as-check::after { animation: g-as-in .15s ease 1.55s both; }
.g-as-slide.is-in .g-as-row.is-ticked .g-as-check::before { animation: g-as-ping .6s ease-out 1.5s both; }
.g-as-slide.is-in .g-as-was { animation: g-as-out .2s ease 1.5s both; }
.g-as-slide.is-in .g-as-now { animation: g-as-in .2s ease 1.5s both; }
.g-as-slide.is-in .g-as-step { animation: g-as-rise .4s ease calc(var(--i, 0) * .2s + .2s) both; }
.g-as-slide.is-in .g-as-fill { animation: g-as-grow .7s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * .2s + .35s) both; }
.g-as-slide.is-in .g-as-month { animation-delay: .25s; }
.g-as-slide.is-in .g-as-bar i { animation: g-as-grow 1s cubic-bezier(.2, .8, .2, 1) .4s both; }
.g-as-slide.is-in .g-as-ms li { animation: g-as-rise .4s ease calc(var(--i, 0) * .15s + .35s) both; }
.g-as-slide.is-in .g-as-grid .is-done { animation: g-as-cell .25s ease calc(var(--i, 0) * 35ms + .7s) both; }
.g-as-slide.is-in .g-as-you { animation: g-as-rise .4s ease .2s both; }
.g-as-slide.is-in .g-as-typing { animation: g-as-typing 1.1s ease .7s both; }
.g-as-slide.is-in .g-as-typing i { animation: g-as-dot .9s ease-in-out infinite; }
.g-as-slide.is-in .g-as-typing i:nth-child(2) { animation-delay: .15s; }
.g-as-slide.is-in .g-as-typing i:nth-child(3) { animation-delay: .3s; }
.g-as-slide.is-in .g-as-coach { animation: g-as-rise .4s ease 1.8s both; }
.g-as-slide.is-in .g-as-change { animation: g-as-rise .45s ease 2.3s both; }
.g-as-slide.is-in .g-as-approve { animation: g-as-press .5s ease 3.1s both; }
.g-as-slide.is-in .g-as-approved { animation: g-as-in .2s ease 3.4s both; }
/* the snippets scale with the screen: smaller on a short phone so the words stay in
   view above Continue, larger on a big screen. `zoom`, because transform is the entrance's */
@media (max-height: 700px) { .g-as-stage > .g-as-card, .g-as-stage > .g-as-chat { zoom: .86; } }
@media (max-height: 600px) {
  .g-as-stage > .g-as-card, .g-as-stage > .g-as-chat { zoom: .76; }
  .g-as-stage { margin-bottom: 12px; }
  .g-as-text .eyebrow { display: none; }
  .g-as-text .q-head { font-size: 23px; }
  .g-as-text .q-sub { font-size: 15px; }
}
@media (min-width: 640px) and (min-height: 760px) { .g-as-stage > .g-as-card, .g-as-stage > .g-as-chat { zoom: 1.12; } }
@media (prefers-reduced-motion: reduce) {
  .g-as-slide.is-in *, .g-as-slide.is-in *::before, .g-as-slide.is-in *::after { animation: none !important; }
}

/* ==========================================================================
   THE ABOUT-YOU PHOTO CARDS (Dan, 2026-10-28: "less boring ... use photographs
   of people"). Gender: Female/Male as photo cards two across, the other answers
   as full-width rows under them. Age: six bands, three across, each showing a
   woman or a man by the gender answer (ABOUT_PHOTOS / ageSides() in lib/goals.mjs).
   The mint fill is the photos' own backdrop, so a card never flashes white while
   its photo loads.
   ========================================================================== */
.g-photo-opts { grid-template-columns: 1fr 1fr; gap: 12px; }
.g-photo-gender { max-width: 460px; margin-inline: auto; }
.g-photo-age { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 480px; margin-inline: auto; }
.g-photo-gender > .g-option:not(.g-photo-opt) { grid-column: 1 / -1; padding: 11px 16px; min-height: 50px; }
.g-photo-gender > .g-option:not(.g-photo-opt) strong { font-size: 15.5px; }
.goals-signup .g-photo-opts .g-photo-opt { flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-height: 0; overflow: hidden; border-radius: 16px; position: relative; }
.g-photo-frame { position: relative; display: block; aspect-ratio: 1 / 1; background: #9fcfbf; overflow: hidden; }
.g-photo-age .g-photo-frame { aspect-ratio: 3 / 4; }
.g-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .35s ease; }
.g-photo-opt:hover .g-photo { transform: scale(1.03); }
.g-photo-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 14px; }
.g-photo-label strong { font-size: 16px; line-height: 1.25; }
.g-photo-go { font-size: 22px; line-height: 1; color: var(--muted); font-weight: 600; }
.g-photo-age .g-photo-label { justify-content: center; padding: 9px 6px; text-align: center; }
.g-photo-age .g-photo-label strong { font-size: 14.5px; white-space: nowrap; }
.g-photo-age .g-photo-go { display: none; }
/* picked: the emerald state edge plus a tick on the photo's corner */
.g-photo-opt.is-on .g-photo-go { color: var(--better-deep, #059669); }
.g-photo-opt.is-on .g-photo-frame::after {
  content: '✓'; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  background: #34d399; color: #0f172a; box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
}
@media (max-width: 340px) { .g-photo-age { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .g-photo { transition: none; } .g-photo-opt:hover .g-photo { transform: none; } }
