/* ============================================================
   EBOOK LANDING PAGE — STYLES
   Rebrand fast: change the COLORS + FONTS in :root below.
   ============================================================ */

:root {
  /* ---- COLORS (change these to rebrand) ---- */
  --bg:        #faf5ee;   /* page background (warm cream / paper) */
  --bg-alt:    #f1e8db;   /* alternating section bg */
  --surface:   #ffffff;   /* cards */
  --accent:    #b23b1e;   /* primary buttons / highlights (rust) */
  --accent-2:  #c9502a;   /* hover / bright accent */
  --text:      #2b1d16;   /* main text (dark warm brown on cream) */
  --muted:     #6f5d4e;   /* secondary text */
  --gold:      #c98a1c;   /* stars */
  --good:      #3f7d3a;   /* "good" comparison column */
  --border:    rgba(60,40,25,.14);
  --shadow:    0 18px 50px rgba(120,80,40,.16);

  /* ---- FONTS (offline system stacks, no CDN) ---- */
  --font-display: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 860px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 560px; }
.center { text-align: center; }

/* ---------------- SALE BAR ---------------- */
.salebar {
  position: sticky; top: 0; z-index: 50;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.salebar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; text-align: center;
}
.salebar__text { font-size: 13px; letter-spacing: .3px; }
.salebar__text s { opacity: .7; }
.countdown { display: flex; gap: 6px; }
.countdown__unit {
  background: rgba(0,0,0,.28); border-radius: 6px;
  padding: 3px 7px; min-width: 38px; text-align: center; line-height: 1.1;
}
.countdown__unit span { font-weight: 700; font-size: 15px; }
.countdown__unit small { display: block; font-size: 8px; opacity: .8; letter-spacing: 1px; }

