/* ============================================================
   PR in the Age of AI Search — Design System
   Issue #1, March 2026
   ============================================================ */

/* --- Reset & Custom Properties --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gradient-main: linear-gradient(135deg, #7B2FF7 0%, #FF2D87 50%, #FF8C42 100%);
  --gradient-alt: linear-gradient(90deg, #7B2FF7 0%, #FF2D87 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(123,47,247,0.06) 0%, rgba(255,45,135,0.06) 100%);
  --color-purple: #7B2FF7;
  --color-pink: #FF2D87;
  --color-orange: #FF8C42;
  --color-white: #FFFFFF;
  --color-light-bg: #F8F5FF;
  --color-dark: #1A1A2E;
  --color-text: #2D2D3D;
  --color-text-light: #666677;
  --color-border: #E8E8EE;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;
  --nav-height: 60px;
  --sidebar-width: 220px;
  --content-max: 820px;
  --section-max: 1000px;
  --wide-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 8px 32px rgba(123,47,247,0.15);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: var(--line-height-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection {
  background: rgba(123, 47, 247, 0.15);
  color: var(--color-text);
}

/* --- Utility: Gradient Text --- */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   STICKY NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active-page {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Mobile Nav Drawer --- */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.nav-drawer a:hover {
  color: var(--color-purple);
}

/* ============================================================
   SIDEBAR TOC
   ============================================================ */
.toc {
  position: fixed;
  left: 24px;
  top: calc(var(--nav-height) + 40px);
  width: var(--sidebar-width);
  z-index: 500;
  font-size: 13px;
  max-height: calc(100vh - var(--nav-height) - 80px);
  overflow-y: auto;
}

.toc-inner {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.toc-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  margin-bottom: 14px;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--color-text-light);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.toc a::before {
  content: '';
  width: 3px;
  height: 0;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: height var(--transition-base);
  flex-shrink: 0;
}

.toc a:hover { color: var(--color-purple); }

.toc a.active {
  color: var(--color-purple);
  font-weight: 700;
}

.toc a.active::before { height: 18px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  margin-top: var(--nav-height);
  padding: 80px 32px 60px;
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,47,247,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,45,135,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-issue {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
  z-index: 1;
  max-width: 900px;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-light);
  margin-bottom: 20px;
  max-width: 620px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero-credit {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.hero-credit a {
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(123,47,247,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition-fast);
}

.hero-credit a:hover { text-decoration-color: var(--color-purple); }

.read-time-pill {
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

.read-time-pill-inner {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #5c5c66;
  letter-spacing: 0.01em;
  background: #f3efe8;
  border-radius: 999px;
  padding: 10px 18px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-ai-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-light);
  max-width: 540px;
  margin: 48px auto 0;
  padding: 16px 20px;
  position: relative;
  z-index: 1;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.page-hero .hero-ai-note--compact {
  margin-top: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .read-time-pill {
  margin-top: 20px;
  margin-bottom: 0;
}

/* ============================================================
   TL;DR SECTION
   ============================================================ */
.tldr {
  background: var(--gradient-alt);
  padding: 80px 32px;
  text-align: center;
}

.tldr h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.tldr-intro {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 48px;
}

.tldr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: var(--wide-max);
  margin: 0 auto;
}

.tldr-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform var(--transition-base), background var(--transition-base);
  text-align: left;
}

.tldr-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.2);
}

.tldr-card-stat {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.tldr-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.tldr-source {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 40px;
}

.tldr-source a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

/* ============================================================
   CONTENT SECTIONS (shared)
   ============================================================ */
.section {
  padding: 80px 32px;
  max-width: var(--section-max);
  margin: 0 auto;
}

.section--light { background: var(--color-light-bg); }
.section--white { background: var(--color-white); }
.section--wide {
  max-width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.section--light .section-inner,
.section--wide .section-inner {
  max-width: var(--section-max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section p {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
  max-width: var(--content-max);
}

.section-lead {
  font-size: 18px !important;
  color: var(--color-text) !important;
  line-height: 1.7 !important;
  margin-bottom: 32px !important;
}

/* --- Insight Boxes --- */
.insight-box {
  background: var(--color-white);
  border-left: 4px solid;
  border-image: var(--gradient-main) 1;
  padding: 24px 28px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.section--light .insight-box { background: var(--color-white); }

.insight-box:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}

.insight-box-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-purple);
  margin-bottom: 8px;
}

.insight-box p {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.7;
}

/* --- Stat Callouts --- */
.stat-callout {
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 24px 0;
  display: flex;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(123, 47, 247, 0.08);
}

.stat-callout-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 110px;
}

.stat-callout-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
}

.stat-callout-text .source {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.data-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.data-table thead {
  background: var(--gradient-main);
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-white);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td {
  background: var(--color-light-bg);
}

.data-table .highlight-cell {
  font-weight: 700;
  color: var(--color-purple);
}

/* ============================================================
   STAT BANNER (Full-Width)
   ============================================================ */
.stat-banner {
  background: var(--gradient-main);
  color: #FFFFFF;
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stat-banner-number {
  font-family: var(--font-heading);
  font-size: clamp(56px, 10vw, 108px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
}

.stat-banner-label {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  opacity: 0.95;
}

/* ============================================================
   ROADMAP CARDS
   ============================================================ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.roadmap-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.roadmap-card-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-purple);
  margin-bottom: 10px;
}

.roadmap-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.roadmap-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(123, 47, 247, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123, 47, 247, 0.35);
}

.btn-secondary {
  background: var(--color-light-bg);
  color: var(--color-purple);
  border: 1px solid rgba(123, 47, 247, 0.2);
}

.btn-secondary:hover {
  background: rgba(123, 47, 247, 0.08);
  border-color: var(--color-purple);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

/* --- Vote Chips --- */
.vote-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.vote-chip {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.vote-chip:hover,
.vote-chip.selected {
  border-color: var(--color-purple);
  background: var(--color-light-bg);
  color: var(--color-purple);
}

/* --- Email Capture --- */
.email-capture {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 24px 0;
}

.email-capture .form-input { flex: 1; }

/* ============================================================
   SOCIAL SHARING
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
}

.share-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-white);
  transition: all var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: var(--color-light-bg);
}

.share-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--color-text-light);
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
}

.search-trigger kbd {
  font-family: var(--font-body);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-light);
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-overlay.open { display: flex; }

.search-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
}

.search-box input {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-purple);
}

.search-box input::placeholder {
  color: var(--color-text-light);
  font-weight: 400;
}

.search-results {
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover { background: var(--color-light-bg); }

.search-result-item h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.search-result-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.search-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ============================================================
   ADHD / HIGH CONTRAST TOGGLE
   ============================================================ */
.reader-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-light);
}

.reader-toggle:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
}

/* ADHD Mode — applied to html element */
html.adhd-mode {
  --font-body: 'Atkinson Hyperlegible', 'DM Sans', sans-serif;
  --font-size-base: 18px;
  --line-height-base: 2;
  --color-text: #111111;
  --color-text-light: #333333;
  --color-white: #FFFFF8;
  --color-light-bg: #F5F2E8;
  --color-border: #CCCCBB;
}

html.adhd-mode * {
  transition: none !important;
  animation: none !important;
}

html.adhd-mode .hero h1 {
  background: none;
  -webkit-text-fill-color: #111111;
  color: #111111;
}

html.adhd-mode .nav-brand,
html.adhd-mode .gradient-text {
  background: none;
  -webkit-text-fill-color: var(--color-purple);
  color: var(--color-purple);
}

html.adhd-mode .tldr-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.5);
}

