/* Space Grotesk, the brand font (SIL Open Font License), hosted with the site. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root { --accent: #3d5afe; --on-accent: #ffffff; --bg: #f6f7fb; --surface: #ffffff; --text: rgba(0, 0, 0, 0.87); --muted: rgba(0, 0, 0, 0.6); --line: rgba(0, 0, 0, 0.12); --radius-card: 12px; --radius-control: 10px; --logo-mark: 28px; --logo-wordmark: 20px; --logo-gap: 9px; }
@media (prefers-color-scheme: dark) { :root { --accent: #8c9eff; --on-accent: rgba(0, 0, 0, 0.87); --bg: #0e1117; --surface: #161a23; --text: #ffffff; --muted: rgba(255, 255, 255, 0.7); --line: rgba(255, 255, 255, 0.12); } }
:root { --danger: #b3261e; --width: 960px; }
@media (prefers-color-scheme: dark) { :root { --danger: #ff8a80; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { line-height: 1.2; letter-spacing: -0.015em; }
h3 { letter-spacing: -0.01em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.top, main, .bottom { max-width: var(--width); margin: 0 auto; padding-inline: 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { font-weight: 700; font-size: var(--logo-wordmark); letter-spacing: -0.02em; line-height: 1; text-decoration: none; }

.button {
  display: inline-block; padding: 11px 18px; border-radius: var(--radius-control); border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.button.small { padding: 7px 14px; font-size: 15px; }

.hero { padding: 56px 0 24px; max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 20px; font-size: clamp(36px, 7vw, 60px); }
.lede { margin: 0; font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); }

section { margin-block: 32px; }
.grid.three { 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-card); padding: 22px; }
.card h2 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.muted { color: var(--muted); margin: 0 0 8px; }

/* How it works / Request invite */
.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.tablist { display: flex; border-bottom: 1px solid var(--line); }
.tablist button {
  flex: 1; padding: 16px 12px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.tablist button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tablist button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; }
.panel { padding: 26px 22px; }
.panel:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 0 0 var(--radius-card) var(--radius-card); }
.steps { margin: 0; padding-left: 22px; max-width: 640px; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li:last-child { margin-bottom: 0; }

form { display: grid; gap: 6px; max-width: 480px; }
label { font-weight: 600; margin-top: 12px; }
.optional { font-weight: 400; color: var(--muted); }
input, textarea, button {
  font-family: inherit;
}
input, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.error { margin: 0; color: var(--danger); font-size: 15px; }
form .button { justify-self: start; margin-top: 18px; cursor: pointer; font: inherit; font-weight: 600; }
form .button:disabled { opacity: 0.6; cursor: default; }
.status { margin: 10px 0 0; min-height: 1.6em; }
.status.ok { font-weight: 600; }
.status.bad { color: var(--danger); }
/* Off screen rather than display:none, which some form-fillers skip. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* From the network */
.network { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 22px; }
.network h2 { margin: 0 0 6px; font-size: 22px; }
.network .muted { margin-bottom: 16px; }
.network .muted:last-child { margin-bottom: 0; }
/* The ad sits in the middle of the panel. */
.slot { max-width: 640px; margin-inline: auto; }

.bottom { padding-block: 28px 44px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); margin-top: 48px; }
.bottom p { margin: 0 0 4px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: var(--logo-gap); color: var(--text); }
.brand-mark { display: block; width: var(--logo-mark); height: var(--logo-mark); }
.wordmark { font-weight: 700; letter-spacing: -0.02em; }
.wordmark .z { color: var(--accent); }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Long-form pages: questions and privacy */
.prose { max-width: 720px; padding: 40px 0 8px; }
.prose h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 44px); }
.prose h2 { margin: 36px 0 10px; font-size: 22px; }
.prose p { margin: 0 0 14px; }
.prose .lede { margin-bottom: 14px; }
/* ---------------------------------------------------------------- the API reference */

/* Method colours: text on a tint of itself, so each reads on light and dark alike. */
:root {
  --get: #1b7a43; --post: #2f49d1; --patch: #96600a; --put: #7a3fc4; --delete: #b3261e;
  --code-bg: #f1f3f9;
}
@media (prefers-color-scheme: dark) {
  :root { --get: #6ddb97; --post: #9fb0ff; --patch: #f0bd62; --put: #c9a4ff; --delete: #ff8a80; --code-bg: #12151d; }
}

body.wide { --width: 1240px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding: 32px 0 8px; }
.docs code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.docs p code, .docs li code, .docs td code, .docs dd code { background: var(--code-bg); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.docs td:first-child code { overflow-wrap: normal; }

.docs-nav { position: sticky; top: 24px; font-size: 15px; }
.docs-nav ul { list-style: none; margin: 0 0 22px; padding: 0; border-left: 1px solid var(--line); }
.docs-nav-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.docs-nav a span { float: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.docs-nav a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a.current { color: var(--text); border-left-color: var(--accent); font-weight: 600; }
.docs-formats { display: flex; gap: 8px; margin: 0; }
.docs-formats a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text); border-left-width: 1px; margin: 0; }

.docs-main h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 44px); }
.docs-main h2 { margin: 56px 0 12px; font-size: 24px; scroll-margin-top: 20px; }
.docs-main > p { margin: 0 0 16px; max-width: 760px; }
.docs-main .lede { color: var(--muted); }
.docs-main .note { color: var(--muted); font-size: 15px; }

