/* HookCastle — small CSS for a small site
   ~ written incrementally over a few late evenings.
   Plain CSS. Fonts via Bunny Fonts (GDPR-friendly, EU-CDN). */

@import url('https://fonts.bunny.net/css?family=ibm-plex-sans:400,500,600|ibm-plex-mono:400,500&display=swap');

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

:root {
    --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --text:        #15181d;
    --text-2:      #2b313b;
    --muted:       #5a6472;
    --muted-2:     #8a909a;
    --line:        #e3e6ec;
    --line-2:      #eef0f4;
    --bg:          #fff;
    --bg-2:        #f7f8fa;
    --bg-3:        #eef1f5;

    --blue:        #1f3da3;
    --blue-2:      #16308a;
    --blue-soft:   #ebeffb;

    --green:       #0d6e4a;
    --green-soft:  #e3f2eb;
    --amber:       #a85f00;
    --amber-soft:  #fbefdb;
    --red:         #a8221c;
    --red-soft:    #fbeae9;

    --code-bg:     #161b25;
    --code-bg-2:   #11151c;
    --code-fg:     #d4dbe8;
    --code-mute:   #6e7892;
    --code-blue:   #93b6ff;
    --code-green:  #b3d990;
    --code-orange: #e89e7a;
    --code-yellow: #e4c38a;

    --r-sm: 3px;
    --r:    5px;
    --r-lg: 8px;
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga", "calt";
}

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

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

