/* ═══════════════════════════════════════════════════════════════════════════
   Tostada — style.css  (shared: splash · /install · /manifesto)

   Aesthetic: a Linear-grade dark developer-tool canvas — near-black surface,
   hairline borders, frosted sticky nav, a single atmospheric aurora, restrained
   motion — carrying Tostada's warmth: orange as the loud primary accent, a cool
   indigo as the secondary, Instrument Serif for editorial moments.

   The page follows the spec's 10-beat emotional arc (§0 nav → §10 footer).

   DOCS NOTE: the generated docs tree (web/docs/*) loads this file + docs.css and
   renders LIGHT. We keep the legacy `--color-*` tokens and a light `.top-nav`
   here so docs and the hero component-tile wall keep working. The splash uses
   its own dark tokens + `.nav`. Tile-wall CSS (.hero-grid / .t-*) is appended
   verbatim at the end of this file.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 138, 61, 0.28); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* ── Legacy primitives (docs + hero tile wall depend on these) ── */
  --color-blue:        #1B19FF;
  --color-blue-deep:   #0A0A4A;
  --color-cream:       #F7ECCF;
  --color-cream-soft:  #FBF5E6;
  --color-yellow:      #FFD84D;
  --color-orange:      #FF8A3D;
  --color-orange-deep: #F46D14;
  --color-ink:         #160E00;
  --color-white:       #FFFFFF;
  --accent:            var(--color-orange);
  --radius-sm: 6px;  --radius-md: 10px;  --radius-lg: 20px;  --radius-xl: 28px;

  /* ── Dark splash surfaces ── */
  --bg:    #08090A;
  --bg-1:  #0D0E10;
  --bg-2:  #131517;
  --bg-3:  #181A1D;
  --glass: rgba(16, 18, 21, 0.66);

  /* ── Hairlines ── */
  --line:   rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);

  /* ── Text on dark ── */
  --fg:      #F5F6F7;
  --fg-soft: #C5C9CF;
  --fg-mut:  #8B9098;
  --fg-dim:  #686D75;

  /* ── Brand accents ── */
  --orange: #ff7e70;
/*   #FF8A3D;*/
  --orange-deep: #80521e;
  --orange-soft: #f0b9b4;
  --cta: #ff7e70;
  --cta-deep: #df4535;
  --indigo:      #80521e;
  --indigo-soft: #FFD39B;
  --cream:       #F7ECCF;

  /* ── Type ── */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max:    1180px;
  --gutter: 24px;
  --nav-h:  64px;
}

/* ─── Base (dark splash default) ─────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  background-image: radial-gradient(rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 22px 22px;
}
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--fg); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
p { font-family: var(--font-sans); }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0;
  background: linear-gradient(100deg, var(--orange-soft), var(--orange) 55%, var(--indigo-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
code { font-family: var(--font-mono); font-size: 0.9em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
/* Full-bleed header + hero; all other sections stay capped at --max. */
.nav .nav-inner,
.hero .hero-inner { max-width: none; padding-inline: clamp(20px, 3.2vw, 56px); }

/* Docs share the splash dark theme (see docs.css for the shell + article). */
body.docs-body { background: var(--bg); color: var(--fg-soft); }

/* ─── Atmospheric aurora (splash only) ───────────────────────────────── */
.aurora {
  position: fixed; top: -20%; left: 0; right: 0; width: 100%; height: 720px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 22% 0%, rgba(255, 138, 61, 0.18), transparent 70%),
    radial-gradient(46% 64% at 80% 4%, rgba(110, 107, 255, 0.20), transparent 72%),
    radial-gradient(40% 50% at 50% 0%, rgba(247, 236, 207, 0.05), transparent 70%);
  filter: blur(14px); opacity: 0.92;
}
.page { position: relative; z-index: 1; }

/* ─── Shared bits: eyebrow, buttons, section heads ───────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mut);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(205,160,116,0.14); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { transition: transform .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--cta) 0%, var(--cta-deep) 100%);
  color: #F7ECCF; font-weight: 600;
  box-shadow: 0 1px 0 rgb(131 129 92 / 20%) inset, 0 8px 22px -8px rgb(86 68 49 / 60%);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(141, 139, 100, 0.2) inset, 0 14px 34px -8px rgba(110, 87, 62, 0.5); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--fg); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--line-3); transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-solid { background: var(--fg); color: #0A0B0C; font-weight: 600; padding: 11px 18px; }
.btn-solid:hover { background: #fff; transform: translateY(-1px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-center { justify-content: center; }

.beat { padding: clamp(60px, 8vw, 112px) 0; position: relative; }
.beat-tight { padding: clamp(44px, 6vw, 80px) 0; }
.beat-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.beat-head.left { margin-left: 0; text-align: left; }
.h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.08; }
.h2 em { font-size: 1em; }
.sub { font-size: clamp(16px, 2vw, 18.5px); color: var(--fg-mut); margin-top: 16px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════════
   §0 — Sticky top nav (splash + companion pages)
   ════════════════════════════════════════════════════════════════════ */
