/* Cnamio public site (home, docs, legal pages). Identity v2: navy top with a blue glow, light content on white and
   mist bands, one interface blue, pills for everything clickable. Tokens are shared with docs.css and mirror the
   brand kit (tokens.json); every text/ground pair below was contrast-checked in both themes.
   Everything is same-origin: fonts and logos included (CSP: default-src 'none'; font-src 'self'). */
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/HankenGrotesk-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* `.island` is a piece of the page's own theme inside a navy area (the connect window shown in the top). */
:root, .island {
  --page: #ffffff; --mist: #eef4ff; --surface: #ffffff; --sunken: #f1f4f9;
  --ink: #0b1220; --ink-2: #47546a; --ink-3: #5f6d84; --line: #e2e8f1; --line-2: #cdd6e3; --control-line: #7a879c;
  --accent: #2156f0; --accent-hover: #1a46cc; --accent-ink: #ffffff; --accent-soft: #e3ecff; --accent-strong: #1a46cc;
  --signal: #1f9d5c; --ok: #067647; --ok-soft: #ecfdf3; --warn: #92400e; --warn-soft: #fffaeb; --danger: #b42318; --danger-soft: #fef3f2;
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.06), 0 0 0 1px rgba(11, 18, 32, 0.05);
  --shadow-float: 0 24px 60px -20px rgba(5, 11, 24, 0.35), 0 2px 6px rgba(5, 11, 24, 0.08);
}
:root {
  /* The top of every page is navy in both themes. */
  --hero: #050b18; --hero-raised: #0b1528; --hero-line: #1c2a44; --hero-ink: #eef3fb; --hero-ink-2: #a9b6cc;
  --hero-accent: #2156f0; --hero-accent-ink: #ffffff; --mark-blue: #2f6bff;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --top-h: 68px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root, .island {
    --page: #050b18; --mist: #0a1426; --surface: #0d182d; --sunken: #08111f;
    --ink: #eef3fb; --ink-2: #a9b6cc; --ink-3: #8391aa; --line: #1c2a44; --line-2: #2a3b5c; --control-line: #5d6e8c;
    --accent: #5b8cff; --accent-hover: #7ea4ff; --accent-ink: #050b18; --accent-soft: #13244a; --accent-strong: #9cbaff;
    --signal: #3ddc84; --ok: #47cd89; --ok-soft: #0b2a1c; --warn: #fdb022; --warn-soft: #2e2109; --danger: #f97066; --danger-soft: #2d1210;
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-float: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  }
  /* Navy on navy: bands and the navy panels keep their edge with a hairline. */
  .band { box-shadow: inset 0 0 0 1px var(--line); }
  .closing-body { background: var(--hero-raised); }
  .guard { box-shadow: inset 0 0 0 1px var(--hero-line); }
}
/* On navy the text tokens take their dark-theme values, whatever the theme. */
.top, .hero, .page-head, .closing-body, .navy {
  --ink: var(--hero-ink); --ink-2: var(--hero-ink-2); --ink-3: var(--hero-ink-2); --line: var(--hero-line); --line-2: var(--hero-line);
  --accent: #5b8cff; --accent-strong: #9cbaff; --signal: #3ddc84; color: var(--ink);
}
/* Home: navy areas that hold controls (lookup, contact form) need the rest of the dark set too. */
.navy {
  --surface: var(--hero-raised); --sunken: var(--hero); --mist: var(--hero-raised); --line-2: #2a3b5c; --control-line: #5d6e8c;
  --accent-hover: #7ea4ff; --accent-ink: #050b18; --accent-soft: #13244a;
  --ok: #47cd89; --ok-soft: #0b2a1c; --warn: #fdb022; --warn-soft: #2e2109; --danger: #f97066; --danger-soft: #2d1210;
}
.island { color: var(--ink); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, pre:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.accent { color: var(--accent); }
.frame { position: relative; min-height: 100vh; overflow-x: clip; }
[hidden] { display: none !important; }

/* Navigation: a pill over the navy top. */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding-top: 16px; }
.top-inner { min-height: 52px; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill);
  background: var(--hero-raised); box-shadow: inset 0 0 0 1px var(--hero-line); }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
