/* ============================================================
   THE FINANCIAL BLUEPRINT FOR TEENS — styles.css
   ============================================================ */

/* 1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

/* 2. DESIGN TOKENS
   ============================================================ */
:root {
  --gold:        #D4AF37;
  --gold-light:  #F0D060;
  --gold-dark:   #A68920;
  --gold-glow:   rgba(212, 175, 55, 0.22);

  --dark:        #0D0D0D;
  --dark-2:      #171717;
  --dark-3:      #242424;

  --off-white:   #F6F1E9;
  --off-white-2: #EDE8DF;
  --text-body:   #2D2520;
  --text-muted:  #7A6E65;

  --teal:        #2A9D8F;
  --teal-dark:   #1F7A6E;

  --border-gold: rgba(212, 175, 55, 0.18);
  --border-dark: rgba(255, 255, 255, 0.07);

  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-width:  1200px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: 0.25s ease;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow:     0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 32px rgba(212,175,55,0.12);
}

/* 3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw,  3.8rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
  display: block;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* 4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section      { padding: 5rem 0; }
.section-sm   { padding: 3rem 0; }
.section-lg   { padding: 7rem 0; }

.section-header { max-width: 680px; margin-bottom: 3.5rem; }
.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* 5. NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(212,175,55,0.7);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.7);
  padding: 0.375rem 0.8rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav-btn {
  background: var(--gold);
  color: var(--dark) !important;
  font-weight: 700 !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: 8px !important;
}
.nav-btn:hover {
  background: var(--gold-light) !important;
  color: var(--dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--off-white);
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  background: rgba(13,13,13,0.97);
  border-top: 1px solid var(--border-gold);
  padding: 0.5rem 0 1rem;
}
.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(245,240,232,0.75);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--gold); padding-left: 1.75rem; }
.nav-mobile .nav-btn {
  margin: 0.5rem 1.5rem 0;
  display: block;
  text-align: center;
  padding: 0.65rem !important;
  border-radius: 8px !important;
}

/* 6. FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-gold);
  padding: 4.5rem 0 2rem;
  color: rgba(245,240,232,0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(245,240,232,0.45);
  max-width: 30ch;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.55);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(245,240,232,0.55);
  transition: var(--transition);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 0.15rem; }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.3);
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: rgba(245,240,232,0.25);
  max-width: 64ch;
  line-height: 1.65;
}

/* 7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-gold  { background: var(--gold); color: var(--dark); }
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 2px solid rgba(212,175,55,0.45);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: var(--gold);
  border: 2px solid var(--border-gold);
}
.btn-dark:hover {
  background: var(--dark-3);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-lg { font-size: 1.05rem; padding: 0.95rem 2rem; }
.btn-sm { font-size: 0.82rem; padding: 0.5rem 1rem; }

/* 8. DECORATIVE
   ============================================================ */
.gold-divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.2rem 0;
}
.gold-divider.centered { margin-left: auto; margin-right: auto; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.badge-gold {
  background: rgba(212,175,55,0.1);
  color: var(--gold-dark);
  border: 1px solid rgba(212,175,55,0.22);
}

/* Blueprint grid pattern (applied to dark sections) */
.blueprint-bg {
  position: relative;
  overflow: hidden;
}
.blueprint-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.blueprint-bg > * { position: relative; z-index: 1; }

/* 9. HERO
   ============================================================ */
.hero {
  background: var(--dark);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--off-white));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--off-white);
  line-height: 1.08;
  margin-bottom: 0.4rem;
}
.hero-title .accent { color: var(--gold); }

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.hero-author {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.hero-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245,240,232,0.85);
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: rgba(212,175,55,0.05);
  border-radius: 0 8px 8px 0;
  margin-bottom: 2.25rem;
  line-height: 1.65;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-wrap {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.cover-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: var(--gold);
  border-radius: var(--radius-xl);
  opacity: 0.1;
  filter: blur(32px);
}
.cover-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 72px rgba(0,0,0,0.65);
  position: relative;
  z-index: 1;
}

/* 10. HOOK SECTION
   ============================================================ */
.hook-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hook-callout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hook-stat-box {
  background: var(--dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  text-align: center;
}

.hook-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.hook-number-label {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.55);
  line-height: 1.5;
}

