/* ==========================================================================
   THEME — the single re-skin point for a new niche.
   Palette derived from the Frank's Land Report YouTube branding:
   dark forest-green badge, cream text, golden-hour amber, red subscribe CTA.
   To adapt to another channel: change the variables below + swap assets/.
   ========================================================================== */
:root {
  /* Light sections */
  --bg-page: #f7f2e4;         /* warm cream body */
  --bg-card: #fffdf5;         /* cards on cream */
  --text-dark: #26301f;       /* near-black green — headings on light */
  --text-body: #4d5243;       /* body text on light */
  --text-soft: #85826f;       /* muted on light */

  /* Dark sections (hero, Frank, guarantee, footer) */
  --bg-deep: #17250f;         /* darkest forest green */
  --bg-forest: #24391a;       /* badge green */
  --bg-forest-card: #2e4722;
  --text-cream: #f7f2e4;
  --text-cream-muted: #c3c6ae;

  /* Brand accents */
  --green: #4a7c2f;           /* primary brand green */
  --green-leaf: #8db943;      /* bright leafy green from the logo */
  --gold: #d99a2b;            /* golden-hour amber — prices, highlights */
  --gold-soft: #b98424;

  /* Action colors */
  --cta: #d0382c;             /* subscribe-button red */
  --cta-hover: #b52c21;
  --text-on-cta: #ffffff;
  --alert: #c0532e;           /* rust — "catch" highlights */

  /* Borders */
  --border-light: #e3dcc6;
  --border-forest: #3c5530;

  /* Fonts */
  --font-display: 'Roboto Slab', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter', Arial, sans-serif;
  --font-record: 'Courier New', monospace; /* "county record" flavor accents */

  --radius: 8px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--text-dark); }

a { color: var(--green); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-record);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-sub { color: var(--text-body); max-width: 640px; }

.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* Dark sections share these overrides */
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--text-cream); }
.dark-section { color: var(--text-cream-muted); }
.dark-section .eyebrow { color: var(--green-leaf); }
.dark-section .section-sub { color: var(--text-cream-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-cta {
  background: var(--cta);
  color: var(--text-on-cta);
  font-size: 1.1rem;
  padding: 16px 36px;
  box-shadow: 0 3px 10px rgba(208, 56, 44, 0.28);
}
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }

.btn-small { font-size: 0.9rem; padding: 10px 20px; }

.guarantee-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 10px;
}
.dark-section .guarantee-note { color: var(--text-cream-muted); }

/* ==========================================================================
   Launch-promo strip (hidden unless a real deadline is configured in main.js)
   ========================================================================== */
.promo-strip {
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 10px 16px;
}

/* ==========================================================================
   Sticky top bar
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(23, 37, 15, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-forest);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.topbar.visible { transform: translateY(0); }

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-cream);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-price { color: #ffd98a; font-weight: 800; }

/* ==========================================================================
   Hero — channel banner landscape behind a forest-green overlay
   ========================================================================== */
.hero {
  background:
    linear-gradient(rgba(23, 37, 15, 0.82), rgba(23, 37, 15, 0.92)),
    url('../assets/banner.jpg') center 30% / cover no-repeat;
  border-bottom: 4px solid var(--gold);
  padding: 96px 0 72px;
  text-align: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--gold);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--text-cream);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 900;
  max-width: 820px;
  margin: 0 auto 22px;
}

.hero h1 em { font-style: normal; color: var(--gold); }

.hero-sub {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 34px;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 44px auto 0;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--gold);
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-cream-muted);
}

/* ==========================================================================
   Catches (problem section) — light
   ========================================================================== */
.catches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}

.catch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--alert);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 2px 8px rgba(60, 55, 35, 0.06);
}

.catch-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.catch-card p { font-size: 0.98rem; color: var(--text-body); }

.catch-tag {
  font-family: var(--font-record);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--alert);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ==========================================================================
   Meet Frank — forest green band
   ========================================================================== */
.frank {
  background: var(--bg-forest);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}

.frank-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.frank-avatar {
  flex-shrink: 0;
  width: 150px; height: 150px;
  font-size: 3.4rem;
  border-width: 4px;
}

.frank-quote {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-cream);
  margin-bottom: 16px;
}

.frank-text { color: var(--text-cream-muted); }

