:root {
    --brand: #e31e24;
    --brand-hover: #c9161c;
    --navy-950: #0e172b;
    --navy-900: #18233b;
    --text: #171c2a;
    --muted: #5f6b82;
    --border: #dce2eb;
    --surface: #fff;
    --soft: #f6f8fb;
    --success: #237a47;
    --success-line: #4aa875;
    --success-bg: #eff9f2;
    --error: #cf3941;
    --error-line: #ed6b72;
    --error-bg: #fff1f2;
    --warning: #e7a42b;
    --shadow: 0 18px 55px rgba(17, 24, 39, .09);
    --radius-lg: 20px;
    --radius-md: 12px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --site-max: 1460px;
    --content-max: 1280px;
    --site-gutter: clamp(18px, 4vw, 64px);
    --brand-width: 220px;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    color-scheme: light;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--navy-950);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid rgba(227, 30, 36, .28);
    outline-offset: 3px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--navy-950);
    text-decoration: none;
}

.brand img {
    width: var(--brand-width);
    height: auto;
    object-fit: contain;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 680;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.button svg { width: 22px; height: 22px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }

.button--primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(227, 30, 36, .18);
}

.button--primary:hover:not(:disabled) {
    background: var(--brand-hover);
    box-shadow: 0 12px 28px rgba(227, 30, 36, .24);
}

.button--secondary {
    color: var(--navy-900);
    background: #fff;
    border-color: #cdd4df;
}

.button--secondary:hover { border-color: var(--navy-900); }
.button--wide { width: 100%; }

.text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 550;
    text-decoration: none;
}

.text-link:hover { color: var(--brand); }
.text-link svg { width: 20px; height: 20px; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 28px;
    height: 2px;
    background: var(--brand);
}

.flash-stack {
    position: fixed;
    z-index: 100;
    top: 20px;
    left: 50%;
    width: min(520px, calc(100% - 32px));
    transform: translateX(-50%);
}

.flash {
    padding: 14px 18px;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy-900);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.flash--success { border-left-color: var(--success); }
.flash--error { border-left-color: var(--error); }
.flash--info { border-left-color: #3b82f6; }

/* Landing */
.hero-shell {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    padding: 32px var(--site-gutter);
    background:
        linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.96) 48%, rgba(249,250,252,.72) 100%);
}

.landing-header {
    position: relative;
    z-index: 5;
    width: min(var(--site-max), 100%);
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-header__note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    z-index: 2;
    max-width: var(--site-max);
    min-height: calc(100dvh - 146px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(500px, .94fr) minmax(530px, 1.06fr);
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 4;
    max-width: 760px;
    padding: 60px 0 76px;
}

.hero h1 {
    max-width: 750px;
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(48px, 5vw, 78px);
    font-weight: 710;
    line-height: 1.06;
    letter-spacing: -.052em;
}

.hero h1 span { color: var(--brand); }

.hero__lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.65;
}

.hero__facts {
    display: flex;
    gap: 50px;
    margin: 38px 0;
}

.hero-fact {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: var(--muted);
}

.hero-fact svg {
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    margin-top: 2px;
}

.hero-fact span { display: grid; font-size: 14px; }
.hero-fact strong { color: var(--navy-900); font-size: 15px; }

.button--hero {
    min-width: 285px;
    min-height: 62px;
    padding-inline: 28px;
    font-size: 17px;
}

.hero__microcopy {
    margin: 12px 0 0 3px;
    color: var(--muted);
    font-size: 14px;
}

.hero__visual {
    position: absolute;
    z-index: 1;
    inset: 0 -9vw 0 45%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.hero__visual > img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    filter: saturate(.94) contrast(1.01);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.15) 10%, #000 27%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.15) 10%, #000 27%);
}

.hero__halo {
    position: absolute;
    z-index: 1;
    width: 520px;
    height: 520px;
    right: 16%;
    top: 17%;
    border: 1px solid rgba(227, 30, 36, .12);
    border-radius: 50%;
}

.hero__brand-mark {
    position: absolute;
    z-index: 3;
    right: 1%;
    bottom: 3%;
    width: clamp(250px, 23vw, 390px);
    aspect-ratio: 63 / 56;
    overflow: hidden;
    opacity: .16;
    filter: saturate(1.08);
    mix-blend-mode: multiply;
}

.hero__brand-mark img {
    width: auto;
    max-width: none;
    height: 100%;
}

.hero__caption {
    position: absolute;
    z-index: 4;
    right: 9%;
    bottom: 7%;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    color: var(--navy-900);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(220,226,235,.9);
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(17,24,39,.08);
    font-size: 13px;
    line-height: 1.35;
}

.hero__caption-num {
    color: var(--brand);
    font-size: 21px;
    font-weight: 720;
}

.hero-geometry {
    position: absolute;
    z-index: 0;
    right: -130px;
    bottom: -180px;
    width: 440px;
    height: 620px;
    border: 1px solid rgba(24,35,59,.05);
    transform: rotate(32deg);
}

.hero-geometry i {
    position: absolute;
    inset: 50px;
    border: 1px solid rgba(24,35,59,.04);
}

.empty-notice { color: var(--muted); }

/* Landing continuation */
.confidence-section {
    position: relative;
    z-index: 4;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: clamp(76px, 9vw, 132px) 0 82px;
    border-top: 1px solid rgba(220, 226, 235, .85);
}

