/*
 * Token Gear website (by FreshToken) — one stylesheet for every public page.
 * Colours follow docs/BRAND.md (citrus: tangerine brand, leaf-green accent,
 * cream and warm-dark neutrals, plus blue / tangerine / green lanes for the
 * architecture diagram). Self-contained: no web fonts are fetched; Inter and
 * JetBrains Mono are used when installed, system fonts otherwise.
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --brand: #f26b1d;
  --primary: #c2410c;
  --primary-hover: #9a3412;
  --primary-soft: #ffefe3;
  --on-primary: #ffffff;
  --leaf: #2f8f4e;
  --leaf-ink: #1f7a40; /* leaf as text: 5:1 on bg */
  --leaf-soft: #e6f4ea;
  --bg: #fffaf5;
  --surface: #ffffff;
  --ink: #1f1410;
  --muted: #6b5a50;
  --line: #f0e1d5;
  --accent-text: #c2410c; /* tangerine text that passes AA on bg and surface */
  --danger: #b42318;
  --danger-soft: #fdecea;
  --amber-ink: #8a5300;
  --amber-soft: #fff3d6;

  /* Code panels are dark in both themes. */
  --code-bg: #1f1410;
  --code-bar: #2a1d17;
  --code-line: #3a2e27;
  --code-ink: #f7ede6;
  --code-muted: #b8a79c;
  --code-string: #ffc799;
  --code-cmd: #ff8a3d;
  --code-ok: #5cc27d;

  --shadow: 0 18px 50px rgba(31, 20, 16, 0.08);
  --shadow-strong: 0 26px 70px rgba(31, 20, 16, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #ff8a3d;
    --primary: #ff8a3d;
    --primary-hover: #ffa366;
    --primary-soft: #3a2217;
    --on-primary: #15100d;
    --leaf: #5cc27d;
    --leaf-ink: #5cc27d;
    --leaf-soft: #17291d;
    --bg: #15100d;
    --surface: #1e1814;
    --ink: #f7ede6;
    --muted: #b8a79c;
    --line: #3a2e27;
    --accent-text: #ff8a3d;
    --danger: #ff8f84;
    --danger-soft: #3b1a17;
    --amber-ink: #ffcf70;
    --amber-soft: #33270f;

    --code-bg: #0f0b09;
    --code-bar: #1a1310;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --brand: #ff8a3d;
  --primary: #ff8a3d;
  --primary-hover: #ffa366;
  --primary-soft: #3a2217;
  --on-primary: #15100d;
  --leaf: #5cc27d;
  --leaf-ink: #5cc27d;
  --leaf-soft: #17291d;
  --bg: #15100d;
  --surface: #1e1814;
  --ink: #f7ede6;
  --muted: #b8a79c;
  --line: #3a2e27;
  --accent-text: #ff8a3d;
  --danger: #ff8f84;
  --danger-soft: #3b1a17;
  --amber-ink: #ffcf70;
  --amber-soft: #33270f;
  --code-bg: #0f0b09;
  --code-bar: #1a1310;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 26px 70px rgba(0, 0, 0, 0.5);
}

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

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

code,
pre {
  font-family: var(--font-mono);
}

h1,
h2,
h3 {
  line-height: 1.15;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 650;
}

.skip-link:focus {
  top: 12px;
}

