/* ============================================================
   landing.css — Testhide public website design system
   Unified with admin: dark IDE theme + orange (#f97316) accent.
   Source: ported from testhide_landing Astro project (W21 migration).
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* surfaces */
  --bg:       #0a0c12;
  --bg-2:     #0f1219;
  --panel:    #121622;
  --panel-2:  #161a26;
  --border:   #1f2432;
  --border-2: #2a3142;

  /* text */
  --text:  #e8eef8;
  /* a11y: bumped from #8893ad (~4.7:1, borderline AA) for clear WCAG AA on dark bg */
  --muted: #9aa8c0;

  /* primary accent: orange (unified with admin) */
  --accent:   #f97316;
  --accent-h: #ea6c0a;
  --accent-2: #fdba74;

  /* brand secondary: teal */
  --teal:   #9fbebb;
  --teal-2: #7fb1ac;

  /* status */
  --green:  #5dd08f;
  --red:    #ef5b73;
  --blue:   #6fb0ff;
  --violet: #b58cff;

  /* typography */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Consolas, monospace;

  /* layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Utility ──────────────────────────────────────────────── */
.mono  { font-family: var(--font-mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.teal  { color: var(--teal); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* a11y: skip-to-content — visually hidden until focused, then pinned top-left */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--accent); color: #0a0c12; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid #fff; outline-offset: 2px; }

/* a11y: a visible keyboard-focus ring on every interactive element (was missing on
   buttons/links — invisible focus on the dark theme). Mouse users keep clean styling
   via :focus-visible (not plain :focus). */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: var(--max-w);
}

/* ── Section shared ───────────────────────────────────────── */
.section-head { margin-bottom: 48px; }
.section-head.centered { text-align: center; }
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
h1, h2, h3 { color: var(--text); }
h1 { font-size: clamp(28px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
h2 { font-size: clamp(24px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; }
.h1-accent, .h2-accent { color: var(--accent); }
.section-lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 8px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 10px; }

/* ── Navigation ───────────────────────────────────────────── */
.th-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(var(--max-w), 92vw);
  margin: 0 auto;
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
}
.nav-brand {
  display: inline-flex; align-items: center; text-decoration: none;
  border-radius: 8px; padding: 2px;
  transition: filter .15s ease;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo {
  height: 44px; width: auto;
  filter: brightness(1.3) contrast(1.1);
  transition: filter .15s ease, transform .15s ease;
}
.nav-brand:hover .nav-logo {
  filter: brightness(1.5) contrast(1.15) drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 50%, transparent));
  transform: translateY(-1px);
}
.nav-primary { display: flex; gap: 4px; justify-content: center; }
.nav-link {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  text-decoration: none; padding: 6px 10px; border-radius: 6px;
  transition: color .12s ease, background .12s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: color-mix(in oklab, var(--panel) 80%, transparent);
  text-decoration: none;
}
.nav-cta {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 8px;
  background: var(--accent); border: 1px solid var(--accent);
  transition: background .12s ease, transform .12s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); text-decoration: none; color: #fff; }
.nav-menu {
  display: none; width: 38px; height: 34px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--panel);
  padding: 0; background: none; border: 1px solid var(--border);
}
.nav-bar { display: block; width: 18px; height: 2px; background: var(--muted); border-radius: 2px; transition: background .12s; }
.nav-menu:hover .nav-bar { background: var(--text); }
.nav-drawer {
  display: none;
  width: 100%;
  padding: 8px 0 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav-drawer-inner {
  width: min(var(--max-w), 92vw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 2px;
}
.drawer-link {
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  padding: 13px 16px; color: var(--muted); text-decoration: none;
  border-radius: 10px; letter-spacing: -.01em;
  transition: color .12s, background .12s;
}
.drawer-link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.drawer-link::after {
  content: '→';
  margin-left: auto;
  font-size: 13px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s;
}
.drawer-link:hover::after { opacity: 1; transform: translateX(0); }
.drawer-divider {
  height: 1px; background: var(--border);
  margin: 8px 16px;
}
.drawer-cta {
  display: flex; align-items: center; justify-content: center;
  margin: 10px 16px 0;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  padding: 13px 20px; border-radius: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  letter-spacing: -.01em;
  transition: background .12s, transform .12s;
}
.drawer-cta:hover { background: var(--accent-h); text-decoration: none; color: #fff; transform: translateY(-1px); }
@media (max-width: 980px) {
  .nav-primary, .nav-cta { display: none; }
  .nav-menu { display: inline-flex; }
  /* Switch to flex so logo stays left and hamburger goes right
     regardless of how many hidden children are in the DOM */
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-logo { height: 38px; }
}

/* ── Hero ─────────────────────────────────────────────────── */
/* ── Hero ─────────────────────────────────────────────────── */
.hero-wrap {
  background: var(--bg);
  padding: clamp(64px, 9vw, 112px) var(--gutter) 0;
}

/* Text block — centered, breathing room */
.hero-copy {
  max-width: 800px; margin: 0 auto;
  text-align: center; padding-bottom: clamp(40px, 5vw, 64px);
}

.hero-eyebrow {
  display: inline-flex; gap: 12px; align-items: center;
  margin-bottom: 32px; color: var(--muted); font-size: 13px;
}
.hero-tag {
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
}

.hero-h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 28px;
}
.hero-accent {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.hero-lead {
  font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6;
  color: var(--muted); max-width: 62ch; margin: 0 auto 36px;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-bottom: 32px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  transition: transform .12s, background .12s, border-color .12s;
}
.hero-btn:hover { text-decoration: none; }
.hero-btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.hero-btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-2px); color: #fff; }
.hero-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.hero-btn-ghost:hover { background: var(--panel); border-color: var(--teal-2); transform: translateY(-2px); color: var(--text); }
.hero-arrow { transition: transform .15s; }
.hero-btn:hover .hero-arrow { transform: translateX(4px); }
.hero-play {
  display: inline-block; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor; margin-right: -2px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  color: var(--muted); font-size: 13px;
  align-items: center; justify-content: center;
}
.hero-arrow-teal { color: var(--teal); font-family: var(--font-mono); }
.hero-arrow-accent { color: var(--accent); font-family: var(--font-mono); }

/* Terminal block — full width, prominent */
.hero-terminal {
  max-width: 1200px; margin: 0 auto;
}

/* ── Code Explorer (IDE widget in hero) ───────────────────── */
.code-window {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; font-family: var(--font-mono);
  font-size: 14px; line-height: 1.65;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.04) inset;
}
.code-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.code-traffic { display: flex; gap: 7px; }
.code-tl { width: 13px; height: 13px; border-radius: 50%; }
.code-tl-r { background: #ff5f56; }
.code-tl-y { background: #ffbd2e; }
.code-tl-g { background: #27c93f; }
.code-window-title { flex: 1; text-align: center; }
.code-window-path { color: var(--muted); font-size: 12px; }
.code-pill {
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 6px; font-size: 11px; color: var(--accent);
}
.code-tabs {
  display: flex; overflow-x: auto; border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; font-size: 12px; font-family: var(--font-mono);
  color: var(--muted); background: transparent; border: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
  cursor: pointer; transition: color .12s, border-color .12s;
}
.code-tab:hover { color: var(--text); }
.code-tab-active, .code-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.code-tab-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.code-dot-red    { background: var(--red); }
.code-dot-amber  { background: var(--accent); }
.code-dot-teal   { background: var(--teal); }
.code-dot-blue   { background: var(--blue); }
.code-dot-pink   { background: #ff7bb5; }
.code-dot-green  { background: var(--green); }
.code-dot-violet { background: var(--violet); }
.code-panel { display: none; }
.code-panel-active, .code-panel[data-active] { display: block; }
.code-block { padding: 28px 32px; overflow-x: auto; margin: 0; min-height: 220px; }
.code-block code { color: var(--text); }
.code-ln { color: var(--muted); user-select: none; margin-right: 12px; min-width: 2ch; display: inline-block; }
.code-cm { color: var(--muted); }
.code-kw { color: var(--teal); }
.code-str { color: var(--green); }
.code-err { color: var(--red); }
.code-ok { color: var(--teal); }
.code-num { color: var(--accent); }
.code-mono { font-family: var(--font-mono); }

/* ── Social proof ─────────────────────────────────────────── */
.social-proof { padding: clamp(32px, 4vw, 56px) 0; background: var(--bg-2); }
.proof-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.proof-label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-right: 4px; }
.proof-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: 12px; color: var(--text);
}
.proof-chip svg { flex-shrink: 0; }

/* ── Generic content sections ─────────────────────────────── */
.content-section { padding: clamp(48px, 6vw, 80px) 0; }
.content-section.alt { background: var(--bg-2); }

/* ── Feature cards grid ───────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 40px;
}
.feature-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  display: grid; place-items: center; margin-bottom: 14px;
  color: var(--accent); font-size: 20px;
}
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-hero { background: var(--bg); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.tiers-section { background: var(--bg-2); padding: clamp(40px, 5vw, 64px) 0; }
.billing-toggle {
  display: inline-flex; gap: 4px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 5px; margin-bottom: 28px;
}
.billing-btn {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s;
}
.billing-btn.is-active { background: var(--accent); color: #fff; }
.billing-btn:not(.is-active):hover { color: var(--text); }
.billing-save {
  display: inline-block; background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent); border-radius: 6px; padding: 1px 6px;
  font-size: 11px; font-weight: 700; margin-left: 5px; vertical-align: middle;
}
.billing-btn.is-active .billing-save { background: rgba(0,0,0,0.15); color: #fff; }
.tiers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; align-items: start;
}
.tier-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; position: relative;
  transition: border-color .15s, transform .15s;
}
.tier-card:hover { transform: translateY(-2px); }
.tier-featured { border-color: var(--accent); }
.tier-badge {
  position: absolute; top: -11px; right: 16px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.tier-name {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 12px; font-family: var(--font-mono);
}
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.tier-price-cur { font-size: 18px; font-weight: 700; color: var(--muted); align-self: flex-start; padding-top: 8px; }
.tier-price-main { font-size: 44px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.tier-price-dynamic { transition: opacity .15s, transform .15s; }
.tier-price-suffix { font-size: 14px; color: var(--muted); }
.tier-billing-note { font-size: 12px; color: var(--muted); margin: -10px 0 10px; min-height: 16px; }
.tier-desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.tier-cta {
  display: block; text-align: center;
  padding: 11px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none; margin-bottom: 20px;
  border: 1px solid transparent;
  transition: transform .12s, background .12s, border-color .12s, color .12s;
}
.tier-cta:hover { text-decoration: none; transform: translateY(-1px); }
.tier-cta-primary { background: var(--accent); color: #fff; }
.tier-cta-primary:hover { background: var(--accent-h); color: #fff; }
.tier-cta-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.tier-cta-ghost:hover { border-color: var(--accent); color: var(--accent); }
.tier-features { list-style: none; }
.tier-feature {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-top: 1px solid var(--border);
  font-size: 14px; line-height: 1.45;
}
.feature-check { color: var(--accent); flex-shrink: 0; font-weight: 700; margin-top: 1px; }
.feature-text { color: var(--text); }
.footnote { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

/* comparison table */
.comparison-section { background: var(--bg); padding: clamp(40px, 5vw, 64px) 0; }
.table-wrap { overflow-x: auto; }
.comp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.comp-table th, .comp-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text);
}
.comp-table thead th {
  background: var(--panel); color: var(--muted); font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; border-bottom: 2px solid var(--border);
}
.comp-table thead .col-featured { color: var(--accent); }
.comp-table tbody tr { background: var(--panel); }
.comp-table tbody tr:nth-child(even) { background: var(--panel-2); }
.row-label { font-weight: 600; }
.cell-yes { color: var(--green); font-weight: 700; }
.cell-no  { color: var(--muted); }

/* faq */
.faq-section { background: var(--bg-2); padding: clamp(40px, 5vw, 64px) 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color .15s;
}
.faq-item[open], .faq-item:hover { border-color: var(--accent); }
.faq-q {
  font-weight: 600; font-size: 15px; cursor: pointer; color: var(--text); list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before { content: "+"; margin-right: 10px; color: var(--accent); font-weight: 700; }
.faq-item[open] .faq-q::before { content: "−"; }
.faq-a { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── CTA section ──────────────────────────────────────────── */
.cta-section { background: var(--bg); padding: clamp(40px, 5vw, 64px) 0; }
.cta-frame {
  background: linear-gradient(135deg, #1a1d2b 0%, #14171f 100%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px); text-align: center;
}
.cta-frame h2 { margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Blog ─────────────────────────────────────────────────── */
.blog-hero { background: var(--bg); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 40px;
}
.blog-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: border-color .15s, transform .15s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 12px;
  font-size: 12px; color: var(--muted); font-family: var(--font-mono);
}
.blog-meta-sep { opacity: 0.4; }
.blog-card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.blog-card-footer { margin-top: 18px; }
.blog-read-link {
  font-size: 13px; font-weight: 600; color: var(--accent);
  font-family: var(--font-mono); text-decoration: none;
  transition: opacity .12s;
}
.blog-read-link:hover { opacity: 0.8; text-decoration: none; }

/* Article */
.article-wrap { background: var(--bg); }
.article-header { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); background: var(--bg); }
.article-meta { display: flex; gap: 12px; align-items: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.meta-sep { opacity: 0.4; }
.article-body { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 80px); }
/* Markdown prose */
.prose { color: var(--text); }
.prose h2 { font-size: clamp(20px, 2.5vw, 28px); margin: 2.2em 0 .8em; padding-top: 0.5em; border-top: 1px solid var(--border); color: var(--text); }
.prose h3 { font-size: clamp(17px, 2vw, 22px); margin: 1.8em 0 .6em; color: var(--text); }
.prose p { margin-bottom: 1.1em; line-height: 1.75; color: color-mix(in oklab, var(--text) 90%, var(--muted)); }
.prose a { color: var(--accent); }
.prose a:hover { opacity: 0.8; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.4em; }
.prose li { margin-bottom: 0.4em; line-height: 1.65; }
.prose code {
  font-family: var(--font-mono); font-size: 0.875em;
  background: var(--panel); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 5px; color: var(--accent);
}
.prose pre {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px; overflow-x: auto; margin: 1.4em 0;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 13px; }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 1.4em 0;
  padding: 12px 18px; background: var(--panel); border-radius: 0 8px 8px 0;
  color: var(--muted);
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.prose img { border-radius: 10px; margin: 1.4em 0; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--panel); font-weight: 600; }
.prose strong { color: var(--text); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────── */
.th-footer {
  color: var(--text);
  margin-top: 80px;
  background: var(--bg-2);
  position: relative;
}
.th-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--teal) 60%, transparent) 20%,
    var(--accent) 50%,
    color-mix(in srgb, var(--teal) 60%, transparent) 80%,
    transparent 100%);
}

