/* ============================================================
   LAUNCHED — design system
   Editorial research repository: white paper, ink black, one
   electric blue. Emphasis comes from a highlighter swipe and a
   thick underline, never from tinted badge pills.
   ============================================================ */

:root {
  /* --- surfaces --- */
  --paper: #ffffff;        /* page */
  --paper-2: #f6f7f8;      /* alternating band / inset */
  --paper-3: #eef0f3;      /* deeper inset, bar tracks */
  --card: #ffffff;
  --line: #d8dee8;         /* hairline border */
  --line-soft: #e8ecf1;    /* divider inside a card */
  --line-strong: #868c9c;  /* boundary of an interactive control — 3.36:1 on white */

  /* --- ink --- */
  --ink: #121212;          /* headings, primary text */
  --ink-soft: #41464e;     /* body copy */
  --ink-mute: #6d6d6d;     /* meta, captions — 5.2:1 on white */

  /* --- accent: one electric blue, used semantically --- */
  --accent: #0061ff;       /* 5.05:1 on white */
  --accent-deep: #0047c2;  /* 7.8:1 — links, hover */
  --accent-wash: #f0f5ff;  /* faintest tint, inset panels */
  --mark: #cfe0fb;         /* highlighter swipe */

  /* --- semantic status --- */
  --good: #1c6b3a;
  --good-soft: #e3f4ea;
  --warn: #8a5200;
  --warn-soft: #fdf0dc;
  --bad: #b3271e;
  --bad-soft: #fceae8;

  /* --- form --- */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 1px 2px rgba(18, 30, 55, 0.04), 0 8px 24px rgba(18, 30, 55, 0.06);
  --shadow-lift: 0 2px 6px rgba(18, 30, 55, 0.06), 0 18px 44px rgba(18, 30, 55, 0.12);
  --font-display: "Poppins", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.68;          /* Poppins is wide — needs air to read well */
  letter-spacing: -0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.028em; color: var(--ink);
}
.display { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); letter-spacing: -0.022em; }
h4 { font-size: 1rem; letter-spacing: -0.015em; }

/* Section eyebrow: a drawn rule plus a letterspaced label. Deliberately not a
   tinted badge pill — that reads as template filler. */
.kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--accent-deep);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; flex: none;
  background: currentColor; border-radius: 2px;
}
.center .kicker { justify-content: center; }

/* Emphasis devices — highlighter swipe and thick underline. */
mark, .hi {
  background: linear-gradient(180deg, transparent 48%, var(--mark) 48%, var(--mark) 90%, transparent 90%);
  color: var(--ink); padding: 0 0.08em; border-radius: 2px;
}
.uline {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 3px; text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

.lede { font-size: clamp(1.02rem, 1.7vw, 1.14rem); color: var(--ink-soft); max-width: 42em; line-height: 1.65; }
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: clamp(56px, 8.5vw, 104px) 0; }
.section-tight { padding: clamp(36px, 6vw, 70px) 0; }
.band-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px; transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* .solid is toggled by scroll over the dark hero; .ink is the at-rest state for
   every page whose own header is light. Both need the same bar treatment —
   without it the white nav contents sit invisibly on a near-white header. */
