@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-variable.ttf') format('truetype-variations');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101828;
  --ink-soft: #344054;
  --slate: #667085;
  --paper: #fbfcfe;
  --paper-raised: #ffffff;
  --mist: #f3f5f8;
  --line: #e1e5ea;
  --orange: #f05d3f;
  --orange-soft: #fff6f3;
  --green: #14855f;
  --red: #b42318;
  --code: #071d31;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

[data-theme='dark'] {
  color-scheme: dark;
  --ink: #edf5f7;
  --ink-soft: #d7e7eb;
  --slate: #9eb6c4;
  --paper: #081b2c;
  --paper-raised: #0c2338;
  --mist: #061521;
  --line: #28445a;
  --orange-soft: #392218;
  --code: #04121f;
  --shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(260px, 0.8fr) auto auto;
  align-items: center;
  min-height: 56px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  font-family: var(--sans);
  text-decoration: none;
}

.brand-name {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand-mark {
  display: block;
  width: 46px;
  height: auto;
  flex: 0 0 auto;
}

.topnav {
  display: flex;
  gap: 1.5rem;
  padding-right: 2rem;
  font-family: var(--sans);
}

.topnav a,
.sidebar a,
.outline a {
  text-decoration: none;
}

.topnav a {
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: stretch;
  width: min(100%, 360px);
  min-width: 240px;
  min-height: 40px;
  padding: 0.45rem 0.5rem 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper-raised) 86%, var(--mist));
  color: var(--slate);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 450;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.search-trigger:hover {
  border-color: color-mix(in srgb, var(--slate) 42%, var(--line));
  background: var(--paper-raised);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.search-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.search-trigger kbd {
  display: inline-grid;
  min-width: 42px;
  min-height: 24px;
  margin-left: auto;
  place-items: center;
  font: 500 0.68rem var(--sans);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  background: var(--paper);
  color: var(--slate);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04);
}

.environment {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 1rem;
  color: var(--ink-soft);
  font: 500 0.75rem var(--sans);
  letter-spacing: -0.008em;
  white-space: nowrap;
}

.theme-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle {
  margin-left: 0.5rem;
  font-size: 1.25rem;
}

.menu-toggle {
  display: none;
  font-family: var(--sans);
  font-weight: 500;
}

.docs-tabs {
  position: sticky;
  top: 56px;
  z-index: 19;
  display: flex;
  gap: 1.75rem;
  min-height: 48px;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(12px);
  font-family: var(--sans);
}

.docs-tabs a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--slate);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.docs-tabs a:hover,
.docs-tabs a[aria-current='page'] {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

body[data-route='/'] .docs-tabs {
  display: none;
}

.docs-frame {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 270px);
  width: min(100%, 1880px);
  margin: 0 auto;
  min-height: calc(100vh - 104px);
}

.sidebar,
.outline {
  position: sticky;
  top: 104px;
  align-self: start;
  height: calc(100vh - 104px);
  font-family: var(--sans);
  overflow: auto;
}

.sidebar {
  padding: 2rem 1.5rem 3rem clamp(1rem, 2vw, 2.25rem);
  border-right: 1px solid var(--line);
}

.sidebar section + section {
  margin-top: 1.45rem;
}

.nav-label,
.outline > p {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font: 600 0.78rem var(--sans);
  letter-spacing: -0.01em;
  text-transform: none;
}

.sidebar a {
  display: block;
  margin: 0.18rem -0.55rem;
  padding: 0.32rem 0.55rem;
  color: var(--slate);
  border-left: 2px solid transparent;
  font-size: 0.86rem;
  font-weight: 450;
  letter-spacing: -0.008em;
}

.sidebar a:hover,
.sidebar a[aria-current='page'] {
  color: var(--ink);
  background: var(--mist);
  border-left-color: var(--orange);
  border-radius: 0 6px 6px 0;
}

.outline {
  padding: 2.4rem clamp(1rem, 2vw, 2rem) 2rem 1.5rem;
  border-left: 1px solid var(--line);
}