.nav { position: sticky; top: 0; z-index: 60; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.nav .brand-mark { height: 40px; width: auto; }
.nav .brand:hover { opacity: .85; }
.nav-anchors { display: flex; align-items: center; gap: 26px; margin-left: 16px; }
.nav-anchors a { font-size: 14px; color: var(--fg-mut); transition: color .16s ease; }
.nav-anchors a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-gh { display: inline-flex; color: var(--fg-mut); transition: color .16s ease; }
.nav-gh:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 8px 15px; font-size: 13.5px; }
.btn-nav-ghost { background: transparent; color: var(--fg-soft); border: 1px solid var(--line-2); }
.btn-nav-ghost:hover { color: var(--fg); border-color: var(--line-3); background: rgba(255,255,255,0.04); }
/* mobile menu */
.nav-burger { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line-2); color: var(--fg); }
.nav-burger:hover { background: rgba(255,255,255,0.05); }
.nav-sheet { display: none; }

/* ════════════════════════════════════════════════════════════════════
   §1 — Hero
   ════════════════════════════════════════════════════════════════════ */
.hero { padding: clamp(16px, 2.4vw, 36px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); align-items: center; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 96px); line-height: 1.0; letter-spacing: -0.035em; margin: 22px 0 26px; }
.hero-sub { font-size: clamp(17px, 2.3vw, 24px); color: var(--fg-mut); max-width: 760px; line-height: 1.55; }