.nav.solid, .nav.ink { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-logo { color: #fff; display: flex; align-items: center; gap: 9px; }
/* the wordmark is the brand artwork, masked so it inherits the nav's colour
   (white over the hero, ink once the nav goes solid) */
.wordmark {
  display: block; background-color: currentColor;
  -webkit-mask: url("/assets/img/logo-launched.webp") no-repeat center / contain;
          mask: url("/assets/img/logo-launched.webp") no-repeat center / contain;
}
.nav-logo .wordmark { width: 106px; height: 19.5px; }
.footer-brand .wordmark { width: 152px; height: 28px; }
.nav.solid .nav-logo, .nav.ink .nav-logo { color: var(--ink); }
.nav-logo:hover { text-decoration: none; }
.nav-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,0.94); font-weight: 500; font-size: 0.93rem; letter-spacing: -0.008em; }
.nav.solid .nav-links a, .nav.ink .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { text-decoration: none; color: #fff; }
.nav.solid .nav-links a:hover, .nav.ink .nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: #fff; color: var(--accent-deep) !important; padding: 9px 17px;
  border-radius: var(--radius-sm); font-weight: 600 !important; box-shadow: var(--shadow);
}
.nav.solid .nav-cta, .nav.ink .nav-cta { background: var(--accent); color: #fff !important; box-shadow: none; }
.nav.solid .nav-cta:hover, .nav.ink .nav-cta:hover { background: var(--accent-deep); color: #fff !important; }

/* dropdown */
.dropdown { position: relative; }
.dropdown > a::after {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em;
  margin-left: 5px; vertical-align: -0.08em; background-color: currentColor;
  -webkit-mask: url("/assets/img/icons/chevron-down.svg") no-repeat center / contain;
          mask: url("/assets/img/icons/chevron-down.svg") no-repeat center / contain;
}
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 244px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift); padding: 8px; display: none; z-index: 70;
}
.dropdown-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 13px; border-radius: var(--radius-xs);
  color: var(--ink) !important; font-weight: 600; font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--accent-wash); opacity: 1; text-decoration: none; }
.dropdown-menu .dd-note { font-size: 0.75rem; color: var(--ink-mute); font-weight: 400; display: block; }

/* mobile nav */
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 26px; height: 3px; border-radius: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }
.nav.solid .nav-burger span, .nav.ink .nav-burger span { background: var(--ink); }
@media (max-width: 880px) {
  /* backdrop-filter on the nav would make it the containing block for the
     fixed-position menu panel below, clipping it to the nav bar. */
  .nav, .nav.solid, .nav.ink { backdrop-filter: none !important; }
  .nav.solid, .nav.ink { background: rgba(255, 255, 255, 0.98); }
  .nav-links {
    position: fixed; inset: 0; width: 100vw; height: 100dvh;
    background: var(--ink); flex-direction: column;
    justify-content: center; gap: 30px; transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1); z-index: 65;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: #fff !important; font-size: 1.3rem; }
  .nav-burger { display: block; position: relative; z-index: 66; }
  .nav-links .dropdown-menu { position: static; background: transparent; border: 0; box-shadow: none; text-align: center; display: block; }
  .nav-links .dropdown-menu a { color: rgba(255,255,255,0.8) !important; font-size: 1rem; }
  .nav-links .dropdown > a { display: none; }
}

/* ---------- icons (white Lucide set, masked) ---------- */
.icon {
  display: inline-block; width: 1.15em; height: 1.15em;
  background-color: currentColor; vertical-align: -0.2em; flex: none;
  -webkit-mask: var(--i) no-repeat center / contain;
          mask: var(--i) no-repeat center / contain;
}
.icon-badge {
  width: 42px; height: 42px; border-radius: var(--radius-sm); color: var(--accent);
  background: var(--accent-wash); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge .icon { width: 21px; height: 21px; }
.band-ink .icon-badge { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.14); color: #fff; }

/* ---------- hero: pinned parallax scene ----------
   Six aligned 2048x678 layers share one coordinate system. Only wrappers are
   transformed (translate/scale/opacity) — never the images, never layout props.
   Cloud drift lives on an inner wrapper so it can't fight the scroll transform. */
.hero-scrolly { position: relative; height: 170svh; }
@supports not (height: 1svh) { .hero-scrolly { height: 170vh; } }

.hero-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: linear-gradient(180deg, #2E7CC4 0%, #4C9BD8 55%, #9CCBE8 100%);
}
@supports not (height: 1svh) { .hero-sticky { height: 100vh; } }

/* the shared artwork coordinate system, cover-fitted to the frame */
.hero-scene {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 10;
  width: max(100%, calc(100svh * 3.0206)); height: max(100%, calc(100vw / 3.0206));
  min-width: 100%; min-height: 100%;
}
.hl {
  position: absolute; inset: 0; pointer-events: none; user-select: none;
  will-change: transform, opacity;
}
.hl img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none; user-select: none; display: block;
}
.hl-sky      { z-index: 0; }
.hl-clouds   { z-index: 10; }
.hl-far      { z-index: 20; }
.hl-mid      { z-index: 30; }
.hl-hill     { z-index: 1; }
.hl-drift    { position: absolute; inset: 0; will-change: transform; }

