/* Public bundle / course checkout page — /course/<slug> */

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

:root {
  --purple: #6b3fa0;
  --purple-dark: #5a2d8c;
  --purple-light: #f3eeff;
  --gold: #f5a623;
  --red: #e74c3c;
  --text: #222222;
  --muted: #666666;
  --border: #e0e0e0;
  --white: #ffffff;
  --bg: #f9f9f9;
  --green: #27ae60;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── OFFER BANNER ── */
.offer-banner {
  background: var(--gold);
  color: #000;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  text-transform: uppercase;
}

/* ── HERO CARD ── */
.hero {
  background: var(--white);
  padding: 14px 14px 18px;
  border-bottom: 1px solid var(--border);
}

.course-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 4px;
}

.course-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

/* Stars */
.stars-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}
.stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}
.stars-meta {
  font-size: 11px;
  color: var(--muted);
}
.stars-meta strong {
  color: var(--text);
}

/* Product box image */
.cover-wrap {
  position: relative;
  margin-bottom: 12px;
}
.cover-img {
  width: 55%;
  max-width: 200px;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
.badge-sale {
  position: absolute;
  bottom: 6px;
  right: calc(50% - 90px);
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 3px;
}

/* Multi-main hero: several course boxes overlapped (z-index set inline, first
   box frontmost), one per main course. Scaled to any count — wraps when there
   are enough to overflow the card. Rows overlap vertically just like they do
   horizontally: each wrapped row tucks up under the previous one instead of
   sitting fully below, and the hero grows to contain every row (padding-bottom
   compensates the last row's negative margin). More boxes -> more rows -> taller
   hero. z-index is NOT set here — it's computed per-row in JS (bundle-multi.html)
   so a wrapped lower row paints ON TOP of the rows above it. */
.multi-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 4px 0 12px;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 100px;
}

.multi-box {
  width: 200px;
  height: auto;
  position: relative;
  border: 0;
  margin: 0 -45px -100px;
}

.multi-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 10000; /* above any row z-index the JS assigns */
}

/* Price block */
.price-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.price-current {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}
.price-original {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.btn-buy {
  display: block;
  width: 100%;
  background: var(--purple);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-buy:hover { background: var(--purple-dark); }

.guarantee-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.guarantee-note span { color: var(--green); font-weight: 700; }

/* ── HOOK / BODY SECTION ── */
.hook {
  background: var(--white);
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}

.bundle-body {
  white-space: pre-line;
  font-size: 13px;
  color: #444;
  line-height: 1.55;
}
.bundle-body p { margin-bottom: 10px; }

.hook-headline {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
}
.hook-headline .emoji { font-size: 14px; }

.hook p {
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.55;
}

.hook-cta-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.hook-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
  object-fit: cover;
  max-height: 180px;
}

/* ── WHAT YOU'LL MASTER ── */
.mastery {
  background: var(--white);
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.mastery-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mastery-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}

.mastery-list .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  margin-top: 5px;
}

.mastery-list .item-title {
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
}
.mastery-list .item-desc {
  color: #555;
  font-size: 12px;
  margin-top: 1px;
  line-height: 1.45;
}

/* ── WHAT'S INSIDE ── */
.inside {
  background: var(--purple-light);
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.modules-subtitle {
  font-size: 11px;
  color: #555;
  margin-top: 0;
}

.module-list li {
  background: var(--white);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.module-num {
  background: var(--purple);
  color: var(--white);
  font-weight: 800;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Multi-course module cover — a course cover box on the RIGHT of each row,
   taller than the old 28px bullet-like thumb. flex `order` places it after
   the text without touching the template (the numbered circle stays the
   fallback when a course has no thumb). The generated covers are square
   1:1; object-fit crops them to the tall box proportions. */
.module-thumb {
  width: 64px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  order: 3;
  margin-left: auto;
}

.module-title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 2px;
}
.module-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--white);
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}

.testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: 6px;
  padding: 12px;
  border-left: 3px solid var(--purple);
}