.hook-truth {
  background: rgba(212,175,55,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.7;
}

/* 11. CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-gold);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

.card-dark {
  background: var(--dark-2);
  border-color: var(--border-dark);
  color: var(--off-white);
}
.card-dark:hover { border-color: rgba(212,175,55,0.3); }
.card-dark h3 { color: var(--off-white); }
.card-dark p  { color: rgba(245,240,232,0.6); }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(212,175,55,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(212,175,55,0.15);
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text-body); }
.card p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; max-width: none; line-height: 1.65; }

/* 12. TOPICS STRIP
   ============================================================ */
.topics-strip {
  background: var(--dark-3);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 1.5rem 0;
}

.topics-header {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 1.5rem;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.topic-item {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245,240,232,0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.topic-item::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.5rem;
}

.topics-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 13. AUTHOR INTRO (HOME)
   ============================================================ */
.author-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.author-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(212,175,55,0.1);
  flex-shrink: 0;
}

.author-intro-text h2 { margin-bottom: 0.2rem; }
.author-byline {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

/* 14. CTA BAND
   ============================================================ */
.cta-band {
  background: var(--dark);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { color: var(--off-white); margin-bottom: 0.75rem; }
.cta-band p  {
  color: rgba(245,240,232,0.6);
  font-size: 1.05rem;
  margin: 0 auto 2rem;
  max-width: 54ch;
}

/* 15. PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  background: var(--dark);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-inner  { position: relative; z-index: 1; }
.page-hero h1     { color: var(--off-white); margin-bottom: 0.75rem; }
.page-hero .lead  { color: rgba(245,240,232,0.6); max-width: 60ch; margin-bottom: 0; }

/* 16. SECTION VARIANTS
   ============================================================ */
.section-dark {
  background: var(--dark);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.section-dark .section-inner { position: relative; z-index: 1; }
.section-dark h2 { color: var(--off-white); }
.section-dark p  { color: rgba(245,240,232,0.7); }
.section-dark .lead { color: rgba(245,240,232,0.55); }

.section-warm { background: var(--off-white-2); }
.section-light { background: var(--off-white); }

/* 17. CHAPTER GRID
   ============================================================ */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.chapter-card {
  background: var(--off-white);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}
.chapter-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  min-width: 2.4rem;
  padding-top: 0.05rem;
}

.chapter-info h3 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--text-body); line-height: 1.3; }
.chapter-info p  { font-size: 0.82rem; color: var(--text-muted); margin: 0; max-width: none; line-height: 1.6; }

/* 18. STORY CARDS
   ============================================================ */
.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.story-card {
  background: var(--off-white);
  border: 1px solid var(--border-gold);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.story-card:hover { box-shadow: var(--shadow-gold); transform: translateY(-2px); }

.story-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.story-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.story-card p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; max-width: none; line-height: 1.65; }

/* 19. DIFFERENTIATORS (book page)
   ============================================================ */
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diff-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.diff-item:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }

.diff-icon {
  width: 44px;
  height: 44px;
  background: rgba(212,175,55,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid var(--border-gold);
}

.diff-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.diff-item p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; max-width: none; }

/* 20. BONUS SECTION
   ============================================================ */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.bonus-card {
  background: var(--dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--off-white);
}
.bonus-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--off-white); }
.bonus-card p  { font-size: 0.825rem; color: rgba(245,240,232,0.55); margin: 0; max-width: none; }

/* 21. GLOSSARY
   ============================================================ */
.glossary-search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.glossary-search {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
  outline: none;
  transition: var(--transition);
}
.glossary-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}
.glossary-search::placeholder { color: var(--text-muted); }

.glossary-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 0.75rem;
}

.glossary-item {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
}

.glossary-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  text-align: left;
  transition: var(--transition);
}
.glossary-trigger:hover    { background: rgba(212,175,55,0.05); color: var(--gold-dark); }
.glossary-trigger.open     { background: rgba(212,175,55,0.07); color: var(--gold-dark); }
.glossary-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: var(--radius); }

.glossary-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.glossary-trigger.open .glossary-chevron { transform: rotate(180deg); }

.glossary-body {
  display: none;
  padding: 0.875rem 1.1rem 1rem;
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.72;
  background: rgba(212,175,55,0.02);
  border-top: 1px solid var(--border-gold);
}
.glossary-body.open { display: block; }

.glossary-empty {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}
.glossary-empty.visible { display: block; }

/* 22. RULE OF 72 CALCULATOR
   ============================================================ */
.calc-section {
  background: var(--dark-2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 540px;
}

.calc-section h3 { color: var(--off-white); margin-bottom: 0.4rem; }
.calc-section .lead { color: rgba(245,240,232,0.55); margin-bottom: 1.75rem; font-size: 0.9rem; }

.calc-field {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(245,240,232,0.6);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--dark-3);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: var(--transition);
}
.calc-input:focus { border-color: var(--gold); }

