:root {
  --ink: #18202b;
  --ink-2: #4a5566;
  --line: #cfd6df;
  --table: #e9edf2;
  --paper: #ffffff;
  --magenta: #c4006a;
  --magenta-dark: #9a0053;
  --tint: #fbeaf3;
  --cyan: #0091c8;
  --link: #00729e; /* 5.3:1 on white, 4.6:1 on the grey table */
  --ok: #1d7a46;
  --err: #b42318;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --head-h: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--table); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
code, pre, .mono { font-family: var(--mono); font-size: 0.86em; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.88rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gap-top { margin-top: 28px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(233, 237, 242, 0.94); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
@supports (backdrop-filter: blur(8px)) { .site-head { backdrop-filter: blur(8px); } }
.site-head.scrolled { border-bottom-color: var(--line); }
.top { display: flex; align-items: center; gap: 28px; min-height: var(--head-h); }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.main-nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 10px; }
.main-nav a:hover { color: var(--magenta); }
.main-nav a[aria-current] { color: var(--magenta); box-shadow: inset 0 -2px 0 var(--magenta); }
.main-nav .nav-dash { display: none; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.nav-dash-wide { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-dash-wide:hover { color: var(--magenta); }
.menu-btn { display: none; align-items: center; gap: 8px; font: 600 0.95rem var(--sans); color: var(--ink); background: transparent; border: 2px solid var(--ink); padding: 7px 12px; border-radius: 2px; cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }
.menu-btn[aria-expanded='true'] .bars { background: transparent; }
.menu-btn[aria-expanded='true'] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] .bars::after { top: 0; transform: rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 600 1rem var(--sans); padding: 11px 20px; text-decoration: none; cursor: pointer; border-radius: 2px; white-space: nowrap; }
.btn:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.hot { background: var(--magenta); border-color: var(--magenta); }
.btn.hot:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); }
.btn.sm { padding: 7px 14px; font-size: 0.95rem; }
.btn.lg { padding: 13px 24px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.linkish { font: inherit; color: var(--link); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.linkish:hover { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }

/* hero */
.hero { padding-top: 40px; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { max-width: 36ch; margin-bottom: 1.4em; }
.reassure { font-size: 0.95rem; color: var(--ink-2); padding-left: 22px; position: relative; }
.reassure::before { content: ''; position: absolute; left: 2px; top: 0.35em; width: 10px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero-points li { padding-left: 22px; position: relative; }
.hero-points li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 10px; height: 2px; background: var(--magenta); }

/* demo = the proof sheet */
.demo { background: var(--paper); border: 1px solid var(--line); padding: 22px; position: relative; }
.demo-title { font-size: 1.05rem; margin-bottom: 12px; }
.demo form { display: grid; gap: 12px; }
.demo-hint { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.tabs { display: flex; border: 2px solid var(--ink); width: max-content; max-width: 100%; }
.tabs button { font: 600 0.95rem var(--sans); border: 0; background: transparent; padding: 9px 16px; cursor: pointer; color: var(--ink); }
.tabs button + button { border-left: 2px solid var(--ink); }
.tabs button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.url-row { display: flex; gap: 10px; }
.url-row input { flex: 1; min-width: 0; font: 400 1rem var(--mono); padding: 11px 12px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); }
.proof { margin-top: 18px; position: relative; padding: 18px; background: var(--table); min-height: 300px; display: grid; place-items: center; }
/* crop marks: .proof and .crop share them (.cm span carries the bottom pair) */
.proof::before, .proof::after, .proof .cm::before, .proof .cm::after,
.crop::before, .crop::after, .crop > .cm::before, .crop > .cm::after { content: ''; position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; pointer-events: none; }
.proof::before, .crop::before { top: 4px; left: 4px; border-width: 1px 0 0 1px; }
.proof::after, .crop::after { top: 4px; right: 4px; border-width: 1px 1px 0 0; }
.proof .cm::before, .crop > .cm::before { bottom: 4px; left: 4px; border-width: 0 0 1px 1px; }
.proof .cm::after, .crop > .cm::after { bottom: 4px; right: 4px; border-width: 0 1px 1px 0; }
.crop { position: relative; }
.proof img { display: block; max-width: 100%; max-height: 520px; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(24, 32, 43, 0.45); background: #fff; }
.proof iframe { width: 100%; height: 520px; border: 0; background: #fff; }
.proof pre { width: 100%; max-height: 520px; overflow: auto; margin: 0; background: #fff; padding: 16px; white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; line-height: 1.5; }
.proof .empty { color: var(--ink-2); text-align: center; max-width: 34ch; }
.slug { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font: 400 0.8rem var(--mono); color: var(--ink-2); }
.slug b { color: var(--ink); font-weight: 600; }
.slug .bad { color: var(--err); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--magenta); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sections */
section.band { padding: 80px 0; border-top: 1px solid var(--line); }
section.band.white { background: var(--paper); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.page { padding-top: 32px; padding-bottom: 80px; }
.page-head { padding-top: 32px; padding-bottom: 56px; }
.crumbs { font-size: 0.92rem; margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }

/* use cases */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); margin-top: 32px; }
.use { padding: 26px 24px; display: flex; flex-direction: column; }
.use + .use { border-left: 1px solid var(--line); }
.use h3 { font-size: 1.25rem; margin-top: 14px; }
.use h3 a { color: var(--ink); text-decoration: none; }
.use h3 a:hover { color: var(--magenta); text-decoration: underline; }
.use p { color: var(--ink-2); }
.ep { align-self: flex-start; background: var(--table); padding: 3px 8px; font-size: 0.8rem; font-weight: 500; }
.io { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 4px 0 18px; font-size: 0.95rem; }
.io dt { color: var(--ink-2); }
.io dd { margin: 0; font-weight: 600; }
.use-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 500; }

/* build vs buy */
.diy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.diy > div { padding: 22px 24px 20px 0; border-bottom: 1px solid var(--line); }
.diy > div:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.diy h3 { margin-bottom: 0.4em; }
.diy p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.diy.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.diy.two > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
.diy.two > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
.diy-note { margin-top: 16px; }
.related { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.related li { border-top: 1px solid var(--line); }
.related a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.related a:hover { color: var(--magenta); }

/* numbered steps (a real sequence) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 22px; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; color: var(--ink-2); }
.steps li strong { color: var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95rem; }

/* code */
.code-tabs { display: flex; gap: 0; border-bottom: 1px solid #333c4a; }
.code-tabs button { background: transparent; border: 0; color: #aab4c3; font: 500 0.85rem var(--mono); padding: 10px 14px; cursor: pointer; }
.code-tabs button[aria-pressed='true'] { color: #fff; box-shadow: inset 0 -2px 0 var(--magenta); }
.code { background: var(--ink); color: #e6ebf2; border-radius: 2px; overflow: hidden; position: relative; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 0.84rem; line-height: 1.6; }
.code .k { color: #ff8fc8; } .code .s { color: #8fd6ff; } .code .c { color: #8592a6; }
.pre-wrap { position: relative; }
.pre-wrap > pre { padding-right: 76px; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 600 0.8rem var(--sans); color: #e6ebf2; background: #2b3543; border: 1px solid #47536a; padding: 5px 10px; border-radius: 2px; cursor: pointer; }
.copy-btn:hover { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.code > .copy-btn { top: 6px; }

/* comparison table */
table.cmp { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 0.95rem; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { font-weight: 600; border-bottom: 2px solid var(--ink); }
table.cmp td.num, table.cmp th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.cmp td.key { font-weight: 600; }
table.cmp tr.us td { background: var(--tint); font-weight: 600; }
table.cmp tr.us td:first-child { box-shadow: inset 4px 0 0 var(--magenta); }
.price-note { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid var(--link); background: #eef6fa; max-width: 80ch; }
.opt-inline { display: none; font-weight: 400; color: var(--ink-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--paper); margin-top: 8px; }
.plan { padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { margin: 0; }
.plan .fit { margin: 0 0 10px; color: var(--ink-2); font-size: 0.92rem; min-height: 2.8em; }
.plan .price { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.plan .price span { font-size: 1rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.plan .quota { font-weight: 600; }
.plan .per { font-size: 0.88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; }
.plan .spacer { flex: 1; min-height: 14px; }
.assure { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; font-size: 0.93rem; color: var(--ink-2); }
.assure li { padding-left: 24px; position: relative; }
.assure li::before { content: ''; position: absolute; left: 3px; top: 0.4em; width: 10px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.assure strong { color: var(--ink); }
.more-volume { margin: 14px 0 0; font-size: 0.93rem; color: var(--ink-2); }
.launch { margin-top: 22px; border: 2px dashed var(--magenta); background: var(--paper); padding: 22px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.launch h3 { margin: 0 0 4px; }
.launch .offer { display: grid; gap: 6px; justify-items: start; }
.launch .offer .btn { margin-top: 6px; }
.launch .offer strong { font-size: 1.5rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--magenta); }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { color: var(--magenta); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* closing call to action */
section.band.closing { padding: 64px 0 80px; }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.closing-row h2 { margin-bottom: 0.3em; }
.closing-row p { margin: 0; }
.closing-row .cta-row { margin: 0; }

/* forms / dialogs */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input { font: 400 1rem var(--sans); padding: 11px 12px; border: 2px solid var(--ink); border-radius: 2px; }
.notice { padding: 12px 14px; border-left: 4px solid var(--cyan); background: #eef7fc; }
.notice.err { border-color: var(--err); background: #fdf0ef; }
.notice.ok { border-color: var(--ok); background: #eef8f1; }
.keybox { display: flex; gap: 8px; align-items: stretch; }
.keybox code { flex: 1; min-width: 0; padding: 11px 12px; background: var(--ink); color: #fff; overflow-x: auto; white-space: nowrap; border-radius: 2px; }
dialog { border: 2px solid var(--ink); padding: 26px; max-width: 480px; width: calc(100% - 32px); border-radius: 2px; }
dialog::backdrop { background: rgba(24, 32, 43, 0.55); }
dialog h2 { font-size: 1.4rem; }
.su-msg:not(:empty) { margin-top: 12px; }
.dlg-actions { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
.su-p { margin: 0 0 8px; }
.su-next { margin-top: 16px; }
.su-curl { background: var(--ink); color: #e6ebf2; padding: 12px; font-size: 0.75rem; overflow-x: auto; margin: 0; white-space: pre; }
.su-run-out:not(:empty) { margin-top: 14px; }
.su-run-out img { display: block; max-width: 100%; border: 1px solid var(--line); }
.su-run-out .spinner { margin: 8px auto; }
.as-api { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.as-api p { margin: 0 0 8px; font-size: 0.95rem; }
.as-api pre { background: var(--ink); color: #e6ebf2; padding: 12px; font-size: 0.78rem; overflow-x: auto; margin: 0 0 12px; }
.as-api .cta-row { margin: 0; }

/* footer */
footer.foot { padding: 56px 0 64px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); background: var(--paper); }
footer.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 3fr); gap: 40px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { max-width: 32ch; margin-bottom: 0.6em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font-size: 0.95rem; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 10px; }
.foot-cols a { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { color: var(--magenta); text-decoration: underline; }
footer.foot a { color: var(--ink-2); }

/* docs */
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding: 24px 0 80px; }
.doc-nav { position: sticky; top: calc(var(--head-h) + 16px); align-self: start; display: grid; gap: 2px; font-size: 0.95rem; max-height: calc(100vh - var(--head-h) - 32px); overflow-y: auto; }
.doc-nav-h { margin: 14px 0 4px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.doc-nav-h:first-child { margin-top: 0; }
.doc-nav a { color: var(--ink); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid transparent; }
.doc-nav a:hover { color: var(--magenta); }
.doc-nav a[aria-current] { border-left-color: var(--magenta); color: var(--magenta); font-weight: 600; }
.doc article { background: var(--paper); border: 1px solid var(--line); padding: 40px 44px; min-width: 0; }
.doc article h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.doc article h2 { margin-top: 1.8em; padding-top: 0.4em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.doc article .steps { margin-top: 8px; }
.doc .table-scroll { margin: 0 0 1.4em; border: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.doc th { border-bottom: 2px solid var(--ink); }
.doc td code { overflow-wrap: anywhere; }
.doc pre { background: var(--ink); color: #e6ebf2; padding: 16px; overflow-x: auto; border-radius: 2px; font-size: 0.82rem; margin: 0 0 1.4em; }
.doc p code, .doc td code, .doc li code { background: var(--table); padding: 1px 5px; border-radius: 2px; }

/* status */
.status-card { background: var(--paper); border: 1px solid var(--line); padding: 26px; margin-top: 24px; max-width: 560px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0 0 16px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #d8efe1; }
.status-card[data-ok='0'] .status-dot { background: var(--err); box-shadow: 0 0 0 4px #f8dcd9; }

/* legal pages */
.legal { padding-top: 32px; padding-bottom: 80px; }
.prose { background: var(--paper); border: 1px solid var(--line); padding: 40px 44px; max-width: 820px; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* dashboard */
.dash, .dash #account { display: grid; gap: 24px; }
.dash { padding-top: 16px; padding-bottom: 80px; }
.dash #account[hidden] { display: none; }
.panel { background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.meter { height: 14px; background: var(--table); border: 1px solid var(--line); position: relative; }
.meter > i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.meter > i.warn { background: var(--magenta); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--ink); }
.bars i { flex: 1; background: var(--cyan); min-height: 1px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* blog index */
.blog-head { padding-top: 32px; padding-bottom: 32px; }
.blog-head .lede { margin-bottom: 0.6em; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 180px; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.post-row time, .post-row .rt { color: var(--ink-2); font-size: 0.93rem; }
.post-row h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 0.35em; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { color: var(--magenta); }
.post-row p { color: var(--ink-2); margin: 0 0 0.6em; max-width: 64ch; }
.post-row .topic { justify-self: end; text-align: right; }
.topic-chip { display: inline-block; background: var(--paper); border: 1px solid var(--line); padding: 2px 9px; font-size: 0.85rem; color: var(--ink); text-decoration: none; }
a.topic-chip:hover { border-color: var(--magenta); color: var(--magenta); }
.read-more { font-weight: 600; }
.blog-foot { padding: 40px 0 80px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

/* blog post */
.post-wrap { padding-top: 28px; padding-bottom: 72px; }
.post-header { max-width: 760px; margin-bottom: 28px; }
.post-header h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: 0.95rem; margin-top: 18px; align-items: center; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.post-body { background: var(--paper); border: 1px solid var(--line); padding: 44px 52px; min-width: 0; }
.post-body > * { max-width: 68ch; }
.post-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 1.8em 0 0.5em; }
.post-body h3 { margin: 1.5em 0 0.4em; }
.post-body > :first-child { margin-top: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.post-body li { margin-bottom: 0.35em; }
.post-body li::marker { color: var(--magenta); }
.post-body pre { max-width: none; background: var(--ink); color: #e6ebf2; padding: 18px; overflow-x: auto; border-radius: 2px; font-size: 0.84rem; line-height: 1.6; margin: 0 0 1.4em; }
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body code { background: var(--table); padding: 1px 5px; border-radius: 2px; }
.post-body p code, .post-body li code, .post-body td code, .doc p code, .doc li code { overflow-wrap: anywhere; }
.post-body blockquote { margin: 0 0 1.2em; padding: 12px 18px; border-left: 4px solid var(--magenta); background: var(--tint); }
.post-body blockquote p:last-child { margin: 0; }
.post-body table { border-collapse: collapse; width: 100%; max-width: none; font-size: 0.93rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.post-body th { border-bottom: 2px solid var(--ink); }
.post-body img { max-width: 100%; height: auto; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.toc { position: sticky; top: calc(var(--head-h) + 16px); font-size: 0.93rem; }
.toc h2 { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 2px; }
.toc a { color: var(--ink); text-decoration: none; display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--magenta); }
.toc a[aria-current] { border-left-color: var(--magenta); color: var(--magenta); font-weight: 600; }
.post-cta { background: var(--paper); padding: 30px 32px; margin-top: 40px; display: grid; gap: 6px; max-width: none; border: 1px solid var(--line); }
.post-cta h2 { margin: 0 0 4px; font-size: 1.45rem; }
.post-cta p { margin: 0 0 12px; color: var(--ink-2); }
.post-cta .cta-row { margin: 0; }
.side-cta { border-top: 2px solid var(--ink); padding-top: 14px; }
.side-cta p { color: var(--ink-2); margin-bottom: 10px; }
.more-posts { margin-top: 56px; }
.more-posts h2 { font-size: 1.5rem; }

/* docs: three columns (pages, article, contents) */
.docs-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr) 200px; gap: 40px; padding-top: 20px; padding-bottom: 80px; align-items: start; }
.wrap.docs-shell, .docs-body .site-head .wrap { max-width: 1380px; }
.docs-shell.no-toc { grid-template-columns: 236px minmax(0, 1fr); }
.docs-shell.no-toc .docs-toc { display: none; }
.docs-side { position: sticky; top: calc(var(--head-h) + 12px); max-height: calc(100vh - var(--head-h) - 24px); overflow-y: auto; padding-bottom: 24px; }
.docs-search { position: relative; margin-bottom: 18px; }
.docs-search input { width: 100%; font: 400 0.95rem var(--sans); padding: 9px 34px 9px 12px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); }
.docs-kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 500 0.75rem var(--mono); color: var(--ink-2); border: 1px solid var(--line); padding: 0 5px; background: var(--table); }
.docs-search input:focus + .docs-kbd { display: none; }
.docs-results { position: absolute; z-index: 30; left: 0; top: calc(100% + 4px); width: min(420px, calc(100vw - 32px)); background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 16px 40px -20px rgba(24, 32, 43, 0.5); max-height: 70vh; overflow-y: auto; }
.docs-results a { display: grid; gap: 2px; padding: 10px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.docs-results a:hover, .docs-results a[aria-selected='true'] { background: var(--tint); }
.docs-results .sr-sub { font-size: 0.82rem; color: var(--ink-2); }
.docs-results .sr-text { font-size: 0.85rem; color: var(--ink-2); }
.docs-results mark { background: none; color: var(--magenta); font-weight: 600; }
.docs-results .sr-none { margin: 0; padding: 12px; color: var(--ink-2); font-size: 0.92rem; }
.docs-menu-btn { display: none; }
.docs-nav-group { margin-bottom: 16px; }
.docs-nav-h { margin: 0 0 4px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; color: var(--ink); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); font-size: 0.95rem; }
.docs-nav a:hover { color: var(--magenta); border-left-color: var(--magenta); }
.docs-nav a[aria-current] { color: var(--magenta); border-left-color: var(--magenta); font-weight: 600; background: linear-gradient(90deg, var(--tint), transparent); }
.docs-main { min-width: 0; }
.docs-article { background: var(--paper); border: 1px solid var(--line); padding: 40px 48px; }
.docs-article > * { max-width: 72ch; }
.docs-article > .code-group, .docs-article > .pre-wrap, .docs-article > pre, .docs-article > table, .docs-article > .pg { max-width: none; }
.docs-article h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.docs-article h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 1.9em 0 0.5em; padding-top: 0.2em; }
.docs-article h3 { margin: 1.5em 0 0.4em; }
.docs-article .lede { margin-bottom: 1.6em; max-width: 60ch; }
.docs-article p code, .docs-article li code, .docs-article td code { background: var(--table); padding: 1px 5px; border-radius: 2px; overflow-wrap: anywhere; }
.docs-article ul, .docs-article ol { padding-left: 1.3em; }
.docs-article li { margin-bottom: 0.35em; }
.docs-article li::marker { color: var(--magenta); }
.docs-article table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.docs-article th, .docs-article td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.docs-article th { border-bottom: 2px solid var(--ink); white-space: nowrap; }
.docs-article td:first-child code { white-space: nowrap; }
.docs-article pre { background: var(--ink); color: #e6ebf2; padding: 16px; overflow-x: auto; border-radius: 2px; font-size: 0.84rem; line-height: 1.6; margin: 0 0 1.4em; }
.docs-article pre code { background: none; padding: 0; font-size: inherit; }
.docs-article .pre-wrap { margin: 0 0 1.4em; }
.docs-article .pre-wrap > pre { margin: 0; }
.h-anchor { margin-left: 0.4em; color: var(--line); text-decoration: none; font-weight: 400; opacity: 0; }
h2:hover > .h-anchor, h3:hover > .h-anchor, .h-anchor:focus { opacity: 1; color: var(--magenta); }
.code-group { margin: 0 0 1.4em; }
.code-group-tabs { display: flex; flex-wrap: wrap; background: #222b38; border-radius: 2px 2px 0 0; }
.code-group-tabs button { background: transparent; border: 0; color: #aab4c3; font: 500 0.85rem var(--mono); padding: 9px 14px; cursor: pointer; }
.code-group-tabs button[aria-selected='true'] { color: #fff; box-shadow: inset 0 -2px 0 var(--magenta); }
.code-group-tabs button:hover { color: #fff; }
.code-group.tabbed .pre-wrap, .code-group.tabbed > pre { margin: 0; }
.code-group.tabbed pre { border-radius: 0 0 2px 2px; }
.code-group:not(.tabbed) pre[data-tab]::before { content: attr(data-tab); display: block; color: #aab4c3; font-size: 0.78rem; margin-bottom: 8px; }
.callout { border-left: 4px solid var(--link); background: #eef6fa; padding: 12px 16px; margin: 0 0 1.4em; }
.callout.tip { border-left-color: var(--ok); background: #eef8f1; }
.callout.warning { border-left-color: var(--magenta); background: var(--tint); }
.callout p { margin: 0 0 0.5em; }
.callout p:last-child { margin-bottom: 0; }
.callout-h { font-weight: 600; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: none; }
.pager a { display: grid; gap: 2px; border: 1px solid var(--line); padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a span { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); }
.pager a:hover { border-color: var(--magenta); color: var(--magenta); }
.pager-next { text-align: right; }
.docs-help { margin-top: 28px; font-size: 0.93rem; color: var(--ink-2); }
.docs-toc { position: sticky; top: calc(var(--head-h) + 16px); font-size: 0.9rem; }

/* playground */
.pg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; margin: 8px 0 24px; container-type: inline-size; }
@media (max-width: 1100px) { .pg { grid-template-columns: minmax(0, 1fr); } .pg-out { position: static; } }
.pg-form { display: grid; gap: 16px; }
.pg-row { display: grid; gap: 6px; }
.pg-row > label, .pg-label { font-weight: 600; }
.pg-row input[type='text'], .pg-row input[type='password'] { font: 400 0.95rem var(--mono); padding: 9px 10px; border: 2px solid var(--ink); border-radius: 2px; width: 100%; }
.pg-key { display: flex; gap: 8px; }
.pg-key input { flex: 1; min-width: 0; width: auto !important; }
.pg-hint { margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.pg-set { border: 1px solid var(--line); padding: 12px 14px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.pg-set[hidden] { display: none; }
.pg-set legend { font-weight: 600; padding: 0 6px; font-size: 0.92rem; }
.pg-set label { display: grid; gap: 4px; font-size: 0.88rem; color: var(--ink-2); }
.pg-set input[type='number'], .pg-set input[type='text'], .pg-set select { font: 400 0.92rem var(--sans); padding: 6px 8px; border: 1px solid var(--ink-2); border-radius: 2px; background: #fff; color: var(--ink); width: 9.5em; }
.pg-set label.pg-check { display: flex; align-items: center; gap: 6px; color: var(--ink); padding-bottom: 6px; }
.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pg-note { font-size: 0.88rem; color: var(--ink-2); }
.pg-out { display: grid; gap: 16px; position: sticky; top: calc(var(--head-h) + 16px); }
.pg-out .code pre { max-height: 320px; }
.pg-result { border: 1px solid var(--line); background: var(--table); padding: 14px; min-height: 160px; display: grid; gap: 12px; align-content: start; }
.pg-result .spinner { justify-self: center; margin-top: 40px; }
.pg-headers { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: var(--paper); display: table !important; }
.pg-headers td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.pg-view img { max-width: 100%; display: block; background: #fff; box-shadow: 0 10px 26px -18px rgba(24, 32, 43, 0.5); }
.pg-view iframe { width: 100%; height: 460px; border: 0; background: #fff; }
.pg-json { max-height: 420px; overflow: auto; margin: 0 !important; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 1200px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 900px) {
  .docs-shell, .docs-shell.no-toc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .docs-side { position: static; max-height: none; overflow: visible; padding-bottom: 0; }
  .js .docs-menu-btn { display: flex; width: 100%; justify-content: space-between; align-items: center; font: 600 0.95rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; cursor: pointer; text-align: left; }
  .js .docs-menu-btn::after { content: '+'; color: var(--magenta); font-size: 1.2rem; }
  .js .docs-menu-btn[aria-expanded='true']::after { content: '\2212'; }
  .js .docs-nav { display: none; background: var(--paper); border: 1px solid var(--line); border-top: 0; padding: 12px 12px 4px; }
  .js .docs-nav.open { display: block; }
  .docs-article { padding: 26px 20px; }
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg-out { position: static; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
}

@media (max-width: 960px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .toc ol { grid-auto-flow: row; }
  .side-cta { display: none; }
}
@media (max-width: 900px) {
  .hero, .split, .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .diy { grid-template-columns: minmax(0, 1fr); }
  .diy > div:not(:nth-child(3n + 1)), .diy.two > div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .diy.two { grid-template-columns: minmax(0, 1fr); }
  .use + .use { border-left: 0; border-top: 1px solid var(--line); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
  .launch { grid-template-columns: 1fr; }
  .assure { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; max-height: none; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .doc-nav-h { display: none; }
  .doc-nav a { white-space: nowrap; border-left: 0; padding: 6px 10px; background: var(--paper); border: 1px solid var(--line); }
  .doc article, .prose, .post-body { padding: 26px 20px; }
  .grid2 { grid-template-columns: 1fr; }
  footer.foot .wrap { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .post-row .topic { justify-self: start; text-align: left; order: -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-dash-wide { display: none; }
  .top { gap: 12px; flex-wrap: wrap; }
  .head-actions { margin-left: auto; gap: 10px; }
  /* without JS the links simply wrap below the logo */
  .main-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
  .main-nav .nav-dash { display: inline-block; }
  html:not(.js) .menu-btn { display: none; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: grid; gap: 0; padding: 4px 0 14px; }
  .js .main-nav.open a { padding: 12px 4px; border-top: 1px solid var(--line); font-size: 1.05rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section.band { padding: 56px 0; }
  .hero { padding-bottom: 56px; }
  .url-row { flex-direction: column; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan .fit { min-height: 0; }
  .demo { padding: 16px; }
  .proof { padding: 14px; min-height: 220px; }
  .opt { display: none; }
  .opt-inline { display: inline; }
  table.cmp th, table.cmp td { padding: 10px 8px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-actions .btn.sm { padding: 6px 10px; font-size: 0.9rem; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .menu-btn { padding: 8px 10px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } .site-head { transition: none; } }
