/* GrowRank AI shop: shared styles for index.html and the policy pages.
   Same visual language as the demo walkthrough: deep indigo ink, one marigold accent,
   Bricolage Grotesque display + Hanken Grotesk body. Mobile first. */

:root {
  --paper: #f4f3f9; --surface: #ffffff; --surface-2: #ebe9f5; --line: #dad7ea; --line-2: #c9c5df;
  --ink: #1b193b; --ink-2: #45436b; --muted: #6c6a93;
  --indigo: #3a35a6; --indigo-hover: #2e2a8c; --indigo-soft: #e5e3fa; --on-indigo: #ffffff;
  --marigold: #d98e0b; --marigold-ink: #8a5600; --marigold-soft: #fcefd2;
  --good: #1d7f55; --good-soft: #def2e8; --warn: #9a620f; --warn-soft: #faefda; --bad: #b8390f; --bad-soft: #fbe3da;
  --shadow: 0 1px 2px rgba(27,25,59,.06), 0 8px 24px -12px rgba(27,25,59,.18);
  --shadow-lg: 0 2px 4px rgba(27,25,59,.05), 0 18px 40px -18px rgba(27,25,59,.28);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Nirmala UI", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --r: 14px; --r-lg: 20px; --field-h: 54px;
  --s-bg: #ffffff; --s-edge: #dad7ea; --s-ink: #1b193b; --s-line: #dcd9ec; --s-mut: #8f8cb3; --s-acc: #d98e0b; --s-ind: #3a35a6; --s-good: #1d7f55; --s-bad: #c4502a;
  --shine: rgba(255,255,255,.65);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #11101f; --surface: #1a1930; --surface-2: #232142; --line: #2e2c50; --line-2: #3d3a66;
  --ink: #ecebf8; --ink-2: #bfbcdf; --muted: #9592bb;
  --indigo: #9893f5; --indigo-hover: #aeaaf8; --indigo-soft: #26244a; --on-indigo: #11101f;
  --marigold: #f0b03a; --marigold-ink: #f6c76d; --marigold-soft: #3a2b0e;
  --good: #52c391; --good-soft: #12301f; --warn: #e3a74b; --warn-soft: #33260f; --bad: #f0825a; --bad-soft: #3a1b10;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px -16px rgba(0,0,0,.7);
  --s-bg: #e9e8f4; --s-edge: transparent; --s-line: #cfcce2; --shine: rgba(255,255,255,.07);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #11101f; --surface: #1a1930; --surface-2: #232142; --line: #2e2c50; --line-2: #3d3a66;
  --ink: #ecebf8; --ink-2: #bfbcdf; --muted: #9592bb;
  --indigo: #9893f5; --indigo-hover: #aeaaf8; --indigo-soft: #26244a; --on-indigo: #11101f;
  --marigold: #f0b03a; --marigold-ink: #f6c76d; --marigold-soft: #3a2b0e;
  --good: #52c391; --good-soft: #12301f; --warn: #e3a74b; --warn-soft: #33260f; --bad: #f0825a; --bad-soft: #3a1b10;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px -16px rgba(0,0,0,.7);
  --s-bg: #e9e8f4; --s-edge: transparent; --s-line: #cfcce2; --shine: rgba(255,255,255,.07);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }
a { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 640px; }
.eyebrow { font: 700 12px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fine { font-size: 13.5px; color: var(--muted); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--indigo); color: var(--on-indigo); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- header / footer ---------- */
.demo-banner { background: var(--marigold-soft); color: var(--marigold-ink); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.demo-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; min-height: 44px; padding-block: 6px; }
.demo-banner a { color: inherit; font-weight: 700; display: inline-flex; align-items: center; min-height: 36px; }
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font: 800 18px/1 var(--font-display); letter-spacing: -0.01em; }
.radar-ring { fill: none; stroke: var(--indigo); stroke-width: 2; }
.radar-ring.soft { opacity: .5; }
.radar-sweep { stroke: var(--marigold); stroke-width: 2.5; stroke-linecap: round; }
.radar-dot { fill: var(--marigold); }
.head-link { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 2px; font-weight: 600; font-size: 15px; text-decoration: none; }
.head-link:hover { text-decoration: underline; }
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 22px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 10px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.brand.small svg { width: 24px; height: 24px; }
.brand.small b { font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--indigo); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px;
  border-radius: 12px; border: 1.5px solid transparent; font: 700 17px/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.btn-primary { background: var(--indigo); color: var(--on-indigo); box-shadow: 0 8px 18px -10px var(--indigo); }
.btn-primary:hover { background: var(--indigo-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-xl { width: 100%; min-height: 58px; font-size: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn .ic { width: 22px; height: 22px; }
.spin { width: 18px; height: 18px; flex: none; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: var(--indigo); font: 600 15.5px/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-align: left; }
.linkbtn:hover { color: var(--indigo-hover); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field + .field, .field + .reveal, .reveal + .field, .reveal-toggle + .field { margin-top: 14px; }
.check + .field { margin-top: 4px; }
.label { font-weight: 700; font-size: 15px; color: var(--ink); }
.opt { font-weight: 500; color: var(--muted); }
.hint { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.input { display: block; width: 100%; min-height: var(--field-h); padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--paper); font: 500 17px/1.3 var(--font-body); color: var(--ink); -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s; }
.input::placeholder { color: var(--muted); opacity: .85; font-weight: 400; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--indigo); background: var(--surface); box-shadow: 0 0 0 4px var(--indigo-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--bad-soft); }
textarea.input { min-height: 84px; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; pointer-events: none;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); }
.select-wrap .input { padding-right: 46px; cursor: pointer; }
.select-wrap .input.is-empty { color: var(--muted); font-weight: 400; }
.select-wrap option { color: var(--ink); background: var(--surface); }
.prefixed { display: flex; align-items: stretch; min-height: var(--field-h); border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--paper); overflow: hidden; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.prefixed:hover { border-color: var(--muted); }
.prefixed:focus-within { border-color: var(--indigo); background: var(--surface); box-shadow: 0 0 0 4px var(--indigo-soft); }
.prefixed.invalid { border-color: var(--bad); }
.prefixed.invalid:focus-within { box-shadow: 0 0 0 4px var(--bad-soft); }
.prefixed .pre { display: flex; align-items: center; padding: 0 12px 0 14px; font-weight: 700; font-size: 17px; color: var(--ink-2);
  border-right: 1.5px solid var(--line); background: var(--surface-2); }
.prefixed .input { border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 0; }
.prefixed .input:focus { box-shadow: none; background: transparent; }
.upper { text-transform: uppercase; }
.input.pin { max-width: 220px; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.input.pin::placeholder { letter-spacing: 0; }
.pin-field { margin-bottom: 16px; padding: 14px; border-radius: 14px; background: var(--marigold-soft); }
.pin-field .input { background: var(--surface); }
.pin-field .label { color: var(--ink); }
.pin-field .hint { color: var(--ink-2); }
.upper::placeholder { text-transform: none; }
.err { display: flex; gap: 7px; align-items: flex-start; color: var(--bad); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.err:empty { display: none; }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--bad); color: var(--surface);
  font: 800 12px/18px var(--font-body); text-align: center; }
.suggest { justify-self: start; min-height: 40px; }
.reveal-toggle { margin-top: 6px; }
.reveal-toggle .plus { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo-soft);
  color: var(--indigo); font: 800 16px/1 var(--font-body); text-decoration: none; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.45; background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--indigo-soft); color: var(--indigo); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--indigo); cursor: pointer; }

/* ---------- landing: hero ---------- */
.hero-band { position: relative; overflow: hidden; }
.hero { position: relative; display: grid; gap: 18px; grid-template-areas: "copy" "form" "mock"; padding-block: 18px 40px; }
.hero-copy { grid-area: copy; min-width: 0; }
.hero h1 { font-size: clamp(26px, 7.2vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
.hero h1 .accent { display: block; margin-top: 8px; font-size: .64em; line-height: 1.2; font-weight: 700; color: var(--ink-2); letter-spacing: -0.01em; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--marigold-soft) 58%); color: inherit; padding: 0 2px; }
.lede { margin-top: 14px; max-width: 46ch; color: var(--ink-2); font-size: 17.5px; }
.form-card { grid-area: form; position: relative; z-index: 1; min-width: 0; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.form-card .submit { margin-top: 16px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.form-foot span { display: inline-flex; align-items: center; gap: 5px; }
.form-foot .ic { width: 15px; height: 15px; color: var(--good); stroke-width: 2.6; }

/* faint radar rings behind the demo (wide screens only) */
.hero-band::before { content: ""; position: absolute; z-index: 0; width: 980px; height: 980px; left: -260px; bottom: -560px; pointer-events: none; display: none;
  background: repeating-radial-gradient(circle, transparent 0 69px, var(--line) 69px 70px);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); opacity: .8; }

/* ---------- live demo: a ChatGPT answer, scanned for "your clinic" ---------- */
.demo { grid-area: mock; position: relative; z-index: 1; margin: 0; min-width: 0; padding: 14px; display: grid; gap: 12px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.demo-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.demo figcaption { display: flex; align-items: center; gap: 8px; font: 700 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.demo-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.dtab { min-height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 700 13.5px/1 var(--font-body);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s, box-shadow .2s, transform .12s; }
.dtab:hover { color: var(--ink); }
.dtab:active { transform: scale(.96); }
.dtab[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(27,25,59,.1), 0 3px 10px -5px rgba(27,25,59,.35); }
.demo-stage { display: grid; }
.scene { grid-area: 1 / 1; min-width: 0; display: grid; gap: 10px; align-content: start; transition: opacity .35s ease, visibility .35s; }
.scene:not(.on) { opacity: 0; visibility: hidden; }
.bubble { padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; max-width: 92%; }
.bubble.user { justify-self: end; background: var(--indigo); color: var(--on-indigo); border-bottom-right-radius: 4px; font-weight: 600; }
.bubble.ai { position: relative; overflow: hidden; justify-self: start; width: 92%; background: var(--surface-2); border-bottom-left-radius: 4px; color: var(--ink); }
.bubble.ai .who { display: block; font: 700 12px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bubble.ai ol { list-style: none; padding: 0; margin-top: 6px; display: grid; gap: 3px; }
.bubble.ai li { padding: 2px 8px; margin-left: -8px; border-radius: 8px; }
.bubble .no { display: inline-block; min-width: 1.4em; font-weight: 700; color: var(--muted); }
.bubble.ai li.you { background: var(--marigold-soft); box-shadow: inset 0 0 0 1.5px var(--marigold); }
.bubble.ai li.you b { color: var(--marigold-ink); }
.bubble .ln { display: inline-block; max-width: 100%; vertical-align: top; }
.bubble.ai > .ln, .bubble.ai li .ln { display: block; }
.typing, .sweep { display: none; }
.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.verdict.miss { background: var(--bad-soft); }
.verdict.hit { background: var(--good-soft); }
.v-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--surface); background: var(--bad); }
.verdict.hit .v-ic { background: var(--good); }
.v-ic .ic { width: 14px; height: 14px; stroke-width: 3.2; }

/* ---------- sections ---------- */
.section { padding-block: 40px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 8px; max-width: 760px; margin-bottom: 22px; }
.section-head p { max-width: 62ch; }
.section-head h2 { font-size: clamp(25px, 5.6vw, 38px); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 16.5px; }

/* how it works: a real sequence, with a progress rail that fills as you scroll */
.how { list-style: none; padding: 0; display: grid; }
.how-step { --f: 1; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
.how-step:last-child { padding-bottom: 0; }
.how-step:not(:last-child)::before, .how-step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; border-radius: 1px; }
.how-step::before { background: var(--line-2); }
.how-step::after { background: var(--indigo); transform-origin: 50% 0; transform: scaleY(var(--f)); }
.how-n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--indigo);
  background: var(--indigo); color: var(--on-indigo); font: 800 18px/1 var(--font-display); transition: background-color .35s, border-color .35s, color .35s, transform .35s cubic-bezier(.2,.9,.3,1.4); }
