/* BizEdge Developers. Colours and type follow the BizEdge brand: navy and teal from the logo,
   Nunito for headings, Inter for text. */

:root {
  --navy: #1F4690;
  --navy-deep: #13306A;
  --navy-night: #0B1E47;
  --teal: #00A79D;
  --teal-deep: #007A73;
  --teal-bright: #6FE0D7;

  --canvas: #FFFFFF;
  --canvas-tint: #F6F8FC;
  --paper: #FFFFFF;
  --ink: #1B2433;
  --body: #3A4456;
  --muted: #5B6578;
  --line: #DCE3ED;
  --navy-soft: #EBF0F9;
  --teal-soft: #E3F5F3;
  --accent: var(--navy);
  --accent-alt: var(--teal-deep);
  --primary: var(--navy);
  --primary-hover: var(--navy-deep);
  --code-bg: #0B1630;

  --shadow: 0 1px 2px rgba(16, 30, 64, 0.05), 0 8px 24px rgba(16, 30, 64, 0.07);
  --shadow-lift: 0 2px 4px rgba(16, 30, 64, 0.06), 0 22px 48px rgba(16, 30, 64, 0.14);

  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 20px;
  --bar-height: 60px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0A1325;
    --canvas-tint: #0D182D;
    --paper: #111D35;
    --ink: #EEF2FA;
    --body: #C3CDE0;
    --muted: #8B98B3;
    --line: #1F2F4D;
    --navy-soft: #15264A;
    --teal-soft: #0D3236;
    --accent: #8FB0F0;
    --accent-alt: var(--teal-bright);
    --primary: var(--teal);
    --primary-hover: var(--teal-deep);
    --code-bg: #071027;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --canvas: #0A1325;
  --canvas-tint: #0D182D;
  --paper: #111D35;
  --ink: #EEF2FA;
  --body: #C3CDE0;
  --muted: #8B98B3;
  --line: #1F2F4D;
  --navy-soft: #15264A;
  --teal-soft: #0D3236;
  --accent: #8FB0F0;
  --accent-alt: var(--teal-bright);
  --primary: var(--teal);
  --primary-hover: var(--teal-deep);
  --code-bg: #071027;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------------------------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.15;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-alt); }

code {
  font-family: var(--font-code);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--navy-soft);
  color: var(--ink);
}

pre { margin: 0; overflow-x: auto; }
pre code { padding: 0; background: none; border-radius: 0; color: inherit; font-size: inherit; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-alt);
  font: 800 13px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow--on-dark { color: var(--teal-bright); }

