/* Kuthu — one stylesheet for every page. */

/* Space Grotesk, served by us rather than by Google.
 *
 * Loading a font from fonts.googleapis.com sends every visitor's IP address to
 * Google before they have consented to anything, which a German court has held
 * to be a GDPR violation - and which has since been the basis of a great many
 * nuisance claims. So the font is self-hosted, and until the files are in
 * place the stack below falls through to the system font, which is why nothing
 * looks broken while assets/fonts/ is empty.
 *
 * To add it: download the Space Grotesk woff2 files (SIL Open Font License, so
 * redistribution is fine) into site/assets/fonts/ with these names. The rule
 * activates itself; no other change is needed.
 */
/* Space Grotesk, when the files are actually here.
 *
 * This block is commented out because site/assets/fonts/ is empty, and a
 * declared @font-face with no file behind it makes the browser request it
 * anyway: two 404s on every page load, on every page. Nothing looks broken -
 * the family stack below falls through to the system font - but a launch site
 * that 404s twice per visit is the kind of detail people notice in an audit
 * and never mention to you.
 *
 * To turn the typeface on: drop SpaceGrotesk-Variable.woff2 (and optionally
 * SpaceGrotesk-Regular.woff2) into site/assets/fonts/, uncomment this block,
 * and deploy. It is OFL-licensed, so shipping the file is fine. Do not go
 * back to the Google Fonts CDN - that sends every visitor's IP to Google
 * before they have consented to anything.
 *
@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2-variations"),
        url("/assets/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
*/

:root {
    --bg: #07070c;
    --bg-soft: #0e0e18;
    --panel: #12121f;
    --line: #23233a;
    --ink: #eceaf5;
    --ink-dim: #a3a0b8;
    --ink-faint: #6e6b85;
    --hot: #ff3d7f;
    --warm: #ffb03a;
    --cool: #6c5cff;
    --ok: #3ddc97;
    --radius: 14px;
    --wrap: 1080px;
    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--warm);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: #1a1a2b;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.12em 0.42em;
    color: #ffd9a0;
}

pre {
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.6;
    background: #0c0c16;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    overflow-x: auto;
    color: #d6d3e8;
}

pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 760px;
}

/* ---------- header ---------- */

.top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(7, 7, 12, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
}

.brand {
    font-weight: 700;
    font-size: 1.24rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand:hover {
    text-decoration: none;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hot), var(--warm));
    box-shadow: 0 0 14px rgba(255, 61, 127, 0.75);
}

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

.nav a {
    color: var(--ink-dim);
    font-size: 0.94rem;
    font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: none;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--hot), var(--warm));
    color: #14020a;
    box-shadow: 0 8px 26px rgba(255, 61, 127, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 34px rgba(255, 61, 127, 0.42);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

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

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 84px;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% 0 auto -10%;
    height: 620px;
    background: radial-gradient(
            48% 52% at 22% 40%,
            rgba(255, 61, 127, 0.24),
            transparent 70%
        ),
        radial-gradient(
            42% 48% at 74% 30%,
            rgba(108, 92, 255, 0.24),
            transparent 70%
        ),
        radial-gradient(
            38% 44% at 52% 78%,
            rgba(255, 176, 58, 0.16),
            transparent 70%
        );
    filter: blur(18px);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--warm);
    border: 1px solid rgba(255, 176, 58, 0.35);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 24px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0 0 22px;
    max-width: 16ch;
}

.lede {
    font-size: clamp(1.08rem, 2.1vw, 1.32rem);
    color: var(--ink-dim);
    max-width: 58ch;
    margin: 0 0 34px;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--ink-faint);
}

/* ---------- sections ---------- */

section {
    padding: 78px 0;
}

section + section {
    border-top: 1px solid var(--line);
}

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    letter-spacing: -0.028em;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 16px;
}

h3 {
    font-size: 1.16rem;
    font-weight: 650;
    letter-spacing: -0.012em;
    margin: 0 0 8px;
}

