/* ============================================================
   /BOOK — LEAD QUALIFICATION
   Quiz-style screen → results screen with conditional CTAs
   ============================================================ */

.page-book { padding-top: 72px; }

/* ============================ HERO ============================ */
.book-hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.book-hero__inner {
  position: relative;
  z-index: var(--z-base);
  padding-block: var(--s-12);
  width: 100%;
  max-width: var(--tight-w);
  margin-inline: auto;
}
.book-hero__h {
  font-size: clamp(2.5rem, 1.6rem + 5vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: var(--s-6);
}
.book-hero__lede {
  color: var(--cyan-300);
  max-width: 60ch;
  margin-bottom: var(--s-10);
  font-size: var(--text-lg);
  line-height: 1.45;
}

/* ============================ STEPS ============================ */
.book-steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.book-step {
  background: rgba(0, 208, 255, 0.04);
  border: 1px solid var(--card-border-on-dark);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: none;
}
.book-step[data-active="true"] { display: block; }

.book-step__num {
  display: inline-block;
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--cyan-500);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.book-step__num .num { color: var(--cyan-300); margin-right: 4px; }

.book-step__q {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  letter-spacing: var(--tracking-headline);
  line-height: 1.15;
  margin-bottom: var(--s-4);
}
.book-step__hint {
  color: var(--fg-muted-dark);
  font-size: var(--text-sm);
  margin-bottom: var(--s-6);
}

/* ============================ ANSWER OPTIONS ============================ */
.book-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 540px) {
  .book-options--two { grid-template-columns: 1fr 1fr; }
  .book-options--seven { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .book-options--seven { grid-template-columns: repeat(3, 1fr); }
}

.book-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  background: var(--bg-dark);
  border: 1px solid var(--card-border-on-dark);
  border-radius: var(--r-md);
  color: var(--fg-on-dark);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: var(--tracking-tight);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out);
}
.book-opt:hover {
  border-color: var(--cyan-500);
  background: rgba(0, 208, 255, 0.06);
  transform: translateY(-2px);
}
.book-opt[data-selected="true"] {
  border-color: var(--cyan-500);
  background: rgba(0, 208, 255, 0.10);
  box-shadow: var(--glow-cyan-sm);
}
.book-opt__arrow {
  color: var(--cyan-500);
  transition: transform var(--t-base) var(--ease-out);
}
.book-opt:hover .book-opt__arrow { transform: translateX(4px); }

/* Step navigation */
.book-step__nav {
  margin-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.book-step__back {
  background: none;
  border: 0;
  color: var(--fg-muted-dark);
  font-size: var(--text-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--t-base) var(--ease-out);
}
.book-step__back:hover { color: var(--cyan-500); }

/* Progress bar */
.book-progress {
  height: 3px;
  background: var(--rule-on-dark);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: var(--s-8);
}
.book-progress__fill {
  height: 100%;
  background: var(--cyan-500);
  width: 33%;
  transition: width var(--t-slow) var(--ease-out);
}

/* ============================ RESULTS ============================ */
.book-results {
  display: none;
}
.book-results[data-active="true"] { display: block; }

.book-results__h {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  letter-spacing: var(--tracking-headline);
  line-height: 1.05;
  margin-bottom: var(--s-4);
}
.book-results__lede {
  color: var(--cyan-300);
  font-size: var(--text-lg);
  margin-bottom: var(--s-10);
  max-width: 60ch;
}

/* CTA cards */
.book-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .book-paths { grid-template-columns: 1fr 1fr; }
}

.book-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: rgba(0, 208, 255, 0.04);
  border: 1px solid var(--card-border-on-dark);
  border-radius: var(--r-xl);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.book-path:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-500);
  box-shadow: var(--glow-cyan-sm);
}
.book-path--featured {
  background: linear-gradient(160deg, rgba(0, 208, 255, 0.12), rgba(0, 21, 26, 0.85));
  border-color: var(--cyan-500);
  grid-column: 1 / -1;
}
.book-path--featured::before {
  content: "Free for qualified visitors";
  position: absolute;
  top: -12px; left: 24px;
  background: var(--cyan-500);
  color: var(--cyan-950);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.book-path__tag {
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--cyan-500);
  font-weight: 600;
}
.book-path__h {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-headline);
  line-height: 1.15;
  color: var(--fg-on-dark);
}
.book-path__body {
  color: var(--fg-muted-dark);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}

.book-path__pricing {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.book-path__price-now {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: var(--text-2xl);
  color: var(--cyan-500);
  letter-spacing: var(--tracking-headline);
}
.book-path__price-was {
  text-decoration: line-through;
  color: var(--fg-muted-dark);
  font-size: var(--text-base);
}
.book-path__urgency {
  font-size: var(--text-xs);
  color: var(--signal-red);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

.book-path__cta {
  margin-top: auto;
  padding-top: var(--s-3);
}

.book-path__meta {
  font-size: var(--text-xs);
  color: var(--fg-muted-dark);
  margin-top: var(--s-2);
}

/* Restart link */
.book-restart {
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule-on-dark);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--fg-muted-dark);
}
.book-restart button {
  background: none;
  border: 0;
  color: var(--cyan-500);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.book-restart button:hover { color: var(--cyan-300); }
