/* ==========================================================================
   Scan — design system
   Tokens inherited from northlinestudio.it so that Scan reads as a Northline
   product, not as a third-party tool: same ink/paper pair, same acid accent,
   same typographic couple (Space Grotesk display + Inter text).
   ========================================================================== */

:root {
    /* Brand */
    --ink: #11110f;
    --ink-2: #17170f;
    --paper: #f7f4ea;
    --muted: #aaa59a;
    --acid: #b8ff4d;
    --coral: #ff6b57;
    --cyan: #54d6ff;
    --violet: #b794f6;

    /* Surfaces derived from ink, kept as explicit tokens so a component never
       invents its own shade. */
    --surface: #16160f;
    --surface-2: #1d1d15;
    --surface-3: #26261c;
    --line: rgba(247, 244, 234, 0.12);
    --line-strong: rgba(247, 244, 234, 0.24);

    /* Text */
    --text: var(--paper);
    --text-dim: #b9b5a8;
    --text-faint: #837f74;

    /* Severity — used by scores, badges and finding cards. Never re-map these
       to taste: the same colour must mean the same severity everywhere,
       including inside the PDF. */
    --sev-critical: #ff6b57;
    --sev-major: #ffab4d;
    --sev-minor: #ffe066;
    --sev-ok: #b8ff4d;
    --sev-info: #54d6ff;

    --radius: 8px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
    --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.28);

    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

    --wrap: 1180px;
    --wrap-narrow: 760px;
    --gutter: clamp(20px, 5vw, 48px);
    --section-y: clamp(64px, 9vw, 128px);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

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

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

body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

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

::selection { background: var(--acid); color: var(--ink); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 62ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--acid);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}

.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--acid);
    color: var(--ink);
    padding: 12px 20px;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--acid); color: var(--ink); }
.btn--primary:hover { background: #c9ff75; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(247, 244, 234, 0.06); }

.btn--lg { padding: 18px 32px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 17, 15, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 74px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--acid);
    align-self: center;
}

.brand__by {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    padding: 9px 14px;
    border-radius: var(--radius);
    font-size: 0.94rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease;
}

.site-nav a:hover { color: var(--text); background: rgba(247, 244, 234, 0.06); }
.site-nav a[aria-current="page"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 10px 12px;
    cursor: pointer;
}

@media (max-width: 940px) {
    .site-nav {
        position: fixed;
        inset: 74px 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 16px var(--gutter) 28px;
        background: var(--ink);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.24s ease;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav a { padding: 13px 4px; font-size: 1.05rem; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .header-actions .btn { display: none; }
}

/* Language switcher */

.lang {
    position: relative;
}

.lang__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.lang__button:hover { border-color: var(--line-strong); }

.lang__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 168px;
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    list-style: none;
    display: none;
}

.lang__menu[data-open="true"] { display: block; }

.lang__menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--text-dim);
}

.lang__menu a:hover { background: var(--surface-3); color: var(--text); }
.lang__menu a[aria-current="true"] { color: var(--acid); }
.lang__menu .code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: clamp(56px, 8vw, 108px) clamp(48px, 7vw, 96px);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% 20% auto -10%;
    height: 720px;
    background: radial-gradient(closest-side, rgba(184, 255, 77, 0.14), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -20% -20% auto 45%;
    height: 620px;
    background: radial-gradient(closest-side, rgba(84, 214, 255, 0.11), transparent 70%);
    pointer-events: none;
}

.hero > * { position: relative; }

.hero h1 { margin-top: 20px; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--acid); }
.hero .lead { margin-top: 24px; }

/* Scan form */

.scan-form { margin-top: 34px; max-width: 640px; }

.scan-form__field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 18px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.scan-form__field:focus-within {
    border-color: var(--acid);
    box-shadow: 0 0 0 4px rgba(184, 255, 77, 0.14);
}

.scan-form__prefix {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-faint);
    user-select: none;
}

.scan-form input[type="url"],
.scan-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 14px 0;
    background: none;
    border: 0;
    font-size: 1.05rem;
}

.scan-form input::placeholder { color: var(--text-faint); }
.scan-form input:focus { outline: none; }