/* The lockup never goes under its minimum width (96px). */
.brand img { display: block; height: 30px; width: auto; }
.top-nav { margin: 0 auto; display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; }
.top-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; padding: 6px 0; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: var(--r-pill); background: var(--hero-accent); color: var(--hero-accent-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; outline-color: #ffffff; }

/* Buttons: pills. One primary per area; the soft one turns into the dark ghost on navy. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-soft:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.top .btn, .hero .btn, .page-head .btn, .closing-body .btn { background: var(--hero-accent); color: var(--hero-accent-ink); }
.top .btn:hover, .hero .btn:hover, .page-head .btn:hover, .closing-body .btn:hover { background: var(--hero-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-accent) 32%, transparent); }
.top .btn-soft, .hero .btn-soft, .page-head .btn-soft, .closing-body .btn-soft { background: var(--hero-raised); color: var(--hero-ink); box-shadow: inset 0 0 0 1px var(--hero-line); }
.top .btn-soft:hover, .hero .btn-soft:hover, .page-head .btn-soft:hover, .closing-body .btn-soft:hover { background: var(--hero-raised); box-shadow: inset 0 0 0 1px var(--hero-ink-2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Navy top: radial glow from the top edge and a faint 80px grid, fading out before the copy ends. */
.hero, .page-head { position: relative; isolation: isolate; background: var(--hero); border-bottom: 1px solid var(--hero-line); }
.hero::before, .page-head::before { content: ""; position: absolute; inset: 0 0 auto; height: min(100%, 560px); z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 520px at 50% 0, color-mix(in srgb, var(--mark-blue) 50%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--hero-line) 55%, transparent) 1px, transparent 1px) center top / 80px 80px,
    linear-gradient(90deg, color-mix(in srgb, var(--hero-line) 55%, transparent) 1px, transparent 1px) center top / 80px 80px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }

/* Home, wide screens: the navigation follows the reader, so "Request access" is always one click away. */
@media (min-width: 961px) {
  .home .top { position: fixed; }
  .home section[id] { scroll-margin-top: 88px; }
}
/* Home top: the promise on the left, a lookup anyone can run on the right. */
.hero { padding: calc(var(--top-h) + 64px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 468px); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; margin: 0 0 24px; padding: 5px 14px 5px 12px; border-radius: var(--r-pill);
  background: var(--hero-raised); box-shadow: inset 0 0 0 1px var(--hero-line); font: 500 12.5px/1.3 var(--mono); color: var(--ink-2); }
