/* Signet design system. Self-hosted, no external fonts or CDNs. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg-soft: #f7f8fb; --bg-tint: #eef0ff; --surface: #ffffff; --surface-2: #f3f5f9;
  --ink: #0f1629; --ink-2: #394258; --muted: #5a647a; --line: #e4e7ee; --line-strong: #cfd4e0;
  --accent: #4338ca; --accent-hover: #3730a3; --accent-ink: #ffffff; --accent-soft: #eceafd; --accent-line: #c7c3f7;
  --ok: #157347; --ok-bg: #dcf3e6; --warn: #8a5300; --warn-bg: #fdf0cf; --bad: #b3261e; --bad-bg: #fbe0dd;
  --ok-fill: #1a8f56; --warn-fill: #e0a100; --bad-fill: #c8372d;
  --code-bg: #0e1424; --code-ink: #dbe4ff; --code-line: #232b45; --inline-code: #eef0f7;
  --tok-c: #7d8aae; --tok-s: #9be3b0; --tok-k: #b9a8ff; --tok-n: #ffcf8a; --tok-t: #7fc4ff; --tok-a: #ffb3c7; --tok-f: #8fe0ff;
  --shadow-sm: 0 1px 2px rgba(15,22,41,.06), 0 1px 1px rgba(15,22,41,.04);
  --shadow-md: 0 8px 24px -8px rgba(15,22,41,.14), 0 2px 6px rgba(15,22,41,.06);
  --shadow-lg: 0 24px 60px -20px rgba(41,37,120,.28), 0 8px 20px -8px rgba(15,22,41,.12);
  --radius: 12px; --radius-sm: 8px; --radius-lg: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1a; --bg-soft: #0e1322; --bg-tint: #171a3a; --surface: #121829; --surface-2: #181f33;
    --ink: #eef1fb; --ink-2: #c3cadf; --muted: #9aa4be; --line: #232b43; --line-strong: #323c5a;
    --accent: #8b87ff; --accent-hover: #a4a1ff; --accent-ink: #0a0e1a; --accent-soft: #1d2046; --accent-line: #3a3d85;
    --ok: #5fd39a; --ok-bg: #12301f; --warn: #f1bf55; --warn-bg: #33270b; --bad: #ff8d84; --bad-bg: #3a1714;
    --ok-fill: #2fb877; --warn-fill: #e8ae1c; --bad-fill: #e5574c;
    --code-bg: #0b101e; --code-ink: #dbe4ff; --code-line: #232b45; --inline-code: #1b2238;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 8px 24px -8px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 8px; color: var(--accent-ink); }

/* ---------- type ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 750; }
h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
h3 { font-size: 17px; font-weight: 650; margin: 22px 0 6px; letter-spacing: -.01em; }
p { margin: 8px 0; }
ul, ol { padding-left: 22px; }
li { margin: 3px 0; }
.muted { color: var(--muted); font-size: 14px; }
.lead { font-size: 19px; color: var(--ink-2); line-height: 1.55; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
code, pre, kbd { font-family: var(--mono); font-size: 13px; }
:not(pre) > code { background: var(--inline-code); padding: .12em .4em; border-radius: 6px; font-size: .88em; color: var(--ink); overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.wrap.wide { max-width: 1240px; }
main.page { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 72px; display: grid; gap: 20px; }
main.page.narrow { max-width: 820px; }
main.page.wide { max-width: 1240px; }
.page-head { padding: 8px 0 8px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--ink-2); font-size: 18px; max-width: 680px; }
section.band { padding: 80px 0; }
section.band.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.025em; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ---------- header / footer ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
header.site .hbar { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
a.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
a.brand:hover { color: var(--ink); }
a.brand svg { width: 28px; height: 28px; flex: none; }
header.site nav.main { display: flex; gap: 4px; align-items: center; flex: 1; }
header.site nav.main a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
header.site nav.main a:hover { background: var(--surface-2); color: var(--ink); }
header.site nav.main a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
header.site .actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; width: 40px; height: 40px; padding: 0; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  header.site .hbar { height: 60px; gap: 12px; flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  header.site nav.main, header.site .actions { display: none; width: 100%; }
  header.site.open .hbar { height: auto; padding-bottom: 14px; }
  header.site.open nav.main { display: flex; flex-direction: column; align-items: stretch; order: 3; }
  header.site.open nav.main a { padding: 12px; font-size: 16px; }
  header.site.open .actions { display: flex; order: 4; }
  header.site.open .actions .btn { flex: 1; }
  header.site .hbar { padding-top: 0; }
  header.site.open .hbar { padding-top: 10px; }
}
footer.site { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 0; }
footer.site .inner { max-width: 1240px; margin: 0 auto; padding: 44px 24px 36px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site .blurb { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 12px; }
footer.site h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 650; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 8px 0; }
footer.site li a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
footer.site li a:hover { color: var(--accent); text-decoration: underline; }
footer.site .legal { max-width: 1240px; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { footer.site .inner { grid-template-columns: 1fr 1fr; } footer.site .inner > div:first-child { grid-column: 1/-1; } }

/* ---------- buttons / forms ---------- */
a.btn, button, .btn { font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; text-align: center; line-height: 1.25; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; box-shadow: var(--shadow-sm); }
a.btn:hover, button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
a.btn:active, button:active { transform: translateY(1px); }
a.btn.secondary, button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
a.btn.secondary:hover, button.secondary:hover { background: var(--surface-2); border-color: var(--muted); color: var(--ink); }
a.btn.ghost, button.ghost { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
a.btn.ghost:hover, button.ghost:hover { background: var(--surface-2); color: var(--ink); }
a.btn.lg, button.lg { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
a.btn.sm, button.sm { padding: 7px 13px; font-size: 14px; border-radius: 8px; }
a.btn.block, button.block { display: flex; width: 100%; }
button:disabled { opacity: .5; cursor: default; transform: none; }
label { display: block; font-size: 14px; font-weight: 550; color: var(--ink-2); margin: 14px 0 6px; }
input, textarea, select { font: inherit; font-size: 15px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
select { width: auto; padding-right: 30px; }
.err { color: var(--bad); font-weight: 600; }
.okmsg { color: var(--ok); font-weight: 600; }

/* ---------- cards / surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.flat { box-shadow: none; }
.card h2 { font-size: 18px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); color: var(--ink-2); }
.badge.allow { background: var(--ok-bg); color: var(--ok); } .badge.review { background: var(--warn-bg); color: var(--warn); } .badge.deny { background: var(--bad-bg); color: var(--bad); }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 10px; font-weight: 650; font-size: 12.5px; }
.chip { display: inline-block; background: var(--inline-code); border-radius: 6px; padding: 1px 7px; margin: 2px 4px 2px 0; font: 11.5px var(--mono); color: var(--ink-2); }
.callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 10px; margin: 14px 0; }
.callout.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-fill) 40%, transparent); border-left-color: var(--warn-fill); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 650; white-space: nowrap; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tablewrap table th:first-child, .tablewrap table td:first-child { padding-left: 18px; }
.tablewrap tr:last-child td { border-bottom: 0; }

/* ---------- code ---------- */
.codewrap { position: relative; margin: 12px 0; }
pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--code-line); overflow: auto; line-height: 1.6; tab-size: 2; }
.codewrap pre { margin: 0; padding-right: 64px; }
.copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: 12px; border-radius: 7px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #cfd8f5; box-shadow: none; opacity: .85; font-weight: 600; }
.copy:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); color: #fff; opacity: 1; }
.copy.done { color: #8ff0b5; border-color: #8ff0b5; }
.tok-c { color: var(--tok-c); font-style: italic; } .tok-s { color: var(--tok-s); } .tok-k { color: var(--tok-k); } .tok-n { color: var(--tok-n); } .tok-t { color: var(--tok-t); } .tok-a { color: var(--tok-a); } .tok-f { color: var(--tok-f); }
.terminal { border-radius: var(--radius); border: 1px solid var(--code-line); background: var(--code-bg); box-shadow: var(--shadow-lg); overflow: hidden; }
.terminal .chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--code-line); background: rgba(255,255,255,.03); }
.terminal .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #3a4366; display: block; }
.terminal .chrome span { margin-left: 10px; font: 12.5px var(--mono); color: #8d99bd; }
.terminal pre { border: 0; border-radius: 0; background: transparent; }
.terminal .codewrap { margin: 0; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; background:
  radial-gradient(900px 420px at 80% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(700px 360px at 5% 10%, color-mix(in srgb, #22c3a6 11%, transparent), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .45; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); pointer-events: none; }
.hero .grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); letter-spacing: -.035em; line-height: 1.05; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 20px 0 28px; max-width: 520px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero .fine span { margin-right: 16px; white-space: nowrap; }
.hero .fine span::before { content: "\2713\00a0"; color: var(--ok); font-weight: 800; }
@media (max-width: 920px) { .hero { padding: 52px 0 48px; } .hero .grid { grid-template-columns: 1fr; gap: 36px; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.feature:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }
.step3 { counter-increment: s; position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step3::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.step3 h3 { margin: 0 0 6px; } .step3 p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.step3 .codewrap { margin: 10px 0 0; } .step3 pre { font-size: 12px; padding: 12px 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.tryit { display: grid; gap: 14px; }
.tryit .result { display: grid; gap: 10px; }
.score-ring { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score-num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .mini-plans { grid-template-columns: 1fr; } }
.cta-final { text-align: center; padding: 72px 24px; border-radius: var(--radius-lg); background: radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 75%), var(--surface); border: 1px solid var(--accent-line); }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; margin-bottom: 8px; }
.cta-final p { color: var(--ink-2); font-size: 17px; margin: 0 auto 26px; max-width: 520px; }
.cta-final .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.faq-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .faq-teaser { grid-template-columns: 1fr; } }
.faq-teaser a.q { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .15s; }
.faq-teaser a.q:hover { border-color: var(--accent-line); }
.faq-teaser a.q b { display: block; margin-bottom: 4px; }
.faq-teaser a.q span { color: var(--ink-2); font-size: 14.5px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.plan h2 { font-size: 18px; margin: 0; }
.plan .price { font-size: 46px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin-top: 8px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .quota { font-weight: 650; color: var(--accent); margin: 2px 0 6px; }
.plan .desc { color: var(--ink-2); font-size: 15px; margin: 0 0 6px; }
.plan ul.ticks { list-style: none; padding: 0; margin: 10px 0 22px; flex: 1; }
.plan ul.ticks li { padding-left: 26px; position: relative; margin: 8px 0; font-size: 15px; color: var(--ink-2); }
.plan ul.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 15px; height: 15px; border-radius: 50%; background: var(--ok-bg); }
.plan ul.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.32em + 3px); width: 4px; height: 7px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan .flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.compare th, .compare td { text-align: center; } .compare th:first-child, .compare td:first-child { text-align: left; font-weight: 550; }
.compare td.yes { color: var(--ok); font-weight: 700; }

/* ---------- docs layout (guide, faq) ---------- */
.docs { max-width: 1240px; margin: 0 auto; padding: 36px 24px 80px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
aside.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 14.5px; padding-right: 8px; }
aside.toc .t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 10px 12px; display: block; }
aside.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 12px; border-left: 2px solid var(--line); margin-left: 0; }
aside.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
aside.toc a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; background: linear-gradient(90deg, var(--accent-soft), transparent); }
aside.toc .sep { height: 14px; }
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
  aside.toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--surface); }
  aside.toc .links { display: none; } aside.toc.open .links { display: block; margin-top: 8px; }
  aside.toc .t { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  aside.toc .t::after { content: "\25BE"; }
}
@media (min-width: 961px) { aside.toc .links { display: block !important; } }
.doc { min-width: 0; max-width: 820px; }
.doc section { padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.doc section:last-child { border-bottom: 0; }
.doc h1 { margin-bottom: 14px; }
.doc h2 { font-size: 26px; margin: 0 0 12px; letter-spacing: -.025em; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p b, .doc li b, .doc strong { color: var(--ink); }
.doc table { margin: 10px 0; }
.doc .tablewrap table { margin: 0; }
.doc td.pts, td.pts { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.doc .cmp td:first-child, .doc .cmp th:first-child { width: 26%; font-weight: 600; }
.steps { counter-reset: s; padding: 0; list-style: none; margin: 18px 0; }
.steps li { counter-increment: s; padding-left: 42px; position: relative; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); text-align: center; line-height: 26px; font-weight: 700; font-size: 14px; }
.tabbar { display: flex; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.tab, button.tab { background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 14px; font-size: 14px; box-shadow: none; margin-bottom: -1px; }
.tab:hover, button.tab:hover { background: transparent; color: var(--ink); border-color: transparent; border-bottom-color: var(--line-strong); }
.tab.on, button.tab.on { color: var(--accent); border-bottom-color: var(--accent); background: transparent; }
.pane { display: none; } .pane.on { display: block; } .tabs .codewrap { margin-top: 0; } .tabs pre { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
details summary { cursor: pointer; font-weight: 600; }
details.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin: 0 0 12px; transition: border-color .15s, box-shadow .15s; }
details.q[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
details.q summary { list-style: none; font-weight: 650; font-size: 16.5px; padding: 18px 28px 18px 0; position: relative; color: var(--ink); }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
details.q[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details.q .a { padding: 2px 0 18px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--ink-2); }
details.q .a > :first-child { margin-top: 0; }
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h1 { margin-bottom: 6px; }
.legal-doc h2 { font-size: 20px; margin: 36px 0 8px; padding-top: 4px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc ul { margin: 6px 0 12px; }

/* ---------- dashboard ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toolbar .grow { flex: 1; }
.toolbar .r { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi .n { font-size: 30px; font-weight: 780; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.kpi.allow .n { color: var(--ok); } .kpi.review .n { color: var(--warn); } .kpi.deny .n { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.grid2 .full { grid-column: 1/-1; }
@media (max-width: 420px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
svg text { font: 11px var(--font); fill: var(--muted); } svg .axis { stroke: var(--line); } svg .lbl { fill: var(--ink); }
.alerts { border-left: 5px solid var(--ok-fill); } .alerts.high { border-left-color: var(--bad-fill); } .alerts.medium { border-left-color: var(--warn-fill); }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.alert:first-of-type { border-top: 0; }
.sev { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; color: #fff; white-space: nowrap; margin-top: 2px; }
.sev.high { background: var(--bad-fill); } .sev.medium { background: #b87800; } .sev.low { background: #5a647a; }
.alert .body { flex: 1; min-width: 220px; } .alert h3 { margin: 0 0 2px; font-size: 15.5px; } .alert .ex { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
a.lnk { color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 500; } a.lnk:hover { text-decoration: underline; }
.legend span { display: inline-block; margin-right: 14px; font-size: 12.5px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; } .filters label { margin: 0 0 4px; font-size: 12.5px; }
.filters input, .filters select { padding: 8px 10px; font-size: 14px; }
.activefilters { margin: 10px 0; } .activefilters .chip { background: var(--accent-soft); color: var(--accent); }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; display: flex; min-width: 80px; } .bar b { display: block; height: 100%; background: var(--accent); } .bar b.fl { background: var(--warn-fill); }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
table.act td, table.act th { font-size: 13px; padding: 9px 12px; white-space: nowrap; } table.act td:nth-child(5) { white-space: normal; min-width: 180px; }
.signin { width: 100%; max-width: 520px; margin: 40px auto 0; text-align: center; }
.signin .mark { width: 52px; height: 52px; margin: 0 auto 16px; display: block; }
.signin form { text-align: left; margin-top: 18px; }
.signin h1 { font-size: 28px; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14.5px; align-items: baseline; } .kv > div:nth-child(odd) { color: var(--muted); }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; } .row > div { min-width: 0; } .row input, .row select { width: 100%; }
.reasons li { margin: 4px 0; }
.keybox { display: grid; gap: 10px; }
.keybox .k { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); } .keybox .k:first-child { border-top: 0; }
.keybox .k > span:first-child { color: var(--muted); font-size: 14px; font-weight: 550; }
.keybox code { word-break: break-all; }
@media (max-width: 560px) { .keybox .k { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 0 } .kv > div:nth-child(odd) { margin-top: 8px; } }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: 8px; }
.status-dot.ok { background: var(--ok-fill); box-shadow: 0 0 0 4px var(--ok-bg); } .status-dot.bad { background: var(--bad-fill); box-shadow: 0 0 0 4px var(--bad-bg); }
@media print { header.site, footer.site, .copy, aside.toc { display: none; } }
.menu-btn:hover, .menu-btn:active { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .signup-grid { grid-template-columns: 1fr; } }
.signup-side { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.signup-side h2 { font-size: 18px; }
ul.ticks { list-style: none; padding: 0; margin: 12px 0; }
ul.ticks li { padding-left: 26px; position: relative; margin: 10px 0; font-size: 15px; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px; border-radius: 50%; background: var(--ok-bg); }
ul.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 3px); width: 4px; height: 7px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.codewrap:has(> pre[hidden]) { display: none; }
.terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.terminal .codewrap pre { padding-right: 70px; }
[hidden] { display: none !important; }
.step3, .feature, .plan, .hero .grid > *, .split > * { min-width: 0; }
.step3 pre { white-space: pre-wrap; overflow-wrap: anywhere; }
main.page > *, .docs > *, .doc > * { min-width: 0; }

/* ---------- dashboard management (signed-in) ---------- */
.tabs-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs-nav button { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; padding: 8px 14px; font-weight: 550; }
.tabs-nav button:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.tabs-nav button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.dnav { border-bottom: 1px solid var(--line); padding-bottom: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dview { display: grid; gap: 20px; min-width: 0; }
.dview > * { min-width: 0; }
.toolbar.sub { margin: 0; } .toolbar.sub h2 { margin: 0; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; align-items: start; }
.formgrid label { margin-top: 12px; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
button.danger { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); box-shadow: none; }
button.danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; } .checks label { display: inline-flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; } .checks input { width: auto; }
.msgline { min-height: 1.4em; margin: 10px 0 0; }
.once { border: 1px solid var(--ok); background: var(--ok-bg); border-radius: var(--radius); padding: 16px 18px; }
.once code { word-break: break-all; display: block; margin: 6px 0; padding: 8px 10px; background: var(--surface); border-radius: 8px; font-size: 13px; }
.edgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .edgrid { grid-template-columns: minmax(0, 1fr); } }
.edgrid > * { min-width: 0; }
.ruletab { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ruletab table { margin: 0; } .ruletab th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; }
.ruletab td, .ruletab th { font-size: 13px; padding: 8px 10px; vertical-align: top; }
.ruletab input.pts { width: 72px; padding: 5px 8px; font-size: 13px; } .ruletab select { padding: 5px 24px 5px 8px; font-size: 13px; }
.ruletab input[type=checkbox] { width: auto; margin-top: 3px; }
.ruletab tr.fired td { background: var(--accent-soft); }
.ruletab .cond { color: var(--muted); font-size: 12px; margin-top: 2px; }
.testbox { position: sticky; top: 84px; }
.verdict { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.verdict .score { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.meter { position: relative; height: 12px; border-radius: 6px; margin: 16px 0 6px; background: linear-gradient(90deg, var(--ok-fill) 0 var(--rv, 40%), var(--warn-fill) var(--rv, 40%) var(--dn, 75%), var(--bad-fill) var(--dn, 75%) 100%); opacity: .85; }
.meter i { position: absolute; top: -4px; width: 4px; height: 20px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); }
.plans3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.plans3 .pc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.plans3 .pc.cur { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plans3 .pc .price { font-size: 26px; font-weight: 780; letter-spacing: -.02em; }
.plans3 .pc .btn { margin-top: auto; }
.tablewrap table td.num, .tablewrap table th.num { text-align: right; }
