/*
 * AI Register public site. Plain CSS, no build step, no third-party fonts or scripts:
 * a privacy product shouldn't send its visitors' details anywhere.
 *
 * Layout: one 72rem column; bands span the width with their own inner gutter.
 */

/* Inter, self-hosted (public/fonts/inter). No font service is contacted. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Brand palette: electric blue #3458F5 (primary), violet #7864DD (highlights), cloud white #F7F9FF
 * (surface), navy #0F1A4A (text, taken from the logo's tick). Violet is exactly 4.5:1 on white, so it
 * is kept for shapes and highlights, not body text. Muted text is a darker slate than a mid grey would
 * be so it stays above 4.5:1 on the cloud surface.
 */
:root {
    --bg: #ffffff;
    --surface: #f7f9ff;
    --line: #d9e0f5;
    --fg: #0f1a4a;
    --muted: #4a5578;
    --accent: #3458f5;
    --accent-strong: #2744d4;
    --accent-soft: #e6ebff;
    --violet: #7864dd;
    --on-accent: #ffffff;
    --warn-bg: #fff7e6;
    --warn-fg: #7a4b00;
    --ok: #15803d;
    --danger: #b42318;

    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.25rem;
    --step-2: 1.625rem;
    --step-3: 2.25rem;
    --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

    --radius: 10px;
    --gutter: max(16px, env(safe-area-inset-left, 0px));
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1030;
        --surface: #131a45;
        --line: #272f66;
        --fg: #e9edff;
        --muted: #aab4dd;
        --accent: #93a8ff;
        --accent-strong: #bccaff;
        --accent-soft: #1d2766;
        --violet: #a597f0;
        --on-accent: #0b1030;
        --warn-bg: #3a2a08;
        --warn-fg: #f5d08a;
        --ok: #4ade80;
        --danger: #f97066;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b1030;
    --surface: #131a45;
    --line: #272f66;
    --fg: #e9edff;
    --muted: #aab4dd;
    --accent: #93a8ff;
    --accent-strong: #bccaff;
    --accent-soft: #1d2766;
    --violet: #a597f0;
    --on-accent: #0b1030;
    --warn-bg: #3a2a08;
    --warn-fg: #f5d08a;
    --ok: #4ade80;
    --danger: #f97066;
    color-scheme: dark;
}

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

[hidden] { display: none !important; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-text);
    font-size: var(--step-0);
    line-height: 1.6;
}

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

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }

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

h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 750; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }

.wrap {
    max-width: 72rem;
    margin-inline: auto;
    padding-left: var(--gutter);
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.band { padding-block: clamp(3rem, 6vw, 5.5rem); }
.band--tint { background: var(--surface); border-block: 1px solid var(--line); }

.stack { display: grid; gap: 1rem; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.eyebrow {
    font-size: var(--step--1);
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}
.measure { max-width: 42rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 0.875rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a.btn--primary, .nav a.btn--primary:hover { color: var(--on-accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.15rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--ghost { border-color: var(--line); color: var(--fg); background: var(--bg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 2.25rem; padding: 0.35rem 0.85rem; font-size: 0.9375rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.deadline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: var(--step--1);
    font-weight: 600;
}
.deadline strong { font-variant-numeric: tabular-nums; }

/* The register preview: real app vocabulary, not an illustration */
.register {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 0 18px 40px -24px rgb(22 26 43 / 0.35);
    overflow: hidden;
    min-width: 0;
}
.register__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    font-size: var(--step--1);
    color: var(--muted);
}
.register__scroll { overflow-x: auto; }
.register table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 30rem; }
.register th, .register td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.register th { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.register tr:last-child td { border-bottom: 0; }
.register .vendor { color: var(--muted); font-size: 0.8125rem; display: block; }

.pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 650; white-space: nowrap; }
.pill--high { background: color-mix(in oklab, var(--danger) 14%, transparent); color: var(--danger); }
.pill--medium { background: var(--warn-bg); color: var(--warn-fg); }
.pill--low { background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); }
.pill--yes { background: var(--accent-soft); color: var(--accent-strong); }
.pill--no { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

/* Three-limb test */
.limbs { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: limb; }
@media (max-width: 760px) { .limbs { grid-template-columns: minmax(0, 1fr); } }
.limb { padding: 1.25rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.limb__n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); font-weight: 600; }

/* Steps (a real sequence) */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; gap: 0.5rem; align-content: start; }
.steps .n {
    width: 2rem; height: 2rem; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: var(--on-accent);
    font-weight: 700; font-size: 0.9rem;
}

/* Feature list */
.features { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; gap: 0.4rem; align-content: start; }
.feature h3 { font-size: 1.125rem; }

/* Pricing */
.prices { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 860px) { .prices { grid-template-columns: minmax(0, 1fr); } }
.price { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: grid; gap: 0.75rem; align-content: start; }
.price--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price__amount { font-size: var(--step-3); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
.price ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 0.5rem; }

/* CTA band */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* Prose (about, legal) */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.prose .table-scroll { overflow-x: auto; }
.placeholder { background: var(--warn-bg); color: var(--warn-fg); padding: 0 0.3em; border-radius: 4px; font-weight: 600; }

.notice {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    background: var(--warn-bg);
    color: var(--warn-fg);
    font-size: 0.9375rem;
}
.notice--ok { background: color-mix(in oklab, var(--ok) 12%, transparent); color: var(--ok); }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field textarea {
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field .error { color: var(--danger); font-size: var(--step--1); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1.25rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

.skip { position: absolute; left: -10000px; top: 0.5rem; z-index: 20; padding: 0.5rem 0.8rem; background: var(--accent); color: var(--on-accent); border-radius: 6px; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Help section */
.help-grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .help-grid { grid-template-columns: minmax(0, 1fr); } }
.help-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--fg);
    text-decoration: none;
}
.help-card:hover { border-color: var(--accent); color: var(--fg); }
.help-card strong { color: var(--accent); }

.docs { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.docs-nav { display: grid; gap: 1.25rem; font-size: 0.9375rem; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1rem); }
@media (max-width: 860px) { .docs-nav { position: static; } }
.docs-nav a { color: var(--fg); text-decoration: none; }
.docs-nav a:hover, .docs-nav a[aria-current="page"] { color: var(--accent); }
.docs-nav a[aria-current="page"] { font-weight: 650; }
.docs-body { min-width: 0; max-width: 46rem; }
.docs-body > h1 { margin-top: 0.25rem; }
.docs-body > .lede { margin-top: 0.75rem; }
.docs-toc { margin-block: 1.5rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.docs-toc ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.docs-body .prose { max-width: none; margin-top: 1.5rem; }
.docs-body .prose h2 { scroll-margin-top: 1rem; }
.docs-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.docs-pager a { text-decoration: none; }

/* Tagline: a violet bar (a highlight shape) beside the brand line. */
.tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: var(--step-1);
    font-weight: 650;
    color: var(--accent);
}
.tagline::before {
    content: "";
    width: 0.3rem;
    height: 1.4em;
    border-radius: 2px;
    background: var(--violet);
}

/*
 * Dark-brand sections. Adding .navy re-scopes the colour variables, so every component inside
 * (cards, steps, buttons, text) restyles itself. Contrast checked: text on navy is 9:1 or better,
 * white on the electric-blue button is 5.4:1.
 */
.navy {
    --bg: #0b1030;
    --surface: #131a45;
    --line: #272f66;
    --fg: #e9edff;
    --muted: #aab4dd;
    --accent: #93a8ff;
    --accent-strong: #bccaff;
    --accent-soft: #1d2766;
    --violet: #a597f0;
    --on-accent: #0b1030;
    background: #0b1030;
    color: var(--fg);
    color-scheme: dark;
}
.navy h1, .navy h2, .navy h3 { color: #fff; }
.navy .btn--primary { background: #3458f5; color: #fff; }
.navy .btn--primary:hover, .navy .nav a.btn--primary:hover { background: #4a69f7; color: #fff; }
.navy .nav a.btn--primary { color: #fff; }
.navy .btn--ghost { background: transparent; border-color: rgb(255 255 255 / 0.4); color: #fff; }
.navy .btn--ghost:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 0.08); }
.navy .limb, .navy .price { background: var(--surface); }
.navy .steps .n { background: #3458f5; color: #fff; }
.site-header.navy { border-bottom-color: transparent; }

.btn--lg { min-height: 3.25rem; padding-inline: 2rem; font-size: 1.0625rem; }
.actions--center { justify-content: center; }

/* Home hero: centred, a glowing mark, one big call to action and the deadline as a ring */
.hero--navy {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(8rem, 14vw, 12rem);
    text-align: center;
    background:
        radial-gradient(48rem 30rem at 50% 14%, rgb(52 88 245 / 0.55), transparent 70%),
        radial-gradient(30rem 20rem at 85% 80%, rgb(120 100 221 / 0.28), transparent 70%),
        #0b1030;
}
.hero--navy .wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.25rem; }
.hero--navy h1 { max-width: 20ch; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero--navy .lede { max-width: 40rem; margin: 0; color: var(--muted); }
.hero--navy .tagline { font-size: var(--step-1); }
.hero__mark {
    width: clamp(96px, 14vw, 132px);
    height: auto;
    filter: drop-shadow(0 0 26px rgb(80 215 253 / 0.55)) drop-shadow(0 0 70px rgb(52 88 245 / 0.8));
}

.ring-card {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding: 0.9rem 1.5rem 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(19 26 69 / 0.7);
    text-align: left;
}
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { display: block; }
.ring__track { fill: none; stroke: rgb(255 255 255 / 0.14); stroke-width: 9; }
.ring__fill { fill: none; stroke: var(--violet); stroke-width: 9; stroke-linecap: round; }
.ring__number { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.ring-card__text { display: grid; gap: 0.15rem; }
.ring-card__text strong { font-size: var(--step-1); color: #fff; font-variant-numeric: tabular-nums; }
.ring-card__text span { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 520px) { .ring-card { border-radius: var(--radius); flex-direction: column; text-align: center; } }

/* The example register lifts out of the hero */
.lift { position: relative; margin-top: clamp(-9rem, -11vw, -6rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.register--wide { max-width: 54rem; margin-inline: auto; box-shadow: 0 30px 70px -30px rgb(11 16 48 / 0.7); }

.band--cta .cta { justify-content: center; text-align: center; flex-direction: column; }
