/* Fire public site — brand system derived from the Vivid Edge mark
   (branding/fire-logo-source.png): navy disc, flame orange-red, teal core.
   T-1280, 2026-10-13. Contrast ratios computed against every background
   token; see HISTORY.md. Typography floor per /var/www/TYPOGRAPHY_STANDARD.md:
   body 16px, nothing below 14px, de-emphasise on ONE axis only. */

:root {
  --bg:        #00071c;   /* deepest — page background */
  --navy:      #001935;   /* the disc — raised surfaces, nav, hero */
  --card:      #042440;
  --elev:      #073053;
  --border:    #0f3350;
  --border-strong: #1d4a73;

  --text:      #eaf2ff;   /* 17.8:1 on bg */
  --muted:     #9fb3c8;   /* 6.3:1 worst case (elev) — AA everywhere */

  --flame:     #f54316;   /* FILL / large text only (3.7:1 on elev) */
  --flame-hot: #ff7a3d;   /* flame as TEXT: 5.2:1 worst case */
  --flame-glow: rgba(245, 67, 22, 0.35);
  --flame-dim:  rgba(245, 67, 22, 0.14);

  --teal:      #069fa0;   /* FILL */
  --teal-text: #2cc5c3;   /* teal as TEXT: 6.4:1 worst case */
  --teal-glow: rgba(6, 159, 160, 0.35);
  --teal-dim:  rgba(6, 159, 160, 0.14);

  --amber:     #f4a261;   /* 6.5:1 worst case — highlights, badges */
  --cream:     #fff3e0;

  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Type scale — six roles (TYPOGRAPHY_STANDARD). 16px root. */
  --fs-display: clamp(2.4rem, 5.4vw, 4.2rem);
  --fs-h1:      clamp(1.75rem, 3.2vw, 2.4rem);
  --fs-h2:      1.375rem;
  --fs-h3:      1.125rem;
  --fs-body:    1rem;
  --fs-lead:    1.125rem;
  --fs-ui:      0.9375rem;
  --fs-meta:    0.875rem;   /* the floor */

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code, pre, .mono { font-family: var(--font-mono); }
code { font-size: 0.95em; color: var(--teal-text); }
pre code { color: inherit; font-size: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 720px) { .wrap { padding: 0 1.75rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(0, 7, 28, 0.82); border-bottom: 1px solid var(--border); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: var(--fs-ui); color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; font-size: var(--fs-ui); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 4rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--border); padding: 0.5rem 1.25rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
  .nav-links a.btn { margin-top: 0.75rem; justify-content: center; border-bottom: none; }
}

/* ── Buttons (button-guidelines: commit amber / go teal / secondary / danger) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border-radius: var(--radius-sm); font-weight: 650; font-size: var(--fs-ui); text-decoration: none; padding: 0.65rem 1.25rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: linear-gradient(135deg, var(--flame-hot), var(--flame)); color: #1a0600; box-shadow: 0 0 0 1px rgba(245,67,22,0.35), 0 10px 28px -10px var(--flame-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(245,67,22,0.55), 0 14px 32px -10px var(--flame-glow); }
.btn-teal { background: linear-gradient(135deg, #12b5b3, var(--teal)); color: #02211f; box-shadow: 0 0 0 1px rgba(6,159,160,0.35), 0 10px 28px -10px var(--teal-glow); }
.btn-teal:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--teal-text); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.0625rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--navy); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: 4.5rem 0 4rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding: 3rem 0 2.5rem; } }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px var(--border); }
.hero-art::before { content: ''; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(ellipse at center, var(--flame-dim), transparent 65%); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); border: 1px solid rgba(44,197,195,0.35); background: var(--teal-dim); padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.4rem; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-text); box-shadow: 0 0 10px var(--teal-text); }
.display { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 16ch; margin-bottom: 1.4rem; }
.display .grad { background: linear-gradient(120deg, var(--teal-text) 0%, #7fe3df 40%, var(--flame-hot) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--fs-lead); color: #c9d6e8; max-width: 52ch; margin-bottom: 2rem; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.stat-row { display: flex; gap: 2.25rem; flex-wrap: wrap; }
.stat .num { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat .label { font-size: var(--fs-meta); color: var(--muted); margin-top: 0.2rem; }

/* ── Sections ────────────────────────────────────────────────────────── */
section.band { padding: 5rem 0; border-bottom: 1px solid var(--border); }
section.band.alt { background: var(--navy); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.kicker { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.1em; text-transform: uppercase; color: var(--flame-hot); margin-bottom: 0.7rem; }
h1.page-title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 0.9rem; }
h2 { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.85rem; }
h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: 0.5rem; }
.section-sub { color: var(--muted); font-size: var(--fs-lead); max-width: 46rem; }
.prose { max-width: 68ch; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: #d6e0ee; }
.prose li { margin-left: 1.25rem; margin-bottom: 0.35rem; }
.prose h2 { margin-top: 2.5rem; font-size: var(--fs-h2); }
.prose h3 { margin-top: 1.75rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--teal-text); }
.prose pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.1rem; overflow-x: auto; margin-bottom: 1.1rem; font-size: var(--fs-meta); line-height: 1.55; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: var(--fs-ui); }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--teal); padding-left: 1rem; color: var(--muted); margin-bottom: 1rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .stat-row { gap: 1.25rem; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.card.link { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--teal-text); transform: translateY(-2px); }
.card .icon { width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--teal-dim); color: var(--teal-text); margin-bottom: 1rem; font-size: 1.15rem; }
.card .icon.flame { background: var(--flame-dim); color: var(--flame-hot); }
.card p { color: var(--muted); }
.card .more { display: inline-block; margin-top: 0.9rem; color: var(--teal-text); font-weight: 600; font-size: var(--fs-ui); }
.card-art { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1.1rem; border: 1px solid var(--border); background: var(--navy); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.feature-split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; gap: 1.75rem; } .feature-split.flip > :first-child { order: 0; } }
.feature-split img { border-radius: var(--radius); border: 1px solid var(--border); }

