/* ============================================================================
   /consultation — the qualification flow behind the $2,500 CTA.

   Quiet and modern. Soft surfaces, hairline borders, one accent used sparingly,
   and a great deal of air. Nothing shouts: no uppercase tracking everywhere, no
   hard rules, no heavy chrome. The strongest colour on the page is the answer
   the visitor just picked.
   ========================================================================= */

:root{
  --cobalt:#2545A7;
  --cobalt-hover:#1d3a8f;
  --cobalt-tint:#f3f6fd;
  --cobalt-edge:#c3d0ef;
  --peri-deep:#6f86e0;

  --ink:#13171f;
  --ink-2:#5c6478;
  --ink-3:#8d94a5;

  --bg:#f8f9fc;
  --surface:#fff;
  --border:#e8ebf3;
  --border-2:#dfe3ee;

  --rec:#c2405f;
  --ease:cubic-bezier(.4,0,.2,1);
  --soft:cubic-bezier(.22,1,.36,1);
  --r:12px;
  --hdr:56px;
}

*{box-sizing:border-box;margin:0;padding:0}

/* The page does not scroll. Every screen is meant to sit in the viewport whole,
   and a form that jumps the page on each question feels loose. Anything that
   genuinely cannot fit (eight options on a short laptop, the calendar) scrolls
   INSIDE its own screen, so the header and the answer never drift apart. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{
  font-family:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:var(--bg); color:var(--ink);
  line-height:1.5; letter-spacing:-.006em;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--cobalt);color:#fff}

/* ==========================================================================
   HEADER
   ========================================================================== */

.hdr{
  position:fixed; inset:0 0 auto 0; z-index:40;
  background:rgba(248,249,252,.86);
  backdrop-filter:saturate(1.6) blur(12px);
  -webkit-backdrop-filter:saturate(1.6) blur(12px);
  border-bottom:1px solid var(--border);
}
.hdr-in{
  height:var(--hdr);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:0 clamp(20px,4vw,32px);
}

.brand{
  display:inline-flex; align-items:baseline; gap:8px;
  text-decoration:none; color:var(--ink);
  font-size:14.5px; font-weight:500; letter-spacing:-.015em;
}
.brand .mk{
  font-family:'Instrument Serif',Georgia,serif; font-style:italic;
  font-size:19px; line-height:1; color:var(--cobalt);
}

.hdr-right{display:flex;align-items:center;gap:16px}
.hdr-label{font-size:13.5px;color:var(--ink-3);letter-spacing:-.005em}
@media (max-width:560px){.hdr-label{display:none}}
.step{
  font-size:13px; color:var(--ink-2); font-variant-numeric:tabular-nums;
  opacity:0; transition:opacity .35s var(--ease);
}
.step.on{opacity:1}

/* Segmented progress. Quieter than a sliding bar, and it says how many are
   left without a number having to. */
.prog{display:flex;gap:3px;padding:0 clamp(20px,4vw,32px) 9px}
.prog i{
  flex:1; height:2px; border-radius:2px; background:var(--border-2);
  transition:background .45s var(--ease);
}
.prog i.on{background:var(--cobalt)}
.prog i.at{background:var(--peri-deep)}

/* ==========================================================================
   STAGE
   ========================================================================== */

.page{
  height:100svh;
  /* The explicit 1fr column is load-bearing. With justify-items:center and an
     auto column the track shrink-to-fits, so the screens' width:100% resolves
     against their own content and the column never reaches its max-width. */
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr);
  align-items:center; justify-items:center;
  padding:calc(var(--hdr) + 26px) clamp(20px,5vw,32px) 22px;
}

.screen{
  grid-area:1/1; width:100%; max-width:576px;
  max-height:100%; overflow-y:auto; overscroll-behavior:contain;
  /* the gutter keeps the column from shifting sideways when a bar appears */
  scrollbar-width:thin; scrollbar-gutter:stable;
  /* Absorbs the 8px the children are translated by on entry. Without it the
     last child's rise pushes past the padding box, and since this element is a
     scroll container that counts as scrollable overflow — every screen grew a
     scrollbar for the sake of an animation that had already finished. */
  padding-bottom:8px;
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(10px);
}
.screen::-webkit-scrollbar{width:5px}
.screen::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:5px}
.screen::-webkit-scrollbar-track{background:transparent}
.screen.live{
  opacity:1; visibility:visible; pointer-events:auto; transform:none;
  transition:opacity .4s var(--soft) .05s,transform .4s var(--soft) .05s;
}
.screen.out-up{opacity:0;transform:translateY(-8px);
  transition:opacity .18s var(--ease),transform .18s var(--ease)}