.outline a,
.outline span {
  display: block;
  margin: 0.45rem 0;
  color: var(--slate);
  font-size: 0.78rem;
  line-height: 1.35;
}

.outline-3 {
  padding-left: 0.75rem;
}

.article {
  min-width: 0;
  padding: 2rem clamp(2rem, 4vw, 4.5rem) 5rem;
}

.gate-banner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.8rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-left: 2px solid var(--orange);
  border-radius: 6px;
  background: var(--mist);
  font-size: 0.8rem;
}

.gate-banner strong {
  font: 600 0.76rem var(--sans);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--orange);
  font: 600 0.72rem var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.article-heading h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.9rem, 2.7vw, 2.55rem);
  font-weight: 600;
}

.lede {
  max-width: 760px;
  margin: 0.85rem 0 0;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.6;
}

.article-tools > p {
  display: none;
}

.page-actions {
  display: grid;
  gap: 0.4rem;
}

.page-actions a,
.page-actions button {
  padding: 0.38rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
  color: var(--slate);
  cursor: pointer;
  font-size: 0.78rem;
  text-align: left;
  text-decoration: none;
}

.article-tools .page-actions a {
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
}

.article-tools .page-actions button {
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.prose {
  max-width: 820px;
}

.prose h1 {
  display: none;
}

.prose h2 {
  margin: 2.9rem 0 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 1.38rem;
}

.prose h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.08rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.42rem;
}

code,
pre,
.request-card,
.price-policy strong,
table td:nth-last-child(-n + 3) {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

p code,
li code,
td code {
  padding: 0.08rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--mist);
  font-size: 0.84em;
}

.code-shell {
  position: relative;
  margin: 1.3rem 0 2rem;
  border: 1px solid #315069;
  border-radius: 10px;
  background: var(--code);
  color: #e5f0f3;
  box-shadow: none;
}

.code-label {
  padding: 0.48rem 0.75rem;
  border-bottom: 1px solid #315069;
  color: #9eb6c4;
  font: 0.68rem var(--mono);
  text-transform: uppercase;
}

.copy-code {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: #c8dbe2;
  cursor: pointer;
  font: 0.68rem var(--mono);
}

pre {
  margin: 0;
  padding: 1.1rem;
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.65;
}

.callout {
  margin: 1.7rem 0;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border-left: 4px solid var(--orange);
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--ink-soft);
  font-style: normal;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.75rem;
}

.table-wrap {
  overflow: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
  white-space: nowrap;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--mist);
  color: var(--slate);
  font: 700 0.65rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 0.25rem;
  color: var(--slate);
  font-family: var(--sans);
}

.status {
  display: inline-block;
  padding: 0.06rem 0.34rem;
  border: 1px solid color-mix(in srgb, var(--green) 50%, var(--line));
  color: var(--green);
  font: 0.62rem var(--mono);
  text-transform: uppercase;
}

.status.preview {
  border-color: var(--orange);
  color: var(--orange);
}

.price-policy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
}

.price-policy span {
  padding: 1rem;
  color: var(--slate);
  font-size: 0.75rem;
}

.price-policy span + span {
  border-left: 1px solid var(--line);
}

.price-policy strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 1rem;
}

.estimator {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.estimator h2 {
  margin: 0;
  font-size: 1.65rem;
}

.estimator p:not(.eyebrow) {
  color: var(--slate);
  font-size: 0.85rem;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.estimator label {
  color: var(--slate);
  font: 0.66rem var(--mono);
  text-transform: uppercase;
}

.estimator label:first-child,
.estimate-result {
  grid-column: 1 / -1;
}

.estimator input,
.estimator select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-raised);
  color: var(--ink);
  font: 0.8rem var(--mono);
}

.estimate-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.estimate-result span,
.estimate-result small {
  color: var(--slate);
  font-size: 0.72rem;
}

.estimate-result strong {
  color: var(--green);
  font: 1.1rem var(--mono);
}

.estimate-result small {
  grid-column: 1 / -1;
}

