/* Accord site. One visual system with the dashboard (packages/dashboard/src/style.css):
   Inter only (mono for code), one blue, 8px radius, 8px spacing grid, soft status pills. */
:root {
  --bg: #ffffff;
  --side: #f7f8fa;
  --surface: #f5f6f8;
  --surface-2: #eceef2;
  --card: #ffffff;
  --line: #e2e5ea;
  --line-2: #eef0f3;
  --ink: #14161b;
  --ink-2: #464c58;
  --ink-3: #6b7280;
  --accent: #2747d0;
  --accent-ink: #ffffff;
  --accent-soft: #ecf0fd;
  --ok: #17703a;
  --ok-soft: #e5f4ea;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --warn: #7a4d00;
  --warn-soft: #fdf0d5;
  --test: #b45309;
  --test-ink: #ffffff;
  --code-bg: #14161b;
  --code-ink: #e6e8ee;
  --code-dim: #8a91a0;
  --code-line: #2a2e37;
  --shadow: 0 1px 2px rgb(20 22 27 / 4%);
  --shadow-lg: 0 8px 32px rgb(20 22 27 / 10%);
  --r: 8px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t: 150ms ease;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014; --side: #12151a; --surface: #14171d; --surface-2: #1b1f27; --card: #161920; --line: #262a33; --line-2: #1d2129;
    --ink: #eceef3; --ink-2: #b6bcc8; --ink-3: #8a91a0; --accent: #7b93ff; --accent-ink: #0e1014; --accent-soft: #1b2340;
    --ok: #5cd08a; --ok-soft: #14291d; --bad: #ff8a80; --bad-soft: #2e1714; --warn: #f3c26b; --warn-soft: #2c2311;
    --test: #f3a35c; --test-ink: #1d1408; --code-bg: #0a0c10; --code-line: #20242c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%); --shadow-lg: 0 8px 32px rgb(0 0 0 / 45%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1014; --side: #12151a; --surface: #14171d; --surface-2: #1b1f27; --card: #161920; --line: #262a33; --line-2: #1d2129;
  --ink: #eceef3; --ink-2: #b6bcc8; --ink-3: #8a91a0; --accent: #7b93ff; --accent-ink: #0e1014; --accent-soft: #1b2340;
  --ok: #5cd08a; --ok-soft: #14291d; --bad: #ff8a80; --bad-soft: #2e1714; --warn: #f3c26b; --warn-soft: #2c2311;
  --test: #f3a35c; --test-ink: #1d1408; --code-bg: #0a0c10; --code-line: #20242c;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%); --shadow-lg: 0 8px 32px rgb(0 0 0 / 45%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.875em; }
:not(pre) > code { background: var(--surface-2); border-radius: 4px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: var(--r); }

/* Test strip and header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: background var(--t), color var(--t); }
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Mobile menu (works without JavaScript) */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { width: 18px; height: 18px; }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; }
.mnav-panel a { color: var(--ink); font-weight: 500; padding: 10px 12px; border-radius: 6px; }
.mnav-panel a:hover { background: var(--surface-2); text-decoration: none; }
.mnav-panel hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; width: 100%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--sans); padding: 12px 18px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; transition: background var(--t), border-color var(--t), box-shadow var(--t); white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Pills (as in the dashboard) */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.waiting { background: var(--warn-soft); color: var(--warn); }
.pill.failed { background: var(--bad-soft); color: var(--bad); }
.pill.open { background: var(--accent-soft); color: var(--accent); }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.tag.live { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.next { background: var(--surface-2); color: var(--ink-3); border-color: transparent; }
.tag.test { color: var(--test); border-color: currentColor; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 1px 10px; font-size: 13px; font-weight: 500; }

/* Type */
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--ink-2); line-height: 1.6; margin: 16px 0 0; max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* Sections */
section { padding: 80px 0; scroll-margin-top: 72px; }
.band { background: var(--side); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 12px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* Install line */
.install { display: flex; align-items: center; gap: 8px; margin-top: 24px; max-width: 100%; width: fit-content; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 4px 4px 14px; }
.install code { background: none; padding: 0; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow-x: auto; min-width: 0; overflow-wrap: normal; }
.install code::before { content: "$ "; color: var(--ink-3); }
.copy { font: 500 12.5px/1 var(--sans); color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; cursor: pointer; flex: none; }
.copy:hover { color: var(--ink); background: var(--surface); }
.copy[data-copied] { color: var(--ok); border-color: var(--ok); }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.hero-note strong { color: var(--ink); font-weight: 600; }

/* Dashboard picture (a static rendering of the dashboard's Home) */
.app { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--side); }
.app-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.app-bar b { margin-left: 8px; font: 500 12px var(--sans); color: var(--ink-3); }
.app-strip { height: 22px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; background: var(--test); color: var(--test-ink); }
.app-body { padding: 16px; display: grid; gap: 12px; background: var(--bg); }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-head b { font-size: 16px; }
.app-head span { color: var(--ink-3); font-size: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.app-balance { padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.app-balance .label, .stat .k { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.app-balance .amount { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fake-btn { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.fake-btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.app-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.stat .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 11.5px; color: var(--ink-3); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.meter i.held { opacity: 0.35; }
.app-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.app-table th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 11.5px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: none; }
.app-table td { padding: 9px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.app-table .sub { display: block; color: var(--ink-3); font-size: 11.5px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.panel-head b { font-size: 13px; }
.panel-head span { font-size: 12px; color: var(--ink-3); }

/* Problem cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .src { margin-top: 12px; font-size: 13px; }
.card .icon { width: 32px; height: 32px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; font-weight: 600; font-size: 14px; }

/* How it works */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; counter-reset: st; list-style: none; padding: 0; }
.steps3 li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.steps3 li::before { content: counter(st); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.steps3 h3 { margin-bottom: 6px; }
.steps3 p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps3 code { font-size: 0.85em; }
.steps3 .both { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.demo-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: start; }

/* Terminal demo */
.demo { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--code-line), var(--shadow-lg); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--code-line); }
.demo-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3f4a; }
.demo-bar b { margin-left: 8px; font: 500 12px var(--mono); color: var(--code-dim); }
.demo pre { margin: 0; padding: 16px 18px; min-height: 232px; font: 13px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.demo .prompt, .demo .dim { color: var(--code-dim); }
.demo .ok { color: #6ee7a0; }
.demo .bad { color: #ff9b8f; }
.demo .hi { color: #fff; font-weight: 600; }
.demo .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--code-ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sellers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 18px 16px; }
.seller { border: 1px solid var(--code-line); border-radius: var(--r); padding: 10px 12px; font-size: 13px; line-height: 1.4; transition: border-color .3s ease, background .3s ease; }
.seller b { display: block; color: #fff; font-weight: 600; }
.seller i { font-style: normal; color: var(--code-dim); }
.seller .state { display: inline-block; margin-top: 6px; font: 500 11.5px/1.5 var(--sans); padding: 0 8px; border-radius: 99px; background: #232731; color: var(--code-dim); }
.seller[data-state="held"] .state { background: #2b2a1a; color: #f3d27a; }
.seller[data-state="paid"] { border-color: #2f6b47; background: #12241a; }
.seller[data-state="paid"] .state { background: #1a3b27; color: #6ee7a0; }
.seller[data-state="released"] .state { background: #232731; color: #c4c9d4; }
.seller[data-state="declined"] { border-color: #6b2f2a; background: #261513; }
.seller[data-state="declined"] .state { background: #3b1c19; color: #ff9b8f; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--code-line); }
.demo-actions button { font: 500 14px/1 var(--sans); padding: 10px 14px; border-radius: var(--r); cursor: pointer; border: 1px solid #3a3f4a; background: transparent; color: var(--code-ink); }
.demo-actions button.run { background: #4d68f0; border-color: #4d68f0; color: #fff; }
.demo-actions button:hover { border-color: #8a91a0; }
.demo-actions button:disabled { opacity: .55; cursor: progress; }
.demo-actions small { color: var(--code-dim); font-size: 12.5px; align-self: center; margin-left: auto; }

/* Example list (home) */
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-list a { display: grid; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); transition: border-color var(--t), box-shadow var(--t); }
.ex-list a:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ex-list b { font-weight: 600; font-size: 15px; }
.ex-list span { font-size: 14px; color: var(--ink-2); }
.ex-list code { font-size: 12px; justify-self: start; margin-top: 4px; color: var(--ink-2); }
.side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.side-head h3 { font-size: 15px; }
.side-head a { font-size: 14px; font-weight: 500; }

/* Code panels */
.code-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--r); margin-bottom: 12px; flex-wrap: wrap; max-width: 100%; }
.tabs button { font: 500 14px/1 var(--sans); color: var(--ink-2); background: none; border: 0; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.codebox { background: var(--code-bg); color: var(--code-ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--code-line); }
.codebox + .codebox { margin-top: 12px; }
.codebox header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--code-line); font: 500 12px var(--mono); color: var(--code-dim); }
.codebox .copy { background: transparent; color: var(--code-dim); border-color: var(--code-line); }
.codebox .copy:hover { color: #fff; border-color: #6b7280; background: transparent; }
.codebox pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13px/1.7 var(--mono); }
.codebox pre.wrap-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.codebox .ok { color: #6ee7a0; font-weight: 600; }
.codebox .bad { color: #ff9b8f; font-weight: 600; }
.codebox-note { margin: 0; padding: 12px 18px 14px; border-top: 1px solid var(--code-line); color: var(--code-dim); font-size: 13px; }
.codebox-note code { color: var(--code-ink); background: #232731; }
.tok-k { color: #c3a6ff; }
.tok-s { color: #9fe0b0; }
.tok-n { color: #ffcf8a; }
.tok-c { color: #7d8597; font-style: italic; }
.tok-f { color: #8ab4ff; }
.setup-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* Checklists */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 15px; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232747d0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist b { color: var(--ink); font-weight: 600; }
.more { display: inline-flex; margin-top: 24px; font-weight: 500; }

/* Agent key panel (as the dashboard shows it) */
.key-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.keypanel .panel-head { padding: 14px 16px; }
.keypanel .panel-head b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.keyrows { margin: 0; padding: 4px 16px 8px; }
.keyrows > div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; align-items: start; }
.keyrows > div:last-child { border-bottom: 0; }
.keyrows dt { color: var(--ink-3); }
.keyrows dd { margin: 0; display: grid; gap: 4px; }
.keyrows .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.change { margin: 0 16px 16px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.change .muted { font-size: 13px; }
.refusals { border-top: 1px solid var(--line); }
.refusals table { width: 100%; border-collapse: collapse; font-size: 13px; }
.refusals td { padding: 10px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.refusals tr:last-child td { border-bottom: 0; }
.refusals .amt { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.refusals .why { display: block; color: var(--ink-3); font-size: 12px; }
.refusals .pillcell { text-align: right; width: 1%; }

/* Keycard (developers page) shares the panel styles */
.keycard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }

/* No fees */
.fees { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 32px; }
.fees .big { font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.fees p { margin: 8px 0 0; color: var(--ink-2); max-width: 56ch; }
.fees dl { margin: 0; display: grid; gap: 8px; min-width: 240px; }
.fees dl div { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.fees dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.fees dt { color: var(--ink-3); }
.fees dd { margin: 0; font-weight: 600; }

/* FAQ */
.qa { display: grid; gap: 8px; margin-top: 40px; }
.qa details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.qa summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.faq { display: grid; gap: 0; }
.faq article { padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.faq article:first-child { border-top: 0; padding-top: 8px; }
.faq h3 { margin-bottom: 8px; font-size: 17px; }
.faq p { margin: 0; color: var(--ink-2); }
.faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 20px; margin-bottom: 8px; }

/* Final call to action */
.final { text-align: center; }
.final h2 { max-width: 22ch; margin-inline: auto; }
.final p { color: var(--ink-2); font-size: 17px; margin: 12px auto 0; max-width: 52ch; }
.final .cta-row { justify-content: center; }
.final .install { margin-inline: auto; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { font-size: 12.5px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
tr.us th, tr.us td { background: var(--accent-soft); font-weight: 600; }
.y { color: var(--ok); font-weight: 600; }
.n { color: var(--ink-3); }
.guarantees td:first-child { width: 50%; }
.guarantees td::before { font-weight: 700; margin-right: 8px; }
.guarantees td:first-child::before { content: "✓"; color: var(--ok); }
.guarantees td:last-child::before { content: "–"; color: var(--ink-3); }

/* Example cards (quickstart, examples) */
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.example { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; color: inherit; transition: border-color var(--t), box-shadow var(--t); min-width: 0; }
a.example:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.example .tag { align-self: flex-start; margin-bottom: 12px; }
.example h3 { font-size: 18px; margin-bottom: 6px; }
.example p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.example .cmd { align-self: flex-start; max-width: 100%; overflow-x: auto; white-space: nowrap; font-size: 12.5px; margin: 0 0 12px; }
.example .proves { margin-top: auto; font-size: 14px; color: var(--ink-3); }
.example .go { margin-top: 12px; font-weight: 500; color: var(--accent); font-size: 15px; }

/* Docs pages */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 44px); }
.doc-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 24px; border-bottom: 1px solid var(--line); }
.doc-tabs a { color: var(--ink-3); font-weight: 500; font-size: 15px; padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.doc-tabs a:hover { color: var(--ink); text-decoration: none; }
.doc-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.doc { padding: 0 0 96px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 26px); margin: 48px 0 12px; scroll-margin-top: 88px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p strong, .doc li strong { color: var(--ink); }
.doc .codebox { margin: 16px 0 20px; }
.doc .codebox + .codebox { margin-top: -8px; }
.doc .table-wrap { margin: 16px 0 20px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps > li { position: relative; padding: 0 0 8px 52px; counter-increment: s; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.steps > li::after { content: ""; position: absolute; left: 15.5px; top: 42px; bottom: 4px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h2 { margin-top: 0; padding-top: 2px; }
.callout { border: 1px solid transparent; background: var(--warn-soft); border-radius: var(--r); padding: 12px 16px; color: var(--ink); font-size: 15px; margin: 16px 0; }
.callout strong { color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.toc a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; background: var(--card); }
.toc a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.ex-block { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 48px; }
.ex-block:first-of-type { border-top: 0; margin-top: 16px; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.doc section.ex-block { padding: 0; }
.doc section.ex-block + section.ex-block { padding-top: 8px; }
.wide-doc section { padding: 56px 0; border-top: 1px solid var(--line); }
.wide-doc section:first-child { border-top: 0; padding-top: 16px; }
.wide-doc .section-head { margin-bottom: 24px; }
.mcp-detail { margin-top: 40px; }
.mcp-detail h3 { margin-bottom: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--side); padding: 48px 0 56px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: 8px 0 0; max-width: 34ch; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .code-split, .key-split, .demo-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .fees { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .header-end .signin { display: none; }
  .mnav { display: block; }
  .site-header .wrap { height: 56px; gap: 16px; }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .grid-3, .steps3, .examples { grid-template-columns: minmax(0, 1fr); }
  .app-stats { grid-template-columns: 1fr; }
  .app-table .hide-sm { display: none; }
  .sellers { gap: 6px; padding: 0 12px 12px; }
  .seller { padding: 8px; font-size: 12px; }
  .demo pre { font-size: 12px; padding: 14px; min-height: 210px; }
  .demo-actions { padding: 12px; }
  .demo-actions small { display: none; }
  .install { width: 100%; }
  .keyrows > div { grid-template-columns: 1fr; gap: 4px; }
  .fees { padding: 24px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps > li { padding-left: 0; }
  .steps > li::before { position: static; margin-bottom: 12px; }
  .steps > li::after { display: none; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Docs tabs above a docs page's heading */
.doc-nav .doc-tabs { margin-top: 24px; }
.doc-nav + .page-head { padding-top: 40px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 46px); }
@media (min-width: 981px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.section-head .eyebrow { color: var(--accent); font-size: 14px; margin: 0 0 12px; }
.final h2 { max-width: 26ch; }
@media (max-width: 480px) {
  .tabs button { padding: 8px 9px; font-size: 13px; }
  .app-table .sub { display: none; }
  .app-table th, .app-table td { padding: 8px 10px; }
}
td code, th code { white-space: nowrap; overflow-wrap: normal; }
.wide-doc .key-split { align-items: start; }
.doc .faq h3 { margin: 0 0 8px; }
.doc .faq-group > h2 { margin: 0 0 8px; }
.doc .faq-group:first-child { margin-top: 16px; }

/* API tables: long signatures wrap instead of squeezing the description */
.api td:first-child { width: 48%; }
.api td code { white-space: normal; overflow-wrap: anywhere; }

/* === Positioning draft (2026-11-24) === */

/* Nav: Product menu */
.navmenu { position: relative; }
.navmenu summary { list-style: none; cursor: pointer; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 12px; border-radius: 6px; display: flex; align-items: center; gap: 4px; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.navmenu summary:hover, .navmenu[open] summary { background: var(--surface-2); color: var(--ink); }
.navmenu.current summary { background: var(--accent-soft); color: var(--accent); }
.navmenu-panel { position: absolute; left: 0; top: calc(100% + 8px); width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px; z-index: 60; }
.navmenu-panel a { display: grid; gap: 1px; padding: 9px 10px; border-radius: 6px; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.navmenu-panel a span { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.navmenu-panel a:hover { background: var(--surface-2); text-decoration: none; }
.mnav-panel .sub { padding-left: 24px; font-weight: 400; color: var(--ink-2); }

/* Hero player: recorded runs of the CLI demos */
.player { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--code-line), var(--shadow-lg); min-width: 0; margin: 0; }
.player .scenarios { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 4px; }
.player .scenarios button { font: 500 13px/1 var(--sans); padding: 8px 11px; border-radius: 99px; border: 1px solid var(--code-line); background: transparent; color: var(--code-dim); cursor: pointer; }
.player .scenarios button:hover { color: #fff; border-color: #4a5060; }
.player .scenarios button[aria-pressed="true"] { background: #1f2742; border-color: #4d68f0; color: #fff; }
.ptabs { display: flex; gap: 2px; padding: 6px 14px 0; border-bottom: 1px solid var(--code-line); }
.ptabs button { font: 500 12.5px/1 var(--mono); color: var(--code-dim); background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 10px; margin-bottom: -1px; cursor: pointer; }
.ptabs button:hover { color: #fff; }
.ptabs button[aria-selected="true"] { color: #fff; border-bottom-color: #4d68f0; }
.player pre { margin: 0; padding: 14px 16px; height: 252px; overflow: auto; font: 12.5px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.player pre.code { white-space: pre; overflow-wrap: normal; }
.player .prompt, .player .dim { color: var(--code-dim); }
.player .ok { color: #6ee7a0; }
.player .bad { color: #ff9b8f; }
.player .hi { color: #fff; font-weight: 600; }
.player .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--code-ink); animation: blink 1s steps(1) infinite; }
.rail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 12px 16px 10px; border-top: 1px solid var(--code-line); }
.rail span { font: 500 11.5px/1.6 var(--sans); padding: 1px 9px; border-radius: 99px; background: #191c23; color: #6b7280; transition: background .3s ease, color .3s ease; }
.rail i { width: 10px; height: 1px; background: var(--code-line); }
.rail span.done { color: #c4c9d4; }
.rail span.on { background: #1f2742; color: #c9d3ff; }
.player .sellers { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); padding: 0 16px 10px; }
.player .caption { margin: 0; padding: 0 16px 12px; font-size: 12.5px; color: var(--code-dim); }
.seller[data-state="ready"] { border-color: #34407a; }
.seller[data-state="ready"] .state { background: #1d2540; color: #a9b8ff; }
.seller[data-state="delivered"] .state { background: #16303a; color: #8fd3e8; }
.seller[data-state="rejected"] { border-color: #6b2f2a; background: #261513; }
.seller[data-state="rejected"] .state { background: #3b1c19; color: #ff9b8f; }
.seller[data-state="off"] .state { background: #232731; color: #c4c9d4; }
.player .demo-actions { border-top: 1px solid var(--code-line); }

/* Between companies */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare .card { padding: 24px; }
.compare .card.us { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.compare .k { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 0 0 8px; }
.compare .card.us .k { color: var(--accent); }
.compare ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.promise { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: 15px; color: var(--ink); }
.promise span::before { content: "✓"; color: var(--ok); margin-right: 8px; }

/* Four nouns */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.noun { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.noun .n { font: 600 12px/1 var(--mono); color: var(--accent); }
.noun h3 { font-size: 18px; }
.noun p { margin: 0; color: var(--ink-2); font-size: 15px; }
.noun code { align-self: flex-start; margin-top: auto; font-size: 12.5px; }

/* Use-case tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); transition: border-color var(--t), box-shadow var(--t); min-width: 0; }
.tile:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tile b { font-size: 15px; font-weight: 600; }
.tile span { font-size: 14px; color: var(--ink-2); }
.tile .tag { align-self: flex-start; margin-top: auto; }

/* Beyond one company, proof */
.beyond { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.proof .card h3 { font-size: 16px; }
.proof .card a { font-size: 14px; font-weight: 500; display: inline-block; margin-top: 10px; }

/* Plain pages (how it works, security, pricing, teams, changelog) */
.plain h2 { scroll-margin-top: 88px; }
.part { padding: 48px 0; border-top: 1px solid var(--line); }
.part:first-of-type { border-top: 0; padding-top: 8px; }
.part > .eyebrow { margin-bottom: 8px; }
.part .steps { margin-top: 24px; }
.part .steps > li h3 { font-size: 17px; margin: 4px 0 6px; }
.part .steps > li p { margin: 0 0 8px; color: var(--ink-2); }
.soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.soon .card { padding: 18px; }
.soon .card h3 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.placeholder { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 6px; font-weight: 600; }
.log { list-style: none; padding: 0; margin: 0; }
.log > li { padding: 28px 0; border-top: 1px solid var(--line); }
.log > li:first-child { border-top: 0; padding-top: 8px; }
.log h2 { font-size: 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.log h2 time { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.log ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }

@media (max-width: 980px) {
  .grid-4, .tiles, .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beyond { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .compare, .soon { grid-template-columns: minmax(0, 1fr); }
  .player pre { height: 232px; font-size: 11.5px; padding: 12px; }
  .player .sellers { padding: 0 12px 10px; }
  .rail { padding: 10px 12px 8px; }
}
@media (max-width: 480px) {
  .grid-4, .tiles, .proof { grid-template-columns: minmax(0, 1fr); }
  .player .scenarios button { font-size: 12px; padding: 7px 9px; }
}

.callout.standalone { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); margin-top: 24px; }

/* Sellers: hero with the buyer's-journey slideshow. Without JS the slides are a swipeable row. */
.connect-hero { padding: 48px 0 64px; text-align: center; }
.connect-hero h1 { max-width: 24ch; margin-inline: auto; }
.connect-hero .lede { margin: 16px auto 0; max-width: 56ch; }
.connect-hero .cta-row { justify-content: center; }
.slides { max-width: 880px; margin: 32px auto 0; }
.slides-frame { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; border-radius: 12px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slides[data-ready] .slides-frame { display: grid; overflow: visible; padding-bottom: 0; }
.slides[data-ready] .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.slides[data-ready] .slide.is-active { opacity: 1; visibility: visible; }
.slides[data-anim] .slide { transition: opacity 450ms ease, visibility 0s linear 450ms; }
.slides[data-anim] .slide.is-active { transition: opacity 450ms ease; }
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.screen-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.screen-bar span { flex: 0 1 340px; margin: 0 auto; transform: translateX(-17px); padding: 3px 10px; border-radius: 6px; background: var(--bg); color: var(--ink-3); font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen img { width: 100%; height: auto; }
.slide figcaption { margin-top: 16px; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); text-wrap: balance; }
.slide-n { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; vertical-align: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.slides-nav { display: none; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.slides[data-ready] .slides-nav { display: flex; }
.slides-dots { display: flex; gap: 2px; }
.slides-dots button, .slides-toggle { display: grid; place-items: center; height: 32px; min-width: 24px; padding: 0 4px; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.slides-dots span { display: block; position: relative; width: 8px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; transition: width 250ms ease; }
.slides-dots button:hover span { background: var(--ink-3); }
.slides-dots [aria-current="true"] span { width: 28px; background: var(--accent-soft); }
.slides-dots [aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--accent); }
.slides[data-running] .slides-dots [aria-current="true"] span::after { transform-origin: left; animation: slide-fill 4s linear forwards; }
@keyframes slide-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slides-toggle { color: var(--ink-3); width: 32px; }
.slides-toggle:hover { color: var(--ink); background: var(--surface); }
.slides-toggle .i-pause { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.slides-toggle .i-play { width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; margin-left: 2px; display: none; }
.slides[data-stopped] .slides-toggle .i-pause { display: none; }
.slides[data-stopped] .slides-toggle .i-play { display: block; }
.connect-why { padding: 40px 0; }
.why3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why3 li { color: var(--ink-2); font-size: 16px; }
.why3 b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.connect-why .sources { margin: 24px 0 0; font-size: 13px; color: var(--ink-3); }
#add h2 { margin-bottom: 12px; }
#add .add-text { color: var(--ink-2); margin: 0 0 12px; }
@media (max-width: 980px) { .why3 { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (max-width: 600px) {
  .connect-hero { padding: 40px 0 48px; }
  .slides { margin-top: 28px; max-width: 360px; }
  .screen-bar span { transform: none; }
  .slide figcaption { font-size: 15px; min-height: 2.8em; }
}

/* ---------- 2026-11-27 redesign: homepage (.home), docs sidebar, finance page ---------- */
.mnav-h { padding: 8px 12px 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
.nav a[aria-current="page"], .navmenu-panel a[aria-current="page"] { color: var(--accent); }

.home section { padding: 88px 0; }
.home .sec-head { max-width: 640px; margin-bottom: 40px; }
.home .sec-head p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; margin: 12px 0 0; }

.x-hero { padding: 72px 0 64px !important; }
.x-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.x-hero h1 { font-size: clamp(36px, 4.6vw, 54px); max-width: 14ch; }
.x-hero .lede { max-width: 44ch; }
.x-hero .cta-row { gap: 12px; margin-top: 28px; }
.x-stage { position: relative; margin: 0; }
.badge-float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.badge-float .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.badge-float.ok .dot { background: var(--ok-soft); color: var(--ok); }
.badge-float.no .dot { background: var(--bad-soft); color: var(--bad); }
.badge-float small { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.badge-a { left: -28px; bottom: 56px; }
.badge-b { right: -20px; top: 72px; }
/* Between the one-column layout and a wide window, the hero frame meets the window edge: keep the badge inside it. */
@media (min-width: 981px) and (max-width: 1240px) { .badge-b { right: 8px; } }

.x-promise { padding: 0 0 88px !important; }
.promise3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise3 article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.vignette { height: 148px; background: var(--side); border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 16px; }
.promise3 .txt { padding: 20px 22px 22px; }
.promise3 h2.h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 6px; }
.promise3 p { margin: 0; color: var(--ink-2); font-size: 15px; }
.mini { width: min(260px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; box-shadow: var(--shadow); }
.mini .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.mini .row + .row { border-top: 1px solid var(--line-2); }
.mini .k { color: var(--ink-3); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 2px 0 8px 20px; }
.tl li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); background: var(--card); }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.tl li:last-child { padding-bottom: 0; }
.tl span { color: var(--ink-3); }

.how { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.steps-sw { display: grid; gap: 8px; margin: 0; padding: 0; }
.steps-sw button { width: 100%; text-align: left; display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 16px 18px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: var(--ink-2); }
.steps-sw button:hover { background: var(--surface); }
.steps-sw button[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.steps-sw .n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.steps-sw [aria-selected="true"] .n { background: var(--accent); color: var(--accent-ink); }
.steps-sw b { font-weight: 600; font-size: 16px; color: var(--ink); }
.steps-sw small { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.how-stage [role="tabpanel"][hidden] { display: none; }
.how-stage .keypanel { max-width: 560px; margin-inline: auto; }
.how-caption { display: none; margin: 14px 0 0; text-align: center; font-weight: 600; font-size: 15px; }

.build { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.build .links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-weight: 500; font-size: 15px; }
.build .codebox pre { min-height: 248px; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > a { grid-column: span 2; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow); transition: border-color 150ms ease, box-shadow 150ms ease; }
.bento > a.wide { grid-column: span 3; }
.bento > a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.bento .thumb { aspect-ratio: 16 / 9; background: var(--side); border-bottom: 1px solid var(--line); overflow: hidden; }
.bento .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.bento .thumb.code { background: var(--code-bg); display: flex; align-items: center; padding: 16px 18px; }
.bento .thumb.code pre { margin: 0; color: var(--code-ink); font: 12.5px/1.7 var(--mono); white-space: pre; overflow: hidden; background: none; padding: 0; }
.bento .txt { padding: 18px 20px 20px; display: grid; gap: 4px; }
.bento .k { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.bento h3 { font-size: 17px; }
.bento p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.bento .go { margin-top: 6px; color: var(--accent); font-size: 14px; font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ex { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.ex .txt { padding: 18px 20px 14px; }
.ex h3 { font-size: 16px; margin-bottom: 4px; }
.ex p { margin: 0; color: var(--ink-2); font-size: 14px; }
.ex pre { margin: auto 0 0; background: var(--code-bg); color: var(--code-ink); font: 12px/1.65 var(--mono); padding: 14px 16px; overflow-x: auto; min-height: 132px; border-radius: 0; }
.ex .flow { margin: auto 0 0; padding: 14px 16px; min-height: 132px; background: var(--side); border-top: 1px solid var(--line); list-style: none; display: grid; gap: 6px; font-size: 13px; counter-reset: f; }
.ex .flow li { counter-increment: f; display: flex; gap: 8px; align-items: baseline; }
.ex .flow li::before { content: counter(f); flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.ex .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--code-line); background: var(--code-bg); font-size: 12.5px; }
.ex .foot.light { background: var(--side); border-top-color: var(--line); }
.ex .foot code { background: none; color: var(--code-dim); padding: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ex .foot.light code { color: var(--ink-3); }
.ex .foot a { flex: none; font-weight: 500; }
.ex.more { justify-content: center; align-items: flex-start; padding: 24px; background: var(--side); }
.ex.more h3 { font-size: 18px; }
.ex.more p { margin: 6px 0 16px; }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trust div { border-top: 2px solid var(--accent); padding-top: 14px; }
.trust b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.trust span { color: var(--ink-2); font-size: 14px; }

.x-final { text-align: center; }
.x-final .install { margin: 24px auto 0; }
.x-final .cta-row { justify-content: center; }
.x-final .hero-note { margin-top: 16px; }

/* Docs: a sidebar on the quickstart and the SDK reference */
.docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; width: min(1120px, 100% - 32px); margin-inline: auto; }
.docs-side { position: sticky; top: 88px; align-self: start; padding-top: 56px; }
.docs-side h2 { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }
.docs-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-side a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.docs-side a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.docs-side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.docs-layout .narrow, .docs-layout .wrap { width: 100%; margin-inline: 0; }

@media (max-width: 980px) {
  .x-hero .wrap, .how, .build { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .badge-a { left: 8px; } .badge-b { right: 8px; }
  .bento > a, .bento > a.wide { grid-column: span 3; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-side { position: static; padding-top: 24px; }
  .docs-side h2 { display: none; }
  .docs-side ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .docs-side a { white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13.5px; }
}
@media (max-width: 760px) {
  .home section { padding: 56px 0; }
  .x-hero { padding: 36px 0 48px !important; }
  .x-promise { padding-bottom: 56px !important; }
  .promise3, .gallery, .trust { grid-template-columns: minmax(0, 1fr); }
  .bento > a, .bento > a.wide { grid-column: 1 / -1; }
  .steps-sw { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
  .steps-sw button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; }
  .steps-sw .n { grid-row: auto; }
  .steps-sw small { display: none; }
  .steps-sw b { font-size: 13px; }
  .how-caption { display: block; }
  .build .codebox pre { min-height: 0; }
  .badge-float { font-size: 12px; padding: 6px 10px; }
  .badge-float small { display: none; }
  .badge-a { bottom: -14px; left: 8px; } .badge-b { top: -14px; right: 8px; }
}
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-card { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); }
.hub-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.hub-card b { font-size: 16px; }
.hub-card span { color: var(--ink-2); font-size: 14.5px; }
.hub-card code { justify-self: start; margin-top: 6px; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hiw-player { margin-top: 8px; margin-bottom: 24px; }
.owner-more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px 20px; }
.owner-more summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--ink); }
.owner-more .checklist { margin: 4px 0 20px; }
#today { padding: 56px 0 24px; }
@media (max-width: 980px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hub-grid { grid-template-columns: minmax(0, 1fr); } }

/* /examples gallery */
.exg { margin: 8px auto 40px; }
.exg-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.exg-filters button { font: 500 14px/1 var(--sans); color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.exg-filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.exg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.exg-card { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); box-shadow: var(--shadow); }
.exg-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.exg-card[hidden] { display: none; }
.exg-card b { font-size: 15.5px; }
.exg-card span { color: var(--ink-2); font-size: 14px; }
.exg-card code { justify-self: start; margin-top: 6px; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fullcode { margin: 12px 0 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.fullcode summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.fullcode summary span { color: var(--ink-3); font-weight: 400; }
.fullcode[open] summary { border-bottom: 1px solid var(--line); }
.doc .fullcode .codebox { margin: 0; border: 0; border-radius: 0 0 var(--r) var(--r); }
@media (max-width: 980px) { .exg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .exg-grid { grid-template-columns: minmax(0, 1fr); } }

/* /live-access/ request form */
.la-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.la-form fieldset[disabled] { opacity: 0.55; }
.la-closed { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.la-form:not(:has(fieldset[disabled])) .la-closed { display: none; }
.la-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.la-wide { grid-column: 1 / -1; }
.la-field { display: grid; gap: 6px; font-weight: 500; font-size: 14.5px; color: var(--ink); }
.la-field input, .la-field textarea, .la-field select { font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.la-field textarea { resize: vertical; min-height: 96px; }
.la-field input:focus, .la-field textarea:focus, .la-field select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
.la-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 16px; font-size: 14.5px; color: var(--ink-2); }
.la-consent input { margin-top: 3px; accent-color: var(--accent); }
.la-turnstile:empty { display: none; }
.la-turnstile { margin-bottom: 16px; }
.la-done h2 { margin-top: 0; }
.la-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.la-form .la-error { margin: 0 0 16px; color: var(--bad); font-size: 14.5px; }
.la-code { display: grid; gap: 6px; margin: 16px 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.la-code span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.la-code code { font-size: 15px; word-break: break-all; background: none; padding: 0; }
.la-delete { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.la-delete h2 { margin-top: 0; font-size: 20px; }
.la-delete .la-grid { margin-bottom: 16px; }
.la-form:not([data-js]) .la-closed { display: none; }
.la-noscript { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.la-field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.la-field [aria-invalid="true"] { border-color: var(--bad); }
.la-form button[aria-busy="true"] { cursor: progress; opacity: 0.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .la-grid { grid-template-columns: minmax(0, 1fr); } }
