:root {
  --bg: #EEF2F5; --surface: #FFFFFF; --sunk: #E3E9EF; --ink: #0D1B2A; --muted: #56677A; --line: #CCD6E0;
  --accent: #E0521F; --accent-soft: #FBE3D8; --code-bg: #0F1B28; --code-ink: #D8E2EC;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #0A1119; --surface: #111B26; --sunk: #0D1620; --ink: #E7EEF5; --muted: #93A4B7;
    --line: #223244; --accent: #FF7442; --accent-soft: #3A1D12; --code-bg: #070D14; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
code { font: 0.86em var(--mono); background: var(--sunk); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre code { background: none; padding: 0; font-size: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }
.top { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 26px var(--display); }
.brand svg { width: 26px; height: 26px; }
.pill { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.spacer { margin-left: auto; }
.toplink { font-weight: 600; text-decoration: none; }
.navtoggle { display: none; font: 600 14px var(--body); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink); }
/* Site menu in the header: Product (a <details> dropdown), Free tools, Pricing, Docs, Examples & benchmarks. */
.sitenav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.sitenav > a, .sitenav summary { padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.sitenav > a:hover, .sitenav summary:hover { background: var(--sunk); }
.sitenav > a[aria-current] { color: var(--accent); }
.sitenav .dd { position: relative; }
.sitenav summary { cursor: pointer; list-style: none; }
.sitenav summary::-webkit-details-marker { display: none; }
.sitenav summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.sitenav details[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; min-width: 190px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(13, 27, 42, .12); }
.dd-menu a { padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dd-menu a:hover { background: var(--sunk); }
.btn { display: inline-block; padding: 7px 14px; border-radius: 8px; background: var(--accent); color: #FFFFFF; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
@media (max-width: 1100px) { .top .pill { display: none; } .sitenav { margin-left: 4px; } .sitenav > a, .sitenav summary { padding-inline: 7px; } }
@media (max-width: 900px) { .sitenav, .top .signin { display: none; } }
@media (max-width: 400px) { .top .wrap { gap: 6px; } .brand { font-size: 21px; gap: 7px; } .btn { padding: 6px 9px; font-size: 13px; } .navtoggle { padding: 5px 9px; font-size: 13px; } }
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding-block: 32px 72px; }
/* Sidebar: the search box, then the task sections. */
.docside { position: sticky; top: 84px; z-index: 4; align-self: start; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 100px); }
.docnav { overflow: auto; min-height: 0; }
.docnav ul { list-style: none; margin: 0; padding: 0; }
.docnav .navsec + .navsec { margin-top: 14px; }
.navhead { margin: 0 0 4px; padding: 0 10px; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.docnav li a { display: block; padding: 4px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.docnav .navgroup ul a { font-size: 14px; color: var(--muted); padding-left: 22px; }
.docnav summary { padding: 4px 10px; border-radius: 6px; font-size: 15px; font-weight: 400; }
.docnav summary:hover { background: var(--sunk); }
.docnav .count { font: 12px var(--mono); color: var(--muted); }
.docnav details { margin: 0; }
.docnav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.docnav a.here { color: var(--ink); font-weight: 600; }
.docnav a:hover { background: var(--sunk); }
.docnav .navsite { display: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .navtoggle { display: inline-block; }
  .docside { position: static; max-height: none; gap: 12px; }
  .docnav { display: none; overflow: visible; }
  .docnav.open { display: block; }
  .docnav .navsite { display: block; }
}
/* Docs search (public/docs/docs.js): hidden without JavaScript. */
.docsearch { position: relative; }
.docsearch input { width: 100%; font: 15px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 34px 8px 12px; }
.docsearch input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.docsearch input::-webkit-search-cancel-button { display: none; }
.docsearch kbd { position: absolute; right: 9px; top: 8px; font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; pointer-events: none; }
.docsearch input:focus ~ kbd, .docsearch input:not(:placeholder-shown) ~ kbd { display: none; }
.docsearch-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; width: min(600px, calc(100vw - 300px)); max-height: min(70vh, 640px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(13, 27, 42, .16); }
.docsearch-pop ul { list-style: none; margin: 0; padding: 6px; }
.docsearch-pop li a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.docsearch-pop li[aria-selected="true"] a { background: var(--sunk); box-shadow: inset 3px 0 0 var(--accent); }
.r-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.r-head { font-size: 13.5px; color: var(--accent); }
.r-head::before { content: "§ "; color: var(--muted); }
.r-text { font-size: 13.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.r-text mark { background: var(--accent-soft); color: var(--ink); border-radius: 2px; padding: 0 1px; }
.docsearch-note { margin: 0; padding: 8px 14px; font-size: 13px; color: var(--muted); }
.docsearch-note:empty { display: none; }
.docsearch-pop ul:not(:empty) + .docsearch-note { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .docsearch input { font-size: 16px; } /* no zoom-on-focus on iOS */
  .docsearch-pop { position: static; width: auto; max-height: 60vh; margin-top: 6px; }
}
@media (hover: none) { .docsearch kbd { display: none; } }
.content { min-width: 0; }
.content > * { max-width: 900px; }
.content > .table-scroll, .content > .wizard-host, .content > .codetabs, .content section > .codetabs { max-width: none; }
h1 { font: 900 clamp(38px, 5vw, 56px)/0.95 var(--display); text-transform: uppercase; margin: 0 0 16px; overflow-wrap: break-word; }
h2 { font: 800 28px/1.1 var(--display); text-transform: uppercase; margin: 44px 0 12px; letter-spacing: .01em; }
.eyebrow { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.steps li { margin: 6px 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 8px; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cards a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; height: 100%; }
.cards a:hover { border-color: var(--accent); }
.cards span { color: var(--muted); font-size: 14px; }
.facts { display: grid; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
tbody tr:last-child td { border-bottom: 0; }
td small, th small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
table.price-matrix th[scope=row], table.price-compare th[scope=row] { font: 600 14.5px var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); background: none; text-align: left; white-space: nowrap; }
table.price-matrix th[scope=row] small { font-family: var(--body); letter-spacing: 0; text-transform: none; }
table.price-matrix .num { text-align: right; font-variant-numeric: tabular-nums; }
table.price-matrix small { white-space: nowrap; }
td p { margin: 0 0 6px; }
table.options td:first-child { white-space: nowrap; }
table.options code.type { background: none; padding: 0; color: var(--muted); }
table.options .ex { font-size: 13px; color: var(--muted); }
.vers { display: flex; flex-wrap: wrap; gap: 6px; }
.v { font: 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); white-space: nowrap; }
.v b { font-weight: 500; color: var(--muted); margin-right: 4px; }
.v.main { background: var(--accent-soft); }
pre.snippet { background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 14px 16px; overflow: auto; font: 13px/1.6 var(--mono); }
.codetabs { border-radius: 12px; overflow: hidden; background: var(--code-bg); margin: 14px 0; }
.codetabs .tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid rgba(216, 226, 236, .12); }
.codetabs .tabs button { font: 600 13px var(--body); background: none; border: 0; color: #93A4B7; padding: 7px 12px; border-radius: 8px 8px 0 0; cursor: pointer; }
.codetabs .tabs button[aria-selected="true"] { color: #FFFFFF; background: rgba(216, 226, 236, .1); }
.codetabs .tabs .copy { margin-left: auto; border: 1px solid rgba(216, 226, 236, .2); border-radius: 6px; margin-bottom: 6px; padding: 3px 10px; }
.codetabs pre { margin: 0; padding: 16px; overflow: auto; color: var(--code-ink); font: 12.5px/1.6 var(--mono); max-height: 620px; }
.codetabs-title { color: #93A4B7; font-size: 13px; padding: 8px 14px 0; }
details { margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
section, main h2[id], main h3[id] { scroll-margin-top: 80px; }
[id^="opt-"] { scroll-margin-top: 80px; }
footer { border-top: 1px solid var(--line); padding-block: 22px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
table.price-vs tr.ours th, table.price-vs tr.ours td { background: var(--accent-soft, rgba(224,82,31,.1)); }
table.price-vs td small { white-space: normal; }
.price-foot { color: var(--muted); font-size: 13px; }

/* Cases (/docs/cases) */
.case-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.case-card a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.case-card a:hover { border-color: var(--accent); }
.case-card b { font-size: 18px; line-height: 1.3; }
.case-sum { color: var(--muted); }
.case-meta, .case-browsers { font: 500 12.5px var(--mono); color: var(--muted); }
.case-n { color: var(--accent); font-weight: 700; }
.case-for { font-size: 12.5px; color: var(--muted); }
.case-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.case-filter input { position: absolute; opacity: 0; pointer-events: none; }
.case-filter label { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; cursor: pointer; }
.case-filter input:checked + label { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.case-filter input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
body:has(#aud-scraping:checked) .case-card:not([data-aud~="scraping"]) { display: none; }
body:has(#aud-agents:checked) .case-card:not([data-aud~="agents"]) { display: none; }
body:has(#aud-testing:checked) .case-card:not([data-aud~="testing"]) { display: none; }
body:has(#aud-geo:checked) .case-card:not([data-aud~="geo"]) { display: none; }
body:has(#aud-monitoring:checked) .case-card:not([data-aud~="monitoring"]) { display: none; }
body:has(#aud-llm-data:checked) .case-card:not([data-aud~="llm-data"]) { display: none; }
.diff { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.diff-hard { color: var(--accent); border-color: var(--accent); }
.crumbs { font: 500 13px var(--mono); color: var(--muted); margin: 0 0 8px; }
.chip { display: inline-block; padding: 2px 9px; margin: 0 4px 4px 0; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); font-size: 13px; color: var(--ink); text-decoration: none; }
a.chip:hover { border-color: var(--accent); }
.verified { font-size: 14px; color: var(--muted); }
.verified span { margin-right: 10px; white-space: nowrap; }
.verified .ok { color: #1f8a5b; font-weight: 600; }
.verified .no { color: var(--accent); font-weight: 600; }
.env { margin: 8px 0 16px; }
table.case-result { min-width: 620px; }
table.case-result td { font-size: 13.5px; word-break: break-word; }
table.case-used td:first-child { white-space: nowrap; }
details.raw { margin: 12px 0; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.raw pre { max-height: 420px; overflow: auto; }
.takeaways li { margin-bottom: 8px; }
.case-pager { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.case-pager a { max-width: 48%; }
@media (max-width: 640px) { table.case-used td:first-child { white-space: normal; } .case-pager { flex-direction: column; } .case-pager a { max-width: none; } }

/* compare pages */
table.cmp th[scope="row"] { text-align: left; font-weight: 600; white-space: normal; min-width: 150px; }
table.cmp-service { min-width: 720px; }
table.cmp-service td { vertical-align: top; font-size: 14px; }
table.cmp-measured { min-width: 640px; }
table.cmp-measured td { font: 500 13px var(--mono); word-break: break-word; }
table.cmp tr.differs td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.verdict > div { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 8px; background: var(--surface); }
.verdict h3 { margin: 12px 0 4px; }
.sources { font-size: 14px; color: var(--muted); }

/* Quickstart (/docs/quickstart): the AI-assistant shortcut and the SDK / Playwright-only switch (CSS-only radios). */
.qs-ai { border: 1px solid var(--accent); border-left-width: 4px; border-radius: 10px; background: var(--accent-soft); padding: 2px 18px; margin: 8px 0 8px; }
.qs-paths { margin: 20px 0 0; }
.qs-paths > input { position: absolute; opacity: 0; pointer-events: none; }
.qs-paths > label { display: inline-block; padding: 6px 14px; margin: 0 4px 8px 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; }
.qs-paths > input:checked + label { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.qs-paths > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.qs-path { display: none; }
.qs-paths:has(#qs-sdk:checked) .qs-path-sdk, .qs-paths:has(#qs-plain:checked) .qs-path-plain { display: block; }
/* Headings for screen readers and the Markdown version; the switch above already names the path. */
.qs-path-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Examples & benchmarks (/docs/cases): kind labels, the curated groups and the kind filter. */
.cases-kind { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.cases-kind-benchmark { color: var(--ink); background: var(--sunk); }
.cases-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cases-group { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px 18px 10px; }
.cases-group h3 { margin: 12px 0 6px; }
.cases-group ul { margin: 0; padding-left: 18px; }
.cases-group li { margin: 6px 0; line-height: 1.4; }
.cases-group .cases-kind { font-size: 10.5px; }
.cases-kind-filter { margin-top: 8px; }
.cases-index:has(#kind-example:checked) .case-card:has([data-kind="benchmark"]),
.cases-index:has(#kind-benchmark:checked) .case-card:has([data-kind="example"]) { display: none; }
.cases-bench-note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
