/* ==========================================================================
   Lead Anyway — Companion Workbook launch page
   Loaded only by the workbook page, after css/style.css. Everything here
   builds on the existing design tokens and components (.hero, .hero-tear,
   .rules-band, .rule-card, .premise-point, .card, .feature-list, .btn…);
   this file only adds the few page-specific pieces they don't cover.
   ========================================================================== */

/* ---------- Hero ---------- */
.workbook-hero {
  padding: 3.25rem 0 4.5rem;
}

@media (min-width: 900px) {
  .workbook-hero { padding: 4.5rem 0 5.75rem; }
}

/* Keeps the copy above .hero::before's subtle highlight overlay. */
.workbook-hero .container {
  position: relative;
}

.workbook-hero .hero-premise {
  max-width: 54ch;
}

/* Sized so the headline sits on one line from desktop up; on phones it
   wraps naturally. */
.workbook-hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

@media (min-width: 900px) {
  .workbook-hero h1 {
    font-size: clamp(3rem, 4.6vw, 3.9rem);
    white-space: nowrap;
  }

  /* On desktop the copy column is exactly as wide as the one-line headline
     (width: min-content picks up the nowrap headline), so the intro text
     lines up with it instead of stopping halfway across. */
  .workbook-hero .hero-copy {
    width: min-content;
    max-width: 100%;
  }

  .workbook-hero .hero-premise {
    max-width: none;
    font-size: 1.3rem;
  }
}

/* ---------- Product image ---------- */
.workbook-showcase {
  padding: 1.5rem 0 3rem;
}

@media (min-width: 900px) {
  .workbook-showcase { padding: 2rem 0 4.5rem; }
}

/* Full-bleed on phones so the pages in the image stay as large as possible;
   a rounded card inside the container from tablet up. Never cropped: the
   image keeps its own 16:9 ratio at every width. */
.workbook-figure {
  margin: 0 -1.25rem;
}

.workbook-figure img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .workbook-figure { margin: 0; }
  .workbook-figure img { border-radius: var(--radius); }
}

/* ---------- What's inside ---------- */
.workbook-inside .rule-card {
  min-height: 0;
}

.workbook-inside .rule-num,
.workbook-inside .rule-icon {
  flex: none;
  width: 3.25rem;
  text-align: center;
}

.workbook-inside .rule-num {
  font-size: 2.4rem;
  line-height: 1;
}

.workbook-inside .rule-icon {
  display: flex;
  justify-content: center;
  color: var(--gold);
}

.workbook-inside .rule-icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

/* ---------- Purchase ---------- */
.workbook-buy {
  background: linear-gradient(160deg, var(--teal-dark), var(--forest));
  color: var(--white);
  text-align: center;
}

.workbook-buy .eyebrow { color: var(--paper); }

.workbook-buy h2 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.workbook-buy .lede {
  color: var(--cream);
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}

.workbook-buy-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.75rem;
  color: var(--ink);
}

/* Shown only while the launch-week offer is active (see js/config.js). */
.workbook-offer-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
  padding: 0.25em 0.8em;
  border-radius: 999px;
  margin: 0 0 0.75rem;
}

.workbook-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 0 0.25rem;
  line-height: 1;
}

.workbook-price__now {
  font-family: var(--font-display);
  font-size: 3.6rem;
  color: var(--forest);
}

/* The regular price, struck through while the launch-week offer is on. */
.workbook-price__was {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink-soft);
}

.workbook-price__was s {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
}

.workbook-buy-card .feature-list {
  max-width: 20rem;
  margin: 1.25rem auto 1.5rem;
  text-align: left;
}

.workbook-buy-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Back to the book ---------- */
.workbook-book {
  background: var(--cream-deep);
  padding: 3rem 0;
}

@media (min-width: 900px) {
  .workbook-book { padding: 3.5rem 0; }
}

.workbook-book__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.workbook-book__copy {
  max-width: 560px;
}

.workbook-book__copy h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.4rem;
}

.workbook-book__copy p {
  margin: 0;
  color: var(--ink-soft);
}
