/* ============================================
 * Book — Get your copy CTA (Figma 849:4513)
 *
 * White surface, two-column. Mobile: mockup on top, centred copy +
 * Amazon button below. Desktop (≥1024px): large mockup left (bleeds
 * past the container's left edge as in the Figma), centred copy
 * block right.
 *
 * The `.tlm-book-amazon` button is defined in book-hero.css.
 * ============================================ */

.tlm-book-cta {
  padding-block: var(--space-section-y-mobile);
  background-color: var(--color-cream);
  color: var(--color-text-on-light);
  overflow: hidden;
}

.tlm-book-cta__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.tlm-book-cta__visual {
  width: 100%;
}

.tlm-book-cta__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tlm-book-cta__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  /* Mobile: left-align the heading, line, and buy buttons. Desktop
     restores centre at 1024. */
  align-items: flex-start;
  text-align: left;
}

.tlm-book-cta__headings {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tlm-book-cta__heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-h2-mobile);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
}

.tlm-book-cta__line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy-muted);
}

/* ============================================
 * TABLET (≥768px)
 * ============================================ */

@media (min-width: 768px) {
  .tlm-book-cta__line {
    font-size: var(--text-lg);
  }
}

/* ============================================
 * DESKTOP (≥1024px)
 * ============================================ */

@media (min-width: 1024px) {
  .tlm-book-cta {
    padding-block: var(--space-5xl);
  }

  .tlm-book-cta__inner {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4xl);
  }

  .tlm-book-cta__visual {
    flex: 1 1 0;
    min-width: 0;
    /* Mockup now sits on the right (row-reverse); let it bleed past
       the container's right padding so it sits proud of that edge. */
    margin-inline-end: calc(-1 * var(--space-4xl));
  }

  .tlm-book-cta__body {
    flex: 0 0 auto;
    width: 540px;
    align-items: center;
    text-align: center;
  }

  .tlm-book-cta__heading {
    font-size: var(--text-h2);
  }
}
