/* RecGrowth — Signal Playbook stylesheet */

/* ============================================================
   RecGrowth Signal Playbook — Redesign
   Modern editorial docs · Geist Sans + Geist Mono · light only
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --sidebar-bg: #F4F4EF;
  --card-bg: #FBFBF8;

  /* Ink */
  --ink: #0E0E0C;
  --text: #1C1C1A;
  --text-muted: #5C5C58;
  --text-subtle: #8A8A85;

  /* Borders */
  --border: #E8E8E0;
  --border-strong: #D6D6CD;
  --rule: #1C1C1A;

  /* Brand */
  --accent: #6735FF;
  --accent-dark: #4818D8;
  --accent-light: #EDE7FE;
  --accent-faint: #F6F3FE;
  --accent-ring: rgba(22,163,74,0.16);

  /* Category */
  --distress: #B91C1C;
  --distress-bg: #FEF3F3;
  --distress-border: #F4CECE;
  --performance: #A8590A;
  --performance-bg: #FFF9EB;
  --performance-border: #F3DDA5;
  --growth: #15803D;
  --growth-bg: #ECFDF3;
  --growth-border: #B8E8C9;
  --event: #6B25C0;
  --event-bg: #F5F0FE;
  --event-border: #D7C7F2;

  /* Type */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Geometry */
  --header-h: 64px;
  --sidebar-w: 280px;
  --content-w: 820px;
  --page-pad-x: 56px;
  --page-pad-x-narrow: 28px;

  /* Hero dark — deep ocean tone */
  --hero-bg: #1E083B;
  --hero-bg-2: #2B0F4F;
  --hero-ink: #F5F7FA;
  --hero-muted: #8099AD;

  /* Hero accent — mint seafoam */
  --hero-accent: #9B7BFF;
  --hero-accent-dark: #6735FF;
  --hero-accent-light: rgba(2,195,154,0.10);
  --hero-accent-border: rgba(2,195,154,0.40);
  --hero-accent-glow: rgba(2,195,154,0.7);
  --hero-accent-hover-border: rgba(2,195,154,0.45);
  --hero-accent-hover-bg: rgba(2,195,154,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   HEADER (sticky top bar)
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250,250,247,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.topbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}
/* 34px, not the 28px the single-line wordmark used: the lockup is stacked now
   (LOGO-SPEC.md), so the same box would set each line at ~12px. */
.topbar-logo svg { display: block; height: 34px; width: auto; }

/* Logo squares — pulsing wave animation */
@keyframes rg-pulse {
  0%, 60%, 100% { opacity: 0.45; transform: scale(0.92); }
  20%          { opacity: 1;    transform: scale(1.06); }
}
.topbar-logo svg rect.rg-ptl,
.topbar-logo svg rect.rg-ptr,
.topbar-logo svg rect.rg-pbr,
.topbar-logo svg rect.rg-pbl {
  transform-box: fill-box;
  transform-origin: center;
  animation: rg-pulse 2.4s ease-in-out infinite;
}
.topbar-logo svg rect.rg-ptl { animation-delay: 0s;    }
.topbar-logo svg rect.rg-ptr { animation-delay: 0.30s; }
.topbar-logo svg rect.rg-pbr { animation-delay: 0.60s; }
.topbar-logo svg rect.rg-pbl { animation-delay: 0.90s; }
.topbar-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all .15s;
}
.topbar-search input::placeholder { color: var(--text-subtle); }
.topbar-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.topbar-search .search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-subtle);
  pointer-events: none;
}
.topbar-search .kbd {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  z-index: 300;
  max-height: 360px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.focused { background: var(--accent-faint); }
.search-result-icon { font-size: 12px; color: var(--text-subtle); flex-shrink: 0; width: 18px; text-align: center; }
.search-result-label { flex: 1; font-size: 13px; font-weight: 500; line-height: 1.3; }
.search-result-sub { font-size: 11px; color: var(--text-subtle); white-space: nowrap; }
.search-no-results { padding: 14px 16px; font-size: 13px; color: var(--text-subtle); }
.topbar-spacer { flex: 1; }
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.topbar-meta a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.topbar-meta a:hover { color: var(--ink); }
.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: var(--ink);
  color: #FAFAF7 !important;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background .15s;
}
.topbar-cta:hover { background: var(--accent-dark); color: #fff !important; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: var(--header-h);
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 32px 0 80px;
  z-index: 50;
  align-self: start;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }

.sidebar-logo {
  display: none; /* moved to topbar */
}

