/* screenshot-api.net — hand-written CSS, no framework, no build step.

   Type: a serif display face for headlines, the platform sans for everything
   else, the platform mono for code. All three are system stacks on purpose:
   this site ships no font files and loads nothing from a CDN.

   Colour: warm neutrals rather than blue-greys, so the orange accent reads as
   part of the palette instead of an alarm on top of it. Every colour is a
   token on :root; the dark theme only re-points the tokens. */

[x-cloak] { display: none !important; }

:root {
  --bg: #f6f3ee;
  --bg-2: #f1ede6;
  --surface: #fffdf9;
  --surface-2: #efeae2;
  --border: #e4ded4;
  --border-strong: #cdc4b7;
  --text: #1b1815;
  --text-2: #3d3833;
  --muted: #6b6459;
  --faint: #9a9287;
  --accent: #d94a1e;
  --accent-hover: #bf3f18;
  --accent-text: #ffffff;
  --accent-soft: rgba(217, 74, 30, .10);
  --accent-line: rgba(217, 74, 30, .35);
  --ok: #1d7a4a;
  --ok-soft: rgba(29, 122, 74, .12);
  --shadow-sm: 0 1px 2px rgba(27, 24, 21, .06);
  --shadow: 0 1px 2px rgba(27, 24, 21, .05), 0 10px 30px -12px rgba(27, 24, 21, .18);
  --shadow-lg: 0 2px 4px rgba(27, 24, 21, .05), 0 30px 60px -24px rgba(27, 24, 21, .28);
  --ring: 0 0 0 3px var(--accent-soft);
  --radius: 14px;
  --radius-sm: 9px;
  --mono: ui-monospace, "SF Mono", Menlo, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "URW Palladio L", P052, Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0c;
    --bg-2: #131110;
    --surface: #171512;
    --surface-2: #1f1c17;
    --border: #2a2620;
    --border-strong: #3d372f;
    --text: #efeae2;
    --text-2: #d6cfc4;
    --muted: #a39b8e;
    --faint: #6f685d;
    --accent: #ff6a3d;
    --accent-hover: #ff8259;
    --accent-text: #1b1815;
    --accent-soft: rgba(255, 106, 61, .14);
    --accent-line: rgba(255, 106, 61, .45);
    --ok: #5ccf8d;
    --ok-soft: rgba(92, 207, 141, .14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 36px 70px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f0e0c;
  --bg-2: #131110;
  --surface: #171512;
  --surface-2: #1f1c17;
  --border: #2a2620;
  --border-strong: #3d372f;
  --text: #efeae2;
  --text-2: #d6cfc4;
  --muted: #a39b8e;
  --faint: #6f685d;
  --accent: #ff6a3d;
  --accent-hover: #ff8259;
  --accent-text: #1b1815;
  --accent-soft: rgba(255, 106, 61, .14);
  --accent-line: rgba(255, 106, 61, .45);
  --ok: #5ccf8d;
  --ok-soft: rgba(92, 207, 141, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 36px 70px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* The hero backdrop is viewport-wide; clip rather than hide so no scroll
     container is created and sticky positioning keeps working. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-text); }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.serif, .hero h1, .section-head h2, .cta h2, .legal h1, .doc-body h2, .notfound-title, .auth-card h1 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.015em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: .92em; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 15.5px; color: var(--text); letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg {
  display: block; width: 30px; height: 30px; padding: 5px;
  border-radius: 9px; background: var(--accent); color: var(--accent-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-auth { display: contents; }
.nav-auth[hidden] { display: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--muted);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

/* ============================================================
   Buttons and controls
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-text); border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(27,24,21,.18);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm  { padding: 7px 13px; font-size: 13.5px; }
.btn-nav { padding: 7px 15px; font-size: 14px; }

input[type="email"], input[type="text"], input[type="url"] {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

/* Small labels: mono, uppercase, quiet. Used for eyebrows, table heads,
   stat labels and the code block title. One voice for all "meta" text. */
.kicker, .code-label, th, .stat .label, .tier .name, .toc strong, .plan-opt .n {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}

.pill, .pill-ok, .pill-bad {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  background: var(--surface-2); color: var(--muted);
}
.pill-ok  { background: var(--ok-soft); color: var(--ok); }
.pill-bad { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 84px 0 30px; }
.hero { overflow: visible; }
.glow {
  position: absolute; top: -64px; left: 50%; width: 100vw; height: 620px;
  transform: translateX(-50%); pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 50% at 12% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, var(--accent-soft), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-grid {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.6rem, 5.8vw, 4.3rem);
  line-height: 1.02; max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede {
  margin: 22px 0 0; max-width: 52ch;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem); line-height: 1.55; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { padding: 13px 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--ok); flex: none; }

/* ============================================================
   Code
   ============================================================ */
.code {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.code-head {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 12px 9px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.code-label { padding-left: 2px; }
.code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
}
.code code { font-family: inherit; white-space: pre; }
.tok-c { color: var(--faint); }
.tok-s { color: var(--ok); }
.tok-k { color: var(--accent); font-weight: 600; }
.copy {
  margin-left: auto; padding: 5px 11px;
  border: 1px solid var(--border-strong); border-radius: 7px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--text); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.tab {
  padding: 6px 13px; border-radius: 7px;
  border: 1px solid transparent; background: none; color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.code-flush { border: 0; border-radius: 0; box-shadow: none; }
td code, p code, li code {
  font-family: var(--mono); font-size: .88em;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; color: var(--text-2);
}

/* ============================================================
   Demo panel: the product, working, above the fold
   ============================================================ */
.demo {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.demo-head { display: flex; align-items: baseline; gap: 10px; padding: 18px 22px 0; flex-wrap: wrap; }
.demo-head h2 { margin: 0; font-size: 1rem; }
.demo-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.demo-form { display: flex; gap: 10px; padding: 14px 22px 10px; flex-wrap: wrap; }
.url-field {
  display: flex; align-items: stretch; flex: 1 1 240px; min-width: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.url-field:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.url-prefix {
  display: grid; place-items: center; padding: 0 4px 0 13px;
  font-family: var(--mono); font-size: 13.5px; color: var(--faint);
  user-select: none;
}
.url-field input {
  flex: 1; min-width: 0; padding: 11px 12px 11px 4px;
  border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; box-shadow: none;
}
.url-field input:focus { outline: none; box-shadow: none; }
.field-error { margin: 0; padding: 0 22px; font-size: 13.5px; color: var(--accent); min-height: 18px; }
.samples { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 22px 18px; }
.chip {
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font: inherit; font-family: var(--mono); font-size: 12px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }

.stage {
  position: relative; border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--bg-2);
  min-height: 320px; display: grid; place-items: center; padding: 26px;
}
/* Viewfinder corners: the one decorative motif on the site. */
.stage::before, .stage::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid var(--accent); opacity: .7;
}
.stage::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.stage::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.frame { width: 100%; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: none; }
.frame-url {
  flex: 1; margin-left: 6px; padding: 3px 10px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stage img, #demo-placeholder img { max-width: 100%; height: auto; display: block; }
.stage-msg { color: var(--muted); font-size: 14px; text-align: center; max-width: 46ch; }
.stage-msg.error { color: var(--accent); }
.badge {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 64ch; margin-bottom: 40px; }
.section-head h2 {
  margin: 14px 0 0; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.1;
  text-wrap: balance;
}
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.section-head p a { font-weight: 600; }
.note-line { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 80ch; }
.mt-lg { margin-top: 48px; }
.mt-md { margin-top: 24px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card .ico {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}

/* ============================================================
   Tables
   ============================================================ */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); padding-top: 10px; padding-bottom: 10px; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tr:last-child td { border-bottom: none; }
table.tight th, table.tight td { padding: 10px 18px; font-size: 13.5px; white-space: nowrap; }
table.tight { min-width: 460px; }
table.tight td.wrap { white-space: normal; }
td.mono { font-family: var(--mono); font-size: 12.5px; }
table.tight td.mono { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   Pricing
   ============================================================ */
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 45%), var(--surface);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 20px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tier .price { margin: 14px 0 2px; font-size: 2.4rem; font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier .price span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier .quota { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
.tier ul { list-style: none; margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.tier li { display: flex; gap: 9px; padding: 5px 0; color: var(--muted); }
.tier li svg { flex: none; color: var(--ok); margin-top: 5px; }
.tier .btn { margin-top: auto; width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details[open] summary { color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; max-width: 78ch; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ============================================================
   Call to action: the one block on the site painted in the accent
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 56px 40px; text-align: center;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7a1f00));
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.22) 1px, transparent 1.5px) 0 0 / 18px 18px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent);
}
.cta > * { position: relative; }
.cta h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: #fff; }
.cta p { margin: 0 auto 24px; color: rgba(255,255,255,.82); max-width: 52ch; }
.cta form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta input[type="email"] {
  flex: 1 1 260px; max-width: 340px; padding: 12px 16px;
  border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px);
}
.cta input[type="email"]::placeholder { color: rgba(255,255,255,.6); }
.cta input[type="email"]:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.cta .btn-primary { background: #fff; color: var(--accent); border-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.cta .btn-primary:hover { background: #fff3ee; }
.cta .auth-terms { color: rgba(255,255,255,.72); }
.cta .auth-terms a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form-msg { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.cta .form-msg.ok, .cta .form-msg.err { color: #fff; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
footer { border-top: 1px solid var(--border); padding: 36px 0 40px; color: var(--muted); font-size: 14px; background: var(--bg-2); }
.foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); text-decoration: none; }

/* ============================================================
   Docs
   ============================================================ */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 60px; padding: 52px 0 90px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc a {
  display: block; padding: 5px 12px; margin-left: -12px; color: var(--muted);
  border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
  transition: color .12s, background .12s;
}
.toc a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc strong { display: block; margin: 20px 0 6px; color: var(--faint); }
.toc strong:first-child { margin-top: 0; }
.doc-body { max-width: 760px; }
.doc-body h2 { margin: 56px 0 14px; font-size: 1.85rem; scroll-margin-top: 90px; padding-top: 32px; border-top: 1px solid var(--border); }
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { margin: 30px 0 10px; font-size: 1.08rem; scroll-margin-top: 90px; }
.doc-body p, .doc-body li { color: var(--muted); line-height: 1.68; }
.doc-body p strong { color: var(--text); }
.doc-body .code, .doc-body .table-scroll { margin: 16px 0; }
.doc-body ul { padding-left: 20px; }
.note {
  border: 1px solid var(--accent-line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0;
  font-size: 14.5px;
}
.note p { margin: 0; color: var(--text-2); }

/* ============================================================
   Auth and consent
   ============================================================ */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 80px 0 100px; }
.auth-card {
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface);
  padding: 34px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { margin: 0 0 10px; font-size: 1.8rem; }
.auth-card > p { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.auth-card label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.auth-card input[type="email"] { width: 100%; }
.auth-card .btn { width: 100%; margin-top: 12px; }
.auth-card form .btn + .btn { margin-top: 8px; }
.auth-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-terms { margin: 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.sent {
  border: 1px solid var(--ok); background: var(--ok-soft);
  border-radius: 12px; padding: 22px; text-align: center;
}
.sent h2 { margin: 0 0 6px; font-size: 1.1rem; }
.sent p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============================================================
   Dashboard
   ============================================================ */
.dash { padding: 40px 0 90px; }
.dash-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: 1.65rem; letter-spacing: -.025em; }
.dash-head .who { color: var(--muted); font-size: 14.5px; }
.dash-head .spacer { margin-left: auto; }
.dash-head .actions { display: flex; gap: 8px; margin-left: auto; }

.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.panel[id] { scroll-margin-top: 90px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1rem; }
.panel-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); width: 100%; }
.panel-head .btn { margin-left: auto; }
.panel-head.sub-head { border-top: 1px solid var(--border); }
.panel-head.sub-head h2 { font-size: .92rem; }
.empty { padding: 34px 22px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* The overview: a quota ring beside a strip of figures, in one panel rather
   than five boxes competing for attention. */
.overview { display: grid; grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); }
.quota-block {
  display: flex; align-items: center; gap: 22px; padding: 24px 26px;
  border-right: 1px solid var(--border);
}
.ring { position: relative; width: 118px; height: 118px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--surface-2); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-text {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1;
}
.ring-text b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-text small { font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.quota-copy { min-width: 0; }
.quota-copy .value { font-size: 1.45rem; overflow-wrap: anywhere; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.quota-copy .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.quota-copy .pill { margin-bottom: 10px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 24px 22px; border-left: 1px solid var(--border); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -.035em; margin-top: 8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; width: 0; min-width: 3px; background: var(--accent); border-radius: 99px; }

.cols { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 20px; }
.range { margin-left: auto; display: flex; gap: 3px; background: var(--surface-2); padding: 3px; border-radius: 9px; }
.range-btn {
  padding: 5px 12px; border: 0; border-radius: 7px; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.range-btn:hover { color: var(--text); }
.range-btn.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.chart-wrap { padding: 18px 22px 22px; }
.chart-canvas { position: relative; height: 230px; width: 100%; }
.chart-canvas canvas { display: block; }
.chart-fallback { padding: 24px 0; text-align: center; }

.hostrow { display: flex; align-items: center; gap: 12px; padding: 10px 22px; font-size: 14px; }
.hostrow .name { flex: none; max-width: 44%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.hostrow .track { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hostrow .track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.hostrow .n { flex: none; color: var(--muted); font-size: 13px; min-width: 2.5ch; text-align: right; font-variant-numeric: tabular-nums; }

/* Keys and connections share one list; the icon tile says which is which. */
.key-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.key-row:last-child { border-bottom: none; }
.key-row:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.key-ico {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 9px; background: var(--surface-2); color: var(--muted);
}
.key-row.is-app .key-ico { background: var(--accent-soft); color: var(--accent); }
.key-row code { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.key-row.is-app code { font-family: var(--sans); font-weight: 600; font-size: 14.5px; }
.key-row .meta { font-size: 13px; color: var(--muted); }
.key-row .spacer { margin-left: auto; }
.link-danger {
  background: none; border: 1px solid transparent; border-radius: 7px; padding: 6px 11px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.link-danger:hover { color: var(--accent); background: var(--accent-soft); }
.reveal { margin: 18px 22px; padding: 16px 18px; border: 1px solid var(--ok); border-radius: 12px; background: var(--ok-soft); }
.reveal p { margin: 0 0 10px; font-size: 13.5px; color: var(--text); }
.reveal .val { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.reveal code { flex: 1 1 240px; font-family: var(--mono); font-size: 13px; background: var(--surface); padding: 9px 12px; border-radius: 8px; word-break: break-all; border: 1px solid var(--border-strong); }

.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 20px 22px 22px; }
.plans-terms { padding: 14px 22px 0; margin: 0; }
.plan-opt {
  border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 3px; background: var(--bg);
}
.plan-opt.is-current { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--bg); }
.plan-opt .p { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; }
.plan-opt .q { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.plan-opt .btn { margin-top: auto; width: 100%; padding: 8px 12px; font-size: 14px; }
.plan-opt .current-tag { margin-top: auto; text-align: center; font-size: 13px; color: var(--accent); font-weight: 600; padding: 8px 0; }

/* Snapshot sets */
.set-form { padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.set-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.set-form-grid label, .set-form-grid legend { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.set-form-grid .span-2 { grid-column: 1 / -1; }
.set-form-grid input[type="text"], .set-form-grid select, .set-form-grid textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px;
}
.set-form-grid textarea { font-family: var(--mono); font-size: 13px; resize: vertical; }
.set-form-grid select { appearance: auto; }
.set-form-grid fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.set-form-grid legend { margin-bottom: 8px; }
.set-form-grid .check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); margin: 4px 0; font-size: 14px; }
.set-form-grid .check input { accent-color: var(--accent); }
.set-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.set-form-actions .meta, .set-row .meta { font-size: 13px; color: var(--muted); }
.set-row { border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; flex-wrap: wrap; }
.set-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-title strong { font-size: 14.5px; }
.set-head .spacer { margin-left: auto; }
.set-detail { padding: 0 22px 16px; }
.set-table { min-width: 0; width: 100%; }
.set-table td.wrap { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .set-form-grid { grid-template-columns: 1fr; } }

/* Integrations: one row per destination. */
.integration { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 22px; }
.integration-copy strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.integration-copy p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 64ch; line-height: 1.55; }
.integration-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.integration-form input { width: 320px; max-width: 100%; padding: 8px 12px; font-size: 13.5px; font-family: var(--mono); }
.integration .field-error { grid-column: 1 / -1; padding: 0; }
@media (max-width: 760px) { .integration { grid-template-columns: 1fr; } .integration-form input { width: 100%; } }

/* ============================================================
   Account menu
   ============================================================ */
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 9px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; max-width: 220px;
  transition: border-color .15s;
}
.acct-btn:hover { border-color: var(--border-strong); }
.acct-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1;
}
.acct-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-caret { flex: none; color: var(--muted); }
.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  min-width: 250px; max-width: 290px; padding: 6px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.acct-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct-who { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.acct-plan { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.acct-menu a, .acct-out {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px;
  border: none; background: none; color: var(--text);
  font: inherit; font-size: 13.5px; cursor: pointer;
}
.acct-menu a:hover, .acct-out:hover { background: var(--surface-2); text-decoration: none; }
.acct-out { color: var(--accent); margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; }

/* ============================================================
   404
   ============================================================ */
.notfound       { padding: 120px 28px; text-align: center; }
.notfound-code  { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: .1em; margin: 0 0 12px; }
.notfound-title { margin: 0 0 12px; font-size: 2.4rem; }
.notfound-lede  { color: var(--muted); margin: 0 0 28px; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal { max-width: 760px; min-width: 0; padding: 52px 0 90px; }
.legal h1 { margin: 0 0 8px; font-size: 2.4rem; }
.legal-meta { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-family: var(--mono); }
.legal-lede { margin: 0 0 34px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal h2 { margin: 44px 0 10px; font-size: 1.35rem; scroll-margin-top: 90px; }
.legal h3 { margin: 26px 0 6px; font-size: 1.05rem; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal li { margin-bottom: 7px; }
.legal ul, .legal ol { padding-left: 21px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font-family: var(--mono); font-size: 13.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.legal-table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.legal-table th { color: var(--text); font-weight: 600; white-space: nowrap; font-family: var(--sans); font-size: 13.5px; text-transform: none; letter-spacing: 0; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-note { border: 1px solid var(--accent-line); border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.legal-note p { margin: 0; color: var(--text-2); }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14.5px; }

/* ============================================================
   Command palette
   ============================================================ */
.cmdk-back { position: fixed; inset: 0; z-index: 100; background: rgba(27, 24, 21, .45); backdrop-filter: blur(3px); }
.cmdk-panel {
  position: fixed; z-index: 101; top: 12vh; left: 50%; transform: translateX(-50%);
  width: min(580px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.cmdk-input {
  width: 100%; box-sizing: border-box; padding: 16px 20px;
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: transparent; color: var(--text); font-family: var(--sans); font-size: 16px; box-shadow: none;
}
.cmdk-input:focus { outline: none; box-shadow: none; }
.cmdk-input::placeholder { color: var(--faint); }
.cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: 46vh; overflow-y: auto; }
.cmdk-item { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.cmdk-item.on { background: var(--accent-soft); }
.cmdk-label { color: var(--text); font-size: 14px; font-weight: 600; }
.cmdk-hint { color: var(--muted); font-size: 12.5px; margin-left: auto; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-empty, .cmdk-foot { margin: 0; padding: 12px 20px; color: var(--muted); font-size: 12.5px; }
.cmdk-foot { border-top: 1px solid var(--border); background: var(--surface-2); }
.cmdk-foot kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 5px; margin-right: 3px; background: var(--surface); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .overview { grid-template-columns: 1fr; }
  .quota-block { border-right: 0; border-bottom: 1px solid var(--border); }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: none; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .doc { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .toc { position: static; max-height: none; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-sm { display: none; }
  .hero { padding-top: 48px; }
  section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .cta { padding: 40px 22px; border-radius: 18px; }
  .chart-canvas { height: 180px; }
  .stage { padding: 16px; min-height: 240px; }
  .demo-head, .demo-form, .samples, .field-error { padding-left: 16px; padding-right: 16px; }
  .auth-wrap { padding: 40px 0 70px; }
  .auth-card { padding: 26px 22px; }
  .legal h1 { font-size: 1.8rem; }
  .dash { padding-top: 26px; }
}
@media (max-width: 560px) {
  .acct-email, .acct-caret { display: none; }
  .acct-btn { padding: 3px; border-color: transparent; background: none; }
  .cmdk-panel { top: 6vh; }
  .cmdk-hint { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--border); }
  .quota-block { flex-direction: column; align-items: flex-start; }
}
