/* ==========================================================================
   Breakthrough Author Live — Landing Page Styles
   Design language: navy + cream + gold, serif display headlines, clean sans body.
   Mobile-first: base styles target phones, larger breakpoints layer on top.
   ========================================================================== */

:root {
  --navy-900: #161c30;
  --navy-800: #1e253f;
  --navy-700: #262f4d;
  --navy-card: #232c4a;
  --cream: #f8f6f0;
  --cream-card: #ffffff;
  --gold: #c4ad59;
  --gold-dark: #a98d3d;
  --gold-light: #e7d8a4;
  --ink: #1c2333;
  --ink-soft: #4a5064;
  --gray-on-navy: #aab1c9;
  --red: #b3563f;
  --green: #3f7d52;
  --avatar-bg: #ece7d9;
  --avatar-icon: #9a9382;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(22, 28, 48, 0.12);
  --shadow-btn: 0 8px 22px rgba(196, 173, 89, 0.35);
  --max-width: 1080px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* ==========================================================================
   Dark mode — toggled via [data-theme="dark"] on <html>, saved to
   localStorage ("bal-theme") by script.js. Default (no attribute) stays the
   original navy/cream/gold look. Gold CTA buttons (--gold / --navy-900 text)
   are intentionally left unchanged in both modes.
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  /* what was "cream" (light section bg + white cards) becomes dark surfaces */
  --cream: #12162a;
  --cream-card: #232c4a;
  /* text that used to sit on light backgrounds needs to read on dark ones now */
  --ink: #f4f1e8;
  --ink-soft: #b7bdd1;
  /* gold-dark was tuned for contrast on light backgrounds; brighten it for dark cards */
  --gold-dark: #ddc785;
  /* green checkmarks need more punch against dark cards */
  --green: #6fbf87;
  --avatar-bg: #2a3152;
  --avatar-icon: #9aa2c2;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body, .section, .familiar-list li, .case-card, .week-card, .faq-item,
.avatar-ring, .theme-toggle {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow { max-width: 760px; }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gold-strong { color: var(--gold-dark); font-weight: 700; }
.text-red { color: var(--red); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
}
.section-navy {
  background: var(--navy-800);
  color: #fff;
}
.section-cream {
  background: var(--cream);
  color: var(--ink);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 28px;
}
.section-navy .section-title { color: #fff; }

.body-copy {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.body-copy strong { color: var(--ink); }
.body-copy-light {
  font-size: 1.02rem;
  color: var(--gray-on-navy);
  margin: 0 0 14px;
}
.body-copy-light strong { color: #fff; }

.closing-line {
  font-size: 1.15rem;
  margin: 28px 0;
}
.section-navy .closing-line { color: #fff; }

/* Blurred glow accents (avoids radial-gradient rendering issues, portable & premium) */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-gold {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: rgba(196, 173, 89, 0.28);
}
.hero-inner, .final-cta .wrap { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 28, 48, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--gold); font-style: italic; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta {
  display: none;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.theme-toggle:active { transform: translateY(0); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-btn);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(196, 173, 89, 0.45); }
.btn-gold:active { transform: translateY(0); }
.btn-large {
  width: 100%;
  padding: 18px 24px;
  font-size: 1rem;
  text-transform: uppercase;
}
.btn-small {
  padding: 10px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.cta-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.cta-row .btn { max-width: 420px; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 56px; }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1.18;
  text-align: center;
  color: #fff;
  margin: 0 0 18px;
}
.hero-subhead {
  text-align: center;
  color: var(--gray-on-navy);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

.video-frame {
  position: relative;
  background: #0b0e1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.play-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(196, 173, 89, 0.15);
  cursor: pointer;
}
.video-caption { color: var(--gray-on-navy); font-size: 0.95rem; }
.video-note { color: rgba(170,177,201,0.6); font-size: 0.78rem; }

.micro-note {
  text-align: center;
  color: var(--gray-on-navy);
  font-size: 0.85rem;
  font-style: italic;
  margin: 12px 0 0;
}
.section-cream .micro-note { color: var(--ink-soft); }

.trust-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 12px;
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
}
.trust-logos-dark { margin: 30px 0 0; }
.trust-text {
  color: var(--gray-on-navy);
  font-size: 0.85rem;
}
.trust-text .dot { margin: 0 8px; }

/* ---------- Sound Familiar ---------- */
.familiar-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.familiar-list li {
  background: var(--cream-card);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  gap: 12px;
}
.familiar-list .dash { color: var(--gold-dark); font-weight: 700; }

/* ---------- About / stats ---------- */
.photo-frame {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
}
.photo-frame span { font-size: 0.85rem; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0;
}
.stat-card {
  background: var(--navy-card);
  border-radius: var(--radius-md);
  padding: 22px 12px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-on-navy);
  margin-top: 6px;
}

/* ---------- Case studies ---------- */
.case-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 26px;
  text-align: center;
}
.avatar-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--avatar-bg);
  color: var(--avatar-icon);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.case-desc {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.case-results {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-results li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.case-results .check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-dark);
  margin: 20px 0 0;
  font-size: 1.05rem;
}

/* ---------- Why books fail ---------- */
.fail-block {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fail-block:last-of-type { border-bottom: none; }
.x-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(179, 86, 63, 0.18);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.fail-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  margin: 4px 0 10px;
}

/* ---------- Week cards ---------- */
.week-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.week-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.week-visual {
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.week-body { padding: 24px 26px 28px; }
.week-label {
  display: block;
  color: var(--gold-dark);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.week-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.week-desc {
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.week-value {
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0;
}

/* ---------- Bonus stack ---------- */
.bonus-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bonus-item {
  display: flex;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bonus-item:last-child { border-bottom: none; }
.bonus-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bonus-title { color: #fff; font-size: 1.1rem; margin: 0 0 8px; }
.bonus-desc { color: var(--gray-on-navy); margin: 0 0 10px; }
.bonus-value {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.total-value-box {
  margin: 32px 0 0;
  text-align: center;
  padding: 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  background: rgba(196, 173, 89, 0.08);
  font-size: 1.1rem;
  color: #fff;
}
.total-value-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin-top: 4px;
}

/* ---------- Pricing ---------- */
.price-card {
  margin-top: 36px;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--gold);
}
.price-old {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gray-on-navy);
  text-decoration: line-through;
}
.price-new {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
}
.coupon-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin-bottom: 22px;
}
.coupon-label { color: var(--gray-on-navy); font-size: 0.8rem; }
.coupon-code {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.guarantee {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray-on-navy);
  font-size: 0.92rem;
}
.guarantee svg { color: var(--gold); }

/* ---------- Who for / not for ---------- */
.for-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.for-card {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.for-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 16px;
}
.for-card ul { margin: 0; padding-left: 20px; }
.for-card li { margin-bottom: 10px; color: inherit; }
.for-yes { background: rgba(63, 125, 82, 0.14); border: 1px solid rgba(63,125,82,0.4); }
.for-no { background: rgba(179, 86, 63, 0.14); border: 1px solid rgba(179,86,63,0.4); }
.for-yes, .for-no { color: #eef1e9; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  color: var(--gold-dark);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); margin: 0 0 18px; }

/* ---------- Final CTA ---------- */
.final-cta { padding-top: 72px; padding-bottom: 72px; }
.final-line { font-size: 1.1rem; color: var(--gray-on-navy); margin: 0 0 14px; }
.final-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #fff;
  margin: 28px 0 32px;
}
.signature {
  margin-top: 28px;
  font-style: italic;
  color: var(--gray-on-navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-on-navy);
  padding: 24px 0 100px;
  font-size: 0.82rem;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(22, 28, 48, 0.97);
  backdrop-filter: blur(6px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(120%);
  transition: transform 0.25s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { max-width: 100%; }

/* ==========================================================================
   Responsive — tablet and up
   ========================================================================== */
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-row .btn, .btn-large { width: auto; min-width: 320px; }
  .for-grid { flex-direction: row; }
  .for-card { flex: 1; }
}

@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .case-grid { flex-direction: row; }
  .case-card { flex: 1; }
  .week-grid { flex-direction: row; flex-wrap: wrap; }
  .week-card { flex: 1 1 calc(50% - 12px); }
  .header-cta { display: inline-block; }
  .sticky-cta { display: none; }
  .hero { padding-top: 80px; }
}

@media (min-width: 1100px) {
  .week-card { flex: 1 1 calc(25% - 18px); }
}
