@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/seo/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/seo/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/seo/fonts/jetbrains-mono-cyrillic-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/seo/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;
  --canvas: #f4f3ee;
  --surface: #fbfaf7;
  --surface-bright: #fff;
  --ink: #141519;
  --ink-soft: #292c33;
  --muted: #6e737e;
  --muted-light: #979ca5;
  --line: rgb(20 21 25 / 11%);
  --line-strong: rgb(20 21 25 / 20%);
  --blue: #2f61f6;
  --blue-bright: #4775ff;
  --blue-soft: #eaf0ff;
  --green: #56df90;
  --hero: #12151a;
  --hero-raised: #191d24;
  --hero-line: rgb(255 255 255 / 10%);
  --code: #0d1117;
  --code-line: #2a3039;
  --page: min(1380px, calc(100vw - 48px));
  --docs: min(1180px, calc(100vw - 48px));
  --sans: 'Manrope Variable', Manrope, system-ui, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 5%, rgb(70 112 255 / 8%), transparent 25rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
h1, h2, h3, p, dl, ol { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 104px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid rgb(47 97 246 / 32%); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}
.skip-link:focus-visible { top: 12px; }

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}
.header-inner {
  width: min(1380px, calc(100% - 32px));
  min-height: 62px;
  margin-inline: auto;
  padding: 9px 10px 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgb(20 21 25 / 9%);
  border-radius: 18px;
  background: rgb(251 250 247 / 96%);
  box-shadow: 0 14px 44px rgb(20 21 25 / 8%);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 770;
  letter-spacing: -.045em;
}
.wordmark-context {
  margin-left: 2px;
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 680;
  letter-spacing: -.02em;
}
.wordmark-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent url('/keydealer-mark.png') center / contain no-repeat;
  color: transparent;
  font-size: 0;
  font-weight: 800;
}
.main-nav, .header-actions { display: flex; align-items: center; gap: 4px; }
.main-nav a, .header-login {
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 640;
  transition: color 160ms ease, background-color 160ms ease;
}
.main-nav a:hover, .header-login:hover { color: var(--ink); background: rgb(20 21 25 / 4.5%); }
.main-nav a[aria-current='page'] { color: var(--ink); background: rgb(20 21 25 / 5.5%); }

.button {
  min-height: 50px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 720;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 30px rgb(47 97 246 / 27%); }
