/* ============================================================
   Book a Call — editorial layout & styling
   Uses tokens from site.css (--paper, --ink, --brand, --accent…)
   ============================================================ */

/* ---------- Stage ---------- */
.book-stage {
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 620px at 88% -8%, rgba(43,181,115,.13), transparent 62%),
    radial-gradient(900px 520px at -10% 8%, rgba(15,61,46,.07), transparent 60%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.book-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,26,21,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,26,21,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: .55;
}
.book-stage::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rule);
}
.book-stage .container { position: relative; z-index: 1; }

.book-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  min-width: 0;
}

.book-stage-grid > *,
.book-intro,
.book-cal {
  min-width: 0;
}

/* Left column ------------------------------------------------ */
.book-intro .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2, var(--ink-2));
  padding: 7px 14px 7px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(15,26,21,.02);
}
.book-intro .eyebrow-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(43,181,115,.18);
  animation: book-pulse 1.8s ease-in-out infinite;
}
.book-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--accent-ink);
  margin: 22px 0 22px;
  max-width: 22ch;
}
.book-intro h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: 400;
}
.book-intro .lede {
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 28px;
}

.book-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.book-meta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.book-meta-pill:hover {
  border-color: var(--rule-2, color-mix(in srgb, var(--brand) 24%, var(--rule)));
  color: var(--ink);
  transform: translateY(-1px);
}
.book-meta-pill svg { color: var(--brand); flex: none; }

.book-assure {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  margin-bottom: 26px;
}
.book-assure-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.book-assure-ic {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%);
  color: var(--accent);
  flex: none;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  box-shadow: 0 1px 0 rgba(15,26,21,.02), inset 0 1px 0 rgba(255,255,255,.6);
}
.book-assure-t {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.99rem;
  line-height: 1.3;
  margin-bottom: 3px;
  letter-spacing: -0.005em;
}
.book-assure-s {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.book-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 1px 0 rgba(15,26,21,.02);
}
.book-trust img { height: 28px; width: auto; }
.book-trust-meta {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.35;
}
.book-trust-meta strong { color: var(--ink); font-weight: 600; }
.book-trust { list-style: none; }
.book-trust::marker { content: ""; }

/* ---------- Right column: calendar card ---------- */
.book-cal {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(15,26,21,.02),
    0 40px 80px -36px rgba(15,61,46,.22),
    0 16px 36px -22px rgba(15,61,46,.14);
  overflow: hidden;
  scroll-margin-top: 96px;
  isolation: isolate;
}
.book-cal::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--brand) 50%, transparent) 0%,
    transparent 35%,
    transparent 65%,
    color-mix(in srgb, var(--brand) 30%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: .8;
}
.book-cal-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--brand);
  z-index: 3;
  pointer-events: none;
}
.book-cal-corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.book-cal-corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.book-cal-corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.book-cal-corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }

.book-cal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbfaf7 0%, #fff 100%);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 1;
}
.book-cal-head .label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.book-cal-head .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(43,181,115,.18);
  animation: book-pulse 1.8s ease-in-out infinite;
}
@keyframes book-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .55; }
}
.book-cal-head .meta { color: var(--ink-3); }

.book-cal-loading {
  position: relative;
  display: grid; place-items: center;
  gap: 14px;
  min-height: 600px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity .28s ease;
  background:
    radial-gradient(420px 200px at 50% 30%, rgba(43,181,115,.06), transparent 70%),
    #fff;
}
.book-cal-loading.is-gone { opacity: 0; pointer-events: none; }
.book-cal-loading .spinner {
  width: 36px; height: 36px;
  border: 2.5px solid var(--rule);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: book-spin .9s linear infinite;
}
@keyframes book-spin { to { transform: rotate(360deg); } }

.book-cal-clip {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
}

.book-cal-frame {
  display: block;
  width: calc(100% + 24px) !important;
  max-width: none !important;
  min-width: 0;
  height: 844px !important;
  min-height: 820px !important;
  margin-right: -24px;
  margin-bottom: -24px;
  border: 0;
  background: #fff;
}
.book-cal-loading:not(.is-gone) + .book-cal-frame {
  margin-top: -600px;
  opacity: 0;
  animation: book-fade-in .45s ease forwards 0s;
}
@keyframes book-fade-in { to { opacity: 1; } }

