@charset "UTF-8";
/* ==========================================================================
   Testnik — presentation site
   Palette and component treatment taken from the Testnik Cloud dashboard so
   the two read as one product. Dark is the primary theme.
   ========================================================================== */

:root {
    /* Dark theme — values sampled from the dashboard */
    --bg:              rgb(24, 20, 26);
    --bg-elevated:     rgb(30, 25, 32);
    --card:            rgb(34, 28, 36);
    --card-hover:      rgb(40, 33, 42);
    --border:          rgb(58, 47, 61);
    --border-strong:   rgb(74, 60, 78);

    --text:            rgb(245, 243, 246);
    --text-muted:      rgb(169, 159, 174);
    --text-subtle:     rgb(134, 124, 139);

    --accent:          rgb(239, 167, 216);
    --accent-dim:      rgba(239, 167, 216, 0.14);
    --primary:         rgb(112, 46, 107);
    --primary-hover:   rgb(133, 56, 127);
    --primary-text:    #ffffff;

    --positive-bg:     rgba(2, 44, 34, 0.6);
    --positive-text:   rgb(110, 231, 183);
    --warning-bg:      rgba(69, 39, 3, 0.6);
    --warning-text:    rgb(252, 211, 77);
    --critical-bg:     rgba(69, 10, 10, 0.6);
    --critical-text:   rgb(252, 165, 165);

    /* Card rule accents, mirroring the coloured rules in the Testnik deck */
    --rule-2:          rgb(167, 139, 250);
    --rule-3:          rgb(125, 211, 222);
    --rule-4:          rgb(252, 165, 165);

    /* Brand mark colours, from the vector logo */
    --brand-plum:      #7D356A;
    --brand-mauve:     #B9779F;
    --brand-pink:      #F0BEDA;

    --radius:          6px;
    --radius-lg:       10px;
    --radius-pill:     9999px;

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

    /* Type scale — every size in the site comes from this list. */
    --fs-xs:   .75rem;      /* eyebrow, meta, table headers */
    --fs-sm:   .8125rem;    /* labels, fine print */
    --fs-md:   .875rem;     /* secondary UI text */
    --fs-base: .9375rem;    /* card and body copy */
    --fs-lead: 1.0625rem;   /* intro paragraphs */
    --fs-h3:   1.0625rem;
    --fs-h3-lg: 1.15rem;    /* prominent card headings */
    --fs-h2-sm: 1.25rem;    /* sub-headings inside a section */

    /* Spacing scale — replaces ad-hoc pixel margins in templates. */
    --sp-1: 8px;
    --sp-2: 14px;
    --sp-3: 20px;
    --sp-4: 28px;
    --sp-5: 40px;

    --maxw: 1140px;
    --nav-h: 60px;
    --gutter: 20px;

    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg:              rgb(250, 249, 251);
    --bg-elevated:     rgb(255, 255, 255);
    --card:            rgb(255, 255, 255);
    --card-hover:      rgb(250, 247, 251);
    --border:          rgb(228, 222, 231);
    --border-strong:   rgb(207, 198, 211);

    --text:            rgb(28, 23, 30);
    --text-muted:      rgb(103, 94, 108);
    --text-subtle:     rgb(133, 124, 138);

    --accent:          rgb(150, 45, 122);
    --accent-dim:      rgba(150, 45, 122, 0.10);
    --primary:         rgb(112, 46, 107);
    --primary-hover:   rgb(92, 36, 88);
    --primary-text:    #ffffff;

    --positive-bg:     rgba(209, 250, 229, 0.9);
    --positive-text:   rgb(6, 95, 70);
    --warning-bg:      rgba(254, 243, 199, 0.9);
    --warning-text:    rgb(146, 64, 14);
    --critical-bg:     rgba(254, 226, 226, 0.9);
    --critical-text:   rgb(153, 27, 27);

    --rule-2:          rgb(109, 88, 200);
    --rule-3:          rgb(14, 116, 130);
    --rule-4:          rgb(185, 61, 61);

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

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

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.0625rem; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, samp, .mono { font-family: var(--font-mono); font-size: .875em; }

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

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--primary); color: var(--primary-text);
    padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

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

/* One content width for the whole site — every page aligns to this. */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* A section's heading block spans the same width as the content below it. */
.section-head { margin-bottom: var(--sp-5); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 0; }
.section-head + .grid, .section-head + .steps, .section-head + .table-wrap { margin-top: 0; }