::selection { background: #d8e0f5; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

/* ── nav ───────────────────────────────────────────────── */
.nav { border-bottom: 1px solid var(--line-2); background: #fff; }
.nav-row {
    max-width: 1080px; margin: 0 auto;
    padding: 14px 22px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-weight: 600; font-size: 15.5px;
    letter-spacing: -0.005em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 20px; height: 20px; }
.brand sup {
    font-size: 10px; color: var(--muted-2);
    font-weight: 500; margin-left: 2px; vertical-align: super;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: var(--text-2);
    padding: 7px 11px;
    font-size: 14px;
    border-radius: var(--r);
}
.nav-links a:hover { background: var(--bg-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-2); font-weight: 500; }
.nav-links .login {
    margin-left: 6px;
    background: var(--text);
    color: #fff;
    padding: 7px 14px;
    font-weight: 500;
}
.nav-links .login:hover { background: var(--text-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* ── buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    border-radius: var(--r);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-line {
    background: #fff; color: var(--text);
    border-color: var(--line);
}
.btn-line:hover { border-color: var(--text); color: var(--text); }
.btn-link { background: transparent; color: var(--text); padding: 9px 4px; }
.btn-link:hover { color: var(--blue); }
.btn-full { width: 100%; justify-content: center; padding: 11px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── hero (asymmetric, dev-feel) ────────────────────────── */
.hero { padding: 64px 0 32px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.tagline {
    font-size: 12.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    display: inline-block;
}
.tagline .ver {
    background: var(--blue-soft);
    color: var(--blue);
    padding: 1px 7px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 11.5px;
    margin-right: 10px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.hero h1 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-bottom: 16px;
    color: var(--text);
}
.lede {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 520px;
}
.hero .ctas {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero .small-note {
    font-size: 13px; color: var(--muted-2);
}
.hero .small-note code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-2);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--line-2);
}

/* ── code window (used in hero & docs) ──────────────────── */
.codewin {
    background: var(--code-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 12px 28px -8px rgba(15,23,42,0.18);
    border: 1px solid #20283a;
}
.codewin-bar {
    display: flex; align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #232a3c;
    background: #14192a;
    color: #6c7796;
    font: 12px var(--font-mono);
    gap: 10px;
}
.codewin-bar .file { color: #9aa6c2; }
.codewin-bar .lang {
    margin-left: auto;
    font-size: 11px;
    color: #6c7796;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.codewin pre {
    margin: 0;
    padding: 16px 18px;
    background: var(--code-bg);
    color: var(--code-fg);
    overflow-x: auto;
    font: 13px/1.65 var(--font-mono);
}

pre {
    background: var(--code-bg);
    color: var(--code-fg);
    padding: 16px 18px;
    border-radius: 8px;
    overflow-x: auto;
    font: 13px/1.65 var(--font-mono);
}
pre code { background: transparent; padding: 0; border: 0; color: inherit; font: inherit; }

:not(pre) > code {
    font: 0.86em var(--font-mono);
    background: var(--bg-3);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--text);
}

kbd {
    font: 11px var(--font-mono);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--text-2);
    vertical-align: middle;
}

.t-c { color: var(--code-mute); font-style: italic; }
.t-k { color: var(--code-blue); }
.t-s { color: var(--code-green); }
.t-n { color: var(--code-orange); }
.t-y { color: var(--code-yellow); }
.t-m { color: var(--code-mute); }

/* ── why blocks (anti-AI: single column, dense) ─────────── */
.why {
    padding: 56px 0;
    border-top: 1px solid var(--line-2);
}
.why h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: -0.012em;
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 56px;
}
.why-block h3 {
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.why-block p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
}
.why-block code {
    font-size: 12.5px;
}

/* ── how it works (asymmetric, prose-heavy) ─────────────── */
.how { padding: 56px 0; border-top: 1px solid var(--line-2); }
.how h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.012em; }
.how > .wrap > p {
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 580px;
}
.how-flow {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px 28px;
    margin-top: 20px;
}
.how-flow dt {
    font-weight: 600;
    color: var(--text);
    font-size: 14.5px;
    padding-top: 1px;
}
.how-flow dt code {
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 6px;
    color: var(--blue);
}
.how-flow dd {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    border-left: 1px solid var(--line);
    padding-left: 22px;
    margin-left: 0;
    padding-bottom: 8px;
}

/* ── pricing ────────────────────────────────────────────── */
.pricing { padding: 56px 0; border-top: 1px solid var(--line-2); }
.pricing-head {
    margin-bottom: 36px;
}
.pricing-head h2 {
    font-size: 22px; font-weight: 600;
    letter-spacing: -0.012em;
    margin-bottom: 8px;
}
.pricing-head p { color: var(--muted); max-width: 580px; }

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}
.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    display: flex; flex-direction: column;
    min-height: 100%;
}
.plan.recommended {
    border-color: var(--text);
    position: relative;
}
.plan.recommended::before {
    content: "Recommended";
    position: absolute;
    top: -9px; left: 22px;
    background: var(--text);
    color: #fff;
    padding: 2px 9px 3px;
    border-radius: 3px;
    font: 500 10.5px var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.plan h3 {
    font-size: 14.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 12px;
}
.plan .price {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.plan .price small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    margin-left: 2px;
}
.plan .price-sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 18px;
    min-height: 18px;
}
.plan ul {
    list-style: none;
    padding: 14px 0 0;
    border-top: 1px solid var(--line-2);
    flex: 1;
    margin-bottom: 18px;
}
.plan ul li {
    font-size: 14px;
    padding: 5px 0;
    color: var(--text-2);
}
.plan ul li::before {
    content: "—";
    color: var(--muted-2);
    margin-right: 9px;
}
.plan .btn { width: 100%; justify-content: center; }

.plan-note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 18px;
    text-align: left;
}

/* ── faq (no chevron animation, plain details) ──────────── */
.faq { padding: 56px 0; border-top: 1px solid var(--line-2); }
.faq h2 { font-size: 22px; font-weight: 600; margin-bottom: 24px; letter-spacing: -0.012em; }
.faq details {
    border-bottom: 1px solid var(--line-2);
    padding: 14px 2px;
}
.faq details > summary {
    cursor: pointer;
    font-weight: 550;
    font-size: 15px;
    list-style: none;
    color: var(--text);
    padding-right: 24px;
    position: relative;
}
.faq details > summary::-webkit-details-marker { display: none; }
.faq details > summary::after {
    content: "+";
    position: absolute; right: 0; top: 0;
    color: var(--muted-2);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
}
.faq details[open] > summary::after { content: "−"; }
.faq details > div {
    color: var(--muted);
    margin-top: 8px;
    font-size: 14.5px;
    padding-right: 24px;
    line-height: 1.6;
}

