/* ===========================================================================
   Dale's Hive — honey / apiary themed sales funnel
   =========================================================================== */
:root {
  /* honey-gold accents (the star) */
  --amber: #e8a317;
  --amber-dark: #b9810a;
  --honey: #f6c453;
  /* warm cream backgrounds */
  --cream: #f5f2e6;
  --cream-2: #fbf8ee;
  /* greens — the lead brand color */
  --green: #2c844a;        /* vivid brand green — highlights, accents, checks */
  --green-deep: #123c27;   /* deep forest — topbar & dark bands (reads green, not black) */
  --walnut: #173826;       /* dark forest — dark card base */
  --walnut-2: #20452f;     /* mid forest */
  --leaf: #57b164;         /* bright leaf accent — radiant pop */
  --leaf-dark: #2c7a3e;    /* leaf accent (text-safe on cream) */
  --ink: #18301f;          /* deep green-ink — body text */
  --green-glow: #44b85e;   /* bright green for radiant inner glow */
  --muted: #5d6a57;        /* green-gray secondary text */
  --red: #c0392b;
  --line: #d7ddc6;         /* soft greenish hairline */
  /* green-tinted surfaces */
  --green-wash: #eaf2e2;   /* pale green section background */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 40, 28, 0.14);
  --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;  /* headlines */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;    /* blockquote / vol3 badge */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;            /* gentle bump for older-reader legibility */
  font-optical-sizing: auto;  /* let Fraunces use its optical-size axis */
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  /* faint honeycomb texture */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(58, 125, 68, 0.05) 0 2px, transparent 2px);
  background-size: 26px 26px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; }
.hl { color: var(--green); }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--leaf-dark);
  margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.05s; }
