/* ==========================================================================
   THE THIRD ROW: WHO ARE THESE OFFICERS ANYWAY?
   Official Memoir & Ebook Website Design System
   Aesthetic: Sophisticated Contemporary Literary Memoir
   Palette: Warm Paper, Deep Charcoal, Muted Railway Rust, Subtle Gray
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-paper: #fbf9f4;
  --bg-surface: #f4f0e6;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #ede8dc;
  
  --text-primary: #18191a;
  --text-secondary: #4a4946;
  --text-muted: #75726b;
  --text-light: #9e9a91;
  
  --accent-rust: #a83526;
  --accent-rust-hover: #8f2a1d;
  --accent-rust-subtle: rgba(168, 53, 38, 0.08);
  --accent-rust-border: rgba(168, 53, 38, 0.2);
  
  --border-light: #e4dfd3;
  --border-medium: #d4cebe;
  --border-dark: #2c2b29;
  
  --shadow-sm: 0 2px 8px rgba(24, 25, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 25, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(24, 25, 26, 0.12);
  --shadow-book: 0 22px 50px rgba(18, 19, 20, 0.28), 0 8px 18px rgba(18, 19, 20, 0.18);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout */
  --max-width-content: 1180px;
  --max-width-narrow: 780px;
  --max-width-editorial: 680px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-paper);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--accent-rust);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

p.lead {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.container-editorial {
  max-width: var(--max-width-editorial);
}

.section {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  position: relative;
}

/* Ornamental Section Dividers */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 53, 38, 0.25) 50%, transparent 100%);
  margin: 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.2rem);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-rust);
  margin-bottom: 0.85rem;
}

/* Subtle Fade-in Animation */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-rust);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast);
}

/* Primary & Secondary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #b33928 0%, #8c281b 100%);
  color: #ffffff;
  border: 1px solid #8c281b;
  box-shadow: 0 6px 20px rgba(168, 53, 38, 0.28), 0 2px 4px rgba(168, 53, 38, 0.15);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(25deg);
  transition: all 0.75s ease;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c03d2b 0%, #992c1e 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 53, 38, 0.38), 0 4px 8px rgba(168, 53, 38, 0.2);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: #ffffff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
}

/* HERO SECTION - ATMOSPHERIC LIGHTING */
.hero-section {
  padding-top: clamp(3.5rem, 6.5vw, 6rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  background: 
    radial-gradient(circle at 28% 45%, rgba(220, 150, 60, 0.14) 0%, rgba(168, 53, 38, 0.05) 38%, transparent 70%),
    linear-gradient(180deg, #fdfbf7 0%, #f4ede1 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 53, 38, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.hero-book-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-stage {
  perspective: 1400px;
  max-width: 390px;
  width: 100%;
  position: relative;
}

.book-3d {
  position: relative;
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg) rotateZ(-1deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  border-radius: 4px 10px 10px 4px;
  filter: drop-shadow(0 28px 45px rgba(20, 21, 22, 0.32)) drop-shadow(0 8px 18px rgba(168, 53, 38, 0.18));
}

.book-3d:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-6px) scale(1.02);
  filter: drop-shadow(0 34px 55px rgba(20, 21, 22, 0.38)) drop-shadow(0 12px 24px rgba(168, 53, 38, 0.24));
}

.book-3d img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
}

.book-shadow-glow {
  position: absolute;
  width: 85%;
  height: 50px;
  bottom: -22px;
  left: 8%;
  background: radial-gradient(ellipse at center, rgba(168, 53, 38, 0.25) 0%, rgba(20, 20, 20, 0.35) 30%, transparent 75%);
  filter: blur(10px);
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 196, 172, 0.6);
  color: var(--text-secondary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.badge-rust {
  background-color: rgba(168, 53, 38, 0.07);
  border-color: rgba(168, 53, 38, 0.28);
  color: var(--accent-rust);
}

.hero-title {
  margin-bottom: 0.25rem;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.08;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-rust);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-author-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-author-tag span {
  color: var(--text-muted);
  font-weight: 400;
}

.hero-synopsis-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.hero-trust-quote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  border-left: 2px solid var(--accent-rust);
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  background: linear-gradient(90deg, rgba(168, 53, 38, 0.04) 0%, transparent 100%);
}

.hero-pricing-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.85rem;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 196, 172, 0.7);
  border-radius: var(--radius-md);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-rust);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.price-context {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-bottom: 1.6rem;
}

.hero-delivery-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.delivery-perk {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* SECTION 2: THE HOOK (EDITORIAL FOLIO) */
.hook-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-paper) 100%);
}

.editorial-quote-banner {
  background-color: var(--bg-surface-elevated);
  border: 1px solid rgba(212, 196, 172, 0.6);
  border-left: 4px solid var(--accent-rust);
  padding: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.editorial-quote-banner::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 5.5rem;
  position: absolute;
  top: -1.2rem;
  left: 1.2rem;
  color: rgba(168, 53, 38, 0.12);
  line-height: 1;
  pointer-events: none;
}

