/* =========================
   BOOK PAGE ROOT
========================= */

:root {
  --book-navy: #071a3a;
  --book-blue: #1a56db;
  --book-gold: #FF9900;
  --book-cream: #fffdf5;
  --book-ink: #172033;
}

/* =========================
   GLOBAL BOOK STYLING
========================= */

#book-page {
  background: #ffffff;
}

.book-section-title {
  color: var(--book-ink);
}

.gold-rule {
  width: 120px;
  height: 5px;
  background: var(--book-gold);
  border-radius: 999px;
  margin-bottom: 24px;
}

/* =========================
   HERO SECTION
========================= */

.book-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(197, 165, 90, 0.15), transparent),
    linear-gradient(105deg, #071a3a 0%, #09163a 100%);
}

.book-serif {
  font-family: 'Playfair Display', serif;
}

.book-label {
  letter-spacing: 0.1em;
  color: var(--book-gold);
}

/* hero artwork */
.book-artwork {
  text-align: center;
  align-items: center;
  width: min(420px, 90%);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.book-artwork video {
  width: 100%;
  display: block;
}

/* Amazon CTA */
.amazon-primary-btn {
  position: relative;
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FF9900;
  color: #111827;
  font-weight: 700;
  text-align: center;
  padding: 20px 48px;
  border-radius: 12px;
  font-size: 20px;
  line-height: 1.1;
  box-shadow:0 18px 45px rgba(255, 153, 0, 0.35);
  transition: all 0.3s ease;
  overflow: hidden;
  animation: amazonPulse 2s infinite;
}

.amazon-primary-btn small {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  opacity: 0.85;
}

.amazon-primary-btn-last-cta {
  padding: 25px 52px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.amazon-primary-btn-last-cta small {
  font-size: 0.9rem;
  font-weight: 500;
}

.amazon-primary-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 60px rgba(255, 153, 0, 0.45);
}

/* hardback card */
  .hardback-cover-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  width: min(420px, 86vw);
  margin: 18px auto 0;
  padding: 10px 20px;
  border: 2px solid rgba(203, 157, 48, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.hardback-cover-card img {
  width: 96px;
  height: 70px;
  border-radius: 5px;
  object-fit: cover;
}

.hardback-cover-card span {
  color: #f7e9bd;
  font-weight: 500;
}

.hardback-cover-card strong {
  display: block;
  color: white;
  margin-bottom: 2px;
} 

/* =========================
   BUTTONS
========================= */

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.book-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.book-button-primary {
  background: var(--book-gold);
  color: #111;
}

.book-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
}

.book-button-blue {
  background: linear-gradient(135deg, var(--book-blue), #3b82f6);
  color: white;
}


/* =========================
   PATTERN SECTION
========================= */

.patterned-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 165, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 165, 90, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
}

/* =========================
   QUOTE CARDS
========================= */

.quote-card {
  background: white;
  border-left: 4px solid var(--book-gold);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* =========================
   BOOK PAGE (REAL LOOK)
========================= */

.extract-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

/* MAIN PAGE */
.extract-page {
  position: relative;
  max-width: 800px;
  width: 100%;
  max-height: clamp(420px, 70vh, 520px);
  overflow-y: scroll;
  background: #fffdf7;
  padding: 40px 60px 100px;
  border-radius: 4px;
  /* realistic book shadow */
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.15),
    0 5px 10px rgba(0, 0, 0, 0.05);
  /* typography */
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.95;
  color: #2a2a2a;
  /* subtle page border */
  border: 1px solid #f1e7d0;
}

/* INNER PAGE EDGE EFFECT */
.extract-page::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 1000px;
  /* inner shadow = paper depth */
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

/* LEFT PAGE MARGIN (BOOK STYLE) */
.extract-page::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 1px;
  height: 1000px;
  background: rgba(0, 0, 0, 0.08);
}

/* PARAGRAPHS */
.extract-page p {
  margin-bottom: 18px;
  text-align: justify;
  line-height: 1.5rem;
}

/* FIRST PARAGRAPH SLIGHTLY STRONGER */
.extract-page p:first-of-type {
  font-size: 19px;
}

/* HEADER LABEL */
.extract-page .text-sm {
  font-family: system-ui, sans-serif;
  letter-spacing: 0.25em;
}

/* FADE OUT EFFECT (LIKE CUT PAGE) */
.extract-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  text-align: center;
  background: linear-gradient(to bottom,
      rgba(255, 253, 247, 0),
      rgba(255, 253, 247, 0.95),
      rgba(255, 253, 247, 1));
}

.extract-page {
  background-image:
    linear-gradient(#fffdf7, #fffdf7),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* =========================
   CHAPTERS (ACCORDION)
========================= */

.chapter-card {
  transition: all 0.25s ease;
}

.chapter-card:hover {
  transform: translateY(-3px);
}

.chapter-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.chapter-card.active .chapter-content {
  max-height: 300px;
  opacity: 1;
  padding: 6px 10px;
}

.chapter-arrow {
  transition: transform 0.3s ease;
}

.chapter-card.active .chapter-arrow {
  transform: rotate(180deg);
}

/* =========================
   VIDEO SECTION
========================= */

.video-placeholder {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

#playBtn {
  transition: all 0.3s ease;
}

#playBtn:hover {
  transform: scale(1.1);
}

/* =========================
   AUTHOR SECTION
========================= */

.purchase-artwork img {
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* =========================
   FAQ
========================= */

.faq-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* =========================
   DARK CTA
========================= */

.dark-purchase {
  background: linear-gradient(135deg, #071a3a, #020c3d);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .book-hero {
    min-height: auto;
    padding: 50px 0;
  }

  .extract-page {
    padding: 40px 40px 120px;
  }
  /* INNER PAGE EDGE EFFECT */
.extract-page::before {
  height: 1600px;
}

/* LEFT PAGE MARGIN (BOOK STYLE) */
.extract-page::after {
  height: 1600px;
}
}

.extract-wrap {
  position: relative;
}

.extract-page {
  scrollbar-width: thin;
  scrollbar-color: #FF9900 transparent;
}

.extract-page::-webkit-scrollbar {
  width: 7px;
}

.extract-page::-webkit-scrollbar-thumb {
  background: #FF9900;
  border-radius: 999px;
}

.extract-page::-webkit-scrollbar-track {
  background: transparent;
}

/* As Featured In */

.featured-label {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: #737373;
  font-weight: 500;
  margin-bottom: 48px;
}

.featured-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 56px;
}

.logo-link {
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: translateY(-3px);
}

.featured-logo {
  height: 38px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.featured-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (min-width: 768px) {
  .featured-logo {
    height: 46px;
  }
}
