/* Basis — feature & legal pages. Same design tokens as index.html / dashboard.html. */
@import url('basis-footer.css');

:root {
  --bg: #F0F7F9; --surface: rgba(224,242,254,0.45); --card: rgba(255,255,255,0.72);
  --border: rgba(8,145,178,0.13); --border2: rgba(8,145,178,0.28);
  --accent: #0891B2; --text: #1E293B; --muted: #64748B; --dim: #94A3B8;
  --safe: #059669; --warning: #B45309; --danger: #9F1239; --heading: #0F172A;
  --header-bg: rgba(240,247,249,0.88); --accent-tint: rgba(8,145,178,0.05); --accent-tint2: rgba(8,145,178,0.10);
  --glow-sm: rgba(8,145,178,0.18); --glow-lg: rgba(8,145,178,0.32);
  --font-display: 'Cormorant Garamond', serif; --font-body: 'Plus Jakarta Sans', sans-serif; --font-mono: 'Space Mono', monospace;
}
html[data-theme="dark"] {
  --bg: #090E1A; --surface: #0D1626; --card: rgba(13,22,38,0.85);
  --border: rgba(0,212,255,0.10); --border2: rgba(0,212,255,0.20);
  --accent: #00D4FF; --text: #E2EAF0; --muted: #6B8EAD; --dim: #3D5A7A;
  --safe: #10B981; --warning: #F59E0B; --danger: #EF4444; --heading: #ffffff;
  --header-bg: rgba(9,14,26,0.88); --accent-tint: rgba(0,212,255,0.04); --accent-tint2: rgba(0,212,255,0.08);
  --glow-sm: rgba(0,212,255,0.25); --glow-lg: rgba(0,212,255,0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.bx {
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  min-height: 100vh; overflow-x: hidden; line-height: 1.7;
  transition: background .35s ease, color .35s ease;
  display: flex; flex-direction: column;
}
body.bx::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(8,145,178,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(8,145,178,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
html[data-theme="dark"] body.bx::before {
  background-image: linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
body.bx main, body.bx nav { position: relative; z-index: 1; }
body.bx main { flex: 1; }
:where(body.bx) a { color: inherit; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* ─── NAV ─────────────────────────────────────────── */
.bx-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px; padding: 0 28px;
  background: var(--header-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.bx-logo { font-family: var(--font-mono); font-weight: 700; font-size: 26px; letter-spacing: 5px; text-transform: uppercase; text-decoration: none; color: var(--text); flex-shrink: 0; }
.bx-logo span { color: var(--accent); }
.bx-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.bx-links a {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  color: var(--muted); border: 1px solid var(--border); padding: 6px 14px; border-radius: 4px; transition: all .25s ease; display: inline-block;
}
.bx-links a:hover, .bx-links a[aria-current="page"] { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.bx-actions { display: flex; align-items: center; gap: 10px; }
.bx-toggle { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 15px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.bx-toggle:hover { border-color: var(--accent); background: var(--accent-tint); }
.bx-signin { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--accent); border: 1px solid var(--border2); padding: 7px 14px; border-radius: 4px; }
.bx-signin:hover { background: var(--accent-tint2); }
.bx-menu-btn { display: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: var(--card); color: var(--text); border: 1px solid var(--border2); border-radius: 6px; padding: 7px 12px; cursor: pointer; }
.bx-mobile-only { display: none; }

/* ─── LAYOUT ──────────────────────────────────────── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 780px; }
.breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; color: var(--dim); padding: 28px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 5px; text-transform: uppercase; margin-bottom: 14px; display: block; }
.big-title { font-family: var(--font-display); font-size: clamp(40px, 6.5vw, 76px); font-weight: 700; line-height: 1.05; color: var(--heading); margin-bottom: 22px; }
.lede { font-size: 17px; color: var(--muted); max-width: 720px; line-height: 1.85; }
.hero-x { padding: 44px 28px 56px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn-main, .btn-ghost { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 15px 28px; border-radius: 6px; text-decoration: none; display: inline-block; transition: all .3s ease; }
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 0 28px var(--glow-sm); border: 1px solid var(--accent); }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 0 46px var(--glow-lg); }
.btn-ghost { color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.sec { padding: 64px 0; border-top: 1px solid var(--border); }
.sec h2 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; color: var(--heading); line-height: 1.15; margin-bottom: 26px; }

.pill { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; display: inline-block; }
.pill-live { background: rgba(5,150,105,.12); color: var(--safe); }
.pill-rolling { background: var(--accent-tint2); color: var(--accent); }
.pill-planned { background: rgba(180,83,9,.10); color: var(--warning); }
html[data-theme="dark"] .pill-live { background: rgba(16,185,129,.15); }
html[data-theme="dark"] .pill-planned { background: rgba(245,158,11,.12); }

.problem { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 38px); font-weight: 600; line-height: 1.3; color: var(--heading); max-width: 860px; }
.problem small { display: block; margin-top: 16px; font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--muted); line-height: 1.8; }

.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 22px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; }
.step-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); border: 1px solid var(--border2); border-radius: 50%; width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.step h3 { font-family: var(--font-display); font-size: 24px; color: var(--heading); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; text-decoration: none; display: block; transition: all .35s cubic-bezier(.2,.8,.2,1); }
a.card:hover { transform: translateY(-6px); border-color: var(--border2); box-shadow: 0 20px 50px var(--accent-tint2); }
.card h3 { font-family: var(--font-display); font-size: 22px; color: var(--heading); margin: 8px 0 8px; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.card-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.card .more { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.fact { background: var(--card); padding: 22px 24px; }
.fact dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.fact dd { font-size: 14px; color: var(--text); line-height: 1.6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 12px; text-decoration: none; color: var(--muted); border: 1px solid var(--border2); border-radius: 30px; padding: 8px 16px; transition: all .25s ease; }
.chips a:hover, .chips a[aria-current="page"] { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }

.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--border2); border-radius: 18px; padding: 56px 28px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 4px; }
.cta-band .hero-cta { justify-content: center; }
.cta-micro { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 1px; margin-top: 18px; }

.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--warning); background: rgba(180,83,9,.06); padding: 14px 18px; border-radius: 0 10px 10px 0; margin-top: 22px; line-height: 1.7; }
.list { list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.list li::before { content: '›'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ─── LEGAL ───────────────────────────────────────── */
.legal-head { padding: 44px 28px 12px; }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.legal { padding: 0 28px 80px; }
.legal h2 { font-family: var(--font-display); font-size: 30px; color: var(--heading); margin: 42px 0 12px; scroll-margin-top: 84px; }
.legal p, .legal li { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }
.tldr, .toc { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 26px; margin: 22px 0; }
.tldr h2, .toc h2 { font-size: 22px; margin: 0 0 10px; }
.tldr { border-left: 3px solid var(--accent); }
.toc ol { columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; font-size: 14px; }

/* ─── MOTION ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .bx-menu-btn { display: inline-block; }
  .bx-signin { display: none; }
  .bx-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 20px 18px; gap: 8px; }
  .bx-links.open { display: flex; }
  .bx-links a { text-align: center; padding: 11px 14px; }
  .bx-mobile-only { display: block; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .toc ol { columns: 1; }
}
@media (max-width: 600px) {
  .bx-nav { padding: 0 16px; }
  .wrap, .hero-x, .legal-head, .legal { padding-left: 18px; padding-right: 18px; }
  .step { flex-direction: column; gap: 12px; padding: 20px; }
  .sec { padding: 48px 0; }
}