.search-dialog {
  width: min(680px, calc(100vw - 2rem));
  max-height: min(720px, calc(100vh - 4rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(11, 23, 40, 0.24);
}

.search-dialog::backdrop {
  background: rgba(10, 18, 32, 0.42);
  backdrop-filter: blur(6px);
}

.search-dialog form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
}

.search-dialog input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 450;
  outline: 0;
}

.search-dialog input::placeholder {
  color: var(--slate);
  opacity: 1;
}

.search-dialog form button {
  min-width: 42px;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  color: var(--slate);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
}

.search-results {
  padding: 0.6rem;
  overflow: auto;
}

.search-results > p {
  margin: 0;
  padding: 1rem;
  color: var(--slate);
  font-size: 0.84rem;
}

.search-results a {
  display: block;
  padding: 0.78rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--mist);
}

.search-results strong,
.search-results small {
  display: block;
}

.search-results small {
  color: var(--slate);
}

.home-frame {
  min-height: calc(100vh - 66px);
}

.home-frame .article {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 5rem) 3rem;
}

.home-frame .article > .gate-banner,
.home-frame .article > .eyebrow,
.home-frame .article > h1,
.home-frame .article > .lede,
.home-frame .article > .page-actions,
.home-frame .article > .article-header,
.home-frame .article > .article-footer,
.home-frame .outline {
  display: none;
}

.home-frame .prose {
  max-width: none;
}

.home-frame .prose .hero h1 {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(430px, 1.05fr) minmax(260px, 0.55fr);
  gap: clamp(1.75rem, 3vw, 3.5rem);
  align-items: center;
  min-height: 520px;
  padding: 3.5rem 0 2.75rem;
}

.hero h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(2.75rem, 4vw, 3.85rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero > div > p:not(.eyebrow) {
  max-width: 620px;
  margin: 1.25rem 0 1.5rem;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--orange);
}

.request-card {
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--code);
  color: #edf5f7;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--orange) 65%, transparent);
  transform: rotate(0.2deg);
}

.request-card-top {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #315069;
  font-size: 0.68rem;
}

.request-card-top span {
  color: #79d5b4;
}

.request-card-top em {
  margin-left: auto;
  color: #ff9b77;
  font-style: normal;
}

.request-card pre {
  min-height: 250px;
  padding: 1.2rem;
}

.settlement-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #315069;
}

.settlement-strip span {
  padding: 0.85rem;
}

.settlement-strip span + span {
  border-left: 1px solid #315069;
}

.settlement-strip small,
.settlement-strip strong {
  display: block;
}

.settlement-strip small {
  color: #9eb6c4;
}

.settlement-strip strong {
  color: #edf5f7;
  font-size: 0.8rem;
}

.utility-label {
  margin: 0;
  color: var(--slate);
  font: 720 0.65rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-notes {
  align-self: stretch;
  padding: 1.2rem 0 1.2rem 1.5rem;
  border-left: 1px solid var(--line);
}

.hero-notes h2 {
  margin: 0.55rem 0 1.25rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.hero-notes ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-notes li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.65rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.hero-notes li > span {
  color: var(--orange);
  font: 0.62rem var(--mono);
}

.hero-notes p {
  margin: 0;
  color: var(--slate);
  font-size: 0.79rem;
  line-height: 1.5;
}

.hero-notes strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--ink);
  font-size: 0.84rem;
}

.evidence-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.evidence-bar > span {
  padding: 0.9rem 1rem;
}

.evidence-bar > span + span {
  border-left: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
}

.evidence-bar small,
.evidence-bar strong {
  display: block;
}

