/* ================================================================
   transcendence-ebook.css
   Ebook LP + ebook TY page overrides and additions.
   Loaded AFTER transcendence-base.css.

   Used by: all 3 ebook LPs + all 3 ebook TY pages (6 total).
   ================================================================ */

/* ── Body override (ebook pages use cream background) ─────────── */
body { background: var(--cream); }

/* ── Container (ebook LP uses slightly wider max-width) ───────── */
.container { max-width: 1120px; }

/* ── Wordmark (text-based nav logo on ebook pages) ───────────── */
.wordmark {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .04em;
}
.wordmark span { color: var(--mint); }
.nav-cta { display: flex; align-items: center; gap: 16px; }

/* Countdown chip: show on desktop on ebook pages */
@media (min-width: 720px) {
  .countdown-chip { display: inline-flex; align-items: center; gap: 6px; }
}

/* ── Hero overrides ───────────────────────────────────────────── */
/* Ebook LP hero has less top padding (nav always visible at scroll-start) */
.hero { padding: 22px 24px 0; }

/* Smaller headline for ebook LP — copy is more verbose than main LP */
.hero-headline {
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.18;
  max-width: 640px;
  margin: 0 auto 14px;
}
/* Italic emphasis within ebook LP headline */
.hero-headline em { color: #fff; font-style: italic; font-weight: 800; }

/* Ebook hero eyebrow (lighter green on dark bg) */
.hero .eyebrow { color: #8fe6cd; }

/* Smaller logo lockup on ebook LP */
.t-logo { width: min(80vw, 340px); }
.brand-lockup { margin-bottom: 18px; }

/* Byline parent */
.byline { margin-top: 8px; font-size: clamp(13px, 2.6vw, 19px); letter-spacing: .02em; }

/* ── Ebook hero art ───────────────────────────────────────────── */
/* --ebook-cover is set inline per page; transcendence-ebook.js also applies it via JS */
.hero-ebook-art {
  width: 160px;
  aspect-ratio: 1 / 2;
  margin: 0 auto 22px;
  background-image: var(--ebook-cover);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .4));
}

/* ── Hero subtext ─────────────────────────────────────────────── */
.hero-subtext {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255, 255, 255, .75);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.55;
}
.hero-subtext em { font-style: italic; color: rgba(255, 255, 255, .9); }

/* ── Hero form override (white inputs on ebook LP) ────────────── */
/* Main LP uses dark glass inputs; ebook LP uses white (better on cream-bg pages) */
.hero-form { margin: 0 auto 12px; }
.hero-form input {
  background: #fff;
  color: #1c1f26;
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.hero-form input::placeholder { color: #7c8291; }
.hero-form input:focus { outline: 2px solid var(--mint); background: #fff; }

/* ── Microcopy margin (ebook LP is tighter) ───────────────────── */
.microcopy { margin-bottom: 20px; }

/* ── Date badge margin (ebook LP is tighter) ──────────────────── */
.date-badge { margin-bottom: 18px; }

/* ── Avatar slider in #bonus-intro (ebook LPs) ────────────────────────── */
/* On the main LP the avatar slider lives inside .hero, picking up the
   .hero .avatar-track override (120px).  On ebook LPs the slider lives in
   #bonus-intro (outside .hero), so base sizing (64px) applies instead.
   Replicate the main-LP hero-slider values here, scoped to ebook LPs only. */
#bonus-intro .avatar-track { gap: 34px; }
#bonus-intro .avatar-track .avatar { width: 120px; height: 120px; border: none; }
#bonus-intro .avatar-track .avatar-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-top: 14px;
  max-width: 130px;
  letter-spacing: 0;
}

/* ── Section ID spacing ───────────────────────────────────────── */
#whats-inside    { padding-top: 48px; }
#benefits        { padding-top: 40px; }
#ebook-bonus     { padding-top: 40px; padding-bottom: 32px; }
#episodes        { padding-top: 32px; }
#host            { padding-top: 36px; }
.experts-wrap    { padding-top: 36px; }

/* ── "What's Inside" section ─────────────────────────────────── */
.inside-grid {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.recipe-pill {
  display: inline-block;
  background: rgba(32, 195, 154, .12);
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-top: 8px;
}
.inside-subhead {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* Habit / ritual list */
.ritual-list { list-style: none; text-align: left; }
.ritual-list li { display: flex; gap: 14px; margin-bottom: 18px; }
.ritual-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(32, 195, 154, .12);
  color: var(--mint-dark);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.ritual-list b  { display: block; font-size: 15px; margin-bottom: 2px; }
.ritual-list span { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.ritual-cta-hint { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-top: 4px; }

/* Recipe cards (10 Gut-Loving Foods ebook) */
.recipe-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.recipe-card b    { display: block; font-size: 14.5px; margin-bottom: 3px; }
.recipe-card span { display: block; font-size: 13px; color: var(--ink-soft); }

/* ── Bonus-intro dark section ─────────────────────────────────── */
#bonus-intro {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy-mid));
  padding: 56px 0 40px;
}
#bonus-intro .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#bonus-intro em { font-style: italic; color: #fff; }

/* ── Exit-intent popup ────────────────────────────────────────── */
/* Triggered by transcendence-ebook.js on mouse-leave-to-top-edge */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.exit-popup.show {
  opacity: 1;
  visibility: visible;
}
.exit-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 17, .72);
  backdrop-filter: blur(2px);
}
.exit-popup-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  max-width: 360px;
  width: 100%;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4);
  transform: translateY(12px) scale(.97);
  transition: transform .25s ease;
}
.exit-popup.show .exit-popup-card { transform: translateY(0) scale(1); }
.exit-popup-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #9aa0ab;
  cursor: pointer;
  padding: 4px;
}
.exit-popup-art {
  position: relative;
  width: 150px;
  margin: 0 auto 22px;
}
/* --ebook-cover set inline per page; also applied by transcendence-ebook.js */
.exit-popup-ebook {
  width: 150px;
  aspect-ratio: 1 / 2;
  background-image: var(--ebook-cover);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}