/* ── inline aside / call-out (used end of homepage) ─────── */
.endnote {
    margin: 64px 0 0;
    padding: 28px 28px;
    background: var(--bg-2);
    border-radius: var(--r-lg);
    border: 1px solid var(--line-2);
    color: var(--text-2);
}
.endnote h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.endnote p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.endnote p:last-child { margin-bottom: 0; }

/* ── footer ─────────────────────────────────────────────── */
footer {
    margin-top: 80px;
    padding: 48px 0 28px;
    border-top: 1px solid var(--line-2);
    background: #fff;
}
.foot {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.foot-brand p {
    color: var(--muted);
    font-size: 13.5px;
    margin: 10px 0 14px;
    max-width: 260px;
    line-height: 1.55;
}
.foot-brand .small {
    font-size: 12.5px;
    color: var(--muted-2);
    line-height: 1.6;
}
.foot h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted-2);
    margin-bottom: 12px;
    font-weight: 600;
}
.foot a {
    display: block;
    color: var(--text-2);
    font-size: 13.5px;
    padding: 4px 0;
    text-decoration: none;
}
.foot a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--line-2);
    display: flex; justify-content: space-between; align-items: center;
    color: var(--muted);
    font-size: 12.5px;
    flex-wrap: wrap; gap: 10px;
}
.foot-bottom .links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); margin-left: 14px; }
.foot-bottom .links a:hover { text-decoration-color: var(--muted); }

/* ── auth pages ─────────────────────────────────────────── */
.auth-page {
    background: var(--bg-2);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 32px 16px;
}
.auth-container { width: 100%; max-width: 400px; }
.auth-brand {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text);
    font-weight: 600; font-size: 17px;
    margin: 0 auto 22px;
    width: fit-content;
}
.auth-brand-row { text-align: center; }
.auth-box {
    background: #fff;
    padding: 28px 28px 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
}
.auth-box h1 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 4px;
}
.auth-sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 22px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 550;
    margin-bottom: 5px;
    color: var(--text-2);
}
.form-group input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font: inherit;
    font-size: 14px;
    background: #fff;
}
.form-group input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(31,61,163,0.18);
}
.form-options {
    display: flex; justify-content: space-between; align-items: center;
    margin: 14px 0 18px;
    font-size: 13px;
}
.checkbox {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted);
    cursor: pointer;
}
.checkbox input { accent-color: var(--blue); }
.error-message {
    margin-top: 12px;
    padding: 9px 12px;
    background: var(--red-soft);
    border: 1px solid #f1c0bc;
    color: #7a1a14;
    border-radius: var(--r);
    font-size: 13px;
}
.auth-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line-2);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.auth-foot a { color: var(--muted); text-decoration: underline; }
.auth-bottom {
    text-align: center;
    color: var(--muted-2);
    font-size: 12px;
    margin-top: 20px;
}