/* foreground scene: same geometry, painted above the copy */
.hero-scene-fg { z-index: 40; pointer-events: none; }

/* partner logos on the artwork's lower edge; each mark gets the same optical
   box so wordmarks and icon marks read as one evenly weighted row */
.hero-logos {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 48;
  padding: 64px 22px 26px; text-align: center;
  background: linear-gradient(180deg, rgba(6, 24, 44, 0) 0%, rgba(6, 24, 44, 0.42) 55%, rgba(6, 24, 44, 0.62) 100%);
  will-change: opacity;
}
.hero-logos .eyebrow {
  color: rgba(255,255,255,0.92); font-family: var(--font-display); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 18px; text-shadow: 0 2px 12px rgba(6, 24, 44, 0.6);
}
.logo-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(22px, 4.4vw, 64px); flex-wrap: nowrap;
  max-width: 1120px; margin: 0 auto;
}
.logo-row img {
  height: 36px; width: auto; max-width: 142px; object-fit: contain;
  opacity: 0.95; filter: drop-shadow(0 2px 10px rgba(6, 24, 44, 0.5));
}
.logo-row img.is-wordmark { height: 27px; }
.logo-row img.is-tall { height: 40px; }

/* Hero copy is the supplied text artwork, so the typography is exactly the brand
   lockup. It is decoupled from the scene's cover-crop and sized to the viewport,
   so the full wordmark is always visible. A visually-hidden heading keeps the page
   semantic. z-index 20 places it between the background scene (10) and the
   foreground hill+phone (40), so the phone occludes it as in the artwork. */
.hero-inner {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  z-index: 45; pointer-events: none;
  will-change: transform, opacity;
  /* The phone's right edge sits 6.4% of the SCENE width right of centre, and the
     tagline begins 15.9% of the BLOCK width right of centre. Sizing the block
     against both vw and svh keeps the tagline clear of the phone on tall windows,
     where the cover-fitted scene (and so the phone) grows but vw does not. */
  width: min(1560px, max(95vw, 148svh));
}
@supports not (width: 1svh) { .hero-inner { width: min(1560px, max(95vw, 148vh)); } }
.hero-inner img { width: 100%; height: auto; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

@media (max-width: 768px) {
  /* An ultrawide scene cover-fitted to a portrait frame zooms enormously, so on
     phones the artwork is bottom-anchored at a fixed height and the sky gradient
     fills above it. The copy then sits in that sky rather than on the phone. */
  .hero-scene {
    top: auto; bottom: 0; left: 50%;
    transform: translateX(-50%);
    height: 62svh; width: max(100%, calc(62svh * 3.0206));
    min-height: 0;
    /* soften where the artwork's sky meets the CSS gradient above it */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
  }
  .hero-inner { top: 27%; width: 94vw; }
  .hero-logos { padding: 44px 12px 18px; }
  .hero-logos .eyebrow { font-size: 0.62rem; margin-bottom: 12px; }
  .logo-row { gap: 14px; }
  .logo-row img { height: 22px; max-width: 76px; }
  .logo-row img.is-wordmark { height: 16px; }
  .logo-row img.is-tall { height: 25px; }
}

/* static scene, no pinning, when motion is reduced (JS also skips the timeline) */
@media (prefers-reduced-motion: reduce) {
  .hero-scrolly { height: auto; }
  .hero-sticky { position: relative; height: 100svh; }
}

/* ---------- topic cards: before/after thumbnail + overlaid title ---------- */
.topic-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 44px; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }

.topic-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 16 / 10;
  background: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); text-decoration: none; }
