:root {
  --bg: #0c0d10;
  --bg-raise: #121318;
  --bg-panel: #16181f;
  --border: #23262f;
  --border-soft: #1c1f27;
  --text: #e8e9ed;
  --text-dim: #9aa0ac;
  --text-faint: #656b78;
  --accent: #f6a821;
  --accent-soft: rgba(246, 168, 33, 0.12);
  --green: #4ade80;
  --red: #f87171;
  --blue: #60a5fa;
  --purple: #c084fc;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --section-y: 5.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--accent);
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; }

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

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  transform: translateY(-130%);
  background: var(--accent);
  color: #1a1204;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.skip-link:focus { transform: none; }

/* ---------- scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  flex: none;
}

.brand-mark {
  width: 2.4rem;
  height: 1.22rem;
  color: var(--text);
  flex: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-link {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav-link:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 560;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: var(--r-md);
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--accent);
  color: #1a1204;
  border-color: var(--accent);
  box-shadow: 0 8px 24px -12px rgba(246, 168, 33, 0.7);
}

.btn-primary:hover { background: #ffbc45; border-color: #ffbc45; }

.btn-secondary {
  background: var(--bg-raise);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover { background: var(--bg-panel); border-color: var(--text-faint); }

.btn-ghost {
  color: var(--text-dim);
  border-color: var(--border);
}

.btn-ghost:hover { color: var(--text); border-color: var(--text-faint); }

.btn-small {
  font-size: 0.85rem;
  padding: 0.38rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(246, 168, 33, 0.28);
}

.btn-small:hover { background: rgba(246, 168, 33, 0.2); transform: none; }

.arrow-link {
  color: var(--accent);
  font-weight: 550;
  font-size: 0.95rem;
  transition: opacity 0.15s ease;
}

.arrow-link span { display: inline-block; transition: transform 0.15s ease; }
.arrow-link:hover span { transform: translateX(3px); }

/* ---------- section furniture ---------- */

.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 660;
  text-align: center;
  margin-bottom: 1rem;
}

.section-sub {
  max-width: 44rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  color: var(--text-dim);
}