.scan-form__note {
    margin-top: 14px;
    font-size: 0.86rem;
    color: var(--text-faint);
}

.scan-form__error {
    margin-top: 12px;
    padding: 11px 14px;
    border-left: 3px solid var(--coral);
    background: rgba(255, 107, 87, 0.1);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.92rem;
    color: #ffc4ba;
}

@media (max-width: 560px) {
    .scan-form__field { flex-wrap: wrap; padding: 14px; }
    .scan-form__prefix { display: none; }
    .scan-form .btn { width: 100%; }
}

/* Trust strip */

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 26px;
    padding: 0;
    list-style: none;
}

.trust-row li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.trust-row svg { flex: none; color: var(--acid); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
    padding: clamp(22px, 2.6vw, 30px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card--hover:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.97rem; }

.card__index {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    color: var(--text-faint);
}

.card__weight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.card__list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
    font-size: 0.9rem;
    color: var(--text-faint);
}

.card__list li { display: flex; gap: 9px; }
.card__list li::before { content: "—"; color: var(--line-strong); flex: none; }

/* Steps */

.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step__n {
    position: absolute;
    top: -13px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--ink);
    border: 2px solid var(--acid);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--acid);
}
.step h3 { margin: 0 0 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Score visual — the proof element of the home page
   -------------------------------------------------------------------------- */

.score-panel {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    padding: clamp(24px, 3.4vw, 40px);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

@media (max-width: 820px) {
    .score-panel { grid-template-columns: 1fr; }
}

.dial { position: relative; width: 100%; max-width: 260px; margin-inline: auto; }
.dial svg { width: 100%; height: auto; transform: rotate(-90deg); }
.dial__track { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.dial__value { fill: none; stroke: var(--sev-major); stroke-width: 12; stroke-linecap: round; }

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

.dial__number {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dial__max { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }
.dial__label { margin-top: 8px; font-size: 0.86rem; color: var(--sev-major); }

.bars { display: grid; gap: 14px; }
.bar__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.bar__name { color: var(--text-dim); }
.bar__value { font-family: var(--font-mono); font-size: 0.82rem; }
.bar__track { height: 7px; background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--radius-pill); background: var(--sev-ok); }

.bar--critical .bar__fill { background: var(--sev-critical); }
.bar--critical .bar__value { color: var(--sev-critical); }
.bar--major .bar__fill { background: var(--sev-major); }
.bar--major .bar__value { color: var(--sev-major); }
.bar--minor .bar__fill { background: var(--sev-minor); }
.bar--minor .bar__value { color: var(--sev-minor); }
.bar--ok .bar__value { color: var(--sev-ok); }
.bar--na .bar__fill { background: repeating-linear-gradient(90deg, var(--surface-3) 0 6px, transparent 6px 12px); width: 100% !important; }
.bar--na .bar__value { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Finding cards — show, do not tell
   -------------------------------------------------------------------------- */

.finding {
    display: grid;
    gap: 14px;
    padding: clamp(20px, 2.4vw, 28px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--sev-major);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.finding--critical { border-left-color: var(--sev-critical); }
.finding--minor { border-left-color: var(--sev-minor); }

.finding__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge--critical { background: rgba(255, 107, 87, 0.14); color: var(--sev-critical); }
.badge--major { background: rgba(255, 171, 77, 0.14); color: var(--sev-major); }
.badge--minor { background: rgba(255, 224, 102, 0.12); color: var(--sev-minor); }
.badge--info { background: rgba(84, 214, 255, 0.12); color: var(--sev-info); }
.badge--ok { background: rgba(184, 255, 77, 0.13); color: var(--sev-ok); }

.finding h3 { font-size: 1.1rem; }
.finding p { color: var(--text-dim); font-size: 0.96rem; }

.evidence {
    padding: 14px 16px;
    background: var(--ink-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.evidence__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.evidence q { color: var(--paper); font-style: normal; }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare th,
.compare td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.compare thead th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    font-weight: 400;
}

.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { color: var(--text-dim); }
.compare .yes { color: var(--acid); }
.compare .no { color: var(--text-faint); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   Report preview mock
   -------------------------------------------------------------------------- */

.report-mock {
    position: relative;
    padding: clamp(20px, 3vw, 34px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.report-mock__row {
    display: grid;
    gap: 10px;
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
}

.report-mock__row:last-child { border-bottom: 0; }

.report-mock__skeleton {
    height: 9px;
    border-radius: var(--radius-pill);
    background: var(--surface-3);
}

.report-mock--gated .report-mock__gate {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 40px 20px 26px;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--surface) 55%);
}

.gate-note {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 40ch;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 2px; }

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.faq details + details { margin-top: 10px; }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.03rem;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    flex: none;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--acid);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq__body { padding: 0 22px 22px; color: var(--text-dim); font-size: 0.97rem; }
.faq__body p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.cta-band {
    position: relative;
    padding: clamp(40px, 6vw, 72px);
    background: var(--acid);
    color: var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-band h2 { max-width: 20ch; }
.cta-band p { margin-top: 16px; max-width: 52ch; color: rgba(17, 17, 15, 0.76); }
.cta-band .btn--primary { background: var(--ink); color: var(--paper); }
.cta-band .btn--primary:hover { background: #000; }
.cta-band .scan-form__field { background: rgba(17, 17, 15, 0.08); border-color: rgba(17, 17, 15, 0.24); }
.cta-band .scan-form__field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 15, 0.12); }
.cta-band .scan-form input::placeholder { color: rgba(17, 17, 15, 0.5); }
.cta-band .scan-form__note { color: rgba(17, 17, 15, 0.62); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding-block: clamp(48px, 6vw, 72px) 36px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr));
    gap: 36px 24px;
}

.footer-col h4 {
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-faint);
}

.footer-bottom a { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 30px; }
.center { text-align: center; }
.mt-lg { margin-top: clamp(30px, 4vw, 48px); }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Funnel (channels → context → processing)
   -------------------------------------------------------------------------- */

.funnel { padding-block: clamp(40px, 6vw, 76px); }

.funnel__head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 44px); }
.funnel__head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 14px; }
.funnel__head p { margin-top: 16px; color: var(--text-dim); }

.progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.progress__track {
    flex: 1;
    max-width: 180px;
    height: 3px;
    background: var(--surface-3);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress__fill { height: 100%; background: var(--acid); border-radius: var(--radius-pill); }

.field { display: grid; gap: 8px; }
.field > label { font-size: 0.92rem; font-weight: 500; }
.field__hint { font-size: 0.82rem; color: var(--text-faint); }

.input,
.select {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--acid);
    box-shadow: 0 0 0 3px rgba(184, 255, 77, 0.14);
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa59a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

.channel-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.channel {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.channel label { font-size: 0.86rem; color: var(--text-dim); }
.channel .input { padding: 11px 13px; font-size: 0.94rem; background: var(--ink-2); }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice span {
    display: block;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.choice input:checked + span {
    border-color: var(--acid);
    background: rgba(184, 255, 77, 0.09);
}

.choice input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 2px; }

.funnel__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.funnel__actions .spacer { margin-left: auto; }

/* Processing */

.phases { display: grid; gap: 2px; margin-top: 30px; }

.phase {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.96rem;
    color: var(--text-faint);
}

.phase + .phase { margin-top: 8px; }
.phase[data-state="done"] { color: var(--text-dim); }
.phase[data-state="active"] { color: var(--text); border-color: var(--line-strong); }

.phase__dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--surface-3);
}

.phase[data-state="done"] .phase__dot { background: var(--acid); }
.phase[data-state="active"] .phase__dot {
    background: var(--acid);
    box-shadow: 0 0 0 0 rgba(184, 255, 77, 0.6);
    animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
    to { box-shadow: 0 0 0 12px rgba(184, 255, 77, 0); }
}