.confidence-section__heading { max-width: 770px; }

.confidence-section__heading h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(36px, 4.2vw, 62px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.confidence-section__heading > p:last-child {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 62px;
    background: var(--border);
    border-block: 1px solid var(--border);
}

.confidence-grid article {
    padding: 34px clamp(22px, 3vw, 44px) 38px;
    background: rgba(255, 255, 255, .96);
}

.confidence-grid article:first-child { padding-left: 0; }
.confidence-grid article:last-child { padding-right: 0; }

.confidence-grid article > span {
    color: var(--brand);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .12em;
}

.confidence-grid h3 {
    margin: 18px 0 10px;
    color: var(--navy-950);
    font-size: 21px;
}

.confidence-grid p {
    max-width: 380px;
    margin: 0;
    color: var(--muted);
}

.confidence-statement {
    max-width: 900px;
    margin: 72px auto 0;
    color: var(--navy-900);
    font-size: clamp(23px, 2.6vw, 36px);
    font-weight: 560;
    line-height: 1.4;
    letter-spacing: -.025em;
    text-align: center;
}

.landing-footer {
    position: relative;
    z-index: 4;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 28px 0 10px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.landing-footer a { text-underline-offset: 4px; }
.landing-footer a:hover { color: var(--brand); }

/* Catalog and intro */
.catalog-shell,
.intro-shell,
.review-shell,
.result-shell,
.error-shell {
    min-height: 100dvh;
    padding: 32px var(--site-gutter);
    background:
        linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)),
        repeating-linear-gradient(135deg, transparent 0 42px, rgba(24,35,59,.035) 43px 44px);
}

.catalog-content {
    width: min(var(--content-max), 100%);
    margin: clamp(48px, 7vh, 84px) auto 48px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(330px, .78fr) minmax(560px, 1.22fr);
    grid-template-areas:
        "heading tests"
        "guide tests";
    grid-template-rows: auto 1fr;
    column-gap: clamp(52px, 6vw, 88px);
    row-gap: 38px;
    align-items: start;
}

.catalog-overview {
    display: contents;
}

.catalog-heading { max-width: 820px; padding-top: 0; }

.catalog-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(46px, 4.5vw, 66px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.catalog-heading > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.catalog-guide {
    max-width: none;
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.catalog-guide .eyebrow { margin-bottom: 18px; }
.catalog-guide ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.catalog-guide li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: start;
    min-height: 64px;
    padding: 0 26px;
}
.catalog-guide li + li {
    border-left: 1px solid var(--border);
}
.catalog-guide li > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--brand);
    border: 1px solid #d9e0ea;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .04em;
}
.catalog-guide strong { display: block; color: var(--navy-950); font-size: 15px; }
.catalog-guide li p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.catalog-list {
    min-width: 0;
    margin-top: 34px;
}

.catalog-list__heading {
    min-height: 32px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.catalog-list__heading strong {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--navy-950);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 12px;
    letter-spacing: 0;
}

.journey {
    max-width: 760px;
    margin: 44px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    list-style: none;
    color: #8791a3;
    font-size: 13px;
    font-weight: 650;
}

.journey li {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.journey li:not(:last-child) { flex: 1; }

.journey li:not(:last-child)::after {
    content: "";
    height: 1px;
    flex: 1;
    margin: 0 16px;
    background: var(--border);
}

.journey span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd3df;
    border-radius: 50%;
}

.journey .is-current { color: var(--navy-900); }

.journey .is-current span {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.journey--compact { margin: 0 auto 52px; }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 0;
}
.catalog-grid--1-columns { grid-template-columns: 1fr; }
.catalog-grid--3-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.catalog-content--scroll .catalog-list {
    max-height: min(720px, calc(100dvh - 190px));
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd3df transparent;
}