.topic-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.topic-card:hover img { transform: scale(1.045); }
/* scrim keeps white type legible over both light and dark thumbnails */
.topic-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.20) 0%, rgba(6, 12, 24, 0) 30%, rgba(6, 12, 24, 0.58) 62%, rgba(6, 12, 24, 0.93) 100%);
}
.topic-card h3 {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2;
  color: #fff; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1;
  text-shadow: 0 2px 18px rgba(6, 12, 24, 0.55);
}
.topic-card .card-note {
  position: absolute; left: 20px; top: 16px; z-index: 2;
  color: #fff; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  background: rgba(6, 12, 24, 0.62); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: var(--radius-xs);
}
/* the vote CTA sits in the same grid but is typographic, not a thumbnail */
.topic-card.is-cta {
  background: var(--ink); border-color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: 28px;
}
.topic-card.is-cta::after { content: none; }
.topic-card.is-cta h3 { position: static; text-shadow: none; margin-bottom: 8px; color: #fff; }
.topic-card.is-cta p { color: rgba(255,255,255,0.74); font-size: 0.92rem; }

/* ---------- stat band ---------- */
.stats { background: var(--paper); }
.stat-row {
  display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); margin-top: 40px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
}
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: center; background: var(--card); padding: 30px 22px; }
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1; color: var(--ink);
}
.stat span { color: var(--ink-mute); font-weight: 500; font-size: 0.9rem; display: block; margin-top: 10px; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.card h3 { margin: 14px 0 6px; }
.card .thesis { color: var(--accent-deep); font-weight: 600; font-size: 0.94rem; }
.card p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* small data tags — squared, flat tint, no decorative border */
.pill {
  font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: var(--radius-xs);
  background: var(--accent-wash); color: var(--accent-deep); letter-spacing: 0.01em;
}
.pill.gold { background: var(--warn-soft); color: var(--warn); }
.pill.good { background: var(--good-soft); color: var(--good); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--accent); color: #fff;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; background: var(--accent-deep); color: #fff; box-shadow: var(--shadow); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.btn.yt { background: #d90029; }
.btn.yt:hover { background: #b30021; }
.btn.big { padding: 15px 30px; font-size: 1.02rem; }
.band-ink .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.34); }
.band-ink .btn.ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---------- dark band (method) ---------- */
.band-ink { background: var(--ink); color: rgba(255,255,255,0.76); }
.band-ink h2, .band-ink h3, .band-ink h4 { color: #fff; }
.band-ink .lede { color: rgba(255,255,255,0.72); }
.band-ink .card { background: rgba(255,255,255,0.045); border-color: rgba(255,255,255,0.12); box-shadow: none; color: #fff; }
.band-ink .card p { color: rgba(255,255,255,0.68); }
.band-ink .kicker { color: #7fb0ff; }
.band-ink mark, .band-ink .hi { background: linear-gradient(180deg, transparent 48%, rgba(0, 97, 255, 0.62) 48%, rgba(0, 97, 255, 0.62) 90%, transparent 90%); color: #fff; }
.band-ink .uline { color: #fff; text-decoration-color: #7fb0ff; }
.band-ink a { color: #9ec4ff; }
.band-ink .btn { color: #fff; }
.band-ink .btn:hover { color: #fff; }

/* ---------- newsletter ---------- */
.news-band { background: var(--accent); color: #fff; }
.news-band h2 { color: #fff; }
.news-band .kicker { color: #fff; }
.news-band mark, .news-band .hi { background: linear-gradient(180deg, transparent 48%, rgba(0,32,96,0.42) 48%, rgba(0,32,96,0.42) 90%, transparent 90%); color: #fff; }
.news-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .news-grid { grid-template-columns: 1.08fr 1fr; gap: 60px; } }
.news-band .lede { color: #fff; }
.news-points { display: grid; gap: 11px; margin-top: 22px; list-style: none; }
.news-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; color: #fff; }
.news-points .icon { color: #fff; margin-top: 0.28em; width: 1em; height: 1em; }
.news-card {
  background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 20px 50px rgba(0, 30, 90, 0.22);
}
.news-card h3 { font-size: 1.2rem; }
.news-card > p { color: var(--ink-mute); font-size: 0.9rem; margin-top: 6px; }
.news-form { display: grid; gap: 10px; margin-top: 18px; }
.news-field {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-field::placeholder { color: var(--ink-mute); }
.news-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.16); }
.news-band :focus-visible { outline-color: #fff; }
.news-form .btn { justify-content: center; width: 100%; }
.news-fine { font-size: 0.78rem; color: var(--ink-mute); margin-top: 12px; line-height: 1.5; }
.news-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.news-ok {
  display: none; gap: 10px; align-items: flex-start; margin-top: 16px;
  background: var(--good-soft); border: 1px solid #b9dfc8; border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--good); font-size: 0.9rem; font-weight: 600;
}
.news-ok.show { display: flex; }
.news-err { display: none; margin-top: 12px; color: var(--bad); font-size: 0.86rem; font-weight: 600; }
.news-err.show { display: block; }
form.sent .news-form,
form.sent .news-fine,
form.sent .fn-row { display: none; }

/* compact signup in the footer */
.footer-news { margin-top: 20px; max-width: 26em; }
.footer-news .fn-label { color: #fff; font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 4px; }
.footer-news p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 11px; }
.footer-news .fn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-news .news-field {
  flex: 1 1 190px; background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.34);
  color: #fff; padding: 11px 13px; font-size: 0.92rem;
}
.footer-news .news-field::placeholder { color: rgba(255,255,255,0.55); }
.footer-news .news-field:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.14); }
.footer-news .btn { padding: 11px 18px; font-size: 0.9rem; }
.footer-news .news-ok { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: #fff; }
.footer-news .news-err { color: #ffb3a8; }

/* ---------- topic page ---------- */
.topic-hero {
  padding: 148px 0 66px; position: relative; overflow: hidden;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.topic-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); max-width: 17em; color: var(--ink); }
.topic-hero .thesis-line { font-size: clamp(1.02rem, 2.1vw, 1.3rem); font-weight: 500; color: var(--ink-soft); margin-top: 14px; max-width: 40em; }
.topic-hero .kicker { color: var(--accent-deep); }
.breadcrumbs { font-size: 0.84rem; color: var(--ink-mute); font-weight: 500; margin-bottom: 16px; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--accent-deep); }

.doc-links { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
@media (min-width: 860px) { .doc-links { grid-template-columns: repeat(3, 1fr); } }
.doc-link {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
  color: inherit; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.doc-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.doc-link .badge-mini {
  width: 34px; height: 34px; border-radius: var(--radius-xs); color: var(--accent); flex: none;
  background: var(--accent-wash); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.doc-link .badge-mini .icon { width: 18px; height: 18px; }
.doc-link b, .doc-link span { display: block; }
.doc-link b { display: block; font-size: 0.94rem; color: var(--ink); }
.doc-link span { font-size: 0.8rem; color: var(--ink-mute); }
.doc-link .raw { font-size: 0.72rem; color: var(--accent-deep); font-weight: 600; }

.takeaway-list { display: grid; gap: 14px; margin-top: 26px; }
.takeaway {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.takeaway b { font-size: 1rem; color: var(--ink); }
.takeaway p { color: var(--ink-soft); font-size: 0.93rem; margin-top: 4px; }
.takeaway .src { font-size: 0.78rem; color: var(--ink-mute); margin-top: 6px; display: block; }

/* ---------- mobbin explorer ---------- */
.mobbin-x { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 34px); }
.mx-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: end; }
.mx-overall {
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  padding: 18px 22px; margin-top: 20px; font-weight: 500; font-size: 1rem;
}
.mx-overall .kicker { color: #7fb0ff; display: flex; margin-bottom: 8px; }
/* inside a dark band the ink fill would vanish into the band itself */
.band-ink .mx-overall { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); }
.mx-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 20px; }
.mx-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.mx-stat .label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.mx-stat .barwrap { background: var(--paper-3); border-radius: 99px; height: 8px; margin: 10px 0 6px; overflow: hidden; }
.mx-stat .bar { height: 100%; border-radius: 99px; background: var(--accent); width: 0; transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mx-stat .value { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em; color: var(--ink); }
.mx-stat .note { font-size: 0.75rem; color: var(--ink-mute); }
.mx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.mx-filter {
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-xs); padding: 7px 15px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.84rem; cursor: pointer; color: var(--ink-soft);
  transition: 0.2s;
}
.mx-filter:hover { border-color: var(--ink); }
.mx-filter.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.mx-apps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 18px; }
.mx-app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.mx-app .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mx-app b { font-size: 0.98rem; color: var(--ink); }
.verdict { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; padding: 4px 9px; border-radius: var(--radius-xs); text-transform: uppercase; white-space: nowrap; }
.verdict.aligned { background: var(--good-soft); color: var(--good); }
.verdict.partial { background: var(--warn-soft); color: var(--warn); }
.verdict.violates { background: var(--bad-soft); color: var(--bad); }
.mx-app p { font-size: 0.86rem; color: var(--ink-soft); margin-top: 8px; }
.mx-app .links { margin-top: 10px; font-size: 0.78rem; font-weight: 600; }
.mx-method { font-size: 0.8rem; color: var(--ink-mute); margin-top: 22px; }

/* ---------- prompt box ---------- */
.prompt-box { background: var(--ink); color: rgba(255,255,255,0.76); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 34px); position: relative; }
.prompt-box h3 { color: #fff; }
.prompt-box .kicker { color: #7fb0ff; }
.prompt-box .lede { color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.prompt-pre {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #dbe6f5;
  border-radius: var(--radius-sm); padding: 18px; margin-top: 16px; font-size: 0.79rem;
  font-family: var(--font-mono); white-space: pre-wrap;
  max-height: 300px; overflow: auto; line-height: 1.6;
}
.copy-btn { position: relative; }
.copy-btn.copied { background: var(--good); }

/* ---------- demo embed ---------- */
.demo-frame-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.demo-frame { width: 100%; height: min(80vh, 940px); border: 0; display: block; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 500; }
.demo-bar a { color: #9ec4ff; }

/* ---------- doc pages (rendered markdown) ---------- */
.doc-page { padding: 132px 0 80px; background: var(--paper-2); }
.doc-body {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px); max-width: 820px; margin: 0 auto;
}
/* Poppins is a display face; long-form needs a longer measure and more leading. */
.doc-body p, .doc-body li { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.75; }
/* the global margin reset leaves paragraphs touching — restore a reading rhythm */
.doc-body p { margin: 0.95em 0; }
.doc-body > :first-child { margin-top: 0; }
.doc-body > :last-child { margin-bottom: 0; }
.doc-body h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.doc-body h2 { font-size: clamp(1.28rem, 2.6vw, 1.6rem); margin: 2em 0 0.6em; padding-top: 0.7em; border-top: 1px solid var(--line-soft); }
.doc-body h3 { margin: 1.6em 0 0.5em; }
.doc-body ul, .doc-body ol { padding-left: 1.35em; margin: 0.8em 0; }
.doc-body li { margin: 0.3em 0; }
.doc-body li::marker { color: var(--ink-mute); }
.doc-body blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-wash);
  padding: 12px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.1em 0;
}
.doc-body blockquote p { color: var(--ink); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.87rem; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc-body th { font-weight: 600; background: var(--paper-2); position: sticky; top: 0; color: var(--ink); }
.doc-body code { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 5px; font-size: 0.85em; font-family: var(--font-mono); color: var(--ink); }
.doc-body pre { background: var(--ink); color: #dbe6f5; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 1em 0; }
.doc-body pre code { background: none; border: 0; color: inherit; padding: 0; }
.doc-body hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2em 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-topbar { max-width: 820px; margin: 0 auto 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.doc-topbar .crumbs { font-size: 0.84rem; font-weight: 500; color: var(--ink-mute); }
.version-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
.version-tabs a { padding: 6px 15px; border-radius: var(--radius-xs); font-weight: 600; font-size: 0.84rem; color: var(--ink-soft); }
.version-tabs a.active { background: var(--accent); color: #fff; }
.version-tabs a:hover { text-decoration: none; }
.version-tabs a:not(.active):hover { background: var(--paper-2); }

/* ---------- leaderboard ---------- */
.lb-list { display: grid; gap: 12px; margin-top: 30px; }
.lb-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lb-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.lb-rank { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink-mute); min-width: 2ch; text-align: center; letter-spacing: -0.04em; }
.lb-row h3 { font-size: 1.06rem; }
.lb-row p { font-size: 0.87rem; color: var(--ink-soft); margin-top: 3px; }
.lb-votes { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vote-btn {
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-xs); cursor: pointer;
  padding: 5px 11px; font-size: 0.95rem; transition: 0.15s; color: var(--ink-soft);
}
.vote-btn:hover { background: var(--accent-wash); border-color: var(--accent); }
.vote-btn.voted-up { background: var(--good-soft); color: var(--good); border-color: #b9dfc8; }
.vote-btn.voted-down { background: var(--bad-soft); color: var(--bad); border-color: #f2c9c4; }
.vote-count { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.03em; }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 14, 22, 0.5); backdrop-filter: blur(6px);
  z-index: 90; display: none; align-items: center; justify-content: center; padding: 22px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: clamp(24px, 4vw, 44px); position: relative;
}
.modal-close {
  position: sticky; top: 0; float: right; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-xs); width: 36px; height: 36px; font-size: 1.05rem; cursor: pointer;
}
.modal-close:hover { background: var(--paper-3); }
.modal h2 { padding-right: 50px; }
.modal .src-list { margin-top: 18px; }
.modal .src-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.89rem; }

/* ---------- hub / resource list ---------- */
.hub-cat { margin-top: 46px; }
.hub-src {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-top: 12px; display: grid; gap: 4px;
}
.hub-src b { font-size: 0.96rem; color: var(--ink); }
.hub-src .meta { font-size: 0.8rem; color: var(--ink-mute); font-weight: 500; }
.hub-src p { font-size: 0.88rem; color: var(--ink-soft); }
.hub-src .trust { font-size: 0.78rem; color: var(--good); font-weight: 600; }
.type-tag { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: var(--radius-xs); display: inline-block; }
.type-peer-reviewed, .type-meta-analysis { background: var(--good-soft); color: var(--good); }
.type-research-org { background: var(--accent-wash); color: var(--accent-deep); }
.type-practitioner { background: var(--warn-soft); color: var(--warn); }
.type-regulatory, .type-book { background: var(--paper-3); color: var(--ink-soft); }

/* ---------- research hub feature band ---------- */
.hub-band { background: var(--paper-2); border-block: 1px solid var(--line); overflow: hidden; position: relative; }
.hub-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hub-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hub-cadence {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 15px; border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600;
  color: var(--ink);
}
.hub-cadence .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #21a366; flex: none;
  box-shadow: 0 0 0 0 rgba(33, 163, 102, 0.7); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(33, 163, 102, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(33, 163, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 163, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .hub-cadence .pulse { animation: none; } }
.hub-shelf { display: grid; gap: 8px; }
.hub-shelf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); padding: 14px 18px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}
a.hub-shelf-row:hover { border-color: var(--accent); transform: translateX(3px); text-decoration: none; }
.hub-shelf-row b { font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; }
.hub-shelf-row span { font-size: 0.78rem; font-weight: 600; color: var(--accent-deep); white-space: nowrap; }
.hub-mix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hub-mix .type-tag { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,0.66); padding: 62px 0 40px; }
footer .wrap { display: grid; gap: 34px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 2fr 1fr 1fr 1fr; } }
footer h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
footer a { color: rgba(255,255,255,0.66); display: block; padding: 4px 0; font-size: 0.89rem; }
footer a:hover { color: #fff; text-decoration: none; }
.footer-brand { color: #fff; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.13); padding-top: 22px; font-size: 0.79rem; color: rgba(255,255,255,0.46); line-height: 1.6; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- misc ---------- */
.toc-chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.tier-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.79rem; font-weight: 600;
  padding: 7px 13px; border-radius: var(--radius-xs); background: #fff;
  border: 1px solid var(--line); color: var(--ink);
}
.band-ink .tier-chip { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: #fff; }
.tier-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.yt-embed { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.yt-embed iframe { width: 100%; height: 100%; border: 0; }