main {
  overflow-x: clip; /* decorative glows never widen the page */
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-weight: 650;
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

.wordmark span {
  color: var(--brand);
}
/* Centre the wordmark on the orange disc, which sits below the mark's centre
   (the leaf takes the top of the box). */
.brand .wordmark {
  transform: translateY(0.1em);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 max(16px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header nav {
  display: flex;
  gap: 26px;
  margin-right: auto;
}

.site-header nav a,
.header-auth > a:not(.button),
.header-auth button {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.site-header nav a:hover,
.header-auth > a:not(.button):hover,
.header-auth button:hover {
  color: var(--ink);
}

.site-header > .button {
  margin-left: auto;
}

.site-header nav + .button {
  margin-left: 0;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.header-auth button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.user-identity {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 22%, transparent);
  transition: background 0.15s, transform 0.15s;
}

.button:hover {
  background: var(--primary-hover);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.button-small {
  padding: 8px 15px;
  font-size: 14px;
  box-shadow: none;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
}

.text-link {
  font-weight: 650;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent);
  text-underline-offset: 3px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .dot,
.eyebrow > span:empty {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft);
}

.lead {
  max-width: 600px;
  font-size: 18px;
  color: var(--muted);
}

.section {
  padding-block: 88px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.section-tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

:not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--ink);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

/* ---------- Lanes (tenant / engine colours of the architecture) ---------- */

:root {
  --lane-blue: #2563eb;
  --lane-blue-ink: #1d4ed8; /* text on bg/surface: >= 5:1 */
  --lane-blue-soft: #e8effd;
  --lane-tangerine: #f26b1d;
  --lane-tangerine-ink: #b53d0a;
  --lane-tangerine-soft: #ffefe3;
  --lane-green: #2f8f4e;
  --lane-green-ink: #1f7a40;
  --lane-green-soft: #e6f4ea;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lane-blue: #6ea8ff;
    --lane-blue-ink: #8dbbff;
    --lane-blue-soft: #16233a;
    --lane-tangerine: #ff8a3d;
    --lane-tangerine-ink: #ffa366;
    --lane-tangerine-soft: #3a2217;
    --lane-green: #5cc27d;
    --lane-green-ink: #74d091;
    --lane-green-soft: #17291d;
  }
}

:root[data-theme="dark"] {
  --lane-blue: #6ea8ff;
  --lane-blue-ink: #8dbbff;
  --lane-blue-soft: #16233a;
  --lane-tangerine: #ff8a3d;
  --lane-tangerine-ink: #ffa366;
  --lane-tangerine-soft: #3a2217;
  --lane-green: #5cc27d;
  --lane-green-ink: #74d091;
  --lane-green-soft: #17291d;
}

.lane-blue {
  --lane: var(--lane-blue);
  --lane-ink: var(--lane-blue-ink);
  --lane-soft: var(--lane-blue-soft);
}

.lane-tangerine {
  --lane: var(--lane-tangerine);
  --lane-ink: var(--lane-tangerine-ink);
  --lane-soft: var(--lane-tangerine-soft);
}

.lane-green {
  --lane: var(--lane-green);
  --lane-ink: var(--lane-green-ink);
  --lane-soft: var(--lane-green-soft);
}

/* ---------- Chips / tags ---------- */

.tags,
.engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li,
.tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
  white-space: nowrap;
}

.tag[class*="lane-"] {
  border-color: color-mix(in srgb, var(--lane) 40%, transparent);
  background: var(--lane-soft);
  color: var(--lane-ink);
  font-weight: 650;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: 72px 64px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60px;
  left: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 26px 0 0;
}

/* Base URL copy box */

.base-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin-top: 28px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.base-box-label {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.base-box .base-box-url {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.copy-button {
  flex-shrink: 0;
  min-width: 76px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.copy-button:hover {
  border-color: var(--brand);
}

/* Live model panel */

.model-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.model-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.model-panel h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--leaf-ink);
  font-size: 13px;
  font-weight: 650;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px transparent;
  }
}

.model-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.model-id {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.model-panel-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.strategy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg);
  list-style: none;
}

.strategy li {
  padding: 3px 10px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.strategy .is-on {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 650;
}

/* Stats row */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 24px;
}

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

.stats strong {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s, transform 0.15s;
}

.feature:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--accent-text);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Architecture diagram ---------- */

.arch {
  margin: 0;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.arch-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arch-row,
.arch-ncps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.arch-users,
.arch-tenant {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--lane) 45%, transparent);
  border-radius: 12px;
  background: var(--lane-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.arch-tenant {
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border-width: 2px;
  border-color: var(--lane);
}

.arch-tenant strong {
  color: var(--lane-ink);
  font-size: 15px;
}

.arch-tenant small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.people {
  display: inline-flex;
  flex-shrink: 0;
}

.people i {
  position: relative;
  width: 14px;
  height: 18px;
  margin-left: -3px;
}

.people i::before,
.people i::after {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  background: var(--lane);
}

.people i::before {
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.people i::after {
  bottom: 0;
  width: 13px;
  height: 9px;
  border-radius: 7px 7px 2px 2px;
}

.sessions {
  display: flex;
  gap: 5px;
}

.sessions i {
  width: 22px;
  height: 8px;
  border-radius: 4px;
  background: var(--lane);
  opacity: 0.85;
}

.sessions i:nth-child(2) {
  opacity: 0.6;
}

.sessions i:nth-child(3) {
  opacity: 0.4;
}

.arch-arrows,
.arch-api-arrows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
  height: 34px;
}

.arch-arrows i {
  position: relative;
  justify-self: center;
  width: 2px;
  height: 100%;
  background: var(--lane);
}

.arch-arrows i::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top: 8px solid var(--lane);
}

