:root {
    --bg: #0a0e17;
    --surface: #111827;
    --surface-2: #172033;
    --inset: #070a10;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f1f5f9;
    --muted: #9aa7bd;
    --primary: #3b82f6;
    --primary-strong: #2563eb;
    --primary-soft: rgba(59, 130, 246, 0.14);
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #fb7185;
    --radius: 14px;
    --radius-sm: 10px;
    --header-h: 64px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 124px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; outline: none; }
h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--primary-strong); color: #fff; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.center { text-align: center; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7fb0ff; }
.lead { font-size: 1.08rem; color: #c9d3e3; }
.hint { font-size: 0.84rem; color: var(--muted); }
.dot-sep { margin: 0 4px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 14, 23, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(45deg, #2563eb, #6366f1); }
.brand-tld { color: #7fb0ff; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.stepper-bar { border-top: 1px solid var(--border); }
.stepper { display: flex; align-items: center; gap: 10px; height: 46px; font-size: 0.86rem; color: var(--muted); }
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ""; width: 28px; height: 1px; background: var(--border-strong); margin-right: 2px; }
.step-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 0.74rem; font-weight: 700; }
.stepper li.is-current { color: var(--text); font-weight: 600; }
.stepper li.is-current .step-dot { background: var(--primary-strong); border-color: var(--primary); color: #fff; }
.stepper li.is-done .step-dot { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.5); color: var(--ok); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-size: 0.94rem; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--primary-strong); color: #fff; }
.btn-primary:hover { background: var(--primary); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.86rem; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.link-btn { background: none; border: 0; padding: 2px 4px; font: inherit; color: #a9c8ff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: #fff; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards and forms ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea { width: 100%; min-height: 44px; padding: 10px 14px; background: var(--inset); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 0.96rem; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #66748c; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
input[aria-invalid="true"] { border-color: var(--bad); }
.field .hint { margin-top: 6px; }
.field-error { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.35); color: #fecdd3; font-size: 0.9rem; text-align: left; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.form-card .hint.center { margin-top: 14px; }

.notice { margin: 28px auto 0; max-width: 620px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(59, 130, 246, 0.4); text-align: left; }
.notice h2 { font-size: 1.15rem; margin-bottom: 6px; }
.notice p { color: #c9d3e3; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.notice-warn { max-width: none; margin: 0 0 16px; padding: 12px 16px; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); color: #fde68a; font-size: 0.92rem; }

/* ---------- Home ---------- */
.view { padding: 40px 0 64px; }
#viewHome { padding: 0; }
.hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(900px 380px at 50% -80px, rgba(59, 130, 246, 0.2), transparent 70%); }
.hero-inner { max-width: 820px; }
.hero h1 { margin: 14px 0 16px; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
.hero .lead { max-width: 640px; margin: 0 auto; }
.scan-form { max-width: 620px; margin: 32px auto 0; }
.scan-row { display: flex; gap: 10px; }
.input-icon { position: relative; flex: 1; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #66748c; pointer-events: none; }
.input-icon input { min-height: 50px; padding-left: 42px; font-size: 1rem; }
.examples { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: 0.88rem; color: #c9d3e3; }
.trust-row li::before { content: "\2713"; margin-right: 7px; color: var(--ok); font-weight: 700; }

.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section-title { margin-bottom: 26px; font-size: 1.6rem; letter-spacing: -0.015em; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps-grid h3, .feature-grid h3 { margin-bottom: 6px; font-size: 1.02rem; }
.steps-grid p, .feature-grid p { font-size: 0.92rem; color: var(--muted); }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--primary-soft); color: #a9c8ff; font-weight: 700; font-size: 0.9rem; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { padding: 18px 28px 18px 0; position: relative; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 18px; color: #c9d3e3; }

/* ---------- Review and running ---------- */
.view-head { margin-bottom: 22px; }
.view-head h1, .running-card h1 { font-size: 1.7rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.prompt-list { display: grid; gap: 8px; margin-top: 10px; counter-reset: q; }
.prompt-list li { display: flex; align-items: center; gap: 10px; counter-increment: q; }
.prompt-list li::before { content: counter(q); flex: none; width: 24px; text-align: center; font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.running-card { text-align: center; padding: 44px 28px; }
.running-card .btn { margin-top: 20px; }
.progress { height: 10px; margin: 26px auto 22px; max-width: 460px; background: var(--inset); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #6366f1); border-radius: 999px; transition: width 0.5s ease; }
.run-stages { display: inline-grid; gap: 8px; margin-bottom: 22px; text-align: left; font-size: 0.94rem; color: var(--muted); }
.run-stages li::before { content: "\25CB"; margin-right: 10px; }
.run-stages li.is-active { color: var(--text); font-weight: 600; }
.run-stages li.is-active::before { content: "\25CF"; color: var(--primary); }
.run-stages li.is-done { color: #c9d3e3; }
.run-stages li.is-done::before { content: "\2713"; color: var(--ok); }

/* ---------- Report ---------- */
.report-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px 32px; align-items: center; padding: 30px; border-color: rgba(59, 130, 246, 0.35); }
.report-hero h1 { margin: 8px 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; }
.report-hero .hint { margin-top: 12px; }
.grade { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.grade-ring { --p: 0; --c: var(--primary); width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, var(--surface-2) 78%, transparent 80%), conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0); }
.grade-ring span { font-size: 2rem; font-weight: 800; color: var(--c); }
.grade-pct { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.report-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--border); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label { font-size: 0.8rem; color: var(--muted); }
.stat-value { margin-top: 2px; font-size: 1.35rem; font-weight: 750; overflow-wrap: anywhere; }
.stat-value.is-text { font-size: 1.05rem; }

.report-nav { position: sticky; top: calc(var(--header-h) + 47px); z-index: 20; display: flex; gap: 4px; margin: 18px 0; padding: 6px; overflow-x: auto; background: rgba(17, 24, 39, 0.94); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 12px; }
.report-nav, .tabs { scrollbar-width: none; }
.report-nav::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.report-nav a { padding: 8px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.report-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.report-nav a.is-active { color: #fff; background: var(--primary-soft); }
.report-section { margin-bottom: 18px; }
.report-section h2, .cta-card h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 4px; }

.leaderboard { display: grid; gap: 10px; margin-top: 18px; }
.lb-row { display: grid; grid-template-columns: 28px minmax(140px, 1.1fr) 2fr 110px; gap: 14px; align-items: center; padding: 14px 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lb-row.is-you { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.45); }
.lb-rank { font-family: var(--mono); font-size: 0.84rem; color: var(--muted); }
.lb-name { font-weight: 700; overflow-wrap: anywhere; }
.lb-status { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.lb-row.is-you .lb-status { color: #a9c8ff; }
.bar { height: 10px; background: var(--inset); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: #56657f; border-radius: 999px; }
.lb-row.is-you .bar-fill { background: var(--primary); }
.lb-num { text-align: right; font-weight: 700; }
.lb-num small { display: block; font-size: 0.76rem; font-weight: 400; color: var(--muted); }

.question-list { display: grid; gap: 12px; margin-top: 18px; }
.question { padding: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.question h3 { font-size: 0.98rem; margin-bottom: 10px; }
.answer { padding: 10px 0; border-top: 1px solid var(--border); }
.answer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.9rem; }
.answer-engine { min-width: 120px; font-weight: 600; }
.answer-first { color: var(--muted); }
.answer details { margin-top: 6px; }
.answer summary { font-size: 0.84rem; color: #a9c8ff; cursor: pointer; }
.answer pre { margin: 8px 0 0; padding: 12px 14px; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--inset); border: 1px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 0.86rem; color: #c9d3e3; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid; font-size: 0.76rem; font-weight: 700; }
.pill-ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.pill-bad { color: var(--bad); border-color: rgba(251, 113, 133, 0.45); background: rgba(251, 113, 133, 0.1); }
.pill-warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); }
.pill-info { color: #a9c8ff; border-color: rgba(59, 130, 246, 0.45); background: var(--primary-soft); }

.insight-list { display: grid; gap: 12px; margin-top: 14px; }
.insight-list li { position: relative; padding-left: 26px; font-size: 0.95rem; color: #d5dceb; }
.insight-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.insight-list.good li::before { content: "\2713"; color: var(--ok); }
.insight-list.bad li::before { content: "!"; color: var(--warn); left: 5px; }

.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-progress { flex: none; font-size: 0.86rem; font-weight: 600; color: #a9c8ff; }
.tabs { display: flex; gap: 6px; margin: 18px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { flex: none; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tab[aria-selected="true"] { color: #fff; background: var(--primary-strong); }
.plan-list { display: grid; gap: 12px; }
.plan-item { padding: 16px 18px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.plan-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.plan-item h3 { font-size: 0.98rem; flex: 1 1 260px; }
.plan-pillar { font-size: 0.78rem; color: var(--muted); }
.plan-why { margin: 8px 0 12px; font-size: 0.88rem; color: var(--muted); }
.plan-steps { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.plan-step { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: #d5dceb; cursor: pointer; }
.plan-step input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.plan-step input:checked + span { color: var(--muted); text-decoration: line-through; }

.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(100deg, rgba(37, 99, 235, 0.2), var(--surface) 60%); border-color: rgba(59, 130, 246, 0.35); }
.method { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Access code ---------- */
.code-home { max-width: 620px; margin: 32px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.code-form { margin-top: 26px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: left; }
.code-form label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; }
.code-form input { font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.code-form input::placeholder { text-transform: none; }
.code-ok { max-width: 620px; margin: 28px auto -14px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.4); color: #a7f3d0; font-size: 0.9rem; }
.hint a, .faq a, .site-footer a, .prose a { color: #a9c8ff; text-underline-offset: 3px; }
.hint a:hover, .faq a:hover, .site-footer a:hover, .prose a:hover { color: #fff; }
.consent { margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Text pages and admin ---------- */
.prose { padding: 48px 0 72px; }
.prose h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.prose h2 { font-size: 1.15rem; margin: 30px 0 8px; }
.prose p, .prose li { color: #c9d3e3; margin-bottom: 10px; }
.prose ul { list-style: disc; padding-left: 22px; }
.admin { padding: 32px 0 64px; }
.admin h1 { font-size: 1.6rem; margin-bottom: 18px; }
.admin h2 { font-size: 1.1rem; margin-bottom: 12px; }
.admin .card { margin-bottom: 18px; }
.admin-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.admin-row .field { margin: 0; flex: 1 1 200px; }
.admin-row .field.narrow { flex: 0 0 120px; }
input[type="password"], input[type="number"] { width: 100%; min-height: 44px; padding: 10px 14px; background: var(--inset); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 0.96rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th, table.data td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
table.data td.wrap { min-width: 220px; overflow-wrap: anywhere; }
table.data .mono { white-space: nowrap; }

/* ---------- Footer, dialog, toasts ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 18px 0; font-size: 0.82rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

.dialog { width: min(460px, calc(100vw - 32px)); padding: 24px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dialog-head h2 { font-size: 1.15rem; }
.dialog .muted { margin-bottom: 18px; font-size: 0.92rem; }
.dialog .field { margin-bottom: 14px; }
.success-msg { margin: 12px 0 20px; padding: 14px; border-radius: var(--radius-sm); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.4); color: #a7f3d0; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); font-size: 0.9rem; }
.toast.is-error { border-color: rgba(251, 113, 133, 0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .feature-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .site-nav { display: none; }
}
@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .hero { padding: 44px 0 40px; }
    .scan-row, .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions { flex-direction: column-reverse; }
    .steps-grid, .grid-2 { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .report-hero { grid-template-columns: 1fr; padding: 20px; }
    .grade { justify-self: start; }
    .lb-row { grid-template-columns: 24px 1fr auto; }
    .lb-row .bar { grid-column: 1 / -1; grid-row: 2; }
    .cta-card, .plan-head { flex-direction: column; align-items: stretch; }
    .step-label { display: none; }
    .stepper li.is-current .step-label { display: inline; }
}
@media (max-width: 420px) {
    .feature-grid, .stat-grid { grid-template-columns: 1fr; }
    #headerCta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */
@media print {
    :root { --bg: #fff; --surface: #fff; --surface-2: #f4f6fa; --inset: #eef1f6; --text: #111; --muted: #555; --border: #d5dae3; --border-strong: #c2c9d6; }
    body { font-size: 12px; }
    .site-header, .site-footer, .report-nav, .report-actions, .cta-card, .tabs, .toasts, .skip-link { display: none !important; }
    .view { padding: 0; }
    .card, .question, .plan-item, .lb-row { break-inside: avoid; }
    .lead, .insight-list li, .plan-step, .answer pre, .notice p { color: #222; }
    .eyebrow, .plan-progress, .answer summary { color: #1d4ed8; }
    .bar-fill { background: #6b7280; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .lb-row.is-you .bar-fill { background: #2563eb; }
}