/* Intro paragraph: one shared style wherever a page or section is introduced. */
.lead { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 0; }
.lead--strong { color: var(--text); }

/* Sub-heading inside a section, below the section h2. */
.subhead { font-size: var(--fs-h2-sm); }
.subhead--sm { font-size: var(--fs-h3); }

.eyebrow {
    display: inline-block;
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: var(--sp-2);
}

/* min-width:0 stops a long word in one cell from widening the whole track —
   grid items default to min-width:auto, which is the usual cause of a page
   that scrolls sideways on a phone. */
.grid { display: grid; gap: var(--sp-3); }
.grid > * { min-width: 0; }
/* Two columns, always. With auto-fit the track count follows the available
   width rather than the item count, so a four-card section wrapped to 3 + 1;
   a fixed pair makes it read as 2 x 2. Stacks at 640px, the width below which
   two tracks would fall under the 280px the cards are designed for. */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid--2 { grid-template-columns: 1fr; } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Contact: form beside the details column, stacking before either gets cramped. */
.grid--sidebar { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 32px; }
@media (max-width: 860px) { .grid--sidebar { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* Spacing utilities — a small closed set, so templates never invent margins. */
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .nav { background: var(--bg); } }

.nav__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
    height: var(--nav-h); display: flex; align-items: center; gap: 20px;
}

/* The wordmark inside the lockup inherits `currentColor`, so the logo tracks
   the active theme without a second asset. */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 26px; width: auto; display: block; }
.brand__by { font-size: .6875rem; font-weight: 500; color: var(--text-subtle); letter-spacing: 0; white-space: nowrap; }
@media (max-width: 1080px) { .brand__by { display: none; } }
@media (max-width: 420px) { .brand__logo { height: 23px; } }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.nav__link {
    color: var(--text-muted); font-size: .875rem; font-weight: 500;
    padding: 7px 11px; border-radius: var(--radius); white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
.nav__link:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav__link.is-active { color: var(--accent); background: var(--accent-dim); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.lang { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang a {
    padding: 4px 9px; font-size: .75rem; font-weight: 600; text-transform: uppercase;
    color: var(--text-subtle); letter-spacing: .03em;
}
.lang a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.lang a.is-active { color: var(--accent); background: var(--accent-dim); }

.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0;
    background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-muted); cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
:root[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }

.nav__toggle {
    display: none; align-items: center; justify-content: center;
    width: 34px; height: 34px; background: transparent;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); cursor: pointer;
}
.nav__toggle svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
    .nav__toggle { display: inline-flex; }
    .nav__links {
        position: fixed; inset: var(--nav-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-elevated); border-bottom: 1px solid var(--border);
        padding: 8px 12px 16px; margin: 0;
        max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
        display: none;
    }
    .nav__links.is-open { display: flex; }
    .nav__link { padding: 11px 12px; font-size: .9375rem; }
    .nav__inner { justify-content: space-between; }
    .nav__actions { margin-left: auto; }
}

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius);
    font-size: .9375rem; font-weight: 600; line-height: 1.2;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: var(--primary-text); }
.btn--primary:hover { background: var(--primary-hover); color: var(--primary-text); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--card); border-color: var(--accent); color: var(--text); }
.btn--ghost { background: transparent; color: var(--accent); padding: 6px 0; }
.btn--ghost:hover { color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 13px; font-size: .875rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   Cards, badges, tables
   -------------------------------------------------------------------------- */

.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.card--link { transition: border-color .15s ease, background-color .15s ease; }
.card--link:hover { border-color: var(--border-strong); background: var(--card-hover); }
.card--highlight { border-color: var(--accent); }
.card > * { max-width: 100%; }
.card h2, .card h3 { margin-bottom: .4em; }
.card h2 { font-size: var(--fs-h3-lg); }
.card p { color: var(--text-muted); font-size: var(--fs-base); margin-bottom: 0; }
/* Consistent rhythm inside a card, so templates need no inline margins. */
.card > * + h2, .card > * + h3 { margin-top: var(--sp-2); }
.card > p + p, .card > * + .check-list, .card > * + .spec-list { margin-top: var(--sp-2); }
.card > * + .btn, .card > * + .btn-row, .card > * + .card__more { margin-top: var(--sp-3); }
.card__more { color: var(--accent); font-weight: 600; font-size: var(--fs-base); }
.card--link:hover .card__more { color: var(--text); }
.card__icon {
    width: 34px; height: 34px; margin-bottom: var(--sp-2);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius); background: var(--accent-dim); color: var(--accent);
    flex: none;
}
.card__icon svg { width: 18px; height: 18px; }

