/* ==========================================================================
   GIVE, GROW, & BE GRATEFUL — OFFICIAL BRAND DESIGN SYSTEM
   Author / Founder: Kevin Getch
   Creative Direction Tokens & WCAG AAA High-Contrast Dark Foundation
   ========================================================================== */

:root {
  /* Brand Color System */
  --slate-950: #090D16;        /* Obsidian Deep: Deepest canvas, reader text box, modal backdrops */
  --slate-900: #0F172A;        /* Deep Slate: Primary page background; quiet, immersive depth */
  --slate-800: #1E293B;        /* Surface Slate: Interactive cards, framework tiles, reader deck */
  --slate-700: #334155;        /* Border Slate: Subtle container borders, dividers, form fields */
  --slate-600: #475569;
  --slate-400: #94A3B8;        /* Muted Slate: Metadata, timestamps, captions, disabled states */
  --slate-300: #CBD5E1;        /* Slate Gray: High-legibility body prose (WCAG AAA 7:1+ on dark) */
  --slate-200: #E2E8F0;
  --chalk: #F8FAFC;            /* Pure Chalk: Primary headlines, active typography, book titles */

  /* Kinetic Ember (Youth CTA, Fire, Bravery, Emotional Triggers) */
  --ember: #EA580C;
  --ember-hover: #C2410C;
  --ember-light: #FDBA74;
  --ember-glow: rgba(234, 88, 12, 0.22);

  /* Growth Teal (Donor CTA, The River, Flow, Neuroplasticity, Gratitude) */
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-glow: rgba(13, 148, 136, 0.2);

  /* Typography Hierarchy */
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-quote: "Lora", Georgia, serif;
  --font-mono: "Space Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--slate-900);
  color: var(--chalk);
  font-family: var(--font-main);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(13, 148, 136, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 85% 22%, rgba(234, 88, 12, 0.07) 0%, transparent 40%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   PWA INSTALL NOTIFICATION BAR & OFFLINE BADGE
   ========================================================================== */
.pwa-install-banner {
  display: none;
  background: linear-gradient(90deg, #134E4A 0%, var(--slate-800) 100%);
  border-bottom: 1px solid var(--teal);
  padding: 10px 16px;
  font-size: 0.88rem;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 150;
}

.pwa-install-banner.active {
  display: flex;
}

.pwa-install-banner .install-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-install-banner .install-btn {
  background: var(--teal-light);
  color: var(--slate-950);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-main);
}

.pwa-badge-offline {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(234, 88, 12, 0.2);
  color: var(--ember-light);
  border: 1px solid var(--ember);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.pwa-badge-offline.active {
  display: inline-flex;
}

/* ==========================================================================
   STICKY HEADER & NAVIGATION
   ========================================================================== */
header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--chalk);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo span.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal-light);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal-light);
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  color: var(--chalk);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

.mobile-nav-drawer {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 22, 0.98);
  padding: 12px 0;
  margin-top: 12px;
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-inner a {
  color: var(--slate-200);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.mobile-nav-inner a:hover,
.mobile-nav-inner a:active {
  background: var(--slate-800);
  border-color: var(--teal-light);
  color: var(--chalk);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-ember {
  background: var(--ember);
  color: #FFF;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.btn-ember:hover, .btn-ember:active {
  background: var(--ember-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.5);
}

.btn-teal {
  background: var(--teal);
  color: #FFF;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

.btn-teal:hover, .btn-teal:active {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(20, 184, 166, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--chalk);
  border: 1px solid var(--slate-700);
}

.btn-outline:hover, .btn-outline:active {
  background: var(--slate-800);
  border-color: var(--teal-light);
}

.btn-pill-sm {
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  color: var(--slate-300);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s;
}

.btn-pill-sm:hover, .btn-pill-sm.active {
  background: var(--slate-700);
  color: #FFF;
  border-color: var(--teal-light);
}

/* ==========================================================================
   HERO SECTION & 3D DUAL-EDITION COVER SHOWCASE
   ========================================================================== */
.hero {
  padding: 48px 0 36px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 52px;
  align-items: center;
}

.book-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 14px;
}

.book-frame {
  position: relative;
  width: 100%;
  max-width: 310px;
  border-radius: 14px;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.78),
    0 0 50px var(--teal-glow),
    0 0 22px rgba(234, 88, 12, 0.16);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--slate-950);
  aspect-ratio: 2 / 3;
}

