/* ------------------------------------------------------------------
   BisonTongue — Book a call sheet (2026-11-01)
   After moment.so's booking modal: a sheet that rises from the bottom
   with intro · month · times, then the times swap for a short form, then
   a confirmation. Folded into ours: the forest surface, shadow and close
   button of the FAQ panel (.ans in pricing.css), mono caps labels, our
   button shape, and the site's yellow highlight marking today.
   Built by booking.js; every "Book a call" link opens it.
   DESIGN ONLY: times are a sample schedule and Confirm sends nothing yet
   (calendar provider comes later — see booking.js).
   ------------------------------------------------------------------ */
.bk{
  --bk-text:var(--ground);
  --bk-muted:rgba(255,253,250,.62);
  --bk-subtle:rgba(255,253,250,.32);
  --bk-line:rgba(255,253,250,.12);
  --bk-hover:rgba(255,253,250,.1);
  --bk-ease:cubic-bezier(.23,1,.32,1);
  position:fixed; inset:auto; margin:0; padding:0; border:0;   /* placed over the clicked button by booking.js */
  width:min(820px, calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px);
  overflow:auto; overscroll-behavior:contain;
  border-radius:20px; corner-shape:superellipse(1.25);
  background:var(--forest); color:var(--bk-text); font-family:var(--grot);
  box-shadow:0 0 0 1px rgba(255,255,255,.07) inset,
             0 30px 60px -20px rgba(10,22,13,.55), 0 8px 18px -8px rgba(10,22,13,.3);
  scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.2) transparent;
}
.bk{ transform-origin:var(--bk-ox, 50%) var(--bk-oy, 100%); }
/* grows out of the button it was opened from, with the FAQ panel's motion */
.bk[open]{ animation:bk-in .34s cubic-bezier(.16,1,.3,1); }
.bk.is-out{ animation:bk-out .2s cubic-bezier(.4,0,1,1) forwards; }
@keyframes bk-in{ from{ opacity:0; transform:translateY(8px) scale(.965); } to{ opacity:1; transform:none; } }
@keyframes bk-out{ to{ opacity:0; transform:translateY(6px) scale(.98); } }
/* phones, or no button to anchor to: a bottom sheet */
.bk.is-sheet{ left:12px; right:12px; bottom:12px; top:auto; width:auto; margin:0; transform-origin:50% 100%; }
.bk::backdrop{ background:color-mix(in srgb, var(--ground) 40%, transparent); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }

.bk__grid{
  display:grid; grid-template-columns:minmax(0, 1fr) 272px 196px; gap:28px;
  min-height:544px; padding:26px 26px 84px;   /* tall enough for the form step, so the sheet never jumps */
}
.bk__grid.is-form{ grid-template-columns:minmax(0, 1fr) minmax(0, 492px); }