.calc-suffix {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

.calc-result-box {
  background: rgba(212,175,55,0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.calc-result-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.calc-result-desc {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.5);
  max-width: 34ch;
  line-height: 1.5;
}

.calc-disclaimer {
  font-size: 0.76rem;
  color: rgba(245,240,232,0.3);
  line-height: 1.6;
  text-align: center;
}

/* 23. QUOTE BLOCKS
   ============================================================ */
.quote-block {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem 2.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(212,175,55,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.25rem;
}
.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -0.75rem;
  left: 0.5rem;
  font-family: Georgia, serif;
  font-size: 5.5rem;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
}
.quote-block p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 64ch;
  margin-bottom: 0.65rem;
}
.quote-attr {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.quote-feature-card {
  background: var(--dark-2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-feature-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 0.75rem;
  font-family: Georgia, serif;
  font-size: 9rem;
  color: var(--gold);
  opacity: 0.07;
  line-height: 1;
}
.quote-feature-card p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--off-white);
  max-width: 60ch;
  margin: 0 auto 1rem;
}
.quote-feature-card .quote-attr { color: var(--gold); }

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

/* 24. ABOUT PAGE
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4.5rem;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: 84px;
}

.about-photo {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(212,175,55,0.25);
  object-position: center top;
}

.about-photo-meta {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--dark-2);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
}
.about-photo-meta h4 { font-size: 1rem; color: var(--off-white); margin-bottom: 0.15rem; }
.about-photo-meta p  { font-size: 0.82rem; color: var(--gold); margin: 0; }

/* 25. CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }

.contact-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-item a {
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
  word-break: break-all;
  transition: var(--transition);
}
.contact-item a:hover { color: var(--gold-dark); }

/* 26. BOOK PAGE — 2-column summary layout
   ============================================================ */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 4rem;
  align-items: start;
}

.book-cover-sticky {
  position: sticky;
  top: 84px;
}
.book-cover-sticky img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.25rem;
}
.book-meta-card {
  background: var(--dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  font-size: 0.82rem;
}
.book-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-dark);
}
.book-meta-row:last-child { border-bottom: none; }
.book-meta-key   { color: rgba(245,240,232,0.45); }
.book-meta-value { color: var(--off-white); font-weight: 500; text-align: right; }

/* 27. FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 28. SKIP TO CONTENT (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 999;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* 29. FOCUS STYLES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 30. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-inner            { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-actions          { justify-content: center; }
  .hero-visual           { order: -1; }
  .cover-wrap            { max-width: 240px; margin: 0 auto; }
  .hero-tagline          { text-align: left; max-width: none; }
  .hook-layout           { grid-template-columns: 1fr; gap: 2.5rem; }
  .author-intro          { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .author-photo          { margin: 0 auto; width: 140px; height: 140px; }
  .book-layout           { grid-template-columns: 1fr; }
  .book-cover-sticky     { position: static; max-width: 200px; margin: 0 auto; }
  .book-cover-sticky img { max-width: 100%; }
  .about-layout          { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-wrap      { position: static; display: flex; flex-direction: column; align-items: center; }
  .about-photo           { max-width: 260px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-btn   { display: none; }
  .nav-toggle            { display: flex; }
  .footer-grid           { grid-template-columns: 1fr; gap: 2rem; }
  .footer-tagline        { max-width: none; }
  .footer-bottom         { flex-direction: column; }
  .section               { padding: 3.5rem 0; }
  .section-lg            { padding: 4.5rem 0; }
  .cta-band              { padding: 3.5rem 0; }
  .page-hero             { padding: 3.5rem 0 2.5rem; }
  .chapters-grid         { grid-template-columns: 1fr; }
  .story-cards           { grid-template-columns: 1fr; }
  .glossary-grid         { grid-template-columns: 1fr; }
  .calc-section          { max-width: none; padding: 1.75rem; }
  .quotes-grid           { grid-template-columns: 1fr; }
  .contact-grid          { grid-template-columns: 1fr; }
  .hero                  { min-height: auto; padding: 3.5rem 0 5rem; }
  .hero-title            { font-size: 2rem; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.55rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hook-number { font-size: 3rem; }
  .calc-result-num { font-size: 2.25rem; }
  .quote-feature-card { padding: 1.75rem 1.25rem; }
}