.base { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); max-width: 760px; }
.base span { color: var(--muted); font-size: 14px; }
.base code { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }

.copy { font: inherit; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.copy:hover { border-color: var(--accent); }
.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.code { position: relative; margin: 0 0 16px; }
.code pre { margin: 0; padding: 14px 76px 14px 16px; overflow-x: auto; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius-card); font-size: 14px; line-height: 1.55; }
.code .copy { position: absolute; top: 9px; right: 9px; }

/* Three things to do before a first request, numbered. */
.start-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.start-steps li { counter-increment: step; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.start-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.start-steps strong, .cards strong, .journey strong { display: block; margin-bottom: 4px; }
.start-steps span, .cards span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* The journey: what each state means, then every step in order with the request that does it. */
.states { margin: 0 0 20px; display: grid; gap: 8px; }
.states div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.states dd { margin: 0; color: var(--muted); font-size: 15px; }
.state { display: inline-block; padding: 1px 10px; border-radius: 999px; font: 600 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); }
.state.done { color: var(--get); border-color: currentColor; }
.state.member { color: var(--post); border-color: currentColor; }
.state.operator { color: var(--patch); border-color: currentColor; }
.state.locked { color: var(--muted); }
.journey { list-style: none; counter-reset: gate; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.journey li { counter-increment: gate; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 18px; border-top: 1px solid var(--line); }
.journey li:first-child { border-top: 0; }
.journey li::before { content: counter(gate); grid-row: span 3; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.journey span, .journey em { grid-column: 2; color: var(--muted); font-size: 15px; }
.journey code { grid-column: 2; justify-self: start; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--code-bg); font-size: 13px; overflow-wrap: anywhere; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }

.docs .table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.docs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs th, .docs td { text-align: left; vertical-align: top; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.docs tr:last-child td { border-bottom: 0; }
.docs th { color: var(--muted); font-weight: 600; font-size: 13px; }
.docs td:first-child { white-space: nowrap; }
.endpoint-body th:nth-child(2) { width: 34%; }
.required { margin-left: 6px; color: var(--delete); font-size: 12px; font-weight: 600; }
.value { display: inline-block; margin: 0 2px 4px 0; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* One address per row: what it does at a glance, its fields and a request to copy when opened. */
.endpoints { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.endpoint { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); scroll-margin-top: 20px; }
.endpoint[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.endpoint summary { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; }
.endpoint summary::-webkit-details-marker { display: none; }
.endpoint summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-card); }
.method { flex: none; width: 62px; text-align: center; padding: 2px 0; border-radius: 6px; font: 700 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.03em; color: var(--m); background: color-mix(in srgb, var(--m) 14%, transparent); }
.method.get { --m: var(--get); } .method.post { --m: var(--post); } .method.patch { --m: var(--patch); } .method.put { --m: var(--put); } .method.delete { --m: var(--delete); }
.path { flex: none; max-width: 100%; font-size: 14px; overflow-wrap: anywhere; }
.gist { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.endpoint[open] .gist { visibility: hidden; }
.access { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; }
.access.full { color: var(--text); }
.endpoint-body { padding: 4px 16px 6px; border-top: 1px solid var(--line); }
.endpoint-body p { margin: 12px 0 14px; }

@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .docs-nav { position: static; }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; border-left: 0; margin-bottom: 14px; }
  .docs-nav a span { float: none; margin-left: 6px; }
  .docs-nav a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; margin: 0; }
  .docs-nav a.current { border-color: var(--accent); }
  .start-steps { grid-template-columns: minmax(0, 1fr); }
  .endpoint summary { flex-wrap: wrap; row-gap: 6px; }
  .path { flex: 1; }
  .gist { flex-basis: 100%; order: 3; white-space: normal; }
  .endpoint[open] .gist { display: none; }
  .docs td:first-child { white-space: normal; }
  /* Fields stack: name, then type, then notes, each on its own line. */
  .endpoint-body thead { display: none; }
  .endpoint-body tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .endpoint-body tr:last-child { border-bottom: 0; }
  .endpoint-body td { display: block; border: 0; padding: 2px 14px; }
  .code pre { padding-right: 16px; padding-top: 44px; }
}
.faq { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--accent); }
.faq[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-card); }
.faq p { padding: 0 18px 16px; margin: 0; color: var(--muted); }
.cta { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.text-link { font-weight: 600; }