/* CTA band */
.footer-cta-band {
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: radial-gradient(ellipse 60% 120% at 50% 0%,
    color-mix(in srgb, var(--accent) 8%, transparent) 0%,
    transparent 70%);
}
.footer-cta-inner {
  width: min(var(--max-w), 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-cta-eyebrow {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.footer-cta-headline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700; color: var(--text); margin: 0;
}
.footer-cta-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.footer-cta-btn {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #000;
  font-weight: 700; font-size: .875rem;
  padding: .6rem 1.4rem; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.footer-cta-btn:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.footer-cta-link {
  font-size: .875rem; color: var(--muted);
  text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.footer-cta-link:hover { color: var(--text); text-decoration: none; }

/* Main grid */
.footer-inner {
  width: min(var(--max-w), 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 56px; padding: 44px 0 36px;
}
.brand-block { display: flex; flex-direction: column; gap: 14px; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; width: fit-content;
  font-weight: 700; font-size: 16px;
  transition: opacity .15s;
}
.footer-brand:hover { opacity: .8; text-decoration: none; }
.footer-logo-wrap {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent);
  flex-shrink: 0;
}
.footer-brand-name { color: var(--text); }
.footer-tagline {
  color: var(--muted); font-size: 13px;
  line-height: 1.7; max-width: 30ch;
}
.footer-status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, #4ade80 8%, transparent);
  border: 1px solid color-mix(in srgb, #4ade80 25%, transparent);
  border-radius: 999px; padding: 4px 12px; width: fit-content;
}
.footer-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
}
.footer-status-chip a {
  font-size: 11.5px; color: #4ade80;
  text-decoration: none; font-weight: 500;
}
.footer-status-chip a:hover { text-decoration: underline; }

/* Link columns */
.link-cols { display: grid; grid-template-columns: repeat(3, 130px); gap: 32px; }
.col-head {
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent);
  margin-bottom: 14px; font-weight: 700;
  font-family: var(--font-mono);
}
.link-cols ul { display: flex; flex-direction: column; gap: 10px; }
.link-cols a {
  font-size: 13.5px; color: var(--muted);
  text-decoration: none; transition: color .12s;
}
.link-cols a:hover { color: var(--text); text-decoration: none; }

/* Bottom bar */
.bottom-bar {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: color-mix(in srgb, #000 20%, var(--bg-2));
}
.bottom-inner {
  width: min(var(--max-w), 92vw); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.social { display: flex; gap: 8px; align-items: center; }
.social-link {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
  text-decoration: none;
}
.social-link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transform: translateY(-2px);
  text-decoration: none;
}
.legal { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.legal a {
  font-size: 12px; color: var(--muted);
  text-decoration: none; transition: color .12s;
}
.legal a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .link-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .link-cols { grid-template-columns: 1fr 1fr; }
  .bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tiers-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Installation page (v2) ───────────────────────────────── */
.install-container { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }

.install-section-head {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px;
}
.install-step-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; font-family: var(--font-mono);
  margin-top: 3px;
}
.install-step-badge--muted { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.install-h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.install-sub { font-size: 14px; color: var(--muted); line-height: 1.55; }
.inline-code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--panel-2); padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--border); color: var(--accent);
}

/* Requirements grid */
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 40px; }
.req-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.req-card--rec { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--panel)); }
.req-card--min { border-color: var(--border-2); }
.req-tier {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.req-tier--rec { color: var(--accent); }
.req-rows { display: grid; gap: 8px; margin-bottom: 14px; }
.req-row { display: flex; justify-content: space-between; align-items: center; }
.req-label { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.req-val { font-size: 13px; font-weight: 600; }
.req-note { font-size: 12px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* Architecture diagram */
.arch-diagram {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 28px;
}
.arch-title { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 24px; }
.arch-services { display: flex; flex-direction: column; align-items: center; gap: 0; }
.arch-layer { display: flex; flex-direction: column; align-items: center; width: 100%; }
.arch-layer-label { font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.arch-svc-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.arch-svc {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; text-align: center; min-width: 120px;
  display: flex; flex-direction: column; gap: 4px;
}
.arch-svc--nginx { border-color: var(--teal-2); background: color-mix(in oklab, var(--teal) 8%, var(--panel)); }
.arch-svc--backend { border-color: var(--teal-2); }
.arch-svc--ai { border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }
.arch-svc--sidecar { border-color: var(--border-2); }
.arch-svc--db { border-color: var(--border-2); }
.arch-svc-name { font-size: 12px; font-weight: 700; }
.arch-svc-ports { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.arch-arrow { font-size: 20px; color: var(--border-2); margin: 8px 0; }
.arch-agents-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); text-align: center; }

/* Terminal window */
.term-window {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; font-family: var(--font-mono);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.term-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.term-dots span:nth-child(1) { background: #ff5f56; }
.term-dots span:nth-child(2) { background: #ffbd2e; }
.term-dots span:nth-child(3) { background: #27c93f; }
.term-title { font-size: 11px; color: var(--muted); flex: 1; text-align: center; }
.term-body { padding: 18px 20px; display: grid; gap: 4px; }
.term-line { display: flex; align-items: flex-start; gap: 10px; position: relative; flex-wrap: wrap; }
.term-prompt { color: var(--teal); user-select: none; flex-shrink: 0; padding-top: 1px; }
.term-cmd { color: var(--text); font-size: 13px; line-height: 1.6; flex: 1; }
.term-comment { color: var(--muted); font-size: 13px; padding-left: 2px; }
.term-output { padding: 8px 12px; background: color-mix(in oklab, var(--bg) 60%, var(--panel-2)); border-radius: 6px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.term-spacer { height: 8px; }
.term-copy {
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-family: var(--font-mono); cursor: pointer;
  transition: color .12s, border-color .12s;
}
.term-copy:hover { color: var(--text); border-color: var(--accent); }
.out-green { color: var(--green); }
.out-acc { color: var(--accent); }
.out-muted { color: var(--muted); }

/* Info chips */
.install-info-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.info-chip {
  display: inline-flex; align-items: flex-start; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--muted);
  line-height: 1.5; flex: 1; min-width: 260px;
}
.info-chip-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.info-chip code { font-family: var(--font-mono); font-size: 12px; color: var(--text); background: var(--panel-2); padding: 1px 5px; border-radius: 3px; }

/* Env tabs & panels */
.env-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.env-tab {
  padding: 9px 16px; font-size: 13px; font-family: var(--font-mono);
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); cursor: pointer; transition: color .12s, border-color .12s;
  margin-bottom: -1px;
}
.env-tab:hover { color: var(--text); }
.env-tab--active { color: var(--text); border-bottom-color: var(--accent); }
.env-panel { display: none; padding-top: 24px; }
.env-panel--active { display: block; }
.env-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.env-block {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.env-block-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.env-copy {
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); padding: 3px 10px; border-radius: 5px;
  font-size: 11px; font-family: var(--font-mono); cursor: pointer;
  transition: color .12s;
}
.env-copy:hover { color: var(--text); }
.env-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 16px; padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.env-row:last-child { border-bottom: none; }
.env-row--req { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.env-key { font-family: var(--font-mono); font-size: 12px; color: var(--accent); line-height: 1.8; word-break: break-all; }
.env-example { font-size: 12.5px; line-height: 1.7; margin-bottom: 8px; word-break: break-all; }
.env-placeholder { color: var(--muted); }
.env-gen { color: var(--accent); cursor: pointer; text-decoration: underline dashed; }
.env-gen:hover { color: var(--green); }
.env-hint { font-size: 12px; color: var(--muted); line-height: 1.55; }
.env-hint code { font-family: var(--font-mono); font-size: 11px; background: var(--panel); padding: 1px 5px; border-radius: 3px; }
@media (max-width: 600px) { .env-row { grid-template-columns: 1fr; } }

/* Startup timeline */
.startup-timeline {
  margin-top: 24px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
}
.st-title { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; display: block; }
.st-events { display: grid; gap: 10px; }
.st-event { display: flex; align-items: baseline; gap: 16px; }
.st-time { font-size: 12px; color: var(--accent); width: 52px; flex-shrink: 0; }
.st-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Agent cards (legacy) */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .agent-grid { grid-template-columns: 1fr; } }
.agent-card { display: flex; flex-direction: column; }
.agent-os { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Agent modes row */
.agent-modes-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px;
}
@media (max-width: 620px) { .agent-modes-row { grid-template-columns: 1fr; } }
.agent-mode-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px;
}
.agent-mode-card--rec {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  background: color-mix(in oklab, var(--accent) 5%, var(--panel));
}
.agent-mode-head {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.agent-mode-body { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }

/* Agent platform panels */
.agent-panel { display: none; padding-top: 20px; }
.agent-panel--active { display: block; }

/* Agent config reference table */
.agent-config-ref {
  margin-top: 28px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.agent-config-ref .env-section-title {
  border-radius: 0;
}

/* Legacy install steps (kept for compatibility) */
.install-steps { display: grid; gap: 20px; margin-top: 40px; }
.install-step { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 12px; font-family: var(--font-mono); }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.code-snippet { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); overflow-x: auto; position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 4px 8px; border-radius: 6px; font-size: 11px; font-family: var(--font-mono); cursor: pointer; transition: color .12s, border-color .12s; }
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

/* ── About page ───────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.form-input, .form-textarea {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font-sans); font-size: 14px; padding: 10px 14px;
  transition: border-color .12s; outline: none; width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: 13px; color: var(--green); margin-top: 8px; }
.form-status.error { color: var(--red); }

/* ── Installation v2: file download row ──────────────────── */
.file-download-row {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0;
}
.file-dl-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; text-decoration: none;
  flex: 1; min-width: 240px;
  transition: border-color .15s, transform .15s;
}
.file-dl-btn:hover {
  border-color: var(--accent); transform: translateY(-2px); text-decoration: none;
}
.file-dl-icon {
  font-size: 22px; color: var(--accent); flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 9px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 24%, transparent);
  display: grid; place-items: center; font-weight: 700;
}
.file-dl-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  font-family: var(--font-mono); margin-bottom: 3px;
}
.file-dl-meta { font-size: 12px; color: var(--muted); }

/* ── Installation v2: compose viewer ─────────────────────── */
.compose-details {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-top: 4px;
}
.compose-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; cursor: pointer; list-style: none;
  transition: background .12s;
}
.compose-summary::-webkit-details-marker { display: none; }
.compose-summary:hover { background: color-mix(in oklab, var(--panel) 60%, transparent); }
.compose-summary-label {
  font-size: 13px; color: var(--text); font-weight: 600;
}
.compose-summary-label code {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  background: var(--panel); padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}
.compose-summary-toggle {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.compose-viewer { border-top: 1px solid var(--border); }
.compose-viewer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.compose-pre {
  margin: 0; padding: 20px 24px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  overflow-x: auto; color: var(--text);
  background: var(--panel-2);
}
.compose-pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

/* ── Installation v2: full env block ─────────────────────── */
.env-full-block {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}

.env-section { border-bottom: 2px solid var(--border-2); }
.env-section:last-child { border-bottom: none; }

.env-section-title {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--teal); background: var(--panel);
  padding: 9px 20px; border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.env-full-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 0; border-bottom: 1px solid var(--border);
}
.env-full-row:last-child { border-bottom: none; }
.env-full-row--req { background: color-mix(in oklab, var(--accent) 4%, transparent); }

.env-full-left {
  padding: 14px 18px 14px 20px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.env-full-right { padding: 14px 18px; }

.env-full-key {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); line-height: 1.7; word-break: break-all;
}
.env-full-example {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65;
  color: var(--text); margin-bottom: 7px; word-break: break-all;
}
.env-full-hint {
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
.env-full-hint code {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--panel); padding: 1px 5px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--text);
}

/* ── Env badges ───────────────────────────────────────────── */
.env-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: .04em;
  padding: 2px 7px; border-radius: 5px; white-space: nowrap;
}
.env-badge--req {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.env-badge--opt {
  background: color-mix(in oklab, var(--muted) 12%, transparent);
  color: var(--muted);
  border: 1px solid color-mix(in oklab, var(--muted) 25%, transparent);
}

/* ── Env inline misc ──────────────────────────────────────── */
.env-ph   { color: var(--muted); }
.env-comment { color: var(--muted); font-style: italic; }
.term-inline {
  display: inline-block; margin-top: 6px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 8px;
}
.term-inline code {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text);
  background: none; border: none; padding: 0;
}