.sidebar-part {
  padding: 18px 24px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.sidebar-part.collapsible {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color .15s;
}
.sidebar-part.collapsible:hover { color: var(--ink); }
.sidebar-caret {
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 500;
  transition: transform .2s;
  line-height: 1;
}
.sidebar-part.collapsible.expanded .sidebar-caret { transform: rotate(0deg); }
.sidebar-part.collapsible:not(.expanded) .sidebar-caret { transform: rotate(-90deg); }
.sidebar-group {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height .25s ease;
}
.sidebar-group.collapsed { max-height: 0; }

.sidebar a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 24px 6px 24px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.35;
  border-left: 2px solid transparent;
  margin-left: 0;
  transition: color .12s, border-color .12s, background .12s;
}
.sidebar a:hover { color: var(--ink); }
.sidebar a.active {
  color: var(--ink);
  border-left-color: var(--accent);
  font-weight: 500;
}
.sidebar a .sn {
  display: inline-block;
  width: 22px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.sidebar-divider {
  margin: 18px 24px;
  border: none;
  border-top: 1px solid var(--border);
}
.sidebar a.sidebar-cta {
  margin: 14px 24px 0;
  padding: 11px 14px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 8px;
  border-left: none;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.sidebar a.sidebar-cta::after {
  content: "→";
  font-size: 14px;
  transition: transform .15s;
}
.sidebar a.sidebar-cta:hover {
  background: var(--accent-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22,163,74,0.22);
}
.sidebar a.sidebar-cta:hover::after { transform: translateX(3px); }
.sidebar a.sidebar-cta.active { color: #FFFFFF; border-left: none; }

/* ============================================================
   MAIN COLUMN
   ============================================================ */
.main {
  padding-top: 0;
  min-height: 100vh;
  background: var(--bg);
}
.hero { margin-top: var(--header-h); }

/* ============================================================
   INTRO ZONE — full-width band for How-To + What's-Inside
   sits between the hero and the sidebar/content split.
   ============================================================ */
.intro-zone {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px var(--page-pad-x) 56px;
}

/* ============================================================
   CONTENT ZONE — sidebar + reading column begin HERE
   sidebar is sticky so it travels with the user.
   ============================================================ */
.content-zone {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.main-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 8px var(--page-pad-x) 160px;
  min-width: 0;
}
/* Wider zones for grids that need it: */
.main-wide {
  max-width: calc(var(--content-w) + 200px);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

/* ============================================================
   HERO — dark full-bleed band
   ============================================================ */
.hero {
  background: radial-gradient(120% 100% at 0% 0%, #0A2E45 0%, var(--hero-bg) 55%, var(--hero-bg) 100%);
  color: var(--hero-ink);
  padding: 88px 56px 96px;
  margin: 0 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle grid lines */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(80% 70% at 30% 40%, #000 0%, transparent 80%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-left { min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--hero-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hero-accent-border);
  border-radius: 999px;
  background: var(--hero-accent-light);
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--hero-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--hero-accent-glow);
  animation: rg-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes rg-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.18); }
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 em {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.65em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--hero-accent);
}
.hero-underline {
  text-decoration: none;
  color: #FFFFFF;
}
.hero-sub {
  font-size: 16.5px;
  color: var(--hero-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 600px;
  font-weight: 400;
  letter-spacing: -0.003em;
}
.hero-sub strong { color: #E2E8F0; font-weight: 500; }
/* Right column — 4 info cards */
.hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-bullets li {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--hero-muted);
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s, transform .2s, background .2s;
}
.hero-bullets li:hover {
  border-color: var(--hero-accent-hover-border);
  background: var(--hero-accent-hover-bg);
  transform: translateY(-1px);
}
.hero-bullets li::before {
  content: "";
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(2,195,154,0.12);
  border: 1px solid rgba(2,195,154,0.30);
  margin-bottom: 14px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}
.hero-bullets li:nth-child(1)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2302C39A' stroke-width='1.6'><circle cx='8' cy='8' r='6.2'/><circle cx='8' cy='8' r='3'/><circle cx='8' cy='8' r='0.8' fill='%2302C39A' stroke='none'/></svg>"); }
.hero-bullets li:nth-child(2)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2302C39A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 6.5 12 13 4.5'/></svg>"); }
.hero-bullets li:nth-child(3)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2302C39A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2v12M2 8h12'/></svg>"); }
.hero-bullets li:nth-child(4)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2302C39A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 9.5l-2 2a2.5 2.5 0 1 1-3.5-3.5l2-2'/><path d='M9.5 6.5l2-2a2.5 2.5 0 1 1 3.5 3.5l-2 2'/><path d='M6 10l4-4'/></svg>"); }
.hero-bullets li b,
.hero-bullets li strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 17.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--hero-muted);
  letter-spacing: 0.02em;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 8px;
}
.hero-meta a {
  color: var(--hero-accent);
  text-decoration: none;
  font-weight: 500;
}
.hero-meta a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .hero { padding: 64px 40px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-bullets { max-width: 540px; }
}
@media (max-width: 560px) {
  .hero-bullets { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION BREAKS — simple rule + meta (no large numeral)
   ============================================================ */
.section-break {
  margin: 56px 0 48px;
  position: relative;
}
.section-break-rule {
  height: 1px;
  background: var(--rule);
  width: 100%;
  margin-bottom: 40px;
}
.main-inner > .section-break:first-of-type { margin-top: 64px; }
.main-inner > .section-break:first-of-type .section-break-rule { display: none; }
.section-break-inner {
  display: block;
}
.section-break-numeral { display: none; }
.section-break-meta { padding-bottom: 0; }
.section-break-meta .part-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.section-break-meta .section-title {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: balance;
  max-width: 720px;
}
.section-break-meta .section-reading {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   MINOR BREAKS (Start Here, Resource — no big numeral)
   ============================================================ */
.minor-break {
  margin: 72px 0 32px;
}
.minor-break .part-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.minor-break .section-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: balance;
}

/* H2.section-title used inline (Weekly Rhythm, etc) */
h2.section-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 64px 0 8px;
  text-wrap: balance;
}
.section-reading {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

/* ============================================================
   BODY TYPE
   ============================================================ */
h3 {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 14px;
  line-height: 1.35;
  text-wrap: balance;
}
p {
  margin-bottom: 16px;
  color: var(--text);
  text-wrap: pretty;
}
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; color: var(--text); }
a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent-light); text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }

/* ============================================================
   THE 30-SECOND VERSION callout
   ============================================================ */
.thirty-sec {
  background: var(--accent-faint);
  border: 1px solid var(--growth-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 28px 0 36px;
}
.thirty-sec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.thirty-sec p {
  font-size: 16px;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   GENERIC CALLOUTS
   ============================================================ */
.callout, .sig-callout {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout-label, .sig-tip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.callout p, .sig-callout p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}
.callout p + p, .sig-callout p + p { margin-top: 10px; }
.sig-dual { background: var(--performance-bg); border-color: var(--performance-border); }
.sig-dual .tb-label { color: var(--performance); }
.sig-growth { background: var(--growth-bg); border-color: var(--growth-border); }
.sig-growth .tb-label { color: var(--growth); }
.sig-event { background: var(--event-bg); border-color: var(--event-border); }
.sig-event .tb-label { color: var(--event); }

/* ============================================================
   VIDEO PLACEHOLDER
   ============================================================ */
.video-embed {
  position: relative;
  padding-bottom: 53.75%;
  height: 0;
  margin: 28px 0;
  background: #0B1322;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(11,19,34,0.18);
  border: 1px solid var(--border);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* legacy placeholder fallback */
.video-placeholder {
  background: var(--card-bg);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 56px 28px;
  text-align: center;
  margin: 28px 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
.video-placeholder em { color: var(--text-subtle); font-style: normal; }

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
  line-height: 1.4;
}
.tag-distress { background: var(--distress-bg); color: var(--distress); border: 1px solid var(--distress-border); }
.tag-performance { background: var(--performance-bg); color: var(--performance); border: 1px solid var(--performance-border); }
.tag-growth { background: var(--growth-bg); color: var(--growth); border: 1px solid var(--growth-border); }
.tag-event { background: var(--event-bg); color: var(--event); border: 1px solid var(--event-border); }
.tag-freq { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.tag-stars { background: transparent; color: #B45309; border: none; letter-spacing: 0; font-size: 11px; padding: 3px 4px; }

/* ============================================================
   HOW-TO STEPS
   ============================================================ */
.how-to-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.how-to-step {
  display: block;
  gap: 0;
  padding: 22px 22px 22px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.how-to-step:last-child { border-bottom: 1px solid var(--border); }
.how-to-step:hover { border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.step-num {
  width: 28px; height: 28px;
  background: var(--ink);
  color: #FAFAF7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 14px;
}
.step-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.step-text strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .how-to-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .how-to-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   SPECIALISM GRID & CARDS
   ============================================================ */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 56px;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: block;
}
.spec-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
}
.spec-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.spec-card-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.spec-card-roles {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.spec-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.spec-sig-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-faint);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.spec-card-arrow {
  font-size: 14px;
  color: var(--accent-dark);
}

/* ============================================================
   SPECIALISM SECTIONS (Part II detail)
   ============================================================ */
.spec-section {
  padding: 60px 0 56px;
  border-bottom: 1px solid var(--border);
}
.spec-section:last-of-type { border-bottom: none; }
.spec-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.spec-num-badge {
  width: 38px; height: 38px;
  background: var(--ink);
  color: #FAFAF7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 4px;
}
.spec-meta h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}
.spec-meta p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}
.spec-roles-label, .spec-sig-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 22px 0 10px;
}
.spec-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.spec-role {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 13px;
}
.spec-buyer {
  background: var(--performance-bg);
  border: 1px solid var(--performance-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.spec-buyer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--performance);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.spec-buyer p {
  font-size: 14.5px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
.universal-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
}
.universal-note a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
}
.universal-note a:hover { text-decoration: underline; }

/* ============================================================
   SIGNAL TILES (within each specialism)
   ============================================================ */
.sig-tiles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sig-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.sig-tile:hover {
  border-color: var(--ink);
  background: var(--card-bg);
}
.tile-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  width: 24px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.tile-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.tile-desc {
  font-size: 13px;
  color: var(--text-muted);
  flex: 2;
  line-height: 1.45;
}
.tile-tags {
  display: grid;
  grid-template-columns: 108px 78px;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  justify-items: start;
}
.tile-arrow {
  color: var(--accent-dark);
  font-size: 13px;
  flex-shrink: 0;
}

/* ============================================================
   SIGNAL LIBRARY — accordion
   ============================================================ */
.lib-cat {
  margin-top: 56px;
}
.lib-cat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
  border-bottom: 1px solid;
  margin-bottom: 4px;
}
.lib-distress { color: var(--distress); border-color: var(--distress-border); }
.lib-performance { color: var(--performance); border-color: var(--performance-border); }
.lib-growth { color: var(--growth); border-color: var(--growth-border); }
.lib-event { color: var(--event); border-color: var(--event-border); }

.signal-accordion {
  border-bottom: 1px solid var(--border);
}
.sig-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  transition: padding .15s;
}
.sig-row:hover .sig-name { color: var(--accent-dark); }
.sig-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  width: 28px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.sig-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color .15s;
}
.sig-meta {
  display: grid;
  grid-template-columns: 108px 78px 80px;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.sig-chevron {
  font-size: 22px;
  font-weight: 500;
  color: var(--accent-dark);
  transition: transform .2s, color .15s;
  flex-shrink: 0;
  width: auto; height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  line-height: 1;
  padding: 0 4px;
}
.sig-row:hover .sig-chevron { color: var(--ink); }
.sig-row.open .sig-chevron {
  transform: rotate(180deg);
  color: var(--ink);
}
.sig-body {
  display: none;
  padding: 8px 0 32px 40px;
  border-left: 2px solid var(--border);
  margin-left: 14px;
}
.sig-body.open { display: block; }
.sig-spec-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sig-spec-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  background: var(--event-bg);
  color: var(--event);
  border: 1px solid var(--event-border);
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.sig-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 18px;
}
.sig-h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 26px 0 10px;
}
.sig-body p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.7;
}
.sig-body strong { color: var(--ink); }