.pill-dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; max-width: 900px; }
.home h1 { font-size: clamp(38px, 4.5vw, 56px); line-height: 1.04; max-width: 14em; }
h1 .accent { display: block; }
.lede { margin: 24px 0 32px; max-width: 31em; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.hero-note { margin: 20px 0 0; font: 12px/1.5 var(--mono); letter-spacing: .03em; color: var(--ink-2); }
.hero-note a { color: var(--ink); text-underline-offset: 3px; }
.hero-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.hero-points li { position: relative; padding-left: 26px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; background: var(--signal); clip-path: polygon(12% 50%, 0 64%, 38% 100%, 100% 22%, 87% 9%, 37% 72%); }

/* Live lookup (GET /v1/lookup on this origin). The states are set by site.js on `data-state`; without script it is a
   plain form that says what the lookup would show. */
.probe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: var(--r-xl); background: var(--hero-raised); box-shadow: inset 0 0 0 1px var(--hero-line); min-width: 0; }
.probe p { margin: 0; }
.probe-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.probe-live { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.probe-path { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.probe-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.probe-form label { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.field { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 7px 0 18px; border-radius: var(--r-pill); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--control-line); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.field[data-state="error"] { box-shadow: inset 0 0 0 2px var(--danger); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 14px/1 var(--mono); }
.field .btn { flex: none; height: 38px; }
.field .btn:disabled { opacity: .7; cursor: progress; }
.field-help { font-size: 13px; line-height: 1.45; color: var(--ink-2); min-height: 1.45em; }
.field-status[data-tone="error"] { color: var(--danger); font-weight: 500; }
.probe-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.probe-try span { margin-right: 2px; }
.probe-try button { height: 28px; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--control-line); color: var(--ink); font: 500 12.5px/1 var(--mono); cursor: pointer; }
.probe-try button:hover { background: var(--accent-soft); }
.probe-try button:focus-visible { border-radius: var(--r-pill); }
.probe-steps { list-style: none; margin: 0; padding: 0; min-height: 214px; display: grid; grid-auto-rows: 1fr; border-bottom: 1px solid var(--line); }
.probe-steps li { display: grid; grid-template-columns: 18px 128px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; min-height: 44px; }
.step-mark { position: relative; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--control-line); }
.step-name { font: 500 12px/1.7 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.step-idle { color: var(--ink-2); }
.step-live { display: none; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.step-mono { font: 13px/1.55 var(--mono); }
.step-live strong { font-weight: 600; }
.step-live small { display: block; font: 12px/1.5 var(--mono); color: var(--ink-2); }
/* Before an answer the three rows share the reserved height; with one, each takes what it needs. */
.probe[data-state="done"] .probe-steps { grid-auto-rows: auto; align-content: start; }
.step-line { display: block; }
.step-text { display: block; margin-top: 6px; color: var(--ink-2); }
/* Once the answer is on screen the summary is for screen readers only: sighted readers have it in the steps. */
.field-status[data-tone="done"] { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.probe-steps li.on .step-idle { display: none; }
.probe-steps li.on .step-live { display: block; }
.probe-steps li.on .step-mark { background: var(--signal); box-shadow: none; }
.probe-steps li.on .step-mark::after { content: ""; position: absolute; inset: 4px; background: var(--hero); clip-path: polygon(12% 50%, 0 64%, 38% 100%, 100% 22%, 87% 9%, 37% 72%); }
.probe-steps li.busy .step-mark { box-shadow: inset 0 0 0 2px var(--accent); }
.probe-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 238px; align-content: start; }
/* Empty state: the outline of the window that will be drawn there. */
.probe-empty { display: grid; gap: 12px; align-content: start; min-height: 238px; padding: 18px; border-radius: var(--r-lg); border: 1px dashed var(--control-line); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.probe-empty i { display: block; height: 12px; border-radius: var(--r-sm); background: var(--line-2); }
.probe-empty i:nth-of-type(1) { width: 46%; height: 16px; }
.probe-empty i:nth-of-type(2) { width: 72%; height: 28px; }
.probe-empty i:nth-of-type(3) { height: 40px; border-radius: var(--r-md); }
.probe-next { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* Status badge: a pill with a dot; the word always says the state. */
.state { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 9px; border-radius: var(--r-pill); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 12px/1.5 var(--mono); color: var(--ink); white-space: nowrap; }
.state-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.state-live { background: var(--ok-soft); box-shadow: none; color: var(--ok); }
.state-live .state-dot { background: var(--signal); }
.state-pending { background: var(--warn-soft); box-shadow: none; color: var(--warn); }
.state-pending .state-dot { background: var(--warn); }

/* The connect window, drawn small: what the end user sees. Fields and buttons here are pictures, not controls. */
.cwin { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--line); text-align: left; min-width: 0; }
.cwin p { margin: 0; }
.cwin .state { justify-self: start; }
.cwin-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cwin-tag { flex: none; padding: 1px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-strong); letter-spacing: .04em; }
.cwin-title { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.cwin-sub { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.cwin-sub strong { color: var(--ink); font: 500 13px/1.5 var(--mono); }
.cwin-dns { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--sunken); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.cwin-dns strong { display: block; color: var(--ink); font: 500 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.mark { flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 700; }
.rec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 13px/1.5 var(--mono); min-width: 0; }
.rec > span { min-width: 0; padding: 4px 9px; border-radius: var(--r-sm); background: var(--sunken); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.rec .type { color: var(--accent-strong); font-weight: 500; }
.rec .cwin-copy { margin-left: auto; padding: 3px 11px; border-radius: var(--r-pill); background: var(--accent-soft); box-shadow: none; color: var(--accent-strong); font: 600 12.5px/1.5 var(--font); }
.cwin-label { font-size: 13px; line-height: 1.3; font-weight: 600; }
.cwin-input { height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--control-line); background: var(--surface); color: var(--ink-3); font: 13px/1 var(--mono); letter-spacing: .08em; white-space: nowrap; overflow: hidden; }
.cwin-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.cwin-btn { height: 42px; padding: 0 22px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 15px; white-space: nowrap; }
.cwin-row { display: flex; gap: 8px; align-items: flex-end; }
.cwin-row > div { flex: 1 1 0; min-width: 0; display: grid; gap: 6px; }
.cwin-row > .cwin-btn { flex: none; height: 40px; }
/* Two fields (an access key and its secret): side by side, with the button on a row of its own. */
.cwin-pair { flex-wrap: wrap; }
.cwin-pair > div { flex-basis: 40%; }
.cwin-pair > .cwin-btn { flex: 1 1 100%; }

/* Code (numbered lines). Tokens: b = names, em = strings, i = keywords and tags, u = comments. */
pre { font: 13.5px/1.7 var(--mono); color: var(--ink); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
pre code { font: inherit; display: block; }
/* Numbered code (home): one block per line, so the newlines between them must not add blank lines. */
.home pre code { counter-reset: ln; white-space: normal; }
.ln { display: block; counter-increment: ln; white-space: pre; }
.ln::before { content: counter(ln); display: inline-block; width: 2.2ch; margin-right: 18px; text-align: right; color: var(--ink-3); user-select: none; }
pre b { font-weight: 500; color: var(--ink); }
pre em { font-style: normal; color: var(--accent-strong); }
pre i { font-style: normal; font-weight: 500; color: var(--ink-2); }
pre u { text-decoration: none; color: var(--ink-3); }

/* Sections: white page, one mist band, one navy band. Titles sit on the left; each section has its own layout. */
.section { padding: 80px 0; }
.band { background: var(--mist); border-radius: var(--r-xl); margin: 0 16px; }
.kicker { margin: 0 0 14px; font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-strong); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; max-width: 780px; }
.home h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; max-width: 18em; }
.section-lede { margin: 16px 0 0; max-width: 31em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.section-lede a { color: var(--ink); text-underline-offset: 3px; }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 56px; align-items: end; margin-bottom: 40px; }
.head-row .section-lede, .head-row .section-more { margin: 0; }
.head-row .section-more { justify-self: end; }
.section-more { margin: 24px 0 0; font-size: 16px; }
.cov-tools { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cov-tools a { color: var(--accent-strong); text-underline-offset: 3px; }
.more { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
/* The arrow is glued to the last word so it never wraps onto a line of its own. */
.more::after { content: "\00a0\2192"; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Providers: the two ways a domain gets connected, as two rows of one table. */
.cov-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.cov { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cov-row { display: grid; gap: 10px; justify-items: start; padding: 24px; }
.cov-row + .cov-row { border-top: 1px solid var(--line); }
.cov p { margin: 0; }
.cov-text { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 12.5px/1.5 var(--mono); color: var(--ink); }
.chips .chip-open { background: transparent; box-shadow: none; border: 1px dashed var(--control-line); padding: 4px 11px; color: var(--ink-2); }

/* How it works: the three real things, in order. What you add, what your user sees, what your backend receives. */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.flow-step { grid-column: span 12; min-width: 0; display: grid; gap: 20px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.flow-step > * { min-width: 0; }
.flow-a .flow-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; align-items: end; }
.flow-a .flow-n { grid-column: 1 / -1; }
.flow-a .flow-head h3 { margin-bottom: 0; }
.flow-b { grid-column: span 5; }
.flow-c { grid-column: span 7; grid-template-rows: auto 1fr; }
.flow-b { grid-template-rows: auto 1fr; }
.flow-head p { margin: 0; }
.flow-n { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); }
.flow-n span:first-child { color: var(--ink-3); margin-right: 4px; }
.flow-head h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.flow-head h3 + p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.stage { display: grid; place-items: center; padding: 28px 20px; border-radius: var(--r-md); background: var(--mist); }
.stage .cwin { width: min(360px, 100%); }
.flow .code { margin-top: 0; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.flow .code-tabs { background: transparent; }

/* Agents: copy and links on the left, what to paste on the right. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.links a { display: grid; gap: 2px; align-content: start; height: 100%; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.links-tag { font: 500 12.5px/1.5 var(--mono); color: var(--accent-strong); }
.links a:hover { color: var(--ink); }
.links a:hover .links-tag { text-decoration: underline; text-underline-offset: 3px; }

/* Security: one navy band, four principles in a row separated by hairlines. */
.guard { position: relative; margin: 0 16px; padding: 72px 0; border-radius: var(--r-xl); background: var(--hero); }
.guard-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; counter-reset: guard; }
.guard-list li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 0 24px; border-left: 1px solid var(--line); counter-increment: guard; }
.guard-list li:first-child { padding-left: 0; border-left: 0; }
.guard-list li:last-child { padding-right: 0; }
.guard-list li::before { content: "0" counter(guard); display: block; margin-bottom: 12px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; color: var(--accent-strong); }
.guard-list h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.guard-list p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Questions: native disclosure, no script. Title on the left, answers on the right. */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.faq { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { position: relative; display: block; list-style: none; cursor: pointer; padding: 18px 64px 18px 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; margin-top: -15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); font: 500 18px/1 var(--mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--sunken); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.faq details p { margin: 0; padding: 0 24px 22px; max-width: 70ch; color: var(--ink-2); }

/* Code blocks with tabs: a sunken rail of pill tabs over the code. */
.code { margin-top: 16px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--sunken); overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button { flex: none; height: 32px; border: 0; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--font); padding: 0 14px; border-radius: var(--r-pill); cursor: pointer; }
.code-tabs button:hover { color: var(--ink); }
.code-tabs button:focus-visible { outline-offset: -2px; border-radius: var(--r-pill); }
.code-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.code-pane pre { margin: 0; padding: 22px 24px; }
.agent-grid .code { margin-top: 0; box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
/* Only the tabs scroll sideways on narrow screens; the Copy button stays in view. */
.tablist { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.code-tabs .copy { margin-left: auto; background: var(--accent-soft); color: var(--accent-strong); }
.code-tabs .copy:hover { color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--line-2); }
.code-tabs .copy.done { background: var(--accent); color: var(--accent-ink); }
.pane-hint { margin: 18px 24px 0; font-size: 14px; color: var(--ink-2); }
.code-pane .pane-hint + pre { padding-top: 10px; }
.code-pane pre .ln { white-space: pre-wrap; padding-left: calc(2.2ch + 18px); text-indent: calc(-2.2ch - 18px); }
/* Long one-line samples (the page snippet, the signature check) scroll sideways instead of wrapping mid-token. */
.flow .code-pane pre .ln { white-space: pre; padding-left: 0; text-indent: 0; }

/* Closing: one navy panel with the same glow. What happens next on the left, the request on the right. */
.closing { padding-top: 0; }
.closing > .wrap { max-width: none; padding: 0 16px; }
.closing-body { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; padding: 64px max(56px, calc((100% - 1056px) / 2));
  border-radius: var(--r-xl); background: var(--hero); box-shadow: inset 0 0 0 1px var(--hero-line); }
.closing-body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 320px at 50% 0, color-mix(in srgb, var(--mark-blue) 50%, transparent), transparent 70%); }
.closing-body h2 .accent { display: block; }
.next-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: next; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.next-steps li { position: relative; padding-left: 36px; counter-increment: next; }
.next-steps li::before { content: counter(next); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--control-line); font: 500 12px/1 var(--mono); color: var(--ink); }

/* Contact form in the closing section. The trap is a field people never see or reach (bots fill it; see /site/lead). */
.lead-form { display: grid; gap: 16px; text-align: left; }
.lead-form[hidden], .lead-status[hidden] { display: none; }
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lead-field { display: grid; grid-template-rows: 1fr auto; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.lead-field input, .lead-field select, .lead-field textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-line);
  border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: 15px var(--font); color-scheme: dark; }
.lead-field > span { align-self: end; }
.lead-field textarea { resize: vertical; line-height: 1.5; }
.lead-field input:focus-visible, .lead-field select:focus-visible, .lead-field textarea:focus-visible, .lead-consent input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.lead-consent a { color: var(--ink); text-underline-offset: 3px; }
.lead-consent input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; margin: 0; overflow: hidden; }
.lead-form .cta { margin-top: 4px; }
.lead-form button.btn { cursor: pointer; }
.lead-form button.btn:disabled { opacity: .6; cursor: progress; }
.lead-status { margin: 0; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); font-size: 15px; color: var(--ink); }
.lead-status + .lead-status, .lead-form + .lead-status { margin-top: 16px; }
.lead-status a { text-underline-offset: 3px; }
.lead-error { border-color: var(--danger); }

/* Footer */
.foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 48px; }
.foot-brand p { margin: 12px 0 0; max-width: 30ch; color: var(--ink-2); }
.foot h2 { margin: 0 0 14px; max-width: none; font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-bar { border-top: 1px solid var(--line); }
.foot-inner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.langs { margin-left: auto; display: flex; gap: 4px; }
.langs button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--control-line); color: var(--ink-2); font: 500 12px/1 var(--mono); cursor: pointer; }
.langs button:hover { color: var(--ink); background: var(--sunken); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--page); box-shadow: none; }