.evidence-bar small {
  margin-bottom: 0.2rem;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  font: 0.61rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.evidence-bar strong {
  font-size: 0.84rem;
}

.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.audiences a {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 1.3rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.audiences a + a {
  border-left: 1px solid var(--line);
}

.audiences a:hover {
  background: var(--mist);
}

.audiences span,
.audiences b {
  color: var(--slate);
  font: 0.68rem var(--mono);
  text-transform: uppercase;
}

.audiences strong {
  margin: 0.75rem 0 auto;
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.35;
}

.audiences b {
  color: var(--orange);
}

.rail-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.rail-section h2,
.catalog-note h2,
.catalog-section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.rail-section p:not(.eyebrow),
.catalog-note p:not(.eyebrow) {
  color: var(--slate);
}

.lifecycle {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lifecycle::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 18px;
  width: 2px;
  background: linear-gradient(var(--orange), var(--green));
}

.lifecycle li {
  position: relative;
  display: grid;
  grid-template-columns: 38px 105px 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 60px;
  color: var(--ink);
}

.lifecycle li > span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: 0.62rem var(--mono);
}

.lifecycle li:last-child > span {
  border-color: var(--green);
  color: var(--green);
}

.lifecycle strong {
  font-size: 0.9rem;
}

.lifecycle small {
  color: var(--slate);
}

.catalog-note {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: end;
  padding: 6rem 0;
}

.catalog-note a {
  color: var(--orange);
  font-weight: 600;
}

.rail-section > div > a {
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 600;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.explain-grid article {
  padding: 2.25rem clamp(1.25rem, 2.5vw, 2.75rem) 2.5rem;
  border-top: 1px solid var(--line);
}

.explain-grid article + article {
  border-left: 1px solid var(--line);
}

.explain-grid h2 {
  margin: 0.65rem 0;
  font-size: 1.35rem;
}

.explain-grid p:not(.utility-label) {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.catalog-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding: 5rem 0;
}

.catalog-intro > p:not(.eyebrow) {
  color: var(--slate);
}

.catalog-preview {
  border-top: 1px solid var(--ink);
}

.catalog-preview > p {
  padding: 0.85rem 0;
}

.catalog-preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-preview li {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.2fr);
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.catalog-preview li span {
  color: var(--slate);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ink);
  font-size: 0.78rem;
}

.site-footer p,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 0;
}

.site-footer span,
.site-footer a {
  color: var(--slate);
}

