
:root {
  color-scheme: light;
  --paper: #F4F8FC;
  --surface: #FFFFFF;
  --ink: #192633;
  --muted: #485C71;
  --accent: #2447B8;
  --soft: #E1EDFC;
  --rule: #C7D7EA;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: Barlow, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible, pre:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
code, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; }
.shell { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; inset: 1rem auto auto 1rem; transform: translateY(-200%); padding: .5rem 1rem; background: var(--surface); }
.skip-link:focus { transform: none; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.42rem; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.wordmark img { flex: none; display: block; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: 1.45rem; row-gap: .55rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover, .wordmark:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr); align-items: end; gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(3.75rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.5rem, 5.15vw, 4.75rem); line-height: .99; font-weight: 700; letter-spacing: -.055em; text-wrap: balance; }
.hero p { max-width: 33rem; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.19rem); }
.actions { margin-top: 1.65rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.actions a { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.1rem; border: 1px solid var(--accent); border-radius: .35rem; font-weight: 600; text-decoration: none; }
.actions .primary { color: var(--surface); background: var(--accent); }
.actions .primary:hover { background: #1D3993; }
.actions .secondary:hover { background: var(--soft); }
.batch-strip { border: 1px solid var(--rule); border-top: 3px solid var(--accent); background: var(--soft); padding: clamp(.9rem, 2vw, 1.4rem); border-radius: .55rem; }
.batch-caption { font-size: 1.1rem; font-weight: 700; }
.batch-flow { display: grid; grid-template-columns: minmax(0, 1fr) clamp(1.35rem, 4vw, 2.7rem) minmax(0, .95fr); align-items: center; gap: .45rem; margin-block: 1.05rem; }
.batch-inputs { display: grid; gap: .45rem; }
.batch-inputs div { min-width: 0; padding: .5rem .55rem; border-left: 2px solid var(--accent); background: var(--surface); font-size: .87rem; font-weight: 600; line-height: 1.25; }
.flow-mark { width: 100%; color: var(--accent); }
.batch-output { display: grid; gap: .3rem; background: var(--accent); color: var(--surface); border-radius: .26rem; padding: .6rem; font-weight: 600; font-size: .89rem; line-height: 1.2; }
.batch-output code { font-size: 1.3rem; }
.batch-note { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .7rem; font-size: .86rem; font-weight: 600; }
.batch-note span { width: .24rem; height: .24rem; border-radius: 50%; background: var(--accent); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.6rem); line-height: 1.06; letter-spacing: -.035em; }
.section-heading p, .payment p { color: var(--muted); }
.endpoint-index { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; margin: 1rem 0 1.5rem; border: 1px solid var(--rule); border-radius: .4rem; background: var(--surface); }
.endpoint-index li + li { border-left: 1px solid var(--rule); }
.endpoint-index a { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .85rem 1rem; color: var(--ink); text-decoration: none; }
.endpoint-index a:hover { background: var(--soft); }
small { display: block; color: var(--muted); font-size: .83rem; font-weight: 500; }
.index-price { color: var(--accent); font-family: var(--mono); font-weight: 500; text-align: right; white-space: nowrap; }
.index-price small { font-family: Barlow, system-ui, sans-serif; }
.endpoint { scroll-margin-top: 1rem; margin-bottom: 1.25rem; padding: clamp(1rem, 4vw, 1.8rem); border: 1px solid var(--rule); border-radius: .55rem; background: var(--surface); }
.endpoint-heading { display: flex; justify-content: space-between; align-items: flex-end; align-items: last baseline; flex-wrap: wrap; gap: .55rem 1.25rem; }
.endpoint-heading h3 { font-size: clamp(1.38rem, 3vw, 2rem); line-height: 1.08; letter-spacing: -.026em; }
.route { color: var(--muted); font-size: .82rem; margin-bottom: .5rem; }
.route span { color: var(--accent); border: 1px solid var(--rule); border-radius: .18rem; font: 500 .72rem var(--mono); padding: .125rem .24rem; margin-right: .18rem; }
.price { display: flex; gap: .45rem; align-items: baseline; }
.price strong { color: var(--accent); font: 500 1.33rem var(--mono); }
.price span { color: var(--muted); font-size: .89rem; }
.endpoint-description { max-width: 47rem; margin-top: .75rem; }
.contract { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.1rem 0; }
.contract dt { font-weight: 700; }
.contract dd { margin: .17rem 0 0; color: var(--muted); max-width: 33rem; }
.examples { border-top: 1px solid var(--rule); }
.examples summary { padding-block: .75rem .2rem; font-weight: 600; cursor: pointer; color: var(--accent); }
.examples-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .85rem; padding-top: .75rem; }
.code-example { min-width: 0; }
.code-example h4 { font-size: .91rem; font-weight: 600; }
pre { max-width: 100%; max-height: 19rem; overflow: auto; margin: .35rem 0 0; padding: .75rem; border-radius: .31rem; background: var(--soft); color: #142B5B; font-size: .79rem; line-height: 1.5; }
pre code { overflow-wrap: normal; }
.payment { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.5fr); gap: 1.5rem; margin-top: 2.5rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); }
.payment p { margin-top: .45rem; }
.payment ol { margin: 0; padding-left: 1.4rem; }
.payment li + li { margin-top: .4rem; }
.payment li::marker { color: var(--accent); font-weight: 700; }
.footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .7rem 1rem; padding: 1rem 0 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .89rem; }
.footer div { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 48rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 3.1rem; gap: 1.8rem; }
  .hero h1 { max-width: 11em; }
  .batch-strip { max-width: 29rem; }
  .payment { grid-template-columns: 1fr; gap: .7rem; }
}
@media (max-width: 35rem) {
  .header { align-items: flex-start; padding-block: .9rem; }
  nav { gap: .32rem .85rem; font-size: .92rem; }
  nav a { padding-block: .18rem; }
  .wordmark { font-size: 1.22rem; gap: .45rem; }
  .wordmark img { width: 28px; height: 28px; }
  .endpoint-index, .examples-grid, .contract { grid-template-columns: 1fr; }
  .endpoint-index li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .endpoint-heading { display: grid; justify-content: stretch; }
}