.install-card {
  margin-top: 30px; max-width: 460px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 45%), var(--bg-1);
  padding: 22px 22px 18px; box-shadow: 0 30px 60px -34px rgba(0,0,0,0.8);
}
.install-title { font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 14px; }
.install-bullets { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.install-bullets li { position: relative; padding-left: 24px; font-size: 14px; color: var(--fg-soft); line-height: 1.45; }
.install-bullets li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.install-cmd { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-md); padding: 12px 12px 12px 15px; }
.install-cmd code { color: var(--fg); font-size: 14px; }
.install-cmd code::before { content: "$ "; color: var(--orange); }
.copy-btn { display: inline-flex; color: var(--fg-mut); padding: 5px; border-radius: 6px; transition: color .16s, background .16s; }
.copy-btn:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.copy-btn.copied { color: #5BD08B; }
.install-relaunch { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--fg-mut); }
.install-relaunch code { background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; color: var(--fg); }
.install-relaunch code::before { content: "$ "; color: var(--orange); }
.install-relaunch .copy-btn { padding: 3px; }
.install-guide { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--fg-mut); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .16s, border-color .16s; }
.install-guide:hover { color: var(--fg); border-color: var(--fg-mut); }
.hero-slack { display: inline-flex; margin-top: 22px; font-size: 14.5px; color: var(--indigo-soft); transition: color .16s; }
.hero-slack:hover { color: #fff; }

/* hero tile wall — wrap so the existing .hero-grid bleeds off the right */
.hero-wall { position: relative; }
.hero-wall .hero-grid { transform: scale(0.92); transform-origin: top left; }
@media (max-width: 879px) {
  .hero-wall { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .hero-wall::-webkit-scrollbar { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   §2 / §3 — Persona card grids + mobile carousel
   ════════════════════════════════════════════════════════════════════ */
.persona-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.persona {
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 60%), var(--bg-1);
  transition: transform .25s ease, border-color .25s ease;
}
.persona:hover { transform: translateY(-3px); border-color: var(--line-2); }
.persona-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.persona h3 { font-size: 21px; margin: 14px 0 12px; letter-spacing: -0.02em; }
.persona p { font-size: 14.5px; color: var(--fg-mut); }
/* §3 step flow */
.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 34px; font-size: 14px; color: var(--fg-soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(205,160,116,0.12); border: 1px solid rgba(205,160,116,0.4); color: var(--orange); font-family: var(--font-mono); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.persona-prose { font-size: 13.5px; color: var(--fg-mut); border-top: 1px solid var(--line); padding-top: 14px; }

/* mobile carousel (shared pattern §2/§3) */
.carousel-dots { display: none; }
@media (max-width: 767px) {
  .persona-grid.carousel { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; scrollbar-width: none; }
  .persona-grid.carousel::-webkit-scrollbar { display: none; }
  .persona-grid.carousel > .persona { scroll-snap-align: start; }
  .carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
  .carousel-dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); transition: background .2s, width .2s; }
  .carousel-dots button[aria-current="true"] { background: var(--orange); width: 20px; border-radius: 4px; }
  .carousel-hint { display: block; text-align: center; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-dim); }
}
.carousel-hint { display: none; }

/* ════════════════════════════════════════════════════════════════════
   §4 — Demo tabs
   ════════════════════════════════════════════════════════════════════ */
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tab {
  font-size: 14px; font-weight: 540; color: var(--fg-mut);
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  transition: color .18s, border-color .18s, background .18s;
}
.tab:hover { color: var(--fg); border-color: var(--line-2); }
.tab[aria-selected="true"] { color: var(--fg); border-color: rgba(205,160,116,0.5); background: rgba(205,160,116,0.10); }
.tab-num { color: var(--orange); font-family: var(--font-mono); font-size: 12px; margin-right: 6px; }
.tab-panels { border: 1px solid var(--line-2); border-radius: var(--radius-xl); background: var(--bg-1); overflow: hidden; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tab-visual {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 80% 0%, rgba(110,107,255,0.16), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(205,160,116,0.12), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.tab-visual .mock { width: 92%; max-width: 920px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-1); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }
.mock-bar span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); margin-left: 6px; }
.mock-gif { display: block; width: 100%; height: auto; }
.mock-body { padding: 16px; display: grid; grid-template-columns: 100px 1fr; gap: 12px; min-height: 140px; }
.mock-rail { display: flex; flex-direction: column; gap: 6px; }
.mock-chip { height: 9px; border-radius: 4px; background: var(--line-2); }
.mock-chip.on { background: rgba(205,160,116,0.5); }
.mock-main { display: flex; flex-direction: column; gap: 10px; }
.mock-line { height: 10px; border-radius: 4px; background: var(--line); }
.mock-line.w-60 { width: 60%; } .mock-line.w-40 { width: 40%; } .mock-line.w-80 { width: 80%; }
.mock-btn { align-self: flex-start; font-size: 12px; font-weight: 600; color: #F7ECCF; background: linear-gradient(180deg, var(--orange), var(--orange-deep)); padding: 6px 14px; border-radius: 7px; margin-top: 4px; }
.mock-files { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-file { font-family: var(--font-mono); font-size: 11px; color: var(--fg-soft); border: 1px solid var(--line-2); border-radius: 7px; padding: 8px 12px; background: var(--bg); }
.tab-caption { padding: 22px 26px 26px; }
.tab-caption h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.02em; }
.tab-caption p { font-size: 14.5px; color: var(--fg-mut); max-width: 620px; }
.tab-soon { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo-soft); border: 1px solid rgba(157,155,255,0.4); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.beat-cta { text-align: center; margin-top: 32px; }

/* ════════════════════════════════════════════════════════════════════
   §5 — Rethemer wipe-slider
   ════════════════════════════════════════════════════════════════════ */
.rt-logos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
@media (max-width: 640px) { .rt-logos { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .rt-logos::-webkit-scrollbar { display: none; } }
.rt-logo {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; color: var(--fg-mut);
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-1); white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}
.rt-logo:hover { color: var(--fg); border-color: var(--line-2); }
.rt-logo[aria-current="true"] { color: var(--fg); border-color: rgba(205,160,116,0.55); background: rgba(205,160,116,0.10); }
.rt-stage { display: grid; grid-template-columns: 1fr; gap: 18px; }
.wipe { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; user-select: none; touch-action: pan-y; background: var(--bg-2); }
.wipe-pane { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px; }
.wipe-after { clip-path: inset(0 0 0 var(--wipe, 50%)); }
.wipe-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.wipe-before { background: linear-gradient(160deg, #1b1d20, #0e0f11); }
.wipe-before .wipe-tag { color: #fff; }
.wipe-after { background: linear-gradient(160deg, rgba(205,160,116,0.14), rgba(110,107,255,0.10)), var(--bg-1); }
.wipe-after .wipe-tag { color: var(--orange); align-self: flex-end; }
.wipe-site { font-family: var(--font-serif); font-size: clamp(26px, 4vw, 40px); color: var(--fg); margin-top: auto; }
.wipe-mockrows { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.wipe-mockrows i { height: 12px; border-radius: 5px; background: rgba(255,255,255,0.12); }
.wipe-before .wipe-mockrows i:nth-child(1) { width: 70%; }
.wipe-before .wipe-mockrows i:nth-child(2) { width: 90%; }
.wipe-before .wipe-mockrows i:nth-child(3) { width: 50%; }
.wipe-after .wipe-mockrows i { background: linear-gradient(90deg, rgba(205,160,116,0.6), rgba(110,107,255,0.5)); }
.wipe-after .wipe-mockrows i:nth-child(1) { width: 70%; }
.wipe-after .wipe-mockrows i:nth-child(2) { width: 90%; }
.wipe-after .wipe-mockrows i:nth-child(3) { width: 50%; }
.wipe-handle { position: absolute; top: 0; bottom: 0; left: var(--wipe, 50%); width: 3px; background: var(--orange); transform: translateX(-1.5px); cursor: ew-resize; z-index: 3; }
.wipe-handle::after { content: "⟺"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #08090A; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
.rt-report { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); padding: 22px; }
.rt-report h3 { font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mut); margin-bottom: 16px; }

/* Scrollable approximation log — matched to the slider height by JS on desktop. */
.rt-approx { list-style: none; display: flex; flex: 1 1 auto; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; margin: -2px -8px 0; padding: 2px 8px 2px 2px; }
.rt-approx::-webkit-scrollbar { width: 8px; }
.rt-approx::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 99px; }
.rt-approx { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.rt-ax { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start; }
.rt-ax--plain { grid-template-columns: 1fr; }
.rt-ax-text { font-size: 13px; line-height: 1.5; color: var(--fg-soft); }
.rt-ax-tag {
  justify-self: start; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px;
  background: rgba(255,255,255,0.07); color: var(--fg-mut); white-space: nowrap;
}
.rt-ax-behavior  { background: rgba(240,96,122,0.15);  color: #f0607a; }
.rt-ax-content   { background: rgba(255,255,255,0.07);  color: var(--fg-mut); }
.rt-ax-icon      { background: rgba(110,107,255,0.18);  color: #8a87ff; }
.rt-ax-component { background: rgba(91,208,160,0.16);   color: #5bd0a0; }
.rt-ax-layout    { background: rgba(205,160,116,0.16);   color: var(--orange); }

/* Real before/after screenshots fill the wipe; CSS mock-rows remain a fallback. */
.wipe-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 0; }
.wipe-fallback { display: flex; flex-direction: column; flex: 1; }
.wipe-tag { position: relative; z-index: 2; align-self: flex-start; padding: 4px 8px; border-radius: 6px; background: rgba(8,9,10,0.7); backdrop-filter: blur(4px); }

/* ════════════════════════════════════════════════════════════════════
   §6 — Ecosystem logo band
   ════════════════════════════════════════════════════════════════════ */
.eco-band { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.eco-logo {
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--fg-mut); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 22px; background: var(--bg-1); opacity: 0.78; min-width: 120px; text-align: center;
}
@media (max-width: 640px) { .eco-band { display: grid; grid-template-columns: repeat(3, 1fr); } .eco-logo { min-width: 0; padding: 16px 8px; font-size: 13px; } }

/* ════════════════════════════════════════════════════════════════════
   §7 — Open source  /  §9 — Creed
   ════════════════════════════════════════════════════════════════════ */
.center-beat { text-align: center; }
.center-beat .h2 { margin-bottom: 16px; }
.center-beat .sub { max-width: 620px; margin: 0 auto 28px; }
.creed {
  position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 50% 0%, rgba(110,107,255,0.08), transparent 70%),
              radial-gradient(50% 120% at 50% 100%, rgba(205,160,116,0.07), transparent 70%);
}
.creed-lines { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: clamp(14px, 2.4vw, 26px); }
.creed-lines p { font-family: var(--font-serif); font-size: clamp(24px, 3.8vw, 40px); line-height: 1.22; color: var(--fg); letter-spacing: -0.01em; }
.creed-lines p:nth-child(3) { background: linear-gradient(100deg, var(--orange-soft), var(--orange) 50%, var(--indigo-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.creed .cta-row { margin-top: clamp(34px, 5vw, 52px); }

/* ════════════════════════════════════════════════════════════════════
   §8 — Roadmap timeline + newsletter
   ════════════════════════════════════════════════════════════════════ */
.timeline { display: grid; grid-template-columns: 1fr; gap: 28px; position: relative; }
.tl-col { position: relative; padding-top: 30px; }
.tl-col::before { content: ""; position: absolute; top: 7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(205,160,116,0.15); }
.tl-col.next::before { background: var(--indigo); box-shadow: 0 0 0 4px rgba(110,107,255,0.15); }
.tl-col.soon::before { background: transparent; border: 2px solid var(--fg-dim); box-shadow: none; }
.tl-rail { display: none; position: absolute; top: 13px; left: 13px; right: -28px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--indigo) 60%, var(--fg-dim)); opacity: 0.4; }
@media (min-width: 720px) { .tl-rail { display: block; } }
.tl-when { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.tl-col.today .tl-when { color: var(--orange); font-weight: 600; }
.tl-col.next .tl-when { color: var(--indigo-soft); }
.tl-col.soon .tl-when { color: var(--fg-dim); }
.tl-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tl-list li { font-size: 14px; color: var(--fg-soft); padding-left: 16px; position: relative; }
.tl-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-dim); }
.tl-col.soon .tl-list li { color: var(--fg-mut); }

.newsletter { margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg-1); padding: clamp(26px, 4vw, 40px); }
.newsletter h3 { font-size: 22px; margin-bottom: 6px; }
.newsletter p { font-size: 14.5px; color: var(--fg-mut); margin-bottom: 20px; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.news-form input[type="email"] { flex: 1 1 220px; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-md); padding: 12px 14px; color: var(--fg); font-size: 14.5px; transition: border-color .16s, box-shadow .16s; }
.news-form input[type="email"]::placeholder { color: var(--fg-dim); }
.news-form input[type="email"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(205,160,116,0.18); }
.news-hp { position: absolute; left: -9999px; }

/* ════════════════════════════════════════════════════════════════════
   §10 — Footer
   ════════════════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 40px; background: var(--bg-1); position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer-brand .brand-mark { height: 24px; margin-bottom: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--fg-mut); padding: 5px 0; transition: color .16s; }
.footer-col a:hover { color: var(--fg); }
.footer-rule { border: 0; border-top: 1px solid var(--line); margin: 4px 0 28px; }

/* ════════════════════════════════════════════════════════════════════
   Companion pages (/install, /manifesto) — long-form prose
   ════════════════════════════════════════════════════════════════════ */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.page-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.02em; }
.page-hero .lede { font-size: 18px; color: var(--fg-mut); max-width: 600px; margin: 18px auto 0; }
.prose { max-width: 720px; margin: 0 auto; }
.prose-block { padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.prose-block h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.01em; margin-bottom: 16px; }
.prose-block p { font-size: 16.5px; line-height: 1.72; color: var(--fg-soft); margin-bottom: 14px; }
.prose-block p:last-child { margin-bottom: 0; }
/* install steps */
.install-steps { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.istep { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); }
.istep-n { width: 44px; height: 44px; border-radius: 50%; background: rgba(205,160,116,0.12); border: 1px solid rgba(205,160,116,0.4); color: var(--orange); font-family: var(--font-mono); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.istep h3 { font-size: 18px; margin-bottom: 8px; }
.istep p { font-size: 14.5px; color: var(--fg-mut); }
.istep .install-cmd { margin-top: 12px; }

/* ════════════════════════════════════════════════════════════════════
   Motion + reveal
   ════════════════════════════════════════════════════════════════════ */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .on-load { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0) * 85ms + 50ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .on-load { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn:hover, .persona:hover { transform: none; }
  .tab-panel.active { animation: none; }
}

/* ════════════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 879px) {
  .nav-anchors, .nav-gh, .nav-cta .btn-nav-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-sheet.open { display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 55; background: rgba(8,9,10,0.96); backdrop-filter: blur(16px); padding: 24px var(--gutter); }
  .nav-sheet.open a { display: block; font-size: 18px; color: var(--fg); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-sheet.open .btn { display: flex; margin-top: 18px; width: 100%; }
}
@media (min-width: 720px) {
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.5fr 2fr; }
  .news-form { flex-wrap: nowrap; }
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: minmax(0, 700px) minmax(0, 1fr); align-items: start; gap: clamp(20px, 2.4vw, 40px); }
  .hero-copy { max-width: 700px; }
  /* drop the tile wall so its first row aligns with the H1, not the eyebrow */
  .hero-wall { margin-top: 46px; }
  /* Soften the bleeding tile wall at the screen's right edge. */
  .hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: clamp(120px, 16%, 260px); background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; z-index: 3; }
  .rt-stage { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

/* ════════════════════════════════════════════════════════════════════
   Docs top-nav (generated docs tree — dark header over light docs body).
   The docs build template emits .top-nav/.container/.nav-inner/.brand/
   .brand-wordmark/.nav-links/.nav-icon. Kept dark so the wordmark shows
   and the brand matches the splash. docs.css handles the light body.
   ════════════════════════════════════════════════════════════════════ */
.top-nav { position: sticky; top: 0; z-index: 60; height: 72px; background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-nav .container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.top-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top-nav .brand-wordmark { height: 26px; width: auto; }
.top-nav .nav-links { display: flex; align-items: center; gap: 26px; }
.top-nav .nav-links a { font-size: 14px; color: var(--fg-mut); transition: color .16s; }
.top-nav .nav-links a:hover, .top-nav .nav-links a.active { color: var(--fg); }
.top-nav .nav-icon { display: inline-flex; color: var(--fg-mut); }
.top-nav .nav-icon:hover { color: var(--fg); }

/* ════════ Hero component-tile wall (from original scaffold — §1) ════════ */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(5, 220px);
  gap: 14px;
  align-self: stretch;
  align-content: start;
  min-height: 480px;
  width: max-content;
  min-width: 1156px;  /* 5 × 220 + 4 × 14 */
}
.hero-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-tile {
  background: #FFFFFF;
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  padding: 14px;
  /* Each tile sizes to its content; no fixed height. */
}

/* Scope the brand accent inside the hero grid to the salmon primitive so the
   sample components read as "in your design system" rather than borrowing
   the page's CTA color. */
.hero-grid {
  --accent: #ff7e70;
  --color-orange-deep: #df4535;
}
/* .short / .medium / .tall are no-ops now — kept on the markup so the
   sync script and future variants can re-introduce size hints later. */

/* Decorative orange band on tiles marked .has-band */
.hero-tile.has-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: var(--accent);
  z-index: 1;
}
.hero-tile.has-band .t-stack { padding-top: 20px; }


/* ─── Hero-grid mini components ───────────────────────────────────── */

/* Shared shorthands — everything sits on the same cream tile so a small
   set of ink / muted / accent colors keeps the gallery cohesive. */

.t-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t-eyebrow {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(22,14,0,0.55);
}
.t-eyebrow-sep { margin-top: 4px; }

/* Buttons */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.t-btn-primary { background: var(--accent);     color: var(--color-white); }
.t-btn-outline { background: transparent;       color: var(--color-ink); border: 1px solid rgba(22,14,0,0.25); }
.t-btn-ghost   { background: transparent;       color: rgba(22,14,0,0.65); padding-left: 0; padding-right: 0; justify-content: flex-start; }
.t-btn-sm      { padding: 4px 10px; font-size: 10px; align-self: flex-start; }

/* Form field */
.t-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink);
}
.t-input {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  padding: 6px 8px;
  background: #FFFCEF;
  border: 1px solid rgba(22,14,0,0.18);
  border-radius: 4px;
  color: rgba(22,14,0,0.75);
}
.t-help {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(22,14,0,0.55);
}

/* Switch row */
.t-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.t-row-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
}
.t-row-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(22,14,0,0.55);
}
.t-switch {
  display: inline-block;
  width: 28px;
  height: 16px;
  background: var(--accent);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}
