/* =========================================================
   Breakthrough Author Live — landing page styles
   Mobile-first. Dark navy + warm cream + muted gold system.
   ========================================================= */

:root {
  --navy: #0f1a2e;

  --cream: #faf5ea;
  --cream-card: #ffffff;
  --cream-border: #e7dcc6;
  --ink: #1c2333;
  --ink-muted: #5b6478;

  --gold: #d9b34d;
  --gold-dark: #b6902f;
  --gold-text: #241a05;

  --danger: #c0392b;
  --success: #2f7a4f;

  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 760px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---- Theme-aware tokens (dark theme is the default) ----
     These drive every section that was originally "navy": the
     sticky header/footer, hero, and the alternating dark sections.
     The light theme below swaps them for light, navy-tinted
     surfaces so the same rules render a second, equally premium
     theme without touching component styles. */
  --surface-strong: #0f1a2e;
  --surface-strong-card: #182749;
  --surface-strong-border: #2a3c66;
  --on-strong: #eef1f8;
  --on-strong-muted: #b9c2da;
  --heading-strong: #ffffff;
  --gold-on-strong: #d9b34d;
  --good-bg: rgba(47, 122, 79, 0.2);
  --good-fg: #5fce8d;
  --bad-bg: rgba(192, 57, 43, 0.2);
  --bad-fg: #ef8579;
}

/* Light theme: same cream/navy/gold system, but the "strong" surfaces
   (previously always dark navy) become light, navy-tinted panels with
   dark ink text, so contrast stays strong throughout. */
html[data-theme="light"] {
  --surface-strong: #eef1f8;
  --surface-strong-card: #ffffff;
  --surface-strong-border: #d7deef;
  --on-strong: #1c2333;
  --on-strong-muted: #4b5470;
  --heading-strong: #10182b;
  --gold-on-strong: #7a5c15;
  --good-bg: rgba(47, 122, 79, 0.14);
  --good-fg: #1f7a4d;
  --bad-bg: rgba(192, 57, 43, 0.14);
  --bad-fg: #a3271b;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark light;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

.section-dark,
.site-header,
.site-footer,
.pill,
.avatar,
.stat-box,
.for-col {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 14px; }

ul { padding-left: 0; margin: 0; list-style: none; }

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.center { text-align: center; }

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-dark {
  background: var(--surface-strong);
  color: var(--on-strong);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--heading-strong);
}

.section-light {
  background: var(--cream);
  color: var(--ink);
}

/* ---------- Sticky header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--surface-strong-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--heading-strong);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--surface-strong-border);
  background: transparent;
  color: var(--heading-strong);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--gold-dark);
  background: rgba(217, 179, 77, 0.15);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: none; }

html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-gold {
  background: linear-gradient(180deg, #e8c766, var(--gold) 60%, var(--gold-dark));
  color: var(--gold-text);
  box-shadow: 0 6px 18px rgba(182, 144, 47, 0.35);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(182, 144, 47, 0.45);
}

.btn-large {
  padding: 16px 28px;
  font-size: 1.05rem;
  width: 100%;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cta-wrap {
  text-align: center;
  margin-top: 32px;
}

.cta-wrap .btn {
  padding: 16px 28px;
  font-size: 1.05rem;
  width: 100%;
}

@media (min-width: 480px) {
  .cta-wrap .btn,
  .btn-large { width: auto; min-width: 300px; }
}

/* ---------- Hero ---------- */

.hero { text-align: center; padding-top: 40px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-on-strong);
  margin-bottom: 14px;
}

.hero h1 { color: var(--heading-strong); margin-bottom: 18px; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.pill {
  background: var(--surface-strong-card);
  border: 1px solid var(--surface-strong-border);
  color: var(--on-strong-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Fixed dark "screen" look in both themes — it represents a video
     player, not a themed page surface. */
  background: linear-gradient(160deg, #1c2c4d, #101a30);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  overflow: hidden;
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.play-btn svg { margin-left: 3px; }

.video-label {
  /* Sits on the fixed dark screen mockup above, not the section
     background, so it stays a fixed light color in both themes. */
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 600;
}

.video-placeholder.video-hint .video-label::after {
  content: " (video not attached yet)";
  color: var(--gold);
}

.trust-bar { margin-top: 28px; }

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.logo-word {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--on-strong-muted);
  opacity: 0.85;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-on-strong);
}

/* ---------- Sound familiar ---------- */

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-border);
  font-size: 1rem;
}