.arch-gear {
  padding: clamp(14px, 2.5vw, 24px);
  border: 2px solid var(--lane-tangerine);
  border-radius: 16px;
  background: var(--lane-tangerine-soft);
}

.arch-gear-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.arch-gear-head .brand-mark {
  width: 40px;
  height: 40px;
}

.arch-gear-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.arch-gear-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.arch-gear-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.arch-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.arch-card h4,
.engine h4 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.arch-api {
  position: relative;
  display: grid;
  place-items: center;
  height: 56px;
}

.arch-api-arrows {
  position: absolute;
  inset: 0;
  height: auto;
}

.arch-api-arrows i {
  position: relative;
  justify-self: center;
  width: 2px;
  background: var(--muted);
}

.arch-api-arrows i::before,
.arch-api-arrows i::after {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  border: 6px solid transparent;
}

.arch-api-arrows i::before {
  top: 0;
  border-top: 0;
  border-bottom: 8px solid var(--muted);
}

.arch-api-arrows i::after {
  bottom: 0;
  border-bottom: 0;
  border-top: 8px solid var(--muted);
}

.arch-api-label {
  position: relative;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.arch-api-label b {
  color: var(--accent-text);
}

.arch-ncp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 2px solid var(--lane);
  border-radius: 16px;
  background: var(--lane-soft);
}

.ncp-name {
  margin: 0;
  color: var(--lane-ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.engine {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.engine-part {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
}

.engine-part + .engine-part {
  margin-top: 8px;
}

.engine-part b {
  display: block;
  font-weight: 650;
}

.engine-part .tags {
  margin-top: 6px;
}

.hosting,
.gpu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
}

.hosting > span,
.gpu > span:first-child {
  color: var(--muted);
  font-weight: 650;
}

.gpu {
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--lane) 45%, transparent);
}

.gpu-cells {
  display: flex;
  gap: 4px;
}

.gpu-cells i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--lane);
  opacity: 0.75;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--lane);
}