/* ---------- Detail section ---------- */
.book-detail {
  padding: 96px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.book-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.book-detail .section-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  padding-left: 28px;
  position: relative;
}
.book-detail .section-kicker::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 20px; height: 1px; background: var(--brand);
}
.book-detail h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  color: var(--accent-ink);
  letter-spacing: -0.012em;
  margin-top: 16px;
}
.book-detail p {
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.68;
  max-width: 52ch;
}

.book-prep {
  background: linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  box-shadow:
    0 1px 0 rgba(15,26,21,.02),
    0 24px 50px -34px rgba(15,61,46,.18);
  position: relative;
  overflow: hidden;
}
.book-prep::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 40%, transparent));
}
.book-prep h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2, var(--ink-2));
  margin: 0 0 22px;
  font-weight: 600;
}
.book-prep ol {
  list-style: none;
  counter-reset: prep;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.book-prep ol li {
  counter-increment: prep;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.58;
}
.book-prep ol li:last-child { border-bottom: 0; padding-bottom: 0; }
.book-prep ol li::before {
  content: counter(prep, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--brand);
  padding-top: 2px;
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.book-prep ol li strong { color: var(--ink); font-weight: 600; }

/* ---------- Quote strip ---------- */
.book-quote {
  padding: 72px 0;
  background:
    radial-gradient(800px 360px at 50% 20%, rgba(43,181,115,.07), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}
.book-quote-card {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 24px;
}
.book-quote-mark {
  color: color-mix(in srgb, var(--brand) 28%, transparent);
  margin-bottom: 4px;
}
.book-quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
  margin: 6px 0 24px;
}
.book-quote figcaption {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  min-width: 220px;
}
.book-quote-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.book-quote-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Expect timeline ---------- */
.expect {
  padding: 96px 0;
  background: var(--paper-2, var(--paper));
  position: relative;
}
.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.expect-grid::before {
  content: "";
  position: absolute;
  top: 56px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), var(--rule), transparent);
  z-index: 0;
}
.expect-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  z-index: 1;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.expect-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -30px rgba(15,61,46,.2);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--rule));
}
.expect-item .num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--brand-tint);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.expect-item .num::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand);
}
.expect-item h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--accent-ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.expect-item p {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.62;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .book-stage-grid { grid-template-columns: 1fr; gap: 44px; }
  .book-intro { max-width: 720px; }
  .book-cal { position: static; }
}
@media (max-width: 880px) {
  .book-stage { padding: 56px 0 44px; }
  .book-stage-grid { gap: 36px; }
  .book-detail { padding: 64px 0; }
  .book-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .expect { padding: 64px 0; }
  .expect-grid { grid-template-columns: 1fr; gap: 16px; }
  .expect-grid::before { display: none; }
  .book-cal-loading { min-height: 480px; }
  .book-cal-frame { min-height: 680px !important; }
  .book-cal-loading:not(.is-gone) + .book-cal-frame { margin-top: -480px; }
  .book-prep { padding: 24px; }
  .book-trust { flex-wrap: wrap; }
  .book-quote { padding: 56px 0; }
}
@media (max-width: 640px) {
  .book-cal {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .book-cal::before,
  .book-cal-corner {
    display: none;
  }

  .book-cal-clip {
    width: 100vw;
    max-width: 100vw;
  }

  .book-cal-frame {
    width: 584px !important;
    max-width: none !important;
    height: 1704px !important;
    min-height: 0;
    transform: scale(0.74);
    transform-origin: top left;
    margin-bottom: -461px;
  }
}
@media (max-width: 400px) {
  .book-cal-frame {
    transform: scale(0.695);
    margin-bottom: -536px;
  }
}
@media (max-width: 480px) {
  .book-cal-head { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
  .book-cal-head .meta { font-size: 10.5px; }
  .book-intro h1 { max-width: 100%; }
  .book-meta-pill { font-size: 0.8rem; padding: 7px 11px; }
  .book-intro .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    padding: 6px 12px 6px 10px;
  }
  .book-cal-corner { width: 10px; height: 10px; }
  .book-cal-corner--tl, .book-cal-corner--tr { top: 6px; }
  .book-cal-corner--bl, .book-cal-corner--br { bottom: 6px; }
  .book-cal-corner--tl, .book-cal-corner--bl { left: 6px; }
  .book-cal-corner--tr, .book-cal-corner--br { right: 6px; }
}
@media (max-width: 374px) {
  .book-cal-frame {
    transform: scale(0.64);
    margin-bottom: -629px;
  }
}
@media (max-width: 330px) {
  .book-cal-frame {
    transform: scale(0.57);
    margin-bottom: -746px;
  }
}