.check-list li:last-child { border-bottom: none; }

.check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.closing-line {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 24px;
}

/* ---------- Avatars ---------- */

.avatar {
  border-radius: 50%;
  background: var(--surface-strong-card);
  color: var(--gold);
  border: 1px solid var(--surface-strong-border);
  overflow: hidden;
  margin: 0 auto 18px;
  padding: 10px;
}

.section-light .avatar {
  background: var(--cream-card);
  border-color: var(--cream-border);
  box-shadow: 0 2px 10px rgba(28,35,51,0.06);
}

.avatar-lg { width: 96px; height: 96px; }
.avatar-md { width: 76px; height: 76px; }

/* ---------- About stats ---------- */

.prose { max-width: 620px; margin: 0 auto; }
.section-dark .prose p { color: var(--on-strong-muted); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.stat-box {
  background: var(--surface-strong-card);
  border: 1px solid var(--surface-strong-border);
  border-radius: var(--radius-sm);
  padding: 18px 10px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-on-strong);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--on-strong-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- Case studies ---------- */

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.case-card {
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(28,35,51,0.06);
}

.case-desc {
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.result-list { text-align: left; margin: 0 auto 14px; max-width: 360px; }

.result-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.95rem;
}

.result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.case-quote {
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Why fail ---------- */

.fail-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-strong-border);
}

.fail-block:last-of-type { border-bottom: none; }

.x-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.15);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.fail-block p { color: var(--on-strong-muted); }

/* ---------- Week breakdown ---------- */

.week-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}

.week-card {
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 4px 18px rgba(28,35,51,0.06);
}

.week-num {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-dark);
  background: rgba(217, 179, 77, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.value-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
}

/* ---------- Bonus stack ---------- */

.bonus-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-strong-border);
}

.bonus-list li:last-child { border-bottom: none; }

.bonus-text p { color: var(--on-strong-muted); margin-bottom: 6px; }

.bonus-list .value-tag { color: var(--gold-on-strong); }

.total-value {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 20px;
}

.total-value strong { color: var(--gold-on-strong); }

/* ---------- Pricing ---------- */

.price-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 20px;
  text-align: center;
}

.price-old {
  font-size: 1.3rem;
  text-decoration: line-through;
  color: var(--ink-muted);
}

.price-arrow { color: var(--ink-muted); }

.coupon-tag {
  border: 2px dashed var(--gold-dark);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 8px;
}

.price-new {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
}

.guarantee-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 8px;
}

.guarantee-badge svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.guarantee-badge p { margin: 0; font-size: 0.92rem; }

/* ---------- Who is this for ---------- */

.for-not-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.for-col {
  background: var(--surface-strong-card);
  border: 1px solid var(--surface-strong-border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.for-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.for-col ul { margin-top: 12px; }

.for-col li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--on-strong-muted);
  font-size: 0.95rem;
}

.for-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--on-strong-muted);
}

.emoji-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.emoji-icon.good { background: var(--good-bg); color: var(--good-fg); }
.emoji-icon.bad { background: var(--bad-bg); color: var(--bad-fg); }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 28px; }

.faq-item {
  border-bottom: 1px solid var(--cream-border);
}

.faq-item h3 { margin: 0; font-size: 1rem; font-weight: 700; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 4px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--gold-dark);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 4px 18px;
  color: var(--ink-muted);
}

.faq-answer p { margin: 0; }

/* ---------- Final CTA ---------- */

.final-cta { padding: 64px 0; }

.final-question {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--heading-strong);
}

.final-line {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-on-strong);
  margin-bottom: 28px;
}

.signature {
  margin-top: 28px;
  color: var(--on-strong-muted);
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-strong);
  color: var(--on-strong-muted);
  padding: 24px 0;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

/* =========================================================
   Tablet and up
   ========================================================= */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }

  .stat-grid { grid-template-columns: repeat(4, 1fr); }

  .case-grid { grid-template-columns: repeat(2, 1fr); }

  .week-grid { grid-template-columns: repeat(2, 1fr); }

  .for-not-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 72px 0; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 1024px) {
  h1 { font-size: 2.8rem; }

  .case-grid { grid-template-columns: repeat(3, 1fr); }

  .fail-block { align-items: center; }
}
