:root {
    --ink: #0b1220;
    --navy: #0f1e39;
    --navy-2: #132447;
    --cyan: #22d3ee;
    --teal: #14b8a6;
    --teal-dark: #0e7490;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-dark: rgba(148, 163, 184, .22);
    --bg: #ffffff;
    --soft: #f6f9fc;
    --soft-2: #eef5f9;
    --white: #ffffff;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 24px 60px -30px rgba(15, 30, 57, .35);
    --shadow-soft: 0 12px 30px -18px rgba(15, 30, 57, .28);
    --container: 1160px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 0 0 .55em;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.15rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.55rem);
}

h3 {
    font-size: 1.16rem;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--teal-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ink);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

strong {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.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: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    background: var(--ink);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 8px;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
    color: var(--white);
}

.mono {
    font-family: var(--mono);
    font-size: .9em;
}

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

.gradient-text {
    background: linear-gradient(100deg, var(--cyan), #7dd3fc 45%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(120deg, var(--teal-dark), var(--teal));
    color: var(--white);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.2;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 12px 26px -14px rgba(14, 116, 144, .8);
}

.button:hover {
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -16px rgba(14, 116, 144, .9);
}

.button:active {
    transform: translateY(0);
}

.button--ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(11, 18, 32, .2);
    box-shadow: none;
}

.button--ghost:hover {
    color: var(--ink);
    background: rgba(11, 18, 32, .04);
    box-shadow: none;
}

.button--light {
    background: var(--white);
    color: var(--ink);
    box-shadow: none;
}

.button--light:hover {
    color: var(--ink);
    background: #e6fffb;
}

.button--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .45);
    box-shadow: none;
}

.button--outline-light:hover {
    color: var(--ink);
    background: var(--white);
}

.button--small {
    padding: 10px 16px;
    font-size: .9rem;
}

.button--full {
    width: 100%;
}

.button__arrow {
    font-size: 1.1em;
    transition: transform .18s ease;
}

.button:hover .button__arrow {
    transform: translateX(3px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
    color: var(--teal-dark);
}

.text-link:hover {
    text-decoration: underline;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px -22px rgba(15, 30, 57, .45);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.13rem;
    text-decoration: none;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.brand em {
    color: var(--teal-dark);
    font-style: normal;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: .95rem;
    font-weight: 600;
}

.primary-nav > a:not(.button) {
    color: var(--text);
    text-decoration: none;
}

.primary-nav > a:not(.button):hover {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    padding: 11px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 104px) 0 clamp(50px, 7vw, 88px);
    background:
        radial-gradient(1100px 520px at 82% -10%, rgba(34, 211, 238, .16), transparent 60%),
        radial-gradient(800px 480px at 8% 20%, rgba(20, 184, 166, .12), transparent 65%),
        linear-gradient(180deg, #fbfdff, #ffffff 70%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 30, 57, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 30, 57, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 72%);
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: 40px;
    background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cyan);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow--dark {
    color: var(--teal-dark);
}

.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, .55);
    animation: pulse 2.2s infinite;
}

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.18rem);
    color: #475569;
    max-width: 62ch;
}

.hero .lead {
    max-width: 56ch;
    margin-bottom: 28px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
}

.hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tick {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(20, 184, 166, .15);
    position: relative;
    flex: none;
}

