/* bookpress.io: dark, engineered, fast. One stylesheet, no JS, system fonts.
   The site itself is the pitch: nothing to load is the design language. */
:root {
    --bg: #08090d;
    --surface: #0f1118;
    --card: #12141d;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --ink: #eceef6;
    --muted: #9aa3b8;
    --dim: #6b7387;
    --accent: #5b8cff;
    --accent-hot: #7ea4ff;
    --violet: #8b5cf6;
    --wp: #bd7f42;          /* validated categorical pair for charts */
    --wp-opt: #c65db4;      /* optimized WordPress (page cache), validated alongside --wp/--accent */
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
    font: 16.5px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-hot); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
nav.main { display: flex; gap: 26px; align-items: center; font-size: 14.5px; }
nav.main a { color: var(--muted); }
nav.main a:hover { color: var(--ink); text-decoration: none; }
nav.main a.cta {
    color: #fff; padding: 8px 16px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    font-weight: 600;
}
nav.main a.cta:hover { filter: brightness(1.15); }

/* ---- hero ---- */
.hero {
    position: relative;
    padding: 96px 0 56px;
    overflow: hidden;
}
/* speed lines: barely-there horizontal streaks */
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(91, 140, 255, 0.06) 40%, transparent 75%),
        repeating-linear-gradient(180deg, transparent 0 96px, rgba(255, 255, 255, 0.025) 96px 97px);
    pointer-events: none;
}
.hero .wrap { position: relative; }
.kicker {
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent-hot);
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(38px, 5.6vw, 64px);
    line-height: 1.04; letter-spacing: -0.03em; font-weight: 800;
    max-width: 16ch;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent-hot), var(--violet));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.sub { margin: 26px 0 34px; font-size: 19px; color: var(--muted); max-width: 54ch; }
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 10px;
    font-weight: 600; font-size: 15.5px;
}
.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--violet));
    color: #fff;
}
.btn.primary:hover { filter: brightness(1.15); text-decoration: none; }
.btn.ghost { border: 1px solid var(--line-strong); color: var(--ink); margin-left: 10px; }
.btn.ghost:hover { border-color: var(--dim); text-decoration: none; }

/* ---- stat band ---- */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; margin: 60px 0 24px;
}
.stats > div { background: var(--surface); padding: 26px 24px; }
.stats .n {
    font: 700 34px/1.1 var(--mono);
    letter-spacing: -0.03em;
    color: var(--ink);
}
.stats .n small { font-size: 17px; color: var(--muted); font-weight: 600; }
.stats .l { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---- sections ---- */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seclabel {
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--dim); margin-bottom: 16px;
}
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.025em; line-height: 1.12; max-width: 32ch; }
.lead { color: var(--muted); margin: 16px 0 0; max-width: 64ch; font-size: 17.5px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 26px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.card .tick { color: var(--accent-hot); font-weight: 700; margin-right: 2px; }
code {
    font: 14px/1.5 var(--mono);
    background: rgba(91, 140, 255, 0.1);
    border: 1px solid rgba(91, 140, 255, 0.15);
    padding: 1px 6px; border-radius: 5px; color: var(--accent-hot);
    white-space: nowrap;
}

/* ---- benchmark figures ---- */
figure.bench {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 26px 26px 18px; margin: 26px 0 0;
}
figure.bench figcaption { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
figure.bench .sub { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
figure.bench svg { width: 100%; height: auto; display: block; }
.bench text { font-family: var(--mono); }
.bench .bar-bp { fill: var(--accent); }
.bench .bar-wp { fill: var(--wp); }
.bench .bar-wpopt { fill: var(--wp-opt); }
.bench .name { fill: var(--muted); font-size: 12px; }
.bench .val { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.bench .val-on { fill: #08090d; font-size: 12.5px; font-weight: 700; }
.bench .grp { fill: var(--ink); font-size: 13px; font-weight: 600; }
.bench-note { font-size: 13px; color: var(--dim); margin-top: 14px; max-width: 72ch; }
details.bench-table { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
details.bench-table summary { cursor: pointer; color: var(--dim); }
details.bench-table table { border-collapse: collapse; margin-top: 10px; }
details.bench-table td, details.bench-table th { border: 1px solid var(--line); padding: 6px 12px; text-align: left; }
details.bench-table th { color: var(--muted); font-weight: 600; }
details.bench-table td { font-family: var(--mono); }

/* ---- comparison table ---- */
table.compare {
    width: 100%; border-collapse: collapse; margin-top: 36px;
    background: var(--card); border: 1px solid var(--line);
    font-size: 15px; border-radius: 14px; overflow: hidden;
}
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare th {
    background: var(--surface);
    font: 600 12px/1.4 var(--mono);
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
table.compare tr:last-child td { border-bottom: none; }
table.compare td { color: var(--muted); }
table.compare td:first-child { color: var(--ink); }
table.compare td.win { color: var(--accent-hot); font-weight: 600; }

/* ---- FAQ ---- */
.faq details {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 22px; margin-top: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 16.5px; }
.faq summary:hover { color: var(--accent-hot); }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }

/* ---- prose pages ---- */
.prose { max-width: 720px; padding: 72px 0 24px; }
.prose h1 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -0.03em; line-height: 1.08; }
.prose h2 { font-size: 25px; margin-top: 52px; letter-spacing: -0.02em; }
.prose p { margin-top: 18px; color: var(--muted); }
.prose ul { margin: 18px 0 0 22px; color: var(--muted); }
.prose li { margin-top: 10px; }
.prose strong { color: var(--ink); }
.prose .kicker { margin: 0 0 18px; }

/* ---- footer + CTA ---- */
.cta-band {
    text-align: center; padding: 84px 0;
    background:
        radial-gradient(600px 300px at 50% 100%, rgba(91, 140, 255, 0.12), transparent),
        var(--bg);
    border-top: 1px solid var(--line);
}
.cta-band h2 { margin: 0 auto; }
.cta-band p { margin: 14px auto 30px; color: var(--muted); max-width: 52ch; }
footer.site { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--dim); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 22px; }
footer.site a { color: var(--dim); }
footer.site a:hover { color: var(--muted); }

@media (max-width: 640px) {
    nav.main a:not(.cta) { display: none; }
    .btn.ghost { margin-left: 0; margin-top: 10px; }
    .hero { padding-top: 64px; }
}