.how.live .how-step:not(.lit) .how-n { background: var(--surface); border-color: var(--line-2); color: var(--muted); }
.how.live .how-step.lit .how-n { transform: scale(1.06); }
.how-body { padding-top: 8px; display: grid; gap: 7px; justify-items: start; min-width: 0; }
.how-body h3 { font-size: 20px; font-weight: 800; }
.how-body p { color: var(--ink-2); font-size: 15.5px; max-width: 44ch; }

/* what you get: stylised page thumbnails */
.pages { list-style: none; margin: 0 -16px; padding: 4px 16px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 44%); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pg { scroll-snap-align: start; display: grid; gap: 4px; align-content: start; min-width: 0; }
.pg > b { font-size: 15px; line-height: 1.3; font-weight: 700; }
.pg > b .chip { margin-top: 5px; display: flex; width: max-content; font-size: 11.5px; padding: 3px 8px; }
.pg > span { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.thumb { aspect-ratio: 210 / 297; margin-bottom: 8px; padding: 11% 11% 9%; display: flex; flex-direction: column; gap: 6%; border-radius: 8px;
  background: var(--s-bg); border: 1px solid var(--s-edge); box-shadow: 0 1px 2px rgba(27,25,59,.06), 0 12px 24px -16px rgba(27,25,59,.45);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.pg-pro .thumb { box-shadow: 0 0 0 2px var(--marigold), 0 12px 24px -16px rgba(27,25,59,.45); }
.thumb .pno { font: 700 9px/1 var(--font-mono); letter-spacing: .08em; color: var(--s-mut); }
.thumb .ttl { display: block; flex: none; width: 64%; height: 6px; margin-top: -3%; border-radius: 3px; background: var(--s-ink); }
.thumb svg { display: block; width: 100%; height: auto; flex: none; overflow: visible; }
.thumb .k { fill: var(--s-ink); } .thumb .l { fill: var(--s-line); } .thumb .a { fill: var(--s-acc); } .thumb .i { fill: var(--s-ind); }
.thumb .g { fill: var(--s-good); } .thumb .b { fill: var(--s-bad); } .thumb .w { fill: #fff; opacity: .7; } .thumb .i2 { fill: #a9a5f7; }
.thumb .soft { opacity: .3; } .thumb .l.soft { opacity: .6; }
.thumb .rl { fill: none; stroke: var(--s-line); } .thumb .ra { fill: none; stroke: var(--s-acc); }
.thumb .rd { fill: none; stroke: var(--s-line); stroke-width: 1.6; stroke-dasharray: 3 3; }
.thumb .sg, .thumb .sb { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thumb .sg { stroke: var(--s-good); } .thumb .sb { stroke: var(--s-bad); }
.thumb .tx { font: 800 20px/1 var(--font-display); fill: var(--s-ink); }
.thumb .tk { font: 700 6.5px/1 var(--font-body); fill: var(--s-mut); text-anchor: middle; }
@media (hover: hover) {
  .pg:hover .thumb { transform: translateY(-5px) rotate(-1.2deg); box-shadow: 0 2px 4px rgba(27,25,59,.06), 0 22px 34px -18px rgba(27,25,59,.5); }
  .pg-pro:hover .thumb { box-shadow: 0 0 0 2px var(--marigold), 0 22px 34px -18px rgba(27,25,59,.5); }
}
.pages-foot { margin-top: 14px; display: grid; gap: 14px; }
.swipe-hint { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.swipe-hint span { display: inline-block; }
.sample-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sample-cta p { color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
.sample-cta p b { color: var(--ink); }
.sample-cta .btn { flex: none; }

/* pricing */
.plans { display: grid; gap: 16px; }
.plan { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.plan.featured { border: 2px solid var(--marigold); box-shadow: var(--shadow); padding-top: 26px; }
.plan-flag { position: absolute; top: -12px; left: 18px; padding: 5px 11px; border-radius: 999px; background: var(--marigold); color: #1b193b;
  font: 800 11.5px/1.1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
@media (hover: hover) { .plan:not(.off):hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.plan .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { font-size: 21px; }
.plan .price { font: 800 36px/1 var(--font-display); letter-spacing: -0.02em; }
.plan .price small { font: 600 16px/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.plan .total { font-size: 14.5px; color: var(--ink-2); margin-top: -4px; }
.plan .total b { color: var(--ink); }
.plan.off { opacity: .72; }
.emailed { font-size: 14.5px; color: var(--good); font-weight: 600; }
.plan .plan-note, .preview-note { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.preview-note { margin-top: 8px; }
.plan .btn { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  font: 700 12.5px/1.15 var(--font-body); white-space: nowrap; }
.chip.accent { background: var(--marigold-soft); color: var(--marigold-ink); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.soon { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); }
.chip.high { background: var(--bad-soft); color: var(--bad); }
.chip.medium { background: var(--warn-soft); color: var(--warn); }
.chip.low { background: var(--indigo-soft); color: var(--indigo); }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 7px; height: 12px; border-right: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(45deg); }
.ticks li.new { color: var(--ink); font-weight: 600; }
.ticks li .chip { margin-left: 6px; padding: 3px 7px; font-size: 11px; vertical-align: 1px; }

/* we support you */
.sup-grid { display: grid; gap: 16px; }
.after-pay, .help-card { min-width: 0; padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sup-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.timeline { list-style: none; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; gap: 3px; padding: 0 0 20px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; z-index: 1; left: 4px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--indigo); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 21px; bottom: 1px; width: 2px; border-radius: 1px; background: var(--line-2); }
.timeline .when { font: 700 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--marigold-ink); }
.timeline b { font-size: 16.5px; line-height: 1.3; }
.timeline li > span:last-child { color: var(--ink-2); font-size: 15px; }
.help-card { display: grid; gap: 12px; align-content: start; }
.help-card .sup-title { margin-bottom: 0; }
.help-card > p { color: var(--ink-2); font-size: 15px; }
.help-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.help-list li { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.h-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.help-list small { display: block; font: 700 11.5px/1.3 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.help-list li > span:last-child { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.help-card .linkbtn { justify-self: start; min-height: 44px; }
.privacy-line { display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.privacy-line .ic { color: var(--good); margin-top: 1px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary { list-style: none; position: relative; display: flex; align-items: center; min-height: 58px; padding: 14px 52px 14px 16px; cursor: pointer;
  font-weight: 700; font-size: 16.5px; line-height: 1.35; border-radius: var(--r); -webkit-tap-highlight-color: transparent; transition: color .15s; }
.faq summary:hover { color: var(--indigo); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .ans { padding: 0 16px 16px; color: var(--ink-2); font-size: 15.5px; }
.faq .ans p + p { margin-top: 8px; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .motion .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s cubic-bezier(.2,.8,.2,1), content-visibility .3s allow-discrete; }
  .motion .faq details[open]::details-content { block-size: auto; }
}

/* ---------- progress views (scanning / building) ---------- */
.view { padding-block: 22px 40px; }
.pcard { padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pcard h2 { font-size: clamp(25px, 6vw, 34px); font-weight: 800; margin-top: 6px; }
.pcard h2:focus { outline: none; }
.pcard .sub { color: var(--ink-2); margin-top: 6px; font-size: 16px; overflow-wrap: anywhere; }
.status-chip { margin-bottom: 6px; }
.pbar { height: 12px; margin: 22px 0 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--indigo); position: relative; overflow: hidden;
  transition: width .9s cubic-bezier(.2,.8,.2,1); }
.pbar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-100%); animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.prow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pmsg { font-weight: 700; font-size: 16.5px; line-height: 1.4; min-height: 1.4em; }
.ppct { flex: none; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 2px; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.steps li.active { color: var(--ink); }
.steps li.active .dot { border-color: var(--indigo); border-right-color: transparent; animation: spin 1s linear infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { background: var(--good); border-color: var(--good); }
.steps li.done .dot::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border-right: 2.5px solid var(--surface); border-bottom: 2.5px solid var(--surface); transform: rotate(45deg); }
.rot-hint { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; transition: opacity .35s; }
.rot-hint.fade { opacity: 0; }
.conn { margin-top: 12px; }
.bookmark { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.copyrow { display: flex; gap: 8px; min-width: 0; }
.copyrow .input { flex: 1; min-width: 0; font: 500 14.5px/1.3 var(--font-mono); background: var(--surface-2); }
.copyrow .btn { flex: none; min-height: var(--field-h); padding: 0 16px; font-size: 16px; }
.err-panel { display: grid; gap: 14px; }
.err-panel .err-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); }
.err-panel .err-ic .ic { width: 26px; height: 26px; }
.err-panel h2 { margin-top: 0; }
.err-panel .msg { color: var(--ink-2); font-size: 16px; }
.btn-row { display: grid; gap: 10px; }
.loading { display: grid; justify-items: center; gap: 14px; padding: 60px 0; color: var(--ink-2); font-weight: 600; text-align: center; }
.loading .spin { width: 34px; height: 34px; border-width: 3px; color: var(--indigo); }

/* ---------- teaser ---------- */
.t-head { display: grid; gap: 4px; margin-bottom: 16px; }
.t-head h2 { font-size: clamp(26px, 6.4vw, 42px); font-weight: 800; overflow-wrap: anywhere; }
.t-head h2:focus { outline: none; }
.t-head .sub { color: var(--ink-2); overflow-wrap: anywhere; }
.t-head .linkbtn { justify-self: start; min-height: 44px; font-size: 15px; }
.t-grid { display: grid; gap: 16px; }
.t-main { display: grid; gap: 16px; min-width: 0; align-content: start; }
.t-side { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.scorecard { padding: 20px 18px; display: grid; gap: 18px; }
.gauge { display: grid; justify-items: center; text-align: center; gap: 4px; }
.gauge svg { width: 176px; height: 176px; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.ring-fg { fill: none; stroke: var(--marigold); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.ring-num { font: 800 54px/1 var(--font-display); fill: var(--ink); letter-spacing: -0.03em; }
.ring-sub { font: 600 12.5px/1 var(--font-body); fill: var(--muted); }
.grade { font: 800 22px/1.15 var(--font-display); color: var(--marigold-ink); }
.grade-sub { color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.stats { display: grid; gap: 12px; min-width: 0; }
.stat-named { padding: 14px 16px; border-radius: 14px; background: var(--marigold-soft); }
.stat-named p { font-size: 17px; line-height: 1.35; color: var(--ink); }
.stat-named b { font: 800 26px/1 var(--font-display); color: var(--marigold-ink); white-space: nowrap; }
.qdots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qdots i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); }
.qdots i.on { background: var(--marigold); border-color: var(--marigold); }
.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.block-title { font-size: 20px; font-weight: 800; }
.findings { display: grid; gap: 12px; }
.finding { padding: 16px; display: grid; gap: 8px; align-content: start; border-left: 5px solid var(--bad); }
.finding.medium { border-left-color: var(--warn); }
.finding.low { border-left-color: var(--indigo); }
.finding h4 { font-size: 17.5px; line-height: 1.3; font-weight: 700; }
.finding p { color: var(--ink-2); font-size: 15px; }
.finding .chip { justify-self: start; }
.locked { padding: 20px 18px; }
.locked .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.locked-list { list-style: none; padding: 0; margin-top: 10px; display: grid; }
.locked-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.locked-list li:last-child { border-bottom: 0; }
.locked-list .n { font: 700 13px/22px var(--font-mono); color: var(--muted); }
.locked-list .t { font-weight: 700; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.locked-list .ghost { display: flex; gap: 6px; margin-top: 7px; filter: blur(2.5px); opacity: .9; }
.locked-list .ghost i { height: 8px; border-radius: 4px; background: var(--line-2); }
.locked-list .lock { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.locked .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: 8px; }
.checkout { padding: 20px 18px; box-shadow: var(--shadow-lg); scroll-margin-top: 16px; }
.checkout h3 { font-size: 22px; font-weight: 800; }
.checkout .lead { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.plan-pick { border: 0; padding: 0; margin: 16px 0 18px; display: grid; gap: 10px; min-width: 0; }
.plan-pick legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.plan-opt { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 72px; padding: 14px;
  border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); cursor: pointer; transition: border-color .15s, background-color .15s; }
.plan-opt:hover { border-color: var(--indigo); }
.plan-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.plan-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; background: var(--surface); }
.plan-opt input:checked + .radio { border-color: var(--indigo); }
.plan-opt input:checked + .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--indigo); }
.plan-opt input:focus-visible + .radio { outline: 3px solid var(--indigo); outline-offset: 3px; }
.plan-opt.on { border-color: var(--indigo); background: var(--indigo-soft); }
.plan-opt.off { cursor: not-allowed; opacity: .6; }
.plan-opt.off input { cursor: not-allowed; }
.plan-opt.off:hover { border-color: var(--line-2); }
.po-name { display: block; font-weight: 800; font-size: 16px; line-height: 1.25; }
.po-sub { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.po-pages { display: block; margin-top: 3px; font-weight: 700; color: var(--ink); }
.po-price { text-align: right; font: 800 18px/1.1 var(--font-display); white-space: nowrap; }
.po-price small { display: block; font: 600 12.5px/1.3 var(--font-body); color: var(--muted); margin-top: 2px; }
.breakdown { margin: 18px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; font-size: 15px; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown dt { color: var(--ink-2); }
.breakdown dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.breakdown .tot { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 17px; }
.breakdown .tot dt, .breakdown .tot dd { color: var(--ink); font-weight: 800; }
.breakdown .incl { font-size: 13.5px; color: var(--muted); }
.secure { margin-top: 12px; text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.secure .ic { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.test-note { margin-top: 10px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(0,0,0,.35);
  transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta .txt { font-size: 14px; line-height: 1.3; color: var(--ink-2); min-width: 0; }
.sticky-cta .txt b { display: block; color: var(--ink); font-size: 15px; }
.sticky-cta .btn { min-height: 48px; padding: 10px 16px; font-size: 16px; flex: none; }
body.has-sticky { padding-bottom: 76px; }

/* ---------- done ---------- */
.done-card { text-align: center; display: grid; justify-items: center; gap: 10px; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.done-ic .ic { width: 38px; height: 38px; stroke-width: 2.6; }
.done-card .btn-row { width: 100%; margin-top: 10px; }
.done-card .bookmark { width: 100%; text-align: left; }
.done-card .next { margin-top: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; text-align: left; width: 100%; }

/* ---------- mock payment sheet ---------- */
dialog.sheet { width: min(440px, calc(100% - 32px)); max-width: 100%; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.55); overflow: hidden; }
dialog.sheet::backdrop { background: rgba(17,16,31,.6); }
dialog.sheet.fallback { position: fixed; inset: auto 0 0; margin: 0 auto; z-index: 60; }
.test-band { padding: 12px 18px; font-weight: 800; font-size: 15px; color: var(--marigold-ink); text-align: center;
  background: repeating-linear-gradient(-45deg, var(--marigold-soft) 0 14px, var(--warn-soft) 14px 28px); border-bottom: 1px solid var(--line); }
.sheet-body { padding: 20px 18px 18px; display: grid; gap: 12px; }
.sheet-body h2 { font-size: 22px; font-weight: 800; }
.sheet-body .desc { color: var(--ink-2); overflow-wrap: anywhere; }
.sheet-amt { font: 800 40px/1 var(--font-display); letter-spacing: -0.02em; }
.sheet-body .btn-row { margin-top: 6px; }
@media (max-width: 599px) {
  dialog.sheet { width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-sticky .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

/* ---------- policy pages ---------- */
.doc { padding-block: 28px 16px; max-width: 780px; }
.doc h1 { font-size: clamp(30px, 7vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 30px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.doc strong { color: var(--ink); }
.doc ul + p, .doc ol + p { margin-top: 12px; }
.doc .mono { white-space: nowrap; }
.doc .lead { font-size: 17.5px; margin-top: 14px; color: var(--ink-2); }
.ph { padding: 1px 6px; border-radius: 6px; background: var(--marigold-soft); color: var(--marigold-ink); font: 700 .86em/1.5 var(--font-mono); overflow-wrap: anywhere; }
.draft-note { margin: 20px 0 8px; padding: 14px 16px; border: 2px dashed var(--marigold); border-radius: 12px; background: var(--marigold-soft); color: var(--ink); font-size: 15px; }
.draft-note b { color: var(--marigold-ink); }
.box { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-top: 12px; }
.contact-list { display: grid; gap: 10px; margin-top: 16px; }
.contact-list div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.contact-list dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- phones: keep the whole form above the fold ---------- */
@media (max-width: 599px) {
  :root { --field-h: 52px; }
  .hero { gap: 14px; padding-top: 14px; }
  .hero .lede { display: none; }
  .hero h1 .accent { margin-top: 6px; }
  .form-card { padding: 16px; }
  .form-card .field { gap: 4px; }
  .form-card .field + .field, .form-card .field + .reveal, .form-card .reveal + .field { margin-top: 12px; }
  .form-card .reveal-toggle { margin-top: 2px; }
  .form-card .submit { margin-top: 6px; }
  .site-head .wrap { min-height: 54px; }
}

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .form-card { padding: 24px; }
  .pcard { padding: 28px; }
  .scorecard { grid-template-columns: 190px minmax(0, 1fr); align-items: center; padding: 24px; }
  .findings { grid-template-columns: 1fr 1fr; }
  .btn-row.two { grid-template-columns: 1fr 1fr; }
  .locked, .checkout { padding: 24px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .demo, .form-card { max-width: 560px; }
  .pages { grid-auto-columns: minmax(170px, 28%); }
}
@media (min-width: 760px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 30px; }
  .view { padding-block: 40px 56px; }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .how-step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 0; }
  .how-step:not(:last-child)::before, .how-step:not(:last-child)::after { left: 56px; right: -16px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .how-step::after { transform-origin: 0 50%; transform: scaleX(var(--f)); }
  .how-body { padding-top: 0; }
  .sup-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
  .after-pay, .help-card { padding: 26px; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 448px; grid-template-areas: "copy form" "mock form"; column-gap: 56px; row-gap: 26px; padding-block: 44px 64px; align-items: start; }
  .hero h1 { font-size: 48px; }
  .hero-band::before { display: block; }
  .demo { max-width: 540px; padding: 18px; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .pages { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-columns: auto; gap: 26px 20px; margin: 0; padding: 0; overflow: visible; }
  .swipe-hint { display: none; }
  .pages-foot { margin-top: 30px; }
  .t-grid { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 22px; }
  .t-side { position: sticky; top: 16px; }
  .sticky-cta { display: none; }
  body.has-sticky { padding-bottom: 0; }
}

/* ---------- motion ----------
   Everything below is opt-in: html.motion is set by app.js only when the visitor has not asked
   for reduced motion. Without JS (or with reduced motion) every element rests fully visible. */

/* flow changes: View Transitions where supported, a short fade/slide otherwise */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .16s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2,.8,.2,1) both; }
  @view-transition { navigation: auto; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
.motion .view-in { animation: vt-in .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.55); } }

/* scroll reveals: JS adds .rv only to elements still below the fold, then .in when they arrive */
.motion [data-reveal].rv { opacity: 0; transform: translateY(18px); }
.motion [data-reveal].rv.in { opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.8,.2,1) var(--rd, 0s), transform .6s cubic-bezier(.2,.8,.2,1) var(--rd, 0s); }

/* buttons and focus */
@media (hover: hover) {
  .btn:not([disabled]):hover { transform: translateY(-1px); }
  .btn-primary:not([disabled]):hover { box-shadow: 0 14px 26px -14px var(--indigo); }
}
.btn:not([disabled]):active { transform: translateY(0) scale(.97); transition-duration: .06s; }
.motion :focus-visible { animation: focus-in .22s ease-out; }
@keyframes focus-in { from { outline-offset: 7px; outline-color: transparent; } }
.motion .reveal:not([hidden]) { animation: rise .3s cubic-bezier(.2,.8,.2,1) both; }

/* live demo timeline (delays and durations come from app.js as --t / --d / --n) */
.motion .live-dot { animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(29,127,85,.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(29,127,85,0); } }
.motion .demo.play .scene.on .ln { animation: type var(--d, .5s) steps(var(--n, 20), end) var(--t, 0s) both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -4px 0 0); } }
.motion .demo.play .scene.on .typing { display: flex; position: absolute; left: 14px; top: 34px; gap: 4px; animation: typing-show var(--d, .7s) var(--t, 0s) both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce .9s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-show { 0%, 100% { opacity: 0; } 12%, 88% { opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-3px); opacity: 1; } }
.motion .demo.play .scene.on .sweep { display: block; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0 78%, rgba(217,142,11,.16) 96%, var(--marigold) 100%);
  animation: sweep var(--d, .9s) var(--t, 0s) cubic-bezier(.45,.05,.55,.95) both; }
@keyframes sweep { 0% { transform: translateY(-104%); opacity: 1; } 82% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.motion .demo.play .scene.on li.you { animation: you-glow .5s var(--t, 0s) ease-out both; }
@keyframes you-glow { from { background-color: transparent; box-shadow: inset 0 0 0 1.5px transparent; } }
.motion .demo.play .scene.on .verdict { animation: pop .45s var(--t, 0s) cubic-bezier(.2,.9,.3,1.3) both; }
.motion .demo.play .scene.on .v-ic { animation: ping 1.4s calc(var(--t, 0s) + .3s) ease-out both; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217,142,11,.5); } 100% { box-shadow: 0 0 0 10px rgba(217,142,11,0); } }
.demo.hold *, .demo.hold *::before, .demo.hold *::after { animation-play-state: paused !important; }

/* how-it-works rail fill is set from scroll (app.js); give it a hair of easing */
.motion .how.live .how-step::after { transition: transform .12s linear; }

/* swipe hint nudge */
.motion .swipe-hint span { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* scanning: skeleton of the score card while we work */
.skel { position: relative; overflow: hidden; margin-top: 16px; padding: 14px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px 14px; align-items: center;
  border: 1.5px dashed var(--line-2); border-radius: 14px; }
.skel-ring { grid-row: 1 / span 2; width: 60px; height: 60px; border-radius: 50%; border: 9px solid var(--surface-2); }
.skel-lines { display: grid; gap: 8px; }
.skel-lines i { display: block; height: 10px; border-radius: 5px; background: var(--surface-2); }
.skel-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 20%, var(--shine) 50%, transparent 80%); }
.motion .skel::after { animation: shimmer 1.8s ease-in-out infinite; }

/* teaser: the score arrives in order — ring, grade, dots, findings */
.motion .grade, .motion .grade-sub { animation: rise .5s .95s cubic-bezier(.2,.8,.2,1) both; }
.motion .qdots i { animation: pop-in .35s calc(.55s + var(--i, 0) * 80ms) cubic-bezier(.2,.9,.3,1.5) both; }
.motion .finding { animation: rise .5s calc(.4s + var(--i, 0) * 120ms) cubic-bezier(.2,.8,.2,1) both; }
.motion .locked-list li.added { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }

/* done: the tick draws itself */
.motion .done-ic { animation: pop-in .5s cubic-bezier(.2,.9,.3,1.4) both; }
.motion .done-ic path { stroke-dasharray: 21; animation: draw .45s .3s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 21; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .pbar i::after, .skel::after { display: none; }
}
