/* METRICA — metricahq.com
   Self-contained: no external fonts, no JavaScript, no third-party requests. */

:root {
    --ink: #0b0c0e;
    --panel: #121418;
    --panel-2: #16191e;
    --text: #edebe6;
    --muted: #a2a4ab;
    --line: rgba(237, 235, 230, 0.12);
    --line-strong: rgba(237, 235, 230, 0.24);
    --accent: #d8a657;
    --accent-soft: rgba(216, 166, 87, 0.14);
    --cool: #8ea0c4;
    --text-soft: #cfcdc7;
    --radius: 10px;
    --max: 1080px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    /* Anchor jumps (menu links, skip link) must clear the sticky header
       instead of hiding the heading behind it. */
    scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;

    /*
     * The field, back to front: a slow vertical lift so a long page is not one
     * flat black; a warm glow that anchors the top-right and a cool one that
     * lifts the bottom-left; and a fine grain over all of it. The grain is not
     * decoration — near-black gradients band badly on 8-bit panels, and the
     * noise is what stops that. All four layers are self-hosted and loop the
     * cell: no gradient maths at runtime, no request to anyone else.
     */
    background-color: var(--ink);
    background-image:
        url("/assets/grain.svg"),
        radial-gradient(1100px 640px at 88% -10%, rgba(216, 166, 87, 0.10), transparent 68%),
        radial-gradient(900px 560px at -8% 108%, rgba(124, 146, 190, 0.07), transparent 70%),
        linear-gradient(180deg, #0b0c0e 0%, #0c0e12 55%, #0d1014 100%);
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    background-size: 160px 160px, auto, auto, 100% 100%;
    background-attachment: scroll, fixed, fixed, scroll;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

a {
    color: inherit;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #16120a;
    padding: 10px 16px;
    z-index: 10;
    font-weight: 600;
}

.skip:focus {
    left: 16px;
    top: 16px;
}

/* ---- Header ---- */

.site-head {
    border-bottom: 1px solid var(--line);
    /* Stays up while the page moves, so the menu is still reachable after a jump.
       Translucent + blurred rather than solid, so the page field keeps showing
       through; the alpha is high enough that nav text stays legible without the
       blur too. */
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 12, 14, 0.86);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--accent);
    color: #16120a;
    font-size: 14px;
    font-weight: 700;
}

.brand-name {
    font-size: 17px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-size: 14px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    padding-block: 4px;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ---- Hero ---- */

.hero {
    padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
    /* No opaque fill here any more: the page field shows through, so the hero
       warms into it instead of sitting on its own rectangle of black. */
    background: radial-gradient(120% 90% at 82% -10%, rgba(216, 166, 87, 0.07), transparent 62%);
}

.eyebrow {
    margin: 0 0 22px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(34px, 6.2vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.028em;
    font-weight: 600;
}

h1 em {
    font-style: normal;
    color: var(--accent);
}

.lead {
    margin: 26px 0 0;
    max-width: 62ch;
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.62;
    color: var(--text-soft);
}

.hero-meta {
    margin: 26px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
}

.hero-meta::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 7px;
    background: var(--accent);
    color: #16120a;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: background-color 140ms ease, border-color 140ms ease;
}

.btn:hover {
    background: #e3b569;
    border-color: #e3b569;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    background: var(--panel-2);
    border-color: var(--muted);
}

.install[hidden] {
    display: none;
}

/* ---- Sections ---- */

.section {
    padding-block: clamp(52px, 7vw, 92px);
    border-top: 1px solid var(--line);
}

.section-head {
    max-width: 66ch;
}

.section-kicker {
    margin: 0 0 12px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cool);
}

h2 {
    margin: 0;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.022em;
    font-weight: 600;
}

.section p {
    max-width: 68ch;
}

.body-copy {
    margin: 18px 0 0;
    color: #cfcdc7;
}

.body-copy + .body-copy {
    margin-top: 14px;
}

/* ---- Chips ---- */

.chips {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips li {
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--muted);
    background: var(--panel);
}

/* ---- Cards ---- */

.grid {
    display: grid;
    gap: 16px;
    margin-top: 38px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    padding: 26px 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--muted);
}

.card-index {
    display: block;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--cool);
}

/* ---- Flow ---- */

.flow {
    list-style: none;
    margin: 38px 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    counter-reset: flow;
}

.flow li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 24px;
    background: var(--panel);
    font-size: 15px;
}

.flow li + li {
    border-top: 1px solid var(--line);
}

.flow li::before {
    counter-increment: flow;
    content: counter(flow);
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
}

/* ---- Checks ---- */

.checks {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
}

.checks li {
    position: relative;
    padding: 14px 0 14px 26px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: #cfcdc7;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.85;
}

.checks-intro {
    margin-top: 34px;
}

.note {
    margin: 26px 0 0;
    padding: 16px 18px;
    border-left: 2px solid var(--accent);
    background: var(--panel);
    font-size: 14px;
    color: var(--muted);
}

/* ---- Principles ---- */

.principle h3 {
    font-size: 16px;
}

.principle p {
    font-size: 14.5px;
}

/* ---- Status ---- */

.status-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.status-block {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-2);
}

.status-block h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.status-block p,
.status-block ul {
    margin: 0;
    font-size: 14.5px;
    color: #cfcdc7;
}

.status-block ul {
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

/* ---- Footer ---- */

.site-foot {
    border-top: 1px solid var(--line);
    padding-block: 40px;
    font-size: 13.5px;
    color: var(--muted);
}

.foot-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: baseline;
    justify-content: space-between;
}

.foot-inner p {
    margin: 0;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.foot-links a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
}

.foot-links a:hover {
    border-bottom-color: var(--accent);
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
    .grid-3,
    .grid-2,
    .status-grid,
    .checks {
        grid-template-columns: minmax(0, 1fr);
    }

    .checks {
        gap: 0;
    }
}

@media (max-width: 620px) {
    .head-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-nav {
        gap: 6px 18px;
    }

    .btn {
        width: 100%;
    }

    .hero-meta {
        display: flex;
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* ---- Legal pages (privacy, and the terms/cookies pages that follow) -------- */
.legal {
    padding-block: clamp(40px, 7vw, 72px) clamp(56px, 9vw, 96px);
}

.legal .wrap {
    max-width: 760px;
}

.legal h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
}

.legal .legal-meta {
    color: var(--cool);
    font-size: 14px;
    margin: 0 0 34px;
}

.legal .lede {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 10px;
}

.legal h2 {
    font-size: 20px;
    margin: 44px 0 10px;
}

.legal h3 {
    font-size: 16px;
    margin: 26px 0 6px;
}

.legal p {
    margin: 0 0 14px;
}

.legal ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.legal li {
    margin: 6px 0;
}

.legal a {
    color: var(--accent);
    text-decoration-color: rgba(216, 166, 87, 0.45);
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 20px;
    font-size: 14.5px;
}

.table-scroll {
    overflow-x: auto;
    margin: 8px 0 20px;
}

.legal th,
.legal td {
    text-align: left;
    padding: 10px 16px 10px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.legal th {
    color: var(--muted);
    font-weight: 600;
}

.legal code {
    font-size: 13.5px;
    color: var(--accent);
}

@media (max-width: 620px) {
    .legal table {
        font-size: 13.5px;
    }

    .legal th,
    .legal td {
        padding-right: 10px;
    }
}