html.adhd-mode .section p {
  max-width: 640px;
  font-size: 18px;
}

html.adhd-mode .reader-toggle {
  background: var(--color-purple);
  color: #FFFFFF;
  border-color: var(--color-purple);
}

/* ============================================================
   MIND MAP
   ============================================================ */
.mindmap-container {
  margin: 32px 0;
  padding: 32px;
  background: var(--color-light-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.mindmap-container svg {
  width: 100%;
  height: 400px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-card {
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(123, 47, 247, 0.08);
}

.contact-card h3 {
  font-family: var(--font-heading);
  margin-top: 0;
}

.contact-card a {
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(123,47,247,0.3);
  text-underline-offset: 2px;
}

.contact-card a:hover { text-decoration-color: var(--color-purple); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: #FFFFFF;
  padding: 60px 32px 40px;
  border-top: 4px solid transparent;
  border-image: var(--gradient-main) 1;
}

.footer-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: #CCC;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--color-orange); }

.footer-bottom {
  max-width: var(--wide-max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #777;
}

.footer-bottom a {
  color: #999;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: var(--color-orange); }

/* ============================================================
   WTF PAGE — specific styles
   ============================================================ */
.page-hero {
  margin-top: var(--nav-height);
  padding: 80px 32px 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.page-hero .subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
}

.prose {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.prose p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 24px;
}

.prose .aside {
  font-size: 15px;
  color: var(--color-text-light);
  font-style: italic;
  padding: 20px 24px;
  border-left: 3px solid;
  border-image: var(--gradient-main) 1;
  margin: 32px 0;
  background: var(--color-light-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose .aside a {
  color: var(--color-purple);
  font-weight: 600;
}

.prose .aside a:hover { text-decoration: underline; }

.prose .highlight {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin: 48px 0;
  line-height: 1.4;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-purple);
  font-weight: 600;
  font-size: 15px;
  margin-top: 40px;
  transition: gap var(--transition-base);
}

.back-link:hover { gap: 12px; }

/* ============================================================
   FOOTNOTES
   ============================================================ */
.footnote-ref {
  font-size: 11px;
  color: var(--color-purple);
  text-decoration: none;
  vertical-align: super;
  font-weight: 700;
  cursor: pointer;
}

.footnote-ref:hover { text-decoration: underline; }

.footnotes {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footnotes li {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 8px;
  padding-left: 8px;
  list-style: decimal;
  list-style-position: inside;
}

.footnotes a {
  color: var(--color-purple);
  text-decoration: underline;
  text-decoration-color: rgba(123,47,247,0.3);
}

/* ============================================================
   RESPONSIVE — Sidebar offset for desktop
   ============================================================ */
@media (min-width: 1280px) {
  .has-sidebar .section,
  .has-sidebar .hero,
  .has-sidebar .stat-banner {
    margin-left: calc(var(--sidebar-width) + 48px);
  }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1279px) {
  .toc { display: none; }
}

@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 60px 20px 40px; min-height: 60vh; }
  .section { padding: 48px 20px; }
  .tldr { padding: 48px 20px; }

  .stat-callout {
    flex-direction: column;
    text-align: center;
  }
  .stat-callout-number { min-width: auto; font-size: 32px; }

  .stat-banner { padding: 48px 20px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .email-capture { flex-direction: column; }

  .share-bar { flex-wrap: wrap; }

  .page-hero { padding: 60px 20px 30px; }
  .prose { padding: 30px 20px 60px; }
  .prose p { font-size: 16px; }

  .data-table th,
  .data-table td { padding: 10px 12px; font-size: 13px; }

  .contact-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .tldr-cards { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .vote-options { gap: 8px; }
  .vote-chip { padding: 8px 14px; font-size: 12px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .nav, .toc, .nav-drawer, .search-overlay, .share-bar,
  .reader-toggle, .search-trigger, .nav-hamburger,
  .vote-options, .email-capture, .btn { display: none !important; }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero { min-height: auto; padding: 32px 0; }
  .hero h1 {
    background: none;
    -webkit-text-fill-color: #000;
    color: #000;
    font-size: 28pt;
  }

  .tldr {
    background: #f0f0f0;
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .tldr h2, .tldr-card p, .tldr-card-stat { color: #000; }

  .section { padding: 24px 0; page-break-inside: avoid; }
  .stat-banner {
    background: #f0f0f0;
    color: #000;
    padding: 24px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .stat-banner-number, .stat-banner-label { color: #000; }

  .insight-box { page-break-inside: avoid; }
  .data-table-wrap { box-shadow: none; }
  .footer { background: #fff; color: #000; border-top: 2px solid #000; }

  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  .nav-brand::after, .footnote-ref::after { content: none; }
}
