/*
 * Public site: landing, pricing, coverage, sources, docs, sign-in. Shared components and the dark
 * palette are in base.css (the whole app is dark only); public pages carry <body class="site">, which
 * changes the type and adds the night panels:
 *   Display  Barlow Condensed, TOPCAR's display face (headlines, big figures; heavy, uppercase)
 *   Body     Mona Sans
 *   Data     Overpass Mono (serials, codes, numbers), as in the dashboard
 * The wordmark is set in TOPCAR's display face, Barlow Condensed, everywhere.
 */

.site {
  --night: #0a0d12;        /* hero and closing panels, a step up from the page */
  --night-2: #0f1319;      /* the console on night */
  --night-ink: #e9ecef;
  --night-ink-2: #9aa4ae;
  --night-rule: rgba(255, 255, 255, 0.09);
  --body: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow-sm: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.site h1, .site h2 {
  font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.92; color: #fff; text-wrap: balance;
}
.site h1 { font-size: clamp(44px, 6vw, 76px); }
.site h3 { font: 620 17px/1.3 var(--body); letter-spacing: -0.01em; }

/* Buttons */
.site .btn {
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: var(--ink);
  font-weight: 600; transition: background 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.site .btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.site .btn--primary {
  background: var(--hugger); border-color: transparent; color: var(--on-hot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.site .btn--primary:hover {
  background: #ff6430; border-color: transparent; color: var(--on-hot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 28px -8px rgba(232, 80, 28, 0.7);
}
.site .btn--lg { padding: 12px 20px; font-size: 15px; }

/* Chrome: a translucent bar that stays put */
.site .site-nav {
  position: sticky; top: 0; z-index: 20; padding: 12px var(--gutter);
  background: rgba(5, 6, 8, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
@media (max-width: 640px) { .site .site-nav { position: static; } }
/* In-page links (#quickstart) land below the sticky bar, not under it */
@media (min-width: 641px) { html:has(body.site) { scroll-padding-top: 84px; } }
/* Vinspect is a TOPCAR product: the parent's wordmark rides beside ours, a size down */
.brandline { display: inline-flex; align-items: center; gap: 14px; }
.brandline__parent {
  display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--rule-2);
  font: 500 15px/1 var(--body); color: var(--steel); text-decoration: none; white-space: nowrap;
}
.brandline__parent img { display: block; height: 18px; width: auto; opacity: 0.9; transition: opacity 0.15s; }
a.brandline__parent:hover { color: var(--ink-2); }
a.brandline__parent:hover img { opacity: 1; }
.site .site-nav__links a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: 14.5px; transition: color 0.15s; }
.site .site-nav__links a:not(.btn):hover, .site .site-nav__links a[aria-current='page'] { color: #fff; text-decoration: none; }
.site .site-main { padding-top: 12px; }
.site .site-footer { margin-top: 96px; align-items: flex-start; }
.site .site-footer a { text-decoration: none; }
.site .site-footer a:hover { color: var(--ink); }
.footer__brand { display: grid; gap: 10px; max-width: 46ch; }

/* Cards */
.site .card { border-radius: 14px; border-color: var(--rule); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ sections */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(80px, 11vw, 128px) 0 0; }
.section > h2 { font-size: clamp(36px, 5.2vw, 62px); max-width: 20ch; }
.section > .lede { max-width: 60ch; margin: 16px 0 36px; font-size: 18px; color: var(--ink-2); }
.section__more { margin: 18px 0 0; font-size: 15px; }
.section__more a { color: var(--ink); font-weight: 600; text-decoration: none; }
.section__more a:hover { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--hugger); }

/* ------------------------------------------------------------------ hero: a night panel with the serial taken apart */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1320px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) clamp(16px, 4vw, 56px) clamp(28px, 5vw, 64px);
  border-radius: clamp(18px, 2.4vw, 28px); background: var(--night); color: var(--night-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* A fine grid, fading out from the top centre */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 78%);
}
/* Two lights: hot from above, marina from the sides */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 50% 32% at 50% -4%, rgba(232, 80, 28, 0.34), transparent 70%),
    radial-gradient(ellipse 40% 30% at 6% 42%, rgba(43, 108, 176, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 30% at 94% 48%, rgba(43, 108, 176, 0.16), transparent 70%);
}
.hero__intro { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 6px 13px 6px 10px;
  border-radius: 999px; border: 1px solid var(--night-rule); background: rgba(255, 255, 255, 0.04);
  color: #c6cdd4; font: 500 13px/1.3 var(--body); text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.pill:hover { color: #fff; border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.07); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #4cc47a; box-shadow: 0 0 0 0 rgba(76, 196, 122, 0.5); animation: pulse 2.4s ease-out infinite; }
.pill__arrow { color: var(--night-ink-2); transition: transform 0.15s; }
.pill:hover .pill__arrow { transform: translateX(2px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 196, 122, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(76, 196, 122, 0); } }

.hero h1 { font-size: clamp(48px, 8.2vw, 112px); line-height: 0.9; color: #fff; text-wrap: wrap; }
.hero h1 em {
  display: block; font-style: normal; padding-bottom: 0.06em;
  background: linear-gradient(92deg, #ff5a1f 10%, #ff8f57 55%, #ffc9ab 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 62ch; margin: 24px auto 0; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: var(--night-ink-2); }
.hero__ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* The SDK install line under the calls to action */
.install {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; padding: 4px 4px 4px 14px; max-width: 100%;
  border-radius: 8px; border: 1px solid var(--night-rule); background: rgba(255, 255, 255, 0.03);
}
.install code { background: none !important; padding: 0 !important; font: 13px/1.4 var(--mono); color: var(--night-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install__prompt { color: var(--hugger); margin-right: 4px; }
.install__copy { border: 0; background: none; color: var(--night-ink-2); font: 600 12px/1 var(--body); padding: 7px 9px; border-radius: 5px; cursor: pointer; }
.install__copy:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
/* The serial taken apart: the page's one orchestrated moment */
.tape { margin: clamp(48px, 7vw, 72px) auto 0; max-width: 900px; }
.tape__req { display: inline-flex; align-items: center; gap: 10px; font: 13px/1 var(--mono); color: var(--night-ink-2); margin-bottom: 26px; }
.tape__method { font: 700 10.5px/1 var(--mono); letter-spacing: 0.04em; padding: 4px 6px; border-radius: 4px; background: rgba(76, 196, 122, 0.14); color: #6fd896; }
.tape__parts { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 22px clamp(10px, 1.8vw, 18px); }
.tape__parts li { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.tape__chars {
  font: 700 clamp(30px, 5.2vw, 56px)/1 var(--mono); letter-spacing: 0.06em; color: #fff; padding: 0 6px 12px;
  animation: tape-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.25s + var(--i) * 0.09s);
}
.tape__meaning {
  position: relative; width: 100%; padding: 10px 6px 0; border-top: 2px solid var(--hugger);
  font: 600 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-ink-2);
  transform-origin: left center; animation: tape-draw 0.45s cubic-bezier(0.6, 0, 0.2, 1) both; animation-delay: calc(0.5s + var(--i) * 0.09s);
}
.tape__meaning::before, .tape__meaning::after { content: ''; position: absolute; top: -8px; width: 2px; height: 6px; background: var(--hugger); }
.tape__meaning::before { left: 0; }
.tape__meaning::after { right: 0; }
.tape__value { padding: 4px 6px 0; font: 600 14px/1.3 var(--body); color: var(--night-ink); max-width: 18ch; animation: tape-fade 0.4s ease-out both; animation-delay: calc(0.75s + var(--i) * 0.09s); }
.tape__result {
  display: inline-block; margin: 30px 0 0; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--night-rule); background: rgba(255, 255, 255, 0.04);
  font: 600 14px/1.3 var(--body); color: #fff;
  animation: tape-fade 0.5s ease-out both; animation-delay: calc(0.9s + var(--i) * 0.09s);
}
@keyframes tape-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
@keyframes tape-draw { from { transform: scaleX(0); } }
@keyframes tape-fade { from { opacity: 0; transform: translateY(4px); } }

.hero__console { position: relative; max-width: 1120px; margin: clamp(56px, 8vw, 88px) auto 0; }
.hero__console::before {
  content: ''; position: absolute; z-index: -1; left: 8%; right: 8%; top: -30px; height: 260px;
  background: radial-gradient(ellipse at 50% 60%, rgba(232, 80, 28, 0.28), transparent 70%); filter: blur(30px);
}
.hero__note { margin: 16px 0 0; text-align: center; color: var(--night-ink-2); }
.hero__note a { color: var(--night-ink); }

/* Sources, set like a row of partner marks */
.proof { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) 0 0; text-align: center; }
.proof p { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(20px, 4vw, 44px); }
.proof li { font: 700 clamp(17px, 1.8vw, 21px)/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: #7d8792; }
.proof .proof__more { font: 500 14px/1.6 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink-2); }

/* The data plate: the stamped tag riveted to every car, and this page's one physical object */
.bench { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.plate {
  position: relative; padding: 30px clamp(22px, 4vw, 40px) 26px; border-radius: 14px;
  border: 1px solid #838a86;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, rgba(0, 0, 0, 0.018) 1px 3px),
    linear-gradient(175deg, #e4e7e4 0%, #c9cec9 46%, #b4bab5 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 5px rgba(0, 0, 0, 0.14), 0 22px 40px -20px rgba(20, 24, 29, 0.5);
}
.plate__rivet { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4f6f4, #8a918c 62%, #5f6661); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
.plate__rivet:nth-of-type(1) { top: 10px; left: 10px; }
.plate__rivet:nth-of-type(2) { top: 10px; right: 10px; }
.plate__rivet:nth-of-type(3) { bottom: 10px; left: 10px; }
.plate__rivet:nth-of-type(4) { bottom: 10px; right: 10px; }
.plate label { font: 700 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #4c544f; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.plate input.plate__input {
  width: 100%; padding: 6px 2px 8px; border: 0; border-bottom: 2px solid #747b77; border-radius: 0; background: transparent;
  font: 700 clamp(24px, 4.4vw, 42px)/1.1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #20262a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 -1px 0 rgba(0, 0, 0, 0.22);
}
.plate input.plate__input:focus { outline: 0; border-bottom-color: var(--hugger); }
.plate__input::placeholder { color: #8d9590; text-shadow: none; }
.plate__actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.plate__note { font-size: 13px; color: #454d48; }
.samples { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.samples button { border: 1px solid var(--rule-2); background: var(--paper); border-radius: 999px; padding: 5px 12px; font: 500 13px/1.2 var(--body); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color 0.15s; }
.samples button:hover { border-color: #4a535e; }
.samples button[aria-pressed='true'] { background: var(--ink); color: var(--primer); border-color: var(--ink); }

.result { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 24px 26px; min-height: 260px; transition: opacity 0.15s; }
.result[aria-busy='true'] { opacity: 0.45; }
.decoded + .decoded { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.decoded__vehicle { font-size: 18px; margin: 0 0 12px; }
.decoded__lead { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.decoded__warning { font-size: 14px; background: var(--amber-bg); color: #f3d28f; padding: 8px 12px; border-radius: 6px; margin: 0 0 12px; }

/* The serial taken apart: each group of characters over a bracket, with what it means */
.callouts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 6px; }
.callouts li { display: flex; flex-direction: column; align-items: center; min-width: 54px; flex: 0 1 auto; text-align: center; }
.callouts__chars { font: 700 24px/1 var(--mono); letter-spacing: 0.08em; padding: 0 4px 7px; width: 100%; }
.callouts__meaning { width: 100%; border-top: 2px solid var(--ink); position: relative; padding: 7px 4px 0; font: 700 10.5px/1.2 var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.callouts__meaning::before, .callouts__meaning::after { content: ''; position: absolute; top: -7px; width: 2px; height: 5px; background: var(--ink); }
.callouts__meaning::before { left: 0; }
.callouts__meaning::after { right: 0; }
.callouts__value { font-size: 13.5px; font-weight: 600; padding: 2px 4px 0; max-width: 16ch; }

table.engines td, table.engines th { padding: 8px 10px; }
table.engines th:first-child, table.engines td:first-child { padding-left: 0; }
table.engines th { background: none; }
table.engines tr.is-exact td { background: rgba(232, 80, 28, 0.1); }

/* ------------------------------------------------------------------ receipts */
.receipt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.receipt__sheet { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.receipt__head { padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.receipt__head .mono { font-size: 13px; color: var(--ink-2); }
.receipt__value { font: 700 44px/1 var(--mono); margin-top: 8px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.receipt__value small { font: 600 14px/1 var(--body); color: var(--ink-2); }
.claim { padding: 16px 24px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; align-items: start; }
.claim:last-child { border-bottom: 0; }
.claim__value { font: 700 20px/1.2 var(--mono); }
.claim__bar { height: 6px; background: #1c2128; border-radius: 99px; overflow: hidden; margin: 8px 0 8px; }
.claim__bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3d7fc0, var(--marina)); }
.claim--lost .claim__bar > span { background: #4a535e; }
.claim__sources { font: 12.5px/1.5 var(--mono); color: var(--ink-2); word-break: break-word; }
.points { display: grid; gap: 14px; }
.points > div { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; }
.points h3 { margin: 6px 0 4px; }
.points p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: 15px; }
.point__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(232, 80, 28, 0.12); color: #ff8a5c; }
.point__icon svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------------ spec sheet, code, pricing */
.sheet { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.sheet dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.sheet dl > div { padding: 22px 24px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); margin: 0 -1px -1px 0; }
.sheet dt { font: 600 11px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.sheet dd { margin: 8px 0 0; font: 700 clamp(32px, 3.6vw, 44px)/1 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sheet dd small { display: block; font: 400 13px/1.4 var(--body); letter-spacing: 0; color: var(--ink-2); margin-top: 6px; }

.plans .card { padding: 24px; }
.plans .spec__value { font: 800 40px/1 var(--display); text-transform: uppercase; letter-spacing: 0; }
.plans .spec__value .small { font: 500 14px/1 var(--body); text-transform: none; letter-spacing: 0; }
.plans ul { list-style: none; padding-left: 0 !important; display: grid; gap: 7px; }
.plans li { position: relative; padding-left: 24px; }
.plans li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: rgba(232, 80, 28, 0.12);
  box-shadow: inset 0 0 0 1px rgba(232, 80, 28, 0.3);
}
.plans li::after { content: ''; position: absolute; left: 5px; top: 5px; width: 4px; height: 7px; border: solid #ff8a5c; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.plans .btn { width: 100%; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.split pre { max-height: 460px; }
.codehead { font: 700 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }

.faq { max-width: 760px; }
.faq h3 { margin: 26px 0 6px; font-size: 17px; }
.faq p { color: var(--ink-2); margin: 0; }

/* Closing panel: the hero's night, smaller */
.cta {
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(88px, 11vw, 128px);
  padding: clamp(36px, 6vw, 72px); border-radius: clamp(18px, 2.4vw, 28px); background: var(--night); color: #eef0ed;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 100%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 100% 100%, #000 20%, transparent 75%);
}
.cta::after { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 50% 70% at 100% 110%, rgba(232, 80, 28, 0.32), transparent 70%); }
.cta h2 { font-size: clamp(36px, 5.4vw, 64px); max-width: 17ch; color: #fff; }
.cta p { margin: 14px 0 0; color: var(--night-ink-2, #b9c0bb); max-width: 48ch; font-size: 17px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ docs: guide in one column, each endpoint in two */
.docs { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 32px; align-items: start; }
.docs__nav { position: sticky; top: 80px; font-size: 14px; max-height: calc(100vh - 96px); overflow-y: auto; padding-bottom: 24px; }
.docs__nav strong { display: block; margin: 22px 0 6px; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.docs__nav strong:first-child { margin-top: 0; }
.docs__nav a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.docs__nav a:hover { color: #fff; }
.docs__body { min-width: 0; }
.docs__body p { max-width: 70ch; color: #c9d0d7; }
.docs__body h3 { margin: 28px 0 10px; font: 600 13px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.docs__body .table-wrap { margin: 14px 0 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; max-width: 920px; }
.docs__body td { color: #c9d0d7; }

.docs__intro { padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.docs__intro h1 { margin-bottom: 14px; }
.docs__intro p { font-size: 17px; }
.docs__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; }
.docs__facts dt { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.docs__facts dd { margin: 0; font-size: 14px; color: var(--ink); }

.guide { max-width: 920px; padding: 56px 0 8px; border-bottom: 1px solid var(--rule); }
.guide h2, .ref h2 { font-size: clamp(30px, 3vw, 38px); margin: 0 0 14px; }
.guide .codebox { max-width: 760px; }

/* An endpoint: the explanation on the left, its request and response on the right */
.ref { padding: 56px 0 24px; border-bottom: 1px solid var(--rule); }
.ref__path { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 14px/1.4 var(--mono); word-break: break-all; }
.ref__path code { background: none !important; padding: 0 !important; color: var(--ink); }
.ref__summary { font-size: 17px; color: var(--ink) !important; }
.ref__code { display: grid; gap: 16px; align-content: start; min-width: 0; margin-top: 24px; }
@media (min-width: 1240px) {
  .ref { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .ref__code { position: sticky; top: 84px; margin-top: 0; }
}

.method { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: 0.04em; padding: 4px 6px; border-radius: 4px; }
.method--get { background: rgba(85, 201, 131, 0.14); color: #6fd896; }
.method--post { background: rgba(125, 176, 227, 0.16); color: #9cc6ef; }

.params { margin: 0; border-top: 1px solid var(--rule); }
.params__row { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.params dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.params__name { background: none !important; padding: 0 !important; font: 600 14px/1.3 var(--mono); color: #fff; }
.params__type { font: 12.5px/1.3 var(--mono); color: var(--steel); }
.params__req { font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: 0.06em; color: #ff8a5c; }
.params__opt, .params__in { font: 500 12px/1 var(--body); color: var(--steel); }
.params dd { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: #c9d0d7; }

.codebox { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--well); margin: 14px 0 18px; }
.ref__code .codebox { margin: 0; }
.codebox__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--rule); background: rgba(255, 255, 255, 0.02); }
.codebox__label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font: 12.5px/1.3 var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codebox__copy { flex: none; border: 0; background: none; color: var(--steel); font: 600 12px/1 var(--body); padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.codebox__copy:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.codebox pre { margin: 0; border: 0; border-radius: 0; background: none; padding: 14px 16px; font-size: 13px; line-height: 1.6; }
.codebox pre.codebox__tall { max-height: 460px; overflow: auto; }

@media (max-width: 900px) {
  .bench, .receipt { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__nav { position: static; max-height: none; columns: 2; }
}

/* ------------------------------------------------------------------ API console (hero) */
.console {
  margin-top: clamp(28px, 5vw, 44px); display: grid; grid-template-columns: 232px minmax(0, 1fr);
  background: var(--night-2, #0f1319); border: 1px solid var(--rule); color: #e3e7e4; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 40px -24px rgba(20, 24, 29, 0.7);
  transition: opacity 0.15s;
}
.hero .console {
  margin-top: 0; background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
.hero .console__rail { background: #0c1015; }
.console[aria-busy='true'] .console__json { opacity: 0.5; }
.console__rail { min-width: 0; background: #1b2027; border-right: 1px solid #2b323a; padding: 0 0 14px; }
.console__railhead { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 14px; border-bottom: 1px solid #2b323a; font: 700 14px/1 var(--body); }
.console__railhead .mono { font-size: 12px; color: var(--steel); font-weight: 400; }
.console__group { margin: 16px 18px 6px; font: 700 10.5px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.console__ep {
  display: flex; flex-direction: column; gap: 2px; margin: 1px 8px; padding: 7px 10px;
  border-radius: 6px; color: #d3d8d4; text-decoration: none; font-size: 14px; border-left: 3px solid transparent;
}
.console__ep:hover { background: #1c232b; color: #fff; }
.console__ep[aria-current='true'] { background: #1f262f; color: #fff; border-left-color: var(--hugger); }
.console__eppath { font: 11px/1.3 var(--mono); color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__ep[aria-current='true'] .console__eppath { color: #f0a27f; }

.console__main { min-width: 0; display: flex; flex-direction: column; }
.console__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #2b323a; flex-wrap: wrap; }
.console__tabs { display: flex; gap: 2px; padding: 3px; background: #0a0d10; border: 1px solid #2b323a; border-radius: 8px; overflow-x: auto; }
.console__tabs button { border: 0; background: none; color: #aab1ac; font: 700 12.5px/1 var(--mono); padding: 8px 12px; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.console__tabs button:hover { color: #fff; }
.console__tabs button[aria-selected='true'] { background: var(--hugger); color: var(--on-hot); }
.console__plan { font-size: 12.5px; color: var(--steel); }

.console__form { padding: 14px 18px 16px; border-bottom: 1px solid #2b323a; }
.console__blurb { margin: 0 0 12px; font-size: 14px; color: #b9c0bb; max-width: 76ch; }
.console__blurb a { color: #9cc3e6; }
.console__fields { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.console__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 160px; max-width: 360px; }
.console__field > span:first-child { font: 700 11px/1 var(--mono); letter-spacing: 0.04em; color: #aab1ac; }
.console__field small { font-weight: 400; color: var(--steel); }
.console__field input { width: 100%; background: #0a0d10; border: 1px solid #39414a; border-radius: 6px; color: #fff; font: 600 14px/1.2 var(--mono); padding: 8px 10px; }
.console__field input:focus { outline: 0; border-color: var(--hugger); }
.console__samples { display: flex; flex-wrap: wrap; gap: 5px; }
.console__samples button { border: 1px solid #39414a; background: none; color: #c9cfca; border-radius: 999px; padding: 3px 9px; font: 600 11.5px/1.3 var(--body); cursor: pointer; }
.console__samples button:hover { border-color: #aab1ac; color: #fff; }
.console__samples button[aria-pressed='true'] { background: #e3e7e4; color: var(--on-hot); border-color: #e3e7e4; }
.console__none { margin: 0; font-size: 13px; color: var(--steel); }
.console__run { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-width: 0; }
.console__method { font: 700 11px/1 var(--mono); padding: 5px 7px; border-radius: 4px; background: rgba(76, 196, 122, 0.16); color: #6fd896; }
.console__path { flex: 1; min-width: 0; font: 13px/1.3 var(--mono); color: #e3e7e4; background: none !important; padding: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.console__pane { border-bottom: 1px solid #2b323a; }
.console__pane--response { border-bottom: 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.console__label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px 0; font: 700 12px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #aab1ac; }
.console__status { font: 12px/1 var(--mono); letter-spacing: 0; text-transform: none; color: #aab1ac; display: inline-flex; align-items: center; gap: 7px; }
.console__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.console__dot.is-ok { background: #4cc47a; box-shadow: 0 0 0 3px rgba(76, 196, 122, 0.18); }
.console__dot.is-err { background: var(--hugger); box-shadow: 0 0 0 3px rgba(232, 80, 28, 0.2); }
.console__copy { border: 1px solid #39414a; background: none; color: #c9cfca; border-radius: 6px; padding: 4px 9px; font: 600 11.5px/1 var(--body); letter-spacing: 0; text-transform: none; cursor: pointer; }
.console__copy:hover { color: #fff; border-color: #aab1ac; }
.console pre.console__code { background: none; border-radius: 0; padding: 10px 18px 16px; font-size: 13px; line-height: 1.6; }
.console pre.console__json { height: 380px; overflow: auto; transition: opacity 0.15s; }
.j-key { color: #9cc3e6; }
.j-str { color: #b8d9a9; }
.j-num { color: #f2a477; }
.j-lit { color: #e6c27a; }
.hero .console__rail, .hero .console__railhead, .hero .console__bar, .hero .console__form, .hero .console__pane { border-color: rgba(255, 255, 255, 0.08); }

@media (max-width: 900px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .console__rail { border-right: 0; border-bottom: 1px solid #2b323a; padding: 0 0 10px; display: flex; flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 2px; }
  .console__railhead, .console__group { display: none; }
  .console__ep { flex: 0 0 auto; margin: 10px 0 0; border-left: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; }
  .console__ep:first-of-type { margin-left: 10px; }
  .console__ep[aria-current='true'] { border-bottom-color: var(--hugger); }
  .console__eppath { display: none; }
  .console pre.console__json { height: 320px; }
  .console__field { max-width: none; }
  .tape__parts li { min-width: 48px; }
}

/* Keyboard focus stays visible on the night panels */
.hero :focus-visible, .cta :focus-visible { outline-color: #ff8f57; }
