/* Book + Free Book pages — built on the homepage.css tokens.
   Loaded after homepage.css by book.html and freebook.html. */

/* ── Hero (shared by Book and Free Book) ───────────────────── */

.bk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-on-dark);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.bk-hero__glow {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 56rem;
  height: 56rem;
  max-width: 90vw;
  background: radial-gradient(ellipse at center, rgba(185, 228, 238, 0.16) 0%, rgba(43, 137, 146, 0.06) 45%, transparent 70%);
  transform: translateY(-50%);
  animation: bookGlow 5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes bookGlow {
  0%, 100% { opacity: 0.55; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.22); }
}

.bk-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.bk-hero h1 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.bk-hero__kicker {
  margin: 0 0 1rem;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-highlight);
}

.bk-hero__sub {
  max-width: 30rem;
  margin-bottom: 1.75rem;
  font-size: var(--text-md);
  color: var(--color-on-dark-muted);
}

.bk-hero__offer {
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(185, 228, 238, 0.45);
}

.bk-hero__offer-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-highlight);
}

.bk-hero__offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bk-hero__offer-list li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.1rem;
  font-size: var(--text-sm);
  color: var(--color-on-dark);
}

.bk-hero__offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.5rem;
  height: 1px;
  background: var(--color-highlight);
}

.bk-hero__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-on-dark-muted);
}

.bk-hero__stores a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 600;
  color: var(--color-on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.bk-hero__stores a:hover,
.bk-hero__stores a:focus-visible {
  color: var(--color-highlight);
}

.bk-hero__team-link {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-on-dark-muted);
}

.bk-hero__team-link a {
  font-weight: 600;
  color: var(--color-highlight);
}

.bk-hero__book-wrap {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
}

.bk-hero__canvas {
  position: absolute;
  top: -5rem;
  left: -5rem;
  width: calc(100% + 10rem);
  height: calc(100% + 10rem);
  pointer-events: none;
  z-index: 0;
}

.bk-hero__book {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 28px 60px rgba(43, 137, 146, 0.25));
}

/* ── Book: shared page pieces ───────────────────────────────── */

.bk-narrow {
  max-width: var(--container-reading);
}

.bk-narrow h2,
#book-voices-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.4rem);
  line-height: 1.12;
}

.bk-pull {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-accent);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

/* ── Book: final CTA ───────────────────────────────────────── */

.bk-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--color-dark);
  color: var(--color-on-dark);
  text-align: center;
}

.bk-final__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.bk-final__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 35, 45, 0.82);
}

.bk-final h2 {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem);
  color: var(--color-white);
}

.bk-final p {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  color: var(--color-on-dark-muted);
}

.bk-final .bk-final__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 1.75rem auto 0;
}

/* ── Book: author + bulk orders ─────────────────────────────── */

.bk-bulk {
  padding: var(--section-space) 0;
  background: var(--color-bg);
}

.bk-bulk__note {
  max-width: 42rem;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Free Book ─────────────────────────────────────────────── */

.fb-hero__sub {
  max-width: 30rem;
  margin-bottom: 1.75rem;
  font-size: var(--text-md);
  color: var(--color-on-dark-muted);
}

.fb-hero__sub strong {
  font-weight: 600;
  color: var(--color-white);
}

.fb-form-wrap {
  max-width: 26rem;
}

.fb-form-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-control);
}

.fb-hero__micro {
  margin: 0.75rem 0 0;
  font-size: var(--text-xs);
  color: var(--color-on-dark-muted);
}

.fb-hero__book {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-media);
  mix-blend-mode: lighten;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.4));
}

.fb-body {
  max-width: var(--container-reading);
  margin: 0 auto;
}

.fb-heading {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem);
  line-height: 1.15;
}

.fb-body p {
  margin: 0 0 1.1rem;
  color: var(--color-text-muted);
}

.fb-body p strong {
  font-weight: 600;
  color: var(--color-text);
}

.fb-anchor {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-brand);
}

.fb-body .fb-anchor {
  color: var(--color-brand);
}

.fb-sep {
  width: 2.5rem;
  height: 2px;
  margin: 2rem 0;
  background: var(--color-accent);
}

.fb-sep--center {
  margin-inline: auto;
}

.fb-authority {
  max-width: 40rem;
  margin: 0 auto;
  padding-left: 1.75rem;
  border-left: 2px solid var(--color-accent);
}

.fb-authority p {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.fb-authority p strong {
  color: var(--color-text);
}

.fb-final {
  text-align: center;
}

.fb-final__lede {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.45;
}

.fb-final .fb-heading {
  margin-bottom: 1rem;
}

.fb-final__alt {
  margin: 1.75rem 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 56rem) {
  .bk-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bk-hero__book-wrap {
    order: -1;
    max-width: 17.5rem;
  }

  .fb-hero .bk-hero__book-wrap {
    max-width: 15rem;
  }

  .fb-form-wrap {
    max-width: none;
  }
}

/* ── Book: endorsement cards with headshots ─────────────────── */

.bk-voices .quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bk-voices .quote-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.bk-voices blockquote.quote-card__text {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  flex: 1;
}

.bk-voices figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

@media (max-width: 64rem) {
  .bk-voices .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .bk-voices .quote-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Book: featured endorsement strip, centered ─────────────── */

.bk-proof .hero-proof__inner {
  justify-content: center;
  text-align: center;
}

.bk-proof .hero-proof__quote {
  font-size: var(--text-sm);
}

@media (max-width: 40rem) {
  .bk-proof .hero-proof__inner {
    flex-direction: column;
    gap: 0.6rem;
  }

  .bk-proof .hero-proof__quote cite {
    display: block;
    margin: 0.3rem 0 0;
  }
}

/* ── Free Book: post-signup page ───────────────────────────── */

.fba-confirm-bar {
  padding: 0.85rem var(--gutter);
  background: var(--color-highlight);
  color: var(--color-dark);
  text-align: center;
}

.fba-confirm-bar p {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.fba-video__label {
  margin: 0 0 0.9rem;
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}

.fba-cards {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.fba-final .fba-final__sub {
  margin: 1.25rem auto 0;
  font-size: var(--text-sm);
}

.fba-c3 {
  margin-top: clamp(2rem, 4vw, 3rem);
}
