/* ==========================================================================
   Design tokens
   ==========================================================================

   Two colour roles, kept strictly apart. `--accent` means interactive: links,
   buttons, section labels. Green and red mean data: a deliverable verdict, an
   undeliverable one. On a verification product, letting the brand colour drift
   into the result palette makes the results harder to read, which is the one
   thing this site cannot afford.
   ========================================================================== */

:root {
    color-scheme: dark;

    --bg: #0a0a11;
    --bg-raised: #0f0f19;
    --bg-panel: #101019;
    --bg-inset: #14141f;

    --border: #23232f;
    --border-strong: #35354a;

    --text: #f4f4f1;
    --text-muted: #96969e;
    --text-faint: #6f6f79;
    --text-dim: #c9c9d2;

    --accent: #7c86ff;
    --accent-hover: #a7aeff;

    /* Data colours, never decorative, but bright: on a dark page a verdict
       that reads as grey reads as nothing. Green settled, red refused, amber
       hesitant, and they never appear on anything that is not an answer. */
    --ok: #3ddc97;
    --danger: #ff6b6b;
    --warn: #ffb64d;

    /* Code tokens. Field names, values and numbers each get their own hue so
       a response can be read at a glance rather than parsed line by line. */
    --tok-key: #6cc4ff;
    --tok-str: #c3b3ff;
    --tok-num: #ff9d5c;
    --tok-bool: #ff7ab8;
    --tok-kw: #ff7ab8;
    --tok-cmd: #3ddc97;
    --tok-flag: #6cc4ff;
    --tok-url: #7ee3d6;
    --tok-var: #ffb64d;
    --tok-comment: #6f6f79;

    /* Square throughout. No rounding and no shadow anywhere: surfaces are
       separated by a one-pixel border and a shift in background, which is the
       whole visual grammar here. */
    --radius: 0;
    --radius-lg: 0;

    --measure: 62ch;
    --page: 1120px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);

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

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

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

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

/* A single soft wash behind the fold. Fixed, so it never scrolls into the
   footer and reads as a stain. */
body::before {
    content: "";
    position: fixed;
    inset: -320px auto auto 50%;
    width: 900px;
    height: 640px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(124, 134, 255, 0.16), rgba(10, 10, 17, 0));
    pointer-events: none;
    z-index: 0;
}

