/* start.myfastingmentor.com — mobile-first styles */

:root {
  --brand: #2A7F41;       /* buttons: white text passes WCAG AA */
  --brand-hover: #23703A;
  --brand-2: #43A047;     /* accents, progress, charts (logo green) */
  --brand-50: #EEF7F0;
  --brand-100: #D8EEDC;
  --ink: #0F172A;
  --muted: #475569;
  --subtle: #64748B;
  --line: #E2E8F0;
  --bg: #F3F6F4;
  --danger: #DC2626;
  --radius: 16px;
  --w: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Keep anything scrolled/focused into view clear of the fixed Continue bar. */
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 112px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
[hidden] { display: none !important; }
h1:focus { outline: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid rgba(42, 127, 65, .45);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Frame ─────────────────────────────────────────────────────────────── */
.app {
  max-width: var(--w);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  position: relative;
}
@media (min-width: 560px) {
  .app { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 24px; box-shadow: 0 12px 48px rgba(15, 23, 42, .08); }
}
.test-ribbon {
  background: #F59E0B; color: #111; text-align: center; font-size: 12px; font-weight: 800;
  padding: 4px; letter-spacing: .06em;
}

.topbar {
  position: sticky; top: 0; z-index: 25;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: 56px; padding: 0 12px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: inherit;
}
.logo { grid-column: 2; justify-self: center; height: 22px; width: auto; }
.topbar-side { grid-column: 3; }
.back-btn {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.back-btn:hover { background: #F1F5F9; }

.progress { padding: 2px 20px 0; }
.progress-track { display: flex; gap: 6px; }
.seg { flex: 1; height: 6px; border-radius: 3px; background: #E6EDE8; overflow: hidden; }
.seg-fill { display: block; height: 100%; background: var(--brand-2); border-radius: 3px; transition: width .35s ease; }
.progress-label {
  margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--subtle);
}

.stage { padding: 8px 20px 128px; }
.screen { display: none; }
.screen.is-active { display: block; }
/* Animate only the content wrapper, and don't keep the transform afterwards:
   a transformed ancestor would pin the position:fixed Continue bar, sticky
   CTA and dialogs to the screen instead of the viewport. */
.anim-fwd > .q, .anim-fwd > .plan, .screen-landing.anim-fwd { animation: inFwd .28s cubic-bezier(.2, .7, .3, 1) backwards; }
.anim-back > .q, .anim-back > .plan, .screen-landing.anim-back { animation: inBack .28s cubic-bezier(.2, .7, .3, 1) backwards; }

/* ── Type ──────────────────────────────────────────────────────────────── */
.title-xl {
  font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
  text-align: center; margin: 14px 0 10px;
}
.title { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; margin: 14px 0 8px; }
.subtitle { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.hl { color: var(--brand); }
.h2 { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px; }
.h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.fine { font-size: 12.5px; color: var(--subtle); margin: 8px 0 0; }
.center { text-align: center; }

/* ── Landing ───────────────────────────────────────────────────────────── */
.lead { text-align: center; color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 400px; }
.prompt { text-align: center; font-weight: 700; margin: 22px 0 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding: 0 18px; border: 0; border-radius: 16px;
  background: var(--brand); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 16px rgba(42, 127, 65, .25); transition: transform .12s ease, background .15s ease;
}
.tile:hover { background: var(--brand-hover); }
.tile:active { transform: scale(.98); }
.tile.is-selected { background: #1D6331; }
.tile-arrow { font-size: 22px; opacity: .85; }
.trust-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px;
  list-style: none; padding: 0; margin: 18px 0 0; font-size: 13px; color: var(--subtle);
}
.landing-figure { margin: 22px 0 0; text-align: center; }
.landing-figure img { width: 100%; max-width: 300px; height: auto; }
.landing-figure figcaption { color: var(--subtle); font-size: 14px; margin-top: 4px; }
.legal { display: flex; justify-content: center; gap: 18px; margin: 28px 0 8px; font-size: 13px; }
.legal a { color: var(--subtle); }

/* ── Choices ───────────────────────────────────────────────────────────── */
.options-list { display: flex; flex-direction: column; gap: 10px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; scroll-margin-bottom: 112px;
  padding: 12px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-align: left; font-size: 16px; color: inherit; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.option:hover { border-color: #B7DCC0; }
.option:active { transform: scale(.99); }
.option.is-selected { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.option-emoji { font-size: 26px; line-height: 1; width: 34px; text-align: center; flex-shrink: 0; }
.option-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.option-label { font-weight: 650; font-size: 17px; line-height: 1.3; }
.option-desc { font-size: 14px; color: var(--subtle); }
.option-mark {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #CBD5E1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.option-mark svg { width: 16px; height: 16px; }
.option-mark.is-box { border-radius: 7px; }
.option.is-selected .option-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.options-grid .option {
  position: relative; flex-direction: column; justify-content: center; text-align: center;
  min-height: 118px; padding: 18px 10px; gap: 8px;
}
.options-grid .option-mark { position: absolute; top: 10px; right: 10px; }
.options-grid .option-emoji { font-size: 42px; width: auto; }
.options-grid .option-label { font-size: 16px; }
.figure { width: 52px; height: 84px; color: #A5D6A7; fill: currentColor; transition: color .15s ease; }
.figure line { stroke: currentColor; stroke-width: 6; stroke-linecap: round; }
.option.is-selected .figure { color: var(--brand-2); }

/* ── Footer CTA ────────────────────────────────────────────────────────── */
.footer {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 20;
  width: 100%; max-width: var(--w);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0));
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 14px;
  font-size: 17px; font-weight: 750; text-decoration: none; cursor: pointer;
  transition: transform .1s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(42, 127, 65, .28); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:disabled { background: #A9C9B2; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); margin-top: 12px; }
.btn.is-busy::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .8s linear infinite;
}

/* ── Info screens ──────────────────────────────────────────────────────── */
.info-icon { font-size: 42px; margin-top: 8px; }
.stages { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.stage-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--radius); background: #F7FAF8; border: 1px solid #E3EFE6;
}
.stage-time { font-weight: 800; min-width: 58px; font-size: 14px; padding-top: 2px; }
.s1 .stage-time { color: #64748B; }
.s2 .stage-time { color: #2563EB; }
.s3 .stage-time { color: #EA580C; }
.s4 .stage-time { color: #7C3AED; }
.stage-body b { display: block; font-size: 16px; }
.stage-body span { color: var(--muted); font-size: 14px; }

.window-card {
  border-radius: 20px; padding: 20px; background: linear-gradient(160deg, #F0F8F2, #fff);
  border: 1px solid #DDEEE1;
}
.pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
}
.window-name { margin-left: 8px; font-weight: 650; color: var(--muted); }
.window-time { font-size: 30px; font-weight: 850; margin-top: 12px; letter-spacing: -.02em; }
.window-sub { color: var(--subtle); font-size: 14px; }
.daybar { position: relative; height: 14px; border-radius: 7px; background: #334155; margin-top: 18px; overflow: hidden; }
.daybar-eat { position: absolute; top: 0; bottom: 0; background: var(--brand-2); }
.daybar-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--subtle); margin-top: 6px; }
.window-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feature {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line);
}
.feature.is-hi { border-color: var(--brand); background: var(--brand-50); }
.feature-icon { font-size: 24px; line-height: 1.2; }
.feature-text b { display: block; }
.feature-text span { color: var(--muted); font-size: 14px; }
.feature-tag {
  position: absolute; top: -9px; right: 12px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.note-card {
  padding: 14px 16px; border-radius: 14px; background: #FFF7ED; border: 1px solid #FED7AA;
  color: #7C2D12; font-size: 15px;
}

/* ── Inputs ────────────────────────────────────────────────────────────── */
.units { display: inline-flex; background: #EEF2F0; border-radius: 12px; padding: 4px; margin: 4px 0 20px; }
.units button {
  border: 0; background: transparent; padding: 8px 18px; border-radius: 9px;
  font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.units button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.num-row { display: flex; gap: 14px; }
.num {
  flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 8px;
  border-bottom: 2px solid var(--line); padding: 6px 4px; transition: border-color .15s ease;
}
.num:focus-within { border-color: var(--brand); }
/* Size inputs to their digits so the number and its unit read as one group. */
.num input {
  width: 2.2ch; flex: none; border: 0; outline: 0; padding: 0; background: transparent;
  font-size: 42px; font-weight: 800; color: var(--ink); text-align: right;
}
.num-wide input { width: 4.4ch; }
.num #hFt { width: 1.2ch; }
.num input::placeholder { color: #CBD5E1; }
.num span { font-size: 18px; font-weight: 700; color: var(--subtle); }
.field-error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px;
  font-size: 17px; color: var(--ink); background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(42, 127, 65, .12); }
.field input[readonly] { background: #F8FAFC; color: var(--muted); }
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  font-size: 15px; font-weight: 700; color: var(--brand); padding: 8px 10px; cursor: pointer;
}

.bmi-card { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: #F8FAFC; border: 1px solid var(--line); }
.bmi-head { display: flex; align-items: center; gap: 10px; }
.bmi-head b { font-size: 26px; font-weight: 850; }
.bmi-tag { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.bmi-under .bmi-tag { background: #DBEAFE; color: #1E40AF; }
.bmi-normal .bmi-tag { background: #DCFCE7; color: #166534; }
.bmi-over .bmi-tag { background: #FEF3C7; color: #92400E; }
.bmi-obese .bmi-tag { background: #FEE2E2; color: #991B1B; }
.bmi-scale {
  position: relative; height: 10px; border-radius: 5px; margin: 14px 0 6px;
  background: linear-gradient(to right, #60A5FA 0 14%, #22C55E 14% 40%, #F59E0B 40% 60%, #EF4444 60% 100%);
}
.bmi-marker {
  position: absolute; top: -5px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink); transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: left .3s ease;
}
.bmi-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--subtle); }
.bmi-card p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.tip-card {
  display: flex; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--brand-50); border: 1px solid #CFE8D5; font-size: 15px;
}
.tip-icon { font-size: 22px; line-height: 1.2; }

/* ── Loader ────────────────────────────────────────────────────────────── */
.loader { text-align: center; padding-top: 28px; }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto 6px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #E6EDE8; stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--brand-2); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear;
}
.ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 850; }
.checklist {
  list-style: none; padding: 0; margin: 18px auto 0; max-width: 320px; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.checklist li { display: flex; align-items: center; gap: 12px; color: #94A3B8; font-weight: 600; transition: color .2s ease; }
.checklist .dot {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #CBD5E1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: transparent;
}
.checklist .dot svg { width: 14px; height: 14px; }
.checklist li.is-active { color: var(--ink); }
.checklist li.is-active .dot { border-color: var(--brand-2); animation: pulse 1s ease infinite; }
.checklist li.is-done { color: var(--ink); }
.checklist li.is-done .dot { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }

.modal {
  position: fixed; inset: 0; z-index: 50; padding: 16px;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 23, 42, .45); animation: fadeIn .2s ease;
}
@media (min-height: 700px) { .modal { align-items: center; } }
.modal-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 22px;
  text-align: center; animation: slideUp .25s ease;
}
.modal-eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0; }
.modal-card h2 { font-size: 20px; line-height: 1.35; margin: 8px 0 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; margin-top: 0; }

/* ── Email ─────────────────────────────────────────────────────────────── */
.ready-badge {
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand-50); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin: 10px 0 2px;
}
.ready-badge svg { width: 28px; height: 28px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.suggest { font-size: 14px; color: var(--muted); margin: 0; }
.link { border: 0; background: none; padding: 0; font-size: inherit; color: var(--brand); font-weight: 700; text-decoration: underline; cursor: pointer; }
.privacy { font-size: 13px; color: var(--subtle); margin-top: 14px; }
.privacy a { color: var(--subtle); }

/* ── Plan & checkout ───────────────────────────────────────────────────── */
.screen-plan { padding-bottom: 12px; }
.plan-hero { text-align: center; }
.eyebrow {
  display: inline-block; margin: 6px 0 2px; padding: 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
}
.chart-wrap { margin: 10px -4px 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.c-line {
  fill: none; stroke: var(--brand-2); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.4s ease .2s forwards;
}
.c-start { fill: #F59E0B; stroke: #fff; stroke-width: 3; }
.c-goal { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.c-ev-line { stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-ev-dot { fill: #7C3AED; stroke: #fff; stroke-width: 2; }
.c-label { font-size: 13px; font-weight: 800; fill: var(--ink); }
.c-goal-label { fill: var(--brand); }
.c-axis { font-size: 11px; fill: var(--subtle); }
.event-line {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; text-align: left; font-size: 15px;
  background: #F5F3FF; border: 1px solid #E9D5FF; color: #4C1D95;
}
.btn-hero { margin-top: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile-stat { display: flex; flex-direction: column; min-width: 0; padding: 12px; border-radius: 14px; background: #F8FAFC; border: 1px solid #EEF2F6; }
.ts-icon { font-size: 20px; }
.ts-label { margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); }
.ts-value { margin-top: 2px; font-size: 17px; font-weight: 850; overflow-wrap: anywhere; }
.ts-sub { font-size: 12.5px; color: var(--subtle); }
.included { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.included li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.included li span { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }

.checkout { border: 2px solid var(--brand); box-shadow: 0 12px 30px rgba(42, 127, 65, .12); scroll-margin-top: 72px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 6px; }
.price {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 8px 12px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; color: inherit; cursor: pointer;
}
.price.is-on { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.price-amt { font-size: 22px; font-weight: 850; }
.price-sub { font-size: 12.5px; color: var(--subtle); }
.price-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; background: #F59E0B; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.timeline {
  list-style: none; margin: 20px 0 0 6px; padding: 0 0 0 20px; border-left: 2px dashed #CFE8D5;
  display: flex; flex-direction: column; gap: 14px;
}
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-2); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-2);
}
.timeline b { font-size: 15px; }
.timeline span { font-size: 14px; color: var(--muted); }
.due-row {
  display: flex; justify-content: space-between; align-items: center; margin: 18px 0 16px;
  padding: 12px 14px; border-radius: 12px; background: #F8FAFC; font-weight: 700;
}
.due-row b { font-size: 20px; }
.express { min-height: 50px; }
.express.is-empty, .express:empty { min-height: 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: 13px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pe { min-height: 40px; }
.pay-error {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  color: var(--danger); background: #FEF2F2; border: 1px solid #FECACA;
}
.btn-pay { margin-top: 16px; }
.disclosure { font-size: 12.5px; line-height: 1.5; color: var(--subtle); margin: 12px 0 0; }
.disclosure a { color: var(--subtle); }
.secure { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 0; }
.device-note {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px;
  background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F;
}
.mock-pay { padding: 16px; border-radius: 12px; border: 1.5px dashed #CBD5E1; color: var(--muted); font-size: 14px; text-align: center; }
.guarantee { display: flex; gap: 14px; align-items: center; }
.guarantee p { margin: 0; font-size: 14px; color: var(--muted); }
.g-badge {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; line-height: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #F59E0B, #D97706); color: #fff; box-shadow: 0 6px 14px rgba(217, 119, 6, .3);
}
.g-badge b { font-size: 22px; }
.g-badge span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.faq { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--brand);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.sticky-cta {
  position: fixed; left: 50%; bottom: 0; z-index: 30; transform: translate(-50%, 110%);
  width: 100%; max-width: var(--w); padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); transition: transform .25s ease;
}
.sticky-cta.is-shown { transform: translate(-50%, 0); }
.processing {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: rgba(255, 255, 255, .94); font-weight: 700;
}
.spinner {
  width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  border: 4px solid var(--brand-100); border-top-color: var(--brand); animation: spin .8s linear infinite;
}

/* ── After payment ─────────────────────────────────────────────────────── */
.success-badge {
  width: 72px; height: 72px; margin: 14px auto 4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-2); color: #fff; animation: pop .45s cubic-bezier(.2, .9, .3, 1.4);
}
.success-badge svg { width: 36px; height: 36px; }
.stack { text-align: left; margin-top: 18px; }
.party { font-size: 54px; margin-top: 10px; }
.next-steps {
  counter-reset: s; list-style: none; padding: 0; margin: 20px 0;
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.next-steps li {
  counter-increment: s; position: relative; display: flex; flex-direction: column;
  padding: 14px 16px 14px 56px; border-radius: var(--radius); background: #F8FAFC; border: 1px solid var(--line);
}
.next-steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
}
.next-steps span { color: var(--muted); font-size: 14px; }
.btn-store { background: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn-store:hover { background: #1f1f1f; }
.qr { display: none; }
@media (min-width: 768px) and (hover: hover) {
  .qr { display: flex; align-items: center; gap: 14px; max-width: 380px; margin: 18px auto 0; text-align: left; font-size: 14px; color: var(--muted); }
  .qr img { border-radius: 10px; border: 1px solid var(--line); }
}

.preview-picker { position: fixed; left: 10px; bottom: 96px; z-index: 200; font-size: 12px; opacity: .9; }
.noscript { text-align: center; padding: 20px; }

/* ── Motion ────────────────────────────────────────────────────────────── */
@keyframes inFwd { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes inBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(67, 160, 71, .15); } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .c-line { stroke-dashoffset: 0; }
}