.book-frame:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 26px 50px -10px rgba(0, 0, 0, 0.85),
    0 0 65px rgba(20, 184, 166, 0.32),
    0 0 28px rgba(234, 88, 12, 0.24);
}

.book-frame img,
.book-frame svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cover Edition Switcher Pills */
.cover-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  background: var(--slate-950);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--slate-700);
}

.cover-tab {
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.cover-tab:hover {
  color: var(--chalk);
}

.cover-tab.active {
  background: var(--slate-800);
  color: var(--teal-light);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.cover-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-400);
  text-align: center;
}

/* Hero Copy */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-content h1 .mind {
  color: var(--ember-light);
}

.hero-content h1 .riverbed {
  color: var(--teal-light);
  position: relative;
}

.hero-content p.lead {
  font-size: 1.18rem;
  color: var(--slate-300);
  margin-bottom: 12px;
  max-width: 600px;
  line-height: 1.55;
}

.hero-content p.byline {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate-400);
  margin-bottom: 28px;
}

.hero-content p.byline strong {
  color: var(--chalk);
  font-weight: 600;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--slate-300);
  font-family: var(--font-mono);
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badges span::before {
  content: "✓";
  color: var(--teal-light);
  font-weight: bold;
}

/* ==========================================================================
   QUOTE MARQUEE STRIP
   ========================================================================== */
.quote-strip {
  margin: 36px 0 24px;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--teal-light);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.quote-strip p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--chalk);
  line-height: 1.5;
}

.quote-strip span.author-tag {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   INTERACTIVE AUDIO READ-ALONG MODULE
   ========================================================================== */
.reader-section {
  background: var(--slate-800);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
  margin: 32px 0 60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.reader-title h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--teal-light);
  font-family: var(--font-mono);
  background: rgba(13, 148, 136, 0.15);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.live-indicator.adhd-badge {
  background: rgba(234, 88, 12, 0.15);
  color: var(--ember-light);
  border: 1px solid rgba(234, 88, 12, 0.35);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

.reader-controls-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.chapter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.chapter-pill {
  background: var(--slate-950);
  border: 1px solid var(--slate-700);
  color: var(--slate-300);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chapter-pill:hover {
  border-color: var(--teal-light);
  color: var(--chalk);
}

.chapter-pill.active {
  background: rgba(13, 148, 136, 0.2);
  border-color: var(--teal-light);
  color: var(--chalk);
  font-weight: 700;
}

/* Synced Text Box */
.synced-text-container {
  background: var(--slate-950);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 240px;
  overflow-y: auto;
  font-size: 1.12rem;
  line-height: 1.88;
  color: var(--slate-300);
}

.synced-sentence {
  padding: 4px 7px;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline;
}

.synced-sentence:hover {
  color: var(--chalk);
  background: rgba(255, 255, 255, 0.06);
}

.synced-sentence.active {
  background: var(--teal-glow);
  color: var(--chalk);
  font-weight: 600;
  border-left: 3px solid var(--teal-light);
  padding-left: 9px;
}

/* Audio Player Controls Deck */
.audio-player-deck {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

.play-btn:hover, .play-btn:active {
  background: var(--teal-light);
  transform: scale(1.06);
}

.progress-track {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.time-stamps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-300);
  gap: 10px;
}

.chapter-tag {
  color: var(--chalk);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

/* Riverbed Fluid Gradient Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--slate-700);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.audio-status-note {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-400);
}

/* ==========================================================================
   CORE FRAMEWORKS & METAPHOR CARDS
   ========================================================================== */
.frameworks-section {
  padding: 36px 0 60px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: block;
}

.section-title-wrap h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Armor vs. Vulnerability UI Cue: Solid border transitioning to open glowing border on hover */
.framework-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.framework-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-light);
  box-shadow: 0 12px 30px -8px rgba(13, 148, 136, 0.25);
}

.framework-card.ember-accent:hover {
  border-color: var(--ember);
  box-shadow: 0 12px 30px -8px rgba(234, 88, 12, 0.25);
}

.framework-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ember-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.framework-card h3 {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--chalk);
}

.framework-quote {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--chalk);
  font-size: 1.05rem;
  margin-bottom: 14px;
  border-left: 2px solid var(--teal-light);
  padding-left: 12px;
  line-height: 1.6;
}