main,
.site-header,
.site-footer { position: relative; z-index: 1; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 { font-size: clamp(38px, 8.2vw, 104px); line-height: 0.98; }
h2 { font-size: clamp(28px, 4.4vw, 52px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -0.018em; }

p { margin: 0 0 1.1rem; max-width: var(--measure); color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.lede {
    font-size: clamp(1.1rem, 1.7vw, 1.32rem);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 58ch;
}

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

strong { color: var(--text); font-weight: 600; }

code {
    font-family: var(--mono);
    font-size: 0.88em;
    color: var(--text);
    background: var(--bg-inset);
    border: 1px solid var(--border);
    padding: 0.1em 0.38em;
}

pre {
    margin: 0;
    padding: 1.15rem 1.25rem;
    overflow-x: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    font-size: 0.86rem;
    line-height: 1.6;
    tab-size: 2;
}

pre code {
    padding: 0;
    background: none;
    border: 0;
    font-size: inherit;
    color: #dcdce6;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--border); }

.section-head { margin-bottom: 2.5rem; max-width: 62ch; }
.section-head h2 { margin-bottom: 1rem; }

/* The small label above a section heading. The square rather than a dot: it
   reads as a status marker, which is what this product is about. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--accent);
}

.eyebrow--ok::before { background: var(--ok); }

/* ==========================================================================
   Header and footer
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 62px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand:hover { color: var(--text); text-decoration: none; }

.brand-mark {
    width: 20px;
    height: 20px;
    background: var(--accent);
}

.site-nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-muted); font-size: 0.94rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* `.site-nav a` is one specificity point above `.btn--primary`, so the only
   filled button on the page was drawing muted grey text on the accent
   background. The button has to win inside the nav. */
.site-nav a.btn--primary { color: #fff; }
.site-nav a.btn--primary:hover { color: #fff; }

.site-footer {
    padding-block: 3.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.9rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); text-decoration: none; }
.site-footer p { color: var(--text-faint); }

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    gap: 2.5rem 4rem;
    padding-bottom: 2.75rem;
}

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 42ch; }

/* Small, uppercase, tracked out. The column heads are labels rather than
   headings: they name a group, they are not part of the reading order. */
.footer-heading {
    margin-bottom: 0.9rem;
    color: var(--text) !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.subscribe-form { display: flex; gap: 0.5rem; margin-top: 1rem; }

.subscribe-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.7rem;
    background: var(--bg-inset);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
}

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

/* Present for a screen reader, absent for everyone else. The subscribe field
   has a placeholder, which is not a label. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.footer-note { margin: 0.75rem 0 0; font-size: 0.85rem; }
.footer-note--ok { color: var(--ok) !important; }
.footer-note--error { color: var(--danger) !important; }

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding-block: 2.75rem;
    border-top: 1px solid var(--border);
}

.footer-columns div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p { margin: 0; font-size: 0.85rem; }

/* The wordmark, cropped by the bottom of the page. Decoration, and hidden
   from the accessibility tree because it says nothing the header does not. */
.footer-wordmark {
    margin: 1.5rem 0 -0.22em;
    color: var(--border) !important;
    font-size: clamp(4rem, 17vw, 14rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.8;
    text-align: center;
    overflow: hidden;
    user-select: none;
}

@media (max-width: 900px) {
    .footer-top { grid-template-columns: minmax(0, 1fr); }
    .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--ghost {
    background: var(--bg-raised);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--ghost:hover { border-color: var(--text-faint); color: var(--text); }

.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.btn--bare { padding-inline: 0.25rem; color: var(--text-muted); }
.btn--bare:hover { color: var(--text); }

.btn .arrow { transition: transform 120ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }

.hero h1 { max-width: 21ch; }

/* The second line of the headline carries the accent. One coloured phrase,
   and it is the one that states what the product actually does. */
/* A flat accent colour, not a gradient. A gradient on a headline reads as
   decoration, and this line is the one carrying the claim. */
.hero h1 .accent {
    display: block;
    color: var(--accent);
}

.hero .lede { margin-top: 1.5rem; }

/* ==========================================================================
   Product surface: the panel under the hero
   ========================================================================== */

.surface {
    position: relative;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    background: var(--bg-panel);
    border: 1px solid var(--border);
        overflow: hidden;
}

.surface-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-faint);
}

.surface-dots { display: flex; gap: 6px; }
.surface-dots span { width: 10px; height: 10px;  background: var(--border-strong); }

.surface-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.surface-body > * { padding: 1.25rem; }
.surface-body > * + * { border-left: 1px solid var(--border); }

@media (max-width: 760px) {
    .surface-body { grid-template-columns: minmax(0, 1fr); }
    .surface-body > * + * { border-left: 0; border-top: 1px solid var(--border); }
}

.surface pre { background: none; border: 0; padding: 0; }

.surface-label {
    margin-bottom: 0.75rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* Code sample tokens. Verdicts take the data colours, everything else takes a
   token colour, so the answer never shares a hue with the syntax around it. */
.tok-key { color: var(--tok-key); }
.tok-str { color: var(--tok-str); }
.tok-num { color: var(--tok-num); }
.tok-bool { color: var(--tok-bool); }
.tok-kw { color: var(--tok-kw); }
.tok-cmd { color: var(--tok-cmd); font-weight: 600; }
.tok-flag { color: var(--tok-flag); }
.tok-url { color: var(--tok-url); }
.tok-var { color: var(--tok-var); }
.tok-comment { color: var(--tok-comment); font-style: italic; }
.tok-ok { color: var(--ok); }
.tok-bad { color: var(--danger); }
.tok-warn { color: var(--warn); }
.tok-dim { color: var(--text-faint); }

/* A status code is a category before it is a number. Same three tones as a
   verdict, for the same reason: the class is the meaning. */
.status {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border: 1px solid currentcolor;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
}

.status--ok { color: var(--ok); }
.status--warn { color: var(--warn); }
.status--bad { color: var(--danger); }
.status--dim { color: var(--text-faint); }

/* The verb in a route line. POST and GET differ enough in consequence to be
   worth telling apart before reading the path. */
.verb {
    font-weight: 700;
    color: var(--ok);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Rule list: rows separated by hairlines, not cards
   ========================================================================== */

.rules { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }

.rules li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.rules li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 0.62rem;
    background: var(--accent);
}

.rules li strong { display: block; color: var(--text); font-weight: 600; }

/* Numbered, because the order is the instruction. Counter rather than a list
   marker so the number can carry the accent without the text indenting to
   meet it. */
.steps { counter-reset: step; margin: 2rem 0 0; padding: 0; list-style: none; }

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.6rem 3rem;
    color: var(--text-muted);
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -0.1rem;
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
}

.steps li strong { display: block; margin-bottom: 0.3rem; color: var(--text); font-weight: 600; }
.steps li code { font-size: 0.88rem; }

/* ==========================================================================
   Verdict chips
   ========================================================================== */

.verdicts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 2rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem;
    background: var(--bg-inset);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.84rem;
    color: var(--text-muted);
}

.chip::before { content: ""; width: 7px; height: 7px;  background: currentcolor; }

.chip--ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.chip--bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.chip--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); }

/* ==========================================================================
   Integration band
   ========================================================================== */

.band {
    border-block: 1px solid var(--border);
    background:
        repeating-linear-gradient(90deg, transparent, transparent 139px, var(--border) 139px, var(--border) 140px);
}

.band .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.25rem;
    padding-block: 1.4rem;
    font-size: 0.92rem;
    color: var(--text-faint);
}