.t-switch::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  background: var(--color-white);
  border-radius: 50%;
}

/* Badges */
.t-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.t-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22,14,0,0.08);
  color: var(--color-ink);
}
.t-badge-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid rgba(22,14,0,0.25);
}
.t-badge-danger {
  background: #ef4444;
  color: var(--color-white);
}

/* Card — image header + body sits flush inside the tile */
.t-card {
  display: flex;
  flex-direction: column;
  margin: -14px;
  background: #FFFFFF;
  color: var(--color-ink);
  border-radius: inherit;
  overflow: hidden;
  border: 1px solid rgba(22,14,0,0.08);
}
.t-card-img {
  height: 64px;
  background: linear-gradient(135deg, #5957FF 0%, #0A0A4A 100%);
  flex-shrink: 0;
}
.t-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.t-card-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
}
.t-card-text {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(22,14,0,0.6);
}
.t-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.t-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(34,197,94,0.18);
  color: #15803d;
}
.t-pill::before {
  content: '';
  width: 4px; height: 4px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 4px;
}
.t-card-meta {
  font-family: var(--font-sans);
  font-size: 9px;
  color: rgba(22,14,0,0.45);
}

/* Token swatches */
.t-swatches {
  display: flex;
  gap: 6px;
}
.t-swatch {
  width: 22px; height: 22px;
  border-radius: 6px;
  flex: 1;
  min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(22,14,0,0.12);
}

