/* Rapid Results Recipes — /ebook funnel */
/* Layout + typography match main site (styles.css). Brand tokens inherited. */

.ebook-page {
  min-height: 100vh;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: -0.015em;
}

.ebook-thanks h3 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Hero — same width rhythm as main landing hero */
.ebook-hero {
  text-align: center;
}

.ebook-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
  width: 100%;
}

.ebook-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  max-width: 920px;
}

@media (min-width: 1100px) {
  .ebook-hero .container {
    width: min(calc(100% - 2rem), 1380px);
  }

  .ebook-hero h1 {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(2.05rem, 2.35vw, 2.85rem);
  }

  .ebook-hero .hero-description {
    max-width: 920px;
  }
}

.ebook-hero .hero-description {
  margin: 0 auto;
}

.ebook-hero-image {
  margin: 0 auto;
  width: min(88vw, 560px);
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .ebook-hero-image {
    width: min(70vw, 580px);
  }
}

.ebook-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  background: none;
}

.ebook-hero-actions {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  justify-items: center;
}

.ebook-checkout-dialog {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
}

.ebook-checkout-card {
  padding: 1.6rem 1.4rem 1.5rem;
  text-align: left;
}

.ebook-checkout-card .hero-form-heading {
  margin-bottom: 1.15rem;
}

.ebook-checkout-card .hero-form-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.ebook-checkout-form .contact-fields {
  margin-bottom: 1rem;
}

.ebook-checkout-form .ebook-cta {
  width: 100%;
  max-width: none;
  margin-top: 0.35rem;
}

.ebook-checkout-status {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9c3f51;
}

.ebook-checkout-status[hidden] {
  display: none !important;
}

.ebook-content {
  max-width: 820px;
  margin: 0 auto;
}

.ebook-content .section-heading {
  text-align: center;
}

.ebook-lead {
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.ebook-lead-tight {
  margin-top: 1.25rem;
  font-weight: 600;
}

.ebook-feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.ebook-feature-list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(74, 74, 74, 0.06);
  line-height: 1.65;
}

.ebook-feature-list li::before {
  content: "•";
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  color: var(--sage-dark);
  font-weight: 700;
}

.ebook-feature-list strong {
  font-weight: 700;
}

.ebook-closing-line {
  margin: 1.75rem auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.65;
}

.ebook-final-cta {
  text-align: center;
}

.ebook-final-cta-inner {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
}

.ebook-final-cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.ebook-final-cta .ebook-lead {
  margin: 0;
}

.ebook-final-cta .ebook-cta {
  margin-top: 0.35rem;
}

/* Trust snapshot */
.ebook-trust {
  text-align: center;
}

.ebook-badges {
  justify-content: center;
  margin: 0 0 2rem;
}

.ebook-reviews-heading {
  margin-bottom: 2rem;
}

.ebook-reviews-slider {
  max-width: 100%;
}

.ebook-reviews-slider .reviews-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.ebook-reviews-slider .reviews-slider-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  transition: transform 520ms ease;
  will-change: transform;
}

.ebook-reviews-slider .reviews-slide {
  display: flex;
  flex: 0 0 calc((100% - 3rem) / 4);
  width: calc((100% - 3rem) / 4);
  min-width: calc((100% - 3rem) / 4);
  box-sizing: border-box;
}

.ebook-reviews-slider .testimonial-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding: 1.1rem 0.95rem;
}

.ebook-reviews-slider blockquote {
  flex: 1;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ebook-reviews-slider .stars {
  flex-shrink: 0;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.ebook-reviews-slider .testimonial-name {
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.ebook-reviews-slider .reviews-slide:hover {
  transform: none;
}

@media (max-width: 1080px) {
  .ebook-reviews-slider .reviews-slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    width: calc((100% - 2rem) / 3);
    min-width: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 960px) {
  .ebook-reviews-slider .reviews-slide {
    flex: 0 0 calc((100% - 1rem) / 2);
    width: calc((100% - 1rem) / 2);
    min-width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 620px) {
  .ebook-reviews-slider .reviews-slide {
    flex: 0 0 88%;
    width: 88%;
    min-width: 88%;
  }
}

.ebook-floating-actions {
  right: 1.15rem;
  bottom: 1.15rem;
}

.ebook-apply-toast {
  left: 1.15rem;
  bottom: 1.15rem;
  max-width: min(calc(100vw - 2.3rem), 340px);
  z-index: 1150;
}

@media (max-width: 620px) {
  .ebook-apply-toast {
    bottom: 1rem;
    left: 1rem;
    max-width: calc(100vw - 5.5rem);
  }
}

/* Content sections — padding + headings from .section / h2 in styles.css */

/* About Allison */
.ebook-about .about-copy {
  text-align: left;
}

.ebook-about .badge-row {
  margin-top: 1.5rem;
}

/* Apply modal styles live in styles.css (.apply-modal) */

.ebook-scarcity-band {
  padding: 1rem 1.25rem;
  text-align: center;
  background: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
}

.ebook-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(74, 74, 74, 0.72);
  background: var(--cream);
}

.ebook-footer .site-legal-footer {
  margin-top: 1rem;
}

.ebook-footer img {
  width: 110px;
  margin: 0 auto 0.65rem;
  opacity: 0.9;
}

@media (max-width: 620px) {
  .ebook-cta {
    max-width: none;
  }
}

.ebook-thankyou {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  text-align: center;
}

.ebook-thankyou-inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.ebook-thankyou h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.ebook-thankyou-note {
  margin: 0.75rem 0 0;
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(74, 74, 74, 0.75);
}

.ebook-thankyou-note a {
  color: var(--sage-dark);
  text-decoration: underline;
}