.button-primary:hover { transform: translateY(-1px); background: var(--blue-bright); }
.button-ghost { border-color: rgb(255 255 255 / 16%); background: rgb(255 255 255 / 5%); color: #e6e8ed; }
.button-ghost:hover { border-color: rgb(255 255 255 / 28%); background: rgb(255 255 255 / 9%); }
.button-small { min-height: 42px; padding-inline: 17px; border-radius: 12px; font-size: 13px; }

main { padding-top: 112px; }
.api-breadcrumbs {
  width: var(--page);
  margin: 18px auto 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 620;
}
.api-breadcrumbs a { color: var(--muted); }
.api-breadcrumbs a:hover { color: var(--ink); }
.api-breadcrumbs span[aria-current='page'] { color: var(--ink-soft); }

/* The first screen is a product surface, not a documentation dashboard. */
.api-workbench {
  position: relative;
  isolation: isolate;
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 30px;
  background: var(--hero);
  color: #f7f8fb;
  box-shadow: 0 30px 90px rgb(20 21 25 / 20%);
}
.api-workbench::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgb(47 97 246 / 24%), transparent 31rem),
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  pointer-events: none;
}
.workbench-main {
  min-width: 0;
  padding: 58px 58px 46px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hero-line);
}
.hero-status {
  margin-bottom: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8d94a0;
  font: 650 9px/1 var(--mono);
  letter-spacing: .09em;
}
.hero-status span { display: inline-flex; align-items: center; gap: 8px; }
.hero-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgb(86 223 144 / 75%);
}
.eyebrow {
  margin-bottom: 17px;
  color: #7ea1ff;
  font: 700 10px/1.4 var(--mono);
  letter-spacing: .09em;
}
.workbench-main h1 {
  max-width: 700px;
  margin-bottom: 25px;
  color: #fff;
  font-size: clamp(52px, 3.8vw, 60px);
  font-weight: 690;
  line-height: .91;
  letter-spacing: -.064em;
}
.lead {
  max-width: 610px;
  margin-bottom: 32px;
  color: #b0b5bf;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quickstart-steps {
  margin: auto 0 0;
  padding: 46px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.quickstart-steps li {
  min-width: 0;
  padding: 0 18px;
  border-left: 1px solid var(--hero-line);
}
.quickstart-steps li:first-child { padding-left: 0; border-left: 0; }
.quickstart-steps li > span { display: block; margin-bottom: 12px; color: #6f94ff; font: 700 9px/1 var(--mono); }
.quickstart-steps b { color: #f1f3f7; font-size: 12px; }
.quickstart-steps p { margin: 5px 0 0; color: #7f8792; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.quickstart-steps code { color: #aab8db; font-size: 9px; }

.hero-console {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, rgb(255 255 255 / 5%), transparent 58%);
}
.console-chrome {
  min-height: 42px;
  margin: -2px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #747c88;
  font: 600 9px/1 var(--mono);
}
.console-chrome > div { display: flex; align-items: center; gap: 7px; }
.console-chrome i { width: 7px; height: 7px; border-radius: 50%; background: #404650; }
.console-chrome i:first-child { background: #ff6b67; }
.console-chrome i:nth-child(2) { background: #f6bd4a; }
.console-chrome i:nth-child(3) { margin-right: 8px; background: #53ca72; }
.console-chrome code { color: #858d99; font-size: 9px; }
.quickstart-heading { margin-bottom: 18px; }
.quickstart-heading span { color: #6f94ff; font: 700 9px/1 var(--mono); letter-spacing: .09em; }
.quickstart-heading h2 { margin: 8px 0 0; color: #f8f9fb; font-size: 24px; font-weight: 660; letter-spacing: -.035em; }
.model-control { margin-bottom: 16px; }
.model-control label { display: block; margin-bottom: 8px; color: #7f8792; font: 600 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.model-picker {
  min-height: 48px;
  padding: 5px 7px 5px 12px;
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(250px, 1.2fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hero-line);
  border-radius: 12px;
  background: rgb(0 0 0 / 18%);
}
.model-control select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 32px 0 10px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 9px;
  background: #20252d;
  color: #f0f2f6;
  font-size: 11px;
  font-weight: 640;
}
.selected-price { margin: 0; color: #8da9ff; font: 620 9px/1.45 var(--mono); text-align: right; }
.code-workbench {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: 16px;
  background: var(--code);
  color: #edf2f5;
  box-shadow: 0 22px 54px rgb(0 0 0 / 28%);
}
.tabs {
  min-height: 50px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--code-line);
  background: rgb(255 255 255 / 2%);
}
.tabs button {
  padding: 0 17px;
  border: 0;
  border-right: 1px solid var(--code-line);
  background: transparent;
  color: #7e8792;
  font: 600 10px/1 var(--mono);
}
.tabs button[aria-selected='true'] { background: #171c23; color: #fff; box-shadow: inset 0 -2px var(--blue-bright); }
.tabs .copy-button { margin-left: auto; border-right: 0; border-left: 1px solid var(--code-line); color: #8da9ff; }
.tabs .copy-button[data-copied='true'] { color: var(--green); }
.code-workbench pre {
  min-height: 320px;
  margin: 0;
  padding: 27px;
  overflow: auto;
  color: #e8edf1;
  font-size: 11px;
  line-height: 1.75;
  tab-size: 2;
}
[data-model-code] { color: #8eaeff; }
.console-status {
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--code-line);
  color: #69737e;
  font: 600 9px/1 var(--mono);
  letter-spacing: .06em;
}
.console-status span { display: flex; align-items: center; gap: 7px; color: var(--green); }
.console-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgb(86 223 144 / 65%); }
.console-status code { font-size: 9px; }

.workbench-rail {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0 34px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  border-top: 1px solid var(--hero-line);
  background: rgb(7 9 12 / 55%);
}
.rail-kicker {
  margin: 0;
  padding: 25px 24px 25px 0;
  display: flex;
  align-items: center;
  color: #626a76;
  font: 650 9px/1.3 var(--mono);
  letter-spacing: .08em;
}
.connection-facts { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.connection-facts > div { min-width: 0; padding: 20px 20px; border-left: 1px solid var(--hero-line); }
.connection-facts dt { margin-bottom: 7px; color: #646c77; font: 600 8px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.connection-facts dd { margin: 0; color: #aeb4bd; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.connection-facts dd code { color: #d9dde3; font-size: 9px; }
.connection-facts strong { color: #fff; font-size: 14px; font-weight: 720; }

/* Documentation stays calm and readable below the product surface. */
.docs-layout {
  width: var(--docs);
  margin: 116px auto 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 74px;
  align-items: start;
}
.workbench-nav { position: sticky; top: 108px; padding: 9px 0; }
.workbench-nav > p, .section-number {
  margin-bottom: 21px;
  color: var(--muted-light);
  font: 650 9px/1.3 var(--mono);
  letter-spacing: .09em;
}
.workbench-nav a {
  min-height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 2px solid transparent;
  color: #777c86;
  font-size: 12px;
  font-weight: 620;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.workbench-nav a span { width: 22px; color: #a4a8b0; font: 600 8px/1 var(--mono); }
.workbench-nav a:hover { color: var(--ink); background: rgb(255 255 255 / 46%); }
.workbench-nav a[aria-current='location'] { border-left-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.workbench-nav a[aria-current='location'] span { color: var(--blue); }
.docs-content { min-width: 0; }
.doc-section {
  width: 100%;
  margin: 0;
  padding: 0 0 112px;
  border-bottom: 1px solid var(--line);
}
.doc-section + .doc-section { padding-top: 112px; }
.section-number { margin-bottom: 28px; color: var(--blue); }
.doc-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
  gap: 52px;
  align-items: end;
}
.doc-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 680;
  line-height: .96;
  letter-spacing: -.052em;
}
.doc-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.66; }

.compatibility-list, .security-list { margin: 0; border-top: 1px solid var(--line-strong); }
.compatibility-list > div, .security-list > div {
  padding: 23px 0;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 34px;
  border-bottom: 1px solid var(--line);
}
.compatibility-list dt, .security-list dt { font: 650 10px/1.5 var(--mono); }
.compatibility-list dd, .security-list dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }
.compatibility-list code { color: var(--ink); font-size: 11px; }

.endpoint-list { border-top: 1px solid var(--line-strong); }
.endpoint-list > div {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.endpoint-list code { font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.endpoint-list span { color: var(--muted); font-size: 13px; }
.endpoint-list b { color: #258b55; font: 700 8px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }

.model-family { margin-top: 48px; }
.family-head { margin-bottom: 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.family-head h3 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.035em; }
.family-head span { color: var(--muted-light); font: 600 9px/1 var(--mono); }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line-strong); }
table { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 18px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted-light); font: 650 8px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
th:first-child, td:first-child { width: 29%; padding-left: 0; }
th:nth-child(2), td:nth-child(2) { width: 43%; }
th:last-child, td:last-child { width: 28%; }
td { color: var(--muted); font-size: 13px; }
td code { color: var(--ink); font-size: 10px; font-weight: 650; }
td small { display: block; margin-top: 4px; color: var(--muted-light); font-size: 10px; }
td.price { color: var(--ink); font: 600 10px/1.65 var(--mono); white-space: nowrap; }
td.price span { color: var(--muted-light); }
.catalog-note { margin: 27px 0 0; color: var(--muted-light); font-size: 12px; }

.billing-flow {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.billing-flow li { min-height: 192px; padding: 25px; }
.billing-flow li:first-child { padding-left: 0; }
.billing-flow li + li { border-left: 1px solid var(--line); }
.billing-flow span { display: block; margin-bottom: 48px; color: var(--blue); font: 700 9px/1 var(--mono); }
.billing-flow b { font-size: 15px; }
.billing-flow p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.billing-note { margin: 24px 0 0; padding: 18px 20px; border: 1px solid #ccd8f7; border-radius: 14px; background: var(--blue-soft); color: #34517e; font-size: 13px; }

.error-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.error-list > div { min-height: 112px; padding: 20px 20px 20px 0; display: grid; grid-template-columns: 56px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.error-list > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.error-list dt code { color: var(--blue); font-size: 13px; font-weight: 700; }
.error-list dd { margin: 0; }
.error-list dd b, .error-list dd span { display: block; }
.error-list dd b { margin-bottom: 6px; font-size: 13px; }
.error-list dd span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.streaming-warning { margin-top: 28px; padding: 22px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; border: 1px solid #d8c28f; border-radius: 15px; background: #fff9e9; color: #62440e; }
.streaming-warning > span { font: 700 9px/1.5 var(--mono); letter-spacing: .07em; }
.streaming-warning p { margin: 0; font-size: 13px; line-height: 1.6; }
.streaming-warning p + p { margin-top: 10px; }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 23px 48px 23px 0; list-style: none; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 20px; color: var(--blue); font: 400 21px/1 var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 67ch; margin: 0; padding: 0 48px 23px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.compact-cta {
  width: var(--docs);
  margin: 82px auto;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-radius: 24px;
  background: var(--hero);
  color: #fff;
  box-shadow: 0 22px 62px rgb(20 21 25 / 15%);
}
.compact-cta h2 { max-width: 650px; margin: 0; font-size: clamp(34px, 3.6vw, 50px); font-weight: 680; line-height: .96; letter-spacing: -.052em; }
.compact-cta p:not(.eyebrow) { margin: 13px 0 0; color: #8e949e; font-size: 13px; }
.compact-cta .button { flex: 0 0 auto; }

footer {
  width: var(--page);
  margin: 0 auto;
  padding: 50px 0 35px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  border-top: 1px solid var(--line);
}
footer > div > p { max-width: 420px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a { color: var(--muted); font-size: 12px; }
footer nav a:hover { color: var(--blue); }
footer nav a[aria-current='page'] { color: var(--ink); font-weight: 700; }
.footer-meta { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-light); font: 500 9px/1.5 var(--mono); }

@media (max-width: 1180px) {
  :root { --page: min(980px, calc(100vw - 36px)); --docs: min(940px, calc(100vw - 36px)); }
  .api-workbench { grid-template-columns: 1fr 1fr; }
  .workbench-main { padding: 46px 40px 38px; }
  .hero-status { margin-bottom: 52px; }
  .workbench-main h1 { font-size: clamp(48px, 5.3vw, 62px); }
  .quickstart-steps { grid-template-columns: 1fr; gap: 12px; padding-top: 36px; }
  .quickstart-steps li, .quickstart-steps li:first-child { padding: 0 0 0 14px; border-left: 1px solid var(--hero-line); }
  .quickstart-steps li > span { margin-bottom: 5px; }
  .quickstart-steps p { margin-top: 2px; }
  .hero-console { padding: 20px; }
  .model-picker { grid-template-columns: 1fr; gap: 7px; }
  .selected-price { padding: 0 3px 3px; text-align: left; }
  .connection-facts > div { padding-inline: 14px; }
  .docs-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 900px) {
  .api-workbench { grid-template-columns: 1fr; }
  .workbench-main { min-height: 650px; border-right: 0; border-bottom: 1px solid var(--hero-line); }
  .quickstart-steps { grid-template-columns: repeat(3, 1fr); }
  .quickstart-steps li, .quickstart-steps li:first-child { padding: 0 16px; border-left: 1px solid var(--hero-line); }
  .quickstart-steps li:first-child { padding-left: 0; border-left: 0; }
  .model-picker { grid-template-columns: minmax(190px, .8fr) minmax(230px, 1.2fr); }
  .selected-price { padding: 0; text-align: right; }
  .workbench-rail { grid-template-columns: 1fr; padding: 0 22px; }
  .rail-kicker { padding-bottom: 14px; }
  .connection-facts { border-top: 1px solid var(--hero-line); }
  .connection-facts > div:first-child { border-left: 0; }
  .docs-layout { grid-template-columns: 1fr; gap: 54px; margin-top: 86px; }
  .workbench-nav {
    position: sticky;
    z-index: 20;
    top: 90px;
    margin-inline: -10px;
    padding: 6px 10px;
    display: flex;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgb(244 243 238 / 94%);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }
  .workbench-nav::-webkit-scrollbar { display: none; }
  .workbench-nav > p { display: none; }
  .workbench-nav a { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .workbench-nav a[aria-current='location'] { border-bottom-color: var(--blue); }
}

@media (max-width: 700px) {
  :root { --page: calc(100% - 20px); --docs: calc(100% - 24px); }
  html { scroll-padding-top: 88px; }
  [id] { scroll-margin-top: 88px; }
  .site-header { top: 8px; }
  .header-inner { width: calc(100% - 16px); min-height: 58px; padding: 8px 8px 8px 13px; border-radius: 16px; }
  .wordmark { font-size: 15px; }
  .wordmark-mark { width: 30px; height: 30px; }
  .main-nav, .header-login { display: none; }
  .button-small { min-height: 40px; padding-inline: 13px; font-size: 12px; }
  main { padding-top: 82px; }
  .api-workbench { margin-top: 10px; border-radius: 22px; }
  .api-breadcrumbs { margin-top: 12px; margin-bottom: 10px; font-size: 10px; }
  .workbench-main { min-height: 620px; padding: 30px 20px 28px; }
  .hero-status { margin-bottom: 56px; }
  .workbench-main h1 { margin-bottom: 22px; font-size: clamp(44px, 11.8vw, 50px); line-height: .92; }
  .lead { font-size: 15px; line-height: 1.6; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .quickstart-steps { grid-template-columns: 1fr; gap: 13px; padding-top: 40px; }
  .quickstart-steps li, .quickstart-steps li:first-child { padding: 0 0 0 13px; border-left: 1px solid var(--hero-line); }
  .hero-console { padding: 17px 12px 13px; }
  .console-chrome { margin: 0 4px 25px; }
  .console-chrome code { display: none; }
  .quickstart-heading { margin-inline: 4px; }
  .quickstart-heading h2 { font-size: 21px; }
  .model-control { margin-inline: 4px; }
  .model-picker { grid-template-columns: 1fr; }
  .selected-price { text-align: left; }
  .code-workbench { border-radius: 13px; }
  .tabs button { padding: 0 11px; font-size: 9px; }
  .tabs .copy-button { padding-inline: 9px; }
  .code-workbench pre { min-height: 350px; padding: 21px 16px; font-size: 9.5px; }
  .workbench-rail { padding: 0 16px 10px; }
  .connection-facts { grid-template-columns: 1fr 1fr; }
  .connection-facts > div { padding: 15px 10px; border-left: 0; border-bottom: 1px solid var(--hero-line); }
  .connection-facts > div:nth-child(even) { border-left: 1px solid var(--hero-line); }
  .connection-facts > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .docs-layout { margin-top: 64px; gap: 42px; }
  .workbench-nav { top: 76px; }
  .workbench-nav a span { display: none; }
  .doc-section { padding-bottom: 78px; }
  .doc-section + .doc-section { padding-top: 78px; }
  .section-number { margin-bottom: 18px; }
  .doc-heading { margin-bottom: 34px; grid-template-columns: 1fr; gap: 18px; }
  .doc-heading h2 { font-size: 39px; }
  .compatibility-list > div, .security-list > div { grid-template-columns: 1fr; gap: 7px; padding: 19px 0; }
  .endpoint-list > div { min-height: 76px; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 13px 0; }
  .endpoint-list span { grid-column: 1 / -1; grid-row: 2; }
  .endpoint-list b { grid-column: 2; grid-row: 1; }
  .family-head h3 { font-size: 21px; }
  .billing-flow { grid-template-columns: 1fr; }
  .billing-flow li, .billing-flow li:first-child { min-height: 0; padding: 21px 0; }
  .billing-flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .billing-flow span { margin-bottom: 18px; }
  .error-list { grid-template-columns: 1fr; }
  .error-list > div, .error-list > div:nth-child(even) { min-height: 0; padding: 18px 0; border-left: 0; }
  .streaming-warning { grid-template-columns: 1fr; gap: 9px; padding: 18px; }
  .compact-cta { width: calc(100% - 24px); margin: 50px auto; padding: 26px 20px; align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; }
  footer nav { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