/* ---------------- HERO ---------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(210,99,47,.18), transparent 70%),
    var(--bg);
  padding: 54px 0 40px;
  text-align: center;
}
.hero__eyebrow { color: var(--muted); font-style: italic; font-size: 15px; margin-bottom: 8px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 7.5vw, 62px);
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero__sub { color: var(--muted); font-size: clamp(17px, 2.6vw, 21px); max-width: 620px; margin: 0 auto; }
.hero__arrow { color: var(--accent-2); font-size: 22px; margin: 18px 0 10px; }

.videocue {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  margin-bottom: 14px;
}
.video {
  position: relative; max-width: 640px; margin: 0 auto 26px;
  border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); background: #000;
}
.video__poster { display: block; width: 100%; height: auto; }
.video__el { display: block; width: 100%; height: auto; background: #000; }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.video__play span {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 30px;
  display: grid; place-items: center; padding-left: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: transform .15s;
}
.video:hover .video__play span { transform: scale(1.08); }
.video__caption {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.hero__micro { color: var(--muted); font-size: 14px; margin-top: 12px; }
.jumplink { display: inline-block; margin-top: 18px; color: var(--accent-2); text-decoration: none; font-weight: 600; }
.jumplink:hover { text-decoration: underline; }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border: none; border-radius: 10px; font-family: var(--font-body);
  font-weight: 700; font-size: 16px; padding: 14px 28px;
  transition: transform .12s, background .2s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(178,59,30,.45); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn--lg { font-size: 18px; padding: 16px 36px; }
.btn--block { display: block; width: 100%; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 52px 0; }
.section--alt { background: var(--bg-alt); }
.section--cta { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); text-align: center; }
.section__title {
  font-family: var(--font-display); font-size: clamp(26px, 4.5vw, 38px);
  text-align: center; margin-bottom: 10px; line-height: 1.15;
}
.section__title--left { text-align: left; }
.section__lead { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 28px; font-size: 17px; }
.note { color: var(--muted); text-align: center; font-size: 15px; margin-top: 18px; font-style: italic; }

/* ---------------- STEPS ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; text-align: center;
}
.step__num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--accent); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 18px;
}
.step h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------------- COMPARE ---------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare__col {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.compare__col--good { border-color: rgba(127,174,106,.4); }
.compare__col h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 14px; }
.compare__col ul { list-style: none; }
.compare__col li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 15px;
}
.compare__col li em { color: var(--muted); font-style: normal; white-space: nowrap; }
.compare__col--good li em { color: var(--good); }
.compare__total {
  margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 600;
}
.compare__total b { font-family: var(--font-display); font-size: 24px; }
.compare__col--bad .compare__total b { color: var(--accent-2); }
.compare__col--good .compare__total b { color: var(--good); }

/* ---------------- CAROUSEL ---------------- */
.carousel { position: relative; display: flex; align-items: center; gap: 8px; }
.carousel__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 16px; scrollbar-width: thin;
}
.carousel__track::-webkit-scrollbar { height: 8px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.page {
  flex: 0 0 auto; width: 260px; scroll-snap-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: zoom-in;
}
.page img { display: block; width: 100%; height: auto; }
.page figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.carousel__btn {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.carousel__btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.swipehint { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 20px; }

/* ---------------- CHAPTERS + STATS ---------------- */
.chapters { list-style: none; max-width: 680px; margin: 0 auto; }
.chapters li {
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px;
}
.chapters li b { color: var(--accent-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; text-align: center;
}
.stat b { font-family: var(--font-display); font-size: 30px; display: block; color: var(--accent-2); }
.stat small { color: var(--muted); font-size: 13px; }

/* ---------------- OFFER ---------------- */
.offer {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 30px; max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow); text-align: center;
}
.offer__eyebrow { color: var(--muted); font-style: italic; font-size: 14px; }
.offer__title { font-family: var(--font-display); font-size: 30px; margin: 4px 0 10px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.stars span { color: var(--muted); letter-spacing: 0; font-size: 14px; margin-left: 6px; }
.offer__list { list-style: none; text-align: left; margin: 20px 0; }
.offer__list li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; }
.offer__list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.offer__price { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.offer__now { font-family: var(--font-display); font-size: 40px; color: var(--accent-2); }
.offer__was { color: var(--muted); font-size: 22px; }
.offer__save { background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.offer__secure { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------------- BUNDLE ---------------- */
.bundle {
  max-width: 560px; margin: 24px auto 0; padding: 22px;
  border: 1px dashed var(--border); border-radius: 14px; text-align: center;
}
.bundle__tag { color: var(--accent-2); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.bundle h3 { font-family: var(--font-display); font-size: 20px; margin: 6px 0; }
.bundle p { color: var(--muted); font-size: 15px; }
.bundle__price { color: var(--text) !important; margin: 10px 0 14px; }
.bundle__price s { color: var(--muted); }

/* ---------------- REVIEWS ---------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}
.review p { margin: 10px 0; font-size: 15px; }
.review cite { color: var(--muted); font-size: 13px; font-style: normal; }

/* ---------------- AUTHOR ---------------- */
.author { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.author__photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
.author__body p { color: var(--muted); margin-bottom: 12px; }
.author__sign { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--text) !important; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 680px; margin: 0 auto; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 18px; margin-bottom: 12px;
}
.faq__item summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16px;
  list-style: none; position: relative; padding-right: 28px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 22px; color: var(--accent-2); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--muted); padding-bottom: 14px; font-size: 15px; }

/* ---------------- CONTACT FORM ---------------- */
.cform { display: grid; gap: 12px; }
.cform input, .cform textarea {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 13px 14px; font-family: var(--font-body); font-size: 15px;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent-2); }

/* ---------------- FOOTER ---------------- */
.footer { padding: 34px 0; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.footer__brand { margin-top: 8px; font-family: var(--font-display); font-style: italic; }

/* ---------------- LIGHTBOX ---------------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100;
  display: none; place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox__close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 30px; cursor: pointer; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 720px) {
  .steps, .compare, .reviews { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .author { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .section__title--left { text-align: center; }
}