.notice {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--sev-major);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.notice h2 { font-size: 1.2rem; margin-bottom: 8px; }
.notice p { color: var(--text-dim); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Verdict — the one line that says what the score means
   The number alone is a grade; the sentence next to it is the diagnosis, and
   the diagnosis is what gets forwarded to a colleague.
   -------------------------------------------------------------------------- */

.verdict {
    display: grid;
    gap: 10px;
    padding: clamp(22px, 3vw, 32px);
    margin-top: 28px;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.verdict h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    line-height: 1.25;
}

.verdict p { color: var(--text-dim); font-size: 1rem; }
.verdict--critical { border-color: rgba(255, 107, 87, 0.4); }
.verdict--high { border-color: rgba(255, 171, 77, 0.36); }

/* --------------------------------------------------------------------------
   Stat band — the counts that make the report feel measured, not opined
   -------------------------------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin-top: 24px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat { padding: 18px 20px; background: var(--surface); }

.stat__n {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat__label {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-faint);
}

.stat--critical .stat__n { color: var(--sev-critical); }
.stat--major .stat__n { color: var(--sev-major); }
.stat--ok .stat__n { color: var(--sev-ok); }

/* --------------------------------------------------------------------------
   Site screenshot — the client's own home page, framed as a browser window.
   It is the most persuasive image in the report: nobody argues with their own
   site, and the frame is what stops it reading as a random picture.
   -------------------------------------------------------------------------- */

.shot {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shot__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.shot__dots { display: flex; gap: 6px; flex: none; }

.shot__dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--surface-3);
}

.shot__url {
    flex: 1;
    padding: 3px 10px;
    background: var(--ink);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

.shot figcaption {
    padding: 12px 16px;
    font-size: 0.84rem;
    color: var(--text-faint);
    border-top: 1px solid var(--line);
}

.shot-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
}

@media (min-width: 900px) {
    .shot-pair { grid-template-columns: 2.4fr 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   Locked section — what the preview is holding back.
   The list of headings is real, the content is not sent (docs/05 §1): a blur
   over real data is bypassed in ten seconds and the first person who notices
   tells everyone.
   -------------------------------------------------------------------------- */

.locked {
    position: relative;
    padding: clamp(24px, 3vw, 34px);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(184, 255, 77, 0.06), transparent 70%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.locked__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px 24px;
    margin-top: 18px;
}

.locked__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--text-dim);
    font-size: 0.94rem;
}

.locked__item::before {
    content: "";
    flex: none;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--line-strong);
    border-radius: 3px;
}

.locked__count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Findings: severity has to be visible before a single word is read
   -------------------------------------------------------------------------- */

.finding { border-left-width: 4px; }

.finding--critical {
    background:
        linear-gradient(90deg, rgba(255, 107, 87, 0.07), transparent 45%),
        var(--surface);
}

.finding__consequence {
    padding-left: 14px;
    border-left: 2px solid var(--line-strong);
    color: var(--text-dim);
    font-size: 0.95rem;
}

.finding__fix {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(184, 255, 77, 0.05);
    border: 1px solid rgba(184, 255, 77, 0.16);
    border-radius: var(--radius);
}

.finding__fix strong {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sev-ok);
}

.finding__fix p { color: var(--text); font-size: 0.95rem; }

/* Group header inside the report: a wall of 20 identical cards is unreadable,
   so each category announces how many problems it holds. */
.group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.group-head h3 { font-size: 1.25rem; }

.group-head__count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-faint);
    white-space: nowrap;
}

.findings-stack { display: grid; gap: 14px; }

/* --------------------------------------------------------------------------
   Service recommendation cards
   -------------------------------------------------------------------------- */

.service {
    display: grid;
    gap: 12px;
    padding: clamp(22px, 2.6vw, 30px);
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.service__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--acid);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.service__head { display: flex; align-items: center; gap: 12px; }
.service__head h3 { font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   Sticky unlock bar — the form is at the bottom of a long page; this keeps the
   way to it one tap away without moving it.
   -------------------------------------------------------------------------- */

.unlock-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 40px;
    padding: 14px clamp(16px, 2.4vw, 24px);
    background: rgba(22, 22, 15, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
}

.unlock-bar p { font-size: 0.95rem; color: var(--text-dim); flex: 1 1 240px; }
.unlock-bar .btn { flex: none; }

/* A "significant" finding must not look the same as a critical one: the wall of
   twenty cards is only readable if severity is visible before the words. */
.finding--major { border-left-color: var(--sev-major); }
.finding--minor { background: var(--surface); }

/* Desktop and mobile captures have very different aspect ratios; capping the
   height keeps the pair a row instead of a staircase. */
.shot img { max-height: 420px; object-fit: cover; object-position: top; }
