/* /book — the Pulsium discovery-call booking page.
   Light marketing surface on the Cool Slate light palette: tokens come from
   styles.css (loaded first). One glass card holds the whole flow: day strip,
   slot grid, then the form once a time is picked, then the booked state.
   Buttons are the two house kinds only; hover is border colour, never a
   lift; loading is the Signal Orbit, and nothing else. */

body.book-page{background:var(--paper)}
/* An explicit display (grid on the orbit blocks and the veil) beats the UA's
   [hidden]{display:none}, so restate it — without this the veil covers the
   page forever. */
body.book-page [hidden]{display:none !important}
/* Kill the mobile tap flash — selection state is the pill's own fill. */
.bk-day,.bk-slot,.bk-btn,.bk-chip{-webkit-tap-highlight-color:transparent}
/* The shared nav ships hidden for the home page's entrance; on this page it
   is simply present (same rule the legal pages carry). */
body.book-page #nav{opacity:1;transform:translateX(-50%)}

.bk{
  max-width:720px;margin:0 auto;
  padding:clamp(120px,16vh,168px) 20px 96px;
}

/* ── Heading block ──────────────────────────────────────────────────────── */
.bk-head{text-align:center;margin:0 0 32px}
.bk-head h1{
  margin:0;color:var(--ink);font-weight:700;
  font-size:clamp(30px,3.4vw,44px);letter-spacing:-0.03em;line-height:1.08;
}
.bk-accent{
  margin:6px 0 0;font-family:var(--font-serif);font-style:italic;font-weight:400;
  font-size:clamp(22px,2.6vw,33px);letter-spacing:-0.02em;color:var(--ink);
}
.bk-lede{
  margin:16px auto 0;max-width:56ch;
  font-size:16px;line-height:1.6;color:rgba(14,10,7,.6);
}

/* ── The glass card ─────────────────────────────────────────────────────── */
.bk-card{
  background:rgba(254,254,254,.82);
  -webkit-backdrop-filter:blur(20px) saturate(1.6);
  backdrop-filter:blur(20px) saturate(1.6);
  border:1px solid rgba(14,10,7,.08);
  border-radius:22px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  padding:28px clamp(20px,4vw,36px) 32px;
}
.bk-card h2{
  margin:0;color:var(--ink);font-weight:700;font-size:21px;letter-spacing:-0.014em;
}

/* ── Signal Orbit (the one loading treatment) ───────────────────────────── */
.bk-loading{display:grid;place-items:center;padding:72px 0}
.bk-orbit{
  width:52px;height:52px;border-radius:50%;
  border:2px solid #EAF1FE;
  border-top-color:var(--blue-2);border-right-color:var(--blue-2);
  animation:bk-spin 1s linear infinite;
}
@keyframes bk-spin{to{transform:rotate(360deg)}}

/* ── Honest fallback ────────────────────────────────────────────────────── */
.bk-fallback{text-align:center;padding:40px 0 16px}
.bk-fallback p{margin:12px 0 24px;color:rgba(14,10,7,.6);font-size:15px;line-height:1.6}