.editorial-quote-banner p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.hook-body-text {
  font-size: 1.15rem;
  line-height: 1.9;
}

.hook-body-text p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 0.75rem;
  padding-top: 0.3rem;
  color: var(--accent-rust);
  font-weight: 700;
}

.hook-takeaway-box {
  margin-top: 3.5rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 240, 230, 0.8) 100%);
  border: 1px solid rgba(212, 196, 172, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hook-takeaway-question {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* SECTION 3: ABOUT THE STORY (TIMELINE) */
.about-book-section {
  background-color: var(--bg-surface);
}

.chronology-timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2.25rem;
  border-left: 2px solid rgba(168, 53, 38, 0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.7rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--accent-rust);
  box-shadow: 0 0 0 4px rgba(168, 53, 38, 0.12);
}

.timeline-phase {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-rust);
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* SECTION 4: EDITORIAL THEME CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.editorial-card {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(212, 196, 172, 0.6);
  border-top: 3px solid var(--accent-rust);
  border-radius: var(--radius-md);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.editorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(24, 25, 26, 0.1);
  border-color: rgba(168, 53, 38, 0.4);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-rust);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.card-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0;
  flex-grow: 1;
}

/* SECTION 5: WHO IS THIS BOOK FOR */
.audience-section {
  background-color: var(--bg-paper);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.audience-box {
  background-color: var(--bg-surface);
  border: 1px solid rgba(212, 196, 172, 0.7);
  border-radius: var(--radius-md);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.audience-icon {
  color: var(--accent-rust);
  flex-shrink: 0;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

/* SECTION 6: FREE SAMPLE SECTION */
.sample-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-paper) 100%);
}

.sample-teaser-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid rgba(212, 196, 172, 0.7);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 4rem);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.sample-teaser-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-rust) 0%, #d4963c 100%);
}

.sample-excerpt-preview {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.3vw, 1.4rem);
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 2.25rem;
  position: relative;
}

.sample-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg-surface-elevated) 90%);
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

/* SECTION 7: ABOUT THE AUTHOR (GALLERY PRESENTATION) */
.author-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.author-image-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(212, 196, 172, 0.8);
  border-radius: calc(var(--radius-md) + 4px);
  box-shadow: 0 16px 36px rgba(24, 25, 26, 0.12);
}

.author-image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.author-bio-content h3 {
  font-size: 2.35rem;
  margin-bottom: 0.35rem;
}

.author-subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-rust);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.author-bio-text {
  font-size: 1.08rem;
  line-height: 1.85;
}