.tick::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid var(--teal-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tick--dark {
    background: rgba(34, 211, 238, .16);
}

.tick--dark::after {
    border-color: var(--cyan);
}

/* Hero visual */

.hero__visual {
    position: relative;
    padding: 20px 0;
}

.scan-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(160deg, #ffffff, #f4fbfd);
    border: 1px solid rgba(15, 30, 57, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    max-width: 430px;
    margin-inline: auto;
}

.scan-card__head,
.scan-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.scan-card__score {
    position: relative;
    width: 150px;
    margin: 24px auto 18px;
}

.scan-card__track {
    stroke: #e6eef4;
}

.scan-card__progress {
    stroke: url(#none);
    stroke: var(--teal);
    animation: draw 1.6s ease both;
}

.scan-card__score-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.scan-card__score-label strong {
    font-size: 2.2rem;
    line-height: 1;
    color: var(--ink);
}

.scan-card__score-label span {
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.scan-list {
    display: grid;
    gap: 2px;
    font-size: .9rem;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.scan-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    color: var(--text);
}

.scan-list li strong {
    margin-left: auto;
    font-size: .82rem;
    color: var(--ink);
}

.scan-list__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}

.scan-list__dot--ok { background: var(--green); }
.scan-list__dot--warn { background: var(--amber); }
.scan-list__dot--bad { background: var(--red); }

.scan-card__foot {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.badge--ok {
    background: rgba(16, 185, 129, .13);
    color: #047857;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 30, 57, .09);
    border-radius: 14px;
    padding: 11px 14px;
    box-shadow: var(--shadow-soft);
    animation: float 7s ease-in-out infinite;
}

.floating-card strong {
    display: block;
    font-size: .82rem;
    line-height: 1.2;
}

.floating-card span:not(.floating-card__icon) {
    display: block;
    font-size: .72rem;
    color: var(--muted);
}

.floating-card--one {
    left: -22px;
    bottom: 54px;
}

.floating-card--two {
    right: -18px;
    top: 36px;
    animation-delay: -3.2s;
}

.floating-card__icon {
    display: grid;
    place-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
    font-weight: 900;
    flex: none;
}

.floating-card__icon--ok {
    background: rgba(16, 185, 129, .14);
    color: #047857;
}

.trust-strip {
    border-block: 1px solid var(--line);
    background: var(--white);
}

.trust-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    flex-wrap: wrap;
}

.trust-strip p {
    margin: 0;
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.trust-strip ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
}

/* Sections */

.section {
    padding: clamp(58px, 8vw, 96px) 0;
}

.section--tight {
    padding: clamp(38px, 5vw, 62px) 0 clamp(58px, 7vw, 84px);
}

.section--light {
    background: var(--soft);
    border-block: 1px solid rgba(226, 232, 240, .8);
}

.section--dark {
    background:
        radial-gradient(800px 400px at 85% 0%, rgba(34, 211, 238, .14), transparent 60%),
        var(--ink);
    color: #cbd5e1;
}

.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section--dark .muted {
    color: #94a3b8;
}

.section-heading {
    max-width: 720px;
    margin-bottom: clamp(30px, 4vw, 48px);
}

.section-heading p {
    color: var(--muted);
    margin-bottom: 0;
}

.section--dark .section-heading p {
    color: #94a3b8;
}

.section-gap {
    margin-top: 46px;
}

.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.info-card,
.panel,
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.service-card {
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card p {
    color: var(--muted);
}

.icon-tile {
    display: grid;
    place-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(34, 211, 238, .18), rgba(20, 184, 166, .16));
    margin-bottom: 20px;
}

.icon-tile svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--teal-dark);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-tile--teal {
    background: linear-gradient(140deg, rgba(20, 184, 166, .2), rgba(34, 211, 238, .14));
}

.check-list {
    display: grid;
    gap: 9px;
    margin: 16px 0 22px;
    font-size: .93rem;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    color: var(--text);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 14px;
    height: 8px;
    border: solid var(--teal);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.service-card .text-link {
    margin-top: auto;
}

.info-card {
    padding: 26px;
}

.info-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    counter-reset: step;
}

.steps li {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.step-number {
    display: inline-block;
    font-family: var(--mono);
    color: var(--teal-dark);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .1em;
    margin-bottom: 14px;
}

.steps p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: .94rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.split--top {
    align-items: start;
}

.split h2 {
    margin-top: 4px;
}

.split p {
    color: var(--muted);
}

.section--dark .check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.check-grid > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    padding: 15px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    font-size: .88rem;
}

.check-grid .tick {
    grid-row: span 2;
    margin-top: 3px;
}

.check-grid strong {
    color: var(--white);
}

.check-grid span:last-child {
    color: #94a3b8;
    font-size: .82rem;
}

.faq {
    max-width: 880px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.03rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--teal-dark);
    font-size: 1.3rem;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    color: var(--muted);
    margin: 10px 0 0;
    max-width: 70ch;
}

.cta-band {
    background: linear-gradient(120deg, var(--navy), var(--ink) 55%, #0c2b3a);
    color: #cbd5e1;
    padding: clamp(40px, 6vw, 62px) 0;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 6px;
}

.cta-band p {
    margin: 0;
    color: #94a3b8;
}

.cta-band a:not(.button) {
    color: var(--cyan);
}

.cta-band__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Page and tool heroes */

.page-hero {
    background:
        radial-gradient(900px 420px at 85% -20%, rgba(34, 211, 238, .16), transparent 65%),
        linear-gradient(180deg, #fbfdff, #ffffff);
    border-bottom: 1px solid var(--line);
    padding: clamp(50px, 7vw, 84px) 0 clamp(42px, 6vw, 70px);
}

.page-hero--compact {
    padding: clamp(42px, 6vw, 64px) 0 clamp(34px, 4vw, 48px);
}

.page-hero__inner {
    max-width: 820px;
}

.page-hero .lead {
    margin-bottom: 22px;
}

.tool-hero {
    background:
        radial-gradient(760px 360px at 15% -20%, rgba(34, 211, 238, .18), transparent 60%),
        var(--ink);
    color: #cbd5e1;
    padding: clamp(44px, 6vw, 72px) 0 clamp(40px, 5vw, 58px);
}

.tool-hero--teal {
    background:
        radial-gradient(760px 360px at 15% -20%, rgba(20, 184, 166, .2), transparent 60%),
        var(--navy);
}

.tool-hero h1 {
    color: var(--white);
    margin-bottom: 12px;
}

.tool-hero .lead {
    color: #cbd5e1;
    margin-bottom: 0;
}

.tool-hero .eyebrow {
    color: var(--cyan);
}

.tool-hero--teal .eyebrow {
    color: #5eead4;
}

/* Tool layout and forms */

.tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.form-card {
    padding: clamp(24px, 3.4vw, 40px);
}

.form-card h2 {
    margin-bottom: 8px;
}

.form-card > .muted {
    margin-bottom: 24px;
    font-size: .94rem;
}

.form {
    display: grid;
    gap: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-weight: 700;
    font-size: .87rem;
    color: var(--ink);
}

.field input,
.consent-form input[type="text"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: var(--white);
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder {
    color: #94a3b8;
}

.field input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
}

.field input.input-validation-error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.field-error {
    color: #b91c1c;
    font-size: .8rem;
    min-height: 0;
}

.field-error:empty {
    display: none;
}

.hint {
    color: var(--muted);
    font-size: .79rem;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: .89rem;
    color: var(--text);
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--teal-dark);
    flex: none;
}

.check--accent {
    background: rgba(20, 184, 166, .06);
    border: 1px solid rgba(20, 184, 166, .22);
    border-radius: 10px;
    padding: 12px 14px;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.validation-summary {
    border: 1px solid rgba(239, 68, 68, .3);
    background: #fef2f2;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .88rem;
}

.validation-summary ul {
    display: grid;
    gap: 4px;
    margin: 0;
}

.form-note {
    margin: 0;
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
}

.tool-aside {
    display: grid;
    gap: 18px;
}

.panel {
    padding: 24px;
}

.panel h3 {
    margin-bottom: 10px;
}

.panel p:last-child {
    margin-bottom: 0;
}

.panel--accent {
    background: linear-gradient(150deg, #ecfeff, #f0fdfa);
    border-color: rgba(20, 184, 166, .22);
}

.panel--light {
    background: var(--white);
}

/* Results */

.result-hero {
    background:
        radial-gradient(900px 420px at 85% -20%, rgba(34, 211, 238, .14), transparent 60%),
        linear-gradient(180deg, #fbfdff, #ffffff);
    border-bottom: 1px solid var(--line);
    padding: clamp(30px, 4vw, 48px) 0 clamp(28px, 4vw, 44px);
}

.back-link {
    display: inline-block;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
    color: var(--muted);
}

.back-link:hover {
    color: var(--ink);
}

.result-hero__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.result-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    overflow-wrap: anywhere;
}

.result-hero .lead {
    margin-bottom: 16px;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: 14px;
}

.result-score {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.score-ring {
    position: relative;
    width: 156px;
    height: 156px;
}

.score-ring svg {
    width: 100%;
    height: 100%;
}

.score-ring__track {
    stroke: #e6eef4;
}

.score-ring__progress {
    stroke: var(--green);
    animation: draw 1.4s ease both;
}

.score-ring--c .score-ring__progress {
    stroke: var(--amber);
}

.score-ring--f .score-ring__progress {
    stroke: var(--red);
}

.score-ring__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.score-ring__label strong {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--ink);
}

.score-ring__label span {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.result-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 320px;
}

.count {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.count--critical,
.severity--critical {
    background: #fee2e2;
    color: #b91c1c;
}

.count--high,
.severity--high {
    background: #ffedd5;
    color: #c2410c;
}

.count--medium,
.severity--medium {
    background: #fef3c7;
    color: #a16207;
}

.count--low,
.severity--low {
    background: #dbeafe;
    color: #1d4ed8;
}

.count--pass,
.severity--pass,
.severity--info {
    background: #dcfce7;
    color: #047857;
}

.severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    flex: none;
}

.result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.result-aside {
    display: grid;
    gap: 18px;
}

.findings {
    display: grid;
    gap: 9px;
}

.finding {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.finding summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    list-style: none;
}

.finding summary::-webkit-details-marker {
    display: none;
}

.finding summary::after {
    content: "+";
    margin-left: auto;
    color: var(--muted);
    font-size: 1.2rem;
    flex: none;
}

.finding[open] summary::after {
    content: "–";
}

.finding__title {
    font-weight: 700;
    color: var(--ink);
    font-size: .93rem;
}

.finding__category {
    margin-left: auto;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.finding__body {
    padding: 0 16px 15px 16px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.finding__body p {
    margin-bottom: 8px;
    font-size: .89rem;
    color: var(--muted);
}

.finding__fix {
    color: var(--text) !important;
}

.finding--critical {
    border-left: 3px solid var(--red);
}

.finding--high {
    border-left: 3px solid #f97316;
}

.finding--medium {
    border-left: 3px solid var(--amber);
}

.finding--low {
    border-left: 3px solid #3b82f6;
}

.finding--pass {
    border-left: 3px solid var(--green);
}

.detail-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 14px;
    margin: 0;
    font-size: .86rem;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 600;
}

.detail-list dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    margin: 14px 0 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
    min-width: 560px;
}

th,
td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    background: var(--soft);
    font-size: .73rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

/* Legal prose */

.prose {
    max-width: 820px;
}

.prose h2 {
    margin-top: 34px;
    font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.prose ul li {
    position: relative;
    padding-left: 22px;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: .58em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.consent-form {
    display: grid;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    max-width: 640px;
}

.cookie-option {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}

.cookie-option:last-of-type {
    border-bottom: 0;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cookie-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--teal-dark);
    flex: none;
}

.cookie-option span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.consent-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

/* Flash */

.flash {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .9rem;
    font-weight: 600;
    margin-top: 18px;
    border: 1px solid transparent;
}

.flash--ok {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, .25);
    color: #047857;
}

.flash--warn {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, .3);
    color: #92400e;
}

.container.flash {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Cookie banner */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    max-width: 980px;
    margin-inline: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    background: rgba(11, 18, 32, .97);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .65);
    animation: slideUp .35s ease both;
}

.cookie-banner__body {
    max-width: 640px;
}

.cookie-banner h2 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 6px;
}

.cookie-banner p {
    font-size: .81rem;
    margin: 0;
    color: #94a3b8;
}

.cookie-banner a {
    color: var(--cyan);
}

.cookie-banner__manage {
    margin-top: 8px;
    font-size: .8rem;
}

.cookie-banner__manage summary {
    cursor: pointer;
    color: var(--cyan);
    font-weight: 700;
    list-style: none;
}

.cookie-banner__manage summary::-webkit-details-marker {
    display: none;
}

.cookie-banner .cookie-option {
    border-color: rgba(148, 163, 184, .18);
    color: #cbd5e1;
}

.cookie-banner .cookie-option span {
    color: #94a3b8;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: none;
}

.cookie-banner__actions .button--ghost {
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, .3);
}