.band-item { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.86rem; }

/* ==========================================================================
   Grids, tables, definition lists
   ========================================================================== */

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

.card {
    padding: 1.5rem;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    }

.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }

.card--feature { display: flex; flex-direction: column; gap: 0.9rem; }
.card--feature pre { font-size: 0.8rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }

th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }

th {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-faint);
}

td { color: var(--text-muted); }
td code { white-space: nowrap; }

.faq { margin: 2rem 0 0; border-top: 1px solid var(--border); }
.faq > div { padding: 1.35rem 0; border-bottom: 1px solid var(--border); }
.faq dt { margin-bottom: 0.5rem; font-weight: 600; color: var(--text); }
.faq dd { margin: 0; color: var(--text-muted); max-width: var(--measure); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.plan {
    padding: 1.75rem;
    background: var(--bg-raised);
    border: 1px solid var(--border-strong);
        max-width: 30rem;
}

.plan-price { margin: 0.75rem 0 1.25rem; font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { max-width: 24rem; }
.form p { margin-bottom: 1rem; }
.form label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 500; color: var(--text); }

.form input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-inset);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.alert {
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    background: color-mix(in srgb, var(--danger) 12%, var(--bg-raised));
    border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
    color: var(--text);
    font-size: 0.93rem;
}

/* ==========================================================================
   Tool form (spam-checker, future tools)
   ========================================================================== */

.tool-form {
    display: flex;
    gap: 0.6rem;
    max-width: 32rem;
    margin-top: 1.5rem;
}

.tool-form input {
    flex: 1;
    padding: 0.7rem 0.85rem;
    background: var(--bg-inset);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.tool-form input:focus-visible,
.tool-form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

.tool-form--wide {
    flex-direction: column;
    max-width: 48rem;
}

.tool-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg-inset);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font: var(--mono);
    font-size: 0.85rem;
    resize: vertical;
    min-height: 10rem;
}

.tool-hint {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ==========================================================================
   Accessibility and motion
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