.framework-card p.desc {
  font-size: 0.94rem;
  color: var(--slate-300);
  line-height: 1.65;
}

.framework-card-action {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listen-link-btn {
  background: transparent;
  border: none;
  color: var(--teal-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
}

.listen-link-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   EARLY PRAISE & ENDORSEMENTS SECTION
   ========================================================================== */
.praise-section {
  padding: 12px 0 48px;
}

.praise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.praise-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--slate-700);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.praise-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-light);
  box-shadow: 0 12px 28px -8px rgba(13, 148, 136, 0.25);
}

.praise-card.ember-accent:hover {
  border-color: var(--ember);
  box-shadow: 0 12px 28px -8px rgba(234, 88, 12, 0.25);
}

.praise-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--slate-200);
  margin: 0;
}

.praise-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.praise-avatar-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--teal-light);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
  background: var(--slate-800);
  flex-shrink: 0;
}

.praise-avatar-ring.ember-ring {
  border-color: var(--ember);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.32);
}

.praise-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.praise-meta h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--chalk);
  margin-bottom: 2px;
}

.praise-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal-light);
  display: block;
  line-height: 1.35;
}

.praise-card.ember-accent .praise-meta span {
  color: var(--ember-light);
}

/* ==========================================================================
   AUTHOR STORY & MISSION SECTION
   ========================================================================== */
.about-author-section {
  padding: 56px 36px;
  margin: 12px 0 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.about-author-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: center;
}

.author-portrait-col {
  text-align: center;
}

.author-avatar-ring {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--teal-light);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.35);
  background: var(--slate-800);
}

.author-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.28);
  transform-origin: center 16%;
  display: block;
}

.author-portrait-col h4 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--chalk);
  margin-bottom: 4px;
}

.author-portrait-col p.author-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-light);
}

.author-bio-col .author-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ember-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.author-bio-col h3 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--chalk);
  margin-bottom: 16px;
}

.author-bio-col p {
  color: var(--slate-300);
  font-size: 1.02rem;
  line-height: 1.72;
  margin-bottom: 14px;
}

.author-bio-col p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   DUAL AUDIENCE GATEWAY SECTION
   ========================================================================== */
.gateways-section {
  padding: 36px 0 80px;
}

.gateway-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.gateway-card {
  background: var(--slate-800);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.gateway-card.teen-card {
  border-top: 4px solid var(--ember);
}

.gateway-card.donor-card {
  border-top: 4px solid var(--teal);
}

.gateway-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.gateway-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.gateway-card p.intro {
  color: var(--slate-300);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
}

.feature-list li {
  padding: 8px 0 8px 20px;
  font-size: 0.95rem;
  color: var(--slate-300);
  display: block;
  position: relative;
  line-height: 1.55;
}

.feature-list li::before {
  content: "•";
  color: var(--teal-light);
  font-size: 1.4rem;
  line-height: 1;
  position: absolute;
  left: 0;
  top: 7px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--slate-950);
  padding: 36px 0;
  font-size: 0.88rem;
  color: var(--slate-400);
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   MODALS (YOUTH ACCESS & DONOR SPONSORSHIP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.modal-card .btn {
  white-space: normal;
  line-height: 1.35;
  padding: 14px 20px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--chalk);
}

.modal-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--chalk);
}