.test-choice {
    min-height: 292px;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 2.4vw, 32px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 13px 40px rgba(17, 24, 39, .055);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.catalog-grid--1-columns .test-choice {
    min-height: 188px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(22px, 3vw, 42px);
    padding: 30px 34px;
}

.catalog-grid--1-columns .test-choice h2 { margin-top: 0; }
.catalog-grid--1-columns .test-choice__footer { align-self: stretch; }

.test-choice:hover {
    transform: translateY(-3px);
    border-color: #bac4d2;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .085);
}

.test-choice__number {
    color: var(--brand);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .12em;
}

.test-choice h2 {
    margin: 20px 0 10px;
    color: var(--navy-950);
    font-size: clamp(24px, 2.2vw, 31px);
    line-height: 1.15;
    letter-spacing: -.03em;
}

.test-choice p {
    margin: 0;
    color: var(--muted);
}

.test-choice__meta {
    margin: auto 0 22px;
    padding-top: 24px;
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 13px;
}
.test-choice__meta small { margin-left: 4px; font-size: inherit; }

.test-choice__meta span + span::before {
    content: "•";
    margin-right: 22px;
    color: var(--brand);
}

.test-choice__footer {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.test-choice__footer .test-choice__meta { margin: 0; padding: 0; }
.test-choice form { margin: 0; }
.test-choice .button { align-self: flex-start; }

.catalog-empty {
    grid-area: tests;
    margin-top: 52px;
    padding: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.catalog-empty h2 { margin: 0; color: var(--navy-950); }
.catalog-empty p { color: var(--muted); }

.compact-header {
    width: min(var(--site-max), 100%);
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.intro-content {
    width: min(var(--content-max), 100%);
    margin: clamp(32px, 5vh, 68px) auto 28px;
    text-align: center;
}

.intro-heading { max-width: 1050px; margin: 0 auto; }
.intro-heading .eyebrow { justify-content: center; }
.intro-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(36px, 3.5vw, 56px);
    line-height: 1.07;
    letter-spacing: -.04em;
}

.intro-heading > p:last-child {
    max-width: 780px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: clamp(16px, 1.2vw, 18px);
}

.intro-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: clamp(30px, 4vh, 46px) auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}
.intro-rules li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 4px 16px;
}
.intro-rules li + li { border-left: 1px solid var(--border); }
.intro-rules svg { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px; color: var(--brand); }
.intro-rules span { display: grid; gap: 2px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.intro-rules strong { color: var(--navy-950); font-size: 15px; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
    margin-top: 76px;
}

.step { position: relative; padding: 0 28px; }
.step__number {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    margin: 0 auto 30px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: #fff;
    border: 1.5px solid #cdd4df;
    border-radius: 50%;
    font-size: 25px;
    font-weight: 620;
    font-variant-numeric: tabular-nums;
}

.step__line {
    position: absolute;
    top: 36px;
    left: calc(50% + 45px);
    width: calc(100% - 52px);
    height: 1px;
    background: #c9d0db;
}

.step > svg {
    width: 43px;
    height: 43px;
    margin: 0 auto 19px;
    color: var(--muted);
    stroke-width: 1.55;
}

.step h2 {
    margin: 0 0 10px;
    color: var(--navy-950);
    font-size: 21px;
}

.step p { max-width: 300px; margin: 0 auto; color: var(--muted); }

.intro-action {
    margin: clamp(28px, 4vh, 42px) auto 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.intro-action .button { min-width: 300px; min-height: 54px; }
.intro-action__time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.intro-action__time svg { width: 22px; height: 22px; }

/* Question */
.question-page { background: var(--soft); }

.test-shell {
    min-height: 100dvh;
    padding: 32px var(--site-gutter) 42px;
}

.test-header {
    width: min(var(--site-max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--brand-width) 1fr;
    gap: 24px;
    align-items: center;
}

.test-header > .brand { grid-column: 1; }

.test-progress { grid-column: 2; min-width: 0; }
.test-progress__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 620;
}

.timer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--navy-900);
    font-variant-numeric: tabular-nums;
}
.timer svg { width: 16px; height: 16px; }
.timer.is-low { color: #b27300; }
.timer.is-expired { color: var(--error); }

.progress-track {
    height: 3px;
    overflow: hidden;
    background: #d6dce5;
    border-radius: 10px;
}
.progress-track span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand);
    transform-origin: left center;
    transition: transform .28s var(--ease);
}