.section-title + .pillar-grid,
.section-title + .cap-grid,
.section-title + .faq-list { margin-top: 2.75rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* ---------- hero ---------- */

/* The decorative glow is wider than the page on purpose, so the hero has to
   contain it or it becomes horizontal scroll on narrow screens. */
.hero {
  padding: 5.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 50% auto;
  width: 60rem;
  height: 34rem;
  transform: translateX(50%);
  background: radial-gradient(ellipse at center, rgba(246, 168, 33, 0.11), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 1.3rem;
  letter-spacing: 0.02em;
}

.hero-kicker em { color: var(--text-dim); font-style: italic; }

.hero-kicker-sep { color: var(--text-faint); }

.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  margin-bottom: 1.3rem;
}

.hero-sub {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  color: var(--text-dim);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- screenshots ---------- */

.showcase { padding: 1.5rem 0 var(--section-y); }

.shot { margin: 0; }

.shot-frame {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-hero .shot-frame {
  box-shadow: var(--shadow), 0 0 140px -50px rgba(246, 168, 33, 0.35);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #1b1e26, #16181f);
}

.tl-dot { width: 0.68rem; height: 0.68rem; border-radius: 50%; flex: none; }
.tl-red { background: #4a3634; }
.tl-yellow { background: #48412d; }
.tl-green { background: #2f4435; }

.shot-title {
  flex: 1;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- browser band ---------- */

.band {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem 3rem;
  align-items: start;
  background: var(--bg-raise);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 2.25rem 2.25rem;
}

.band-copy h2 {
  font-size: 1.5rem;
  font-weight: 640;
  margin-bottom: 0.7rem;
}

.band-copy p { color: var(--text-dim); font-size: 0.95rem; }

.band-copy a {
  color: var(--accent);
  border-bottom: 1px solid rgba(246, 168, 33, 0.35);
}

.band-copy a:hover { border-bottom-color: var(--accent); }

.band-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.band-facts li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.band-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.band-facts strong { color: var(--text); font-weight: 600; }

/* ---------- pillars ---------- */

.pillars {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.pillar {
  background: var(--bg-raise);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.6rem 1.6rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.pillar:hover { border-color: var(--border); transform: translateY(-2px); }

.pillar h3 { font-size: 1.05rem; font-weight: 620; margin-bottom: 0.55rem; }

.pillar p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- alternating feature rows ---------- */

.rows {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 3rem;
  align-items: center;
}

.row + .row { margin-top: 5rem; }

.row-flip .row-copy { order: 2; }

.row-copy h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 640;
  margin-bottom: 0.85rem;
}

.row-copy h2 code { font-size: 0.85em; }

.row-copy p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.row-copy p:last-child { margin-bottom: 0; }

/* ---------- collaboration ---------- */

.collab {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.step {
  background: var(--bg-raise);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.5rem 1.6rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.step h3 { font-size: 1rem; font-weight: 620; margin-bottom: 0.4rem; }

.step p { color: var(--text-dim); font-size: 0.92rem; }

.diff-figure {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.diff-figure figcaption {
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diff-cmd { color: var(--accent); }

.diff-figure figcaption code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-dim);
}

.diff {
  margin: 0;
  padding: 0.9rem 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.6;
}

.diff code { display: block; background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

.d-hunk, .d-ctx, .d-del, .d-add { display: block; padding: 0 1.1rem; white-space: pre; }
.d-hunk { color: var(--blue); opacity: 0.75; }
.d-ctx { color: var(--text-faint); }
.d-del { color: #fca5a5; background: rgba(248, 113, 113, 0.09); box-shadow: inset 2px 0 0 var(--red); }
.d-add { color: #a7f3c4; background: rgba(74, 222, 128, 0.09); box-shadow: inset 2px 0 0 var(--green); }

.collab-note {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.collab-note a { color: var(--accent); }

/* ---------- cli ---------- */

.cli {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.cli-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.cli-copy h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 640;
  margin-bottom: 0.85rem;
}

.cli-copy p { color: var(--text-dim); margin-bottom: 1rem; font-size: 0.97rem; }
.cli-copy p:last-child { margin-bottom: 0; }

.terminal {
  margin: 0;
  background: #0a0b0e;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.term {
  margin: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.term code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-ok { color: var(--green); }
.t-fail { color: var(--red); }
.t-dim { color: var(--text-faint); }

/* ---------- capabilities ---------- */

.capabilities {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.cap {
  background: var(--bg-raise);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.18s ease;
}

.cap:hover { border-color: var(--border); }

.cap h3 { font-size: 0.95rem; font-weight: 620; margin-bottom: 0.4rem; }

.cap p { color: var(--text-dim); font-size: 0.88rem; }

.cap a { color: var(--accent); }

/* ---------- compare teaser ---------- */

.compare {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.compare-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--bg-raise);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
}

.compare-card h2 { font-size: 1.4rem; font-weight: 640; margin-bottom: 0.6rem; }

.compare-card p { color: var(--text-dim); font-size: 0.95rem; max-width: 44rem; }

.compare-card .btn { flex: none; }

/* ---------- faq ---------- */

.faq {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
}

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq-item + .faq-item { border-top: 1px solid var(--border-soft); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.4rem;
  font-weight: 560;
  font-size: 1rem;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.faq-item summary:hover { background: var(--bg-raise); }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.35rem;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -0.1rem; border-color: var(--accent); }

.faq-item p {
  padding: 0 3rem 1.3rem 1.4rem;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.faq-item a {
  color: var(--accent);
  border-bottom: 1px solid rgba(246, 168, 33, 0.3);
}

.faq-item a:hover { border-bottom-color: var(--accent); }

/* ---------- cta ---------- */

.cta {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.cta-icon {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 1.25rem;
  border-radius: 22%;
}

.cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.cta p { color: var(--text-dim); margin-bottom: 1.85rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-dim);
  font-weight: 550;
}

.footer-brand .brand-mark { width: 1.9rem; height: 0.97rem; color: var(--text-faint); }

.footer-note { color: var(--text-faint); }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

/* ---------- docs layout ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 5rem;
  border-right: 1px solid var(--border-soft);
  padding-right: 1.25rem;
}

.docs-sidebar-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 0.32rem 0.6rem;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.docs-nav a:hover { color: var(--text); background: var(--bg-raise); }

.docs-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { padding: 0 0.35rem; }

/* ---------- prose ---------- */

/* A grid item defaults to min-width:auto, which lets the widest child (the
   comparison table) push the whole column past the viewport on a phone. */
.docs-layout > * { min-width: 0; }

.prose { width: 100%; max-width: 46rem; min-width: 0; }

/* Standalone prose pages have no docs sidebar to balance the column. */
.wrap > .prose { margin-inline: auto; }

.prose h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 650;
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.9rem 0 0.6rem;
}

.prose p, .prose li { color: var(--text-dim); }

.prose p { margin-bottom: 1rem; }

.prose .lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prose a:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid rgba(246, 168, 33, 0.3);
}

.prose a:not(.btn):hover { border-bottom-color: var(--accent); }

.prose strong { color: var(--text); font-weight: 600; }

.prose pre {
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose figure { margin-bottom: 1.25rem; }

.prose figcaption {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-bottom: 0.4rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 2.5rem 0;
}

.prose img {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
}

/* ---------- callouts ---------- */

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-faint);
  border-radius: var(--r-sm);
  background: var(--bg-raise);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.callout p:last-child { margin-bottom: 0; }

.callout-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.callout-soon { border-left-color: var(--accent); }
.callout-soon .callout-label { color: var(--accent); }

.callout-warn { border-left-color: var(--red); }
.callout-warn .callout-label { color: var(--red); }

/* ---------- comparison table ---------- */

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
}

.cmp {
  border-collapse: collapse;
  width: 100%;
  min-width: 42rem;
  font-size: 0.88rem;
}

.cmp caption {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel);
}

.cmp th, .cmp td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  color: var(--text-dim);
}

.cmp thead th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-panel);
}

.cmp tbody th {
  color: var(--text);
  font-weight: 500;
  width: 32%;
}

.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }

.yes { color: var(--green); }
.no { color: var(--red); }
.soon { color: var(--accent); }

/* ---------- pager ---------- */

.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 0.7rem 1rem;
  min-width: 12rem;
  transition: border-color 0.15s ease;
}

.pager-link:hover { border-color: var(--border); }

.pager-link.next { text-align: right; margin-left: auto; }

.pager-dir {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.pager-title { color: var(--text); font-size: 0.92rem; }

/* ---------- docs index cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  display: block;
  background: var(--bg-raise);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--border); }

.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }

.card p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }

.prose .card { border-bottom: none; }

/* ---------- changelog ---------- */

.release {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.75rem;
  margin-top: 2.5rem;
}

.release:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.release-meta {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.release-meta h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.4rem;
  color: var(--accent);
}

.release-date { font-family: var(--mono); font-size: 0.82rem; color: var(--text-faint); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  :root { --section-y: 4.25rem; }

  .row, .cli-inner, .band-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .row + .row { margin-top: 3.5rem; }
  .row-flip .row-copy { order: 0; }

  .compare-card { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .docs-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding-right: 0;
    padding-bottom: 1.25rem;
  }
  .docs-nav { flex-direction: row; flex-wrap: wrap; gap: 0.3rem; }
  .docs-nav a { border-left: none; border: 1px solid var(--border-soft); }
}

@media (max-width: 760px) {
  .hero { padding: 3.5rem 0 2rem; }
  .hero h1 { letter-spacing: -0.025em; }
  .nav-wide { display: none; }
  .header-nav { gap: 1rem; }
  .band-inner { padding: 1.6rem 1.4rem; }
  .compare-card { padding: 1.6rem 1.4rem; }
  .shot-bar { padding: 0.5rem 0.75rem; }
  .shot-title { display: none; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .faq-item summary { padding-right: 2.6rem; font-size: 0.95rem; }
  .faq-item p { padding-right: 1.4rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .pager-link { min-width: 100%; }
  .pager-link.next { margin-left: 0; }
  .diff { font-size: 0.72rem; }
  .term { font-size: 0.7rem; }
}

.mime {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-faint);
  margin-top: 0.15rem;
}