.testimonial-text {
  font-size: 12px;
  color: #444;
  line-height: 1.55;
  margin-bottom: 8px;
  font-style: italic;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}
.testimonial-name {
  font-weight: 700;
  font-size: 12px;
}
.testimonial-sub {
  font-size: 11px;
  color: var(--muted);
}
.t-stars {
  color: var(--gold);
  font-size: 11px;
  margin-bottom: 4px;
}

/* ── ABOUT SECTION ── */
.about {
  background: var(--white);
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
}
.about-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.about-text p {
  font-size: 12px;
  color: #444;
  line-height: 1.55;
}
.about-name {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 3px;
}

/* ── GUARANTEE ── */
.guarantee {
  background: var(--purple-light);
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.guarantee-badge {
  font-size: 36px;
  margin-bottom: 6px;
}
.guarantee h2 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}
.guarantee p {
  font-size: 12px;
  color: #555;
  line-height: 1.55;
  max-width: 300px;
  margin: 0 auto;
}

/* ── FAQ ── */
.faq {
  background: var(--white);
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}

.faq-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

summary {
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

summary::after {
  content: '+';
  font-size: 16px;
  color: var(--purple);
  font-weight: 400;
  margin-left: 8px;
  flex-shrink: 0;
}

details[open] summary::after { content: '−'; }

details p {
  margin-top: 8px;
  font-size: 12px;
  color: #555;
  line-height: 1.55;
}

/* ── INCLUDED COURSES (boxes repeated before bottom CTA) ── */
.included-courses {
  background: var(--white);
  padding: 16px 14px 20px;
  border-bottom: 1px solid var(--border);
}

/* Multi-course: overlapped boxes (smaller version of hero). Same containment
   as .multi-boxes above: the boxes tuck -80px under the previous row via their
   negative bottom margin, so the padding-bottom grows this section to hold the
   last row — otherwise it overflows the section and paints over the bottom CTA. */
.multi-boxes-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 80px;
}

.multi-box-bottom {
  width: 160px;
  height: auto;
  position: relative;
  border: 0;
  margin: 0 -35px -80px;
}

.multi-badge-bottom {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 10000;
}

/* Single-course: centered cover image */
.single-box-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-box-bottom img {
  width: 40%;
  max-width: 180px;
  border-radius: 4px;
}

/* ── BOTTOM CTA ── */
.bottom-cta {
  background: var(--white);
  padding: 16px 14px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.bottom-cta .price-block {
  justify-content: center;
  margin-bottom: 12px;
}

.bottom-cta p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.trust-badges span {
  font-size: 10px;
  font-weight: 600;
  color: #2e7d32;
  background: #f0faf0;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  padding: 3px 7px;
}

.fine-print {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}
.fine-print a {
  color: var(--purple);
  text-decoration: underline;
}
.copyright {
  font-size: 10px;
  color: #aaa;
  margin-top: 12px;
}

/* ── STICKY FOOTER (mobile) ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000; /* above the per-row box z-index the JS assigns (bundle-multi.html) */
  box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
}

.sticky-cta .sticky-price {
  flex-shrink: 0;
}
.sticky-cta .sticky-price .now {
  font-size: 15px;
  font-weight: 900;
}
.sticky-cta .sticky-price .was {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}

.sticky-cta .btn-buy {
  font-size: 13px;
  padding: 10px 12px;
}

.sticky-cta {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sticky-cta.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Spacer so content isn't hidden behind sticky bar */
.sticky-spacer { height: 62px; }

/* ── DESKTOP ADJUSTMENTS ── */
@media (min-width: 680px) {
  body { background: #efefef; font-size: 15px; }

  .page-wrap {
    max-width: 480px;
    margin: 24px auto;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  }

  .sticky-cta { display: none; }
  .sticky-spacer { display: none; }

  .course-title { font-size: 22px; }
  .hook-headline { font-size: 17px; }
  .section-title { font-size: 15px; }
  .btn-buy { font-size: 15px; }
}
