/* ==========================================================================
   Book Intro page — two-column layout with Calendly embed
   ========================================================================== */

.book-intro {
  background: var(--vox-white, #FFFFFF);
  padding: 4rem 0 6rem;
}

.book-intro__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "pitch form"
    "quote form";
  grid-template-rows: auto 1fr;
  column-gap: 4rem;
  row-gap: 0;
  align-items: start;
}

.book-intro__pitch { grid-area: pitch; }
.book-intro__form  { grid-area: form;  }
.book-intro__quote { grid-area: quote; }

@media (max-width: 1023px) {
  .book-intro {
    padding: 2.5rem 0 4rem;
  }

  .book-intro__container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pitch"
      "form"
      "quote";
    row-gap: 1rem;
  }

  /* List bottom margin is redundant — row-gap handles spacing to the form. */
  .book-intro .book-intro__list {
    margin-bottom: 0;
  }

  /* Add a touch of extra breathing room above the testimonial only,
     so the form-to-quote gap stays readable while the bullets-to-form
     gap stays tight. */
  .book-intro .book-intro__quote {
    margin-top: 0.75rem;
    padding-top: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Left column — pitch
   -------------------------------------------------------------------------- */

.book-intro__pitch {
  padding-top: 1rem;
}

/* Two-class selector (0-2-0) beats application.css's .mainContent h1
   reset (0-1-1) which would otherwise force margin:0. */
.book-intro .book-intro__title {
  margin: 0 0 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vox-purple, #341C4C);
}

.book-intro .book-intro__lede {
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--vox-cool-gray, #6B7280);
  max-width: 32rem;
}

.book-intro__list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-intro__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--vox-purple, #341C4C);
}

.book-intro__check {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--vox-orange, #FF8C32);
}

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.book-intro__quote {
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--vox-gray-200, #E0E0E0);
  max-width: 32rem;
}

.book-intro__quote-text {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--vox-purple, #341C4C);
  text-wrap: pretty;
}

.book-intro__quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.book-intro__quote-avatar {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--vox-gray-200, #E0E0E0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-intro__quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-intro__quote-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--vox-cool-gray, #6B7280);
}

.book-intro__quote-role {
  color: var(--vox-cool-gray, #6B7280);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Right column — Calendly embed
   -------------------------------------------------------------------------- */

.book-intro__form {
  position: relative;
  min-height: 700px;
}

.book-intro__form .calendly-inline-widget {
  width: 100%;
}

@media (min-width: 1024px) {
  .book-intro__form {
    position: sticky;
    top: 6rem;
  }
}