/* ============================================================
   TIMING BOX (dark)
   ============================================================ */
.timing-box {
  display: flex;
  gap: 0;
  background: var(--ink);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px 0;
  flex-wrap: wrap;
  overflow: hidden;
}
.timing-box > div {
  flex: 1;
  min-width: 200px;
  padding-right: 26px;
  border-right: 1px solid #2A2A28;
}
.timing-box > div:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 26px;
}
.timing-box > div:first-child { padding-left: 0; }
.tb-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.tb-value {
  font-size: 14px;
  color: #E8E8E2;
  font-weight: 400;
  line-height: 1.55;
}

.stacking-tip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0 0;
}
.stacking-tip .tb-label { color: var(--accent-dark); }
.stacking-tip p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   CTA SECTION — structured, sectioned, dark
   ============================================================ */
.cta-section {
  background: linear-gradient(180deg, #0E1322 0%, #0B0F1C 100%);
  color: #FAFAF7;
  border-radius: 16px;
  padding: 64px 56px 56px;
  margin: 96px 0 48px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 20% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.cta-section > * { position: relative; }

.cta-section h2 {
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  text-align: left;
}
.cta-section h2::before {
  content: "CONTINUE";
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.cta-section p {
  color: #B6C0D0;
  max-width: 640px;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}
.cta-section p strong { color: #FFFFFF; font-weight: 500; }

/* Featured offer block — auto-applied to the bolded line */
.cta-section p:has(> strong:only-child) {
  margin: 32px 0 8px;
  padding: 28px 28px 24px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 12px;
  position: relative;
}
.cta-section p:has(> strong:only-child)::before {
  content: "THE OFFER";
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.cta-section p:has(> strong:only-child) strong {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.25;
}
/* The descriptive paragraph immediately following the offer */
.cta-section p:has(> strong:only-child) + p {
  margin-top: 0;
  margin-bottom: 32px;
  padding: 20px 28px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-top: -8px;
  font-size: 15px;
  color: #93A3B8;
}

/* Divider before the tail note */
.cta-section p[style*="margin-top:24px"] {
  margin-top: 40px !important;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px !important;
  color: #93A3B8 !important;
  font-style: italic;
}
.cta-section p[style*="margin-top:24px"] em { color: #C8D2E0; font-style: italic; }

/* Signature line at the bottom */
.cta-section p[style*="font-weight:700"] {
  margin-top: 10px;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent) !important;
  font-weight: 500 !important;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--accent);
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  margin: 0 8px 0 0;
  transition: background .15s, transform .15s, box-shadow .15s;
  border: 1px solid var(--accent);
}
.cta-btn::after {
  content: "→";
  font-size: 15px;
  transition: transform .15s;
}
.cta-btn:hover { background: #1FA855; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,0.25); }
.cta-btn:hover::after { transform: translateX(2px); }
.cta-btn + .cta-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #FFFFFF !important;
}
.cta-btn + .cta-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.32); box-shadow: none; }
@media (max-width: 720px) {
  .cta-section { padding: 40px 24px; }
  .cta-btn { width: 100%; justify-content: center; margin: 0 0 10px 0; }
}

/* ============================================================
   WHAT'S INSIDE CAROUSEL
   ============================================================ */
.whats-inside {
  margin: 56px 0 16px;
  padding: 0;
}
.wi-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.wi-track-wrapper {
  position: relative;
  display: block;
}
.wi-arrow { display: none; }
.wi-dots { display: none; }
.wi-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  width: 100%;
}
.wi-card {
  min-width: 0;
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 220px;
  flex-shrink: 1;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
@media (max-width: 1000px) {
  .wi-track { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wi-track { grid-template-columns: 1fr; }
}
.wi-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.wi-part-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.wi-card-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}
.wi-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.wi-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wi-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  font-size: 11px;
}
.wi-more {
  color: var(--text-subtle) !important;
  font-style: italic;
}
.wi-more::before { content: "" !important; }
.wi-cta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wi-cta:hover { color: var(--ink); }
.wi-arrow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  line-height: 1;
}
.wi-arrow:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.wi-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}
.wi-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: background .2s;
}
.wi-dot.active { background: var(--ink); }