/* Stat + spark */
.t-stat-value {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.t-stat-delta {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--color-orange-deep);
  font-weight: 600;
}
.t-spark {
  width: 100%;
  height: 32px;
  margin-top: 4px;
}

/* Sidebar nav */
.t-nav-item {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(22,14,0,0.78);
  padding: 5px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.t-nav-item.active {
  background: var(--color-ink);
  color: #FFFCEF;
  font-weight: 600;
}
.t-nav-badge {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  background: var(--accent);
  color: var(--color-white);
  padding: 1px 6px;
  border-radius: 999px;
}
.t-nav-item.active .t-nav-badge { background: var(--accent); color: var(--color-white); }

/* Command palette (now on cream) */
.t-command {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
}
.t-cmd-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFCEF;
  color: rgba(22,14,0,0.55);
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(22,14,0,0.15);
  margin-bottom: 4px;
}
.t-cmd-kbd {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  background: rgba(22,14,0,0.08);
  color: var(--color-ink);
  padding: 1px 5px;
  border-radius: 3px;
}
.t-cmd-item {
  font-size: 11px;
  color: var(--color-ink);
  padding: 4px 6px;
  border-radius: 4px;
}
.t-cmd-item.active {
  background: var(--color-ink);
  color: #FFFCEF;
}

