/* ================================================================
   The $100 Network — Complete Design System
   Palette: Electric Blue (#2196F3) on Dark Navy (#060810)
   Clean rewrite — no duplicates, no conflicts
   ================================================================ */


/* ================================================================
   1. CSS CUSTOM PROPERTIES
   ================================================================ */

:root {
  /* Brand */
  --dark:               #060810;
  --dark-2:             #0d1220;
  --accent:             #2196F3;
  --accent-hover:       #1976D2;
  --accent-light:       #64B5F6;
  --accent-glow:        rgba(33, 150, 243, 0.15);
  --accent-glow-strong: rgba(33, 150, 243, 0.25);
  --gold:               #f0c040;
  --gold-hover:         #d4a82e;

  /* Semantic */
  --success:  #10b981;
  --warning:  #f59e0b;
  --danger:   #ef4444;

  /* Surfaces */
  --bg-dark:      #060810;
  --bg-card:      #0d1220;
  --bg-surface:   #111827;
  --bg-surface-2: #0a1020;

  /* Text — WCAG AA compliant contrast ratios on #060810 bg */
  --white:      #ffffff;
  --off-white:  #f0f4f8;
  --text:       #dce6f0;        /* was #c8ddf0 — brighter for readability */
  --text-light: #94a8c2;        /* was #7289a8 — bumped up for AA contrast */
  --text-dark:  #1a1a1a;

  /* Borders & Radius */
  --border:       #243044;      /* was #1e2a3a — slightly brighter for visibility */
  --border-hover: #3a5070;
  --radius:       8px;
  --radius-lg:    12px;

  /* Layout */
  --max-width:  1100px;
  --nav-height: 64px;

  /* Motion */
  --transition:      0.2s ease;
  --transition-slow: 0.35s ease;

  /* Shadows */
  --shadow:     0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}


/* ── Light Theme ─────────────────────────────────────── */

[data-theme="light"] {
  --bg-dark:      #f8fafc;
  --bg-card:      #ffffff;
  --bg-surface:   #f1f5f9;
  --bg-surface-2: #e8edf4;
  --text:         #1e293b;
  --text-light:   #64748b;
  --text-dark:    #0f172a;
  --border:       #e2e8f0;
  --border-hover: #cbd5e1;
  --accent-glow:        rgba(33, 150, 243, 0.10);
  --accent-glow-strong: rgba(33, 150, 243, 0.15);
  --shadow:     0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.08);
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.2;
  font-weight: 800;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

ul, ol { list-style: none; }


/* ================================================================
   3. ACCESSIBILITY FUNDAMENTALS
   ================================================================ */

/* ── Screen Reader Only ──────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Skip Link ───────────────────────────────────��───── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ── Focus Visible ───────────────────────────────────── */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}


/* ================================================================
   4. LAYOUT
   ================================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 24px;
}

.section-dark    { background: var(--bg-dark); }
.section-surface { background: var(--bg-surface); }
.section-card    { background: var(--bg-card); }

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

/* ── Section Typography ──────────────────────────────── */
.section-overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
}

/* ── Divider ─────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* Legacy section-label alias */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}


/* ================================================================
   5. READING PROGRESS BAR
   ================================================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0%;
  z-index: 200;
  transition: width 0.1s linear;
}


/* ================================================================
   6. NAVIGATION
   ================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

[data-theme="light"] .nav {
  background: rgba(248, 250, 252, 0.85);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* ── Logo ────────────────────────────────────────────── */
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--text); }

.nav-logo-symbol {
  color: var(--accent);
  font-weight: 900;
}

/* ── Nav Links ───────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-light);
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ── Nav Actions ─────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

/* ── Theme Toggle ────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="dark"]  .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun  { display: none; }

/* ── Hamburger Toggle ────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ================================================================
   7. BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}

/* Primary — BEM style */
.btn--primary,
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 12px var(--accent-glow-strong);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow-strong), 0 0 20px var(--accent-glow);
}

/* Secondary — BEM style */
.btn--secondary,
.btn-secondary {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent);
}