/* Buttons --------------------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 700 15px/1 var(--font-body);
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

/* Shadows take the button's own colour, so they match in both themes (navy in light, teal in dark). */
.button--primary { background: var(--primary); color: #FFFFFF; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 25%, transparent); }
.button--primary:hover { background: var(--primary-hover); color: #FFFFFF; }

/* On the dark hero: the bright teal from the logo, with navy text for contrast. */
.button--bright { background: var(--teal-bright); color: var(--navy-night); box-shadow: 0 8px 24px rgba(111, 224, 215, 0.25); }
.button--bright:hover { background: #A6EDE7; color: var(--navy-night); }

.button--ghost-dark { border-color: rgba(255, 255, 255, 0.28); color: #FFFFFF; }
.button--ghost-dark:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }

.button--quiet { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button--quiet:hover { border-color: var(--accent); color: var(--accent); }

/* Brand ----------------------------------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { display: block; height: 32px; width: auto; }
.brand__tag {
  padding: 4px 10px;
  border-radius: 999px;
  font: 800 13px/1.2 var(--font-display);
  letter-spacing: 0.02em;
}

/* Syntax colours, shared by every code sample. */
.t-key { color: #8FB0F0; }
.t-str { color: var(--teal-bright); }
.t-num { color: #FFC27A; }
.t-bool { color: #F5A3C7; }
.t-punc { color: #7F8BA6; }
.t-cmd { color: #FFFFFF; font-weight: 500; }

/* ---------------------------------------------------------------------------------------------
   Home: header and hero
   --------------------------------------------------------------------------------------------- */

.site-header--over-hero { position: absolute; inset: 0 0 auto; z-index: 10; color: #FFFFFF; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.site-header .brand__tag { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 8px 12px; border-radius: 10px; color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: 15px; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.site-nav__out::after { content: " ↗"; opacity: 0.6; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 156px 0 112px;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(0, 167, 157, 0.38), transparent 62%),
    radial-gradient(700px 480px at -10% 110%, rgba(66, 112, 204, 0.35), transparent 60%),
    linear-gradient(160deg, #18408A 0%, var(--navy-deep) 45%, var(--navy-night) 100%);
  color: rgba(255, 255, 255, 0.86);
}

/* Gradients are used only in the hero background (its fill, the bands and this dot grid's fade),
   by the design rule. Text, buttons, cards and everything else use solid colours. */
/* A faint dot grid, fading out towards the copy. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(105deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 75%);
}

/* The two slanted bands of the BizEdge mark, oversized behind the code sample. */
.hero__bands { position: absolute; right: -140px; bottom: -120px; width: 760px; height: 560px; pointer-events: none; }
.band {
  position: absolute;
  left: 0;
  width: 640px;
  height: 190px;
  border-radius: 28px 120px 120px 28px;
  transform: skewY(27deg);
  transform-origin: left top;
}
.band--navy { top: 0; background: linear-gradient(90deg, rgba(66, 112, 204, 0.0), rgba(66, 112, 204, 0.42)); }
.band--teal { top: 215px; background: linear-gradient(90deg, rgba(0, 167, 157, 0.0), rgba(0, 167, 157, 0.5)); }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero__accent { color: var(--teal-bright); }
/* The 404 page is only a hero, so it fills the window with the message centred. */
.hero--message { display: flex; align-items: center; min-height: 100vh; min-height: 100dvh; }
.hero__lead { max-width: 34em; margin-top: 22px; font-size: 18px; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__stats { display: flex; gap: 36px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
/* Each stat is <dt>label</dt><dd>value</dd>, shown value first. */
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dd { margin: 0; color: #FFFFFF; font: 900 30px/1.1 var(--font-display); }
.hero__stats dt { color: rgba(255, 255, 255, 0.62); font-size: 14px; }

/* The request-and-response window. */
.code-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(7, 16, 39, 0.82);
  box-shadow: 0 40px 80px rgba(3, 10, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  font: 400 13.5px/1.7 var(--font-code);
}
.code-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.code-window__path { color: #FFFFFF; font-weight: 500; }
.code-window__status { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--teal-bright); font-size: 12px; }
.code-window__request { padding: 18px 20px; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); color: #C9D4EA; }
.code-window__response { padding: 18px 20px 22px; color: #C9D4EA; }

.method {
  padding: 3px 8px;
  border-radius: 6px;
  font: 500 11.5px/1.3 var(--font-code);
  letter-spacing: 0.04em;
}
.method--get { background: rgba(111, 224, 215, 0.14); color: var(--teal-bright); }

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}

/* ---------------------------------------------------------------------------------------------
   Home: sections
   --------------------------------------------------------------------------------------------- */

.section { padding: 104px 0; }
.section--tinted { background: var(--canvas-tint); border-block: 1px solid var(--line); }
.section--tight { padding: 24px 0 104px; }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
.section-head__lead { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* API cards. With a single API the card spreads across the row; with more they form a grid. */
.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.api-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.api-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--teal);
}
.api-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); box-shadow: var(--shadow-lift); }

.api-grid--single { grid-template-columns: minmax(0, 1fr); }
.api-grid--single .api-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding: 40px; }
.api-grid--single .api-card__detail { padding-left: 48px; border-left: 1px solid var(--line); }

.api-card__intro, .api-card__detail { display: flex; flex-direction: column; gap: 20px; }
.api-card__title { display: flex; align-items: center; gap: 16px; }
.api-card__title h3 { font-size: 24px; font-weight: 800; }
.api-card__title h3 a { color: var(--ink); }
.api-card__title h3 a:hover { color: var(--accent); }
.api-card__audience { color: var(--muted); font-size: 14px; }
.api-card__title .pill { margin-left: auto; align-self: flex-start; }
.api-card__tagline { color: var(--body); font-size: 17px; }

.api-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 27px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 25%, transparent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--accent-alt);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.base-url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas-tint);
}
.base-url code { flex: 1; min-width: 0; overflow: hidden; padding: 0; background: none; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.copy {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
}
.copy:hover { border-color: var(--accent); color: var(--accent); }

.api-card__count { color: var(--muted); font-size: 15px; }
.api-card__count strong { color: var(--ink); font: 900 22px/1 var(--font-display); }

.sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sections li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
}

.api-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* Getting started */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.step h3 { font-size: 20px; font-weight: 800; }
.step__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--accent-alt);
  font: 900 20px/1 var(--font-display);
}
.step__note { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 14px; }

.mini-code {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--code-bg);
  color: #C9D4EA;
  font: 400 13px/1.65 var(--font-code);
}
/* In a narrow card a long URL wraps instead of hiding behind a scrollbar. */
.mini-code--wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Conventions */
.conventions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.convention {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.convention h3 { font-size: 18px; font-weight: 800; }
.convention p { color: var(--body); font-size: 15px; }
.convention--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--navy-soft);
  border-color: transparent;
}
.convention--wide h3 { font-size: 24px; margin-bottom: 10px; }
.convention--wide p { font-size: 16px; }
.convention__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--navy-soft);
  color: var(--accent);
  font-size: 21px;
}