/* Avatars */
.t-avatars { display: flex; }
.t-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  color: var(--color-ink);
  border: 2px solid #FFFFFF;
  margin-left: -8px;
}
.t-avatar:first-child { margin-left: 0; }
.t-avatar-more {
  background: rgba(22,14,0,0.12);
  color: rgba(22,14,0,0.7);
}

/* Checkbox list */
.t-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-ink);
}
.t-check-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid rgba(22,14,0,0.4);
  background: #FFFCEF;
  flex-shrink: 0;
  position: relative;
}
.t-check-box.checked {
  background: var(--accent);
  border-color: var(--accent);
}
.t-check-box.checked::after {
  content: '';
  position: absolute;
  inset: 2px 3px 3px 3px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(40deg);
  width: 4px;
  height: 8px;
  top: 1px;
  left: 4px;
}

/* Progress bar */
.t-progress {
  height: 6px;
  background: rgba(22,14,0,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.t-progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* Pagination */
.t-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.t-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: rgba(22,14,0,0.7);
  border-radius: 4px;
  border: 1px solid rgba(22,14,0,0.15);
  background: #FFFCEF;
}
.t-page-btn.active {
  background: var(--color-ink);
  color: #FFFCEF;
  border-color: var(--color-ink);
}

/* Tabs */
.t-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(22,14,0,0.15);
}
.t-tab {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: rgba(22,14,0,0.55);
  padding: 6px 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.t-tab.active {
  color: var(--color-ink);
  border-bottom-color: var(--accent);
}
.t-tabs-body {
  height: 32px;
  background: #FAF6E8;
  border-radius: 4px;
  margin-top: 4px;
}

/* Alert */
.t-alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
}
.t-alert-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t-alert-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
}
.t-alert-body {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(22,14,0,0.65);
}

/* Dropdown menu */
.t-menu {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(22,14,0,0.1);
  border-radius: 6px;
  padding: 4px;
  gap: 1px;
}
.t-menu-item {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-ink);
  padding: 5px 8px;
  border-radius: 4px;
}
.t-menu-item.active {
  background: var(--accent);
  color: var(--color-white);
  font-weight: 600;
}
.t-menu-item.danger { color: #b91c1c; }
.t-menu-sep {
  height: 1px;
  background: rgba(22,14,0,0.1);
  margin: 4px 0;
}

/* Mini calendar */
.t-cal { font-family: var(--font-sans); }
.t-cal-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink);
  text-align: center;
  margin-bottom: 6px;
}
.t-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.t-cal-d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 9px;
  font-weight: 500;
  color: var(--color-ink);
  border-radius: 999px;
}
.t-cal-d.muted { color: rgba(22,14,0,0.45); font-weight: 600; font-size: 8px; }
.t-cal-d.active {
  background: var(--accent);
  color: var(--color-white);
  font-weight: 700;
}

/* Slider */
.t-slider {
  position: relative;
  height: 16px;
  margin-top: 4px;
}
.t-slider-track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 4px;
  background: rgba(22,14,0,0.12);
  border-radius: 999px;
  transform: translateY(-50%);
}
.t-slider-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 55%;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-50%);
}
.t-slider-thumb {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 14px;
  height: 14px;
  background: var(--color-ink);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Toast */
.t-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-ink);
  color: #FFFCEF;
  padding: 8px 10px;
  border-radius: 8px;
  margin: -2px 0;
}
.t-toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
}
.t-toast-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #FFFCEF;
}
.t-toast-body {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(255,252,239,0.7);
}
.t-toast-x {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,252,239,0.5);
  line-height: 1;
  flex-shrink: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.t-bread {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(22,14,0,0.6);
}
.t-bread .active { color: var(--color-ink); font-weight: 600; }
.t-bread-sep { color: rgba(22,14,0,0.3); }

