:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-2: #efebe2;
  --surface: #ffffff;
  --ink: #15171f;
  --muted: #5d6170;
  --line: #e3ded2;
  --primary: #1f3d7a;
  --primary-2: #163063;
  --primary-soft: #e9eef8;
  --gold: #a87b2f;
  --gold-2: #8f6824;
  --gold-soft: #f5ecda;
  --good: #1e7a4c;
  --bad: #b23a3a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(21,23,31,.04), 0 12px 32px -12px rgba(21,23,31,.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
img, canvas, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }
.narrow { max-width: 620px; }
[hidden] { display: none !important; }

.eyebrow, .mono-label {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 12px; font-weight: 500;
}
.mono-label { color: var(--muted); }
.eyebrow.gold { color: var(--gold); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,244,239,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: var(--bg); font-family: var(--serif); font-size: 1.15rem; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main-nav a:hover { color: var(--ink); }
.test-status { display: none; margin-left: auto; font-family: var(--mono); font-size: .95rem; color: var(--muted); gap: 10px; align-items: center; }
.timer { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--bad); }
body.in-test .main-nav, body.in-test .header-cta { display: none; }
body.in-test .test-status { display: inline-flex; }
body.in-flow .main-nav, body.in-flow .header-cta { display: none; }

/* ---------- buttons ---------- */
.btn { font: 600 1rem/1.2 var(--sans); border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .option:focus-visible, .btn-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(31,61,122,.6); }
.btn-primary:hover:not(:disabled) { background: var(--primary-2); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 16px -8px rgba(168,123,47,.7); }
.btn-gold:hover:not(:disabled) { background: var(--gold-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: #cfc8b8; background: #fbfaf7; }
.btn-light { background: var(--bg); color: var(--primary); }
.btn-light:hover { background: #fff; }
.btn-text { background: none; color: var(--muted); padding: 12px 14px; }
.btn-text:hover { color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--primary); font: 500 .9rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card-title { font-size: 1.45rem; margin: 0 0 8px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1; margin: 0 0 22px; font-weight: 600; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; color: var(--primary); font-weight: 500; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.checks li::before { content: "✓ "; color: var(--primary); }

.sample-card { padding: 30px; transform: rotate(.6deg); }
.sample-top { display: flex; align-items: flex-end; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sample-score { font-family: var(--serif); font-size: 5.2rem; line-height: .85; font-weight: 600; letter-spacing: -.04em; }
.sample-band { margin: 0; font-weight: 600; color: var(--primary); }
.sample-pct { margin: 0; font-size: .88rem; color: var(--muted); }
.mini-bars { display: grid; gap: 12px; }
.mb { display: grid; grid-template-columns: 82px 1fr 28px; align-items: center; gap: 12px; font-size: .9rem; }
.mb b { font-family: var(--mono); font-weight: 500; text-align: right; font-size: .85rem; }
.track { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ---------- sections ---------- */
.section { padding: 72px 20px; }
.section.wrap { padding-left: 20px; padding-right: 20px; }
.band-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }

.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.domain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.domain h3 { font-size: 1.2rem; margin: 16px 0 6px; }
.domain p { margin: 0; color: var(--muted); font-size: .94rem; }
.domain-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; }
.domain-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--primary); stroke-width: 2.2; }
.domain-icon rect.q { fill: var(--primary); }
.domain-icon text { fill: var(--primary); stroke: none; font: 600 13px var(--mono); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-n { font-family: var(--mono); color: var(--primary); font-size: .9rem; }
.steps h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

.sample-q { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sample-q .btn { margin-top: 8px; }
.sample-matrix { padding: 24px; }
.sample-answer strong { color: var(--ink); }

.cert-section { background: linear-gradient(180deg, var(--surface), var(--gold-soft)); }
.cert-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.cert-canvas { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 48px -20px rgba(60,40,10,.35); background: #fbf8f1; }
.cert-preview-wrap { transform: rotate(-1.2deg); }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23a87b2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; border: 1px solid #e6d5b2; }
.price-line { margin: 22px 0 0; }
.price { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; letter-spacing: -.02em; }

.scale-table { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); max-width: 760px; }
.st-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; padding: 14px 22px; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-head { background: var(--bg-2); font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.st-row span:first-child { font-family: var(--mono); }
.st-row span:last-child { text-align: right; color: var(--muted); }

.prose h3 { font-size: 1.25rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.prose-cols > div > h3:first-child { margin-top: 8px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.final-cta { background: var(--primary); color: #fff; text-align: center; padding: 80px 0; }
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; }
.final-cta p { opacity: .8; margin: 0 0 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; font-size: .94rem; }
.footer-grid a:not(.logo):hover { color: var(--ink); }
.footer-grid .small { max-width: 360px; margin-top: 14px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
body.in-test .site-footer { display: none; }

/* ---------- views ---------- */
.view { display: none; }
.view.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- test ---------- */
.test-wrap { max-width: 760px; padding-top: 28px; padding-bottom: 48px; }
.progress { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.progress-bar { height: 100%; width: 0; background: var(--primary); transition: width .3s ease; }
.q-card { padding: 32px; }
.q-meta { display: flex; justify-content: space-between; }
.q-meta .mono-label:first-child { color: var(--primary); }
.q-text { font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.3; margin: 4px 0 24px; font-weight: 600; }
.q-figure:empty { display: none; }
.q-figure { margin: 0 auto 26px; display: flex; justify-content: center; }
.seq { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.seq .tile { width: 84px; height: 84px; }
.tile { display: grid; place-items: center; border: 1px solid var(--line); background: #fcfbf8; border-radius: 10px; color: var(--ink); }
.tile svg { width: 82%; height: 82%; }
.tile.qm { border: 2px dashed #c9c1ae; color: var(--muted); font: 600 1.8rem var(--serif); background: transparent; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 330px); }
.matrix .tile { aspect-ratio: 1; }
.sample-matrix .matrix { margin: 0 auto; }
.sample-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px auto 0; width: min(100%, 330px); }
.sample-opts .tile { aspect-ratio: 1; position: relative; }
.sample-opts .tile b { position: absolute; top: 4px; left: 6px; font: 500 .7rem var(--mono); color: var(--muted); }
.sample-opts .tile.correct { border-color: var(--good); box-shadow: 0 0 0 2px var(--good) inset; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options.visual { grid-template-columns: repeat(3, 1fr); }
.option { font: 500 1rem var(--sans); text-align: left; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 58px; transition: border-color .12s, background .12s, box-shadow .12s; }
.option:hover { border-color: #b9c3db; background: #fbfcff; }
.option.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.option .key { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); font: 500 .8rem var(--mono); color: var(--muted); }
.option.selected .key { background: var(--primary); border-color: var(--primary); color: #fff; }
.options.visual .option { flex-direction: column; padding: 10px; gap: 6px; align-items: center; }
.options.visual .option .key { align-self: flex-start; width: 24px; height: 24px; font-size: .72rem; }
.options.visual .option svg { width: 72%; max-width: 92px; height: auto; aspect-ratio: 1; color: var(--ink); margin-top: -18px; }

/* shared figure styles */
.shape { fill: none; stroke: currentColor; stroke-width: 4; stroke-linejoin: round; }
.shape.gray { fill: #a8aebb; }
.shape.solid { fill: currentColor; }
.ln { stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.cell { fill: var(--primary); }

.test-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.test-nav-r { display: flex; gap: 4px; }
.hint { color: var(--muted); font: .82rem var(--mono); }
.kbd-hint { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 28px; }
kbd { font: .75rem var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; background: var(--surface); }

/* ---------- calc ---------- */
.calc-wrap { max-width: 620px; padding-top: 72px; padding-bottom: 48px; text-align: center; }
.calc-steps { list-style: none; padding: 0; margin: 26px auto 28px; text-align: left; display: inline-grid; gap: 12px; }
.calc-steps li { display: flex; gap: 12px; align-items: center; color: var(--muted); transition: color .2s; }
.calc-steps li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: all .2s; }
.calc-steps li.active { color: var(--ink); }
.calc-steps li.active::before { border-color: var(--primary); border-top-color: transparent; animation: spin .8s linear infinite; }
.calc-steps li.done { color: var(--ink); }
.calc-steps li.done::before { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- offer ---------- */
.offer-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.offer-title { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 14px; letter-spacing: -.03em; }
.field { display: block; margin-top: 22px; }
.field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input { width: 100%; font: 500 1.05rem var(--sans); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field-err { color: var(--bad); font-size: .85rem; margin: 6px 0 0; min-height: 1.2em; }
.price-box { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.secure svg { width: 13px; height: 13px; fill: var(--muted); }
.pay-msg { text-align: center; font-size: .9rem; min-height: 1.3em; margin: 6px 0 0; color: var(--bad); }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font: .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.offer-preview .cert-canvas { transform: rotate(.8deg); }
.offer-preview .small { margin-top: 18px; }

/* ---------- result ---------- */
.result-wrap { max-width: 860px; padding-top: 36px; padding-bottom: 24px; display: grid; gap: 20px; }
.score-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.score { font-family: var(--serif); font-size: 6.4rem; font-weight: 600; line-height: .9; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.band { font-size: 1.25rem; font-weight: 600; color: var(--primary); margin: 10px 0 2px; }
.pct { color: var(--ink); margin: 0 0 8px; }
.curve svg { width: 100%; height: auto; display: block; }
.curve .area { fill: var(--primary-soft); }
.curve .area-you { fill: color-mix(in srgb, var(--primary) 22%, transparent); }
.curve .line { fill: none; stroke: var(--primary); stroke-width: 2.5; }
.curve .marker { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.curve .axis { fill: var(--muted); font: 11px var(--mono); }
.curve .you { fill: var(--ink); font: 600 12px var(--mono); }
.curve .base { stroke: var(--line); }

.owned-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.owned-head .card-title { margin: 0; }
.owned-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-upsell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: linear-gradient(120deg, var(--surface) 40%, var(--gold-soft)); border-color: #e6d5b2; }
.cert-upsell .muted { margin: 0 0 14px; }
.cert-canvas.mini { transform: rotate(-2deg); }

.breakdown { display: grid; gap: 18px; margin-top: 18px; }
.bd-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.bd-name { font-weight: 600; }
.bd-val { font: 500 .9rem var(--mono); color: var(--muted); }
.bd-row .track { grid-column: 1 / -1; height: 8px; }
.bd-desc { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-msg { text-align: center; color: var(--good); min-height: 1.3em; margin: -8px 0 0; }
.review h3 { margin-top: 0; }
.review ol { padding-left: 22px; margin: 0; }
.review li { margin-bottom: 16px; }
.review .ok { color: var(--good); }
.review .no { color: var(--bad); }
.review .ans { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.review .ans svg { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fcfbf8; color: var(--ink); }
.disclaimer { color: var(--muted); font-size: .84rem; text-align: center; max-width: 620px; margin: 4px auto 0; }

/* ---------- ads ---------- */
.ad-slot { margin: 8px auto; text-align: center; width: 100%; }
.ad-slot.placeholder { min-height: 100px; border: 1.5px dashed #cfc7b4; border-radius: 12px; display: grid; place-items: center; color: var(--muted); font: .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.calc-wrap .ad-slot { margin-top: 28px; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(21,23,31,.45); display: grid; place-items: center; padding: 16px; }
.modal-card { max-width: 440px; width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 24px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 6px; letter-spacing: -.02em; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }

/* ---------- print: only the certificate ---------- */
@media print {
  body * { visibility: hidden; }
  #finalCert, #finalCert * { visibility: visible; }
  #finalCert { position: fixed; inset: 0; width: 100%; box-shadow: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-grid, .sample-q, .cert-grid, .offer-grid, .prose-cols { grid-template-columns: 1fr; gap: 36px; }
  .domains { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .sample-card { transform: none; max-width: 460px; }
  .offer-preview { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 16px; }
  .section.wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 44px 0 24px; }
  .domains { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .options.visual { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .options.visual .option { padding: 6px; }
  .card { padding: 20px; }
  .q-card { padding: 20px; }
  .seq .tile { width: 64px; height: 64px; }
  .score-card { grid-template-columns: 1fr; text-align: center; }
  .score { font-size: 5rem; }
  .cert-upsell { grid-template-columns: 1fr; }
  .cert-upsell .cert-canvas { max-width: 260px; }
  .test-nav .hint { display: none; }
  .st-row { padding: 12px 14px; font-size: .92rem; }
  .final-cta { padding: 60px 0; }
}