.screen.out-down{opacity:0;transform:translateY(8px);
  transition:opacity .18s var(--ease),transform .18s var(--ease)}

.screen.live > *{animation:rise .44s var(--soft) backwards}
.screen.live > *:nth-child(2){animation-delay:.04s}
.screen.live > *:nth-child(3){animation-delay:.08s}
.screen.live > *:nth-child(4){animation-delay:.12s}
.screen.live > *:nth-child(5){animation-delay:.16s}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* --- question head ------------------------------------------------------ */

.q-no{font-size:12.5px;color:var(--ink-3);margin-bottom:11px;
  font-variant-numeric:tabular-nums}

h1.q{
  font-size:clamp(23px,2.8vw,28px); line-height:1.26;
  letter-spacing:-.026em; font-weight:500;
  margin-bottom:9px; text-wrap:balance;
}
h1.q em{font-style:normal;color:var(--cobalt)}

.q-help{font-size:14.5px;line-height:1.62;color:var(--ink-2);
  margin-bottom:22px;text-wrap:pretty}

/* --- choices ------------------------------------------------------------ */

.choices{display:flex;flex-direction:column;gap:5px;margin-bottom:18px}

.choice{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  padding:10px 15px; border-radius:var(--r); cursor:pointer;
  border:1px solid var(--border); background:var(--surface); color:var(--ink);
  font:inherit; font-size:15px; line-height:1.4; letter-spacing:-.008em;
  transition:border-color .16s var(--ease),background .16s var(--ease),
             box-shadow .16s var(--ease);
}
.choice:hover{border-color:var(--cobalt-edge);background:#fdfdff}
.choice:focus-visible{outline:none;border-color:var(--cobalt);
  box-shadow:0 0 0 3px rgba(37,69,167,.12)}
.choice[aria-checked="true"]{border-color:var(--cobalt);background:var(--cobalt-tint)}

.choice .lab{flex:1;min-width:0}

/* the mark: an empty ring that fills in. no letters, no boxes. */
.choice .dot{
  flex:none; width:17px; height:17px; border-radius:50%;
  border:1.5px solid var(--border-2); background:var(--surface);
  display:grid; place-items:center;
  transition:border-color .18s var(--ease),background .18s var(--ease);
}
.choice:hover .dot{border-color:var(--cobalt-edge)}
.choice[aria-checked="true"] .dot{background:var(--cobalt);border-color:var(--cobalt)}
.choice .dot svg{
  width:9px; height:9px; fill:none; stroke:#fff; stroke-width:2.6;
  stroke-linecap:round; stroke-linejoin:round;
  opacity:0; transform:scale(.6);
  transition:opacity .18s var(--ease),transform .22s var(--soft);
}
.choice[aria-checked="true"] .dot svg{opacity:1;transform:none}
/* multi-select reads as a rounded square, so it is obvious more than one fits */
.choice[role="checkbox"] .dot{border-radius:5px}

/* The keyboard letter stays hidden until you look like a keyboard user. */
.choice .key{
  flex:none; font-size:11.5px; color:var(--ink-3);
  opacity:0; transition:opacity .18s var(--ease);
}
@media (hover:hover) and (min-width:900px){
  .choices:hover .choice .key,.choice:focus-visible .key{opacity:.7}
}

.multi-note{font-size:12.5px;color:var(--ink-3);margin:-12px 0 20px}

/* --- fields ------------------------------------------------------------- */

.fields{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}
.f-lab{display:block;font-size:13px;font-weight:500;color:var(--ink-2);
  margin-bottom:7px;letter-spacing:-.005em}
.f-lab i{font-style:normal;font-weight:400;color:var(--ink-3)}
.f-in{
  width:100%; padding:11px 15px; border-radius:var(--r);
  border:1px solid var(--border); background:var(--surface); color:var(--ink);
  font:inherit; font-size:15.5px; letter-spacing:-.008em;
  transition:border-color .16s var(--ease),box-shadow .16s var(--ease);
}
.f-in::placeholder{color:var(--ink-3);opacity:.75}
.f-in:focus{outline:none;border-color:var(--cobalt);
  box-shadow:0 0 0 3px rgba(37,69,167,.12)}
.fld.bad .f-in{border-color:var(--rec)}

/* --- long answer + dictation -------------------------------------------- */

.long{
  border:1px solid var(--border); border-radius:14px; background:var(--surface);
  margin-bottom:14px; overflow:hidden;
  transition:border-color .16s var(--ease),box-shadow .16s var(--ease);
}
.long:focus-within{border-color:var(--cobalt);box-shadow:0 0 0 3px rgba(37,69,167,.12)}
.long.recording{border-color:var(--rec);box-shadow:0 0 0 3px rgba(194,64,95,.1)}

.long textarea{
  display:block; width:100%; min-height:104px; resize:none; overflow:hidden;
  padding:16px 16px 6px; border:0; background:transparent; color:var(--ink);
  font:inherit; font-size:15.5px; line-height:1.65; letter-spacing:-.008em;
}
.long textarea::placeholder{color:var(--ink-3);opacity:.75}
.long textarea:focus{outline:none}

.dictate{display:flex;align-items:center;gap:12px;padding:0 12px 12px}

.mic{
  display:inline-flex; align-items:center; gap:7px; flex:none;
  padding:8px 14px 8px 11px; border-radius:999px; cursor:pointer;
  border:1px solid var(--border); background:var(--bg); color:var(--ink-2);
  font:inherit; font-size:13px; font-weight:500; letter-spacing:-.005em;
  transition:all .16s var(--ease);
}
.mic svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;
  stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mic:hover{border-color:var(--cobalt-edge);color:var(--cobalt);background:var(--cobalt-tint)}
.mic:focus-visible{outline:none;border-color:var(--cobalt);
  box-shadow:0 0 0 3px rgba(37,69,167,.12)}
.mic[data-state="rec"]{border-color:transparent;background:var(--rec);color:#fff}
.mic[data-state="rec"]:hover{background:#ad3653;color:#fff}
.mic[disabled]{opacity:.5;cursor:not-allowed}
.mic .l-on{display:none}
.mic[data-state="rec"] .l-off{display:none}
.mic[data-state="rec"] .l-on{display:inline}
.mic .i-on{display:none}
.mic[data-state="rec"] .i-off{display:none}
.mic[data-state="rec"] .i-on{display:block}

.d-side{display:flex;align-items:center;gap:10px;min-width:0;
  font-size:13px;color:var(--ink-3)}
.wave{display:none;align-items:center;gap:2px;height:14px}
.long.recording .wave{display:flex}
.long.recording .d-idle{display:none}
.wave i{width:2px;border-radius:2px;background:var(--rec);height:2px;
  transition:height .07s linear}

.d-work{display:none;align-items:center;gap:8px;color:var(--ink-2);font-size:13px}
.long.working .d-work{display:flex}
.long.working .d-idle,.long.working .wave{display:none}
.d-work .sp{
  width:12px;height:12px;border-radius:50%;
  border:1.5px solid var(--border-2);border-top-color:var(--cobalt);
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(1turn)}}

.d-err{display:none;font-size:13px;color:var(--rec);margin:0 0 14px}
.d-err.on{display:block}

.count{font-size:12.5px;color:var(--ink-3);margin-bottom:20px;
  opacity:0;transition:opacity .25s var(--ease);font-variant-numeric:tabular-nums}
.count.on{opacity:1}

/* --- actions ------------------------------------------------------------ */

.acts{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.acts .enter-hint{margin-left:6px}

/* Back and forward are a matched pair of pills: same height, same curve, one
   filled and one outlined, so the way out is as easy to find as the way on. */
.btn-go,.btn-back{
  display:inline-flex; align-items:center; justify-content:center;
  height:36px; padding:0 20px; border-radius:999px; cursor:pointer;
  font:inherit; font-size:13.5px; font-weight:500; letter-spacing:-.005em;
  white-space:nowrap;
  transition:background .18s var(--ease),border-color .18s var(--ease),
             color .18s var(--ease),transform .18s var(--soft);
}
.btn-go{border:1px solid var(--cobalt);background:var(--cobalt);color:#fff}
.btn-go:hover{background:var(--cobalt-hover);border-color:var(--cobalt-hover)}
.btn-go:active{transform:scale(.98)}
.btn-go:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(37,69,167,.28)}
.btn-go[disabled]{opacity:.4;cursor:not-allowed}

.btn-back{
  border:1px solid var(--border-2); background:var(--surface); color:var(--ink-2);
  padding:0 17px;
}
.btn-back:hover{border-color:var(--ink-3);color:var(--ink)}
.btn-back:active{transform:scale(.98)}
.btn-back:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(37,69,167,.16)}

.enter-hint{font-size:13px;color:var(--ink-3);display:inline-flex;
  align-items:center;gap:6px}
.enter-hint kbd{
  font:inherit; font-size:11.5px; padding:2.5px 6px; border-radius:5px;
  border:1px solid var(--border-2); background:var(--surface); color:var(--ink-2);
  box-shadow:0 1px 0 var(--border-2);
}
@media (max-width:760px){.enter-hint{display:none}}

.err{font-size:13.5px;color:var(--rec);margin-top:16px;display:none}
.err.on{display:block}

/* --- opening ------------------------------------------------------------ */

.o-tag{font-size:13.5px;color:var(--cobalt);margin-bottom:16px;font-weight:500}
h1.hero{
  font-size:clamp(28px,3.7vw,37px); line-height:1.14; letter-spacing:-.032em;
  font-weight:500; margin-bottom:14px; text-wrap:balance;
}
h1.hero em{
  font-family:'Instrument Serif',Georgia,serif; font-style:italic;
  font-weight:400; color:var(--cobalt); font-size:1.1em; letter-spacing:-.02em;
}
.o-lede{font-size:15px;line-height:1.62;color:var(--ink-2);margin-bottom:22px;
  text-wrap:pretty}

.o-facts{
  list-style:none; margin-bottom:26px;
  border:1px solid var(--border); border-radius:14px; background:var(--surface);
  overflow:hidden;
}
.o-facts li{
  display:grid; grid-template-columns:106px 1fr; gap:16px; align-items:baseline;
  padding:10px 17px; font-size:13.5px; color:var(--ink);
  border-bottom:1px solid var(--border);
}
.o-facts li:last-child{border-bottom:0}
.o-facts .k{font-size:13px;color:var(--ink-3)}

/* --- booking ------------------------------------------------------------ */

#s-book{max-width:880px}
.done-head{margin-bottom:26px}
.done-head h1{
  font-size:clamp(26px,3.3vw,33px);line-height:1.2;letter-spacing:-.03em;
  font-weight:500;margin-bottom:11px;text-wrap:balance;
}
.done-head h1 em{
  font-family:'Instrument Serif',Georgia,serif;font-style:italic;
  font-weight:400;color:var(--cobalt);font-size:1.09em;
}
.done-head p{font-size:14.5px;line-height:1.62;color:var(--ink-2)}

.cal-wrap{
  border:1px solid var(--border); border-radius:14px; background:var(--surface);
  overflow:hidden; min-height:560px;
}
#cal-embed{width:100%;min-height:560px}
.cal-fallback{padding:36px 24px;font-size:14.5px;color:var(--ink-2);line-height:1.6}
.cal-fallback a{color:var(--cobalt)}

.seal{
  width:34px;height:34px;border-radius:50%;margin-bottom:18px;
  display:grid;place-items:center;
  background:var(--cobalt-tint);border:1px solid var(--cobalt-edge);color:var(--cobalt);
}
.seal svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:26;stroke-dashoffset:26;animation:draw .5s var(--soft) forwards .25s}
@keyframes draw{to{stroke-dashoffset:0}}

/* --- sending ------------------------------------------------------------ */

.sending .sp{
  width:24px;height:24px;border-radius:50%;margin-bottom:22px;
  border:1.5px solid var(--border-2);border-top-color:var(--cobalt);
  animation:spin .8s linear infinite;
}
.sending h1{font-size:clamp(22px,2.7vw,27px);letter-spacing:-.028em;
  font-weight:500;margin-bottom:10px}
.sending p{font-size:14.5px;line-height:1.62;color:var(--ink-2)}
.sending a{color:var(--cobalt)}

@media (max-width:760px){
  /* Still centred. The page cannot scroll and anything too tall scrolls inside
     its own screen, so top-aligning here only ever left a void under short
     questions. */
  .page{padding:calc(var(--hdr) + 20px) 20px 22px}
  .acts{gap:10px}
  .o-facts li{grid-template-columns:1fr;gap:3px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;
    animation-iteration-count:1!important;transition-duration:.01ms!important}
}
