/* Temper site. Steel neutrals, one signal-orange accent, Geist for display. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --ink: #1b1e24;
  --ink-2: #353a44;
  --muted: #5d6472;
  --line: #dde0e6;
  --line-strong: #c7ccd5;
  --accent: #e8541a;
  --accent-hover: #d14812;
  --accent-ink: #ffffff;
  --accent-text: #b93f0c;
  --accent-soft: #fde8de;
  --ok: #1d7f47;
  --ok-soft: #dcf2e4;
  --warn: #93600f;
  --warn-soft: #fbefd5;
  --bad: #b3261e;
  --bad-soft: #fbe1df;
  --info: #1f5fbf;
  --info-soft: #e1ecfb;
  --code-bg: #16191e;
  --code-ink: #d9dde3;
  --shadow: 0 1px 2px rgb(20 24 31 / 6%), 0 8px 24px -12px rgb(20 24 31 / 18%);
  --radius: 10px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Geist', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1114; --surface: #171a1f; --surface-2: #1f2329; --ink: #e7e9ec; --ink-2: #c9cdd4; --muted: #9ba2ae;
    --line: #2b3038; --line-strong: #3a404a; --accent: #ff6a2b; --accent-hover: #ff7f47; --accent-ink: #1a0d06;
    --accent-text: #ff8a55; --accent-soft: #3a2116; --ok: #5ccf8a; --ok-soft: #173325; --warn: #e5b45a; --warn-soft: #342a15;
    --bad: #ff8077; --bad-soft: #3b1b19; --info: #8db8ff; --info-soft: #18243a; --code-bg: #0b0d10; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px -14px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0f1114; --surface: #171a1f; --surface-2: #1f2329; --ink: #e7e9ec; --ink-2: #c9cdd4; --muted: #9ba2ae;
  --line: #2b3038; --line-strong: #3a404a; --accent: #ff6a2b; --accent-hover: #ff7f47; --accent-ink: #1a0d06;
  --accent-text: #ff8a55; --accent-soft: #3a2116; --ok: #5ccf8a; --ok-soft: #173325; --warn: #e5b45a; --warn-soft: #342a15;
  --bad: #ff8077; --bad-soft: #3b1b19; --info: #8db8ff; --info-soft: #18243a; --code-bg: #0b0d10; --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px -14px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, .h2, .h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.025em; }
.h2, .prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; background: var(--surface); padding: 6px 10px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 0.74rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.mt { margin-top: 56px; margin-bottom: 18px; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 28px; }
.section-admin .topbar-inner { max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 1.05rem var(--display); letter-spacing: -0.01em; }
/* A faint light edge keeps the dark square from melting into a dark page; on a light page it can't be seen. */
.logo-mark { width: 28px; height: 28px; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }
.brand-tag { font: 600 0.7rem var(--font); letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 3px 7px; border-radius: 5px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 7px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.user-menu { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.user-menu form { margin: 0; }

/* ---- buttons and fields ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 0.94rem/1 var(--font); padding: 10px 16px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); opacity: 0.88; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn-sm { padding: 7px 11px; font-size: 0.86rem; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.field { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
input:not([type='checkbox']):not([type='hidden']), select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stack-lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cols > *, .card { min-width: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.span-2 { grid-column: span 2; }

/* ---- layout ---- */
.main { max-width: 1160px; margin: 0 auto; padding: 40px 20px 80px; }
.main-wide { max-width: 1320px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-head .muted { margin-top: 6px; }
.page-head.center { justify-content: center; text-align: center; }
.page-head.center .lede { margin: 12px auto 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions form { margin: 0; }
.section-title { font: 700 1.05rem var(--display); margin: 36px 0 14px; display: flex; gap: 12px; align-items: baseline; }
.section-title a { font: 500 0.85rem var(--font); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cols-main { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.cols > section > .section-title:first-child, .cols-main > aside > .section-title:first-child { margin-top: 0; }
.crumbs { font-size: 0.88rem; margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.flash { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); padding: 12px 16px; border-radius: 9px; margin-bottom: 24px; font-weight: 500; }
.note { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 0.92rem; }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 0.94rem; }
.help { margin-top: 40px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.card-head .muted { margin-top: 4px; }
.card-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-foot form { margin: 0; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty-state { text-align: center; padding: 48px 24px; display: grid; gap: 12px; justify-items: center; }

/* ---- pills, key, meter ---- */
.pill { display: inline-flex; align-items: center; font: 600 0.74rem/1 var(--font); padding: 5px 8px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-muted { background: var(--surface-2); color: var(--muted); }
.key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface-2); border-radius: 8px; padding: 8px 8px 8px 14px; }
.key code { font-size: 0.98rem; letter-spacing: 0.03em; margin-right: auto; word-break: break-all; }
.key-hidden { display: grid; gap: 4px; padding: 12px 14px; }
.key { flex-wrap: nowrap; gap: 2px; }
.key { gap: 6px; }
.key-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.key-btn:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); color: var(--ink); }
.key-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.key-btn .i-hide, .key-btn .i-done, .key-btn[aria-pressed="true"] .i-show, .key-btn.is-done .i-copy { display: none; }
.key-btn[aria-pressed="true"] .i-hide, .key-btn.is-done .i-done { display: block; }
.key-btn.is-done { color: var(--ok); }
.meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 12px; font-size: 0.94rem; }
.bar { flex: 0 0 140px; height: 6px; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; appearance: none; }
.bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; }
.bar::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.bar::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.meter .muted { flex-basis: 100%; }
.download { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.download .muted { margin-top: 4px; max-width: 64ch; }
.site { font-family: var(--mono); font-size: 0.92rem; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; font: 600 0.76rem var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td form { margin: 0; }
.table th.right, .table td.right { text-align: right; }
.table td a { color: var(--ink); text-decoration-color: var(--line-strong); }
.table td a:hover { color: var(--accent-text); }
.license .table-wrap { box-shadow: none; }
.compare .c { text-align: center; width: 1%; white-space: nowrap; padding-left: 28px; padding-right: 28px; }
@media (max-width: 760px) { .compare .c { white-space: normal; width: 28%; padding-left: 10px; padding-right: 10px; } }
.yes { color: var(--accent); }
.no { color: var(--muted); }

/* ---- admin ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.stat-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.stat-value { font: 700 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 0.8rem; color: var(--muted); }
.search { display: flex; gap: 8px; margin-bottom: 18px; max-width: 620px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 12px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-current] { color: var(--ink); border-color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 0.92rem; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: 0.86rem; }
details.edit { margin-top: 14px; }
details.edit summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
details.edit form { margin-top: 14px; padding: 16px; background: var(--surface-2); border-radius: 9px; }

/* ---- auth & mail ---- */
.auth { max-width: 440px; margin: 56px auto; display: grid; gap: 18px; padding: 40px 36px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.auth h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
.auth .lede { font-size: 1rem; }
.auth form { display: grid; gap: 14px; }
.auth .btn-block { width: 100%; justify-content: center; padding-block: 12px; font-size: 1rem; }
.auth-mark .logo-mark { width: 44px; height: 44px; display: block; }
.auth-who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; font-weight: 600; overflow-wrap: anywhere; }
.auth-who::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.auth-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
@media (max-width: 520px) { .auth { padding: 28px 20px 24px; margin: 24px auto; } }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.mail header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mail pre { margin: 0; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; font-size: 0.86rem; }
.prose-wide { display: grid; gap: 16px; }

/* ---- marketing ---- */
.shots { display: grid; gap: 22px; padding: 8px 0 72px; }
.shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.shot { margin: 0; display: grid; gap: 10px; }
.shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--code-bg); }
.shot img { display: block; width: 100%; height: auto; transition: transform 0.25s ease; }
.shot a:hover img { transform: scale(1.012); }
.shot figcaption { font-size: 0.92rem; color: var(--muted); }
.shot-lead figcaption { font-size: 1rem; }
@media (max-width: 720px) { .shots-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; padding: 28px 0 72px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.hero .hl { color: var(--accent-text); }
.hero-copy { display: grid; gap: 20px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.mock { margin: 0; background: var(--code-bg); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(10 12 16 / 55%), 0 0 0 1px rgb(255 255 255 / 6%); color: var(--code-ink); transform: rotate(0.6deg); -webkit-user-select: none; user-select: none; cursor: default; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #1f2329; font-size: 0.8rem; color: #9ba2ae; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a404a; }
.mock-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-pill { background: #3a2a14; color: #e5b45a; padding: 3px 8px; border-radius: 99px; font-weight: 600; font-size: 0.72rem; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 290px; }
.mock-tree { list-style: none; margin: 0; padding: 14px 0; border-right: 1px solid #262b33; font: 0.8rem/1.9 var(--mono); color: #9ba2ae; }
.mock-tree li { padding: 0 14px; } .mock-tree .file { padding-left: 28px; } .mock-tree .dir { color: #c9cdd4; }
.mock-tree .on { background: #262b33; color: #fff; box-shadow: inset 2px 0 0 #ff6a2b; }
.mock-code { margin: 0; padding: 14px 16px; font: 0.8rem/1.9 var(--mono); overflow-x: auto; white-space: pre; }
.mock-code .ln { display: inline-block; width: 22px; color: #545b66; user-select: none; }
.t-c { color: #ff8a55; } .t-k { color: #7f8896; } .t-m { color: #7cc4a0; } .t-s { color: #e5c07b; }
.mock-status { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #262b33; font-size: 0.78rem; color: #9ba2ae; flex-wrap: wrap; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ccf8a; box-shadow: 0 0 0 3px rgb(92 207 138 / 18%); }
.mock-spacer { flex: 1; }
.mock-btn { border: 1px solid #3a404a; color: #e7e9ec; padding: 5px 10px; border-radius: 6px; font-weight: 600; }
.mock-btn-dark { background: #ff6a2b; border-color: #ff6a2b; color: #1a0d06; }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; display: grid; gap: 28px; }
.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.flow li { counter-increment: step; display: grid; gap: 6px; padding: 0 28px 0 0; position: relative; }
.flow li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.flow li::before { content: counter(step); font: 700 2.4rem/1 var(--display); color: var(--accent-text); margin-bottom: 8px; }
.flow b { font: 700 1.1rem var(--display); }
.flow span { color: var(--muted); }

.sec-head { display: grid; gap: 6px; margin-bottom: 28px; max-width: 70ch; }
.features, .pro-band, #pricing, .faq-wrap { padding: 72px 0 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); padding: 24px; display: grid; gap: 8px; align-content: start; }
.feature h3 { font-size: 1.08rem; font-weight: 700; }
.feature p { color: var(--muted); font-size: 0.96rem; }
.feature-pro { border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--accent); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 1.05rem; font-weight: 700; }
.plan .price { font: 700 2.3rem/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 0.9rem var(--font); color: var(--muted); letter-spacing: 0; }
.plan-sites { font-size: 0.94rem; }
.plan > :last-child { margin-top: auto; }
.plan form .btn, .plan > .btn { width: 100%; }
.plan-free { background: transparent; border-style: dashed; }
/* Plans get more orange as they get bigger. */
.plan-heat-1 { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.plan-heat-2 { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: var(--shadow); }
.plan-heat-3 { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent); }
.plan-heat-3 .muted, .plan-heat-3 .price small { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.btn-invert { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.btn-invert:hover { background: var(--accent-ink); color: var(--accent); opacity: 0.9; }
.plans-note { margin-top: 14px; font-size: 0.88rem; text-align: center; }

.faq { display: grid; border-top: 1px solid var(--line); margin-top: 20px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent-text); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 10px; color: var(--ink-2); max-width: 68ch; }

.prose { max-width: 720px; display: grid; gap: 14px; }
.prose h2 { font-size: 1.35rem; margin-top: 20px; }
.prose ol, .prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose pre { background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; border-radius: 9px; overflow-x: auto; margin: 0; }

.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 32px 20px 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font: 700 0.98rem var(--display); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.footer nav a:hover { color: var(--accent-text); }
.footer p { flex-basis: 100%; font-size: 0.84rem; }
.theme-switch { margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: 500 0.8rem/1 var(--font); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed='true'] { background: var(--surface-2); color: var(--ink); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-switch svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .theme-switch { margin-left: 0; } .theme-switch span { display: none; } }

/* ---- small screens ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
  .mock { transform: none; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .cols-main { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar-inner { gap: 12px; flex-wrap: wrap; padding: 10px 16px; }
  .nav { order: 3; width: 100%; margin: 0 -10px; }
  .main { padding: 28px 16px 64px; }
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .flow li, .flow li + li { padding: 0; border: 0; }
  .plans, .grid-3, .grid-2, .grid-form { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-tree { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .search { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Checkout on our own page: summary on the page, Stripe's form in a card */
/* Checkout window (opened from Buy on desktop) */
body.popup { background: #fff; color: #1b1e24; color-scheme: light; }
.popup-main { max-width: 480px; margin: 0 auto; padding: 16px 12px 24px; }
.popup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 8px 14px; border-bottom: 1px solid #e6e8ec; margin-bottom: 8px; }
.popup-brand { display: flex; align-items: center; gap: 8px; font: 600 0.95rem/1.2 var(--font); }
.popup-brand .logo-mark { width: 24px; height: 24px; flex: none; }
.popup-price { font: 700 1rem/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.popup-price small { font-weight: 400; color: #5d6472; }
.popup-form { min-height: 560px; }
.popup-done { text-align: center; padding: 80px 24px; display: grid; gap: 8px; }
.popup-done h1 { font-size: 1.6rem; }
.checkout-wait { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(3px); }
.checkout-wait-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; max-width: 380px; display: grid; gap: 8px; text-align: center; }
.checkout-wait-actions { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }

/* Analytics consent and footer link */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 0.88rem; color: var(--ink-2); }
.consent p { flex: 1 1 260px; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.footer-link { border: 0; background: none; padding: 0; font: inherit; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.footer-link:hover { color: var(--accent-text); }
.theme-switch { margin-left: 0; }
.footer-link + .theme-switch, .footer nav + .theme-switch { margin-left: auto; }
.footer-link { margin-left: auto; }

/* ---- docs ---- */
.main-docs { max-width: 1320px; padding-top: 28px; }
.section-site:has(.main-docs) .topbar-inner { max-width: 1320px; }
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 48px; align-items: start; }
.docs-no-toc { grid-template-columns: 240px minmax(0, 1fr); }
.docs-main { min-width: 0; }
.docs-menu-btn { display: none; }
.docs-side-head { display: none; }

/* sidebar */
.docs-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 24px 2px; scrollbar-width: thin; }
.docs-find { position: sticky; top: 0; z-index: 2; margin: 0 0 12px; padding: 0 0 6px; background: var(--bg); box-shadow: 0 10px 10px -10px var(--bg); }
.docs-find::before { content: ''; position: absolute; inset: -4px 0 auto; height: 4px; background: var(--bg); }
.docs-find input { padding: 8px 40px 8px 12px; font-size: 0.92rem; background: var(--surface); }
.docs-find-key { position: absolute; right: 8px; top: calc(50% - 3px); transform: translateY(-50%); pointer-events: none; }
.docs-nav { display: grid; gap: 18px; font-size: 0.92rem; }
.docs-nav a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-radius: 7px; line-height: 1.35; }
.docs-nav a:hover { background: var(--surface-2); color: var(--ink); }
.docs-nav a[aria-current='page'] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.docs-nav-home { font-weight: 600; }
.docs-nav-title { font: 600 0.72rem/1.2 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 10px; display: flex; align-items: center; gap: 6px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.docs-nav .badge-pro { margin-left: 4px; }

/* "On this page" */
.docs-toc { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; font-size: 0.85rem; padding-bottom: 24px; }
.docs-toc-title { font: 600 0.72rem/1.2 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.docs-toc ul, .docs-toc-inline ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc li a, .docs-toc-inline li a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.docs-toc li.toc-3 a, .docs-toc-inline li.toc-3 a { padding-left: 24px; font-size: 0.95em; }
.docs-toc a:hover, .docs-toc-inline a:hover { color: var(--ink); }
.docs-toc a[aria-current] { color: var(--accent-text); border-left-color: var(--accent); font-weight: 500; }
.docs-toc-inline { display: none; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 10px 14px; font-size: 0.9rem; }
.docs-toc-inline summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.docs-toc-inline[open] summary { margin-bottom: 8px; }

/* breadcrumb, header, pager */
.docs-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.86rem; color: var(--muted); }
.docs-crumbs li + li::before { content: '›'; margin-right: 4px; color: var(--line-strong); }
.docs-crumbs [aria-current] { color: var(--ink-2); }
.docs-article { max-width: 74ch; }
.docs-head { display: grid; gap: 10px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.docs-head h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.docs-head h1 .badge-pro { font-size: 0.75rem; padding: 5px 9px; }
.docs-lede { font-size: 1.1rem; color: var(--ink-2); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 74ch; }
.docs-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager span { font-size: 0.8rem; color: var(--muted); }
.docs-pager b { font-weight: 600; }
.docs-pager-next { text-align: right; grid-column: 2; }

/* article body */
.docs-body { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.docs-body > :first-child { margin-top: 0; }
.docs-body h2, .docs-body h3, .docs-body h4 { scroll-margin-top: 84px; position: relative; }
.docs-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2.4em 0 0.6em; }
.docs-body h3 { font-size: 1.16rem; font-weight: 700; margin: 1.9em 0 0.5em; }
.docs-body h4 { font: 600 1rem var(--font); margin: 1.6em 0 0.4em; }
.docs-body p, .docs-body ul, .docs-body ol, .docs-body blockquote { margin: 0 0 1em; }
.docs-body ul, .docs-body ol { padding-left: 1.4em; }
.docs-body li { margin: 0.3em 0; }
.docs-body li > p { margin: 0 0 0.5em; }
.docs-body li > ul, .docs-body li > ol { margin: 0.3em 0 0.4em; }
.docs-body ol > li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.docs-body a { color: var(--accent-text); }
.docs-body a:hover { color: var(--ink); }
.docs-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.docs-body img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.docs-body blockquote { padding-left: 14px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.docs-body :not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.08em 0.36em; font-size: 0.86em; overflow-wrap: anywhere; }
.docs-body .anchor { margin-left: 0.4em; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity 0.12s; }
.docs-body h2:hover .anchor, .docs-body h3:hover .anchor, .docs-body h4:hover .anchor, .docs-body .anchor:focus-visible { opacity: 1; }
kbd { display: inline-block; font: 500 0.78em/1 var(--mono); padding: 3px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--ink-2); white-space: nowrap; }
.badge-pro { display: inline-flex; align-items: center; font: 700 0.62rem/1 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 999px; padding: 3px 6px; vertical-align: 0.12em; white-space: nowrap; }

.code-block { margin: 1.3em 0; background: var(--code-bg); border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--code-bg) 70%, var(--line)); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 4px 6px 4px 14px; border-bottom: 1px solid color-mix(in srgb, var(--code-ink) 12%, transparent); font: 500 0.74rem/1 var(--font); color: color-mix(in srgb, var(--code-ink) 62%, transparent); letter-spacing: 0.03em; }
.code-copy { font: 600 0.76rem/1 var(--font); color: var(--code-ink); background: transparent; border: 1px solid color-mix(in srgb, var(--code-ink) 22%, transparent); border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.code-copy:hover { background: color-mix(in srgb, var(--code-ink) 10%, transparent); }
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: var(--code-ink); font: 0.84rem/1.65 var(--mono); tab-size: 4; }
.code-block pre code { font-size: inherit; }
.code-block pre:focus-visible { outline-offset: -2px; }

.table-scroll { margin: 1.3em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.table-scroll th { text-align: left; font: 600 0.76rem var(--font); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-scroll td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll td:first-child code { white-space: nowrap; overflow-wrap: normal; }
.table-scroll .center { text-align: center; }
.table-scroll .right { text-align: right; }

.callout { margin: 1.3em 0; padding: 12px 16px; border-radius: 0 9px 9px 0; border-left: 3px solid var(--tone); background: var(--tone-soft); --tone: var(--info); --tone-soft: var(--info-soft); }
.callout-tip { --tone: var(--ok); --tone-soft: var(--ok-soft); }
.callout-warning { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.callout-pro { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.callout-title { font: 700 0.74rem/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone); margin: 0 0 4px !important; }
.callout-pro .callout-title { color: var(--accent-text); }
.callout > :last-child { margin-bottom: 0; }

/* docs home */
.docs-home .docs-head { border-bottom: 0; padding-bottom: 6px; }
.docs-home { max-width: none; }
.docs-home-search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--muted); font: 400 1rem var(--font); cursor: pointer; text-align: left; }
.docs-home-search[hidden] { display: none; }
.docs-home-search:hover { border-color: var(--ink-2); }
.docs-home-search span { flex: 1; }
.docs-home-search svg, .docs-search-bar svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.docs-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 40px; }
.docs-start a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.docs-start a:hover { border-color: var(--accent); }
.docs-start b { font: 700 1.02rem var(--display); }
.docs-start span { color: var(--muted); font-size: 0.92rem; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.docs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; display: grid; gap: 8px; align-content: start; }
.docs-card h2 { font-size: 1.12rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.docs-card h2 a { color: var(--ink); text-decoration: none; }
.docs-card h2 a:hover { color: var(--accent-text); }
.docs-card p { color: var(--muted); font-size: 0.92rem; }
.docs-card ul { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 0.92rem; }
.docs-card li a { color: var(--ink-2); text-decoration: none; }
.docs-card li a:hover { color: var(--accent-text); text-decoration: underline; }
.docs-help { margin-top: 36px; }

/* search: the dialog, and the results page without JavaScript */
html.docs-search-open, html.docs-menu-open { overflow: hidden; }
.docs-search { padding: 0; border: 0; background: transparent; width: min(640px, calc(100vw - 24px)); max-width: none; max-height: none; margin: 10vh auto auto; color: var(--ink); overflow: visible; }
.docs-search::backdrop { background: rgb(8 10 14 / 55%); backdrop-filter: blur(2px); }
.docs-search-panel { display: flex; flex-direction: column; max-height: min(72vh, 640px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgb(0 0 0 / 45%); overflow: hidden; }
.docs-search-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
#docs-search-q { border: 0; border-radius: 0; background: transparent; padding: 12px 0; font-size: 1.06rem; }
#docs-search-q:focus { outline: none; }
.docs-search-bar input::-webkit-search-cancel-button { display: none; }
.docs-search-esc { font: 500 0.74rem/1 var(--mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; cursor: pointer; }
.docs-search-status { padding: 10px 16px 0; font-size: 0.84rem; color: var(--muted); }
.docs-search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.docs-search-results a, .docs-results a { display: grid; gap: 3px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.docs-search-results [aria-selected='true'] a { background: var(--accent-soft); }
.docs-search-results a:focus-visible { outline-offset: -2px; }
.sr-crumb { font-size: 0.76rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.sr-title { font-weight: 600; }
.sr-text { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.docs-search mark, .docs-results mark { background: color-mix(in srgb, var(--accent) 26%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.docs-search-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.docs-search-keys kbd + kbd { margin-left: -2px; }
.docs-search-keys kbd:not(:first-child) { margin-left: 6px; }
.docs-search-keys kbd:nth-child(2) { margin-left: 0; }
.docs-find-page { display: flex; gap: 8px; max-width: 520px; margin-bottom: 12px; }
.docs-find-page input { padding-right: 12px; }
.docs-results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.docs-results a:hover { background: var(--surface-2); }

@media (max-width: 1199px) {
  .docs, .docs-no-toc { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .docs-toc { display: none; }
  .docs-toc-inline { display: block; }
}
@media (max-width: 999px) {
  .main-docs { padding-top: 16px; }
  .docs, .docs-no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-menu-btn { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-bottom: 16px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; font: 600 0.9rem var(--font); }
  .docs-menu-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .docs-side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); max-height: none; padding: 14px 16px 32px; background: var(--surface); border-right: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(-105%); visibility: hidden; transition: transform 0.2s ease, visibility 0.2s; }
  .docs-find, .docs-find::before { background: var(--surface); box-shadow: 0 10px 10px -10px var(--surface); }
  .docs-side.is-open, .docs-side:target { transform: none; visibility: visible; }
  .docs-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .docs-side-label { font: 700 1rem var(--display); }
  .docs-side-close { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 1.4rem; line-height: 1; }
  .docs-side-close:hover { background: var(--surface-2); color: var(--ink); }
  .docs-backdrop { position: fixed; inset: 0; z-index: 39; background: rgb(8 10 14 / 45%); }
  .docs-backdrop[hidden] { display: none; }
  .docs-start { grid-template-columns: 1fr; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager-next { grid-column: auto; }
  .docs-search { margin-top: 12px; }
  .docs-search-panel { max-height: calc(100vh - 24px); }
  .docs-search-keys { display: none; }
}

/* ---- screenshot lightbox ---- */
html.lightbox-open { overflow: hidden; }
.lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: #e7e9ec; overflow: hidden; }
.lightbox::backdrop { background: rgb(8 10 14 / 95%); backdrop-filter: blur(4px); }
.lightbox-frame { position: relative; height: 100%; display: grid; place-items: center; padding: 56px 72px 72px; box-sizing: border-box; }
.lightbox-figure { margin: 0; display: grid; gap: 14px; max-width: min(1436px, 100%); max-height: 100%; }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 8%); background: #16191e; }
.lightbox-figure figcaption { text-align: center; font-size: 0.98rem; color: #c9cdd4; max-width: 70ch; margin: 0 auto; }
.lightbox-count { font: 500 0.8rem var(--mono); color: #9ba2ae; margin-right: 8px; letter-spacing: 0.04em; }
.lightbox button { font: inherit; color: inherit; cursor: pointer; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 14%); background: rgb(23 26 31 / 80%); border-radius: 999px; line-height: 1; transition: background 0.15s; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgb(255 106 43 / 25%); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible, .lightbox-dots button:focus-visible { outline: 2px solid #ff6a2b; outline-offset: 2px; }
.lightbox-close { top: 14px; right: 16px; width: 40px; height: 40px; font-size: 1.6rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; padding-bottom: 4px; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.lightbox-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgb(255 255 255 / 28%); }
.lightbox-dots button[aria-selected='true'] { background: #ff6a2b; transform: scale(1.25); }
@media (max-width: 720px) {
  .lightbox-frame { padding: 56px 12px 64px; }
  .lightbox-nav { top: auto; bottom: 10px; transform: none; width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-prev { left: 12px; } .lightbox-next { right: 12px; }
  .lightbox-dots { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox-dots button { transition: none; } }

/* Comparison pages */
.compare-page { max-width: 760px; }
.compare-page .crumbs ol { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.compare-page .crumbs li + li::before { content: "/"; margin-right: 8px; }
.compare-page .crumbs a { color: var(--muted); }
.compare-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.compare-list a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.compare-list a:hover { border-color: var(--line-strong); }
.compare-list span { color: var(--muted); font-size: 0.95rem; }
.compare-cta { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 12px; }
.compare-cta p { margin: 0; }
.compare-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.compare-more ul { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
