/* validateemail.io – marketing site styles */

/* Self-hosted variable fonts (Latin subset), SIL Open Font License 1.1. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --teal: #14b8a6;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --muted-state: #64748b;

  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eff6ff;

  --night: #0b1220;
  --night-2: #111a2e;
  --night-line: #1e2a44;
  --night-ink: #e2e8f0;
  --night-ink-2: #94a3b8;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 20px 60px rgb(2 6 23 / 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Keep anchored sections clear of the sticky header. */
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: 0.9em; font-variant-ligatures: none; }  /* show "===" and "=>" as typed */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--ink-3); font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgb(37 99 235 / 0.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: 0.9; }
.btn-ghost:hover { opacity: 1; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #cbd5e1; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 18 32 / 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--night-line);
  color: var(--night-ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.logo .tld { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--night-ink-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: none; background: rgb(255 255 255 / 0.06); }
.nav .btn { margin-left: 8px; padding: 9px 16px; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: var(--night);
    border-bottom: 1px solid var(--night-line);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(20 184 166 / 0.22), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgb(37 99 235 / 0.35), transparent 60%),
    var(--night);
  color: var(--night-ink);
  padding: 88px 0 104px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #60a5fa, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.2rem; color: var(--night-ink-2); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-ctas .btn-ghost { color: var(--night-ink); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--night-ink-2); font-size: 0.92rem; }
.pill-row li { display: inline-flex; align-items: center; gap: 7px; }
.pill-row svg { color: var(--ok); flex: none; }

@media (max-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------------------------------------------------------------- demo card */
.demo {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); color: var(--night-ink-2); font-size: 0.85rem; }
.demo-top .dots { display: flex; gap: 6px; margin-right: 6px; }
.demo-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.demo-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.demo-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgb(16 185 129 / 0.2); }
.demo-body { padding: 20px; }
.demo-form { display: flex; gap: 10px; }
.demo-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--night-line);
  background: var(--night);
  color: #fff;
  font: inherit;
}
.demo-form input[type="text"]::placeholder { color: #64748b; }
.demo-form input[type="text"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(37 99 235 / 0.35); }
.demo-samples { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; font-size: 0.8rem; color: var(--night-ink-2); align-items: center; }
.demo-samples button {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid var(--night-line);
  color: var(--night-ink);
  border-radius: 999px;
  padding: 3px 10px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.demo-samples button:hover { border-color: var(--brand); }
/* Turnstile only renders visibly when it needs the visitor to interact. */
.demo-turnstile:not(:empty) { margin-top: 14px; }
.demo-result { margin-top: 18px; min-height: 236px; }
.demo-empty { display: grid; place-items: center; min-height: 236px; border: 1px dashed var(--night-line); border-radius: 12px; color: #64748b; font-size: 0.9rem; text-align: center; padding: 20px; }
.verdict { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.valid { background: rgb(16 185 129 / 0.15); color: #34d399; }
.badge.invalid { background: rgb(239 68 68 / 0.15); color: #f87171; }
.badge.risky { background: rgb(245 158 11 / 0.15); color: #fbbf24; }
.badge.unknown { background: rgb(100 116 139 / 0.2); color: #cbd5e1; }
.verdict .reason { color: var(--night-ink-2); font-family: var(--mono); font-size: 0.85rem; }
.score { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--night-ink-2); }
.score-bar { width: 90px; height: 6px; border-radius: 999px; background: var(--night-line); overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bad), var(--warn), var(--ok)); background-size: 90px 100%; }
.dym { background: rgb(37 99 235 / 0.12); border: 1px solid rgb(37 99 235 / 0.35); color: #bfdbfe; border-radius: 10px; padding: 8px 12px; font-size: 0.88rem; margin-bottom: 12px; }
.dym button { background: none; border: 0; padding: 0; color: #93c5fd; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-radius: 9px; background: rgb(255 255 255 / 0.03); border: 1px solid var(--night-line); font-size: 0.85rem; color: var(--night-ink); }
.checks .v { font-weight: 700; font-size: 0.78rem; }
.checks .yes { color: #34d399; }
.checks .no { color: #f87171; }
.checks .flag { color: #fbbf24; }
.checks .na { color: #64748b; }
.raw { font-size: 0.8rem; color: var(--night-ink-2); }
.raw summary { cursor: pointer; }
.raw pre { max-height: 220px; overflow: auto; }
.demo-error { color: #fca5a5; font-size: 0.9rem; }
@media (max-width: 520px) {
  .demo-form { flex-direction: column; }
  .checks { grid-template-columns: 1fr; }
  .score { margin-left: 0; }
}

/* ---------------------------------------------------------------- strip */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 32px; }
.strip div { display: flex; flex-direction: column; gap: 2px; }
.strip strong { font-size: 1.05rem; }
.strip span { color: var(--ink-3); font-size: 0.92rem; }
@media (max-width: 760px) { .strip .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.card:hover { box-shadow: var(--shadow); border-color: #cbd5e1; }
.card p { color: var(--ink-3); margin: 0; font-size: 0.96rem; }
.icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-tint); color: var(--brand); margin-bottom: 16px; }
.icon.teal { background: #f0fdfa; color: #0d9488; }
.icon.amber { background: #fffbeb; color: #d97706; }
.icon.rose { background: #fff1f2; color: #e11d48; }
.icon.violet { background: #f5f3ff; color: #7c3aed; }
.card .tag { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step p { color: var(--ink-3); }

/* ---------------------------------------------------------------- code */
.dev { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .dev { grid-template-columns: 1fr; } }
/* Let grid columns shrink below their content (wide code blocks scroll instead). */
.hero .wrap > *, .dev > *, .signup > *, .doc-layout > * { min-width: 0; }
.dev ul { padding-left: 0; list-style: none; margin: 24px 0; }
.dev li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink-2); }
.dev li svg { flex: none; color: var(--ok); margin-top: 4px; }
.code { background: var(--night); border-radius: var(--radius); border: 1px solid var(--night-line); overflow: hidden; box-shadow: var(--shadow); }
.code + .code { margin-top: 16px; }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--night-line); overflow-x: auto; }
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--night-ink-2);
  padding: 8px 14px 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--teal); }
.code-label { padding: 10px 16px; border-bottom: 1px solid var(--night-line); color: var(--night-ink-2); font-size: 0.82rem; display: flex; justify-content: space-between; align-items: center; }
.copy { background: rgb(255 255 255 / 0.06); border: 1px solid var(--night-line); color: var(--night-ink); border-radius: 6px; padding: 3px 9px; font: inherit; font-size: 0.78rem; cursor: pointer; }
.copy:hover { border-color: var(--brand); }
pre { margin: 0; padding: 18px; overflow-x: auto; color: #e2e8f0; line-height: 1.65; font-size: 0.86rem; }
.code [role="tabpanel"][hidden] { display: none; }
.tok-k { color: #93c5fd; }
.tok-s { color: #86efac; }
.tok-n { color: #fca5a5; }
.tok-c { color: #94a3b8; font-style: italic; }
.tok-p { color: #c4b5fd; }

/* ---------------------------------------------------------------- use cases */
.usecase { display: flex; gap: 16px; align-items: flex-start; }
.usecase .icon { margin: 0; flex: none; }
.usecase p { color: var(--ink-3); margin: 0; }

/* ---------------------------------------------------------------- edge band */
.band {
  background: linear-gradient(120deg, var(--night) 0%, #10224a 60%, #0f3b47 100%);
  color: var(--night-ink);
  border-radius: 22px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.band h2 { color: #fff; }
.band p { color: var(--night-ink-2); }
.band dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.band dl div { background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 12px; padding: 16px; }
.band dt { font-size: 0.82rem; color: var(--night-ink-2); }
.band dd { margin: 4px 0 0; font-weight: 700; color: #fff; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------------------------------------------------------------- pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1060px) { .pricing { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 16px 40px rgb(37 99 235 / 0.15); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin-bottom: 4px; }
.plan .for { color: var(--ink-3); font-size: 0.9rem; min-height: 2.9em; }
.plan .volume { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.plan .volume small { font-size: 0.9rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .price-note { font-size: 0.85rem; color: var(--ink-3); margin: 2px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 0.93rem; color: var(--ink-2); }
.plan li { display: flex; gap: 9px; }
.plan li svg { flex: none; color: var(--ok); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.pricing-foot { text-align: center; color: var(--ink-3); margin-top: 28px; font-size: 0.95rem; }

/* ---------------------------------------------------------------- waitlist */
.signup { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .signup { grid-template-columns: 1fr; } }
.signup-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.signup-copy li { display: flex; gap: 12px; color: var(--ink-2); }
.signup-copy li svg { flex: none; color: var(--brand); margin-top: 3px; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink-2); }
label .opt { color: var(--ink-3); font-weight: 400; }
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(37 99 235 / 0.18); }
.plan-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 600px) { .plan-pick { grid-template-columns: 1fr 1fr; } }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick label {
  margin: 0;
  text-align: center;
  padding: 10px 6px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-2);
  transition: border-color 0.15s, background 0.15s;
}
.plan-pick input:checked + label { border-color: var(--brand); background: var(--bg-tint); color: var(--brand-dark); box-shadow: 0 0 0 1px var(--brand); }
.plan-pick input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink-2); padding: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; font-size: 0.93rem; border-radius: 10px; padding: 0; }
.form-msg.err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 12px; }
.form-msg.ok { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 14px 16px; }
.fine { color: var(--ink-3); font-size: 0.82rem; margin: 12px 0 0; }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--ink-3); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-right: 36px; }

/* ---------------------------------------------------------------- CTA + footer */
.cta { text-align: center; background: var(--night); color: var(--night-ink); padding: 80px 0; }
.cta h2 { color: #fff; }
.cta p { color: var(--night-ink-2); font-size: 1.1rem; }
.cta .hero-ctas { justify-content: center; }
.cta .btn-ghost { color: var(--night-ink); }
.site-footer { background: var(--night); color: var(--night-ink-2); border-top: 1px solid var(--night-line); padding: 56px 0 32px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer .foot-title { color: #fff; font-size: 0.9rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--night-ink-2); }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid var(--night-line); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- docs */
.doc-hero { background: var(--night); color: var(--night-ink); padding: 56px 0 48px; }
.doc-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.doc-hero p { color: var(--night-ink-2); max-width: 680px; font-size: 1.1rem; margin: 0; }
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 20px 96px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-nav { display: none; } }
.doc-nav { position: sticky; top: 92px; align-self: start; font-size: 0.92rem; }
.doc-nav .doc-nav-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 20px 0 8px; }
.doc-nav .doc-nav-title:first-child { margin-top: 0; }
.doc-nav a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--ink-2); }
.doc-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.doc { min-width: 0; max-width: 820px; }
.doc section { padding-top: 12px; margin-bottom: 48px; scroll-margin-top: 84px; }
.doc h2 { font-size: 1.6rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { color: var(--ink-2); }
.doc :not(pre) > code { background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 0.85em; color: var(--ink); }
.doc .code { margin: 16px 0; }
.endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.92rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.method { font-weight: 700; font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; color: #fff; }
.method.get { background: #047857; }
.method.post { background: var(--brand); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; color: var(--ink-2); font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.callout { border-left: 4px solid var(--brand); background: var(--bg-tint); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 16px 0; color: var(--ink-2); }
.callout.warn { border-color: var(--warn); background: #fffbeb; }

/* ---------------------------------------------------------------- simple pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 36px; }
.page p, .page li { color: var(--ink-2); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound .big { font-size: 5rem; font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(90deg, var(--brand), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------------------------------------------------------------- content pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--night-ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--night-ink-2); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--night-ink); }
.doc-hero .byline { margin-top: 14px; font-size: 0.9rem; color: var(--night-ink-2); }
.hero-tool { padding: 64px 0 80px; }
.hero-tool h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.faq-inline { max-width: none; margin: 0; }
.faq-inline summary { font-size: 1rem; }

/* Links inside running text are underlined, not distinguished by colour alone. */
.doc p a, .doc li a, .doc td a, .callout a, .faq p a, .page p a, .page li a, .lede a, .fine a { text-decoration: underline; text-underline-offset: 2px; }