/* ── status page ────────────────────────────────────────── */
.status-wrap { max-width: 820px; margin: 0 auto; padding: 40px 22px 64px; }
.status-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    background: var(--green-soft);
    border: 1px solid #b8dfcd;
    border-radius: var(--r-lg);
    margin-bottom: 6px;
}
.status-banner h1 {
    font-size: 18px;
    font-weight: 600;
    color: #0d5e41;
}
.status-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}
.status-time { color: var(--muted); font-size: 12.5px; margin-bottom: 28px; }
.status-grid {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.svc-row {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr auto;
    align-items: center;
    gap: 16px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line-2);
    font-size: 14px;
}
.svc-row:last-child { border-bottom: 0; }
.svc-row .name { color: var(--text); }
.svc-row .name code {
    margin-left: 6px;
    color: var(--muted);
    font-size: 12px;
    background: transparent;
    border: 0;
    padding: 0;
}
.svc-row .uptime {
    display: flex; gap: 1px;
    height: 18px;
    align-items: stretch;
}
.svc-row .uptime i {
    width: 4px;
    background: #69b894;
    border-radius: 1px;
}
.svc-row .uptime i.warn { background: #d9a14e; }
.svc-row .uptime i.bad { background: #c47266; }
.svc-pill {
    font-size: 11.5px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
}
.svc-pill.ok { background: var(--green-soft); color: var(--green); }
.svc-pill.warn { background: var(--amber-soft); color: var(--amber); }

.uptime-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}
.uptime-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px 18px;
}
.uptime-card .num {
    font-size: 19px; font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.uptime-card .lbl {
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 2px;
}

.status-section-h {
    font-size: 16px;
    font-weight: 600;
    margin: 32px 0 8px;
}
.incident { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.incident:last-child { border-bottom: 0; }
.incident-head {
    display: flex; gap: 10px; align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.incident-head strong { font-size: 14.5px; color: var(--text); font-weight: 600; }
.incident-date { color: var(--muted-2); font-size: 12.5px; }
.incident-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.incident-tag.resolved { background: var(--green-soft); color: var(--green); }
.incident-tag.completed { background: var(--blue-soft); color: var(--blue); }
.incident p { color: var(--muted); font-size: 13.5px; margin-top: 6px; line-height: 1.6; }

/* ── docs ───────────────────────────────────────────────── */
.docs-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
    gap: 48px;
}
.docs-side {
    padding: 28px 0;
    position: sticky; top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--line-2);
    margin-right: -8px;
    padding-right: 16px;
}
.docs-side h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    margin: 18px 0 4px;
    font-weight: 600;
}
.docs-side h4:first-child { margin-top: 0; }
.docs-side a {
    display: block;
    color: var(--text-2);
    font-size: 13.5px;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    margin: 1px 0;
    text-decoration: none;
}
.docs-side a:hover { background: var(--bg-2); color: var(--text); }
.docs-side a.active {
    background: var(--bg-3);
    color: var(--text);
    font-weight: 500;
}
.docs-content {
    padding: 36px 0 80px;
    max-width: 720px;
    min-width: 0;
}
.docs-content h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-bottom: 8px;
}
.docs-content > p:first-of-type {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 24px;
}
.docs-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 44px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    scroll-margin-top: 24px;
}
.docs-content h3 {
    font-size: 13px;
    margin-top: 22px;
    margin-bottom: 6px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.docs-content p { margin-bottom: 14px; color: var(--text-2); }
.docs-content ul, .docs-content ol { margin: 12px 0 14px 22px; }
.docs-content li { margin-bottom: 5px; color: var(--text-2); }
.docs-content pre { margin: 14px 0; }
.docs-content hr { border: 0; border-top: 1px solid var(--line-2); margin: 40px 0; }
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13.5px;
}
.docs-content th, .docs-content td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line-2);
}
.docs-content th {
    background: var(--bg-2);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.docs-content blockquote {
    border-left: 3px solid var(--line);
    padding: 4px 16px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 14px;
}
.method {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font: 600 11.5px var(--font-mono);
    letter-spacing: 0.03em;
    margin-right: 7px;
    vertical-align: middle;
}
.method.get { background: #e1ebfa; color: #1f3da3; }
.method.post { background: #e0f1e8; color: #0d5e41; }
.method.del { background: #f8e3e1; color: #7a1a14; }
.method.put { background: #faecd2; color: #854700; }

/* ── changelog ──────────────────────────────────────────── */
.cl-wrap { max-width: 720px; margin: 0 auto; padding: 40px 22px 80px; }
.cl-wrap h1 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-bottom: 6px;
}
.cl-wrap > p.lede {
    color: var(--muted);
    font-size: 15.5px;
    max-width: 560px;
    margin-bottom: 36px;
}
.cl {
    border-left: 1px solid var(--line);
    padding: 0 0 24px 22px;
    margin-left: 6px;
    position: relative;
}
.cl::before {
    content: "";
    position: absolute; left: -5px; top: 6px;
    width: 9px; height: 9px;
    background: #fff;
    border: 2px solid var(--blue);
    border-radius: 50%;
}
.cl-meta {
    display: flex; gap: 12px; align-items: baseline;
    margin-bottom: 6px;
}
.cl-ver {
    font: 600 12.5px var(--font-mono);
    background: var(--bg-3);
    padding: 1px 7px;
    border-radius: 3px;
    color: var(--text);
}
.cl-date { color: var(--muted-2); font-size: 12.5px; }
.cl h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.005em;
}
.cl h3 {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin: 12px 0 4px;
    font-weight: 600;
}
.cl ul { margin: 4px 0 8px 18px; }
.cl ul li { font-size: 14px; color: var(--text-2); margin-bottom: 3px; }
.cl p { color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.cl code {
    font-size: 12.5px;
}

/* ── about ──────────────────────────────────────────────── */
.about-wrap { max-width: 720px; margin: 0 auto; padding: 56px 22px 80px; }
.about-wrap h1 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-bottom: 14px;
}
.about-wrap p.lede {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.55;
}
.about-wrap h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 10px;
}
.about-wrap p { color: var(--text-2); margin-bottom: 14px; line-height: 1.65; }
.about-wrap ul { margin: 12px 0 14px 22px; }
.about-wrap ul li { color: var(--text-2); margin-bottom: 4px; }
.about-meta {
    margin-top: 40px;
    padding: 20px 22px;
    background: var(--bg-2);
    border-radius: var(--r-lg);
    font-size: 14px;
    border: 1px solid var(--line-2);
}
.about-meta dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 16px;
}
.about-meta dt { color: var(--muted); }
.about-meta dd { color: var(--text-2); }

/* ── legal ──────────────────────────────────────────────── */
.legal-wrap { max-width: 700px; margin: 0 auto; padding: 48px 22px 72px; }
.legal-wrap h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}
.legal-wrap .updated {
    color: var(--muted);
    font-size: 12.5px;
    margin-bottom: 28px;
}
.legal-wrap h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 8px;
}
.legal-wrap p, .legal-wrap li {
    color: var(--text-2);
    font-size: 14.5px;
    margin-bottom: 10px;
    line-height: 1.7;
}
.legal-wrap ul { margin-left: 22px; }