.modal-card p.desc {
  color: var(--slate-300);
  margin-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.modal-book-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-cover-thumb {
  width: 68px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.modal-dual-thumbs {
  position: relative;
  width: 86px;
  height: 108px;
  flex-shrink: 0;
}

.modal-dual-thumbs .modal-cover-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  z-index: 2;
}

.modal-dual-thumbs .modal-cover-thumb.youth-offset {
  top: 10px;
  left: 22px;
  z-index: 1;
  opacity: 0.92;
  transform: rotate(4deg);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--slate-200);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 8px;
  color: var(--chalk);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Donation Tiers */
.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.tier-card {
  border: 1px solid var(--slate-700);
  background: var(--slate-800);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tier-card.selected {
  border-color: var(--teal-light);
  background: rgba(13, 148, 136, 0.2);
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-light);
  margin-bottom: 4px;
}

.tier-card .amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--chalk);
}

.tier-card .impact {
  font-size: 0.72rem;
  color: var(--slate-300);
  margin-top: 4px;
  line-height: 1.3;
}

.print-retail-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--slate-400);
}

.print-retail-link {
  color: var(--chalk);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  transition: all 0.2s ease;
}

.print-retail-link:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & FOLDABLE / DUAL-SCREEN SUPPORT
   ========================================================================== */
@media (max-width: 860px) {
  .container {
    padding: 0 16px;
  }

  header {
    padding: 12px 0;
  }

  .nav-wrapper {
    gap: 10px;
  }

  .logo {
    font-size: 0.94rem;
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
  }

  .logo span.badge {
    font-size: 0.58rem;
    padding: 2px 6px;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .header-youth-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .header-cta {
    flex-shrink: 0;
    gap: 8px;
  }

  .header-cta .btn {
    width: auto;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }

  .hero {
    padding: 24px 0 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-content {
    min-width: 0;
    max-width: 100%;
  }

  .hero-pill-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .book-showcase {
    order: -1;
    max-width: 100%;
  }

  .book-frame {
    max-width: 268px;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 2.15rem;
    line-height: 1.18;
  }

  .hero-content p.lead {
    font-size: 1.02rem;
    margin: 0 auto 12px;
  }

  .hero-content p.byline {
    margin-bottom: 22px;
  }

  .cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .cta-group .btn,
  .gateway-card .btn,
  .modal-card .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.96rem;
    white-space: normal;
  }

  .hero-badges {
    justify-content: center;
    font-size: 0.76rem;
    gap: 10px 14px;
  }

  .quote-strip {
    margin: 24px 0 16px;
    padding: 18px 14px;
  }

  .quote-strip p {
    font-size: 1.08rem;
  }

  .reader-section {
    padding: 18px 14px;
    margin: 24px 0 40px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .reader-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .reader-controls-bar {
    width: 100%;
    justify-content: flex-start;
  }

  .chapter-pills {
    max-width: 100%;
  }

  .synced-text-container {
    padding: 16px;
    font-size: 0.98rem;
    line-height: 1.75;
    max-height: 210px;
  }

  .audio-player-deck {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .progress-track {
    min-width: 0;
  }

  .audio-player-deck > .btn {
    grid-column: span 2;
    width: 100%;
    margin-top: 6px;
  }

  .chapter-tag {
    max-width: 140px;
  }

  .framework-grid,
  .praise-grid {
    grid-template-columns: 1fr;
  }

  .about-author-section {
    padding: 32px 20px;
    margin: 8px 0 32px;
  }

  .about-author-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .author-avatar-ring {
    width: 164px;
    height: 164px;
  }

  .author-bio-col h3 {
    font-size: 1.5rem;
  }

  .gateway-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gateway-card {
    padding: 24px 18px;
    min-width: 0;
  }

  .tier-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-book-preview {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .logo span.badge {
    display: none;
  }
}

/* Foldable & Flip Device Flex-Mode Optimizations */
@media (vertical-viewport-segments: 2), (screen-spanning: single-fold-horizontal) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .book-frame {
    max-width: 235px;
  }
  .reader-section {
    padding: 20px;
  }
  .synced-text-container {
    max-height: 35vh;
  }
}

/* Ultra-tall 21:9+ Foldable Displays (Galaxy Z Flip / Pixel Fold) */
@media (min-aspect-ratio: 9/19) and (max-width: 500px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .book-frame {
    max-width: 235px;
  }
  .synced-text-container {
    max-height: 280px;
  }
}
