/* trueset site. Tokens come from tokens.css; nothing here hardcodes a colour. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-4); }
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; background: transparent; }
.try-body, pre.code, .key-box { scrollbar-color: rgb(255 255 255 / 16%) transparent; }
.try-body::-webkit-scrollbar-thumb, pre.code::-webkit-scrollbar-thumb { background-color: rgb(255 255 255 / 16%); }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: var(--w-semibold); letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-body); line-height: var(--lh-body); }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: var(--w-semibold); }
code, kbd, pre { font-family: var(--font-mono); }
:not(pre) > code {
  font-size: 0.875em;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunk);
  border: 1px solid var(--divider);
  color: var(--text);
  overflow-wrap: anywhere;
}
::selection { background: var(--accent-line); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.25em;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 12px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.muted { color: var(--text-3); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.comp-uptime { color: var(--text); min-width: 64px; text-align: right; }

/* ---- header ---- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--space-6); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: var(--w-bold); font-size: 20px; letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.logo { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: var(--space-2); margin-left: var(--space-4); }
.nav a {
  color: var(--text-3); font-size: var(--fs-small); font-weight: var(--w-medium);
  padding: 6px 10px; border-radius: var(--radius);
}
.nav a:hover { color: var(--text); background: var(--surface-sunk); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.top-link { color: var(--text-2); font-size: var(--fs-small); font-weight: var(--w-medium); padding: 6px 8px; }
.top-link:hover { color: var(--text); text-decoration: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  cursor: pointer; list-style: none;
}
.icon-btn:hover { background: var(--surface-sunk); color: var(--text); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn::-webkit-details-marker { display: none; }

.theme-dark { display: none; }
:root[data-theme="dark"] .theme-dark { display: inline-flex; }
:root[data-theme="dark"] .theme-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-light { display: none; }
}

.menu { display: none; position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-float); padding: var(--space-3);
  display: flex; flex-direction: column;
}
.menu-panel a:not(.btn) { color: var(--text); padding: 10px 12px; border-radius: var(--radius); font-weight: var(--w-medium); }
.menu-panel a:not(.btn):hover { background: var(--surface-sunk); text-decoration: none; }
.menu-panel .btn { margin-top: var(--space-3); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: var(--fs-small); font-weight: var(--w-semibold); line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-sunk); }
.btn-ink { background: var(--ink-2); color: var(--ink-text); border-color: var(--ink-border); }
.btn-ink:hover { background: var(--ink-border); }
.btn-danger-ghost { background: transparent; color: var(--danger-text); border-color: var(--border); }
.btn-danger-ghost:hover { background: var(--danger-wash); border-color: transparent; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: var(--w-medium); margin-top: var(--space-4); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(2px); }
td .link-arrow { margin-top: 0; }

/* ---- form controls ---- */

input, select, textarea {
  font: inherit; font-size: var(--fs-small); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  height: 40px; padding: 0 12px; width: 100%;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input::placeholder { color: var(--text-4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
input:disabled, select:disabled { background: var(--surface-sunk); color: var(--text-4); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: var(--w-medium); color: var(--text); }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--danger-text); font-size: 13px; }
.field-error .icon { width: 16px; height: 16px; }

/* ---- badges and small marks ---- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 8px; border-radius: var(--radius-pill);
  background: var(--accent-wash); color: var(--success-text);
  border: 1px solid var(--accent-line);
  font-size: 13px; font-weight: var(--w-medium); line-height: 20px;
}
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow-plain { padding: 2px 10px; font-size: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: var(--w-medium); line-height: 18px; white-space: nowrap;
  background: var(--neutral-wash); color: var(--neutral-text);
}
.badge .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.badge-verified { background: var(--success-wash); color: var(--success-text); }
.badge-neutral { background: var(--neutral-wash); color: var(--neutral-text); }
.badge-key { background: var(--warning-wash); color: var(--warning-text); }
.badge-danger { background: var(--danger-wash); color: var(--danger-text); }

.tick { display: inline-flex; color: var(--success); }
.tick .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.dash { color: var(--text-4); }

.feature-icon, .ds-icon, .icon-tile, .empty-icon, .banner-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--accent-text); background: var(--accent-wash);
  border: 1px solid var(--accent-line); border-radius: var(--radius);
}
.feature-icon { width: 36px; height: 36px; }
.feature-icon .icon { width: 18px; height: 18px; }
.ds-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); }
.ds-icon .icon { width: 15px; height: 15px; }
.icon-tile { width: 48px; height: 48px; border-radius: var(--radius-card); }
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile-warn { color: var(--warning-text); background: var(--warning-wash); border-color: transparent; }

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

.section { padding: var(--space-8) 0; }
.section-flush { padding-top: 0; }
.section-tint { background: var(--surface-tint); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); max-width: var(--measure); }
.section-head .eyebrow { align-self: flex-start; }
.section-head > p { color: var(--text-3); }
.block-title { font-size: var(--fs-small); margin: var(--space-5) 0 var(--space-3); color: var(--text-2); }

.page-hero { padding: var(--space-8) 0 var(--space-6); }
.page-hero .wrap { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.page-hero h1 { font-size: 40px; line-height: 48px; }
.page-hero .lede { max-width: var(--measure); }
.page-hero-center .wrap { align-items: center; text-align: center; }
.lede { font-size: 17px; line-height: 28px; color: var(--text-2); }

.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

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

.hero { padding: var(--space-8) 0 var(--space-7); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; margin-bottom: var(--space-7); }
.hero-head h1 { font-size: 64px; line-height: 68px; letter-spacing: -0.04em; font-weight: var(--w-semibold); max-width: 11ch; }
.hero-side { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.hero-note { font-size: 13px; color: var(--text-3); }

.explorer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow-float); overflow: hidden;
}
.explorer-pick { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); border-right: 1px solid var(--divider); background: var(--surface-tint); }
.explorer-search { position: relative; }
.explorer-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.explorer-search input { padding-left: 36px; background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 12.5px; font-weight: var(--w-medium); color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 3px 10px; cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent-line); color: var(--success-text); }
.explorer-map { flex: 1; display: flex; align-items: center; justify-content: center; }
.explorer-map .map { max-width: 520px; }
.zone-key { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 18px; font-size: 11.5px; color: var(--text-3); }
.zone-key span { display: inline-flex; align-items: center; gap: 6px; }
.zone-key i { width: 10px; height: 10px; border-radius: 3px; }
.zone-key .z1 { background: var(--map-1); } .zone-key .z2 { background: var(--map-2); } .zone-key .z3 { background: var(--map-3); }
.zone-key .z4 { background: var(--map-4); } .zone-key .z5 { background: var(--map-5); } .zone-key .z6 { background: var(--map-6); }

.map { display: block; width: 100%; height: auto; }
.map path { stroke: var(--map-stroke); stroke-width: 1; stroke-linejoin: round; cursor: pointer; transition: fill var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); outline: none; }
.map .zone-south-south { fill: var(--map-1); }
.map .zone-south-west { fill: var(--map-2); }
.map .zone-south-east { fill: var(--map-3); }
.map .zone-north-central { fill: var(--map-4); }
.map .zone-north-west { fill: var(--map-5); }
.map .zone-north-east { fill: var(--map-6); }
.map path:hover { opacity: 0.8; }
.map path:focus-visible { stroke: var(--text); stroke-width: 2; }
.map:has(path[aria-pressed="true"]) path { opacity: 0.4; }
.map:has(path[aria-pressed="true"]) path:hover { opacity: 0.7; }
.map path[aria-pressed="true"], .map:has(path[aria-pressed="true"]) path[aria-pressed="true"] { opacity: 1; stroke: var(--text); stroke-width: 1.75; }
.map-pin, .map-pin-ring { display: none; }

.explorer-out { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); min-width: 0; }
.facts-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.facts-head strong { display: block; font-size: 22px; line-height: 30px; letter-spacing: -0.02em; }
.facts-head span:not(.badge) { font-size: 13px; color: var(--text-3); }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: var(--space-4) 0 0; border: 1px solid var(--border); border-radius: var(--radius); }
.facts div { padding: 10px 12px; min-width: 0; }
.facts div + div { border-left: 1px solid var(--divider); }
.facts dt { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts-sub { display: block; font-size: 11px; color: var(--text-4); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }
.explorer-code { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.req-method { color: var(--code-ok); font-weight: var(--w-semibold); margin-right: 4px; }
.explorer-json { flex: 1; max-height: 300px; overflow: auto; font-size: 12.5px; line-height: 19px; }
.explorer-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-3); }
.explorer-note .icon { width: 15px; height: 15px; }

.features { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.features-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.features-grid .feature { padding: var(--space-5) var(--space-5) var(--space-5) 0; }
.features-grid .feature + .feature { padding-left: var(--space-5); border-left: 1px solid var(--divider); }

.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 15px; line-height: 22px; margin-top: 4px; }
.feature p { font-size: 13px; line-height: 20px; color: var(--text-3); }

.strip { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.strip-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip .feature { padding: var(--space-5); }
.strip .feature + .feature { border-left: 1px solid var(--divider); }

/* ---- tables ---- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: var(--lh-small); }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--divider); vertical-align: middle; }
th:last-child, td:last-child { padding-right: 0; }
th { font-size: 12px; font-weight: var(--w-medium); color: var(--text-3); white-space: nowrap; }
thead th { border-bottom-color: var(--border); }
td { font-variant-numeric: tabular-nums; color: var(--text-2); }
td strong { color: var(--text); font-weight: var(--w-medium); }
tbody tr:last-child td { border-bottom: 0; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.cell-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
code.cell-sub { background: none; border: 0; padding: 0; font-size: 11.5px; }

.data-table { background: var(--surface); }
.section-tint .data-table, .split .data-table { background: transparent; }
.ds-name { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: var(--w-medium); }
.ds-name:hover { color: var(--accent-text); text-decoration: none; }
.ds-cell { display: flex; gap: 12px; align-items: flex-start; }
.ds-cell strong { display: block; }
.ds-cell span:not(.ds-icon) { font-size: 13px; color: var(--text-3); }
.ds-table td { padding-top: 14px; padding-bottom: 14px; }
.ds-table td .badge + .cell-sub { margin-top: 4px; }
.ds-table tr:target td { background: var(--accent-wash); }
.table-note { margin-top: var(--space-4); font-size: 13px; color: var(--text-3); max-width: 80ch; }

.matrix { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.matrix th, .matrix td { padding: 11px 20px; }
.matrix thead th { background: var(--surface-sunk); color: var(--text-2); font-size: 13px; }
.matrix td:first-child { color: var(--text); }
.matrix td:not(:first-child), .matrix thead th:not(:first-child) { width: 20%; }
.matrix-group th {
  padding-top: 20px; padding-bottom: 8px;
  font-size: 11px; font-weight: var(--w-semibold); color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--divider);
}
.matrix tbody tr:last-child td { border-bottom: 0; }

/* ---- datasets band and request runner ---- */

.split > div > .section-head { margin-bottom: var(--space-4); }

.try {
  background: var(--ink); color: var(--ink-text);
  border: 1px solid var(--ink-border); border-radius: var(--radius-card);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4);
  box-shadow: var(--shadow-float);
}
.try-head h2 { color: var(--ink-text); font-size: 18px; line-height: 26px; }
.try-head p { color: var(--ink-muted); font-size: 13px; line-height: 20px; margin-top: 2px; }
.try-controls { display: flex; flex-direction: column; gap: var(--space-3); }
.try select, .try input {
  background: var(--ink-2); color: var(--ink-text); border-color: var(--ink-border);
  font-family: var(--font-mono); font-size: 13px; height: 36px;
}
.try input::placeholder { color: var(--ink-muted); font-family: var(--font-sans); }
.try select:focus, .try input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgb(74 222 128 / 20%); }
.try-keyrow { display: flex; gap: var(--space-3); }
.try-keyrow .btn { height: 36px; }
.try-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.try-copy { margin-left: auto; }
.try-out { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--radius); overflow: hidden; }
.try-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--code-bar); border-bottom: 1px solid var(--code-border); min-width: 0; }
.try-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--code-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.try-body {
  margin: 0; padding: 12px 14px; height: 300px; overflow-y: auto; overflow-x: hidden;
  font-size: 12.5px; line-height: 19px; color: var(--code-text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.try-fine { font-size: 12px; color: var(--ink-muted); }

.status-chip {
  flex: none; font-family: var(--font-mono); font-size: 11.5px; font-weight: var(--w-medium);
  padding: 1px 8px; border-radius: var(--radius-pill);
  color: var(--code-muted); border: 1px solid var(--code-border);
}
.status-chip[data-state="pending"] { color: var(--code-pending); border-color: color-mix(in srgb, var(--code-pending) 35%, transparent); }
.status-chip[data-state="ok"] { color: var(--code-ok); background: color-mix(in srgb, var(--code-ok) 12%, transparent); border-color: color-mix(in srgb, var(--code-ok) 30%, transparent); }
.status-chip[data-state="error"] { color: var(--code-error); background: color-mix(in srgb, var(--code-error) 12%, transparent); border-color: color-mix(in srgb, var(--code-error) 30%, transparent); }

.banner {
  margin-top: var(--space-6);
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--radius-card);
}
.banner-flat { margin-top: 0; }
.banner-icon { width: 40px; height: 40px; background: var(--surface); }
.banner-icon .icon { width: 20px; height: 20px; }
.banner-text { flex: 1; min-width: 0; }
.banner-text strong { display: block; font-size: var(--fs-small); color: var(--text); }
.banner-text p { font-size: 13px; color: var(--text-2); }

/* ---- how it works ---- */

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; }
.flow-col {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: var(--space-4); align-self: stretch; box-shadow: var(--shadow-sm);
}
.flow-col h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); margin-bottom: var(--space-3); }
.flow-col h3 .logo { width: 18px; height: 18px; }
.flow-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flow-col li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--divider); border-radius: var(--radius);
  font-size: 13px; line-height: 18px; color: var(--text-2); background: var(--surface);
}
.flow-col li .icon { width: 16px; height: 16px; color: var(--text-3); }
.flow-col-brand { border-color: var(--accent-line); background: var(--accent-wash); }
.flow-col-brand li { border-color: var(--accent-line); }
.flow-col-brand li .icon { color: var(--accent-text); }
.flow-arrow { display: flex; justify-content: center; color: var(--text-4); }
.flow-arrow .icon { width: 18px; height: 18px; }

/* ---- code ---- */

.code-block { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--radius-card); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; background: var(--code-bar); border-bottom: 1px solid var(--code-border); }
.code-lang { font-family: var(--font-mono); font-size: 11.5px; color: var(--code-muted); }
.copy {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: var(--w-medium);
  color: var(--code-muted); background: transparent;
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 4px 8px; cursor: pointer;
}
.copy:hover { color: var(--code-text); background: rgb(255 255 255 / 6%); }
.copy .icon { width: 14px; height: 14px; }
pre.code { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 21px; color: var(--code-text); background: transparent !important; }

.tabs-block { display: flex; flex-direction: column; position: relative; }
.tab-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.tab-list { display: flex; gap: 4px; padding: 4px; background: var(--surface-sunk); border: 1px solid var(--border); border-radius: var(--radius); align-self: flex-start; margin-bottom: var(--space-3); }
.tab-list label { font-size: 13px; font-weight: var(--w-medium); color: var(--text-3); padding: 4px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.tab-list label:hover { color: var(--text); }
.tab-panel { display: none; }
.tab-input:nth-of-type(1):checked ~ .tab-panels > .tab-panel:nth-child(1),
.tab-input:nth-of-type(2):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tab-input:nth-of-type(3):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tab-input:nth-of-type(4):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tab-input:nth-of-type(5):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tab-input:nth-of-type(6):checked ~ .tab-panels > .tab-panel:nth-child(6),
.tab-input:nth-of-type(7):checked ~ .tab-panels > .tab-panel:nth-child(7) { display: block; }
.tab-input:nth-of-type(1):checked ~ .tab-list label:nth-child(1),
.tab-input:nth-of-type(2):checked ~ .tab-list label:nth-child(2),
.tab-input:nth-of-type(3):checked ~ .tab-list label:nth-child(3),
.tab-input:nth-of-type(4):checked ~ .tab-list label:nth-child(4),
.tab-input:nth-of-type(5):checked ~ .tab-list label:nth-child(5),
.tab-input:nth-of-type(6):checked ~ .tab-list label:nth-child(6),
.tab-input:nth-of-type(7):checked ~ .tab-list label:nth-child(7) { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tab-input:nth-of-type(1):focus-visible ~ .tab-list label:nth-child(1),
.tab-input:nth-of-type(2):focus-visible ~ .tab-list label:nth-child(2),
.tab-input:nth-of-type(3):focus-visible ~ .tab-list label:nth-child(3),
.tab-input:nth-of-type(4):focus-visible ~ .tab-list label:nth-child(4),
.tab-input:nth-of-type(5):focus-visible ~ .tab-list label:nth-child(5),
.tab-input:nth-of-type(6):focus-visible ~ .tab-list label:nth-child(6),
.tab-input:nth-of-type(7):focus-visible ~ .tab-list label:nth-child(7) { outline: 2px solid var(--accent); outline-offset: 1px; }
.tab-list { flex-wrap: wrap; }
.uc-blurb { font-size: var(--fs-small); color: var(--text-2); margin-bottom: var(--space-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- developer panel ---- */

.dev-panel {
  background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.dev-panel h2 { font-size: 18px; line-height: 26px; }
.dev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.dev-list li { display: flex; gap: 14px; align-items: flex-start; }
.dev-list strong { display: block; font-size: var(--fs-small); }
.dev-list p { font-size: 13px; line-height: 20px; color: var(--text-3); }

/* ---- verification block ---- */

.verify-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-sm); }
.verify-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--divider); }
.verify-head strong { color: var(--success-text); font-size: var(--fs-small); }
.verify-name { margin-left: auto; font-size: 12px; color: var(--text-3); }
.verify-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--success); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.verify-tick .icon { width: 13px; height: 13px; stroke-width: 3; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.kv .mono { font-size: 12.5px; }

dl.rows, dl.licences { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; margin: 0; font-size: var(--fs-small); }
dl.rows dt, dl.rows dd, dl.licences dt, dl.licences dd { padding: 14px 0; border-bottom: 1px solid var(--divider); margin: 0; }
dl.rows dt, dl.licences dt { font-weight: var(--w-medium); color: var(--text); padding-right: var(--space-5); }
dl.rows dd, dl.licences dd { color: var(--text-2); }
dl.rows dt:last-of-type, dl.rows dd:last-of-type, dl.licences dt:last-of-type, dl.licences dd:last-of-type { border-bottom: 0; }

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

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-sm);
}
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-card); }
.plan h2 { font-size: 18px; line-height: 26px; }
.plan-blurb { font-size: var(--fs-small); color: var(--text-3); margin-top: -8px; min-height: 48px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; min-height: 48px; }
.plan-price .amount { font-size: 36px; line-height: 44px; font-weight: var(--w-semibold); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price .amount-text { font-size: 28px; }
.plan-price .unit { font-size: var(--fs-small); color: var(--text-3); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-small); color: var(--text-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 16px; height: 16px; color: var(--success); stroke-width: 2.25; margin-top: 2px; }
.plan .checks { padding-top: var(--space-4); border-top: 1px solid var(--divider); }
.checks-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }

.free-row {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-5); padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-card);
}
.free-row strong { display: block; font-size: var(--fs-small); }
.free-row p { font-size: 13px; color: var(--text-3); }
.includes { margin-top: var(--space-6); padding: var(--space-5); background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--radius-card); }
.includes h2 { font-size: var(--fs-body); margin-bottom: var(--space-4); }

.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.plan h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-free { background: var(--surface-tint); box-shadow: none; }
.plan-perk { font-size: 12.5px; color: var(--text-3); margin-top: -10px; min-height: 18px; }
.checks li.off { color: var(--text-4); }
.checks li.off .icon { color: var(--text-4); }
.plans-note { margin-top: var(--space-4); font-size: 13px; color: var(--text-3); text-align: center; }

.estimator-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.estimator-input { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.estimator-input label { font-size: var(--fs-small); color: var(--text-3); font-weight: var(--w-medium); }
.estimator-input output { font-size: 40px; line-height: 48px; font-weight: var(--w-semibold); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--surface-sunk) var(--fill, 0%)); box-shadow: inset 0 0 0 1px var(--border); margin: var(--space-4) 0 var(--space-2); cursor: pointer; }
input[type="range"]:focus { box-shadow: inset 0 0 0 1px var(--border), 0 0 0 3px var(--focus); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-card); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-card); }
.estimator-result { padding: var(--space-6); background: var(--accent-wash); border-left: 1px solid var(--accent-line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; justify-content: center; }
.estimator-kicker { font-size: 12px; font-weight: var(--w-medium); color: var(--success-text); text-transform: uppercase; letter-spacing: 0.06em; }
.estimator-result strong { font-size: 28px; line-height: 36px; letter-spacing: -0.02em; }
.estimator-result p { font-size: var(--fs-small); color: var(--text-2); margin-bottom: var(--space-3); }

.include-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.include-grid .feature { padding: var(--space-5); border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.include-grid .feature:nth-child(3n) { border-right: 0; }
.include-grid .feature:nth-last-child(-n+3) { border-bottom: 0; }
.include-grid .feature p { font-size: 13.5px; }

.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.use { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-5); }
.use h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 6px; }
.use h3 .icon { width: 18px; height: 18px; color: var(--accent-text); }
.use p { font-size: 14px; color: var(--text-2); }

.cta-band { background: var(--ink); color: var(--ink-text); padding: var(--space-8) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.cta-band h2 { color: var(--ink-text); font-size: 28px; line-height: 36px; }
.cta-band p { color: var(--ink-muted); margin-top: 6px; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-7); }
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: var(--w-medium); color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--text-3); transition: transform var(--t-base) var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 0 18px; font-size: var(--fs-small); color: var(--text-2); max-width: 70ch; }

/* ---- docs ---- */

