/* Demo: the closing band. The hero field again, opening with the sweep turned over. Words and a photo in an arch
   on the left, the form on a white card on the right: the demo scheduler. */
.bk-demo{--sweep:clamp(64px, 11vw, 168px);position:relative;isolation:isolate;margin-top:var(--sec);padding-top:calc(var(--sweep) + 24px);
  background:radial-gradient(45% 60% at 82% 62%, rgb(255 255 255 / .45), rgb(255 255 255 / 0) 70%),linear-gradient(115deg, #E6FAF2 0%, #A9EAD2 50%, #62D2AF 100%)}
.bk-demo__sweep{position:absolute;z-index:-1;top:-1px;left:0;display:block;width:100%;height:var(--sweep);fill:#fff}
.bk-demo__panel{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:40px 72px;align-items:end}
.bk-demo__intro{display:flex;flex-direction:column}

/* The photo stands in an arch that runs into the footer; a real screen is pinned to its shoulder. */
.bk-demo__art{width:min(420px,100%);margin-top:40px}
.bk-demo__art img{display:block;width:100%;height:auto}

@media (max-width:959px){
  .bk-demo__panel{grid-template-columns:minmax(0,1fr);align-items:start}
  .bk-demo__art{display:none}
}


/* ---------- Phone view: a shorter opening sweep and the form card a little closer to the words. */
@media (max-width:759px){
  .bk-demo{--sweep:56px}
  .bk-demo__panel{gap:28px}
}

/* ---------- Demo booking. On the page: one white card, the Mint leaf beside "Mint demo", the visitor's details and
   "Pick a time". The time picker opens as a dialog (full screen on phones): day, then time, then booked. Flat:
   no dividers, no inner scrollbars, no native dropdowns. */
.sch{align-self:center;margin-bottom:var(--sec);padding:30px 32px 26px;border-radius:var(--r-panel);background:#fff;box-shadow:var(--shadow)}

.sch__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
.sch__wide{grid-column:1 / -1}
.sch__err{margin:0 0 14px;font-size:15px;line-height:1.4;font-weight:600}
.sch__err:not(:empty){margin-top:6px}
.sch .ms-input[aria-invalid="true"]:not(:focus-visible){box-shadow:inset 0 0 0 2px var(--ink)}
.sch__role{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px;padding:0;border:0;min-inline-size:0}
.sch__role legend{width:100%;margin:0 0 8px;padding:0;font-size:16px;font-weight:600}
.sch__chip{position:relative;cursor:pointer}
.sch__chip input{position:absolute;opacity:0;pointer-events:none}
.sch__chip span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line);font-weight:550;transition:box-shadow .15s ease,background-color .15s ease,color .15s ease}
@media (hover:hover){.sch__chip:hover input:not(:checked)+span{box-shadow:inset 0 0 0 1.5px rgb(23 125 117 / .45)}}
.sch__chip input:checked+span{background:var(--deep);box-shadow:none;color:#fff}
.sch__chip input:focus-visible+span{outline:2px solid var(--teal);outline-offset:3px}
.sch__hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.sch__go{width:100%;margin-top:18px;background:var(--deep);color:#fff}
@media (hover:hover){.sch__go:hover{background:var(--teal)}}
.sch__booked{display:flex;align-items:center;gap:16px;padding:6px 0 4px}
.sch__booked[hidden]{display:none}
.sch__btitle{font-family:var(--display);font-size:26px;line-height:1.15}
.sch__bwhen{margin-top:4px;font-size:16px;color:var(--muted)}
.sch__tick{flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--mint-3)}
.sch__tick svg{width:26px;height:26px;fill:none;stroke:var(--deep);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24}
.sch__tick--lg{width:68px;height:68px}
.sch__tick--lg svg{width:32px;height:32px}

/* The picker dialog. */
.sch-dlg{width:min(460px, calc(100vw - 32px));max-width:none;max-height:min(760px, calc(100dvh - 48px));margin:auto;padding:0 0 28px;border:0;border-radius:var(--r-panel);
  background:#fff;color:var(--ink);box-shadow:0 30px 80px -20px rgb(0 40 36 / .45);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.sch-dlg::-webkit-scrollbar{display:none}
.sch-dlg::backdrop{background:rgb(0 36 32 / .42)}
.sch-dlg[open]{animation:sch-in .26s cubic-bezier(.2,.8,.2,1) both}
.sch-dlg.is-closing{animation:sch-out .18s ease both}
.sch-dlg.is-closing::backdrop{animation:sch-fade-out .18s ease both}
@keyframes sch-out{to{opacity:0;translate:0 6px}}
@keyframes sch-fade-out{to{opacity:0}}
.sch-dlg[open]::backdrop{animation:sch-fade .26s ease both}
@keyframes sch-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes sch-fade{from{opacity:0}to{opacity:1}}
.sch-dlg__head{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;padding:14px 14px 0 18px;background:#fff}
.sch-dlg__fill{flex:1}
.sch-dlg__head .sch-dlg__icon{flex:none;display:grid;place-items:center;width:52px;height:52px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;transition:color .15s ease}
.sch-dlg__icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){.sch-dlg__icon:hover{color:var(--teal)}}
.sch-dlg__head .sch-dlg__back{display:none;margin-right:-6px}
.sch-dlg[data-step="time"] .sch-dlg__head .sch-dlg__back{display:grid}
.sch-dlg__step{display:none;padding:0 28px}
.sch-dlg[data-step="day"] .sch-dlg__day,.sch-dlg[data-step="time"] .sch-dlg__time{display:block}
.sch-dlg[data-step="done"] .sch-dlg__done{display:flex}
.sch-dlg__h{margin:6px 0 18px;font-family:var(--display);font-size:28px;line-height:1.15}
.sch-dlg__sub{margin:-10px 0 18px;font-size:15px;color:var(--muted)}

.sch__month{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sch__mlabel{font-size:17px;font-weight:650}
.sch__mnav{display:flex;gap:4px}
.sch__nav{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--wash);color:var(--ink);cursor:pointer;transition:background-color .15s ease}
.sch__nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sch__nav:disabled{background:none;color:rgb(6 48 43 / .22);cursor:default}
@media (hover:hover){.sch__nav:not(:disabled):hover{background:var(--mint-3)}}
.sch__dow,.sch__days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));justify-items:center}
.sch__dow span{padding-bottom:6px;font-size:12px;font-weight:650;letter-spacing:.06em;color:var(--muted)}
.sch__days{row-gap:4px}
.sch__d{position:relative;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:none;font:inherit;font-size:16px;font-variant-numeric:tabular-nums;color:rgb(6 48 43 / .28);cursor:default}
.sch__d.is-open{background:var(--wash);color:var(--deep);font-weight:650;cursor:pointer;transition:background-color .15s ease,color .15s ease}
@media (hover:hover){.sch__d.is-open:hover{background:var(--mint-3)}}
.sch__d.is-sel{background:var(--deep);color:#fff}
.sch__d.is-today::after{content:"";position:absolute;left:50%;bottom:6px;width:4px;height:4px;border-radius:50%;background:currentColor;translate:-50% 0}

.sch__tz{position:relative;margin-top:16px}
.sch__tzbtn{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-left:-10px;padding:0 10px;border:0;border-radius:999px;background:none;font:inherit;font-size:15px;color:var(--ink);cursor:pointer;transition:background-color .15s ease}
@media (hover:hover){.sch__tzbtn:hover{background:var(--wash)}}
.sch__tzbtn[aria-expanded="true"]{background:var(--wash)}
.sch__tzbtn svg{flex:none;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.sch__tzclock{width:18px;height:18px;stroke-width:1.7;color:var(--muted)}
.sch__tzchev{width:16px;height:16px;stroke-width:2;color:var(--muted);transition:rotate .2s var(--ease)}
.sch__tzbtn[aria-expanded="true"] .sch__tzchev{rotate:180deg}
.sch__tzlist{position:absolute;z-index:5;left:-10px;bottom:calc(100% + 6px);width:min(300px, calc(100vw - 48px));margin:0;padding:6px;list-style:none;border-radius:16px;background:#fff;
  box-shadow:0 18px 44px -12px rgb(0 40 36 / .32),0 2px 8px rgb(0 40 36 / .06);outline:none;animation:sch-pop .18s var(--ease) both}
.sch__tzlist[hidden]{display:none}
@keyframes sch-pop{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
.sch__tzopt{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px 0 34px;border-radius:10px;font-size:15px;cursor:pointer;outline:none;position:relative}
.sch__tzopt:hover,.sch__tzopt:focus{background:var(--wash)}
.sch__tztime{font-variant-numeric:tabular-nums;color:var(--muted)}
.sch__tzopt[aria-selected="true"]{font-weight:650}
.sch__tzopt[aria-selected="true"]::before{content:"";position:absolute;left:13px;top:50%;width:10px;height:5px;border-left:2px solid var(--teal);border-bottom:2px solid var(--teal);rotate:-45deg;translate:0 -70%}

.sch__slots{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.sch__slot{display:grid;grid-template-columns:1fr 0fr;gap:0;transition:grid-template-columns .25s var(--ease),gap .25s var(--ease)}
.sch__slot.is-sel{grid-template-columns:1fr 1fr;gap:8px}
.sch__time,.sch__confirm{min-width:0;height:52px;padding:0;border-radius:var(--r);font:inherit;font-size:16px;font-weight:650;cursor:pointer;white-space:nowrap;overflow:hidden}
.sch__time{border:0;background:var(--wash);color:var(--deep);transition:background-color .15s ease,color .15s ease}
@media (hover:hover){.sch__time:hover{background:var(--mint-3)}}
.sch__slot.is-sel .sch__time{background:var(--deep);color:#fff}
.sch__confirm{border:0;background:var(--teal);color:#fff}
@media (hover:hover){.sch__confirm:hover{background:#126A63}}
.sch__confirm:disabled{opacity:.7;cursor:progress}
.sch__none{grid-column:1 / -1;font-size:15px;color:var(--muted)}
.sch__status{margin-top:14px;font-size:15px;font-weight:600}
.sch__status:empty{display:none}

.sch-dlg__done{flex-direction:column;align-items:center;text-align:center;padding-top:18px;outline:none}
.sch-dlg__done .sch-dlg__h{margin:18px 0 8px;font-size:32px}
.sch-dlg[data-step="done"] .sch__tick svg{animation:sch-tick .5s var(--ease) .15s both}
@keyframes sch-tick{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
.sch-dlg__when{font-size:18px;font-weight:650}
.sch-dlg__done .sch-dlg__sub{margin:8px 0 0;max-width:30em}
.sch-dlg__acts{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;margin-top:24px}
.sch__cal-btn{width:100%;background:var(--deep);color:#fff}
@media (hover:hover){.sch__cal-btn:hover{background:var(--teal)}}
.sch__ics{display:inline-flex;align-items:center;min-height:44px;font-weight:650;color:var(--teal)}

.sch button:focus:not(:focus-visible),.sch-dlg button:focus:not(:focus-visible){outline:none}
.sch-dlg button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
html.sch-lock{overflow:hidden}
html.sch-lock .ms-top{opacity:0;visibility:hidden}
@media (prefers-reduced-motion:reduce){.sch-dlg[open],.sch-dlg[open]::backdrop,.sch-dlg.is-closing,.sch__tzlist,.sch-dlg[data-step="done"] .sch__tick svg{animation:none!important}.sch__slot{transition:none}}

@media (max-width:959px){.sch{width:100%;max-width:640px}}
/* Phone: the picker takes the whole screen. */
@media (max-width:759px){
  .sch{padding:24px 20px 20px}
  .sch__fields{grid-template-columns:minmax(0,1fr)}
  .sch-dlg{width:100vw;height:100dvh;max-height:none;margin:0;border-radius:0;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
  .sch-dlg[open]{animation:sch-up .3s cubic-bezier(.2,.8,.2,1) both}
  .sch-dlg__head{padding:max(12px, env(safe-area-inset-top)) 12px 12px 16px}
  .sch-dlg__step{padding:0 20px}
  .sch__d{width:44px;height:44px}
  .sch__time,.sch__confirm{height:56px;font-size:17px}
  .sch__tzlist{width:calc(100vw - 40px)}
}
@keyframes sch-up{from{translate:0 24px;opacity:0}to{translate:0 0;opacity:1}}

/* Desktop: the card grows into a wide Calendly-style panel. The calendar on the left, the day's times beside it. */
@media (min-width:900px){
  .sch-dlg{width:min(800px, calc(100vw - 64px))}
  .sch-dlg[open][data-step="day"],.sch-dlg[open][data-step="time"]{display:grid;grid-template-columns:minmax(0,1fr) 300px;column-gap:8px;align-content:start}
  .sch-dlg__head{grid-column:1 / -1;padding:14px 14px 0 28px}
  .sch-dlg[data-step="day"] .sch-dlg__day,.sch-dlg[data-step="time"] .sch-dlg__day{display:block}
  .sch-dlg[data-step="day"] .sch-dlg__time,.sch-dlg[data-step="time"] .sch-dlg__time{display:block;padding-left:12px}
  .sch-dlg[data-step="time"] .sch-dlg__head .sch-dlg__back{display:none}
  .sch-dlg__time .sch-dlg__h{font-size:22px;margin-top:10px;min-height:1.15em}
  .sch-dlg__time .sch-dlg__sub{margin-top:-12px}
  .sch-dlg__day .sch-dlg__h{font-size:22px;margin-top:10px}
}