/* ── Week header: label + the round back/ahead chips ────────────────────── */
.bk-period{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.bk-weeklabel{
  font-family:var(--font-sans);font-size:16px;font-weight:600;
  letter-spacing:-0.01em;color:var(--ink);
}
.bk-weeknav{display:flex;gap:8px}
.bk-chip{
  width:38px;height:38px;border-radius:50%;flex:0 0 auto;cursor:pointer;
  background:#FFFFFF;border:1px solid rgba(14,10,7,.12);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--ink);transition:border-color .18s ease,color .18s ease;
}
.bk-chip svg{width:16px;height:16px;transition:transform .18s ease}
.bk-chip:hover:not(:disabled){border-color:var(--blue-2);color:var(--blue-2)}
.bk-chip:hover:not(:disabled) .bk-chip-l{transform:translateX(-2px)}
.bk-chip:hover:not(:disabled) .bk-chip-r{transform:translateX(2px)}
.bk-chip:disabled{opacity:.35;cursor:default}
.bk-chip:focus-visible{outline:none;border-color:var(--blue-2)}

/* ── Day strip — one full week, Monday to Sunday, never scrolls ─────────── */
.bk-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.bk-day{
  min-width:0;padding:12px 4px 11px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:2px;
  background:#FFFFFF;border:1px solid rgba(14,10,7,.12);border-radius:16px;
  font-family:var(--font-sans);color:var(--ink);
  transition:border-color .18s ease,color .18s ease,background .18s ease;
}
.bk-day .bk-day-wd{font-size:12px;font-weight:500;color:rgba(14,10,7,.55)}
.bk-day .bk-day-n{font-size:21px;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}
.bk-day .bk-day-m{font-size:11px;font-weight:500;color:rgba(14,10,7,.55)}
.bk-day:hover:not(:disabled){border-color:var(--blue-2)}
.bk-day:hover:not(:disabled) .bk-day-wd,
.bk-day:hover:not(:disabled) .bk-day-n,
.bk-day:hover:not(:disabled) .bk-day-m{color:var(--blue-2)}
.bk-day[aria-selected="true"]{background:var(--blue-2);border-color:var(--blue-2)}
.bk-day[aria-selected="true"] .bk-day-wd,
.bk-day[aria-selected="true"] .bk-day-n,
.bk-day[aria-selected="true"] .bk-day-m{color:#FFFFFF}
.bk-day:disabled{opacity:.35;cursor:default}
.bk-day:focus-visible{outline:none;border-color:var(--blue-2)}

/* ── Slot grid ──────────────────────────────────────────────────────────── */
/* Double selector so the margin and size beat the .bk-card h2 reset. */
.bk-picker .bk-dayhead{margin:24px 0 14px;font-size:16px;font-weight:600}
.bk-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
.bk-slot{
  height:46px;cursor:pointer;
  background:#FFFFFF;border:1px solid rgba(14,10,7,.12);border-radius:999px;
  font-family:var(--font-sans);font-size:14px;font-weight:600;color:var(--ink);
  font-variant-numeric:tabular-nums;
  transition:border-color .18s ease,color .18s ease,background .18s ease;
}
.bk-slot:hover{border-color:var(--blue-2);color:var(--blue-2)}
.bk-slot[aria-selected="true"]{background:var(--blue-2);border-color:var(--blue-2);color:#FFFFFF}
.bk-slot:focus-visible{outline:none;border-color:var(--blue-2)}
.bk-empty{margin:8px 0 0;color:rgba(14,10,7,.55);font-size:14px}
.bk-tznote{margin:16px 0 0;font-size:13px;color:rgba(14,10,7,.45)}

/* ── The form ───────────────────────────────────────────────────────────── */
.bk-rule{border:0;border-top:1px solid var(--line);margin:24px 0}
.bk-picked{margin:0 0 20px}
.bk-pickedline{margin:6px 0 0;font-size:15px;color:rgba(14,10,7,.6)}
.bk-form{display:flex;flex-direction:column;gap:16px}
.bk-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.bk-field{display:flex;flex-direction:column;gap:6px}
.bk-field label{
  font-family:var(--font-sans);font-size:13px;font-weight:600;color:var(--ink);
}
.bk-field input{
  height:46px;padding:0 14px;
  background:#FFFFFF;border:1px solid rgba(14,10,7,.12);border-radius:12px;
  font-family:var(--font-body);font-size:15px;color:var(--ink);
  transition:border-color .18s ease;
}
.bk-field input::placeholder{color:rgba(14,10,7,.35)}
.bk-field input:hover,.bk-field input:focus{border-color:var(--blue-2);outline:none;box-shadow:none}
.bk-error{margin:0;font-size:14px;color:#D93025}

/* ── Buttons: the two house kinds ───────────────────────────────────────── */
.bk-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:48px;padding:0 26px;border-radius:999px;cursor:pointer;
  font-family:var(--font-sans);font-size:14px;font-weight:600;
  text-decoration:none;transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.bk-btn--primary{background:var(--blue-2);border:none;color:#FFFFFF}
.bk-btn--primary:hover{background:#1668D6}
.bk-submit{width:100%;gap:10px}
/* The shared trust-CTA arrow (styles.css .cta-arrow) glides forward on
   hover, matching the site-wide CTAs. */
.bk-submit:hover .cta-arrow{transform:translateX(5px)}
/* The button never animates or greys out while the booking lands — the
   full-page veil is the loading treatment. */
.bk-submit:disabled{background:var(--blue-2);color:#FFFFFF;opacity:1;cursor:default}

/* ── Success ────────────────────────────────────────────────────────────── */
.bk-done{text-align:center;padding:24px 0 8px}
.bk-doneline{margin:10px 0 0;font-size:17px;color:var(--ink);font-weight:600}
.bk-donesub{margin:12px auto 24px;max-width:44ch;font-size:15px;line-height:1.6;color:rgba(14,10,7,.6)}

/* ── The takeover veil ──────────────────────────────────────────────────── */
.bk-veil{
  position:fixed;inset:0;z-index:80;background:var(--paper);
  display:grid;place-items:center;
}

/* ── Entrance: sequential fade-and-rise ─────────────────────────────────── */
.bk-enter{
  opacity:0;transform:translateY(14px);
  animation:bk-rise .55s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay:calc(var(--bk-i) * .12s);
}
@keyframes bk-rise{to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion: reduce){
  .bk-enter{opacity:1;transform:none;animation:none}
  .bk-day,.bk-slot,.bk-btn,.bk-field input,.bk-chip,.bk-chip svg{transition:none}
}

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width:560px){
  .bk{padding-top:104px}
  .bk-row{grid-template-columns:1fr}
  .bk-days{gap:8px}
  .bk-day{padding:10px 4px 9px;border-radius:14px;min-width:0}
  .bk-day .bk-day-n{font-size:18px}
  /* No room for a full month name in a fifth of a phone card — the week
     label and the day heading both carry it, so the pill drops it. */
  .bk-day .bk-day-m{display:none}
  .bk-slots{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px}
}