.docs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-7); padding-top: var(--space-6); padding-bottom: var(--space-8); }
.docs-side nav { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 8px; }
.docs-side h2 { font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: var(--space-5) 0 var(--space-2); }
.docs-side h2:first-child { margin-top: 0; }
.docs-side ul { list-style: none; margin: 0; padding: 0; }
.docs-side a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--text-2); }
.docs-side a:hover { background: var(--surface-sunk); color: var(--text); text-decoration: none; }
.docs-head { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; padding-bottom: var(--space-6); border-bottom: 1px solid var(--divider); }
.docs-head h1 { font-size: 40px; line-height: 48px; }
.doc-section { padding: var(--space-6) 0; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: var(--space-4); }
.doc-section:last-child { border-bottom: 0; }
.doc-section > p { color: var(--text-2); max-width: var(--measure); }
.doc-section h2 { font-size: 22px; }
.note { display: flex; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface-tint); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.note .icon { width: 18px; height: 18px; color: var(--accent-text); margin-top: 1px; }
.endpoint-group { margin-top: var(--space-4); }
.endpoint-group h3 { font-size: 15px; margin-bottom: var(--space-3); text-transform: capitalize; }
.endpoints { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.endpoints li { display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--divider); font-size: 13px; }
.endpoints li:last-child { border-bottom: 0; }
.method { font-family: var(--font-mono); font-size: 11px; font-weight: var(--w-semibold); color: var(--success-text); background: var(--success-wash); border-radius: var(--radius-sm); padding: 2px 6px; text-align: center; }
.endpoints code.path { background: none; border: 0; padding: 0; font-size: 13px; }
.ep-summary { color: var(--text-3); }

/* ---- status ---- */

.status-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-card);
  background: var(--success-wash); color: var(--success-text); border: 1px solid var(--accent-line);
}
.status-banner strong { font-size: 16px; }
.status-banner span:not(.dot) { margin-left: auto; font-size: 13px; color: var(--text-3); }
.status-banner[data-state="degraded"] { background: var(--warning-wash); color: var(--warning-text); border-color: transparent; }
.status-banner[data-state="down"] { background: var(--danger-wash); color: var(--danger-text); border-color: transparent; }
.status-banner[data-state="unknown"] { background: var(--surface-sunk); color: var(--text-2); border-color: var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); flex: none; }
.status-banner[data-state="up"] .dot { background: var(--success); }

.components { list-style: none; margin: var(--space-4) 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.components li { display: flex; align-items: center; gap: var(--space-5); padding: 14px 20px; border-bottom: 1px solid var(--divider); }
.components li:last-child { border-bottom: 0; }
.components strong { font-size: var(--fs-small); }

.uptime-chart { display: flex; gap: 2px; height: 40px; align-items: stretch; }
.bar { flex: 1; border-radius: 2px; background: var(--success); min-width: 2px; }
.bar[data-state="down"] { background: var(--danger); }
.bar[data-state="missing"] { background: var(--border); }
.bar:hover { opacity: 0.75; }
.uptime-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.legend { display: flex; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-4); font-size: 13px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--success); }
.legend i[data-state="down"] { background: var(--danger); }
.legend i[data-state="missing"] { background: var(--border); }

/* ---- empty states ---- */

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--space-7) var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-card); }
.empty h3 { font-size: 15px; margin-top: 4px; }
.empty p { font-size: var(--fs-small); color: var(--text-3); max-width: 44ch; }
.empty .btn { margin-top: 8px; }
.empty-icon { width: 44px; height: 44px; border-radius: 50%; }
.empty-icon .icon { width: 20px; height: 20px; }
.empty-inline { border: 0; padding: var(--space-6) var(--space-4); }

/* ---- legal ---- */

.legal-hero { padding: var(--space-7) 0 var(--space-6); border-bottom: 1px solid var(--divider); background: var(--surface-tint); }
.legal-hero .wrap { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.legal-hero h1 { font-size: 40px; line-height: 48px; }
.legal-meta { color: var(--text-3); font-size: var(--fs-small); }
.doc-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.doc-switch a { font-size: 13px; font-weight: var(--w-medium); color: var(--text-3); padding: 5px 12px; border-radius: var(--radius-sm); }
.doc-switch a:hover { color: var(--text); text-decoration: none; }
.doc-switch a[aria-current="page"] { background: var(--accent-wash); color: var(--success-text); }

.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 72ch); gap: var(--space-8); padding-top: var(--space-7); padding-bottom: var(--space-8); }
.legal-toc nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc h2 { font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: var(--space-3); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--border); }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13px; color: var(--text-3); }
.legal-toc a::before { content: counter(toc); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-4); min-width: 14px; }
.legal-toc a:hover { color: var(--text); border-left-color: var(--accent); text-decoration: none; }

.legal-body section { padding: var(--space-5) 0; border-bottom: 1px solid var(--divider); }
.legal-body section:last-of-type { border-bottom: 0; }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; font-size: 18px; line-height: 26px; margin-bottom: var(--space-3); }
.legal-body h2 span { font-family: var(--font-mono); font-size: 13px; font-weight: var(--w-medium); color: var(--text-3); min-width: 20px; }
.legal-body section > p, .legal-body section > ul, .legal-body section > dl { margin-left: 32px; }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 15px; line-height: 26px; }
.legal-body p + p { margin-top: var(--space-3); }
.legal-body ul { padding-left: 18px; margin-top: var(--space-2); margin-bottom: 0; }
.legal-body li + li { margin-top: 6px; }
.legal-body strong { color: var(--text); }
.legal-body dl.rows { font-size: 14px; grid-template-columns: minmax(140px, 180px) 1fr; }