.btn-amber {
  background: linear-gradient(180deg, var(--honey), var(--amber));
  color: var(--walnut);
  box-shadow: 0 6px 16px rgba(232, 163, 23, 0.4);
}
.btn-amber:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(232, 163, 23, 0.55);
}
.btn-outline {
  background: transparent;
  color: var(--walnut);
  border-color: var(--amber);
}
.btn-outline:hover {
  background: var(--amber); color: var(--walnut);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 26px rgba(232, 163, 23, 0.42);
}
.btn-disabled {
  background: #d9cdbb;
  color: #8a7d68;
  border-color: #d9cdbb;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none; /* JS also blocks the click as a fallback */
  opacity: 0.85;
}
.btn-disabled:hover { transform: none; box-shadow: none; }
.btn-lg { padding: 18px 38px; font-size: 1.1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #0f3322, var(--green-deep) 18%, #1f6b3f 50%, var(--green-deep) 82%, #0f3322);
  color: var(--cream);
  border-bottom: 2px solid var(--amber);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 9px 22px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; flex-wrap: wrap;
}
.topbar-text { color: #e8ddc8; }
.topbar .countdown { color: var(--honey); font-variant-numeric: tabular-nums; }
.topbar-sep { opacity: 0.4; }
.topbar-cta { margin-left: auto; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #34d058;
  box-shadow: 0 0 0 0 rgba(52, 208, 88, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 208, 88, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 208, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 208, 88, 0); }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232,163,23,0.14), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(46,128,73,0.30) 0%, rgba(46,128,73,0.10) 45%, transparent 65%),
    linear-gradient(180deg, var(--green-wash), #dfead2);
  padding: 28px 0 30px;
  text-align: center;
  border-bottom: 1px solid #cdd9bd;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.lede {
  max-width: 600px; margin: 12px auto 0;
  font-size: 1.04rem; color: var(--muted);
}
.hero-cta {
  margin: 20px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.guarantee-pill {
  font-size: 0.85rem; font-weight: 600; color: var(--walnut-2);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px;
}
.hero-stats {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 28px; box-shadow: var(--shadow);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.3rem; color: var(--walnut); }
.hero-stats span { font-size: 0.78rem; color: var(--muted); }
.hero-stats .divider { width: 1px; height: 34px; background: var(--line); }

/* ---------- section headings ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.section-head .sub { color: var(--muted); margin-top: 8px; }

/* ---------- pricing ---------- */
.pricing {
  padding: 40px 0 64px;
  background: linear-gradient(180deg, #dfead2, var(--green-wash));
  border-bottom: 1px solid #cdd9bd;
}
.cards {
  display: grid; gap: 28px;
  grid-template-columns: 1fr 1.32fr 1fr;   /* center (bundle) column noticeably wider */
  align-items: center;                      /* let the taller bundle card center vertically */
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.22s cubic-bezier(.2,.7,.3,1), box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}
.card .now, .card .was { font-variant-numeric: tabular-nums; }

/* side cards lift & pop on hover */
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 26px 52px rgba(44, 33, 23, 0.24);
  border-color: var(--amber);
  z-index: 4;
}

/* corner discount ribbon on the side cards */
.corner-ribbon {
  position: absolute; top: 14px; right: -2px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 0.78rem;
  padding: 5px 12px 5px 14px; border-radius: 4px 0 0 4px;
  box-shadow: 0 3px 8px rgba(192,57,43,0.35);
  letter-spacing: 0.02em;
}

/* the dominant center card */
.card-best {
  background:
    radial-gradient(ellipse at top, rgba(246,196,83,0.18), transparent 70%),
    linear-gradient(180deg, #1a5234, #0e2c1d);
  border: 2px solid var(--honey);
  box-shadow: 0 26px 64px rgba(44, 28, 10, 0.45), 0 0 0 7px rgba(246,196,83,0.14);
  transform: scale(1.09);
  z-index: 2;
  padding: 36px 30px 30px;
}
.card-best .card-tag { color: var(--honey); }
.card-best h3 { color: #fdf6e6; font-size: 1.5rem; }
.card-best .card-blurb { color: #d8c8a8; }
.card-best .price { margin: 16px 0 8px; }
.card-best .price .now { color: var(--honey); font-size: 3.2rem; line-height: 1; }
.card-best .price .was { color: #8fa07f; font-size: 1.3rem; }
.card-best .benefits li { color: #ece0c8; border-bottom-color: rgba(246,196,83,0.18); }
.card-best .benefits li::before { color: var(--honey); }
.card-best .save-note { color: #c7b791; }

/* the bundle is already scaled up — pop it a little further on hover */
.card-best:hover {
  transform: scale(1.13) translateY(-8px);
  box-shadow: 0 38px 90px rgba(44, 28, 10, 0.5), 0 0 0 8px rgba(246,196,83,0.2);
  border-color: var(--honey);
}

.best-ribbon {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #fff0c2, var(--amber));
  color: var(--walnut); font-weight: 800; font-size: 0.76rem;
  padding: 7px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(232,163,23,0.55);
}
/* 3D book covers — gently rotate to show off in three dimensions */
.cover { display: flex; justify-content: center; margin: 8px 0 18px; perspective: 1000px; }
.book3d {
  width: 152px;
  transform-style: preserve-3d;
  animation: book-turn 7s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.cover-img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  box-shadow: -12px 16px 28px rgba(20, 40, 28, 0.38), 0 2px 4px rgba(0,0,0,0.2);
  backface-visibility: hidden;
}
.card-best .book3d { width: 184px; }
@keyframes book-turn {
  0%, 100% { transform: rotateY(-24deg) rotateX(5deg); }
  50%      { transform: rotateY(24deg) rotateX(5deg); }
}
/* on hover, the book stops and faces you, lifting forward */
.card:hover .book3d {
  animation-play-state: paused;
  transform: rotateY(0deg) rotateX(0deg) scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
  .book3d { animation: none; transform: rotateY(-14deg) rotateX(4deg); }
}
.card-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--leaf-dark); text-transform: uppercase;
}
.card h3 { font-size: 1.28rem; margin: 4px 0 8px; }
.card-blurb { font-size: 0.92rem; color: var(--muted); min-height: 44px; }
.price { margin: 14px 0 6px; }
.price .now { font-size: 2.5rem; font-weight: 800; color: var(--leaf-dark); line-height: 1; }
.price .was { font-size: 1.15rem; color: #97a18c; text-decoration: line-through; margin-left: 6px; }

/* red urgency savings badge */
.save-today {
  display: inline-block; align-self: flex-start;
  background: var(--red); color: #fff; font-weight: 800;
  font-size: 0.8rem; letter-spacing: 0.03em;
  padding: 4px 12px; border-radius: 6px; margin-bottom: 16px;
}
.save-today.big { font-size: 0.9rem; padding: 6px 14px; box-shadow: 0 4px 12px rgba(192,57,43,0.45); }

.benefits { list-style: none; margin: 6px 0 20px; flex: 1; }
.benefits li {
  font-size: 0.92rem; padding: 7px 0 7px 26px; position: relative;
  border-bottom: 1px dashed var(--line);
}
.benefits li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--leaf); font-weight: 800;
}
.save-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* volume III note */
.vol3-note {
  display: flex; gap: 18px; align-items: center;
  background: var(--walnut); color: var(--cream);
  border-radius: var(--radius); padding: 22px 26px; margin-top: 26px;
}
.vol3-badge {
  flex: none; font-family: var(--serif); font-weight: 700; color: var(--honey);
  border: 2px solid var(--amber); border-radius: 10px; padding: 14px 12px;
  letter-spacing: 0.08em;
}
.vol3-note h4 { color: var(--honey); margin-bottom: 4px; }
.vol3-note p { font-size: 0.92rem; color: #e2d6bf; }

/* trust badges */
.trust { text-align: center; margin-top: 30px; }
.trust > span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }
.badges { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.pay { width: 48px; height: 30px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* ---------- narrative ---------- */
.narrative {
  background: linear-gradient(180deg, var(--cream-2), #e9efdd);
  padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.narrative h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 22px; }
.narrative p { color: #4a3f31; margin: 0 auto 16px; font-size: 1.05rem; max-width: 680px; }
.narrative blockquote {
  margin: 28px auto 0; max-width: 620px;
  font-family: var(--serif); font-style: italic; font-size: 1.18rem;
  color: var(--walnut); border-left: 4px solid var(--amber); padding: 8px 22px; text-align: left;
}

/* ---------- testimonials ---------- */
.testimonials { padding: 66px 0; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { font-size: 0.98rem; color: #3f352a; margin-bottom: 14px; }
.review figcaption { font-size: 0.85rem; color: var(--muted); }
.review figcaption strong { color: var(--walnut); }

/* ---------- about ---------- */
.about { padding: 66px 0; background: var(--cream); border-top: 1px solid var(--line); }
.about-card {
  display: flex; align-items: center; gap: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow);
}
.about-photo {
  flex: none;
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--honey);
  box-shadow: 0 8px 20px rgba(20, 40, 28, 0.22);
}
.about-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.about-channel { color: var(--muted); font-size: 0.95rem; margin: 2px 0 14px; }
.about-channel strong { color: var(--leaf-dark); }
.about-body p { color: #3f352a; font-size: 0.98rem; margin-bottom: 12px; }
.about-body p:last-child { margin-bottom: 0; }

/* ---------- faq ---------- */
.faq { padding: 66px 0; background: var(--cream-2); border-top: 1px solid var(--line); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-size: 1.02rem; font-weight: 600; color: var(--walnut);
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-family: var(--font);
}
.faq-q .chev { transition: transform 0.2s ease; color: var(--amber-dark); font-size: 1.3rem; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center; padding: 72px 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 42%, rgba(68,184,94,0.22), transparent 68%),
    linear-gradient(160deg, #103626, var(--green-deep) 55%, #0a2418);
  color: var(--cream);
}
.final-cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.final-cta p { color: #dce9d2; margin-bottom: 28px; }
.final-timer { margin-top: 18px; font-size: 0.9rem; color: #bcd2af; }
.final-timer .countdown { color: var(--honey); font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b6a88f; padding: 44px 0; font-size: 0.85rem; }
.foot-brand { color: var(--honey); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.disclaimer { line-height: 1.7; margin-bottom: 16px; max-width: 880px; }
.disclaimer strong { color: #d8c8a8; }
.foot-links a { color: var(--honey); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---------- newsletter popup ---------- */
.nl-overlay {
  position: fixed; inset: 0; z-index: 100; /* above the sticky topbar (z-index:50) */
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  background: rgba(36, 28, 18, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nl-overlay.is-open { opacity: 1; visibility: visible; }
.nl-modal {
  position: relative;
  background: #fff;
  width: 100%; max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(44, 33, 23, 0.35);
  padding: 30px 28px 26px;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}
.nl-overlay.is-open .nl-modal { transform: translateY(0) scale(1); }
.nl-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
  padding: 4px 8px;
}
.nl-close:hover { color: var(--walnut); }
.nl-modal h3 { font-size: 1.5rem; font-weight: 800; color: var(--walnut); margin: 4px 0 10px; }
.nl-sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.nl-form input[type="email"] {
  width: 100%;
  font-family: var(--font); font-size: 1rem;
  padding: 13px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream-2); color: var(--ink);
}
.nl-form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.25);
}
.nl-fineprint { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.nl-success p { font-size: 0.98rem; color: #3f352a; margin: 10px 0 20px; }
.nl-success p strong { color: var(--amber-dark); }

@media (prefers-reduced-motion: reduce) {
  .nl-overlay, .nl-modal { transition: none; }
  .nl-modal { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .reviews { grid-template-columns: 1fr; }
  .card-best { order: -1; transform: none; margin-top: 8px; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 14px; padding: 14px 16px; }
  .hero-stats strong { font-size: 1.1rem; }
  .topbar-inner { font-size: 0.78rem; gap: 7px; }
  .topbar-cta { margin-left: 0; width: 100%; }
  .vol3-note { flex-direction: column; text-align: center; }
  .about-card { flex-direction: column; text-align: center; gap: 18px; padding: 26px 22px; }
  .about-photo { width: 130px; height: 130px; }
  .nl-modal { padding: 26px 20px 22px; }
  .nl-modal h3 { font-size: 1.3rem; }
}
