:root {
  --navy: #0b2545;
  --amber: #e09f3e;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #13151a;
  --muted: #5b6270;
  --line: #e6e3dc;
  --accent-soft: #fff3df;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b24;
    --text: #e8eaee;
    --muted: #9aa3b2;
    --line: #263040;
    --accent-soft: #2a2215;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 20px; }
.brand svg { width: 28px; height: 28px; }
nav.main { display: flex; gap: 20px; align-items: center; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--muted); white-space: nowrap; }
nav.main a:hover { color: var(--text); }
@media (max-width: 640px) { nav.main { gap: 14px; } nav.main a.hide-sm { display: none; } .brand { font-size: 18px; } }
@media (max-width: 400px) { nav.main a.hide-xs { display: none; } }

.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--amber); color: #1b1305; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); color: var(--text); }
nav.main .btn { color: #1b1305; padding: 8px 14px; }

.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; max-width: 16ch; }
.hero p.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }

.answer { background: var(--accent-soft); border-left: 4px solid var(--amber); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 72ch; }

section { padding: 48px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
section > .wrap > p.sub { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }

.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border: 2px solid var(--amber); }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 8px 0 16px; color: var(--muted); }
.plan .btn { margin-top: auto; text-align: center; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

article.prose { max-width: 72ch; }
article.prose h1 { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -0.03em; line-height: 1.1; }
article.prose h2 { margin-top: 36px; font-size: 26px; }
article.prose table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
article.prose th, article.prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.note { color: var(--muted); font-size: 15px; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Cookie choice (acq.js): both buttons look the same, nothing is pre-chosen. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 720px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.consent-actions .btn { padding: 9px 16px; cursor: pointer; background: transparent; font: inherit; font-weight: 700; }

/* Help centre */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.help-search input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.help-search { margin: 8px 0 16px; }
ol.steps li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.shot-placeholder { margin: 16px 0; padding: 28px 16px; border: 2px dashed var(--amber); border-radius: var(--radius); background: var(--accent-soft); text-align: center; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.shot-placeholder span { font-weight: 700; letter-spacing: .04em; color: var(--amber); }
.shot-placeholder small { color: var(--muted); }

/* Developer docs: code blocks, inline code, language tabs (dev.js), endpoint labels. */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
pre.code { background: #0d1117; color: #e8eaee; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 12px 0 20px; }
pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tabs [role="tab"] { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs .tab-label { font-weight: 700; margin: 16px 0 0; }
.tabs.js .tab-label { display: none; }
.endpoint { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; }
.method { display: inline-block; min-width: 64px; text-align: center; border-radius: 6px; padding: 2px 8px; margin-right: 8px; background: var(--navy); color: #fff; font-size: 14px; }
.devdoc { max-width: 80ch; }
.devdoc h2 { margin-top: 44px; }
.devdoc h3 { margin-top: 28px; }
.toc { columns: 2 220px; padding-left: 18px; }