/* ── 404 ────────────────────────────────────────────────── */
.err {
    min-height: 70vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 48px 22px;
}
.err .code {
    font: 600 64px var(--font-mono);
    color: var(--muted-2);
    letter-spacing: -0.02em;
}
.err h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 12px 0 6px;
}
.err p { color: var(--muted); margin-bottom: 20px; max-width: 420px; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .why-grid { grid-template-columns: 1fr; gap: 28px; }
    .plans { grid-template-columns: 1fr; max-width: 460px; }
    .foot { grid-template-columns: 1fr 1fr; gap: 28px; }
    .foot-brand { grid-column: span 2; }
    .docs-grid { grid-template-columns: 1fr; gap: 0; }
    .docs-side {
        position: static; height: auto; border-right: 0;
        border-bottom: 1px solid var(--line-2);
        padding: 14px 0;
    }
    .docs-side h4 { display: inline-block; margin-right: 8px; }
    .docs-side a { display: inline-block; padding: 3px 6px; }
    .how-flow { grid-template-columns: 1fr; gap: 6px 0; }
    .how-flow dd { padding-left: 0; border-left: 0; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
    .uptime-row { grid-template-columns: 1fr; }
    .about-meta dl { grid-template-columns: 1fr; gap: 0; }
    .about-meta dt { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; left: 0; right: 0;
        top: 56px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 10px 22px 14px;
        gap: 0;
        align-items: stretch;
        z-index: 50;
    }
    .nav-links.open a { padding: 9px 6px; border-radius: 0; }
    .hero { padding: 40px 0 16px; }
    .why, .how, .pricing, .faq { padding: 40px 0; }
    .foot { grid-template-columns: 1fr; }
    .foot-brand { grid-column: span 1; }
    .svc-row { grid-template-columns: 1fr auto; }
    .svc-row .uptime { display: none; }
}