/* SECTION 8: BOOK SPECIFICATIONS (LUXURY FOLIO) */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.75rem;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 196, 172, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.specs-table tr {
  border-bottom: 1px solid rgba(228, 223, 211, 0.8);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th {
  text-align: left;
  padding: 1.2rem 1.75rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  width: 32%;
  background-color: rgba(244, 240, 230, 0.6);
  border-right: 1px solid rgba(228, 223, 211, 0.8);
}

.specs-table td {
  padding: 1.2rem 1.75rem;
  font-size: 1.02rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* SECTION 9: SOCIAL PROOF / REVIEWS PLACEHOLDER */
.reviews-placeholder-box {
  background-color: var(--bg-surface-elevated);
  border: 1px dashed rgba(168, 53, 38, 0.35);
  border-radius: var(--radius-md);
  padding: 3.5rem 2.25rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.reviews-placeholder-box p {
  margin-bottom: 0.5rem;
}

/* SECTION 10: FAQ ACCORDION (AEO OPTIMIZED) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-surface-elevated);
  border: 1px solid rgba(212, 196, 172, 0.7);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(168, 53, 38, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
  border-color: var(--accent-rust);
  box-shadow: 0 8px 24px rgba(168, 53, 38, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.45rem 1.85rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  background: none;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition-smooth);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--accent-rust);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 1.85rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.65rem;
}

.faq-answer-inner {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* FINAL CTA SECTION (OBSIDIAN & GOLD) */
.final-cta-section {
  background: 
    radial-gradient(circle at 50% 30%, rgba(220, 150, 60, 0.12) 0%, rgba(168, 53, 38, 0.05) 45%, transparent 75%),
    linear-gradient(135deg, #1d1e20 0%, #121314 100%);
  color: #ffffff;
  padding: clamp(5.5rem, 9.5vw, 8.5rem) 0;
  text-align: center;
  position: relative;
  border-top: 1px solid #2d2e32;
}

.final-cta-section h2 {
  color: #ffffff;
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
  letter-spacing: -0.01em;
}

.final-cta-section p {
  color: #cfcbc3;
  max-width: 660px;
  margin: 0 auto 2.75rem;
  font-size: 1.18rem;
  line-height: 1.7;
}

/* FOOTER */
.site-footer {
  background-color: #121314;
  color: #9e9a91;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid #28292b;
  font-size: 0.9rem;
}

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

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #8c8982;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h5 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #9e9a91;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #242527;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
}

/* STICKY BOTTOM MOBILE CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(251, 249, 244, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
}

.sticky-mobile-info {
  display: flex;
  flex-direction: column;
}

.sticky-mobile-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
}

.sticky-mobile-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-rust);
}

/* MODALS & OVERLAYS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 19, 20, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-paper);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(10px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--border-medium);
  color: var(--text-primary);
}

/* CHECKOUT FORM */
.checkout-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.checkout-header h3 {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.checkout-summary-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-rust);
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 53, 38, 0.12);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.payment-option-btn {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.payment-option-btn.active, .payment-option-btn:hover {
  border-color: var(--accent-rust);
  background-color: #ffffff;
  color: var(--accent-rust);
}

/* UPI QR & Quick Pay UI */
.upi-qr-box {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.upi-app-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.upi-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* SAMPLE READER DRAWER / FULLPAGE */
.reader-modal {
  position: fixed;
  inset: 0;
  background-color: var(--bg-paper);
  z-index: 300;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth), background-color var(--transition-smooth);
}

.reader-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Reader Themes */
.reader-modal.theme-sepia {
  background-color: #f7eedb;
  color: #3b3223;
}
.reader-modal.theme-sepia .reader-article p,
.reader-modal.theme-sepia .reader-article h2 {
  color: #3b3223;
}
.reader-modal.theme-sepia .reader-topbar,
.reader-modal.theme-sepia .reader-footer-cta {
  background-color: #ede2cd;
  border-color: #dbcbb0;
}

.reader-modal.theme-dark {
  background-color: #161719;
  color: #d1cdc7;
}
.reader-modal.theme-dark .reader-article p {
  color: #cfcbc4;
}
.reader-modal.theme-dark .reader-article h2 {
  color: #ffffff;
}
.reader-modal.theme-dark .reader-topbar,
.reader-modal.theme-dark .reader-footer-cta {
  background-color: #1e1f22;
  border-color: #2b2c30;
}
.reader-modal.theme-dark .modal-close {
  background-color: #2b2c30;
  color: #ffffff;
}

.reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-pill-btn {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface-elevated);
}

.theme-pill-btn.active {
  border-color: var(--accent-rust);
  color: var(--accent-rust);
}

.reader-content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1.5rem;
}

.reader-article {
  max-width: var(--max-width-editorial);
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.95;
  color: var(--text-primary);
}

.reader-article p {
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.reader-article h2 {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.reader-article .chapter-subtitle {
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.reader-footer-cta {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  text-align: center;
}

/* TABLE OF CONTENTS MODAL */
.toc-list-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.toc-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.95rem;
}

.toc-item-row.is-interlude {
  color: var(--text-muted);
  font-style: italic;
  padding-left: 1rem;
}

.toc-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toc-item-row.is-interlude .toc-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent-rust);
}

/* Comprehensive Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-book-wrap {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .book-stage {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-meta-badges, .hero-author-tag, .hero-pricing-box, .hero-cta-group, .hero-delivery-perks {
    justify-content: center;
  }
  
  .hero-trust-quote {
    border-left: none;
    border-top: 2px solid var(--accent-rust);
    border-bottom: 2px solid var(--accent-rust);
    padding: 1rem 0;
  }
  
  .author-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .author-image-wrap {
    max-width: 260px;
    margin: 0 auto;
  }
  
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    height: 3.85rem;
    gap: 0.75rem;
  }

  .btn-toc-trigger {
    display: none !important;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .nav-actions .btn-buy-trigger {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .brand-logo {
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-title {
    font-size: 1.15rem;
    white-space: nowrap;
  }

  .brand-subtitle {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sticky-mobile-cta {
    display: flex;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .sample-actions {
    flex-direction: column;
    text-align: center;
  }

  .sample-actions .btn {
    width: 100%;
  }

  .specs-table th {
    width: 40%;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
  }

  .specs-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  /* Prevent any horizontal overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1rem;
  }

  /* Header adjustments for small mobile */
  .nav-inner {
    padding: 0;
  }

  .nav-actions .btn-toc-trigger {
    display: none;
  }

  .nav-actions .btn-buy-trigger {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    display: none;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .book-stage {
    max-width: 220px;
    perspective: 800px;
  }

  .book-3d {
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    filter: drop-shadow(0 16px 28px rgba(20, 21, 22, 0.28));
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .hero-synopsis-lead {
    font-size: 1.02rem;
  }

  .hero-pricing-box {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .price-amount {
    font-size: 2.3rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.95rem 1.25rem;
  }

  .hero-delivery-perks {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
  }

  /* Cards & Sections */
  .editorial-card {
    padding: 1.75rem 1.25rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .audience-box {
    padding: 1.75rem 1.25rem;
  }

  .editorial-quote-banner {
    padding: 1.5rem 1.25rem;
  }

  .editorial-quote-banner p {
    font-size: 1.2rem;
  }

  .sample-teaser-card {
    padding: 1.75rem 1.25rem;
  }

  /* Modals on Mobile */
  .modal-dialog {
    width: 95%;
    max-height: 90vh;
    padding: 1.5rem 1.25rem;
    margin: 1rem auto;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
  }

  .checkout-summary-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