/* Coloured left rule on cards — the treatment used throughout the printed
   Testnik material, mapped onto the dashboard's status hues. */
.card--rule { border-left-width: 3px; }
.card--rule-1 { border-left-color: var(--accent); }
.card--rule-2 { border-left-color: var(--rule-2); }
.card--rule-3 { border-left-color: var(--rule-3); }
.card--rule-4 { border-left-color: var(--rule-4); }

.card__step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-bottom: 12px;
    border-radius: var(--radius-pill);
    background: var(--accent-dim); color: var(--accent);
    font-size: .8125rem; font-weight: 700;
}

/* Hero pillar chips — the four platform pillars from the customer deck. */
.pillars { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; }
.pillar {
    padding: 6px 14px; border-radius: var(--radius-pill);
    font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
    border: 1px solid transparent;
}
.pillar--1 { background: rgba(125, 53, 106, .32); color: #EFA7D8; border-color: rgba(239, 167, 216, .30); }
.pillar--2 { background: rgba(2, 60, 70, .38);   color: #7DD3DE; border-color: rgba(125, 211, 222, .28); }
.pillar--3 { background: rgba(30, 40, 95, .42);  color: #A5B4FC; border-color: rgba(165, 180, 252, .26); }
.pillar--4 { background: rgba(90, 20, 24, .38);  color: #FCA5A5; border-color: rgba(252, 165, 165, .26); }
:root[data-theme="light"] .pillar--1 { background: rgba(150, 45, 122, .10); color: #962D7A; border-color: rgba(150, 45, 122, .28); }
:root[data-theme="light"] .pillar--2 { background: rgba(14, 116, 130, .10); color: #0E7482; border-color: rgba(14, 116, 130, .28); }
:root[data-theme="light"] .pillar--3 { background: rgba(55, 68, 160, .10);  color: #3744A0; border-color: rgba(55, 68, 160, .26); }
:root[data-theme="light"] .pillar--4 { background: rgba(158, 40, 44, .10);  color: #9E282C; border-color: rgba(158, 40, 44, .26); }

.section-note {
    margin-top: var(--sp-4); padding: 14px 18px;
    background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
    border-radius: var(--radius); color: var(--text); font-size: var(--fs-base);
}
.section-note strong { font-weight: 600; }

/* A plain qualifying note under a block of content. */
.note { color: var(--text-muted); font-size: var(--fs-base); }

/* A titled paragraph block (How it works detail sections). These are dense
   reference text, so they get more separation than the standard rhythm. */
.prose-block + .prose-block {
    margin-top: 44px; padding-top: 40px;
    border-top: 1px solid var(--border);
}
.prose-block h2 { margin-bottom: .5em; }
@media (max-width: 560px) {
    .prose-block + .prose-block { margin-top: 30px; padding-top: 28px; }
}

.form-note { color: var(--text-subtle); font-size: var(--fs-sm); margin-top: var(--sp-2); }
.maintenance-notice { padding-top: var(--sp-2); }
.maintenance-notice .alert { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: var(--radius-pill);
    font-size: .75rem; font-weight: 600; line-height: 1.5;
}
.badge--live { background: var(--positive-bg); color: var(--positive-text); }
.badge--warning { background: var(--warning-bg); color: var(--warning-text); }
.badge--critical { background: var(--critical-bg); color: var(--critical-text); }
.badge--muted { background: var(--accent-dim); color: var(--accent); }
.badge__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th {
    text-align: left; font-size: .6875rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle);
    padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--card-hover); }

.card p.card__lead { color: var(--text); font-weight: 600; margin-bottom: var(--sp-2); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }

.td-label { white-space: nowrap; font-weight: 600; }
.td-desc  { color: var(--text-muted); }
@media (max-width: 560px) { .td-label { white-space: normal; } }

.spec-list { margin: 0; }
/* Two definition pairs side by side inside a single card. */
.spec-list--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.spec-list--split > div > dd:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .spec-list--split > div:not(:last-child) > dd:last-child { margin-bottom: 18px; } }
.spec-list dt { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); font-weight: 600; }
.spec-list dd { margin: 4px 0 18px; color: var(--text); font-size: .9375rem; }
.spec-list dd:last-child { margin-bottom: 0; }

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

.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(760px 340px at 18% -8%, var(--accent-dim), transparent 70%);
}
/* The low-poly hare from the brand mark, used as a faint background motif —
   the same device the printed material uses as a watermark. */
/* Now that the copy runs the full width, the motif bleeds further off the
   right edge and sits lighter, so it stays decorative behind the text. */
.hero__watermark {
    position: absolute; right: -9%; top: 50%; transform: translateY(-50%);
    height: 124%; width: auto; opacity: .05; pointer-events: none; z-index: 0;
}
:root[data-theme="light"] .hero__watermark { opacity: .07; }
@media (max-width: 900px) { .hero__watermark { right: -26%; opacity: .04; } }
.hero > .container { position: relative; z-index: 1; }
/* The hero spans the full content width, like every other block on the site. */
.hero__inner { max-width: none; }
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: var(--fs-lead); color: var(--text-muted); margin-bottom: var(--sp-4); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-4); }

.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--border); }
.page-head p { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Steps / flow
   -------------------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step {
    display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px;
}
.step__num {
    counter-increment: step;
    width: 28px; height: 28px; border-radius: var(--radius-pill);
    background: var(--accent-dim); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8125rem; font-weight: 700;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--text-muted); font-size: .9375rem; margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: .9375rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

/* Plans carry no price, so the name is the card's headline and the list runs
   to the bottom — which keeps the quote buttons on one line across the row. */
.plan { display: flex; flex-direction: column; }
.plan__label { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); font-weight: 600; margin-bottom: 10px; }
.plan > * + .plan__label { margin-top: var(--sp-2); }
.plan .plan__label + .check-list { margin-top: 0; }
/* The list grows to fill the card, but its rows must not: without this the
   grid stretches its tracks and a short list spaces itself out. */