/* ── Small login form ─────────────────────────────────────────── */
.t-form-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1;
  color: var(--color-ink);
  margin-bottom: 2px;
}
.t-link {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}

/* ── Code block ──────────────────────────────────────────────── */
.t-code {
  margin: 0;
  background: #0F0F12;
  color: #E6E6EA;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  line-height: 1.55;
  white-space: pre;
  overflow: hidden;
}
.c-kw   { color: #C792EA; }
.c-str  { color: #C3E88D; }
.c-tag  { color: #82AAFF; }
.c-attr { color: #FFCB6B; }

/* ── Stepper ─────────────────────────────────────────────────── */
.t-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
}
.t-step {
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  background: rgba(22,14,0,0.08);
  color: rgba(22,14,0,0.5);
  border: 2px solid transparent;
}
.t-step.done .t-step-dot {
  background: var(--accent);
  color: var(--color-white);
}
.t-step.active .t-step-dot {
  background: var(--color-white);
  color: var(--accent);
  border-color: var(--accent);
}
.t-step-line {
  flex: 1;
  height: 2px;
  background: rgba(22,14,0,0.1);
  margin: 0 4px;
}
.t-step-line.filled { background: var(--accent); }
.t-steps-lbls {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  color: rgba(22,14,0,0.6);
  margin-top: 4px;
}

/* ── Elaborate Left nav ──────────────────────────────────────── */
.t-leftnav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.t-leftnav-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(22,14,0,0.08);
}
.t-leftnav-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.t-leftnav-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-ink);
}
.t-leftnav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(22,14,0,0.55);
  background: rgba(22,14,0,0.04);
  border: 1px solid rgba(22,14,0,0.08);
  border-radius: 5px;
  padding: 5px 8px;
}
.t-leftnav-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(22,14,0,0.08);
}

/* ── Tooltip ─────────────────────────────────────────────────── */
.t-tooltip-host {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  align-self: flex-start;
}
.t-tooltip {
  position: relative;
  background: var(--color-ink);
  color: #FFFCEF;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 4px;
}
.t-tooltip-arrow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-ink);
}
.t-tooltip-target {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink);
  padding: 4px 10px;
  border: 1px dashed rgba(22,14,0,0.25);
  border-radius: 4px;
}

/* ── Data table ──────────────────────────────────────────────── */
.t-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--color-ink);
}
.t-table th,
.t-table td {
  text-align: left;
  padding: 5px 6px;
  border-bottom: 1px solid rgba(22,14,0,0.08);
  white-space: nowrap;
}
.t-table th {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(22,14,0,0.5);
}
.t-table tbody tr:last-child td { border-bottom: 0; }

/* ── Empty state ─────────────────────────────────────────────── */
.t-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 6px 4px;
}
.t-empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27,25,255,0.08);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.t-empty-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}
.t-empty-body {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(22,14,0,0.6);
  line-height: 1.4;
}

/* ── Radio group ─────────────────────────────────────────────── */
.t-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-ink);
}
.t-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(22,14,0,0.35);
  background: #FFFFFF;
  flex-shrink: 0;
  position: relative;
}
.t-radio-dot.selected {
  border-color: var(--accent);
}
.t-radio-dot.selected::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Modal / dialog ──────────────────────────────────────────── */
.t-modal {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid rgba(22,14,0,0.12);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(22,14,0,0.10);
}
.t-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(22,14,0,0.08);
}
.t-modal-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink);
}
.t-modal-x {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(22,14,0,0.45);
  cursor: pointer;
  line-height: 1;
}
.t-modal-body {
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(22,14,0,0.7);
  line-height: 1.5;
}
.t-modal-foot {
  padding: 8px 12px;
  border-top: 1px solid rgba(22,14,0,0.08);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── KPI card ────────────────────────────────────────────────── */
.t-kpi {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.t-kpi-value {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
  color: var(--color-ink);
  font-weight: 400;
}
.t-kpi-unit {
  font-size: 18px;
  color: rgba(22,14,0,0.55);
  margin-left: 2px;
}
.t-kpi-trend {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
.t-kpi-trend.up {
  background: rgba(27,25,255,0.10);
  color: var(--accent);
}
.t-kpi-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  margin-top: 4px;
}
.t-kpi-bars > span {
  flex: 1;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}
.t-kpi-bars > span:last-child { opacity: 1; }

/* ── Combobox ────────────────────────────────────────────────── */
.t-combo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t-combo-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(22,14,0,0.18);
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-ink);
}
.t-combo-caret {
  font-size: 10px;
  color: rgba(22,14,0,0.45);
}
.t-combo-list {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  border: 1px solid rgba(22,14,0,0.12);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(22,14,0,0.06);
}
.t-combo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-ink);
}
.t-combo-item.active {
  background: var(--accent);
  color: var(--color-white);
}
.t-combo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  font-size: 10px;
  font-weight: 700;
}