/* Postman band */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 44px 48px;
  border-radius: 24px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
}
.cta-band h2 { color: #FFFFFF; font-size: 30px; font-weight: 900; }
.cta-band p { max-width: 36em; margin-top: 8px; font-size: 17px; }

/* Footer */
.site-footer { padding: 48px 0; background: var(--navy-night); color: rgba(255, 255, 255, 0.7); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand__tag { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.site-footer__links { display: flex; gap: 22px; }
.site-footer__links a { color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.site-footer__links a:hover { color: var(--teal-bright); }
.site-footer__legal { width: 100%; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }

/* ---------------------------------------------------------------------------------------------
   Reference pages: the portal bar above Scalar
   --------------------------------------------------------------------------------------------- */

.reference { --scalar-custom-header-height: var(--bar-height); }

.ref-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--bar-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}
.ref-bar .brand__logo { height: 28px; }
.ref-bar .brand__tag { background: var(--teal-soft); color: var(--accent-alt); }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .ref-bar .brand__logo--light { display: none; }
:root[data-theme="dark"] .ref-bar .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ref-bar .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .ref-bar .brand__logo--dark { display: block; }
}

.ref-bar__divider { width: 1px; height: 24px; background: var(--line); }

.api-switch__name, .api-switch summary { color: var(--ink); font: 800 16px/1 var(--font-display); }
.api-switch { position: relative; }
.api-switch summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
}
.api-switch summary::-webkit-details-marker { display: none; }
.api-switch summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.api-switch summary:hover { background: var(--navy-soft); }
.api-switch ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  list-style: none;
}
.api-switch li a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; }
.api-switch li a:hover { background: var(--navy-soft); }
.api-switch li a[aria-current="page"] { background: var(--teal-soft); color: var(--accent-alt); }

.ref-bar__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bar-link {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.bar-link:hover { border-color: var(--accent); color: var(--accent); }
.bar-link--home { border-color: transparent; background: var(--primary); color: #FFFFFF; }
.bar-link--home:hover { background: var(--primary-hover); border-color: transparent; color: #FFFFFF; }

.ref-fallback { max-width: 40em; margin: 0 auto; padding: 64px 24px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------------------------------------
   Smaller screens
   --------------------------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero { padding: 128px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__bands { opacity: 0.6; }
  .api-grid--single .api-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .api-grid--single .api-card__detail { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .conventions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .site-nav a { display: none; }
  .site-header__inner { height: 72px; }
  .brand__logo { height: 28px; }
  .hero { padding: 112px 0 72px; }
  .hero__lead { font-size: 17px; }
  .hero__stats { gap: 24px; }
  .hero__actions .button { flex: 1 1 100%; }
  .code-window { font-size: 12px; }
  .section { padding: 72px 0; }
  .section--tight { padding: 8px 0 72px; }
  .api-card, .api-grid--single .api-card { padding: 24px; }
  .api-grid { grid-template-columns: minmax(0, 1fr); }
  .api-card__title { flex-wrap: wrap; }
  .api-card__title .pill { margin-left: 70px; }
  .conventions, .convention--wide { grid-template-columns: minmax(0, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .ref-bar { gap: 10px; padding: 0 12px; }
  .ref-bar .brand__tag, .ref-bar__divider, .bar-link:not(.bar-link--home) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