/* ---- Motion. Everything below is decoration: the page is complete without it, and `.motion` is only set by
   site.js when the visitor has not asked for reduced motion. Nothing runs per frame from script. The two CSS loops
   (the "live" dot, the step being read) stop while the top is off screen or the tab is hidden (`.idle`). ---- */
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes breathe { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.motion .pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal); animation: pulse 2.6s ease-out infinite; }
.motion .probe-steps li.busy .step-mark { animation: breathe 1s ease-in-out infinite; }
.motion.idle .pill-dot::after, .motion.idle .probe-steps li.busy .step-mark { animation-play-state: paused; }
/* The lookup answers one step at a time; each answer and the window after them ease in once. */
.motion .probe-steps li.on .step-live, .motion .probe-steps li.on .step-mark, .motion .probe-result .cwin { animation: rise .32s cubic-bezier(.2, .7, .2, 1) both; }
/* Scroll reveal, once per block. */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  .pill-dot::after { animation: none !important; }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; }
}
@media (max-width: 960px) {
  /* The menu becomes a second row inside the bar that scrolls sideways. */
  :root { --top-h: 113px; }
  .top-inner { flex-wrap: wrap; gap: 0 12px; padding: 8px 8px 0 18px; border-radius: var(--r-xl); }
  .top-actions { margin-left: auto; }
  .top-nav { order: 3; flex: 0 0 calc(100% + 26px); margin: 8px -8px 0 -18px; padding: 0 18px; gap: 22px; height: 44px; border-top: 1px solid var(--hero-line); overflow-x: auto; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .top-nav a:last-child { padding-right: 28px; }
  .top-nav a[aria-current="page"] { box-shadow: none; color: var(--accent-strong); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .hero { padding: calc(var(--top-h) + 48px) 0 56px; }
  .hero-grid, .cov-grid, .split, .faq-grid, .closing-body, .head-row, .flow-a .flow-head { grid-template-columns: minmax(0, 1fr); }
  .flow-a .flow-head h3 { margin-bottom: 8px; }
  .cov-grid, .split, .faq-grid, .closing-body { gap: 40px; }
  .head-row .section-more { justify-self: start; }
  /* The lookup comes right after the buttons; the three assurances follow it. */
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { justify-self: start; }
  .probe { order: 2; width: 100%; max-width: 560px; margin-top: 36px; }
  .hero-points { order: 3; }
  .guard-list { grid-template-rows: none; }
  .guard-list li { display: block; }
  .flow-b, .flow-c { grid-column: span 12; }
  .guard-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .guard-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .guard-list li:nth-child(even) { padding-right: 0; }
  .section { padding: 72px 0; }
  .guard { padding: 64px 0; }
  .closing { padding-top: 0; }
  .closing-body { padding: 48px 40px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top-nav { gap: 18px; font-size: 14px; }
  .band, .guard { margin: 0; border-radius: 0; }
  .tablist { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 20px; }
  .faq summary { padding: 16px 60px 16px 20px; font-size: 16px; }
  .faq summary::after { right: 16px; }
  .faq details p { padding: 0 20px 20px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 40px; padding-bottom: 32px; }
  .foot a { overflow-wrap: anywhere; }
  .hero { padding: calc(var(--top-h) + 36px) 0 40px; }
  .lede, .section-lede { font-size: 17px; }
  .cta { width: 100%; flex-direction: column; }
  .cta .btn { width: 100%; }
  .code-tabs button { padding: 0 10px; font-size: 13px; }
  .code-pane pre { padding: 18px 16px; font-size: 12.5px; }
  .pane-hint { margin: 16px 16px 0; }
  .agent-grid .code .ln { overflow-wrap: anywhere; }
  .section { padding: 56px 0; }
  .guard { padding: 56px 0; }
  .head-row { margin-bottom: 28px; }
  .closing { padding-top: 0; }
  .closing-body { padding: 40px 16px; border-radius: 0; }
  .closing > .wrap { padding: 0; }
  .lead-grid { grid-template-columns: 1fr; }
  .probe { padding: 16px; border-radius: var(--r-lg); }
  .probe-steps li { grid-template-columns: 18px minmax(0, 1fr); row-gap: 2px; }
  .probe-steps li > .step-idle, .probe-steps li > .step-live { grid-column: 2; }
  .flow-step { padding: 20px; }
  .stage { padding: 20px 12px; }
  .cov-row { padding: 20px; }
  .guard-list { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .guard-list li, .guard-list li:nth-child(even) { padding: 0; border-left: 0; }
  .links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .top-signin { display: none; }
  /* The badge may take two lines here: it becomes a small label instead of a stretched capsule. */
  .pill { font-size: 11.5px; border-radius: var(--r-lg); text-align: left; }
  .home h1 { font-size: 34px; }
  .probe-path { display: none; }
  .field { padding-left: 14px; }
  .field input { font-size: 13px; }
  .field .btn { padding: 0 12px; }
  .rec { font-size: 12px; }
  .cwin { padding: 14px; }
  .cwin-row { flex-wrap: wrap; }
  .cwin-row > div { flex-basis: 40%; }
  .cwin-row > .cwin-btn { flex: 1 1 100%; }
}

/* ---- Inner pages (providers, security, quickstart, agents, docs): a left-aligned title on the same navy top. ---- */
.page-head { padding: calc(var(--top-h) + 64px) 0 64px; }
.eyebrow { margin: 0 0 18px; font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.eyebrow strong { color: var(--accent-strong); font-weight: 500; }
.page-head h1 { font-size: clamp(34px, 3.9vw, 44px); line-height: 1.06; letter-spacing: -0.035em; max-width: 800px; }
.page-head .lede { margin: 20px 0 0; max-width: 32em; }
.page-head .lede a { color: var(--ink); text-underline-offset: 3px; }
.page-head .cta { margin-top: 32px; }
.page-head .hero-note { margin-top: 20px; }
.page-head .updated { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.page-head .updated a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .page-head { padding: calc(var(--top-h) + 40px) 0 44px; }
  .page-head h1 { font-size: 32px; }
}

/* ---- Self-service sign-up (home) and the pricing page. ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact-title { margin: 64px 0 0; font-size: 22px; line-height: 1.3; }
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.price-card-main { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--accent); }
.price-card h3 { font-size: 18px; }
.price { margin: 4px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price-main { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price-per { font-size: 14px; color: var(--ink-3); }
.price-alt { margin: 0; font-size: 14px; color: var(--ink-2); }
.price-quota { margin: 4px 0 4px; font-weight: 600; }
.price-card .ticks { flex: 1; gap: 8px; }
.price-card .ticks li { font-size: 14.5px; }
.price-card .btn { margin-top: 8px; }
.price-note { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--ink-3); }
.price-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.price-cols h2 { font-size: 24px; margin-bottom: 20px; }
@media (max-width: 960px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .price-grid, .price-cols { grid-template-columns: minmax(0, 1fr); } .price-cols { gap: 32px; } }