.legal-summary { background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-5); margin-bottom: var(--space-4); }
.legal-summary h2 { font-size: 15px; margin-bottom: var(--space-4); }
.legal-summary ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-summary li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; margin: 0; color: var(--text); }
.legal-summary li + li { margin-top: 0; }
.legal-summary .icon { width: 16px; height: 16px; margin-top: 3px; stroke-width: 2.25; color: var(--success); }
.legal-summary li:has(use[href="#i-x"]) .icon { color: var(--danger); }
.legal-summary li:has(use[href="#i-info"]) .icon { color: var(--text-3); }
.legal-summary > p { margin-top: var(--space-4); font-size: 12.5px; color: var(--text-3); }

.legal-contact { display: flex; gap: 14px; align-items: flex-start; margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card); }
.legal-contact strong { display: block; font-size: var(--fs-small); }
.legal-contact p { font-size: 14px; color: var(--text-2); }

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

.foot { border-top: 1px solid var(--border); background: var(--surface-tint); padding: var(--space-7) 0 var(--space-5); font-size: var(--fs-small); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: var(--space-7); }
.foot-brand { display: flex; flex-direction: column; gap: var(--space-4); }
.foot-brand p { color: var(--text-3); max-width: 32ch; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.foot-cols h2 { font-size: 13px; line-height: 20px; margin-bottom: var(--space-3); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-cols a, .foot-meta a { color: var(--text-3); }
.foot-cols a:hover, .foot-meta a:hover { color: var(--text); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--divider); color: var(--text-3); font-size: 13px; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); }
.foot-status .dot { width: 8px; height: 8px; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent); }
.foot-slim { padding: 0 0 var(--space-5); background: transparent; border-top: 0; }
.foot-slim .foot-bottom { margin-top: 0; }
.foot-meta { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---- sign in ---- */

body.auth { min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; padding: var(--space-5) var(--space-7); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-block { width: 100%; max-width: 400px; margin: auto; padding: var(--space-7) 0; display: flex; flex-direction: column; gap: var(--space-4); align-items: stretch; }
.auth-block .icon-tile { align-self: flex-start; }
.auth-block h1 { font-size: 30px; line-height: 38px; }
.auth-lede { color: var(--text-2); font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-3); }
.auth-form input { height: 44px; font-size: 15px; }
.auth-fine { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-3); }
.auth-fine .icon { width: 16px; height: 16px; }
.auth-cross { font-size: var(--fs-small); color: var(--text-3); padding-top: var(--space-4); border-top: 1px solid var(--divider); }
.auth-foot nav { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: 13px; }
.auth-foot a { color: var(--text-3); }

.auth-aside {
  background: var(--ink); color: var(--ink-text);
  display: flex; align-items: center; justify-content: center; padding: var(--space-7);
  position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink-border) 1px, transparent 1px), linear-gradient(90deg, var(--ink-border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.auth-aside-inner { position: relative; max-width: 440px; display: flex; flex-direction: column; gap: var(--space-5); }
.auth-aside-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: var(--w-medium); color: var(--brand-400); }
.auth-aside-kicker .logo { width: 20px; height: 20px; }
.auth-aside-title { font-size: 26px; line-height: 34px; font-weight: var(--w-semibold); letter-spacing: -0.02em; }
.verify-card-ink { background: var(--ink-2); border-color: var(--ink-border); box-shadow: none; }
.verify-card-ink .verify-head { border-color: var(--ink-border); }
.verify-card-ink .verify-head strong { color: var(--brand-400); }
.verify-card-ink .verify-name, .verify-card-ink .kv dt { color: var(--ink-muted); }
.verify-card-ink .kv dd { color: var(--ink-text); }
.auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0; }
.auth-stats div { border-top: 1px solid var(--ink-border); padding-top: var(--space-3); }
.auth-stats dt { font-size: 12px; color: var(--ink-muted); }
.auth-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: var(--w-semibold); font-variant-numeric: tabular-nums; }

/* ---- account ---- */

.app-main { padding-top: var(--space-6); padding-bottom: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); }
.app-head h1 { font-size: 30px; line-height: 38px; }
.inline-form { display: inline; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4) var(--space-5); }
.stat + .stat { border-left: 1px solid var(--divider); }
.stat span { font-size: 13px; color: var(--text-3); }
.stat strong { font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; }
.stat a { font-size: 13px; }