.plan .check-list { flex: 1; align-content: start; }

/* --------------------------------------------------------------------------
   Client reference
   -------------------------------------------------------------------------- */

/* The client mark ships in two versions, one drawn for a dark background and
   one for a light one; the theme decides which is displayed. Dark is the
   default theme, so the light-background file is the one hidden up front. */
.reference__logo { display: block; height: 44px; width: auto; margin-bottom: var(--sp-2); }
:root:not([data-theme="light"]) .reference__logo--light,
:root[data-theme="light"] .reference__logo--dark { display: none; }
.reference__meta { color: var(--text-subtle); font-size: var(--fs-sm); }
.card > .reference__meta + p { margin-top: var(--sp-2); }

.quote {
    margin: 0; padding-left: var(--sp-2);
    border-left: 3px solid var(--accent);
}
.quote p { color: var(--text); font-style: italic; }
.quote footer { color: var(--text-subtle); font-size: var(--fs-sm); margin-top: var(--sp-1); }
.card > * + .quote { margin-top: var(--sp-3); }

.faq { display: grid; gap: 12px; }
.faq details {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0;
}
.faq summary {
    cursor: pointer; padding: 15px 20px; font-weight: 600; font-size: .9375rem;
    list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 20px 18px; color: var(--text-muted); font-size: .9375rem; margin: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field__hint { font-size: .75rem; color: var(--text-subtle); font-weight: 400; margin-left: 6px; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="search"], select, textarea {
    width: 100%; padding: 10px 12px;
    background: var(--bg-elevated); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-family: inherit; font-size: .9375rem; line-height: 1.5;
    transition: border-color .15s ease;
}
:root:not([data-theme="light"]) input, :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) textarea { background: rgb(20, 16, 22); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-dim); }
textarea { resize: vertical; min-height: 150px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.field--error input, .field--error textarea, .field--error select { border-color: var(--critical-text); }
.field__error { color: var(--critical-text); font-size: .8125rem; margin-top: 5px; }

.checkbox { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .875rem; color: var(--text-muted); line-height: 1.55; }
.checkbox input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--primary); }
.checkbox label { font-weight: 400; font-size: .875rem; margin: 0; color: var(--text-muted); }

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