/* ── Sortable list ───────────────────────────────────────────── */
.t-sort {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.t-sort-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(22,14,0,0.12);
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-ink);
}
.t-sort-item.dragging {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(27,25,255,0.16);
  transform: translateX(2px);
}
.t-sort-grip {
  color: rgba(22,14,0,0.35);
  letter-spacing: -2px;
  font-size: 12px;
  cursor: grab;
}
.t-sort-label { flex: 1; }
.t-sort-meta {
  font-size: 10px;
  color: rgba(22,14,0,0.45);
  font-variant-numeric: tabular-nums;
}


/* ════════════════════════════════════════════════════════════════════
   Hero component-tile wall — DARK theme override.
   The tiles were ported from the light scaffold; these scoped rules
   (.hero-grid …, specificity beats the originals) flip them to dark so
   they read as product UI on the splash's dark canvas.
   ════════════════════════════════════════════════════════════════════ */
.hero-grid { --accent: #6E6BFF; --color-orange-deep: #4B49FF; --color-ink: #ECEDEF; --color-white: #ffffff; }

/* Tile + nested surfaces */
.hero-grid .hero-tile { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.hero-grid .t-card { background: var(--bg-3); border-color: var(--line); }
.hero-grid .t-input,
.hero-grid .t-cmd-input,
.hero-grid .t-leftnav-search { background: rgba(255,255,255,0.04); border-color: var(--line-2); color: var(--fg-soft); }
.hero-grid .t-page-btn { background: rgba(255,255,255,0.04); border-color: var(--line-2); color: var(--fg-soft); }
.hero-grid .t-check-box { background: rgba(255,255,255,0.05); border-color: var(--line-3); }
.hero-grid .t-tabs-body { background: rgba(255,255,255,0.04); }
.hero-grid .t-menu { background: var(--bg-3); border-color: var(--line); }
.hero-grid .t-cmd-kbd { background: rgba(255,255,255,0.10); color: var(--fg); }

/* Muted / secondary text */
.hero-grid .t-eyebrow,
.hero-grid .t-help,
.hero-grid .t-row-sub,
.hero-grid .t-card-text,
.hero-grid .t-card-meta,
.hero-grid .t-alert-body,
.hero-grid .t-bread,
.hero-grid .t-cmd-input,
.hero-grid .t-steps-lbls,
.hero-grid .t-tab,
.hero-grid .t-nav-item,
.hero-grid .t-page-btn,
.hero-grid .t-menu-item,
.hero-grid .t-cmd-item { color: var(--fg-mut); }
.hero-grid .t-bread-sep,
.hero-grid .t-cal-d.muted { color: var(--fg-dim); }
.hero-grid .t-input { color: var(--fg-soft); }

/* Borders that were ink-based */
.hero-grid .t-btn-outline { border-color: var(--line-2); color: var(--fg-soft); }
.hero-grid .t-badge { background: rgba(255,255,255,0.08); color: var(--fg); }
.hero-grid .t-badge-outline { border-color: var(--line-2); color: var(--fg-soft); background: transparent; }
.hero-grid .t-tabs { border-bottom-color: var(--line); }
.hero-grid .t-leftnav-head,
.hero-grid .t-leftnav-foot { border-color: var(--line); }
.hero-grid .t-menu-sep,
.hero-grid .t-step-line { background: var(--line); }
.hero-grid .t-step-line.filled { background: var(--accent); }
.hero-grid .t-step-dot { background: rgba(255,255,255,0.06); color: var(--fg-mut); }
.hero-grid .t-progress { background: rgba(255,255,255,0.10); }
.hero-grid .t-slider-track { background: rgba(255,255,255,0.12); }
.hero-grid .t-tooltip-target { border-color: var(--line-2); color: var(--fg-soft); }
.hero-grid .t-table th,
.hero-grid .t-table td { border-color: var(--line); }
.hero-grid .t-swatch { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.hero-grid .t-avatar { border-color: var(--bg-2); }

/* Active states → accent (these previously used the now-light --color-ink as a dark surface) */
.hero-grid .t-nav-item.active,
.hero-grid .t-cmd-item.active,
.hero-grid .t-menu-item.active,
.hero-grid .t-cal-d.active { background: var(--accent); color: #fff; }
.hero-grid .t-page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Dark surfaces that used ink as a background — re-darken explicitly */
.hero-grid .t-toast,
.hero-grid .t-tooltip { background: #050608; }
.hero-grid .t-tooltip-arrow { border-top-color: #050608; }
.hero-grid .t-leftnav-logo { color: #fff; }

/* Catch-alls for late tiles (kpi / modal / combo / radio / sort) */
.hero-grid .t-modal,
.hero-grid .t-combo-input,
.hero-grid .t-combo-list,
.hero-grid .t-sort-item { background: var(--bg-3); border-color: var(--line); color: var(--fg-soft); }
/* modal body sets its own dark ink color — lighten it on the dark hero tile */
.hero-grid .t-modal-body { color: var(--fg-soft); }
.hero-grid .t-combo-item.active { background: var(--accent); color: #fff; }
.hero-grid .t-radio-dot { border-color: var(--line-3); }
/* faint helper text the ink-flip didn't reach */
.hero-grid .t-btn-ghost { color: var(--fg-mut); }
.hero-grid .t-sort-grip,
.hero-grid .t-sort-meta,
.hero-grid .t-combo-caret,
.hero-grid .t-modal-x,
.hero-grid .t-toast-x { color: var(--fg-dim); }

.btn-ico{width:18px;height:18px;flex-shrink:0;display:block}
