/* Standby marketing site — no external assets, no fonts, no frameworks.
   Same constraint as the app itself: zero dependencies. */

:root {
    --ink: #14171a;
    --ink-soft: #4a545e;
    --ink-faint: #7a848e;
    --paper: #fbfaf8;
    --panel: #ffffff;
    --line: #e2ded8;
    --line-strong: #cdc7bf;
    --accent: #c8322a;
    --accent-soft: #fbeeec;
    --ok: #1f7a4d;
    --warn: #b5651d;
    --radius: 10px;
    --max: 1120px;
    --pad: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eceae7;
        --ink-soft: #a8b0b8;
        --ink-faint: #7f878f;
        --paper: #111314;
        --panel: #191c1e;
        --line: #2b2f33;
        --line-strong: #3b4045;
        --accent: #ff6a5c;
        --accent-soft: #2a1c1a;
        --ok: #4ec98a;
        --warn: #e0a050;
    }
}

:root[data-theme="dark"] {
    --ink: #eceae7;
    --ink-soft: #a8b0b8;
    --ink-faint: #7f878f;
    --paper: #111314;
    --panel: #191c1e;
    --line: #2b2f33;
    --line-strong: #3b4045;
    --accent: #ff6a5c;
    --accent-soft: #2a1c1a;
    --ok: #4ec98a;
    --warn: #e0a050;
}

:root[data-theme="light"] {
    --ink: #14171a;
    --ink-soft: #4a545e;
    --ink-faint: #7a848e;
    --paper: #fbfaf8;
    --panel: #ffffff;
    --line: #e2ded8;
    --line-strong: #cdc7bf;
    --accent: #c8322a;
    --accent-soft: #fbeeec;
    --ok: #1f7a4d;
    --warn: #b5651d;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 760px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 640; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.88em;
    font-variant-numeric: tabular-nums;
}

.lede { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.82rem; }

/* ---------- nav ---------- */

.nav {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex; align-items: center; gap: 24px;
    min-height: 62px;
}
.brand {
    display: inline-flex; align-items: center; gap: 9px;
    font-weight: 680; letter-spacing: -0.02em; font-size: 1.06rem;
    text-decoration: none;
}
.brand .mark {
    width: 22px; height: 22px; flex: none;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-links.compact { display: flex; gap: 16px; }
}

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: var(--radius);
    font-weight: 600; font-size: 1rem; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

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

section { padding-block: clamp(56px, 8vw, 96px); }
section.tight { padding-block: clamp(40px, 5vw, 64px); }
.band { background: var(--panel); border-block: 1px solid var(--line); }

.eyebrow {
    display: inline-block;
    font-size: 0.76rem; font-weight: 680; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}

.section-head { max-width: 660px; margin-bottom: 44px; }

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

.hero { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid {
    display: grid; gap: clamp(32px, 5vw, 60px);
    grid-template-columns: 1.15fr 0.85fr; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; max-width: 33em; }

.trust-line {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
    font-size: 0.9rem; color: var(--ink-soft);
}
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- phone mockup ---------- */

.phone {
    width: 100%; max-width: 320px; margin-inline: auto;
    aspect-ratio: 320 / 650;
    background: var(--panel);
    border: 1.5px solid var(--line-strong);
    border-radius: 34px;
    padding: 10px;
    box-shadow: 0 24px 60px -28px rgba(0,0,0,.42);
    position: relative;
}
.phone-screen {
    height: 100%; border-radius: 25px; overflow: hidden;
    background: var(--paper);
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
}
.phone-nav {
    padding: 26px 15px 9px; border-bottom: 1px solid var(--line);
    font-weight: 660; font-size: 0.95rem;
}
.phone-body { padding: 12px 13px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; flex: 1; }
.phone-foot {
    padding: 10px 13px 14px; border-top: 1px solid var(--line);
    background: var(--panel);
}

.check-row {
    border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
    display: flex; align-items: center; gap: 9px; font-size: 0.8rem;
}
.check-row .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill {
    font-size: 0.66rem; font-weight: 650; padding: 2px 7px; border-radius: 99px;
    border: 1px solid transparent; white-space: nowrap;
}
.pill-pass { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill-fail { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pill-na  { background: color-mix(in srgb, var(--ink-faint) 16%, transparent); color: var(--ink-soft); }

.fake-btn {
    background: var(--accent); color: #fff; text-align: center;
    border-radius: 8px; padding: 11px; font-weight: 640; font-size: 0.85rem;
}

/* ---------- tiles ---------- */

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.tile {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
}
.tile h3 { margin-bottom: 8px; }
.tile p:last-child { margin-bottom: 0; }
.tile .num {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
    color: var(--accent); display: block; margin-bottom: 12px;
}

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
    width: 100%; border-collapse: collapse; font-size: 0.93rem;
    min-width: 560px;
}
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: none; }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- lists ---------- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist .ico { flex: none; margin-top: 2px; }

.crosslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.crosslist li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); }

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

.price-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1.25fr; align-items: start; }
@media (max-width: 800px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px;
}
.price-card.featured { border-color: var(--accent); border-width: 1.5px; }
.price-amount { font-size: 2.6rem; font-weight: 690; letter-spacing: -0.03em; line-height: 1; }
.price-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }

/* ---------- report mockup ---------- */

.report {
    background: #fff; color: #16181a;
    border: 1px solid var(--line-strong); border-radius: 6px;
    padding: 22px; font-size: 0.72rem; line-height: 1.45;
    box-shadow: 0 18px 44px -24px rgba(0,0,0,.4);
}
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 1.5px solid #16181a; padding-bottom: 10px; margin-bottom: 12px; }
.report-title { font-weight: 700; font-size: 0.92rem; letter-spacing: -0.01em; }
.report table { min-width: 0; font-size: 0.68rem; }
.report th, .report td { padding: 5px 6px; border-bottom: 1px solid #e6e3de; color: #16181a; }
.report th { background: #f2efea; text-transform: none; letter-spacing: 0; font-size: 0.64rem; color: #4a545e; }
.report .flag { color: #c8322a; font-weight: 640; }
.report-foot { margin-top: 12px; padding-top: 9px; border-top: 1px solid #e6e3de; color: #6a737c; font-size: 0.63rem; display: flex; justify-content: space-between; gap: 10px; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    padding: 20px 40px 20px 0; cursor: pointer; font-weight: 600;
    list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; font-weight: 400; color: var(--ink-faint); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- callout ---------- */

.callout {
    background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    border-radius: var(--radius); padding: 24px 26px;
}
.callout h3 { margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }
.doc .callout { margin-bottom: 36px; }
.doc .callout + .toc { margin-top: 0; }

.note {
    border-left: 3px solid var(--line-strong); padding: 4px 0 4px 16px;
    color: var(--ink-soft); font-size: 0.94rem;
}

/* ---------- cta ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { max-width: 46ch; margin-inline: auto 	auto; margin-bottom: 30px; }
.cta-band .btn-row { justify-content: center; }

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

footer {
    border-top: 1px solid var(--line);
    padding-block: 48px 40px;
    font-size: 0.9rem; color: var(--ink-soft);
    background: var(--panel);
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 12px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.legal {
    margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
    font-size: 0.8rem; color: var(--ink-faint); display: grid; gap: 10px;
}

/* ---------- doc pages ---------- */

.doc { padding-block: clamp(44px, 6vw, 72px); }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.doc .updated { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.32rem; margin-top: 40px; padding-top: 8px; }
.doc h3 { font-size: 1.05rem; margin-top: 26px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc .toc {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 40px;
}
.doc .toc ol { margin: 0; }

.skip {
    position: absolute; left: -9999px;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }
