/* ==========================================================================
   FairValueLabs — Design System
   Two themes driven by [data-theme] on <html>:
     data-theme="lab"       → V1  Lab Cyan (midnight + electric cyan)
     data-theme="editorial" → V2  Lime Editorial (warm black + lime + serif)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------- V1  Lab Cyan (default) ---------- */
:root,
html[data-theme="lab"] {
  /* Surfaces */
  --bg:            oklch(0.985 0.003 230);
  --surface:       #ffffff;
  --surface-2:     oklch(0.97 0.006 230);
  --surface-dim:   oklch(0.94 0.008 230);
  --nav-bg:        oklch(0.18 0.025 250);
  --nav-fg:        oklch(0.96 0.01 230);
  --ink:           oklch(0.22 0.02 250);
  --ink-2:         oklch(0.38 0.015 250);
  --ink-3:         oklch(0.58 0.012 250);
  --line:          oklch(0.90 0.008 240);
  --line-strong:   oklch(0.82 0.012 240);

  /* Brand — high-voltage */
  --accent:        oklch(0.82 0.23 200);        /* hot electric cyan */
  --accent-2:      oklch(0.72 0.30 300);        /* ultraviolet secondary */
  --accent-ink:    oklch(0.20 0.10 230);
  --accent-soft:   oklch(0.93 0.08 200);
  --accent-line:   oklch(0.78 0.18 200);
  --accent-glow:   0 0 24px oklch(0.82 0.23 200 / .55), 0 0 48px oklch(0.72 0.30 300 / .25);

  /* Status — CRT saturated */
  --ok:            oklch(0.80 0.25 145);
  --ok-soft:       oklch(0.94 0.08 145);
  --warn:          oklch(0.85 0.22 85);
  --warn-soft:     oklch(0.96 0.10 85);
  --danger:        oklch(0.66 0.28 20);
  --danger-soft:   oklch(0.95 0.06 20);

  /* Typography */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-display: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --display-italic: normal;

  /* Shape */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm:  0 1px 0 rgba(14,22,40,.04), 0 1px 2px rgba(14,22,40,.04);
  --shadow-md:  0 1px 0 rgba(14,22,40,.04), 0 6px 18px -8px rgba(14,22,40,.18);
  --shadow-lg:  0 1px 0 rgba(14,22,40,.04), 0 24px 60px -30px rgba(14,22,40,.35);

  --grid:       1px solid var(--line);

  /* Hero — deep space + bloom */
  --hero-bg:    radial-gradient(1100px 550px at 82% -10%, oklch(0.42 0.22 200 / .55) 0%, transparent 58%),
                radial-gradient(800px 500px at 12% 108%, oklch(0.38 0.30 295 / .45) 0%, transparent 60%),
                radial-gradient(400px 280px at 60% 60%, oklch(0.38 0.20 200 / .25) 0%, transparent 70%),
                oklch(0.12 0.035 255);
}

/* ---------- V2  Lime Editorial ---------- */
html[data-theme="editorial"] {
  --bg:            oklch(0.97 0.01 85);
  --surface:       oklch(0.985 0.008 85);
  --surface-2:     oklch(0.94 0.015 85);
  --surface-dim:   oklch(0.90 0.02 85);
  --nav-bg:        oklch(0.18 0.015 60);
  --nav-fg:        oklch(0.96 0.02 85);
  --ink:           oklch(0.20 0.015 60);
  --ink-2:         oklch(0.38 0.015 60);
  --ink-3:         oklch(0.55 0.015 60);
  --line:          oklch(0.85 0.015 80);
  --line-strong:   oklch(0.74 0.02 80);

  --accent:        oklch(0.87 0.22 128);        /* electric lime */
  --accent-ink:    oklch(0.22 0.08 130);
  --accent-soft:   oklch(0.94 0.10 125);
  --accent-line:   oklch(0.78 0.18 128);

  --ok:            oklch(0.60 0.18 145);
  --ok-soft:       oklch(0.94 0.08 140);
  --warn:          oklch(0.82 0.17 70);
  --warn-soft:     oklch(0.95 0.08 75);
  --danger:        oklch(0.58 0.25 15);
  --danger-soft:   oklch(0.94 0.06 20);

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.015em;
  --display-italic: normal;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --shadow-sm:  0 1px 0 rgba(34,22,10,.05);
  --shadow-md:  0 1px 0 rgba(34,22,10,.05), 0 6px 22px -10px rgba(34,22,10,.2);
  --shadow-lg:  0 1px 0 rgba(34,22,10,.05), 0 24px 60px -30px rgba(34,22,10,.35);

  --hero-bg:    radial-gradient(1200px 500px at 100% -10%, oklch(0.30 0.05 60) 0%, transparent 60%),
                oklch(0.16 0.015 60);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--ink);
  line-height: 1.1;
}
html[data-theme="editorial"] h1,
html[data-theme="editorial"] h2 { line-height: 1.02; }

.display-1 { font-size: clamp(40px, 6vw, 72px); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.02; }
.display-2 { font-size: clamp(32px, 4vw, 48px); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.05; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
html[data-theme="editorial"] .eyebrow { letter-spacing: 0.18em; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum","zero"; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }

.rule { height: 1px; background: var(--line); border: 0; }

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header {
  background: var(--nav-bg);
  color: var(--nav-fg);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--nav-fg);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.site-logo svg { width: 26px; height: 26px; display: block; }
.logo-text { display: inline-flex; align-items: baseline; }
.logo-accent { color: var(--accent); }

.main-nav .nav-list {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13.5px;
  color: color-mix(in oklab, var(--nav-fg) 80%, transparent);
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--nav-fg); background: rgba(255,255,255,0.05); }
.nav-link.is-active { color: var(--accent); }
html[data-theme="editorial"] .nav-link.is-active { color: var(--accent); }

.header-search input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--nav-fg);
  padding: 8px 14px 8px 34px;
  font: inherit;
  font-size: 13px;
  border-radius: var(--radius);
  width: 240px;
  transition: all .2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px 50%;
}
.header-search input::placeholder { color: rgba(255,255,255,0.45); }
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent);
}

.nav-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero::before {
  /* tech grid — denser + cyan tinted */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(to right, color-mix(in oklab, var(--accent) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--accent) 5%, transparent) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  mask-image: radial-gradient(85% 70% at 50% 45%, black, transparent 92%);
  -webkit-mask-image: radial-gradient(85% 70% at 50% 45%, black, transparent 92%);
  pointer-events: none;
}
.hero::after {
  /* scanlines + crosshair */
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(255,255,255,0.018) 2px, rgba(255,255,255,0.018) 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-corners { position: absolute; inset: 24px; pointer-events: none; }
.hero-corners::before, .hero-corners::after,
.hero-corners > span::before, .hero-corners > span::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 1.5px solid var(--accent); opacity: .75;
  filter: drop-shadow(0 0 6px var(--accent));
}
.hero-corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-corners::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-corners > span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-corners > span::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero-corners > span { position: absolute; inset: 0; }

/* ==========================================================================
   HERO · COSMIC LAYERS (lab theme)
   star parallax · aurora veils · launch trail · earth curvature
   ========================================================================== */
.cosmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cosmos > * { position: absolute; inset: 0; }

/* --- Stars: multi-layer parallax using radial-gradient dots --- */
.stars-1, .stars-2, .stars-3 {
  background-repeat: repeat;
  opacity: .9;
  will-change: transform;
}
.stars-1 {
  background-image:
    radial-gradient(1.2px 1.2px at 22px 30px, #fff 99%, transparent 100%),
    radial-gradient(1px 1px at 80px 120px, #d9f5ff 99%, transparent 100%),
    radial-gradient(1.5px 1.5px at 180px 70px, #fff 99%, transparent 100%),
    radial-gradient(1px 1px at 240px 220px, #bfe8ff 99%, transparent 100%),
    radial-gradient(1.2px 1.2px at 320px 160px, #fff 99%, transparent 100%),
    radial-gradient(1px 1px at 100px 260px, #cff1ff 99%, transparent 100%),
    radial-gradient(1.4px 1.4px at 380px 300px, #fff 99%, transparent 100%);
  background-size: 420px 360px;
  animation: starDrift1 160s linear infinite;
}
.stars-2 {
  background-image:
    radial-gradient(1px 1px at 40px 60px, #b3e3ff 99%, transparent 100%),
    radial-gradient(1.2px 1.2px at 160px 180px, #fff 99%, transparent 100%),
    radial-gradient(.8px .8px at 260px 50px, #a9c8ff 99%, transparent 100%),
    radial-gradient(1px 1px at 320px 220px, #fff 99%, transparent 100%),
    radial-gradient(.9px .9px at 120px 300px, #c5d8ff 99%, transparent 100%);
  background-size: 380px 340px;
  opacity: .7;
  animation: starDrift2 220s linear infinite;
}
.stars-3 {
  background-image:
    radial-gradient(.7px .7px at 20px 40px, #9ab8ff 99%, transparent 100%),
    radial-gradient(.8px .8px at 140px 90px, #ffffff 99%, transparent 100%),
    radial-gradient(.6px .6px at 240px 160px, #cfe0ff 99%, transparent 100%),
    radial-gradient(.7px .7px at 60px 240px, #fff 99%, transparent 100%);
  background-size: 300px 280px;
  opacity: .5;
  animation: starDrift3 340s linear infinite, starTwinkle 4s ease-in-out infinite;
}
@keyframes starDrift1 { to { transform: translate3d(-420px, 0, 0); } }
@keyframes starDrift2 { to { transform: translate3d(-380px, -50px, 0); } }
@keyframes starDrift3 { to { transform: translate3d(-300px, -30px, 0); } }
@keyframes starTwinkle { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.6); } }

/* --- Aurora veils — soft vertical light curtains --- */
.aurora {
  inset: -10% -5%;
  filter: blur(40px);
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.aurora-a {
  background:
    radial-gradient(40% 120% at 20% 50%, oklch(0.70 0.25 300 / .9) 0%, transparent 60%),
    radial-gradient(30% 100% at 75% 40%, oklch(0.75 0.20 200 / .9) 0%, transparent 55%);
  animation: auroraShift 24s ease-in-out infinite alternate;
}
.aurora-b {
  background:
    radial-gradient(35% 110% at 50% 60%, oklch(0.72 0.22 180 / .7) 0%, transparent 55%),
    radial-gradient(25% 90% at 90% 30%, oklch(0.68 0.28 320 / .8) 0%, transparent 50%);
  opacity: .4;
  animation: auroraShift2 34s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { transform: translate3d(-3%, 0, 0) scale(1); opacity: .45; }
  50%  { transform: translate3d(4%, -2%, 0) scale(1.08); opacity: .7; }
  100% { transform: translate3d(-2%, 1%, 0) scale(1); opacity: .5; }
}
@keyframes auroraShift2 {
  0%   { transform: translate3d(2%, 1%, 0) scale(1.1); opacity: .35; }
  50%  { transform: translate3d(-5%, -1%, 0) scale(.95); opacity: .55; }
  100% { transform: translate3d(3%, 2%, 0) scale(1.05); opacity: .4; }
}

/* --- Launch trail — diagonal beam from lower-left to upper-right --- */
.launch {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.launch .beam {
  position: absolute;
  left: -10%; bottom: -15%;
  width: 140%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, transparent 55%,
    color-mix(in oklab, var(--accent) 70%, transparent) 75%,
    #fff 92%,
    transparent 100%);
  transform: rotate(-34deg); transform-origin: left center;
  filter: blur(.5px) drop-shadow(0 0 12px var(--accent));
  opacity: 0;
  animation: launchFire 11s ease-in-out infinite;
}
.launch .spark {
  position: absolute;
  left: -10%; bottom: -15%;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--accent) 40%, transparent 75%);
  box-shadow: 0 0 24px #fff, 0 0 48px var(--accent), 0 0 80px var(--accent-2);
  transform-origin: left center;
  opacity: 0;
  animation: launchSpark 11s ease-in-out infinite;
}
@keyframes launchFire {
  0%, 8%    { opacity: 0; }
  12%       { opacity: .95; }
  50%       { opacity: .6; }
  80%, 100% { opacity: 0; }
}
@keyframes launchSpark {
  0%   { transform: rotate(-34deg) translate3d(0, 0, 0) scale(.3); opacity: 0; }
  8%   { transform: rotate(-34deg) translate3d(0, 0, 0) scale(.7); opacity: 1; }
  50%  { transform: rotate(-34deg) translate3d(80vw, 0, 0) scale(1.1); opacity: 1; }
  80%  { transform: rotate(-34deg) translate3d(140vw, 0, 0) scale(.4); opacity: 0; }
  100% { transform: rotate(-34deg) translate3d(140vw, 0, 0) scale(0); opacity: 0; }
}

/* --- Earth curvature glow at bottom --- */
.earth-arc {
  position: absolute;
  left: 50%; bottom: -80%;
  width: 220%; height: 180%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background: radial-gradient(ellipse at 50% 0%,
    oklch(0.55 0.18 230 / .35) 0%,
    oklch(0.32 0.12 230 / .18) 20%,
    transparent 40%);
  filter: blur(12px);
  pointer-events: none;
}
.earth-arc::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: inherit;
  border-top: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  box-shadow: 0 -1px 18px color-mix(in oklab, var(--accent) 45%, transparent);
}

/* --- Data satellites — small orbital dots --- */
.satellite {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 18px var(--accent);
}
.sat-1 { top: 18%; left: -4%; animation: orbit1 22s linear infinite; }
.sat-2 { top: 62%; left: -4%; animation: orbit2 18s linear infinite; animation-delay: -6s; }
.sat-3 { top: 38%; left: -4%; animation: orbit3 30s linear infinite; animation-delay: -12s; }
@keyframes orbit1 { from { transform: translateX(0); } to { transform: translateX(110vw); } }
@keyframes orbit2 { from { transform: translateX(0) translateY(0); } to { transform: translateX(110vw) translateY(-6vh); } }
@keyframes orbit3 { from { transform: translateX(0) translateY(0); } to { transform: translateX(110vw) translateY(4vh); } }

/* editorial theme — cosmos layers muted */
html[data-theme="editorial"] .cosmos,
html[data-theme="editorial"] .hero-corners { display: none; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stars-1, .stars-2, .stars-3, .aurora-a, .aurora-b,
  .launch .beam, .launch .spark, .satellite { animation: none !important; }
}

/* keep content above cosmos */
.hero .container { position: relative; z-index: 2; }
.hero-corners { z-index: 3; }
.hero-readout { z-index: 3; }

/* ==========================================================================
   FOOTER LAUNCH · tiny cosmic rocket module in footer right column
   ========================================================================== */
.footer-launch {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  min-width: 0;
}
.footer-launch-sky {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 100%, oklch(0.42 0.14 230 / .55) 0%, transparent 55%),
    linear-gradient(180deg, #05080f 0%, #0a1322 60%, #0d1a33 100%);
  border: 1px solid color-mix(in oklab, var(--accent, #3fbbff) 22%, rgba(255,255,255,.06));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 0 40px color-mix(in oklab, var(--accent, #3fbbff) 10%, transparent),
    0 0 24px color-mix(in oklab, var(--accent, #3fbbff) 18%, transparent);
}
/* stars */
.fl-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 14px 20px, #fff 99%, transparent 100%),
    radial-gradient(1px 1px at 60px 60px, #cfe8ff 99%, transparent 100%),
    radial-gradient(.8px .8px at 120px 30px, #fff 99%, transparent 100%),
    radial-gradient(1.2px 1.2px at 170px 80px, #fff 99%, transparent 100%),
    radial-gradient(.9px .9px at 40px 140px, #bfe0ff 99%, transparent 100%),
    radial-gradient(1px 1px at 100px 180px, #fff 99%, transparent 100%),
    radial-gradient(.7px .7px at 180px 160px, #e8f4ff 99%, transparent 100%);
  background-size: 200px 220px;
  animation: flStarDrift 80s linear infinite, starTwinkle 5s ease-in-out infinite;
  opacity: .85;
}
@keyframes flStarDrift { to { transform: translate3d(-200px, 0, 0); } }

/* aurora glow */
.fl-aurora {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 30% 80%, oklch(0.65 0.22 280 / .55) 0%, transparent 60%),
    radial-gradient(50% 80% at 80% 90%, oklch(0.72 0.20 200 / .55) 0%, transparent 55%);
  filter: blur(20px);
  mix-blend-mode: screen;
  opacity: .7;
  animation: flAurora 12s ease-in-out infinite alternate;
}
@keyframes flAurora {
  0%   { transform: translateX(-4%) scale(1);    opacity: .5; }
  100% { transform: translateX(4%)  scale(1.08); opacity: .8; }
}

/* vertical trail from bottom center to rocket */
.fl-trail {
  position: absolute;
  left: 50%; bottom: 0;
  width: 3px; height: 75%;
  transform: translateX(-50%);
  background: linear-gradient(to top,
    color-mix(in oklab, var(--accent, #3fbbff) 70%, transparent) 0%,
    color-mix(in oklab, var(--accent, #3fbbff) 25%, transparent) 50%,
    transparent 100%);
  filter: blur(4px);
  opacity: .55;
  animation: trailPulse 3s ease-in-out infinite;
}

/* rocket */
.fl-rocket-wrap {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 38px; height: 86px;
  animation: flRocketRise 9s cubic-bezier(.55,0,.3,1) infinite, flRocketSway 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px color-mix(in oklab, var(--accent, #3fbbff) 70%, transparent));
}
.fl-rocket { width: 100%; height: 100%; display: block; }
.fl-flame { transform-origin: 40px 135px; animation: flameFlicker .1s ease-in-out infinite alternate; }

@keyframes flRocketRise {
  0%   { bottom: 8%;  opacity: 0; transform: translateX(-50%) scale(.85); }
  10%  { opacity: 1; }
  55%  { bottom: 65%; opacity: 1; transform: translateX(-50%) scale(.8); }
  80%  { bottom: 92%; opacity: .3; transform: translateX(-50%) scale(.5); }
  90%, 100% { bottom: 100%; opacity: 0; transform: translateX(-50%) scale(.3); }
}
@keyframes flRocketSway {
  0%, 100% { margin-left: -1.5px; }
  50%      { margin-left: 1.5px; }
}

.footer-launch-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220,235,255,.55);
  text-align: center;
}
.footer-launch-caption span {
  color: color-mix(in oklab, var(--accent, #3fbbff) 80%, white);
  text-shadow: 0 0 8px color-mix(in oklab, var(--accent, #3fbbff) 55%, transparent);
}
@keyframes trailPulse {
  0%, 100% { opacity: .35; width: 3px; }
  50%      { opacity: .7;  width: 5px; }
}
@keyframes flameFlicker {
  0%   { transform: scaleY(1)    scaleX(1);    opacity: .95; }
  100% { transform: scaleY(1.35) scaleX(.85);  opacity: 1;   }
}

/* editorial theme softens the module */
html[data-theme="editorial"] .footer-launch-sky {
  background: linear-gradient(180deg, #0a0e14 0%, #0d1117 100%);
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="editorial"] .fl-aurora { opacity: .2; }

@media (prefers-reduced-motion: reduce) {
  .fl-stars, .fl-aurora, .fl-trail, .fl-rocket-wrap, .fl-flame { animation: none !important; }
  .fl-rocket-wrap { bottom: 35%; opacity: 1; }
}

@media (max-width: 900px) {
  .footer-launch { display: none; }
}
.hero .container { position: relative; padding-top: 104px; padding-bottom: 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-title {
  color: #fff;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  margin-bottom: 20px;
}
html[data-theme="editorial"] .hero-title {
  font-style: italic;
  line-height: 1.12;
  margin-bottom: 32px;
  padding-bottom: 4px;
}
html[data-theme="editorial"] .hero-title em { font-style: normal; color: var(--accent); }
html[data-theme="lab"] .hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 18px color-mix(in oklab, var(--accent) 55%, transparent),
               0 0 36px color-mix(in oklab, var(--accent-2) 35%, transparent);
}
.hero-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 17px; line-height: 1.55;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 6px;
  max-width: 520px;
  backdrop-filter: blur(6px);
}
.hero-search-input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #fff; font: inherit; font-family: var(--font-mono);
  padding: 12px 14px; font-size: 15px;
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search-btn {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 100%);
  color: #eafcff;
  border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 0 0 1px color-mix(in oklab, var(--accent) 12%, transparent),
    0 10px 32px -10px color-mix(in oklab, var(--accent) 45%, transparent),
    0 0 24px color-mix(in oklab, var(--accent) 30%, transparent);
  text-shadow: 0 0 10px color-mix(in oklab, var(--accent) 55%, transparent);
}
.hero-search-btn::after {
  /* scan highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.hero-search-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.05) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent),
    0 14px 40px -10px color-mix(in oklab, var(--accent) 60%, transparent),
    0 0 48px color-mix(in oklab, var(--accent-2) 45%, transparent);
}
.hero-search-btn:hover::after { opacity: 1; }
.hero-search-btn svg { filter: drop-shadow(0 0 4px color-mix(in oklab, var(--accent) 70%, transparent)); }

.hero-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  justify-content: start;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat strong {
  font-family: var(--font-mono); font-weight: 600;
  color: #fff; font-size: 24px; letter-spacing: -0.01em;
}
.hero-stat span {
  font-size: 12px; color: rgba(255,255,255,0.55);
  font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Hero preview card */
.hero-preview {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.hero-preview-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px; margin-bottom: 16px;
}
.hero-preview-head .blinker {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

.hero-preview .ticker-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.hero-preview .ticker-row:last-child { border-bottom: 0; }
.hero-preview .tk {
  font-family: var(--font-mono); font-weight: 600;
  color: #fff; font-size: 13px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  text-align: center;
}
.hero-preview .cn { color: rgba(255,255,255,0.72); font-size: 13px; }
.hero-preview .cn small { display:block; color: rgba(255,255,255,0.45); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px;}
.hero-preview .verdict {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 8px; border-radius: 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-preview .verdict.hi { background: color-mix(in oklab, var(--danger) 25%, transparent); color: oklch(0.85 0.1 25); }
.hero-preview .verdict.md { background: color-mix(in oklab, var(--warn) 25%, transparent); color: oklch(0.90 0.1 80); }
.hero-preview .verdict.lo { background: color-mix(in oklab, var(--ok) 25%, transparent); color: oklch(0.88 0.1 150); }

/* ==========================================================================
   TICKER TAPE — marquee under nav
   ========================================================================== */
.ticker-tape {
  position: relative;
  background: oklch(0.10 0.03 255);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.75);
  letter-spacing: .05em;
  height: 36px;
  display: flex; align-items: center;
}
html[data-theme="editorial"] .ticker-tape { background: oklch(0.18 0.015 60); border-bottom-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.ticker-tape::before, .ticker-tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.ticker-tape::before { left: 0; background: linear-gradient(90deg, oklch(0.10 0.03 255) 0%, transparent 100%); }
.ticker-tape::after { right: 0; background: linear-gradient(270deg, oklch(0.10 0.03 255) 0%, transparent 100%); }
html[data-theme="editorial"] .ticker-tape::before { background: linear-gradient(90deg, oklch(0.18 0.015 60) 0%, transparent 100%); }
html[data-theme="editorial"] .ticker-tape::after { background: linear-gradient(270deg, oklch(0.18 0.015 60) 0%, transparent 100%); }

.tape-track {
  display: flex; flex-shrink: 0; gap: 0;
  animation: tapeScroll 80s linear infinite;
  will-change: transform;
}
@keyframes tapeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.tape-sym { color: var(--accent); font-weight: 600; letter-spacing: .08em; }
.tape-px { color: rgba(255,255,255,.9); }
.tape-chg.up { color: var(--ok); }
.tape-chg.dn { color: var(--danger); }
.tape-z { color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* Hero crosshair decoration */
.hero-readout {
  position: absolute; right: 24px; top: 24px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px;
  color: color-mix(in oklab, var(--accent) 80%, white 20%);
  letter-spacing: .22em; text-transform: uppercase;
  opacity: .8;
  display: flex; gap: 14px; align-items: center;
}
.hero-readout .r-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 1.4s ease-in-out infinite; }

/* number glow on lab hero stats */
html[data-theme="lab"] .hero-stat strong {
  color: var(--accent);
  text-shadow: 0 0 14px color-mix(in oklab, var(--accent) 45%, transparent);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: var(--grid);
}
.section-head-text h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 10px;
}
html[data-theme="editorial"] .section-head-text h2 em { font-style: italic; }
.section-head-text p { color: var(--ink-2); max-width: 560px; font-size: 15.5px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink); font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink-3);
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.section-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   Ticker Cards
   ========================================================================== */
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-left: var(--grid);
  border-top: var(--grid);
}
.ticker-card {
  position: relative;
  background: var(--surface);
  border-right: var(--grid);
  border-bottom: var(--grid);
  padding: 24px;
  transition: background .15s ease;
}
.ticker-card:hover { background: var(--surface-2); }
.ticker-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px;
  width: 0; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2, var(--accent)) 100%);
  box-shadow: 0 0 12px var(--accent);
  transition: width .25s ease;
}
.ticker-card:hover::before { width: 100%; }
html[data-theme="lab"] .ticker-symbol {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.04) 100%),
    oklch(0.22 0.06 240);
  color: #eafcff;
  border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 0 0 1px color-mix(in oklab, var(--accent) 10%, transparent),
    0 0 18px color-mix(in oklab, var(--accent) 35%, transparent);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  text-shadow: 0 0 10px color-mix(in oklab, var(--accent) 45%, transparent);
}
html[data-theme="lab"] .ticker-card:hover .ticker-symbol {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 0 1px color-mix(in oklab, var(--accent) 20%, transparent),
    0 0 28px color-mix(in oklab, var(--accent) 55%, transparent);
}

.ticker-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2px;
}
.ticker-symbol {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-sm);
}
.ticker-price {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.ticker-card-title {
  font-size: 18px; font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  margin: 12px 0 20px;
  line-height: 1.2;
}
.ticker-card-title a { color: var(--ink); }
.ticker-card-title a:hover { color: var(--accent); }

.ticker-card-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 16px;
}
.score-item { display: flex; flex-direction: column; gap: 4px; }
.score-label {
  font-family: var(--font-mono);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.score-value {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 16px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ticker-card-verdict {
  display: flex; align-items: center; justify-content: space-between;
}

/* ==========================================================================
   Risk badges / status colors
   ========================================================================== */
.risk-high, .risk-red   { color: var(--danger); }
.risk-medium, .risk-yellow { color: oklch(0.55 0.18 55); }
.risk-low, .risk-green  { color: var(--ok); }

.risk-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 999px;
  border: 1px solid transparent;
}
.risk-badge .risk-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 18%, transparent);
}
.risk-badge.risk-high   { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 20%, transparent); }
.risk-badge.risk-medium { background: var(--warn-soft);   color: oklch(0.48 0.16 55); border-color: color-mix(in oklab, var(--warn) 30%, transparent); }
.risk-badge.risk-low    { background: var(--ok-soft);     color: var(--ok); border-color: color-mix(in oklab, var(--ok) 25%, transparent); }

.margin-of-safety {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--ink-2);
}

/* Grade letters */
.grade-a { color: var(--ok); font-weight: 700; }
.grade-b { color: oklch(0.62 0.15 140); font-weight: 700; }
.grade-c { color: oklch(0.60 0.17 70); font-weight: 700; }
.grade-d { color: oklch(0.58 0.20 40); font-weight: 700; }
.grade-f { color: var(--danger); font-weight: 700; }

/* ==========================================================================
   Category section
   ========================================================================== */
.category-section { padding: 80px 0; border-top: var(--grid); }
.category-section .ticker-grid { margin-top: 0; }

/* ==========================================================================
   How it works
   ========================================================================== */
.how-it-works { background: var(--surface-2); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  border-top: var(--grid);
  border-left: var(--grid);
}
.step-card {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--surface);
  border-right: var(--grid);
  border-bottom: var(--grid);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}
.step-number::before { content: "STEP "; opacity: 0.5; }
.step-card h3 { font-size: 20px; margin-bottom: 8px; }
.step-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 860px; margin: 0 auto; border-top: var(--grid); }
.faq-item { border-bottom: var(--grid); }
.faq-question {
  padding: 22px 56px 22px 0;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .15s ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }
.faq-question::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background:
    linear-gradient(currentColor,currentColor) center/14px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center/1.5px 14px no-repeat;
  color: var(--ink-3);
  transition: transform .25s ease, color .15s ease;
}
.faq-item[open] .faq-question::after {
  background: linear-gradient(currentColor,currentColor) center/14px 1.5px no-repeat;
  color: var(--accent);
}
.faq-question:hover { color: var(--accent); }
.faq-answer { padding: 0 80px 24px 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--nav-bg);
  color: var(--nav-fg);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer .site-logo { color: var(--nav-fg); }
.footer-tagline { color: rgba(255,255,255,0.6); margin-top: 14px; font-size: 14px; max-width: 360px; line-height: 1.55; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.75); font-size: 14px;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--accent); }
.site-footer .disclaimer-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 32px 0 24px;
}
.site-footer .disclaimer-text {
  color: rgba(255,255,255,0.6); font-size: 13px; margin: 0;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  color: rgba(255,255,255,0.5); font-size: 12.5px;
  font-family: var(--font-mono);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--accent); }

/* Disclaimer inline (not footer) */
.disclaimer-bar {
  background: var(--warn-soft);
  border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.disclaimer-text { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ==========================================================================
   Ticker analysis page
   ========================================================================== */
.ticker-header {
  position: relative;
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
  padding: 40px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-header::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(90% 70% at 50% 40%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 40%, black, transparent 90%);
  pointer-events: none;
}
.ticker-header .container { position: relative; }
.ticker-header .breadcrumb { margin-bottom: 28px; padding: 0; }
.ticker-header .breadcrumb-list { color: rgba(255,255,255,0.5); font-family: var(--font-mono); font-size: 12px; display: flex; gap: 8px; list-style: none; letter-spacing: .06em; }
.ticker-header .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,0.25); }
.ticker-header .breadcrumb-item a { color: rgba(255,255,255,0.65); }
.ticker-header .breadcrumb-item a:hover { color: var(--accent); }
.ticker-header .breadcrumb-item [aria-current] { color: #fff; }

.ticker-header-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 36px;
}
.ticker-symbol-large {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 28px;
  padding: 6px 14px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 8px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.ticker-company-name {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: var(--display-tracking);
  margin-bottom: 10px;
  max-width: 720px;
}
html[data-theme="editorial"] .ticker-company-name { font-style: italic; }
.ticker-exchange {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.55);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.ticker-price-block { text-align: right; }
.current-price {
  font-family: var(--font-mono); font-weight: 600;
  color: #fff;
  font-size: 48px; line-height: 1; display: block;
  letter-spacing: -0.02em;
}
.price-change {
  font-family: var(--font-mono); font-size: 14px;
  margin-top: 6px; display: inline-block;
}
.price-change.positive { color: oklch(0.75 0.18 150); }
.price-change.negative { color: oklch(0.75 0.18 25); }
.price-date {
  display: block; color: rgba(255,255,255,0.4);
  font-family: var(--font-mono); font-size: 11px;
  margin-top: 6px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Verdict dashboard */
.verdict-dashboard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 28px;
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.verdict-overall { display: flex; flex-direction: column; gap: 12px; padding-right: 32px; border-right: 1px solid rgba(255,255,255,0.1); }
.verdict-overall .eyebrow { color: rgba(255,255,255,0.5); }
.verdict-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.score-gauge { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.gauge-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    conic-gradient(var(--gauge-fill, rgba(255,255,255,0.8)) var(--gauge-pct, 70%), rgba(255,255,255,0.12) 0);
  flex-shrink: 0;
}
.gauge-ring::after {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%;
  background: oklch(0.18 0.02 250);
}
html[data-theme="editorial"] .gauge-ring::after { background: oklch(0.18 0.015 60); }
.gauge-number {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.score-gauge.risk-high .gauge-ring { --gauge-fill: oklch(0.75 0.2 25); --gauge-pct: 22%; }
.score-gauge.risk-medium .gauge-ring { --gauge-fill: oklch(0.8 0.18 75); --gauge-pct: 55%; }
.score-gauge.risk-low .gauge-ring { --gauge-fill: oklch(0.78 0.18 150); --gauge-pct: 86%; }
.gauge-text { display: flex; flex-direction: column; gap: 2px; }
.gauge-label { color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.gauge-risk-text {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: #fff;
}
.score-gauge.risk-high .gauge-risk-text { color: oklch(0.82 0.15 25); }
.score-gauge.risk-medium .gauge-risk-text { color: oklch(0.85 0.14 75); }
.score-gauge.risk-low .gauge-risk-text { color: oklch(0.82 0.14 150); }

/* Ticker body */
.ticker-body { padding: 0; }

.tldr-block {
  background: var(--surface);
  border: var(--grid);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  margin: 56px 0 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tldr-block .eyebrow { margin-bottom: 8px; }
.tldr-block h2 { font-size: 22px; margin-bottom: 14px; }
.tldr-text { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
html[data-theme="editorial"] .tldr-block { border-left: 0; border-top: 3px solid var(--accent); border-radius: 0; padding-left: 0; padding-right: 0; background: transparent; border-right: 0; }
html[data-theme="editorial"] .tldr-block h2 { font-size: 28px; }
html[data-theme="editorial"] .tldr-text { font-family: var(--font-display); font-size: 22px; line-height: 1.4; color: var(--ink); }

.analysis-section {
  padding: 72px 0;
  border-top: var(--grid);
}
.analysis-section:first-of-type { border-top: 0; }
.analysis-section h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 8px;
  max-width: 760px;
}
.analysis-section > .container > .eyebrow { display: block; margin-bottom: 12px; }
.analysis-section h3 {
  font-size: 18px;
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: var(--display-weight);
}

.metric-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  margin: 32px 0;
  padding: 36px;
  background: var(--surface);
  border: var(--grid);
  border-radius: var(--radius-lg);
}
.metric-big-number {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric-verdict { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; max-width: 520px; }

.metric-thresholds { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.metric-thresholds li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  font-family: var(--font-mono); font-size: 13px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
}
.metric-thresholds li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 20%, transparent);
}
.threshold-high { background: var(--danger-soft); color: var(--danger); }
.threshold-medium { background: var(--warn-soft); color: oklch(0.48 0.16 55); }
.threshold-low { background: var(--ok-soft); color: var(--ok); }

/* Valuation comparison */
.valuation-comparison {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
  padding: 40px; background: var(--surface); border: var(--grid);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}
.valuation-item { text-align: center; }
.valuation-label {
  display: block;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.valuation-amount {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(40px, 5vw, 60px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}
.valuation-vs {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em;
  color: var(--ink-3); text-transform: uppercase;
  padding: 0 16px;
}
.valuation-item:first-child .valuation-amount { color: var(--accent-ink); }
html[data-theme="lab"] .valuation-item:first-child .valuation-amount { color: oklch(0.5 0.14 215); }
html[data-theme="editorial"] .valuation-item:first-child .valuation-amount { color: oklch(0.5 0.15 128); }

.margin-of-safety-block {
  text-align: center;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  border: 1px solid transparent;
}
.margin-of-safety-block.risk-high   { background: var(--danger-soft); border-color: color-mix(in oklab, var(--danger) 20%, transparent); }
.margin-of-safety-block.risk-medium { background: var(--warn-soft); border-color: color-mix(in oklab, var(--warn) 25%, transparent); }
.margin-of-safety-block.risk-low    { background: var(--ok-soft); border-color: color-mix(in oklab, var(--ok) 25%, transparent); }
.mos-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: block; color: inherit; opacity: 0.75;
}
.mos-value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  display: block; margin: 8px 0;
  letter-spacing: -0.02em;
}
.margin-of-safety-block.risk-high .mos-value { color: var(--danger); }
.margin-of-safety-block.risk-medium .mos-value { color: oklch(0.48 0.17 55); }
.margin-of-safety-block.risk-low .mos-value { color: var(--ok); }
.mos-verdict { font-size: 14.5px; max-width: 560px; margin: 0 auto; line-height: 1.55; color: var(--ink-2); }

/* Moat */
.moat-summary { text-align: center; padding: 32px; background: var(--surface); border: var(--grid); border-radius: var(--radius-lg); margin: 24px 0; }
.moat-stars { font-size: 40px; color: var(--accent); letter-spacing: 6px; margin-bottom: 10px; }
html[data-theme="editorial"] .moat-stars { color: oklch(0.55 0.18 128); }
.moat-label {
  display: block; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 12px;
}
.moat-verdict { max-width: 560px; margin: 0 auto; color: var(--ink-2); line-height: 1.6; }

.moat-factors {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-left: var(--grid); border-top: var(--grid);
  margin-top: 32px;
}
.moat-factor {
  padding: 28px;
  background: var(--surface);
  border-right: var(--grid); border-bottom: var(--grid);
}
.moat-factor h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: var(--display-weight);
  margin-bottom: 8px;
}
.factor-score { color: var(--accent); letter-spacing: 4px; margin-bottom: 12px; font-size: 18px; }
html[data-theme="editorial"] .factor-score { color: oklch(0.55 0.18 128); }
.moat-factor p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* Dividend */
.dividend-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 40px;
  align-items: center; padding: 36px;
  background: var(--surface); border: var(--grid); border-radius: var(--radius-lg);
  margin: 24px 0;
}
.dividend-grade { text-align: center; min-width: 140px; padding-right: 40px; border-right: 1px solid var(--line); }
.grade-letter {
  font-family: var(--font-display); font-weight: 700;
  font-size: 96px; line-height: 1; display: block; letter-spacing: -0.05em;
}
.grade-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 8px; display: block;
}
.dividend-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.div-stat { display: flex; flex-direction: column; gap: 4px; }
.div-stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.div-stat-value { font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--ink); }

/* ==========================================================================
   Data tables
   ========================================================================== */
.data-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: var(--grid); border-radius: var(--radius);
  background: var(--surface);
}
.data-table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.data-table caption {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  padding: 16px 20px 0;
  caption-side: top;
}
.data-table th {
  background: var(--surface-2);
  padding: 12px 20px;
  text-align: left; font-weight: 500;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: var(--grid);
  white-space: nowrap;
  font-family: var(--font-mono);
}
.data-table td {
  padding: 12px 20px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }

/* ==========================================================================
   Chart — inline SVG rendered at build time
   ========================================================================== */
.chart-rendered {
  position: relative;
  background: var(--surface);
  border: var(--grid);
  border-radius: var(--radius);
  padding: 12px 8px 8px;
  margin: 20px 0;
  overflow: hidden;
}
.chart-rendered svg {
  display: block;
  width: 100%;
  height: auto;
}
.chart-rendered text { user-select: none; }

/* ==========================================================================
   Breadcrumb (non-header)
   ========================================================================== */
.breadcrumb {
  padding: 20px 0 0;
}
.breadcrumb-list {
  display: flex; gap: 8px; list-style: none; padding: 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/"; margin-right: 8px; color: var(--ink-3);
}
.breadcrumb-item a { color: var(--ink-2); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item [aria-current] { color: var(--ink); }

/* ==========================================================================
   Listing page
   ========================================================================== */
.listing-header {
  background: var(--surface);
  padding: 56px 0 40px;
  border-bottom: var(--grid);
}
.listing-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}
html[data-theme="editorial"] .listing-header h1 em { font-style: italic; }
.listing-header p { font-size: 16px; color: var(--ink-2); max-width: 660px; }

.listing-controls {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  margin: -20px 0 0;
  border-top: var(--grid); border-bottom: var(--grid);
  background: var(--surface);
}
.search-filter input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 10px 14px 10px 38px;
  font: inherit; font-size: 14px;
  border-radius: var(--radius);
  color: var(--ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px 50%;
}
.search-filter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.listing-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 14px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  color: var(--ink-2);
  transition: all .15s ease;
}
.filter-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-btn.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.listing-sort { display: flex; align-items: center; gap: 10px; }
.listing-sort label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.listing-sort select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font: inherit; font-size: 13px;
  font-family: var(--font-mono);
  border-radius: var(--radius);
  color: var(--ink);
}
.no-results { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ==========================================================================
   Methodology page
   ========================================================================== */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.page-content h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  margin: 32px 0 24px;
  letter-spacing: var(--display-tracking);
}
html[data-theme="editorial"] .page-content h1 em { font-style: italic; }
.page-content > p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.page-content section { padding: 48px 0; border-top: var(--grid); }
.page-content section:first-of-type { border-top: 0; padding-top: 32px; }
.page-content section h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.page-content section h3 { font-size: 18px; margin-top: 32px; margin-bottom: 10px; }
.page-content ul, .page-content ol {
  margin: 16px 0; padding-left: 24px; color: var(--ink-2);
}
.page-content li { margin-bottom: 8px; }
.page-content li strong { color: var(--ink); }
.page-content a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 50%, transparent); }
html[data-theme="editorial"] .page-content a { color: oklch(0.5 0.18 128); }

.formula-block {
  background: var(--nav-bg);
  color: var(--accent);
  padding: 24px 28px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 18px;
  text-align: center;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}
.formula-block::before {
  content: "formula";
  position: absolute; top: 12px; left: 16px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.methodology-table {
  width: 100%;
  border: var(--grid);
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 14px;
  background: var(--surface);
}
.methodology-table th, .methodology-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px dashed var(--line);
}
.methodology-table th {
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  border-bottom: var(--grid);
}
.methodology-table tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Data source attribution
   ========================================================================== */
.data-source {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 16px;
  letter-spacing: 0.02em;
}
.data-source a { color: var(--accent); }

/* ==========================================================================
   Analysis disclaimer
   ========================================================================== */
.analysis-disclaimer {
  background: var(--surface-2);
  padding: 56px 0 !important;
  border-top: var(--grid);
}
.analysis-disclaimer h2 { font-size: 18px; margin-bottom: 12px; }
.analysis-disclaimer p { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; }
.analysis-disclaimer a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 50%, transparent); }

/* ==========================================================================
   Tweaks panel (shared)
   ========================================================================== */
.tweaks-panel {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  width: 280px;
  font-family: var(--font-sans);
  display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-row { margin-bottom: 14px; }
.tweaks-row label { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.tweaks-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--surface-2); padding: 3px; border-radius: 6px;
}
.tweaks-seg button {
  background: transparent; border: 0;
  padding: 7px 10px;
  font: inherit; font-size: 12px;
  font-family: var(--font-mono);
  border-radius: 4px; color: var(--ink-2);
}
.tweaks-seg button.is-active { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .moat-factors { grid-template-columns: 1fr; }
  .verdict-dashboard { grid-template-columns: 1fr; }
  .verdict-overall { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-right: 0; padding-bottom: 20px; }
  .verdict-scores { grid-template-columns: 1fr; }
  .listing-controls { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header .container { grid-template-columns: auto auto; gap: 16px; }
  .main-nav { order: 99; grid-column: 1 / -1; }
  .nav-list { flex-wrap: wrap; gap: 0; }
  .nav-link { padding: 6px 10px; font-size: 12.5px; }
  .header-search { display: none; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .hero-stats { gap: 24px; }
  .ticker-header-top { grid-template-columns: 1fr; }
  .ticker-price-block { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .metric-highlight { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .metric-big-number { font-size: 72px; }
  .valuation-comparison { grid-template-columns: 1fr; }
  .dividend-summary { grid-template-columns: 1fr; }
  .dividend-grade { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 24px; }
  .section { padding: 56px 0; }
  .analysis-section { padding: 48px 0; }
  .listing-controls { padding: 16px; }
}

/* ==========================================================================
   Hub pages
   ========================================================================== */
.hub-hero {
  background: var(--surface);
  padding: 56px 0 40px;
  border-bottom: var(--grid);
}
.hub-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}
.hub-hero-desc {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 700px;
  line-height: 1.6;
}

/* ==========================================================================
   Learn articles
   ========================================================================== */
.learn-header {
  background: var(--surface);
  padding: 56px 0 40px;
  border-bottom: var(--grid);
}
.learn-header h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 12px;
}
.learn-desc {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 660px;
  line-height: 1.6;
}
.learn-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
}
.learn-toc {
  padding: 24px 0;
  border-bottom: var(--grid);
}
.toc-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color .15s ease;
}
.toc-list a:hover { color: var(--accent); }

.learn-body {
  padding: 48px 0 64px;
}
.learn-body h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: var(--grid);
}
.learn-body h3 {
  font-size: 20px;
  margin: 32px 0 12px;
}
.learn-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 16px;
}
.learn-body ul, .learn-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.learn-body li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.learn-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--ink-2);
}
.learn-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--surface-dim);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ==========================================================================
   Homepage engine cards
   ========================================================================== */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-left: var(--grid);
  border-top: var(--grid);
}
.engine-card {
  padding: 36px 28px 32px;
  background: var(--surface);
  border-right: var(--grid);
  border-bottom: var(--grid);
  transition: background .15s ease;
}
.engine-card:hover { background: var(--surface-2); }
.engine-card .engine-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}
.engine-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.engine-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.engine-card h3 a:hover { color: var(--accent); }
.engine-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.engine-card .engine-keywords {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* Mega menu */
.nav-item { position: relative; }
.nav-item .nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 220px;
  z-index: 60;
  box-shadow: var(--shadow-lg);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: color-mix(in oklab, var(--nav-fg) 80%, transparent);
  transition: color .15s ease, background .15s ease;
}
.nav-dropdown a:hover {
  color: var(--nav-fg);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .engine-grid { grid-template-columns: 1fr; }
  .nav-item .nav-dropdown {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: block;
  }
}

