/* ── Decodify Litepaper — standalone public doc styling ──────────────────────
   Self-contained: this page does NOT load the app shell CSS. All values live
   here (no inline styles, no <style> blocks — keeps the CSS ratchet green).
   Prefix: .lp-* . Brand gold is #FFB400 only.                                */

:root {
  --lp-gold: #FFB400;
  --lp-gold-soft: rgba(255, 180, 0, 0.12);
  --lp-gold-line: rgba(255, 180, 0, 0.30);
  --lp-ink: #0b0b0e;
  --lp-bg: #f7f6f2;
  --lp-surface: #ffffff;
  --lp-surface-2: #fbfaf7;
  --lp-text: #18181b;
  --lp-muted: #6b6b76;
  --lp-faint: #9a9aa3;
  --lp-line: #e7e5dd;
  --lp-green: #16a34a;
  --lp-green-bg: rgba(22, 163, 74, 0.10);
  --lp-blue: #3b82f6;
  --lp-purple: #8b5cf6;
  --lp-font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --lp-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  --lp-radius: 14px;
  --lp-radius-sm: 9px;
  --lp-maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lp {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.lp code, .lp .lp-num { font-family: var(--lp-mono); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lp-hero {
  background: radial-gradient(120% 140% at 85% -10%, rgba(255,180,0,0.18), transparent 55%), var(--lp-ink);
  color: #fff;
  padding: 64px 28px 56px;
  border-bottom: 1px solid #1d1d22;
}
.lp-hero-inner { max-width: var(--lp-maxw); margin: 0 auto; }
.lp-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.lp-brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lp-gold); box-shadow: 0 0 0 4px rgba(255,180,0,0.18); }
.lp-brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.lp-brand-name span { color: var(--lp-gold); }
.lp-eyebrow {
  font-family: var(--lp-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lp-gold);
  margin-bottom: 16px;
}
.lp-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 0 18px; font-weight: 800; max-width: 16ch;
}
.lp-hero h1 em { font-style: normal; color: var(--lp-gold); }
.lp-hero-sub { font-size: clamp(16px, 2vw, 20px); color: #c9c9d2; max-width: 60ch; margin: 0 0 28px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
  border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none;
  border: 1px solid #2a2a31; color: #e8e8ee; background: #15151a;
}
.lp-chip.is-gold { background: var(--lp-gold); color: #1a1304; border-color: var(--lp-gold); }
.lp-chip:hover { border-color: var(--lp-gold-line); }
.lp-hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 36px; padding-top: 26px; border-top: 1px solid #1d1d22; }
.lp-hero-meta div { display: flex; flex-direction: column; }
.lp-hero-meta .lp-k { font-family: var(--lp-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-faint); }
.lp-hero-meta .lp-v { font-family: var(--lp-mono); font-size: 19px; font-weight: 700; color: #fff; margin-top: 3px; }

/* ── Shell: TOC + content ─────────────────────────────────────────────── */
.lp-shell { max-width: var(--lp-maxw); margin: 0 auto; padding: 40px 28px 80px; display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; }
.lp-toc { position: sticky; top: 24px; align-self: start; }
.lp-toc-title { font-family: var(--lp-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-faint); margin: 0 0 12px; }
/* Multi-level grouped nav (GitBook-style): section header + flat/nested links. */
.lp-toc-group { margin-bottom: 18px; }
.lp-toc-h { font-family: var(--lp-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-faint); margin: 0 0 6px; padding-left: 10px; }
.lp-toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--lp-line); color: var(--lp-muted); text-decoration: none; font-size: 13.5px; line-height: 1.4; }
.lp-toc a:hover { color: var(--lp-text); }
.lp-toc a.is-active { color: var(--lp-text); border-left-color: var(--lp-gold); font-weight: 600; }
/* Nested sub-items (e.g. Lab → Declare / Validate / Assess) */
.lp-toc a.lp-toc-sub { padding-left: 24px; font-size: 12.5px; }
.lp-toc a.lp-toc-sub::before { content: ''; position: absolute; }

/* Sub-sections inside a section (anchor targets for the nested nav) */
.lp-subsec { scroll-margin-top: 24px; padding-top: 14px; margin-top: 22px; border-top: 1px dashed var(--lp-line); }
.lp-subsec > h3 { margin-top: 0; }