@media (max-width: 1450px) {
  .docs-frame {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }
  .outline {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(320px, 0.8fr) minmax(460px, 1.2fr);
  }
  .hero-notes {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 220px 1fr;
    gap: 0 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .hero-notes h2 {
    grid-column: 1;
  }
  .hero-notes ol {
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-notes li {
    padding: 0 1rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto auto auto;
  }
  .topnav,
  .environment {
    display: none;
  }
  .docs-frame {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .request-card {
    max-width: 700px;
  }
  .hero-notes {
    display: block;
    grid-column: auto;
  }
  .hero-notes ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-notes li {
    border-left: 1px solid var(--line);
  }
  .rail-section,
  .catalog-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0 1rem;
  }
  .search-trigger {
    min-width: 0;
    width: auto;
    justify-self: end;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .search-trigger .search-label,
  .search-trigger kbd,
  .theme-toggle {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .docs-frame {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 66px 0 0 auto;
    z-index: 15;
    width: min(320px, 88vw);
    height: auto;
    border-left: 1px solid var(--line);
    background: var(--paper);
    transform: translateX(105%);
    transition: transform 160ms ease;
  }
  body.menu-open .sidebar {
    transform: translateX(0);
  }
  .article,
  .home-frame .article {
    padding: 1.5rem 1rem 4rem;
  }
  .article-header {
    display: block;
  }
  .article-tools {
    margin-top: 1.25rem;
  }
  .page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-actions a,
  .page-actions button {
    min-width: 0;
    text-align: center;
  }
  .article-heading h1 {
    font-size: 2.15rem;
  }
  .gate-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .price-policy,
  .estimator,
  .audiences,
  .rail-section,
  .catalog-note,
  .catalog-section,
  .explain-grid,
  .evidence-bar {
    grid-template-columns: 1fr;
  }
  .price-policy span + span,
  .audiences a + a,
  .evidence-bar > span + span,
  .explain-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .estimator-grid {
    grid-template-columns: 1fr;
  }
  .estimator label,
  .estimator label:first-child,
  .estimate-result {
    grid-column: 1;
  }
  .hero {
    min-height: auto;
    padding: 3rem 0 4rem;
  }
  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
  }
  .request-card {
    transform: none;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--orange) 70%, transparent);
  }
  .rail-section {
    gap: 2rem;
    padding: 4rem 0;
  }
  .lifecycle li {
    grid-template-columns: 38px 85px 1fr;
    gap: 0.65rem;
  }
  .catalog-note {
    gap: 1.5rem;
    padding: 4rem 0;
  }
  .hero-notes ol {
    grid-template-columns: 1fr;
  }
  .hero-notes li {
    padding: 0.85rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .catalog-preview li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .site-footer {
    display: block;
  }
  .site-footer nav {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Clean, catalog-first landing page inspired by the clarity of modern model routers. */
.home-frame {
  min-height: calc(100vh - 56px);
}

.home-frame .article {
  max-width: 1440px;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.home-frame .hero {
  display: block;
  min-height: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0 3.75rem;
  text-align: center;
}

.home-frame .hero h1 {
  max-width: none;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.home-frame .hero h1 span {
  color: var(--slate);
  font-weight: 500;
}

.home-frame .hero > p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.4rem auto 1.6rem;
  color: var(--slate);
  font-size: 1.03rem;
  line-height: 1.65;
}

.home-frame .hero-actions {
  justify-content: center;
}

.button {
  padding: 0.72rem 1.1rem;
  border-color: var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.button.primary {
  border-color: var(--ink);
  box-shadow: none;
}

.home-frame .evidence-bar {
  max-width: 880px;
  margin: 0 auto clamp(4.5rem, 8vw, 7rem);
  border: 0;
  background: transparent;
  color: var(--ink);
}

.home-frame .evidence-bar > span {
  padding: 0.5rem 1rem;
  text-align: center;
}

.home-frame .evidence-bar > span + span {
  border-left: 0;
}

.home-frame .evidence-bar strong {
  margin-bottom: 0.25rem;
  font-size: 1.8rem;
  letter-spacing: -0.035em;
}

.home-frame .evidence-bar small {
  color: var(--slate);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(5rem, 9vw, 8rem);
}

.feature-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.feature-grid article > div:last-child {
  padding: 1.25rem 1.25rem 1.35rem;
}

.feature-grid h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-grid p {
  min-height: 4.25rem;
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 0.86rem;
  line-height: 1.55;
}

.feature-grid a {
  font-size: 0.82rem;
  font-weight: 600;
}

.feature-visual {
  display: flex;
  min-height: 188px;
  padding: 1.25rem;
  background: var(--mist);
  color: var(--ink);
}

.model-cloud {
  flex-wrap: wrap;
  gap: 0.65rem;
  align-content: center;
  justify-content: center;
}

.model-cloud span {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  font: 0.68rem var(--mono);
}

.limit-visual {
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.limit-visual span,
.limit-visual small,
.limit-visual i {
  display: block;
}

.limit-visual small {
  margin-bottom: 0.45rem;
  color: var(--slate);
  font-size: 0.72rem;
}

.limit-visual i {
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
}

.limit-visual .maximum i {
  width: 88%;
}

.limit-visual .actual i {
  width: 42%;
}

.limit-visual span:last-child i {
  background: var(--green);
}

.usage-visual {
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.74rem;
}

.usage-visual span,
.usage-visual strong {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
}

.usage-visual em {
  margin-left: 0.4rem;
  color: var(--orange);
  font-style: normal;
}

.receipt-visual {
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.receipt-visual span {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-raised);
  font-size: 0.72rem;
}

.receipt-visual i {
  margin-right: 0.45rem;
  color: var(--green);
  font-style: normal;
}

.endpoint-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(620px, 1.42fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto clamp(5rem, 9vw, 8rem);
}

.endpoint-intro {
  position: sticky;
  top: 94px;
}

.endpoint-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.endpoint-intro > p:not(.eyebrow) {
  color: var(--slate);
  line-height: 1.65;
}

.endpoint-intro > a {
  font-size: 0.86rem;
  font-weight: 600;
}

.endpoint-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.endpoint-group + .endpoint-group {
  border-left: 1px solid var(--line);
}

.endpoint-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding: 1rem;
  background: var(--mist);
}

.endpoint-group > header strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.86rem;
}

.endpoint-group > header > span {
  flex: none;
  padding: 0.3rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  font: 600 0.59rem var(--mono);
}

.endpoint-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 91px;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 150ms ease;
}

.endpoint-list a:hover,
.endpoint-list a:focus-visible {
  background: var(--mist);
}

.endpoint-list .method {
  align-self: start;
  padding: 0.22rem 0.25rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  font: 650 0.57rem var(--mono);
  text-align: center;
}

.endpoint-list .method.post {
  color: var(--orange);
}

.endpoint-list .method.get {
  color: var(--green);
}

.endpoint-list code,
.endpoint-list strong,
.endpoint-list small {
  display: block;
}

.endpoint-list code {
  overflow: hidden;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-list strong {
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
}

.endpoint-list small {
  color: var(--slate);
  font-size: 0.7rem;
  line-height: 1.4;
}

.integration-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(480px, 1.25fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 clamp(5rem, 9vw, 8rem);
}

.integration-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.integration-section > div:first-child > p:not(.eyebrow) {
  color: var(--slate);
}

.integration-section > div:first-child > a {
  font-size: 0.86rem;
  font-weight: 600;
}

.request-card {
  min-width: 0;
  overflow: hidden;
  border-color: #1d2939;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  transform: none;
}

.request-card pre {
  min-height: 240px;
  max-width: 100%;
}

.home-frame .audiences {
  max-width: 1100px;
  margin: 0 auto clamp(5rem, 9vw, 8rem);
  gap: 1rem;
  border: 0;
}

.home-frame .audiences a {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
}

.home-frame .audiences a + a {
  border-left: 1px solid var(--line);
}

.home-frame .audiences span {
  color: var(--orange);
  font-family: var(--sans);
  font-size: 1.1rem;
}

.home-frame .audiences strong {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
}

.home-frame .audiences b {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.home-frame .rail-section,
.home-frame .catalog-section {
  max-width: 1180px;
  margin-inline: auto;
}

.home-frame .rail-section {
  border-top: 1px solid var(--line);
}

.home-frame .site-footer {
  max-width: 1180px;
  margin-inline: auto;
  border-top-color: var(--line);
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .integration-section {
    grid-template-columns: 1fr;
  }
  .endpoint-section {
    grid-template-columns: 1fr;
  }
  .endpoint-intro {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 56px;
  }
  .docs-tabs {
    display: none;
  }
  .sidebar {
    inset: 56px 0 0 auto;
  }
  .home-frame .article {
    padding: 0 1rem 3rem;
  }
  .home-frame .hero {
    padding: 3.25rem 0 2.75rem;
  }
  .home-frame .hero h1 {
    font-size: clamp(2.25rem, 11vw, 2.8rem);
  }
  .home-frame .hero > p:not(.eyebrow) {
    font-size: 0.95rem;
  }
  .home-frame .evidence-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 0;
    margin-bottom: 4rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
  }
  .feature-grid p {
    min-height: 0;
  }
  .feature-visual {
    min-height: 160px;
  }
  .integration-section {
    gap: 2rem;
    padding-bottom: 4rem;
  }
  .endpoint-section {
    gap: 1.75rem;
    margin-bottom: 4rem;
  }
  .endpoint-board {
    grid-template-columns: 1fr;
  }
  .endpoint-group + .endpoint-group {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .home-frame .audiences {
    margin-bottom: 4rem;
  }
  .home-frame .audiences a + a {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }
  .article-heading h1 {
    font-size: 2rem;
  }
  .article {
    padding-top: 1.25rem;
  }
  .gate-banner {
    gap: 0.25rem;
  }
}