.cookie-banner__actions .button--ghost:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--white);
}

/* Footer */

.site-footer {
    background: #080f1b;
    color: #94a3b8;
    padding: clamp(44px, 6vw, 66px) 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.site-footer .brand {
    color: var(--white);
}

.site-footer .brand em {
    color: var(--cyan);
}

.footer-brand p {
    max-width: 40ch;
    font-size: .88rem;
    margin-top: 14px;
}

.footer-brand a:not(.brand) {
    color: var(--cyan);
}

.site-footer h2 {
    color: var(--white);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    font-size: .88rem;
}

.site-footer ul a {
    color: #cbd5e1;
    text-decoration: none;
}

.site-footer ul a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 20px;
    font-size: .77rem;
    color: #64748b;
}

.footer-bottom p {
    margin: 0;
}

/* Animations */

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .45); }
    70% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes draw {
    from { stroke-dasharray: 0 100; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */

@media (max-width: 980px) {
    .hero__grid,
    .split,
    .tool-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        max-width: 460px;
        margin-inline: auto;
        width: 100%;
    }

    .result-hero__grid {
        grid-template-columns: 1fr;
    }

    .result-score {
        justify-items: start;
    }

    .result-counts {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .primary-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 22px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -30px rgba(15, 30, 57, .45);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav > a:not(.button) {
        padding: 10px 4px;
        border-bottom: 1px solid var(--line);
    }

    .primary-nav .button {
        margin-top: 10px;
    }

    .nav-toggle {
        display: block;
    }

    .card-grid--three {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .card-grid--two {
        grid-template-columns: 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .hero__actions,
    .cta-band__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .button,
    .cta-band__actions .button {
        width: 100%;
    }

    .floating-card--one {
        left: -6px;
        bottom: 26px;
    }

    .floating-card--two {
        right: -6px;
        top: 12px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .button {
        flex: 1 1 140px;
    }

    .result-hero__grid {
        gap: 20px;
    }

    .finding__category {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .scan-card {
        padding: 20px;
    }

    .floating-card {
        display: none;
    }

    .result-counts {
        gap: 4px;
    }

    .finding summary {
        padding: 12px;
    }

    .finding__title {
        font-size: .87rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