.question-card {
    width: min(1040px, 100%);
    margin: 24px auto 0;
    padding: clamp(28px, 3vw, 42px);
    background: #fff;
    border: 1px solid rgba(220,226,235,.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 44px rgba(17,24,39,.065);
    transition: opacity .18s ease, transform .18s ease;
}
.question-card.is-leaving { opacity: 0; transform: translateY(-10px); }
.question-card.is-entering { animation: question-in .26s var(--ease); }
@keyframes question-in { from { opacity: 0; transform: translateY(10px); } }

.repeat-badge {
    width: max-content;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}
.repeat-badge svg { width: 17px; height: 17px; }
.repeat-badge[hidden] { display: none; }

.question-copy h1 {
    max-width: 780px;
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(23px, 2.6vw, 32px);
    line-height: 1.3;
    letter-spacing: -.025em;
}
.question-hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.question-workspace {
    width: min(780px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.question-left-pane,
.question-right-pane,
.question-answer-pane { min-width: 0; }

.question-left-pane,
.question-right-pane { display: contents; }

.question-copy { order: 1; }
.question-image { order: 2; }
.question-answer-pane { order: 3; margin-top: 26px; }
.explanation { order: 4; }
.question-actions { order: 5; }

.question-image {
    width: 100%;
    max-height: 230px;
    margin: 22px 0 0;
    object-fit: contain;
    background: var(--soft);
    border-radius: 12px;
}
.question-image.is-hidden { display: none; }

.answers {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.answer-option {
    min-height: 58px;
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr 28px;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .18s, background-color .18s, color .18s, opacity .18s, box-shadow .18s;
}

.answer-option:hover { border-color: #aeb8c8; }
.answer-option:has(input:focus-visible) { outline: 3px solid rgba(227,30,36,.2); outline-offset: 2px; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }

.answer-option__key {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px solid #cdd4df;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 650;
}
.answer-option__text { font-size: 15px; font-weight: 520; }
.answer-option__state { width: 20px; height: 20px; }

.answer-option.is-selected {
    border-color: var(--navy-900);
    box-shadow: 0 0 0 1px var(--navy-900);
}
.answer-option.is-selected .answer-option__key { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }

.answer-option.is-correct {
    color: var(--success);
    background: var(--success-bg);
    border-color: var(--success-line);
    box-shadow: none;
}
.answer-option.is-correct .answer-option__key {
    color: #fff;
    background: var(--success);
    border-color: var(--success);
}
.answer-option.is-correct .answer-option__state::before {
    content: "";
    width: 13px;
    height: 7px;
    display: block;
    margin: 3px 0 0 1px;
    border: solid var(--success);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.answer-option.is-incorrect {
    color: var(--error);
    background: var(--error-bg);
    border-color: var(--error-line);
    box-shadow: none;
}
.answer-option.is-incorrect .answer-option__key {
    color: #fff;
    background: var(--error);
    border-color: var(--error);
}
.answer-option.is-incorrect .answer-option__state::before,
.answer-option.is-incorrect .answer-option__state::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 2px;
    margin-top: 9px;
    background: var(--error);
    transform: rotate(45deg);
}
.answer-option.is-incorrect .answer-option__state::after { transform: rotate(-45deg); }
.answer-option.is-muted { opacity: .55; }
.answer-option.is-locked { cursor: default; }

.explanation {
    margin: 22px 0 0;
    display: block;
    padding: 18px;
    color: var(--navy-900);
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    animation: reveal .2s ease-out;
}
.explanation[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; } }

.explanation .answer-note {
    width: max-content;
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.explanation .answer-note.is-correct { color: var(--success); }
.explanation .answer-note.is-incorrect { color: var(--error); }
.explanation strong { font-size: 17px; }
.explanation p { margin: 7px 0 0; font-size: 14px; line-height: 1.55; }
.explanation .answer-note + strong { display: block; }
.explanation img { max-height: 240px; margin-top: 14px; border-radius: 8px; }

.question-actions {
    width: 100%;
    min-height: 0;
    margin-top: 14px;
    display: block;
}
.answer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.answer-note.is-correct { color: var(--success); font-weight: 650; }
.question-actions .button {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}
.keyboard-hint {
    width: min(780px, 100%);
    margin: 12px auto 0;
    color: #8a94a7;
    font-size: 12px;
    text-align: right;
}
.test-error {
    width: min(1040px, 100%);
    margin: 12px auto 0;
    padding: 12px 16px;
    color: var(--error);
    background: var(--error-bg);
    border-radius: 9px;
}
.test-error[hidden] { display: none; }

/* Result */
.result-shell {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.result-shell .compact-header { position: relative; z-index: 2; }
.result-card {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
    margin: auto;
    padding: 32px 0 40px;
    text-align: center;
}
.result-mark {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 13px 32px rgba(227,30,36,.2);
}
.result-mark svg { width: 38px; height: 38px; }
.result-card .eyebrow { justify-content: center; }
.result-card h1 {
    max-width: 820px;
    margin: 0 auto;
    color: var(--navy-950);
    font-size: clamp(38px, 4.4vw, 56px);
    letter-spacing: -.04em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.result-card__lead { max-width: 650px; margin: 14px auto 0; color: var(--muted); font-size: 17px; }
.score {
    width: 168px;
    height: 168px;
    margin: 24px auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 40px;
    position: relative;
    color: var(--navy-950);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow);
    isolation: isolate;
}
.score::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 0;
    background: conic-gradient(from -90deg, var(--brand) var(--score), #e7ebf1 0);
    border-radius: 50%;
}
.score::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 1;
    background: #fff;
    border-radius: 50%;
}
.score strong { position: relative; z-index: 2; font-size: 50px; line-height: 1; }
.score > span { position: relative; z-index: 2; color: var(--muted); font-size: 25px; }
.score small { position: absolute; z-index: 2; bottom: 29px; color: var(--brand); font-weight: 700; }
.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto 24px;
    border-block: 1px solid var(--border);
}
.result-stats div { min-height: 68px; padding: 14px; display: grid; align-content: center; }
.result-stats div + div { border-left: 1px solid var(--border); }
.result-stats strong { color: var(--navy-950); font-size: 18px; }
.result-stats span { color: var(--muted); font-size: 13px; }
.result-followup {
    margin: 0 auto 20px;
    padding: 16px;
    text-align: left;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.result-followup--actions-only { padding: 10px; }
.result-followup__heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.result-followup__heading > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
}
.result-followup__heading svg { width: 20px; height: 20px; }
.result-followup h2 { margin: 0; color: var(--navy-950); font-size: 17px; }
.result-followup p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.result-followup__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.result-followup--actions-only .result-followup__actions { margin-top: 0; }
.result-followup__action {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid #ccd4df;
    border-radius: 8px;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.result-followup__action:hover { color: var(--brand); border-color: var(--brand); }
.result-followup__action svg { flex: 0 0 auto; width: 20px; height: 20px; }
.result-actions { display: flex; justify-content: center; gap: 12px; }
.result-home { margin-top: 14px; }
.result-resource-dialog {
    width: min(620px, calc(100% - 32px));
    max-height: min(78dvh, 760px);
    margin: auto;
    padding: 30px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 26px 80px rgba(17, 24, 39, .22);
}
.result-resource-dialog::backdrop { background: rgba(14, 23, 43, .58); }
.result-resource-dialog__close {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.result-resource-dialog__close:hover { color: var(--navy-950); background: var(--soft); }
.result-resource-dialog__close svg { width: 22px; height: 22px; }
.result-resource-dialog .eyebrow { margin-bottom: 16px; }
.result-resource-dialog h2 {
    max-width: calc(100% - 42px);
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.15;
}
.result-resource-dialog__content {
    max-height: 46dvh;
    margin: 20px 0 24px;
    padding-right: 8px;
    overflow-y: auto;
    color: var(--navy-900);
    line-height: 1.65;
    text-align: left;
    white-space: pre-wrap;
}

.celebration i {
    position: absolute;
    z-index: 1;
    top: -12px;
    left: calc((var(--n, 1) * 4.5%) - 3%);
    width: 6px;
    height: 16px;
    background: var(--brand);
    opacity: .75;
    animation: confetti 5.8s cubic-bezier(.15, .65, .35, 1) both;
}
.celebration i:nth-child(3n) { background: #2878d8; transform: rotate(40deg); }
.celebration i:nth-child(4n) { background: var(--warning); border-radius: 50%; height: 7px; }
.celebration i:nth-child(5n) { background: var(--success); }
.celebration i:nth-child(1) { --n:1; animation-delay:.1s }.celebration i:nth-child(2) { --n:2; animation-delay:.6s }
.celebration i:nth-child(3) { --n:3; animation-delay:.2s }.celebration i:nth-child(4) { --n:4; animation-delay:.9s }
.celebration i:nth-child(5) { --n:5; animation-delay:.4s }.celebration i:nth-child(6) { --n:6; animation-delay:1s }
.celebration i:nth-child(7) { --n:7; animation-delay:.25s }.celebration i:nth-child(8) { --n:8; animation-delay:.8s }
.celebration i:nth-child(9) { --n:9; animation-delay:.15s }.celebration i:nth-child(10) { --n:10; animation-delay:.55s }
.celebration i:nth-child(11) { --n:11; animation-delay:.35s }.celebration i:nth-child(12) { --n:12; animation-delay:.95s }
.celebration i:nth-child(13) { --n:13; animation-delay:.05s }.celebration i:nth-child(14) { --n:14; animation-delay:.75s }
.celebration i:nth-child(15) { --n:15; animation-delay:.3s }.celebration i:nth-child(16) { --n:16; animation-delay:.85s }
.celebration i:nth-child(17) { --n:17; animation-delay:.45s }.celebration i:nth-child(18) { --n:18; animation-delay:.7s }
.celebration i:nth-child(19) { --n:19; animation-delay:.2s }.celebration i:nth-child(20) { --n:20; animation-delay:.65s }
.celebration i:nth-child(21) { --n:21; animation-delay:.4s }.celebration i:nth-child(22) { --n:22; animation-delay:.9s }
@keyframes confetti { to { top: 105%; transform: rotate(440deg) translateX(45px); } }

/* Review and errors */
.review-content { width: min(1040px, 100%); margin: 70px auto; }
.review-content h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.review-lead { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.review-list { display: grid; gap: 12px; margin: 38px 0 0; padding: 0; list-style: none; }

.review-question {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.review-question[open] {
    border-color: #c7d0dc;
    box-shadow: 0 14px 38px rgba(17, 24, 39, .065);
}
.review-question summary {
    min-height: 84px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 24px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.review-question summary::-webkit-details-marker { display: none; }
.review-question summary:hover { background: #fafbfc; }
.review-question summary:focus-visible {
    outline: 3px solid rgba(227, 30, 36, .28);
    outline-offset: -3px;
}
.review-question__number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--navy-900);
    background: var(--soft);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.review-question__heading { min-width: 0; }
.review-question__heading strong {
    display: block;
    color: var(--navy-950);
    font-size: 16px;
    line-height: 1.4;
}
.review-question__heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.review-question__status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.review-question--correct .review-question__status {
    color: var(--success);
    background: var(--success-bg);
}
.review-question--recovered .review-question__status {
    color: #8a5a00;
    background: #fff7df;
}
.review-question--wrong .review-question__status {
    color: var(--error);
    background: var(--error-bg);
}
.review-question--unanswered .review-question__status {
    color: var(--muted);
    background: var(--soft);
}
.review-question__chevron {
    width: 20px;
    height: 20px;
    color: var(--muted);
    transition: transform .2s var(--ease);
}
.review-question[open] .review-question__chevron { transform: rotate(180deg); }

.review-question__body {
    padding: 24px 24px 28px 82px;
    border-top: 1px solid var(--border);
}
.review-question__image {
    width: 100%;
    max-height: 320px;
    margin-bottom: 20px;
    object-fit: contain;
    background: var(--soft);
    border-radius: 10px;
}
.review-options { display: grid; gap: 8px; }
.review-option {
    min-height: 52px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.review-option__key {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px solid #d3dae4;
    border-radius: 50%;
    font-size: 12px;
}
.review-option__text { min-width: 0; color: var(--navy-900); font-size: 14px; }
.review-option__labels { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.review-option__label {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.review-option.is-correct {
    background: var(--success-bg);
    border-color: #b8dec7;
}
.review-option.is-correct .review-option__key {
    color: var(--success);
    border-color: #8fc8a7;
}
.review-option.was-selected:not(.is-correct) {
    background: var(--error-bg);
    border-color: #f0b7bb;
}
.review-option.was-selected:not(.is-correct) .review-option__key {
    color: var(--error);
    border-color: #e5969b;
}
.review-option__label--correct { color: var(--success); background: #ddf1e4; }
.review-option__label--selected { color: var(--error); background: #fbdde0; }

.review-question__progress {
    margin: 16px 0 0;
    padding: 10px 13px;
    color: #74500c;
    background: #fff9e8;
    border-radius: 9px;
    font-size: 13px;
}
.review-explanation {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 13px;
    padding: 17px 18px;
    color: var(--navy-900);
    background: #f7f8fa;
    border-left: 3px solid #cbd3df;
    border-radius: 0 10px 10px 0;
}
.review-explanation__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
}
.review-explanation__icon svg { width: 21px; height: 21px; }
.review-explanation strong { color: var(--navy-950); font-size: 14px; }
.review-explanation p { margin: 5px 0 0; font-size: 14px; line-height: 1.6; }
.review-explanation img {
    width: 100%;
    max-height: 280px;
    margin-top: 14px;
    object-fit: contain;
    border-radius: 8px;
}

.error-page {
    width: min(var(--content-max), 100%);
    min-height: calc(100dvh - 124px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    text-align: center;
}
.error-page .eyebrow { justify-content: center; }
.error-page h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); }
.error-page > p:not(.eyebrow) { color: var(--muted); }
.error-page .button { margin-top: 14px; }

@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; }
    .hero__content { max-width: 650px; }
    .hero__visual { inset-left: 35%; opacity: .7; }
    .hero__visual > img { object-position: 72% center; }
    .hero__caption { display: none; }
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
        grid-template-areas:
            "heading guide"
            "tests tests";
        grid-template-rows: auto auto;
        gap: 42px 48px;
    }
    .catalog-guide { max-width: none; margin-top: 42px; }
}

@media (min-width: 821px) and (max-height: 1000px) {
    .catalog-shell,
    .intro-shell { padding-bottom: 16px; }

    .catalog-content { margin: 30px auto 0; }
    .catalog-heading h1 { font-size: 56px; }
    .catalog-heading > p:last-child { margin-top: 12px; font-size: 17px; }
    .catalog-list { margin-top: 24px; }
    .catalog-grid--1-columns .test-choice { min-height: 168px; padding-block: 24px; }
    .catalog-guide { margin-top: 32px; padding-top: 22px; }
    .intro-content { margin: 26px auto 0; }
    .intro-heading h1 { font-size: clamp(36px, 3vw, 48px); }
    .intro-rules { margin-top: 26px; }
    .intro-action { margin-top: 26px; }

    .catalog-content--dense { margin-top: 38px; }
    .catalog-content--dense .catalog-heading h1 { font-size: 56px; }
    .catalog-content--dense .catalog-heading > p:last-child { margin-top: 14px; font-size: 17px; }
    .catalog-content--dense .catalog-grid { margin-top: 0; }
    .catalog-content--dense .test-choice { min-height: 242px; padding: 20px 22px; }
    .catalog-content--dense .test-choice h2 {
        max-height: 2.3em;
        margin-top: 11px;
        overflow: hidden;
        font-size: 24px;
    }
    .catalog-content--dense .test-choice p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .catalog-content--dense .test-choice__meta { padding-top: 12px; margin-bottom: 12px; }
    .catalog-content--dense .test-choice .button { min-height: 42px; padding: 9px 15px; font-size: 14px; }
}

@media (min-width: 821px) and (max-height: 1100px) {
    .result-shell { padding-block: 24px; }
    .result-card { padding: 14px 0 20px; }
    .result-mark {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
    }
    .result-mark svg { width: 30px; height: 30px; }
    .result-card h1 { font-size: clamp(38px, 3.5vw, 50px); }
    .result-card__lead {
        max-width: 560px;
        margin-top: 12px;
        font-size: 16px;
    }
    .score {
        width: 144px;
        height: 144px;
        margin: 18px auto;
        padding-top: 33px;
    }
    .score strong { font-size: 42px; }
    .score > span { font-size: 21px; }
    .score small { bottom: 23px; font-size: 13px; }
    .result-stats { margin-bottom: 18px; }
    .result-stats div { padding: 12px 10px; }
    .result-stats strong { font-size: 16px; }
    .result-followup { margin-bottom: 14px; padding: 12px; }
    .result-followup--actions-only { padding: 8px; }
    .result-followup__actions { margin-top: 10px; }
    .result-followup__action { min-height: 44px; padding-block: 8px; }
    .result-home { margin-top: 8px; }
}

@media (max-width: 900px) {
    .question-answer-pane { margin-top: 22px; }
}

@media (max-width: 820px) {
    .hero-shell { padding: 24px var(--site-gutter); min-height: auto; }
    .landing-header__note { display: none; }
    .hero { min-height: auto; display: block; }
    .hero__content { padding: 66px 0 34px; }
    .hero h1 { font-size: clamp(42px, 10vw, 64px); }
    .hero__visual {
        position: relative;
        inset: auto;
        height: 520px;
        margin: -40px -24px 0;
    }
    .hero__visual > img {
        object-position: 65% center;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%);
        mask-image: linear-gradient(180deg, transparent 0, #000 20%);
    }
    .hero__brand-mark { right: -4%; bottom: 2%; width: 280px; }
    .hero__facts { gap: 28px; }
    .confidence-grid { grid-template-columns: 1fr; }
    .confidence-grid article,
    .confidence-grid article:first-child,
    .confidence-grid article:last-child { padding-inline: 0; }
    .confidence-grid article + article { border-top: 1px solid var(--border); }
    .catalog-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "tests"
            "guide";
        gap: 34px;
    }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-grid--1-columns .test-choice {
        min-height: 300px;
        display: flex;
        align-items: stretch;
        gap: 0;
        padding: 26px;
    }
    .catalog-grid--1-columns .test-choice h2 { margin-top: 20px; }
    .catalog-grid--1-columns .test-choice__meta {
        margin: auto 0 22px;
        padding-top: 24px;
        flex-direction: row;
        gap: 22px;
    }
    .catalog-grid--1-columns .test-choice__meta span + span::before { display: inline; }
    .catalog-grid--1-columns .test-choice form { justify-self: auto; }
    .catalog-guide { margin-top: 36px; padding-top: 26px; }
    .catalog-guide ol { grid-template-columns: 1fr; max-width: 540px; }
    .catalog-guide li { min-height: 0; padding: 13px 0; }
    .catalog-guide li + li { border-top: 1px solid var(--border); border-left: 0; }
    .intro-rules { grid-template-columns: 1fr; max-width: 540px; gap: 14px; text-align: left; }
    .intro-rules li { padding: 0; }
    .intro-rules li + li { padding-top: 14px; border-top: 1px solid var(--border); border-left: 0; }
    .intro-action { flex-direction: column; }
    .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 50px; text-align: left; }
    .step { display: grid; grid-template-columns: 66px 1fr; column-gap: 18px; padding: 0; }
    .step__number { grid-row: 1 / 4; width: 58px; height: 58px; margin: 0; font-size: 20px; }
    .step__line { display: none; }
    .step > svg { display: none; }
    .step h2 { grid-column: 2; margin-top: 4px; }
    .step p { grid-column: 2; margin: 0; }
    .intro-action__time { position: static; }
    .test-header { grid-template-columns: var(--brand-width) 1fr; gap: 14px; }
    .question-card { margin-top: 24px; }
}

@media (max-width: 600px) {
    :root {
        --site-gutter: 16px;
        --brand-width: 154px;
    }
    html { scrollbar-gutter: auto; }
    .brand img { width: var(--brand-width); }
    .compact-header { align-items: flex-start; }
    .compact-header .text-link { min-height: 44px; font-size: 13px; }
    .eyebrow { font-size: 11px; line-height: 1.35; letter-spacing: .13em; }

    .hero-shell { padding: 14px var(--site-gutter) 24px; }
    .hero__content { padding: 36px 0 22px; }
    .hero h1 { font-size: clamp(34px, 10vw, 43px); line-height: 1.02; letter-spacing: -.045em; }
    .hero__lead { margin-top: 18px; font-size: 16px; line-height: 1.48; }
    .hero__facts { display: grid; gap: 12px; margin: 22px 0; }
    .hero-fact { gap: 10px; }
    .hero-fact svg { width: 23px; height: 23px; }
    .hero-fact span { font-size: 13px; line-height: 1.4; }
    .hero-fact strong { font-size: 14px; }
    .button--hero { width: 100%; min-width: 0; }
    .hero__microcopy { display: none; }
    .hero__visual { height: 340px; margin: -10px -16px 0; }

    .catalog-shell, .intro-shell, .review-shell, .result-shell, .error-shell {
        padding: 14px var(--site-gutter) calc(28px + env(safe-area-inset-bottom));
    }
    .catalog-content { margin-top: 32px; }
    .catalog-layout { gap: 24px; }
    .catalog-heading h1 { font-size: 36px; }
    .catalog-heading > p:last-child { margin-top: 12px; font-size: 15px; }
    .catalog-list { margin-top: 22px; }
    .test-choice,
    .catalog-grid--1-columns .test-choice {
        min-height: 0;
        padding: 18px;
    }
    .test-choice h2,
    .catalog-grid--1-columns .test-choice h2 { margin-top: 12px; font-size: 23px; }
    .test-choice p { font-size: 14px; }
    .test-choice__footer,
    .catalog-grid--1-columns .test-choice__footer {
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        overflow: visible;
        background: transparent;
        border: 0;
        border-top: 1px solid var(--border);
        border-radius: 0;
    }
    .test-choice__footer .test-choice__meta,
    .catalog-grid--1-columns .test-choice__footer .test-choice__meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        color: var(--navy-900);
        border: 0;
        border-radius: 0;
        line-height: 1.35;
        white-space: nowrap;
    }
    .test-choice__footer .test-choice__meta span {
        display: grid;
        gap: 1px;
        padding: 0 6px;
        text-align: center;
    }
    .test-choice__footer .test-choice__meta strong {
        color: var(--navy-950);
        font-size: 14px;
        line-height: 1.1;
    }
    .test-choice__footer .test-choice__meta small {
        margin-left: 0;
        color: var(--muted);
        font-size: 10px;
        font-weight: 520;
    }
    .test-choice__footer .test-choice__meta span + span {
        border-left: 1px solid var(--border);
    }
    .test-choice__footer .test-choice__meta span + span::before,
    .catalog-grid--1-columns .test-choice__footer .test-choice__meta span + span::before {
        display: none;
    }
    .test-choice__footer form { border: 0; }
    .test-choice__footer .button {
        width: auto;
        min-height: 44px;
        margin: 0;
        padding: 10px 14px;
        border-radius: 9px;
        font-size: 13px;
    }
    .catalog-guide { margin-top: 22px; padding-top: 20px; }
    .journey { align-items: flex-start; font-size: 11px; }
    .journey li { display: grid; justify-items: center; text-align: center; white-space: normal; }
    .journey li:not(:last-child)::after {
        grid-column: 2;
        grid-row: 1;
        width: 38px;
        margin: 14px 5px 0;
    }
    .journey span { grid-column: 1; margin: 0 auto 5px; }
    .confidence-section { padding-block: 48px 38px; }
    .confidence-section__heading h2 { font-size: 34px; }
    .confidence-grid { margin-top: 34px; }
    .confidence-grid article { padding-block: 22px; }
    .confidence-statement { margin-top: 36px; font-size: 22px; }
    .landing-footer { flex-direction: column; }
    .intro-content { margin-top: 26px; }
    .intro-heading h1 { font-size: clamp(30px, 9vw, 39px); }
    .intro-heading > p:last-child { margin-top: 14px; font-size: 15px; line-height: 1.5; }
    .intro-rules { margin-top: 24px; }
    .intro-rules li + li { padding-top: 11px; }
    .intro-rules strong { font-size: 14px; }
    .intro-rules span { font-size: 13px; }
    .intro-action { margin-top: 24px; gap: 10px; }
    .intro-action .button { width: 100%; min-width: 0; }
    .test-shell { padding: 12px var(--site-gutter) calc(30px + env(safe-area-inset-bottom)); }
    .test-header { grid-template-columns: 1fr; gap: 10px; }
    .test-progress { grid-column: 1; }
    .test-progress__meta { margin-bottom: 6px; }
    .question-card { margin-top: 16px; padding: 18px 12px; border-radius: 14px; }
    .question-copy h1 { font-size: 22px; line-height: 1.22; }
    .question-hint { margin-top: 7px; font-size: 13px; line-height: 1.4; }
    .question-answer-pane { margin-top: 17px; }
    .answers { gap: 8px; }
    .answer-option {
        min-height: 52px;
        grid-template-columns: 28px minmax(0, 1fr) 21px;
        gap: 8px;
        padding: 8px 10px;
    }
    .answer-option__key { width: 26px; height: 26px; }
    .answer-option__text { font-size: 14px; line-height: 1.35; }
    .explanation {
        margin-top: 14px;
        padding: 15px;
    }
    .explanation .answer-note {
        min-height: 0;
        width: max-content;
        margin: 0 0 8px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        font-size: 10px;
    }
    .explanation strong { display: block; font-size: 16px; }
    .explanation p { margin-top: 6px; font-size: 13px; line-height: 1.48; }
    .question-actions {
        width: 100%;
        align-self: stretch;
        min-height: 0;
        position: static;
        display: grid;
        gap: 10px;
        margin: 12px 0 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        scroll-margin-bottom: 112px;
    }
    .answer-note { max-width: none; }
    .question-actions .button {
        width: 100% !important;
        max-width: none;
        min-width: 0;
        min-height: 52px;
        margin: 0;
        justify-self: stretch;
    }
    .keyboard-hint { display: none; }
    .result-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .result-stats div { padding-inline: 6px; }
    .result-stats div + div { border-left: 1px solid var(--border); border-top: 0; }
    .result-stats strong { font-size: 14px; }
    .result-stats span { font-size: 10px; line-height: 1.25; }
    .result-actions { flex-direction: column; }
    .result-actions form, .result-actions .button { width: 100%; }
    .result-followup { margin-bottom: 16px; padding: 12px; }
    .result-followup--actions-only { padding: 8px; }
    .result-followup__actions { grid-template-columns: 1fr; }
    .result-resource-dialog { padding: 24px 18px 20px; }
    .result-resource-dialog__close { top: 8px; right: 8px; }
    .result-resource-dialog__content { max-height: 48dvh; }
    .result-resource-dialog .button { width: 100%; }
    .result-card { padding: 24px 0 18px; }
    .result-card h1 { font-size: clamp(34px, 10vw, 43px); }
    .result-card__lead { margin-top: 10px; font-size: 15px; }
    .result-mark { width: 52px; height: 52px; margin-bottom: 14px; }
    .result-mark svg { width: 28px; height: 28px; }
    .score {
        width: 148px;
        height: 148px;
        margin: 18px auto;
        padding-top: 34px;
    }
    .score strong { font-size: 43px; }
    .score > span { font-size: 21px; }
    .score small { bottom: 25px; }
    .review-content { margin-top: 32px; }
    .review-content h1 { font-size: 36px; }
    .review-lead { margin-top: 10px; font-size: 15px; }
    .review-question summary {
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        gap: 12px;
        padding: 14px;
    }
    .review-question__status {
        grid-column: 2;
        width: max-content;
        margin-top: -4px;
    }
    .review-question__chevron { grid-column: 3; grid-row: 1 / 3; }
    .review-question__body { padding: 20px 16px 22px; }
    .review-option {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
    }
    .review-option__labels {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .celebration { display: none; }
}
