/* ==========================================================================
   /booking — scoped conversion layout.
   Design-system first: everything here is layout/behaviour the shared
   components.css doesn't own. No new colours, radii or type scales:
   only tokens. Prefix .bk- so nothing leaks to other pages.
   ========================================================================== */

/* ---------- 1. HERO: copy left, live calendar right ----------------------
   The booking widget IS the hero. A visitor who arrived to book never has to
   scroll or click an anchor to reach it. */
.bk-hero { padding-top: clamp(4.5rem, 3rem + 5vw, 7.5rem); padding-bottom: var(--section-pad); text-align: left; }
.bk-hero__grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(var(--space-6), 4vw, var(--space-8)); align-items: start;
}
.bk-hero__copy { position: sticky; top: 96px; }
.bk-hero .ns-display { margin-bottom: var(--space-5); }
.bk-hero .ns-lead { margin: 0 0 var(--space-6); max-width: 46ch; }

/* ---------- 2. "What the call actually is" meta list --------------------
   Kills the single biggest booking objection (is this a sales trap?) before
   the visitor reaches the date picker. */
.bk-meta { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3); }
.bk-meta li { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-80); font-size: var(--fs-body); }
.bk-meta svg { flex: 0 0 auto; }
.bk-meta__icon {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: rgba(164, 92, 224, .12); border: 1px solid var(--line-2);
}

/* ---------- 3. Trust strip under the meta list -------------------------- */
.bk-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5);
  padding-top: var(--space-5); border-top: 1px solid var(--line-1);
}
.bk-trust__stat { display: flex; flex-direction: column; gap: 2px; }
.bk-trust__num {
  font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-tight);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bk-trust__label { color: var(--ink-40); font-size: var(--fs-small); }

/* ---------- 4. The calendar card ----------------------------------------
   Framed to match .ns-card so the third-party iframe reads as part of the
   product, not a bolted-on vendor widget. Fixed min-height reserves the
   space the iframe will occupy => zero CLS when Calendly injects. */
.bk-cal {
  scroll-margin-top: 104px; /* clears the fixed header when the closing CTA jumps here */
  background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: var(--space-4); position: relative; overflow: hidden;
}
.bk-cal::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-brand-soft);
  opacity: .35; pointer-events: none;
}
.bk-cal__frame { position: relative; z-index: 1; border-radius: var(--r-lg); overflow: hidden; min-height: 700px; background: var(--bg-elev); }
.bk-cal .calendly-inline-widget { min-width: 0; width: 100%; height: 700px; }

/* Skeleton: shown until Calendly paints, hidden by booking.js. Keeps the
   card from reading as a broken/empty box during the third-party fetch. */
.bk-cal__skeleton {
  position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center; gap: var(--space-4);
  background: var(--bg-elev); text-align: center; padding: var(--space-6);
}
.bk-cal__skeleton[hidden] { display: none; }
.bk-cal__spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--violet);
  animation: bk-spin 900ms linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-cal__spinner { animation-duration: 3s; } }
.bk-cal__skeleton p { margin: 0; color: var(--ink-40); font-size: var(--fs-small); }

/* Fallback: a real link out to Calendly. A blocked iframe (privacy extension,
   corporate network, script failure) must never mean zero conversions. */
.bk-cal__fallback { margin: var(--space-4) 0 0; text-align: center; font-size: var(--fs-small); color: var(--ink-40); position: relative; z-index: 1; }
.bk-cal__fallback a { color: var(--periwinkle); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. Persona cards (proof folded in) -------------------------- */
.bk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.bk-card { display: flex; flex-direction: column; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.bk-card:hover { transform: translateY(-4px); border-color: rgba(164, 92, 224, .5); }
.bk-card .ns-card__body { flex: 1; }
.bk-card__quote { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line-1); }
.bk-card__quote p { margin: 0 0 var(--space-3); color: var(--ink-80); font-size: var(--fs-small); line-height: var(--lh-normal); }
.bk-card__who { display: flex; align-items: center; gap: 10px; }
.bk-card__who img { width: 34px; height: 34px; border-radius: var(--r-pill); object-fit: cover; border: 1px solid var(--line-2); }
.bk-card__who span { color: var(--ink); font-weight: var(--fw-semibold); font-size: var(--fs-small); }

/* ---------- 6. Agenda: what the 30 minutes look like -------------------- */
.bk-agenda { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: bk-step; }
.bk-agenda__step { position: relative; padding-top: var(--space-5); border-top: 2px solid var(--line-2); }
.bk-agenda__step::before {
  counter-increment: bk-step; content: counter(bk-step);
  font-family: var(--font-mono); font-size: var(--fs-small); color: var(--periwinkle); display: block; margin-bottom: var(--space-3);
}
.bk-agenda__step h3 { font-size: var(--fs-h4); margin: 0 0 var(--space-2); color: var(--ink); }
.bk-agenda__step p { margin: 0; color: var(--ink-60); font-size: var(--fs-small); line-height: var(--lh-relaxed); }
.bk-agenda__time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-40); display: block; margin-top: var(--space-3); }

/* ---------- 7. Responsive ----------------------------------------------- */
@media (max-width: 1024px) {
  .bk-hero__grid { grid-template-columns: 1fr; }
  .bk-hero__copy { position: static; }
  .bk-agenda, .bk-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bk-hero { text-align: left; }
  .bk-cal { padding: var(--space-2); }
  .bk-trust { gap: var(--space-4); }
}