h4 {
    font-size: 1rem;
    font-weight: 650;
    margin: 0 0 6px;
}

.section-lede {
    color: var(--ink-dim);
    max-width: 62ch;
    margin: 0 0 44px;
}

/* ---------- grids ---------- */

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.card p {
    color: var(--ink-dim);
    margin: 0;
    font-size: 0.97rem;
}

.card .glyph {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}

/* ---------- numbered steps ---------- */

.steps {
    counter-reset: step;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps li {
    counter-increment: step;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hot), var(--cool));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.steps p {
    color: var(--ink-dim);
    font-size: 0.96rem;
    margin: 0;
}

/* ---------- pricing ---------- */

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.tier {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tier.featured {
    border-color: rgba(255, 61, 127, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 61, 127, 0.18),
        0 18px 50px rgba(255, 61, 127, 0.12);
}

.tier .tag {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hot);
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 6px 0 4px;
}

.price small {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-faint);
    letter-spacing: 0;
}

.tier ul {
    list-style: none;
    padding: 0;
    margin: 22px 0 26px;
    display: grid;
    gap: 10px;
}

.tier li {
    padding-left: 26px;
    position: relative;
    font-size: 0.95rem;
    color: var(--ink-dim);
}

.tier li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ok);
    font-weight: 700;
}

.tier .btn {
    margin-top: auto;
    width: 100%;
}

/* ---------- platform cards ---------- */

.platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.platform {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
}

.platform .glyph {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 14px;
}

.platform p {
    color: var(--ink-dim);
    font-size: 0.95rem;
    margin: 0 0 18px;
}

.platform .badge {
    margin-top: auto;
    align-self: flex-start;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 11px;
    border: 1px solid;
}

.badge-now {
    color: var(--ok);
    border-color: rgba(61, 220, 151, 0.4);
    background: rgba(61, 220, 151, 0.1);
}

.badge-soon {
    color: var(--ink-faint);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
}

/* ---------- tables ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 32px;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

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

td:first-child {
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 0.88rem;
    color: var(--warm);
}

/* ---------- callouts ---------- */

.note {
    border-left: 3px solid var(--cool);
    background: rgba(108, 92, 255, 0.08);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 24px 0;
    color: var(--ink-dim);
    font-size: 0.95rem;
}

.note strong {
    color: var(--ink);
}

.note.warn {
    border-left-color: var(--warm);
    background: rgba(255, 176, 58, 0.08);
}

/* ---------- docs layout ---------- */

.doc {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 52px;
    align-items: start;
    padding: 56px 0 90px;
}

.toc {
    position: sticky;
    top: 92px;
    font-size: 0.93rem;
}

.toc h4 {
    color: var(--ink-faint);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.toc a {
    display: block;
    color: var(--ink-dim);
    padding: 5px 0;
}

.toc a:hover {
    color: var(--ink);
    text-decoration: none;
}

.prose h2 {
    scroll-margin-top: 90px;
    margin-top: 52px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 32px;
}

.prose p,
.prose li {
    color: var(--ink-dim);
}

.prose strong {
    color: var(--ink);
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose li {
    margin-bottom: 7px;
}

/* ---------- footer ---------- */

footer {
    border-top: 1px solid var(--line);
    padding: 42px 0 60px;
    color: var(--ink-faint);
    font-size: 0.9rem;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

footer nav {
    margin-left: auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

footer a {
    color: var(--ink-dim);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .grid-3,
    .steps,
    .tiers,
    .platforms {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .doc {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .toc {
        position: static;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 18px 20px;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 0.88rem;
    }

    .hero {
        padding: 66px 0 58px;
    }

    section {
        padding: 58px 0;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .nav .hide-sm {
        display: none;
    }

    .btn {
        width: 100%;
    }

    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    /* A nowrap first column is what pushes a table past the viewport. */
    table {
        font-size: 0.88rem;
    }

    th,
    td {
        padding: 9px 10px;
    }

    td:first-child {
        white-space: normal;
        word-break: break-word;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }
}