/* ==========================================================================
   Pricing — light
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 48px;
  align-items: stretch;
  text-align: left;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 10px rgba(60, 55, 35, 0.07);
}

.price-card.featured {
  border: 3px solid var(--green);
  position: relative;
  box-shadow: 0 6px 24px rgba(74, 124, 47, 0.18);
}

.featured-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.bundle-card {
  margin-top: 30px;
  background: var(--bg-card);
  border: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 42px 34px 34px;
  position: relative;
  box-shadow: 0 6px 24px rgba(74, 124, 47, 0.18);
  text-align: center;
}

.bundle-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.bundle-right { text-align: left; }

.bundle-card .price { color: var(--cta); }
.bundle-card .feature-list { margin-bottom: 18px; }
.bundle-card h3 { font-size: 1.35rem; margin-bottom: 6px; }

@media (max-width: 820px) {
  .bundle-cols { grid-template-columns: 1fr; }
}

.cover-img {
  width: 156px;
  margin: 0 auto 20px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(38, 48, 31, 0.28);
  display: block;
}

.cover-img-bundle { width: 210px; }

/* CSS mock covers — fallback for niches that don't have cover art yet */
.book-cover {
  width: 92px;
  height: 122px;
  margin: 0 auto 20px;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--bg-forest), var(--bg-deep));
  border-left: 5px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  color: var(--gold);
  text-align: center;
  padding: 8px;
}
.book-cover .vol { font-size: 1.5rem; font-weight: 900; }
.book-cover .vol-label { font-family: var(--font-record); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-cream-muted); }

.book-stack { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.book-stack .book-cover { width: 66px; height: 92px; margin: 0; }
.book-stack .vol { font-size: 1.1rem; }

.price-card h3 { font-size: 1.25rem; margin-bottom: 6px; }

.price-card .card-sub {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.price-line { margin-bottom: 20px; }
.price-old {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-soft);
  text-decoration: line-through;
  margin-right: 10px;
}
.price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--green);
}
.price-card.featured .price { color: var(--cta); }
.price-note {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-soft);
  display: block;
}

.feature-list { list-style: none; margin-bottom: 26px; flex-grow: 1; text-align: left; }
.feature-list li {
  font-size: 0.98rem;
  color: var(--text-body);
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}
.feature-list li.exclusive::before { content: "★"; color: var(--gold); }
.feature-list li strong { color: var(--text-dark); }

.bonus-box {
  background: #f4ecd7;
  border: 1px dashed var(--gold-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  color: var(--text-body);
  text-align: left;
}
.bonus-box strong { color: var(--gold-soft); display: block; font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }

.payment-row {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

/* ==========================================================================
   Proof / testimonials — light
   ========================================================================== */
.proof { background: #efe8d5; }

.proof-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 10px;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(60, 55, 35, 0.06);
}

.quote-card p { font-size: 1rem; color: var(--text-dark); margin-bottom: 14px; }

.quote-attr {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ==========================================================================
   Guarantee — forest band
   ========================================================================== */
.guarantee {
  background: var(--bg-forest);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}

.guarantee-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.guarantee-seal {
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
}

/* ==========================================================================
   FAQ — light
   ========================================================================== */
.faq-list { max-width: 760px; margin: 40px auto 0; text-align: left; }

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

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  text-align: left;
  padding: 20px 40px 20px 4px;
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--green);
}

.faq-item.open .faq-q::after { content: "–"; }

.faq-a {
  display: none;
  padding: 0 4px 22px;
  color: var(--text-body);
  font-size: 1rem;
}

.faq-item.open .faq-a { display: block; }

/* ==========================================================================
   Email capture — light card
   ========================================================================== */
.email-capture {
  background: var(--bg-card);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(74, 124, 47, 0.12);
}

.email-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 26px auto 0;
}

.email-form input {
  flex-grow: 1;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 13px 16px;
}
.email-form input:focus { outline: 2px solid var(--green); }

/* ==========================================================================
   Final CTA — banner landscape again
   ========================================================================== */
.final-cta {
  background:
    linear-gradient(rgba(23, 37, 15, 0.85), rgba(23, 37, 15, 0.93)),
    url('../assets/banner.jpg') center 55% / cover no-repeat;
  border-top: 4px solid var(--gold);
  text-align: center;
}

/* ==========================================================================
   Footer — deep forest
   ========================================================================== */
footer {
  background: var(--bg-deep);
  padding: 44px 0;
  text-align: center;
  color: var(--text-cream-muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: var(--text-cream);
}

.disclaimer {
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: 0.88rem;
  color: var(--text-cream-muted);
}

.footer-links {
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.footer-links a { color: var(--text-cream-muted); margin: 0 10px; }

/* ==========================================================================
   Exit-intent modal (lead magnet)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 12, 0.72);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.visible { display: flex; }

.modal {
  background: var(--bg-card);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  max-width: 480px;
  padding: 40px 34px;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal h3 { font-size: 1.4rem; margin-bottom: 12px; }
.modal p { color: var(--text-body); font-size: 1rem; }

.modal-dismiss {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .hero { padding: 72px 0 52px; }
  .stats-bar { gap: 28px; }
  .frank-inner { flex-direction: column; text-align: center; }
  .email-form { flex-direction: column; }
}