@media (max-width: 680px) {
  .env-full-row { grid-template-columns: 1fr; }
  .env-full-left { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
}

/* ── Syntax highlight (Pygments codehilite) ───────────────── */
.highlight .hll { background-color: #1f2432; }
.highlight .c  { color: #8893ad; }   /* Comment */
.highlight .k  { color: var(--teal); }   /* Keyword */
.highlight .n  { color: var(--text); }   /* Name */
.highlight .o  { color: var(--muted); }  /* Operator */
.highlight .s  { color: var(--green); }  /* String */
.highlight .m  { color: var(--accent); } /* Number */
.highlight .nb { color: var(--blue); }   /* Name.Builtin */
.highlight .nf { color: var(--accent); } /* Name.Function */
.highlight .nn { color: var(--teal); }   /* Name.Namespace */
.highlight .nt { color: var(--teal); }   /* Name.Tag */
.highlight .na { color: var(--blue); }   /* Name.Attribute */
.highlight pre { background: var(--panel-2); border-radius: 10px; padding: 18px; overflow-x: auto; }

/* ── Mobile fixes ─────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Nav */
  .nav-logo { height: 30px; }
  .nav-inner { height: 56px; gap: 10px; }

  /* Hero copy */
  .hero-wrap { padding: 48px 16px 0; }
  .hero-h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -.025em; }
  .hero-lead { font-size: 15px; }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-btn { padding: 13px 20px; font-size: 15px; }
  .hero-cta-row { gap: 10px; }

  /* Terminal / code window */
  .hero-terminal { margin: 0 -16px; border-radius: 0; }
  .code-window { border-radius: 0; border-left: none; border-right: none; font-size: 12px; }
  .code-chrome { padding: 10px 14px; gap: 8px; }
  .code-tl { width: 11px; height: 11px; }
  .code-window-path { font-size: 11px; }
  .code-pill { font-size: 10px; padding: 2px 8px; }
  .code-tab { padding: 8px 12px; font-size: 11px; gap: 5px; }
  .code-tab-dot { width: 6px; height: 6px; }
  .code-block { padding: 16px; font-size: 12px; min-height: 160px; }
  .code-block pre { white-space: pre-wrap; word-break: break-all; }

  /* Footer CTA band */
  .footer-cta-headline { font-size: 1.1rem; }
  .footer-cta-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .link-cols { grid-template-columns: 1fr 1fr; }

  /* Legal pages TOC */
  .legal-toc ol { grid-template-columns: 1fr; }

  /* Status page */
  .service-name { min-width: 140px; font-size: .8rem; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — max-width: 640px
   Desktop layout is untouched above this line.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Global container ─────────────────── */
  body { overflow-x: hidden; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* ── Nav ──────────────────────────────── */
  .nav-inner { height: 60px; }
  .nav-logo { height: 36px; }

  /* ── Hero ─────────────────────────────── */
  .hero-wrap { padding: 52px 16px 0; }
  .hero-h1 { font-size: clamp(32px, 9vw, 44px); letter-spacing: -.025em; }
  .hero-lead { font-size: 15px; }
  .hero-btn { padding: 13px 18px; font-size: 15px; }
  .hero-eyebrow { flex-wrap: wrap; justify-content: center; font-size: 12px; }
  .hero-meta { font-size: 12px; gap: 8px 14px; }

  /* ── Code terminal — bleed to screen edges ── */
  .hero-terminal { margin: 0 -16px; }
  .code-window {
    border-radius: 0;
    border-left: none;
    border-right: none;
    font-size: 12px;
  }
  .code-chrome { padding: 10px 14px; gap: 8px; }
  .code-tab { padding: 8px 10px; font-size: 11px; gap: 5px; }
  .code-block { padding: 16px; font-size: 12px; min-height: 160px; }
  .code-block pre {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: hidden;
  }

  /* ── Section headings ─────────────────── */
  .section-head h2 { font-size: clamp(22px, 7vw, 32px); }
  .section-lead { font-size: 14px; }
  .eyebrow { font-size: .65rem; }

  /* ── CTA section ──────────────────────── */
  .cta-frame { padding: 32px 20px; }
  .cta-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .cta-actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* ── Footer ───────────────────────────── */
  .th-footer { margin-top: 48px; }

  /* CTA band — stack vertically, full padding */
  .footer-cta-band { padding: 36px 20px; }
  .footer-cta-inner { padding: 0; }
  .footer-cta-headline { font-size: 1.15rem; }
  .footer-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .footer-cta-btn {
    justify-content: center;
    padding: .75rem 1.4rem;
    font-size: .9rem;
    border-radius: 10px;
  }
  .footer-cta-link {
    text-align: center;
    font-size: .875rem;
    padding: 4px 0;
  }

  /* Brand block — compact on mobile */
  .footer-inner {
    padding: 36px 20px 28px;
    gap: 32px;
  }
  .footer-tagline { font-size: 13px; max-width: 100%; }

  /* Link grid — 2 columns cleanly */
  .link-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  /* Bottom bar */
  .bottom-bar { padding: 14px 0; }
  .bottom-inner { padding: 0 20px; gap: 10px; }
  .legal { gap: 14px; }
  .footer-copy { font-size: 11.5px; }

  /* ── Legal pages ──────────────────────── */
  .legal-toc ol { grid-template-columns: 1fr; }
  .service-name { min-width: 120px; font-size: .78rem; }
}

/* ═══════════════════════════════════════════════════════════
   VERY SMALL SCREENS — max-width: 375px (iPhone SE / mini)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 375px) {
  .hero-h1 { font-size: 30px; }
  .hero-btn { padding: 12px 14px; font-size: 14px; }
  .link-cols { grid-template-columns: 1fr; }
  .footer-cta-headline { font-size: 1.05rem; }
  .footer-inner { padding: 28px 16px 22px; }
  .bottom-inner { padding: 0 16px; }
  .footer-cta-band { padding: 28px 16px; }
}