.exit-popup-badge {
  position: absolute;
  top: -6px; right: -38px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--highlight);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 20px -6px rgba(249, 108, 108, .6);
  transform: rotate(8deg);
}
.exit-popup-card h3 { font-size: 21px; line-height: 1.3; margin-bottom: 18px; }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT EXPERIMENT — not committed
   Rec 1: Clean white hero (replaces Transcendence cinematic bg)
   Rec 3: Ebook cover as dominant visual, mobile-first
   ══════════════════════════════════════════════════════════════════ */

/* Rec 1 — strip background imagery, stars, mountains */
.hero {
  background-image: none !important;
  background-color: #fff;
  color: var(--ink);
  padding-bottom: 32px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 350px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #e4f2eb;
}
@media (min-width: 720px) {
  .hero { background-image: none !important; }
}
.stars, .mountains { display: none; }

/* Text colours adjusted for light background */
.hero-headline        { color: var(--ink); text-shadow: none; font-size: clamp(22px, 4.6vw, 28px); }
.hero-headline em     { color: var(--forest); }
.hero-headline .hl    { color: var(--forest); }   /* TY pages use .hl span; base.css sets #fff */
.hero-subtext         { color: var(--ink-soft); }
.hero-subtext em      { color: var(--ink-soft); }
.hero-subtext a       { color: var(--forest); }
.microcopy            { color: var(--ink-soft); }

/* Rec 3 — Mobile: flex column, cover first and larger */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-ebook-art {
  order: -1;
  width: min(190px, 50vw);
  aspect-ratio: 1 / 2;
  margin: 8px auto 24px;
  filter: none;
}
.hero-form { width: 100%; max-width: none; }

/* Rec 3 — Desktop: 2-column grid — cover left, content right */
@media (min-width: 720px) {
  .hero { padding: 28px 24px; }

  .hero-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 56px;
    align-items: center;
    max-width: 860px;
    text-align: left;
  }

  .hero-ebook-art  { grid-column: 1; grid-row: 1 / span 4; order: 0; width: 100%; margin: 0; align-self: center; }
  .hero-headline   { grid-column: 2; grid-row: 1; text-align: left; margin-bottom: 12px; }
  .hero-subtext    { grid-column: 2; grid-row: 2; margin: 0 0 20px; text-align: left; max-width: none; }
  .hero-form       { grid-column: 2; grid-row: 3; margin: 0 0 8px; }
  .microcopy       { grid-column: 2; grid-row: 4; text-align: left; margin-bottom: 0; }
}