.lp-content { min-width: 0; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.lp-sec { scroll-margin-top: 24px; padding: 14px 0 36px; border-bottom: 1px solid var(--lp-line); }
.lp-sec:last-child { border-bottom: 0; }
.lp-sec-eyebrow { font-family: var(--lp-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-gold); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lp-sec-eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lp-gold); box-shadow: 0 0 0 2px var(--lp-gold-soft); }
.lp-content h2 { font-size: clamp(24px, 3vw, 31px); letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 800; }
.lp-content h3 { font-size: 17px; letter-spacing: -0.01em; margin: 26px 0 8px; font-weight: 700; }
.lp-content p { margin: 0 0 14px; color: #2c2c33; }
.lp-content a { color: #946a00; text-decoration: underline; text-underline-offset: 2px; }
.lp-lead { font-size: 17.5px; color: var(--lp-muted); }
.lp-content ul { margin: 0 0 14px; padding-left: 20px; }
.lp-content li { margin-bottom: 7px; }

/* ── Cards / grids ────────────────────────────────────────────────────── */
.lp-grid { display: grid; gap: 14px; margin: 18px 0; }
.lp-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lp-card { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 18px 18px 20px; }
.lp-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.lp-card p { margin: 0; font-size: 13.5px; color: var(--lp-muted); line-height: 1.55; }
.lp-card-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--lp-gold-soft); color: #946a00; display: inline-flex; align-items: center; justify-content: center; font-family: var(--lp-mono); font-weight: 700; font-size: 13px; margin-bottom: 12px; }

/* stat tiles (tokenomics) */
.lp-stat { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 16px 18px; }
.lp-stat .lp-k { font-family: var(--lp-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-faint); }
.lp-stat .lp-v { font-family: var(--lp-mono); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.lp-stat .lp-cap { font-size: 12px; color: var(--lp-muted); margin-top: 5px; }

/* ── Status pills ─────────────────────────────────────────────────────── */
.lp-pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--lp-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px 3px 7px; border-radius: 999px; }
.lp-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.lp-pill.is-live { color: var(--lp-green); background: var(--lp-green-bg); }
.lp-pill.is-soon { color: #b07a00; background: var(--lp-gold-soft); }

/* ── Tables ───────────────────────────────────────────────────────────── */
.lp-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.lp-table th { text-align: left; font-family: var(--lp-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-faint); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--lp-line); }
.lp-table td { padding: 10px 12px; border-bottom: 1px solid var(--lp-line); color: #2c2c33; vertical-align: top; }
.lp-table td.lp-num { font-family: var(--lp-mono); font-weight: 600; white-space: nowrap; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-foot-cap { font-size: 12.5px; color: var(--lp-muted); margin-top: 4px; }

/* ── Callouts / steps ─────────────────────────────────────────────────── */
.lp-note { background: var(--lp-surface-2); border: 1px solid var(--lp-line); border-left: 3px solid var(--lp-gold); border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 14px; color: #2c2c33; }
.lp-note strong { color: var(--lp-text); }
.lp-steps { counter-reset: lp-step; list-style: none; padding: 0; margin: 16px 0; }
.lp-steps li { position: relative; padding: 0 0 16px 44px; }
.lp-steps li::before { counter-increment: lp-step; content: counter(lp-step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 8px; background: var(--lp-gold-soft); color: #946a00; font-family: var(--lp-mono); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lp-steps li > strong:first-child { display: block; margin-bottom: 2px; }

/* ── Roadmap ──────────────────────────────────────────────────────────── */
.lp-road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.lp-road-col { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 16px 18px; }
.lp-road-col h4 { margin: 0 0 12px; font-family: var(--lp-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.lp-road-col.now h4 { color: var(--lp-green); }
.lp-road-col.next h4 { color: #b07a00; }
.lp-road-col.future h4 { color: var(--lp-purple); }
.lp-road-col ul { margin: 0; padding-left: 16px; }
.lp-road-col li { font-size: 13px; color: var(--lp-muted); margin-bottom: 7px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.lp-faq { border: 1px solid var(--lp-line); border-radius: var(--lp-radius); overflow: hidden; background: var(--lp-surface); }
.lp-faq details { border-bottom: 1px solid var(--lp-line); }
.lp-faq details:last-child { border-bottom: 0; }
.lp-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--lp-gold); font-family: var(--lp-mono); font-weight: 700; }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq .lp-faq-body { padding: 0 18px 16px; color: var(--lp-muted); font-size: 14px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.lp-foot { max-width: var(--lp-maxw); margin: 0 auto; padding: 30px 28px 60px; color: var(--lp-faint); font-size: 12.5px; line-height: 1.6; }
.lp-foot .lp-disc { background: var(--lp-surface-2); border: 1px solid var(--lp-line); border-radius: 12px; padding: 16px 18px; }
.lp-live-tag { font-family: var(--lp-mono); font-size: 10px; color: var(--lp-faint); }
.lp-live-tag b { color: var(--lp-green); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-shell { grid-template-columns: 1fr; gap: 24px; }
  .lp-toc { position: static; display: none; }
  .lp-grid.cols-3, .lp-grid.cols-4, .lp-road { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lp-hero { padding: 44px 20px 40px; }
  .lp-shell { padding: 28px 20px 60px; }
  .lp-grid.cols-2, .lp-grid.cols-3, .lp-grid.cols-4, .lp-road { grid-template-columns: 1fr; }
}

/* ── Flywheel promo graphic (self-contained dark SVG) ── */
.lp-flywheel { margin: 8px 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--lp-line); box-shadow: 0 12px 34px rgba(0,0,0,0.14); }
.lp-flywheel svg { display: block; width: 100%; height: auto; }