.alert { padding: 13px 16px; border-radius: var(--radius); font-size: .9375rem; margin-bottom: 24px; border: 1px solid; }
.alert--success { background: var(--positive-bg); color: var(--positive-text); border-color: color-mix(in srgb, var(--positive-text) 35%, transparent); }
.alert--error { background: var(--critical-bg); color: var(--critical-text); border-color: color-mix(in srgb, var(--critical-text) 35%, transparent); }
.alert--warning { background: var(--warning-bg); color: var(--warning-text); border-color: color-mix(in srgb, var(--warning-text) 35%, transparent); }
.alert--info { background: var(--accent-dim); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px; text-align: center;
}
.cta h2 { margin-bottom: .4em; }
.cta p { color: var(--text-muted); max-width: 56ch; margin: 0 auto 24px; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */

/* Legal documents span the same width as every other page. The longer line
   is offset with a taller leading and generous heading rhythm; the structure
   (h2/h3, lists, tables) is what actually carries the reader through. */
.prose { max-width: none; }
.prose h2 { font-size: var(--fs-h2-sm); margin-top: 2.4em; margin-bottom: .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; margin-top: 1.85em; margin-bottom: .5em; }
.prose p, .prose li { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.85; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose table { margin-bottom: 1.5rem; }
.prose a { text-decoration: underline; }

.doc-meta { color: var(--text-subtle); font-size: .8125rem; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }

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

.footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding: 52px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__tagline { color: var(--text-muted); font-size: .875rem; max-width: 34ch; margin: 12px 0 0; }
.footer h4 { font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-subtle); font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-muted); font-size: .875rem; }
.footer a:hover { color: var(--accent); text-decoration: none; }
.footer__bottom {
    border-top: 1px solid var(--border); padding-top: 20px;
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
    color: var(--text-subtle); font-size: .8125rem;
}

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */

.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
    max-width: 620px; margin: 0 auto;
    background: var(--card); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); padding: 18px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: .8125rem; color: var(--text-muted); margin: 0; flex: 1 1 320px; }
.cookie-banner strong { display: block; color: var(--text); font-size: .875rem; margin-bottom: 3px; }
.cookie-banner .btn-row { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.error-page { min-height: 62vh; display: flex; align-items: center; text-align: center; }
.error-page__inner { max-width: 520px; margin: 0 auto; }
.error-page__title { font-size: 1.6rem; }
.error-page .code { font-size: 3.5rem; font-weight: 800; color: var(--accent); letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: var(--sp-4); }

/* --------------------------------------------------------------------------
   Responsive
   Vertical rhythm and padding scale down together, so the proportions of the
   page hold rather than the desktop spacing simply being reused on a phone.
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .section      { padding: 52px 0; }
    .section--tight { padding: 36px 0; }
    .hero         { padding: 60px 0 52px; }
    .page-head    { padding: 40px 0 26px; }
    .section-head { margin-bottom: var(--sp-4); }
    .cta          { padding: 30px 24px; }
    .footer       { padding: 40px 0 24px; }
}

@media (max-width: 560px) {
    :root { --gutter: 16px; --sp-5: 30px; }

    .section      { padding: 40px 0; }
    .section--tight { padding: 28px 0; }
    .hero         { padding: 44px 0 40px; }
    .page-head    { padding: 30px 0 22px; }

    .grid         { gap: var(--sp-2); }
    /* Below this width a two-up grid only ever produces cramped columns. */
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

    .card         { padding: 18px; }
    .cta          { padding: 24px 18px; }
    .cta .btn-row { flex-direction: column; }
    .cta .btn     { width: 100%; }

    .hero__lead, .lead, .section-head p { font-size: 1rem; }
    .btn          { padding: 10px 16px; }
    .step         { grid-template-columns: 1fr; gap: var(--sp-1); padding: 16px 18px; }
    .doc-meta     { margin-bottom: var(--sp-4); }
    .faq summary  { padding: 13px 16px; }
    .faq details > p { padding: 0 16px 16px; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 15px 16px; }
    .cookie-banner .btn-row { width: 100%; }
    .cookie-banner .btn { flex: 1; }
}

/* Long unbroken strings — hostnames, spec values — must never widen the page.
   Overflow is prevented at the source rather than by clipping the document,
   which would break the sticky navigation. */
.mono, .spec-list dd, .prose a, td, .card p { overflow-wrap: break-word; }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
    .nav, .footer, .cookie-banner, .btn-row, .skip-link { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .prose { border: 0; }
}