.codeblock { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; overflow-x: auto; font-family: var(--font-mono); font-size: var(--fs-meta); line-height: 1.6; color: #c3d2e6; }
.codeblock .c1 { color: var(--muted); }
.codeblock .k { color: var(--teal-text); }
.codeblock .s { color: var(--amber); }
.codeblock .f { color: var(--flame-hot); }

.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); border: 1px solid var(--border-strong); padding: 0.3rem 0.65rem; border-radius: 999px; }
.badge.teal { color: var(--teal-text); border-color: rgba(44,197,195,0.35); background: var(--teal-dim); }
.badge.flame { color: var(--flame-hot); border-color: rgba(245,67,22,0.35); background: var(--flame-dim); }
.badge-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.25rem; }

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.table th, .table td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tr:hover td { background: rgba(255,255,255,0.015); }
.table .num { font-family: var(--font-mono); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.table-wrap .table th { background: var(--navy); position: sticky; top: 0; }

.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; display: flex; flex-direction: column; }
.price-card.highlight { border-color: rgba(245,67,22,0.5); box-shadow: 0 0 0 1px rgba(245,67,22,0.2), 0 20px 60px -30px var(--flame-glow); }
.price-card .tier { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 0.5rem; }
.price-card .amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.price-card .amount small { font-size: var(--fs-ui); color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 1rem 0 1.25rem; }
.price-card li { padding: 0.5rem 0; border-top: 1px solid var(--border); color: #d6e0ee; }
.price-card li:first-child { border-top: none; }
.price-card .btn { margin-top: auto; }

.callout { border: 1px solid var(--border-strong); border-left: 4px solid var(--teal); background: var(--card); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.25rem 0; color: #d6e0ee; }
.callout.flame { border-left-color: var(--flame); }

.faq details { border-top: 1px solid var(--border); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 650; font-size: var(--fs-body); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--teal-text); font-family: var(--font-mono); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin-top: 0.6rem; max-width: 68ch; }

.cta-band { text-align: center; background: radial-gradient(ellipse at top, var(--flame-dim), transparent 60%), radial-gradient(ellipse at bottom, var(--teal-dim), transparent 60%); border-bottom: none; }
.cta-band h2 { margin: 0 auto 0.75rem; }
.cta-band .section-sub { margin: 0 auto 2rem; }
.cta-band .cta-row { justify-content: center; }
.cta-torch { display: block; width: 170px; height: 170px; margin: 0 auto 1.5rem; border-radius: 16px; box-shadow: 0 14px 40px rgba(245,67,22,0.22); }

.breadcrumb { font-size: var(--fs-meta); color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

.toc { position: sticky; top: 5rem; align-self: start; font-size: var(--fs-ui); }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 0.3rem 0; border-left: 2px solid var(--border); padding-left: 0.8rem; }
.toc a:hover { color: var(--text); border-left-color: var(--teal-text); }
.toc .l3 { padding-left: 1.6rem; font-size: var(--fs-meta); }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .toc { position: static; margin-bottom: 1.5rem; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { padding: 3.5rem 0 2.5rem; background: var(--navy); border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-size: var(--fs-meta); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; font-weight: 600; }
.foot-col a { display: block; color: #d6e0ee; text-decoration: none; padding: 0.22rem 0; font-size: var(--fs-ui); }
.foot-col a:hover { color: var(--teal-text); }
.foot-col p { color: var(--muted); font-size: var(--fs-ui); max-width: 34ch; margin-top: 0.6rem; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: var(--fs-meta); color: var(--muted); }

/* part A */
.catalog-filter { display: block; max-width: 28rem; margin-top: 1.5rem; }
.catalog-filter input { width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; color: var(--text); font-size: var(--fs-body); font-family: var(--font-sans); }
.catalog-filter input:focus { outline: none; border-color: var(--teal-text); box-shadow: 0 0 0 3px var(--teal-dim); }
.catalog-empty { color: var(--muted); margin-top: 0.75rem; }
.model-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; font-size: var(--fs-ui); }
.model-dl dt { color: var(--muted); text-transform: capitalize; }
.model-dl dd { word-break: break-word; }
.docs-prose { min-width: 0; }
.docs-prose h1 { font-size: var(--fs-h1); margin: 2rem 0 0.75rem; }
.docs-prose h1:first-child { margin-top: 0; }
.docs-prose h2 { scroll-margin-top: 5rem; }
.docs-prose h3 { scroll-margin-top: 5rem; }
.docs-prose code { word-break: break-word; }
.docs-prose .table-wrap, .docs-prose table { display: block; overflow-x: auto; }
.toc { max-height: calc(100vh - 6rem); overflow-y: auto; }

/* part C — landing/compare pages (T-1280) */
.compare-table th[scope="row"] { color: var(--text); font-weight: 600; min-width: 11rem; }
.compare-table td { color: #d6e0ee; min-width: 14rem; }
.compare-table td strong { color: var(--text); }
.hero .page-title.display { max-width: 18ch; }
.hero .breadcrumb { margin-bottom: 1rem; }