/* intro */
.bk__intro{ display:flex; flex-direction:column; align-items:flex-start; gap:16px; min-width:0; }
.bk__title{ outline:none; margin:0; font-family:var(--head-font, var(--grot)); font-weight:400; font-size:26px; letter-spacing:-.025em; line-height:1; }
.bk__preview{ display:inline-flex; align-items:center; height:22px; padding:0 9px; border-radius:999px;
  background:#FFE14A; color:var(--forest); font:500 9.5px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; }
.bk__done a{ color:inherit; text-underline-offset:3px; }
.bk__pill{
  display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px; border-radius:999px;
  background:var(--bk-hover); color:var(--bk-text); font:400 14px/1 var(--grot);
}
.bk__pill svg{ flex:none; opacity:.8; }
.bk__pill b{ font-weight:400; color:var(--bk-muted); }
.bk__copy{ display:grid; gap:12px; margin-top:8px; }
.bk__copy p{ margin:0; font-size:15px; line-height:1.5; color:rgba(255,253,250,.86); text-wrap:pretty; max-width:30ch; }
.bk__link{
  appearance:none; border:0; cursor:pointer; margin-top:6px; height:30px; padding:0 12px; border-radius:999px;
  background:var(--bk-hover); color:var(--bk-text); font:500 10.5px/1 var(--mono); letter-spacing:var(--tr-m, .2em); text-transform:uppercase;
  transition:background-color .2s ease;
}
.bk__link:hover{ background:rgba(255,253,250,.18); }

/* month */
.bk__month-head{ display:flex; align-items:center; justify-content:space-between; height:30px; margin-bottom:14px; }
.bk__month-title{ margin:0; font:400 15px/1 var(--grot); }
.bk__nav{ display:flex; gap:4px; }
.bk__nav button{
  appearance:none; border:0; cursor:pointer; width:28px; height:28px; border-radius:8px; display:grid; place-items:center;
  background:none; color:var(--bk-muted); transition:background-color .2s ease, color .2s ease;
}
.bk__nav button:hover:not(:disabled){ background:var(--bk-hover); color:var(--bk-text); }
.bk__nav button:disabled{ opacity:.3; cursor:default; }
.bk__wk, .bk__days{ display:grid; grid-template-columns:repeat(7, 1fr); }
.bk__wk span{ height:30px; display:grid; place-items:center; font:500 10px/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--bk-muted); }
.bk__days{ row-gap:4px; margin-top:4px; }
.bk__day{
  appearance:none; border:0; background:none; padding:0; cursor:pointer; height:36px; display:grid; place-items:center;
  color:var(--bk-text); font:500 14px/1 var(--grot); font-variant-numeric:tabular-nums;
}
.bk__day span{ width:32px; height:32px; display:grid; place-items:center; border-radius:9px; corner-shape:superellipse(1.25); transition:background-color .2s ease, color .2s ease; }
.bk__day:disabled{ cursor:default; color:var(--bk-subtle); font-weight:400; }
.bk__day.is-out{ visibility:hidden; }
.bk__day:not(:disabled):not(.is-sel):hover span{ background:var(--bk-hover); }
.bk__day.is-today span{ border-radius:50%; background:#FFE14A; color:var(--forest); }
.bk__day.is-sel span{ background:var(--ground); color:var(--forest); }
.bk__day:focus{ outline:none; }
.bk__day:focus-visible span{ box-shadow:0 0 0 2px rgba(255,253,250,.55); }

/* times */
.bk__slots-head{ display:flex; align-items:baseline; gap:6px; height:30px; margin:0 0 14px; font:400 15px/30px var(--grot); }
.bk__slots-head b{ font-weight:400; color:var(--bk-muted); }
.bk__slots{ display:grid; align-content:start; }
.bk__slot{
  appearance:none; border:0; border-bottom:1px solid var(--bk-line); background:none; cursor:pointer; text-align:left;
  padding:9px 8px; margin:0 -8px; border-radius:6px; color:var(--bk-text); font:400 14px/1.2 var(--grot); font-variant-numeric:tabular-nums;
  transition:background-color .2s ease;
}
.bk__slot:hover{ background:var(--bk-hover); }
.bk__slot:focus{ outline:none; }
.bk__slot:focus-visible{ box-shadow:0 0 0 2px rgba(255,253,250,.55); }
.bk__empty{ margin:0; font-size:14px; line-height:1.5; color:var(--bk-muted); }

/* form */
.bk__form{ display:flex; flex-direction:column; gap:20px; min-width:0; }
.bk__chosen{ margin:0; height:30px; font:400 15px/30px var(--grot); color:var(--bk-muted); }
.bk__f{ display:grid; gap:8px; }
.bk__f label{ font:500 10px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--bk-muted); }
.bk__f input, .bk__f textarea{
  appearance:none; width:100%; margin:0; padding:4px 0 10px; border:0; border-bottom:1px solid var(--bk-line); border-radius:0;
  background:none; color:var(--bk-text); caret-color:var(--bk-text); font:400 15px/1.4 var(--grot); outline:none; resize:none;
  transition:border-color .2s ease;
}
.bk__f input::placeholder, .bk__f textarea::placeholder{ color:var(--bk-subtle); }
.bk__f input:focus, .bk__f textarea:focus{ border-bottom-color:rgba(255,253,250,.6); }
.bk__hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.bk__actions{ display:grid; gap:8px; margin-top:auto; padding-top:12px; }
.bk__go, .bk__back{
  appearance:none; border:0; cursor:pointer; height:44px; border-radius:12px; corner-shape:superellipse(1.25);
  font:500 11px/1 var(--mono); letter-spacing:var(--tr-m, .2em); text-transform:uppercase;
  transition:transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.bk__go{
  background:var(--ground); color:var(--forest);
  background-image:linear-gradient(180deg, #fff, color-mix(in srgb, var(--ground) 90%, var(--forest)) 140%);
  box-shadow:inset 0 2px 0 #fff, inset 0 -2px 0 color-mix(in srgb, var(--forest) 10%, transparent), 0 10px 20px -12px rgba(0,0,0,.5);
}
.bk__go:hover{ transform:translateY(-1px); }
.bk__go:active, .bk__back:active{ transform:translateY(1px); }
.bk__back{ background:var(--bk-hover); color:var(--bk-text); }
.bk__back:hover{ background:rgba(255,253,250,.16); }
.bk__note{ margin:4px 0 0; text-align:center; font-size:13px; color:var(--bk-muted); }

/* done */
.bk__done{ display:flex; flex-direction:column; justify-content:center; gap:12px; min-width:0; }
.bk__done h3{ margin:0; font-family:var(--head-font, var(--grot)); font-weight:400; font-size:26px; letter-spacing:-.025em; line-height:1.1; }
.bk__done p{ margin:0; font-size:15px; line-height:1.5; color:rgba(255,253,250,.86); max-width:40ch; }

/* close: round, bottom centre, as Moment's — our .ans__x, larger */
.bk__x{
  position:absolute; left:50%; bottom:20px; transform:translateX(-50%);
  appearance:none; border:0; cursor:pointer; width:40px; height:40px; border-radius:50%;
  display:grid; place-items:center; color:var(--ground); background:var(--bk-hover);
  transition:background-color .2s ease;
}
.bk__x:hover{ background:rgba(255,255,255,.18); }
.bk__x:focus{ outline:none; }
.bk__x:focus-visible{ box-shadow:0 0 0 2px rgba(255,253,250,.45); }

/* the step swap: new columns rise in */
.bk__grid > .bk__step{ animation:bk-step .32s var(--bk-ease); }
@keyframes bk-step{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

@media (max-width:860px){
  .bk__grid, .bk__grid.is-form{ grid-template-columns:minmax(0, 1fr); min-height:0; gap:24px; padding:22px 20px 80px; }
  .bk__copy p{ max-width:none; }
  .bk__slots{ max-height:none; }
}
@media (prefers-reduced-motion: reduce){
  .bk[open], .bk.is-out, .bk__grid > .bk__step{ animation:none; }
}
.bk__note.is-err{ color:#FFE14A; }

/* forecast icons under the day numbers (2026-11-03) — OFF for now (FORECAST=false in booking.js);
   restore these rules with it: .bk__days{row-gap:6px} .bk__day{position:relative;height:48px;align-content:start}
   .bk__wx{position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);display:block;width:15px;height:15px;line-height:0}
   .bk__day:disabled .bk__wx{opacity:.55} */

/* phones: one step per screen with a progress line (booking.js, user 2026-11-11) */
.bk__prog{ display:none; }
@media (max-width:600px){
  .bk__prog{ display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px 12px; }
  .bk__prog-n{ font:500 11px/1 var(--mono); letter-spacing:.12em; color:var(--bk-muted); }
  .bk__prog-l{ font:500 11px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--bk-text); }
  .bk__prog i{ grid-column:1 / -1; display:block; height:2px; border-radius:2px; background:var(--bk-line); overflow:hidden; }
  .bk__prog b{ display:block; height:100%; background:var(--bk-text); transition:width .3s var(--bk-ease); }
  .bk__grid.is-p2 .bk__copy, .bk__grid.is-p2 .bk__pill{ display:none; }   /* intro copy on step 1 only */
  .bk__grid{ gap:20px !important; }
  .bk__times .bk__slots{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .bk__times .bk__slot{ min-height:48px; margin:0; padding:0 8px; border:1px solid var(--bk-line); border-radius:12px; text-align:center; font-size:15px; }
  .bk__back--day{ justify-self:start; }
}
@media (max-width:600px) and (prefers-reduced-motion: reduce){ .bk__prog b{ transition:none; } }

/* loading: a small hurricane turning while Cal.com answers (2026-11-22).
   The box holds the height of the step that replaces it, so the sheet
   doesn't jump; booking.js keeps it up at least ~0.5s so it never flashes. */
.bk__load{ display:grid; place-content:center; justify-items:center; gap:14px; min-height:var(--bk-load-h, 300px); }
.bk__vh{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; margin:0; }
.bk__storm{ width:24px; height:24px; color:var(--bk-muted); animation:bk-spin 1s linear infinite; }
@keyframes bk-spin{ to{ transform:rotate(360deg); } }
.bk__go.is-busy{ display:inline-flex; align-items:center; justify-content:center; gap:10px; cursor:progress; }
.bk__go.is-busy .bk__storm{ width:16px; height:16px; color:var(--forest); }
/* measured 2026-11-22 so the sheet keeps its height when the calendar arrives */
@media (max-width:860px){ .bk__load{ min-height:502px; } }
@media (max-width:600px){ .bk__load{ min-height:337px; } }
@media (prefers-reduced-motion: reduce){ .bk__storm{ animation-duration:2.5s; } }