.btn--secondary:hover,
.btn-secondary:hover {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* Ghost */
.btn--ghost,
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover,
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Amazon */
.btn-amazon {
  background: linear-gradient(135deg, #FF9900, #e88a00);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 2px 16px rgba(255, 153, 0, 0.35);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-amazon:hover {
  background: linear-gradient(135deg, #e88a00, #cc7a00);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(255, 153, 0, 0.5);
}

/* Sizes */
.btn--large,
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--small,
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}


/* ================================================================
   8. HERO
   ================================================================ */

.hero {
  padding: 100px 24px 80px;
  background: linear-gradient(170deg, var(--bg-dark) 40%, var(--bg-surface));
  position: relative;
  overflow: hidden;
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero Grid (2-col) ───────────────────────────────── */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero__text {
  display: flex;
  flex-direction: column;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(33, 150, 243, 0.3);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero__headline,
.hero__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero__subhead {
  font-size: 1.3rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero__body {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__cta-group,
.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero Cover / Image ──────────────────────────────── */
.hero__image,
.hero__cover {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.hero__image img,
.hero__cover img {
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
  transform: perspective(800px) rotateY(-4deg);
  transition: transform 0.3s ease;
}

.hero__image img:hover,
.hero__cover img:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.02);
}

/* ── Cover Zoomable ──────────────────────────────────── */
.cover-zoomable {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.cover-zoomable:hover {
  transform: scale(1.03);
}

/* ── Legacy hero classes (non-BEM) ───────────────────── */
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(33, 150, 243, 0.3);
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-heading .highlight { color: var(--accent); }
.hero-heading .accent-cyan { color: var(--accent-light); }

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cover {
  flex-shrink: 0;
}

.hero-cover img {
  width: 340px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
  transform: perspective(800px) rotateY(-4deg);
  transition: transform 0.3s ease;
}

.hero-cover img:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.02);
}


/* ================================================================
   9. STATS BAR
   ================================================================ */

.stats-bar {
  background: var(--bg-surface-2);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  padding: 2.5rem 24px;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stats-bar__item {
  text-align: center;
  padding: 0.5rem 0;
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.stats-bar__label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
  display: block;
}

/* Legacy stat classes */
.stat        { text-align: center; }
.stat-value  { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 900; color: var(--accent); display: block; }
.stat-label  { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem; }


/* ================================================================
   10. FEATURE CARDS & GRID
   ================================================================ */

.features {
  padding: 80px 0;
  background: var(--bg-dark);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--accent-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__title,
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-card__body,
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Legacy feature icon */
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(33, 150, 243, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--accent);
}

.feature-card .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Legacy feature-grid alias */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}


/* ================================================================
   11. SERIES / BOOK CARDS
   ================================================================ */

.series {
  padding: 80px 0;
  background: var(--bg-surface-2);
}

.trap-series {
  padding: 80px 0;
  background: var(--bg-dark);
}

.series__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.series__grid--three {
  grid-template-columns: repeat(3, 1fr);
}

/* Vertical card layout — cover on top, text below (Amazon/retail standard) */
.series__book {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all var(--transition);
}

.series__book:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.series__book--current {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow), var(--shadow-lg);
}

.series__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.series__cover img {
  width: auto;
  height: 240px;
  max-width: 180px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.series__book:hover .series__cover img {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.series__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.series__label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 12px;
}

.series__book-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.series__book-subtitle {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 280px;
}

.series__book-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 280px;
}

/* CTA buttons inside cards */
.series__book .btn {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 8px 20px;
}


/* ================================================================
   12. FAQ
   ================================================================ */

.faq {
  padding: 80px 0;
  background: var(--bg-surface-2);
}

.faq__list {
  margin-top: 2.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: color var(--transition), background var(--transition);
  gap: 1rem;
}

.faq__question:hover {
  color: var(--accent-light);
}

.faq__question::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}

.faq__question[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq__answer > div {
  padding: 0 24px 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq__answer a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ── Legacy FAQ (non-BEM) ────────────────────────────── */
.faq-list {
  margin-top: 2.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: color var(--transition);
  gap: 1rem;
}

.faq-question:hover { color: var(--accent-light); }

.faq-question::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer-inner a {
  color: var(--accent-light);
  text-decoration: underline;
}


/* ================================================================
   13. COMPARISON TABLE
   ================================================================ */

.comparison {
  padding: 80px 0;
  background: var(--bg-dark);
}

.comparison__table-wrap,
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.5rem auto 0;
  max-width: 960px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.comparison__table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comparison__table th,
.comparison__table td,
.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.comparison__table th,
.comparison-table th {
  background: rgba(33, 150, 243, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 2;
}

.comparison__table td:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.comparison__table tbody tr:hover,
.comparison-table tbody tr:hover {
  background: rgba(33, 150, 243, 0.04);
}

/* Highlight column — The $100 Network column */
.comparison__table .highlight,
.comparison-table .highlight    { background: rgba(33, 150, 243, 0.06); }
.comparison__table .highlight th,
.comparison-table .highlight th { background: var(--accent); color: var(--white); font-size: 0.75rem; }

.comparison__table .check,
.comparison-table .check   { color: #34d399; font-weight: 700; font-size: 1.1rem; }
.comparison__table .cross,
.comparison-table .cross   { color: #f87171; font-size: 1rem; }
.comparison__table .partial,
.comparison-table .partial { color: #fbbf24; font-weight: 600; }

/* ── "What This Book Replaces" — polished table ─────── */
.replaces {
  padding: var(--section-pad);
  background: var(--bg-dark);
}

.replaces__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 860px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.replaces__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.replaces__table th,
.replaces__table td {
  padding: 16px 24px;
  text-align: left;
  vertical-align: middle;
}

.replaces__table th {
  background: rgba(33, 150, 243, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}

.replaces__table td {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.replaces__table td:first-child {
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  min-width: 200px;
}

.replaces__table td:nth-child(2) {
  color: #f87171;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.4);
}

.replaces__table td:nth-child(3) {
  color: #34d399;
  font-weight: 500;
}

.replaces__table tbody tr {
  transition: background 0.15s;
}

.replaces__table tbody tr:hover {
  background: rgba(33, 150, 243, 0.04);
}

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

.replaces__table tfoot td {
  background: rgba(33, 150, 243, 0.08);
  border-top: 2px solid var(--accent);
  border-bottom: none;
  padding: 18px 24px;
  font-size: 1.05rem;
}

.replaces__table tfoot td:first-child {
  color: var(--white);
}

.replaces__table tfoot td:nth-child(2) {
  color: #f87171;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.4);
  font-size: 1.1rem;
}

.replaces__table tfoot td:nth-child(3) {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

/* ── FAQ page question styling (all variants) ────────── */
.faq__question,
.faq-page__question,
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all var(--transition);
  text-align: left;
}

.faq__question:hover,
.faq-page__question:hover,
.faq-question:hover {
  border-color: var(--accent);
  color: var(--white);
}

.faq__question[aria-expanded="true"],
.faq-page__question[aria-expanded="true"],
.faq-question[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(33, 150, 243, 0.06);
  color: var(--white);
}

.faq__question::after,
.faq-page__question::after,
.faq-question::after {
  content: "▼";
  font-size: 0.6rem;
  color: var(--text-light);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__question[aria-expanded="true"]::after,
.faq-page__question[aria-expanded="true"]::after,
.faq-question[aria-expanded="true"]::after {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq__answer,
.faq-page__answer,
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq__answer p,
.faq-page__answer p,
.faq-answer p {
  padding: 12px 0 18px;
}

/* Legacy comparison-wrap / comparison-table aliases */
.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-surface);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: sticky;
  top: 0;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.comparison-table tbody tr:hover { background: var(--accent-glow); }
.comparison-table .highlight    { background: var(--accent-glow); }
.comparison-table .highlight th { background: var(--accent); color: var(--white); }
.comparison-table .check   { color: var(--success); font-weight: 700; }
.comparison-table .cross   { color: var(--danger); }
.comparison-table .partial { color: var(--warning); }

/* ── Book Compare Page ───────────────────────────────── */
.book-compare {
  background: var(--bg-dark);
  padding: 80px 0;
}

.book-compare .comparison-table th { white-space: nowrap; }

.compare-author {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

.compare-meta-row td {
  font-weight: 600;
  color: var(--text-light);
}

.book-compare-context {
  background: var(--bg-surface);
  padding: 80px 0;
  text-align: center;
}

.book-compare-context__body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}

.book-compare-context__body p {
  margin-bottom: 1.25rem;
}

.book-compare-context__body p:last-child {
  margin-bottom: 0;
}

.book-compare-context__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}


/* ================================================================
   14. BLOG
   ================================================================ */

.blog-header {
  padding: 60px 0 40px;
  background: var(--bg-dark);
  text-align: center;
}

.blog-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-listing {
  padding: 40px 0 80px;
  background: var(--bg-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image-link {
  display: block;
  overflow: hidden;
}

.blog-card__image,
.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.03);
}

.blog-card__content,
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta,
.blog-card .meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-card__reading-time {
  color: var(--text-light);
}

.blog-card__title,
.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card__title a {
  color: inherit;
  transition: color var(--transition);
}

.blog-card__title a:hover {
  color: var(--accent);
}

.blog-card__excerpt,
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card__categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.blog-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.blog-card__read-more,
.blog-card__link,
.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card__read-more:hover,
.blog-card__link:hover,
.blog-card .read-more:hover {
  color: var(--accent-light);
}


/* ================================================================
   15. CONTENT PAGES
   ================================================================ */

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── Problem Section ─────────────────────────────────── */
.problem {
  padding: 80px 0;
  background: var(--bg-dark);
}

.problem .container {
  text-align: center;
}

.problem__content {
  max-width: 760px;
  margin: 1.5rem auto 0;
  text-align: left;
}

.problem__content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ── Solution Section ────────────────────────────────── */
.solution {
  padding: 80px 0;
  background: var(--bg-surface-2);
}

.solution__content {
  max-width: 760px;
  margin: 1.5rem auto 0;
}

.solution__content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.solution__content code {
  background: var(--accent-glow);
  color: var(--accent-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── Compare Teaser ────���─────────────────────────────── */
.compare-teaser {
  background: var(--bg-surface);
  text-align: center;
  padding: 80px 0;
}

.compare-teaser .btn {
  margin-top: 1.5rem;
}

/* ── Final CTA ───────────────────────────────────────── */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(170deg, var(--bg-surface), var(--bg-dark));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta__title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
}

.final-cta__body {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── CTA Section (legacy) ────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(170deg, var(--bg-surface), var(--bg-dark));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title  { max-width: 600px; margin: 0 auto 1rem; position: relative; }
.cta-section .section-subtitle { margin: 0 auto 2rem; position: relative; }
.cta-section .btn { position: relative; }


/* ================================================================
   16. PAGE HERO (sub-pages)
   ================================================================ */

.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(170deg, var(--bg-dark) 40%, var(--bg-surface));
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ================================================================
   17. TOC (What's Inside page)
   ================================================================ */

.toc {
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.toc__part {
  margin-bottom: 3rem;
}

.toc__part-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.toc__part-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.toc__chapters {
  list-style: none;
  counter-reset: none;
}

.toc__chapter {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.toc__chapter-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.toc__chapter-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.toc__chapter-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}


/* ================================================================
   18. FAQ PAGE (full page, categories)
   ================================================================ */

.faq-page {
  padding: 40px 0 80px;
  background: var(--bg-dark);
}

.faq-page__category {
  margin-bottom: 2.5rem;
}

.faq-page__category-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-glow);
}

.faq-page__item {
  border-bottom: 1px solid var(--border);
}

.faq-page__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  transition: color var(--transition);
  gap: 1rem;
}

.faq-page__question:hover { color: var(--accent-light); }

.faq-page__question::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}

.faq-page__question[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.faq-page__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-page__answer > div {
  padding: 0 0 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-page__answer a {
  color: var(--accent-light);
  text-decoration: underline;
}


/* ================================================================
   19. AUTHOR / ABOUT PAGE
   ================================================================ */

.author-bio {
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.author-bio__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.author-bio__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.author-bio__text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.author-bio__text p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ── Series Story (About page timeline) ──────────────── */
.series-story {
  padding: 80px 0;
  background: var(--bg-surface-2);
}

.series-story__timeline {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.series-story__step {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: all var(--transition);
}

.series-story__step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.series-story__step--current {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.series-story__cover {
  flex-shrink: 0;
}

.series-story__cover img {
  height: 280px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.series-story__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.series-story__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.series-story__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.series-story__subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.series-story__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Also By (About page) ────────────────────────────── */
.also-by {
  padding: 80px 0;
  background: var(--bg-dark);
}

.also-by__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.also-by__book {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.also-by__book:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.also-by__cover {
  margin-bottom: 1rem;
}

.also-by__cover img {
  height: 240px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.also-by__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.also-by__desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ── About Block (legacy) ────────────────────────────── */
.about-block {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.about-block .about-text { flex: 1; }

.about-block .about-text p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}


/* ================================================================
   20. LEGAL / ERROR PAGES
   ================================================================ */

.legal-page {
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.legal-page__content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page__content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page__effective {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.legal-page__content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.legal-page__content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-page__content ul,
.legal-page__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.legal-page__content li {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.legal-page__content a {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ── 404 Error Page ──────────────────────────────────── */
.error-page {
  padding: 80px 0;
  background: var(--bg-dark);
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-page__inner {
  max-width: 640px;
  margin: 0 auto;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page__title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page__message {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-page__nav { text-align: left; }

.error-page__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.error-page__link {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.error-page__link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.error-page__link strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.error-page__link span {
  font-size: 0.85rem;
  color: var(--text-light);
}


/* ================================================================
   21. POST TEMPLATE
   ================================================================ */

.post-article {
  background: var(--bg-dark);
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.post-category {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-meta-sep { color: var(--text-light); }

.post-date,
.post-reading-time {
  color: var(--text-light);
}

.post-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.post-byline { margin-bottom: 1.5rem; }

.post-author {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Post Tags ───────────────────────────────────────── */
.post-tags,
.post-tags-bottom {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.post-tags-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.post-tags-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.post-tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-light);
  transition: all var(--transition);
}

.post-tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

/* ── Post Body (prose) ─────���─────────────────────────── */
.post-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-light);
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-light);
  list-style: disc;
}

.post-body ol { list-style: decimal; }

.post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.post-body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-body table th,
.post-body table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post-body table th {
  background: var(--bg-surface);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Post CTA Banner ─────────────────────────────────── */
.post-cta-banner,
.post-cta {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.post-cta-banner::before,
.post-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.post-cta-inner {
  padding: 2.5rem;
  text-align: center;
}

.post-cta-heading {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-cta-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── Related Posts ────────────────────────────────────── */
.related-posts,
.post-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.related-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
  color: inherit;
}

.related-post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.related-post-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-post-body { padding: 1rem; }

.related-post-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.related-post-excerpt {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.related-post-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}


/* ================================================================
   22. ADDITIONAL CONTENT GRIDS
   ================================================================ */

/* ── Content Grid (What's Inside) ────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.content-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.content-card .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.content-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.content-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Audience / Who It's For ─────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.audience-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.audience-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
}

.audience-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.audience-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Book Cards (companion grid) ─────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.book-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 192, 64, 0.1);
}

.book-card .book-series-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.book-card h3 {
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.book-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.book-card .book-link       { font-size: 0.85rem; font-weight: 600; color: var(--gold); }
.book-card .book-link:hover { color: var(--gold-hover); }

/* ── Testimonials ────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.testimonial .stars { color: var(--warning); font-size: 1rem; margin-bottom: 0.75rem; }

.testimonial blockquote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  background: none;
}

.testimonial cite {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: normal;
}

/* ── Problems Grid ─────���─────────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.problem-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--danger);
}

[data-theme="light"] .problem-card { background: var(--white); }

.problem-card h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Pricing / Value Highlight ───────────────────────── */
.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-glow);
  border: 1px solid rgba(33, 150, 243, 0.25);
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  margin-bottom: 2rem;
}

.hero-price .old   { font-size: 1.5rem; color: var(--danger); text-decoration: line-through; font-weight: 700; }
.hero-price .arrow { color: var(--accent); font-size: 1.2rem; }
.hero-price .new   { font-size: 1.5rem; color: var(--accent); font-weight: 800; }
.hero-price .per   { font-size: 0.8rem; color: var(--text-light); }


/* ================================================================
   23. BREADCRUMB
   ================================================================ */

.breadcrumb-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 24px;
}

.breadcrumb-list {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--border-hover);
}

.breadcrumb-list a       { color: var(--accent-light); }
.breadcrumb-list a:hover { color: var(--accent); }

.breadcrumb-list span[aria-current="page"] {
  color: var(--text);
}


/* ================================================================
   24. CODE & BLOCKQUOTES
   ================================================================ */

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

:not(pre) > code {
  background: var(--accent-glow);
  color: var(--accent-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

pre code {
  background: none;
  color: var(--text);
  padding: 0;
  border-radius: 0;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

blockquote p { margin-bottom: 0; }

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: normal;
}


/* ================================================================
   25. FOOTER
   ================================================================ */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}

[data-theme="light"] .footer {
  background: #f1f5f9;
}

/* ══════════════════════════════════════════════════════
   LIGHT THEME — comprehensive overrides for readability
   ══════════════════════════════════════════════════════ */

/* Section titles in light mode — dark text, not blue */
[data-theme="light"] .section-title {
  color: #0f172a;
}

[data-theme="light"] .section-subtitle {
  color: #475569;
}

/* Tables — white bg, dark text, strong contrast */
[data-theme="light"] .replaces__table-wrap,
[data-theme="light"] .comparison__table-wrap,
[data-theme="light"] .comparison-wrap {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .replaces__table th,
[data-theme="light"] .comparison__table th,
[data-theme="light"] .comparison-table th {
  background: #f1f5f9;
  color: #1565C0;
  border-bottom-color: #2196F3;
}

[data-theme="light"] .replaces__table td,
[data-theme="light"] .comparison__table td,
[data-theme="light"] .comparison-table td {
  color: #334155;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .replaces__table td:first-child,
[data-theme="light"] .comparison__table td:first-child {
  color: #0f172a;
  font-weight: 700;
}

[data-theme="light"] .replaces__table td:nth-child(2) {
  color: #dc2626;
}

[data-theme="light"] .replaces__table td:nth-child(3) {
  color: #059669;
}

[data-theme="light"] .replaces__table tfoot td {
  background: #f1f5f9;
  border-top-color: #2196F3;
}

[data-theme="light"] .replaces__table tbody tr:hover,
[data-theme="light"] .comparison__table tbody tr:hover {
  background: #f8fafc;
}

/* Cards — white with subtle shadow */
[data-theme="light"] .series__book,
[data-theme="light"] .feature-card,
[data-theme="light"] .blog-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .series__book-title,
[data-theme="light"] .feature-card__title {
  color: #0f172a;
}

[data-theme="light"] .series__book-subtitle,
[data-theme="light"] .series__book-desc,
[data-theme="light"] .feature-card__body {
  color: #475569;
}

/* FAQ — white bg with proper contrast */
[data-theme="light"] .faq__question,
[data-theme="light"] .faq-page__question,
[data-theme="light"] .faq-question {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .faq__question:hover,
[data-theme="light"] .faq-page__question:hover {
  border-color: #2196F3;
  color: #1565C0;
}

[data-theme="light"] .faq__answer,
[data-theme="light"] .faq-page__answer {
  color: #475569;
}

/* Hero in light mode */
[data-theme="light"] .hero {
  background: linear-gradient(135deg, #f8fafc, #e8edf4, #dbeafe);
}

[data-theme="light"] .hero__title,
[data-theme="light"] .hero-heading {
  color: #0f172a;
}

[data-theme="light"] .hero__tagline {
  color: #1565C0;
}

/* Stats bar */
[data-theme="light"] .stats-bar {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .stats-bar__number {
  color: #1565C0;
}

[data-theme="light"] .stats-bar__label {
  color: #64748b;
}

/* Floating elements */
[data-theme="light"] .floating-contact-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .a11y-toggle-btn {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .cookie-consent {
  background: #ffffff;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .cookie-consent__text {
  color: #475569;
}

/* CTA sections */
[data-theme="light"] .final-cta {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

[data-theme="light"] .final-cta__title {
  color: #0f172a;
}

[data-theme="light"] .final-cta__body {
  color: #475569;
}

/* Code blocks */
[data-theme="light"] pre {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] code {
  background: #e8edf4;
  color: #1e293b;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent-light); }

.footer-about {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-author {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-series-tag {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-legal a:hover { color: var(--accent-light); }

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.6;
  line-height: 1.6;
}

.footer-disclaimer a {
  color: var(--accent-light);
  text-decoration: underline;
}


/* ================================================================
   26. FLOATING ELEMENTS (right side stack)
   ================================================================ */

/* ── All floating buttons: unified right-side stack ──── */
/* Stack order from bottom: scroll-top, contact, scroll-arrows, a11y */

.floating-stack-right {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  z-index: 9990;
}

/* Shared button base for consistent sizing */
.floating-stack-right button,
.floating-stack-right .floating-contact-btn,
.scroll-top,
.a11y-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

/* ── Scroll To Top ───────────────────────────────────── */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9990;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 3px 14px var(--accent-glow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ── Floating Contact ────────────────────────────────── */
.floating-contact-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 4.5rem;
  z-index: 9991;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px var(--accent-glow-strong);
}

.floating-contact-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 24px var(--accent-glow-strong);
}

.floating-contact-btn.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.floating-contact-card {
  position: fixed;
  right: 1.25rem;
  bottom: 8.5rem;
  z-index: 9992;
  width: 300px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: all 0.25s ease;
}

.floating-contact-card.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.floating-contact-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}

.floating-contact-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.floating-contact-close:hover { color: var(--text); }

.floating-contact-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.floating-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floating-contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.floating-contact-link:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.floating-contact-link svg { color: var(--accent); flex-shrink: 0; }

/* ── Scroll Arrows — hidden, scroll-top handles this ── */
.scroll-arrows { display: none; }
.scroll-arrow { display: none; }


/* ================================================================
   27. ACCESSIBILITY PANEL
   ================================================================ */

/* ── A11y Toggle Button (right side, above contact) ── */
.a11y-toggle-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 8rem;
  z-index: 9988;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.a11y-toggle-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 2px 2px 16px var(--accent-glow-strong);
}

/* ── Panel ───────────────────────────────────────────── */
.a11y-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 150;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

.a11y-panel.open { transform: translateX(0); }

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.a11y-panel-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}

.a11y-panel-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.a11y-panel-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.a11y-panel-body { padding: 1rem 1.5rem 2rem; }

/* ── Panel Groups ────────────────────────────────────── */
.a11y-group {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.a11y-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.a11y-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.a11y-opt {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.a11y-opt:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.a11y-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ── Toggle Options ──────────────────────────────────── */
.a11y-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.a11y-toggle-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.a11y-toggle-opt:hover { border-color: var(--accent); }

.a11y-toggle-opt[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.a11y-toggle-indicator {
  width: 32px;
  height: 18px;
  background: var(--border);
  border-radius: 9px;
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition);
}

.a11y-toggle-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-light);
  border-radius: 50%;
  transition: all var(--transition);
}

.a11y-toggle-opt[aria-pressed="true"] .a11y-toggle-indicator {
  background: var(--accent);
}

.a11y-toggle-opt[aria-pressed="true"] .a11y-toggle-indicator::after {
  left: 16px;
  background: var(--white);
}

/* ── Reset Button ────────────────────────────────────── */
.a11y-reset-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  cursor: pointer;
  transition: all var(--transition);
}

.a11y-reset-btn:hover {
  background: var(--danger);
  color: var(--white);
}

/* ── Panel Overlay ──────���────────────────────────────── */
.a11y-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.a11y-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ── Reading Guide ───────────────────────────────────── */
.a11y-reading-guide {
  position: fixed;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(33, 150, 243, 0.2);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  pointer-events: none;
  z-index: 9999;
  display: none;
  transition: top 0.05s linear;
}

html.a11y-reading-guide .a11y-reading-guide { display: block; }


/* ================================================================
   28. ACCESSIBILITY OVERRIDE CLASSES
   ================================================================ */

/* Text Size */
html.a11y-small-text  { font-size: 14px; }
html.a11y-large-text  { font-size: 18px; }
html.a11y-xlarge-text { font-size: 20px; }

/* Line Spacing */
html.a11y-line-15 body { line-height: 2.2; }
html.a11y-line-2 body  { line-height: 2.8; }

/* Letter Spacing */
html.a11y-letter-wide body  { letter-spacing: 0.05em; }
html.a11y-letter-wider body { letter-spacing: 0.1em; }

/* Font Overrides */
html.a11y-font-sans body,
html.a11y-font-sans h1,
html.a11y-font-sans h2,
html.a11y-font-sans h3,
html.a11y-font-sans h4,
html.a11y-font-sans h5,
html.a11y-font-sans h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html.a11y-font-dyslexia body,
html.a11y-font-dyslexia h1,
html.a11y-font-dyslexia h2,
html.a11y-font-dyslexia h3,
html.a11y-font-dyslexia h4,
html.a11y-font-dyslexia h5,
html.a11y-font-dyslexia h6 {
  font-family: 'OpenDyslexic', 'Comic Sans MS', cursive !important;
}

/* Contrast */
html.a11y-high-contrast body {
  background: #000000 !important;
  color: #ffffff !important;
}

html.a11y-high-contrast *:not(svg):not(path):not(circle):not(line):not(polyline):not(rect) {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

html.a11y-high-contrast a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

html.a11y-high-contrast .nav,
html.a11y-high-contrast .footer,
html.a11y-high-contrast .a11y-panel {
  background: #000000 !important;
  border-color: #ffffff !important;
}

html.a11y-high-contrast .btn--primary,
html.a11y-high-contrast .btn-primary,
html.a11y-high-contrast .a11y-opt.active {
  background: #ffffff !important;
  color: #000000 !important;
}

html.a11y-grayscale body { filter: grayscale(100%); }

/* Highlight Links */
html.a11y-highlight-links a {
  background: rgba(33, 150, 243, 0.2) !important;
  outline: 2px solid var(--accent) !important;
  outline-offset: 1px;
  border-radius: 2px;
}

/* Stop Animations */
html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation-duration: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
  scroll-behavior: auto !important;
}

/* Text Alignment */
html.a11y-align-center  body { text-align: center; }
html.a11y-align-justify body { text-align: justify; }

/* Large Cursor */
html.a11y-large-cursor,
html.a11y-large-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l28 20H20l-2 1 10 18-5 3-10-18-5 4z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

html.a11y-large-cursor a,
html.a11y-large-cursor button,
html.a11y-large-cursor [role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M20 4v24h6l-2-10h12L20 4z' fill='%232196F3' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 14 4, pointer !important;
}


/* ================================================================
   29. LIGHTBOX
   ================================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  animation: lightboxScale 0.3s ease;
}

@keyframes lightboxScale {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}


/* ================================================================
   30. COOKIE CONSENT
   ================================================================ */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(33, 150, 243, 0.2);
  padding: 1rem 1.5rem;
  z-index: 10000;
  display: flex;
  justify-content: center;
}

.cookie-consent__inner {
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent__text {
  color: var(--text-light);
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-consent__link {
  color: var(--accent-light);
  font-size: 0.85rem;
}


/* ================================================================
   31. UTILITY CLASSES
   ================================================================ */

.text-center  { text-align: center; }
.text-primary { color: var(--accent); }
.text-accent  { color: var(--accent-light); }
.text-muted   { color: var(--text-light); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* ================================================================
   32. THEME TRANSITION
   ================================================================ */

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}


/* ================================================================
   33. RESPONSIVE — 1024px
   ================================================================ */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__headline,
  .hero__title,
  .hero-heading {
    font-size: 2.75rem;
  }

  .author-bio__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-bio__photo {
    max-width: 280px;
    margin: 0 auto;
  }
}


/* ================================================================
   34. RESPONSIVE — 768px
   ================================================================ */

@media (max-width: 768px) {

  /* Nav becomes hamburger */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1.5rem 24px;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  [data-theme="light"] .nav-links {
    background: var(--bg-dark);
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  /* Hero stacks */
  .hero { padding: 60px 24px 50px; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero__text { align-items: center; }

  .hero__headline,
  .hero__title,
  .hero-heading {
    font-size: 2.25rem;
  }

  .hero__body { max-width: 100%; }

  .hero__cta-group,
  .hero__buttons,
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta-group .btn,
  .hero__buttons .btn,
  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero__image img,
  .hero__cover img,
  .hero-cover img {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-tagline { margin: 0 auto 1.5rem; }

  .hero-price {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Sections */
  .section { padding: 56px 24px; }

  .section-title { font-size: 1.75rem; }

  /* Series & grids — cards are already vertical, just adjust grid */
  .series__grid--three { grid-template-columns: repeat(2, 1fr); }

  .series__cover img { height: 200px; max-width: 150px; }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stats-bar__number { font-size: 2rem; }

  .about-block { flex-direction: column; }
  .blog-grid   { grid-template-columns: 1fr; }

  /* Series story */
  .series-story__step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .series-story__cover img {
    height: 220px;
  }

  /* A11y panel full width */
  .a11y-panel {
    width: 100%;
    max-width: 100vw;
  }

  .scroll-arrow {
    width: 32px;
    height: 32px;
  }

  /* Floating elements: tighten on mobile */
  .scroll-top {
    right: 1rem;
    bottom: 1rem;
    width: 36px;
    height: 36px;
  }

  .floating-contact-btn {
    right: 1rem;
    bottom: 5rem;
    width: 44px;
    height: 44px;
  }

  .floating-contact-card {
    right: 1rem;
    bottom: 8rem;
  }

  .scroll-arrows {
    right: 1rem;
    bottom: 9rem;
  }
}


/* ================================================================
   35. RESPONSIVE — 640px
   ================================================================ */

@media (max-width: 640px) {
  .stats-bar {
    padding: 2rem 1.5rem;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hero__headline,
  .hero__title,
  .hero-heading {
    font-size: 2rem;
  }

  .section-title { font-size: 1.6rem; }
  .post-title    { font-size: 1.75rem; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .features__grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   36. RESPONSIVE — 480px
   ================================================================ */

@media (max-width: 480px) {
  .hero__headline,
  .hero__title,
  .hero-heading {
    font-size: 1.75rem;
  }

  .hero__subhead { font-size: 1.1rem; }

  .section { padding: 40px 16px; }
  .section-title { font-size: 1.4rem; }
  .post-title { font-size: 1.5rem; }

  .stats-bar {
    padding: 1.5rem 1rem;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stats-bar__number { font-size: 1.75rem; }

  .problems-grid,
  .feature-grid,
  .audience-grid,
  .testimonials-grid,
  .book-grid,
  .related-posts-grid,
  .also-by__grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .series__grid,
  .series__grid--three {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav { padding: 0 16px; }
  .breadcrumb-nav { padding: 0.5rem 16px; }

  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .page-hero__title { font-size: 2rem; }

  .error-page__code { font-size: 4rem; }
}


/* ================================================================
   37. WIDE SCREENS
   ================================================================ */

@media (min-width: 1280px) {
  .section-inner {
    max-width: 1280px;
  }
}


/* ================================================================
   38. REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  .hero-cover img,
  .hero__cover img,
  .hero__image img {
    transform: none;
  }

  .hero-cover img:hover,
  .hero__cover img:hover,
  .hero__image img:hover {
    transform: none;
  }

  .reading-progress { transition: none; }
}


/* ================================================================
   39. PRINT STYLES
   ================================================================ */

@media print {
  .nav,
  .scroll-top,
  .reading-progress,
  .post-cta-banner,
  .post-cta,
  .footer,
  .btn,
  .nav-toggle,
  .theme-toggle,
  .breadcrumb-nav,
  .a11y-toggle-btn,
  .a11y-panel,
  .a11y-overlay,
  .a11y-reading-guide,
  .floating-contact-btn,
  .floating-contact-card,
  .floating-stack-right,
  .scroll-arrows,
  .cookie-consent,
  .final-cta,
  .cta-section,
  .lightbox-overlay {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
    line-height: 1.5;
  }

  h1, h2, h3, h4 {
    color: #000000;
    page-break-after: avoid;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  .section { padding: 1rem 0; }

  .post-content { max-width: 100%; }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  pre, blockquote {
    page-break-inside: avoid;
    border: 1px solid #ccc;
  }
}