.new-key { border: 1px solid var(--accent); border-radius: var(--radius-card); background: var(--accent-wash); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.new-key-head { display: flex; gap: var(--space-4); align-items: center; }
.new-key-head .icon-tile { background: var(--surface); }
.new-key h2 { font-size: 18px; line-height: 26px; }
.new-key p { font-size: var(--fs-small); color: var(--text-2); }
.key-box { display: flex; gap: var(--space-3); align-items: center; background: var(--code-bg); border-radius: var(--radius); padding: 8px 8px 8px 16px; }
.key-box code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: var(--code-text); font-size: 14px; overflow-wrap: anywhere; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-5); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-4); }
.panel-head h2 { font-size: 18px; line-height: 26px; }
.panel-head p { font-size: 13px; color: var(--text-3); }
.key-form { display: flex; gap: var(--space-3); align-items: flex-end; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--divider); }
.key-form .field { flex: 1; max-width: 320px; }
.offers { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); }
.offer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 12px 16px; margin: 0; }
.offer + .offer { border-top: 1px solid var(--divider); }
.offer div { display: flex; flex-direction: column; }
.offer strong { font-size: var(--fs-small); }
.offer span { font-size: 13px; color: var(--text-3); }
.link-button { font: inherit; font-size: 13px; color: var(--accent-text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.usage-chart { display: block; width: 100%; height: 120px; }
.usage-chart rect { fill: var(--accent); }
.usage-chart rect:hover { fill: var(--accent-hover); }

/* ---- responsive ---- */

@media (max-width: 1080px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer-pick { border-right: 0; border-bottom: 1px solid var(--divider); }
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-grid .feature:nth-child(4) { padding-left: 0; border-left: 0; }
  .features-grid .feature:nth-child(n+4) { border-top: 1px solid var(--divider); }
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
  .flow-arrow { display: none; }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
  .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-panel { position: static; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-side { display: none; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: var(--space-5); }
  .legal-toc { display: none; }
}

@media (max-width: 860px) {
  .nav, .top-link, .top-actions > .btn { display: none; }
  .menu { display: block; }
  .hero-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .hero-head h1 { font-size: 44px; line-height: 50px; max-width: none; }
  .plans, .plans-4 { grid-template-columns: minmax(0, 1fr); }
  .estimator-panel { grid-template-columns: minmax(0, 1fr); }
  .estimator-result { border-left: 0; border-top: 1px solid var(--accent-line); }
  .include-grid, .uses { grid-template-columns: minmax(0, 1fr); }
  .include-grid .feature { border-right: 0; border-bottom: 1px solid var(--divider); }
  .include-grid .feature:last-child { border-bottom: 0; }
  .checks-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .strip-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .strip .feature:nth-child(3) { border-left: 0; }
  .strip .feature:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-main { padding: var(--space-4) var(--gutter); min-height: 100vh; }
}

@media (max-width: 640px) {
  .section { padding: var(--space-7) 0; }
  .hero { padding: var(--space-6) 0; }
  .page-hero { padding: var(--space-6) 0 var(--space-5); }
  .page-hero h1, .docs-head h1, .legal-hero h1 { font-size: 30px; line-height: 38px; }
  .legal-body section > p, .legal-body section > ul, .legal-body section > dl { margin-left: 0; }
  .hero-head h1 { font-size: 36px; line-height: 42px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div + div { border-left: 0; }
  .facts div { border-top: 1px solid var(--divider); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .facts div:nth-child(even) { border-left: 1px solid var(--divider); }
  .facts div:last-child { grid-column: 1 / -1; border-left: 0; }
  .features-grid { grid-template-columns: minmax(0, 1fr); }
  .features-grid .feature, .features-grid .feature + .feature { padding: var(--space-4) 0; border-left: 0; border-top: 1px solid var(--divider); flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; }
  .features-grid .feature:first-child { border-top: 0; }
  .features-grid .feature h3 { margin: 0; }
  .features-grid .feature p { flex-basis: 100%; padding-left: 48px; }
  .explorer-pick, .explorer-out { padding: var(--space-4); }
  .explorer-json { white-space: pre-wrap; overflow-wrap: anywhere; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .checks-3, .strip-4 { grid-template-columns: minmax(0, 1fr); }
  .strip .feature + .feature { border-left: 0; border-top: 1px solid var(--divider); }
  .banner, .free-row { flex-direction: column; align-items: flex-start; }
  .endpoints li { grid-template-columns: 48px minmax(0, 1fr); row-gap: 4px; }
  .endpoints .ep-summary { grid-column: 2; }
  .endpoints .badge { grid-column: 2; justify-self: start; }
  dl.rows, dl.licences { grid-template-columns: minmax(0, 1fr); }
  dl.rows dt, dl.licences dt { border-bottom: 0; padding-bottom: 0; }
  .components li { flex-wrap: wrap; gap: 8px 16px; }
  .components li .grow { flex-basis: 100%; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--divider); }
  .key-form { flex-direction: column; align-items: stretch; }
  .key-form .field { max-width: none; }
  .try { padding: var(--space-4); }
  .try-body { height: 260px; }
  .top-inner { gap: var(--space-3); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uptime-chart { gap: 1px; }
}

/* Admin */
.stat-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-row-4 .stat:nth-child(4n+1) { border-left: 0; }
.stat-row-4 .stat:nth-child(n+5) { border-top: 1px solid var(--divider); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.admin-grid .panel { min-width: 0; }
.range { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.range a { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: var(--w-medium); color: var(--text-3); white-space: nowrap; }
.range a:hover { color: var(--text); text-decoration: none; }
.range a[aria-current="page"] { background: var(--surface-sunk); color: var(--text); box-shadow: var(--shadow-sm); }
.admin-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.admin-form select, .admin-form input { min-width: 160px; }
@media (max-width: 860px) {
  .stat-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row-4 .stat:nth-child(odd) { border-left: 0; }
  .stat-row-4 .stat:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
}
.pulse { display: flex; flex-direction: column; gap: var(--space-6); }
.pulse figure { margin: 0; min-width: 0; }
.pulse figcaption { font-size: 13px; font-weight: var(--w-medium); color: var(--text-3); margin-bottom: var(--space-3); }
.pulse-dot { flex: none; width: 12px; height: 12px; border-radius: 999px; background: var(--border-strong); }
.pulse-dot[data-state="good"] { background: var(--success); }
.pulse-dot[data-state="watch"] { background: var(--warning); }
.pulse-dot[data-state="bad"] { background: var(--danger); }

.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.gauge { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge svg { width: 100%; max-width: 150px; display: block; }
.gauge figcaption { margin: var(--space-2) 0 0; color: var(--text); font-size: 14px; display: flex; flex-direction: column; }
.gauge figcaption small { font-size: 12px; color: var(--text-3); font-weight: var(--w-regular); }
.gauge-track { stroke: var(--border); }
.gauge-fill { stroke: var(--border-strong); transform-origin: center; }
.gauge[data-state="good"] .gauge-fill { stroke: var(--success); }
.gauge[data-state="watch"] .gauge-fill { stroke: var(--warning); }
.gauge[data-state="bad"] .gauge-fill { stroke: var(--danger); }
.gauge[data-state="info"] .gauge-fill { stroke: var(--accent); }
.gauge-value { font-size: 5.4px; font-weight: var(--w-semibold); fill: var(--text); font-variant-numeric: tabular-nums; }

.mixes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.stack { display: block; width: 100%; height: 18px; border-radius: 4px; overflow: hidden; }
rect.c-ok { fill: var(--accent); }
rect.c-client { fill: var(--gray-400); }
rect.c-limited { fill: var(--warning); }
rect.c-error { fill: var(--danger); }
rect.lat-0 { fill: var(--success); }
rect.lat-1 { fill: #84cc16; }
rect.lat-2 { fill: #eab308; }
rect.lat-3 { fill: var(--warning); }
rect.lat-4 { fill: #f97316; }
rect.lat-5 { fill: var(--danger); }
rect.s0 { fill: var(--accent); } rect.s1 { fill: #8b5cf6; } rect.s2 { fill: #0ea5e9; }
rect.s3 { fill: var(--warning); } rect.s4 { fill: #ec4899; } rect.s5 { fill: var(--gray-400); }
circle.s0 { stroke: var(--accent); } circle.s1 { stroke: #8b5cf6; } circle.s2 { stroke: #0ea5e9; }
circle.s3 { stroke: var(--warning); } circle.s4 { stroke: #ec4899; } circle.s5 { stroke: var(--gray-400); }

.legend-row, .legend-col { list-style: none; margin: var(--space-2) 0 0; padding: 0; font-size: 12px; color: var(--text-3); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend-row li, .legend-col li { display: flex; align-items: center; gap: 6px; }
.legend-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.legend-col li { padding: 3px 0; }
.legend-col strong { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; padding-left: var(--space-3); }
.swatch { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--border-strong); }
.swatch.c-ok { background: var(--accent); } .swatch.c-client { background: var(--gray-400); }
.swatch.c-limited { background: var(--warning); } .swatch.c-error { background: var(--danger); }
.swatch.lat-0 { background: var(--success); } .swatch.lat-1 { background: #84cc16; }
.swatch.lat-2 { background: #eab308; } .swatch.lat-3 { background: var(--warning); }
.swatch.lat-4 { background: #f97316; } .swatch.lat-5 { background: var(--danger); }
.swatch.s0 { background: var(--accent); } .swatch.s1 { background: #8b5cf6; } .swatch.s2 { background: #0ea5e9; }
.swatch.s3 { background: var(--warning); } .swatch.s4 { background: #ec4899; } .swatch.s5 { background: var(--gray-400); }
.swatch.line { height: 3px; border-radius: 2px; }
.swatch.line-visitors { background: var(--text-2); } .swatch.line-signups { background: #8b5cf6; }
.swatch.dot { border-radius: 999px; }
.swatch.paid-mark { background: var(--success); }
.swatch.uptime-cell { background: var(--success); }

.trend svg { display: block; width: 100%; height: 220px; }
.trend .uptime-axis { display: flex; justify-content: space-between; }
.trend-base { stroke: var(--divider); stroke-width: 1; }
.line-visitors { stroke: var(--text-2); stroke-width: 2; }
.line-signups { stroke: #8b5cf6; stroke-width: 2; }
circle.paid-mark { fill: var(--success); }
.uptime-cell { fill: var(--border); }
.uptime-cell[data-state="good"] { fill: var(--success); }
.uptime-cell[data-state="watch"] { fill: var(--warning); }
.uptime-cell[data-state="bad"] { fill: var(--danger); }

.pulse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.delta { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.delta[data-tone="good"] { color: var(--success-text); }
.delta[data-tone="bad"] { color: var(--danger-text); }
.funnel-chart { width: 100%; display: block; }
.funnel-fill { fill: var(--accent); opacity: 0.85; }
.funnel-label { font-size: 15px; fill: var(--text); dominant-baseline: middle; }
.funnel-count { font-size: 17px; font-weight: var(--w-semibold); fill: var(--text); dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.funnel-rate { font-size: 12px; fill: var(--text-3); dominant-baseline: middle; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-5); border-left: 1px solid var(--divider); }
.tile:nth-child(4n+1) { border-left: 0; }
.tile:nth-child(n+5) { border-top: 1px solid var(--divider); }
.tile > span:first-child { font-size: 13px; color: var(--text-3); }
.tile strong { font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; }
.tile-foot { display: flex; align-items: baseline; gap: 8px; }
.tile small { font-size: 12px; color: var(--text-4); }
.overview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-bottom: var(--space-2); }
.overview-head h1 { font-size: 30px; line-height: 38px; }
.overview-head p { margin-top: 4px; font-size: 14px; }
.overview-title { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 13px; font-weight: var(--w-medium); background: var(--neutral-wash); color: var(--neutral-text); }
.state-pill .pulse-dot { width: 8px; height: 8px; }
.state-pill[data-state="good"] { background: var(--success-wash); color: var(--success-text); }
.state-pill[data-state="watch"] { background: var(--warning-wash); color: var(--warning-text); }
.state-pill[data-state="bad"] { background: var(--danger-wash); color: var(--danger-text); }
.donuts.donuts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.donuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.donut svg { width: 100%; max-width: 170px; display: block; margin: 0 auto var(--space-3); }
.donut-value { font-size: 5.5px; font-weight: var(--w-semibold); fill: var(--text); }
.donut-sub { font-size: 3.2px; fill: var(--text-3); }

@media (max-width: 860px) {
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mixes, .pulse-grid, .donuts { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(4n+1) { border-left: 1px solid var(--divider); }
  .tile:nth-child(odd) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .trend svg { height: 180px; }
}