.swatch-arrow {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.principle:nth-child(4) {
  grid-column: 2 / span 2;
}

.principle-art {
  width: 100%;
  height: auto;
  aspect-ratio: 160 / 96;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.principle-num {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.principle h3 {
  margin: 4px 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Illustration paint */
.fl-blue { fill: var(--lane-blue); }
.fl-tangerine { fill: var(--lane-tangerine); }
.fl-green { fill: var(--lane-green); }
.fl-soft { fill: var(--bg); }
.st-blue { stroke: var(--lane-blue); }
.st-tangerine { stroke: var(--lane-tangerine); }
.st-green { stroke: var(--lane-green); }
.st-line { stroke: var(--muted); }
.st-danger { stroke: var(--danger); stroke-linecap: round; }

.svg-text {
  fill: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
}

.svg-strong {
  fill: var(--ink);
}

.svg-on {
  fill: var(--on-primary);
  font-weight: 750;
}

/* ---------- Featured models ---------- */

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 40px;
  max-width: none;
}

.section-heading-row > div {
  max-width: 680px;
}

.section-heading-row > div > p:last-child {
  margin: 0;
  color: var(--muted);
}

.section-heading-row > .text-link {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.model-vendor {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.model-card h3 {
  margin: 4px 0 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.model-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.model-card dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.model-card dt {
  color: var(--muted);
}

.model-card dd {
  margin: 0;
  font-weight: 650;
}

/* ---------- Audiences ---------- */

.audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.audience {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.audience-ncp {
  border-color: color-mix(in srgb, var(--leaf) 45%, var(--line));
}

.audience-kicker {
  margin: 0;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-ncp .audience-kicker {
  color: var(--leaf-ink);
}

.audience h3 {
  margin: 8px 0 18px;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.03em;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--leaf-soft);
  box-shadow: inset 0 0 0 1.5px var(--leaf);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 6px;
  height: 8px;
  border: solid var(--leaf-ink);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

.audience .button {
  margin-top: auto;
}

/* ---------- Get started ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 750;
}

.steps h3 {
  margin: 4px 0 4px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.code-tabs {
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: var(--shadow-strong);
}

.code-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-bar);
}

.code-tabs-bar small {
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

[role="tablist"] {
  display: flex;
  gap: 4px;
}

[role="tab"] {
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--code-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

[role="tab"]:hover {
  color: var(--code-ink);
}

[role="tab"][aria-selected="true"] {
  background: #3a2e27;
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--code-cmd);
}

[role="tab"]:focus-visible,
.code-panel:focus-visible {
  outline: 3px solid var(--code-cmd);
  outline-offset: -3px;
}

.code-panel pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
}

pre b {
  color: var(--code-cmd);
  font-weight: 600;
}

pre q {
  quotes: none;
  color: var(--code-string);
}

pre .c {
  color: var(--code-muted);
}

pre .k {
  color: var(--code-ok);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin: 22px 0 0;
}

.health-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.health-link:hover {
  color: var(--ink);
}

.health-link i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft);
}

/* ---------- FAQ ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--accent-text);
  font-size: 18px;
  line-height: 1;
  transition: rotate 0.2s;
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq summary:focus-visible {
  outline-offset: -3px;
  border-radius: 12px;
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* ---------- Closing CTA ---------- */

.cta-section {
  padding-bottom: 32px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 22px;
  background: #c2410c;
  background-image: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 45%);
  color: #ffffff;
}

.cta h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0;
  color: #fff4e8;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.button-invert {
  background: #ffffff;
  color: #9a3412;
  box-shadow: none;
}

.button-invert:hover {
  background: #fff4e8;
}

.cta-link {
  color: #ffffff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta :focus-visible {
  outline-color: #ffffff;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding-block: 48px 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 40px;
}

.footer-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}

.footer-grid nav a {
  color: var(--muted);
}

.footer-grid nav a:hover {
  color: var(--ink);
}

.footer-grid small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Sign-in dialog (auth-modal.js) ---------- */

.auth-modal {
  width: min(430px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-strong);
}

.auth-modal::backdrop {
  background: rgba(21, 16, 13, 0.55);
  backdrop-filter: blur(3px);
}

.auth-modal[open] {
  animation: auth-in 0.18s ease-out;
}

@keyframes auth-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover {
  background: var(--primary-soft);
  color: var(--ink);
}

.auth-modal .brand {
  font-size: 19px;
  margin-bottom: 24px;
}

.auth-modal h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.auth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-modal .sso {
  display: grid;
  margin-top: 24px;
}

.auth-modal .sso-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 14px;
  font-weight: 650;
  transition: background 0.15s, border-color 0.15s;
}

.auth-modal .sso-button:hover {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.auth-modal .sso-mark {
  display: flex;
  width: 18px;
  height: 18px;
}

.auth-modal .sso-mark svg {
  width: 100%;
  height: 100%;
}

.auth-modal .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-modal .divider::before,
.auth-modal .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-modal form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.auth-modal label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}

.auth-modal [hidden] {
  display: none;
}

.auth-modal input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--muted) 45%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.auth-modal input:focus {
  outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
  outline-offset: 0;
  border-color: var(--primary);
}

.auth-modal .button {
  width: 100%;
  margin-top: 4px;
}

.auth-modal .alert {
  margin: 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--leaf-soft);
  color: var(--leaf-ink);
  font-size: 13px;
}

.auth-modal .alert.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.auth-modal .link {
  width: 100%;
  margin-top: 18px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.auth-modal .link:hover {
  text-decoration: underline;
}

.auth-modal a.link {
  display: block;
  text-align: center;
}

.auth-modal .auth-legal {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.auth-modal .auth-legal a {
  color: var(--accent-text);
  text-decoration: underline;
}

/* ---------- API reference (docs.html) ---------- */

.docs {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  padding-block: 56px 96px;
}

.docs aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  height: max-content;
  display: grid;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.docs aside p {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.docs aside a {
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.docs aside a:hover {
  background: var(--primary-soft);
  color: var(--ink);
}

.docs-hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.docs-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.docs-hero > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
}

.base-url {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.base-url span {
  padding: 9px 13px;
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.base-url code,
.base-url :not(pre) > code {
  padding: 9px 13px;
  border-radius: 0;
  background: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.docs-content section {
  padding-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.docs-content section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.docs-content section > p {
  color: var(--muted);
  font-size: 15px;
}

.endpoint-list {
  border-top: 1px solid var(--line);
}

.endpoint-list article {
  display: grid;
  grid-template-columns: 64px minmax(220px, 0.8fr) minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}

.endpoint-list article > code {
  padding: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.endpoint-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.endpoint-list b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.method {
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--leaf-soft);
  color: var(--leaf-ink);
  font: 700 11px var(--font-mono);
  text-align: center;
}

.method.post {
  background: var(--primary-soft);
  color: var(--accent-text);
}

.method.patch {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.method.delete {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding-block: 56px 72px;
}

.legal-head {
  margin-bottom: 8px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.legal-head .lead {
  font-size: 16px;
}

.legal section {
  padding-top: 32px;
}

.legal h2 {
  margin: 0 0 12px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
  color: var(--ink);
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 9px;
}

.legal li::marker {
  color: var(--brand);
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 64px 16px;
  text-align: center;
}

.not-found-card {
  max-width: 620px;
}

.not-found-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  display: block;
}

.not-found-code {
  margin: 0;
  color: var(--accent-text);
  font: 750 clamp(64px, 12vw, 120px) / 1 var(--font-mono);
  letter-spacing: -0.06em;
}

.not-found h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.03em;
}

.not-found-copy {
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.not-found .actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .principle,
  .principle:nth-child(4) {
    grid-column: auto;
  }
  .principle:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
    justify-self: center;
  }
  .models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 16px;
    padding-block: 12px 6px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px 2px 8px;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar {
    display: none;
  }
  .header-auth,
  .site-header > .button,
  .site-header nav + .button {
    margin-left: auto;
  }
  .hero {
    padding-block: 44px 56px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }
  .stats li:nth-child(3) {
    border-left: 0;
  }
  .stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .arch-ncps {
    grid-template-columns: minmax(0, 1fr);
  }
  .arch-api {
    height: 48px;
  }
  .arch-api-arrows {
    display: none;
  }
  .audiences,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-wrap {
    gap: 0;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 40px;
  }
  .docs aside {
    display: none;
  }
  .endpoint-list article {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }
  .endpoint-list p {
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .endpoint-list b {
    grid-column: 3;
    grid-row: 1;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid small {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 60px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .header-auth {
    gap: 12px;
  }
  .user-identity {
    display: none;
  }
  .lead {
    font-size: 16px;
  }
  .base-box {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px 12px;
  }
  .base-box-label {
    width: 100%;
  }
  .base-box .base-box-url {
    font-size: 14px;
  }
  .model-panel {
    padding: 16px;
  }
  .stats li {
    padding: 16px;
  }
  .features,
  .models {
    grid-template-columns: minmax(0, 1fr);
  }
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
  .principle:last-child {
    max-width: none;
  }
  .arch-users,
  .arch-tenant {
    flex-direction: column;
    gap: 6px;
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.3;
  }
  .arch-tenant strong {
    font-size: 13px;
  }
  .arch-tenant small {
    font-size: 11px;
  }
  .sessions i {
    width: 14px;
  }
  .arch-gear-head {
    align-items: flex-start;
  }
  .arch-gear-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .code-panel pre {
    padding: 18px;
    font-size: 12px;
  }
  .endpoint-list article {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .endpoint-list article > code {
    overflow-wrap: anywhere;
  }
  .endpoint-list b {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
  }
  .endpoint-list p {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .base-url {
    display: flex;
    flex-direction: column;
  }
  .auth-modal {
    padding: 26px 22px;
  }
  .auth-modal h2 {
    font-size: 23px;
  }
}

@media (max-width: 400px) {
  .site-header .button-small {
    padding: 7px 12px;
  }
  .header-auth > a[data-auth="login"] {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .stats strong {
    font-size: 20px;
  }
}