/* ============================================================
   CATEGORY CARDS — row layout (Part I)
   ============================================================ */
.cat-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 40px;
}
.cat-card {
  display: grid;
  grid-template-columns: 56px minmax(160px, auto) 1fr;
  grid-template-rows: auto auto;
  column-gap: 22px;
  row-gap: 0;
  align-items: center;
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.cat-card-icon {
  grid-row: 1 / 3;
  grid-column: 1;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0;
  align-self: center;
}
.cat-card-label {
  grid-row: 1;
  grid-column: 2;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 2px 0;
  line-height: 1.2;
}
.cat-card-sub {
  grid-row: 2;
  grid-column: 2;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.cat-card p {
  grid-row: 1 / 3;
  grid-column: 3;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  align-self: center;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}
.cat-card p strong { color: var(--ink); font-weight: 600; }
.cat-card-distress .cat-card-icon { background: var(--distress-bg); color: var(--distress); border: 1px solid var(--distress-border); }
.cat-card-distress .cat-card-label { color: var(--distress); }
.cat-card-performance .cat-card-icon { background: var(--performance-bg); color: var(--performance); border: 1px solid var(--performance-border); }
.cat-card-performance .cat-card-label { color: var(--performance); }
.cat-card-growth .cat-card-icon { background: var(--growth-bg); color: var(--growth); border: 1px solid var(--growth-border); }
.cat-card-growth .cat-card-label { color: var(--growth); }
.cat-card-event .cat-card-icon { background: var(--event-bg); color: var(--event); border: 1px solid var(--event-border); }
.cat-card-event .cat-card-label { color: var(--event); }
@media (max-width: 720px) {
  .cat-card { grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; }
  .cat-card-icon { grid-row: 1 / 3; }
  .cat-card-label { grid-column: 2; }
  .cat-card-sub { grid-column: 2; }
  .cat-card p { grid-row: 3; grid-column: 1 / 3; padding-left: 0; padding-top: 12px; border-left: none; border-top: 1px solid var(--border); }
}

/* ============================================================
   SIGNAL FILTERS
   ============================================================ */
.sig-filters {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-pill-all { color: var(--ink); border-color: var(--border-strong); }
.filter-pill-all.active {
  background: var(--ink);
  color: #FAFAF7;
  border-color: var(--ink);
}
.filter-pill-distress.active {
  background: var(--distress-bg);
  border-color: var(--distress);
  color: var(--distress);
}
.filter-pill-performance.active {
  background: var(--performance-bg);
  border-color: var(--performance);
  color: var(--performance);
}
.filter-pill-growth.active {
  background: var(--growth-bg);
  border-color: var(--growth);
  color: var(--growth);
}
.filter-pill-event.active {
  background: var(--event-bg);
  border-color: var(--event);
  color: var(--event);
}
.filter-pill.active:not(.filter-pill-all):not(.filter-pill-distress):not(.filter-pill-performance):not(.filter-pill-growth):not(.filter-pill-event) {
  background: var(--ink);
  border-color: var(--ink);
  color: #FAFAF7;
}
.filter-empty {
  margin-top: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.signal-accordion.filtered-hidden { display: none; }
.lib-cat.filtered-empty { display: none; }
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --page-pad-x: 40px; }
  .section-break-numeral { font-size: 140px; }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; --page-pad-x: 24px; }
  .sidebar { display: none; }
  .topbar-search { display: none; }
  .main { }
  .content-zone { grid-template-columns: 1fr; }
  .intro-zone { padding: 48px var(--page-pad-x) 32px; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .spec-grid { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: 1fr 1fr; }
  .section-break { margin: 80px 0 40px; }
  .section-break-rule { margin-bottom: 32px; }
  .section-break-inner { grid-template-columns: 1fr; gap: 20px; }
  .section-break-numeral { font-size: 96px; }
  .wi-card { min-width: 80%; max-width: 80%; height: 220px; }
  .cta-section { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .sig-row { flex-wrap: wrap; }
  .sig-meta { grid-template-columns: 1fr 1fr 1fr; width: 100%; margin-top: 8px; }
  .cat-cards { grid-template-columns: 1fr; }
  .timing-box > div { padding-left: 0 !important; padding-right: 0 !important; border-right: none !important; border-bottom: 1px solid #2a2a28; padding-bottom: 16px; min-width: 100%; }
  .timing-box > div:last-child { border-bottom: none; padding-bottom: 0; }
}

/* Active section nav highlight smooth */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   EMAIL TEMPLATES — alternate light backgrounds for rhythm
   ============================================================ */
.email-templates {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.email-templates .callout { margin: 0; }
.email-templates .callout:nth-child(odd) {
  background: var(--accent-faint);
  border-color: var(--growth-border);
}
.email-templates .callout:nth-child(odd) .callout-label { color: var(--accent-dark); }
.email-templates .callout:nth-child(even) {
  background: #FFF8E8;
  border-color: #F1E0AE;
}
.email-templates .callout:nth-child(even) .callout-label { color: #8A6510; }

/* ============================================================
   WHAT'S INSIDE — 3 static + 3 in carousel
   ============================================================ */

.wi-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: stretch;
}
.wi-carousel .wi-track {
  display: flex;
  gap: 14px;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  min-width: 0;
}
.wi-carousel .wi-card {
  min-width: calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  flex-shrink: 0;
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .wi-carousel .wi-card { min-width: calc(50% - 7px); max-width: calc(50% - 7px); }
}
@media (max-width: 560px) {
  .wi-carousel .wi-card { min-width: 100%; max-width: 100%; }
}
.wi-carousel .wi-arrow {
  display: inline-flex;
  align-self: center;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 500;
  transition: all .15s;
}
.wi-carousel .wi-arrow:hover {
  border-color: var(--accent);
  background: var(--accent-faint);
  color: var(--accent-dark);
  transform: translateY(-1px);
}