/* ==========================================================================
   Quiz
   ========================================================================== */
.quiz-section { border-top: 2px solid var(--accent); }
.quiz-section .section-head { border-bottom: 0; padding-bottom: 0; }

#fvl-quiz { max-width: 780px; margin: 0 auto; }

.quiz-progress {
  height: 4px;
  background: var(--surface-dim);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.quiz-score-live {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

.quiz-question {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 24px;
  line-height: 1.35;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--surface-2);
}
.quiz-option:disabled { cursor: default; opacity: 0.7; }
.quiz-option.quiz-correct {
  border-color: var(--ok);
  background: var(--ok-soft);
  opacity: 1;
  font-weight: 600;
}
.quiz-option.quiz-wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
  opacity: 1;
}

.quiz-feedback {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}
.quiz-fb-correct {
  background: var(--ok-soft);
  border: 1px solid color-mix(in oklab, var(--ok) 25%, transparent);
}
.quiz-fb-wrong {
  background: var(--danger-soft);
  border: 1px solid color-mix(in oklab, var(--danger) 20%, transparent);
}
.quiz-next-btn {
  margin-top: 12px;
  padding: 10px 24px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.quiz-next-btn:hover { opacity: 0.85; }

/* Quiz result */
.quiz-result { text-align: center; padding: 40px 0; }
.quiz-result-grade {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.quiz-result-title {
  font-size: 28px;
  margin-bottom: 8px;
}
.quiz-result-score {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.quiz-result-desc {
  color: var(--ink-2);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 15px;
}
.quiz-share { margin-top: 24px; }
.quiz-share-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease;
}
.quiz-share-btn:hover { border-color: var(--accent); color: var(--accent); }
.quiz-retry-btn {
  padding: 12px 32px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.quiz-retry-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   Academy
   ========================================================================== */
.academy-hero {
  background: var(--hero-bg);
  color: #fff;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.academy-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 16px 0 20px;
  color: #fff;
}
.academy-hero h2 {
  color: #fff;
}
.academy-hero-subtitle {
  font-size: 18px;
  max-width: 700px;
  line-height: 1.7;
  opacity: 0.85;
}
.academy-blockquote {
  margin: 40px 0 0;
  padding: 24px 32px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 600px;
}
.academy-blockquote p {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 8px;
}
.academy-blockquote cite {
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0.7;
  font-style: normal;
}
.academy-intro {
  max-width: 800px;
}
.academy-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 20px;
}
.academy-intro p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 100px;
  max-width: 900px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
  padding-left: 24px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-2);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
  z-index: 1;
}
.timeline-year {
  position: absolute;
  left: -100px;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  width: 70px;
  text-align: right;
}
.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.timeline-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Masters grid */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: var(--grid);
  border-top: var(--grid);
}
.master-card {
  padding: 32px 28px;
  background: var(--surface);
  border-right: var(--grid);
  border-bottom: var(--grid);
}
.master-card-tribute {
  background: linear-gradient(135deg, oklch(0.97 0.01 200), var(--surface));
  box-shadow: inset 3px 0 0 var(--accent);
}
.master-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.master-card h3 { font-size: 20px; margin-bottom: 4px; }
.master-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.master-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 12px; }
.master-quote {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* Mental models grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: var(--grid);
  border-top: var(--grid);
}
.model-card {
  padding: 28px 24px;
  background: var(--surface);
  border-right: var(--grid);
  border-bottom: var(--grid);
}
.model-card h3 { font-size: 18px; margin-bottom: 8px; }
.model-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 1080px) {
  .masters-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .timeline { padding-left: 24px; }
  .timeline::before { left: 0; }
  .timeline-year { position: static; text-align: left; margin-bottom: 4px; width: auto; }
  .timeline-item::before { left: -17px; }
  .timeline-item { padding-left: 16px; }
  .masters-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
}

/* Quiz start card */
.quiz-start-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.quiz-start-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 16px 0;
  line-height: 1.3;
}
.quiz-start-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.btn-quiz-start {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 14px 32px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}
.btn-quiz-start:hover { opacity: 0.85; }

/* Quiz badge */
.quiz-badge {
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, oklch(0.20 0.03 60), oklch(0.14 0.02 250));
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: var(--radius-lg);
  display: inline-block;
}
.quiz-badge-icon { font-size: 48px; margin-bottom: 8px; }
.quiz-badge-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Quiz CTA in header */
.quiz-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background .15s ease;
}
.quiz-cta-btn:hover { background: color-mix(in oklab, var(--accent) 25%, transparent); }
