/* Schedule an appointment: the Acuity booking questionnaire, set as a conversation (schedule.js).
   Built from the same pieces as the membership page and the page after payment (booked.css), in
   Saccade Acuity's dark theme: #0c0d0c page, #161816 panels with 30px corners, #1f221f tiles, white
   type in Manrope and Figtree, the membership page's light pill for the one action.
   - A centred title and one line, like booked.html.
   - On wide screens, two panels 24px apart, like the membership page's buying panel and detail
     panels: the plan (the card on its green-lit stage, the price, what is included) stays beside the
     conversation; on phones it becomes one compact row above it.
   - The conversation panel reads like a chat app: progress at its top (one segment per question,
     staying in view), the thread, and the answer box at its foot, pinned to the bottom of the screen.
   Saccade's messages sit on a tile beside the app icon; the visitor's answers sit in the card's own
   green. Choices are quiet pills; never a solid black or green button. */
:root {
  --page: #0c0d0c; --panel: #161816; --tile: #1f221f; --bubble: #232723; --ink: #fff; --soft: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .1); --wash: rgba(255, 255, 255, .07); --green: #22a86a; --danger: #ff8f85;
  --top: 60px; --quint: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body.s-page { margin: 0; min-height: 100vh; background: var(--page); color: var(--ink); font: 400 15px/22px var(--landing-body); -webkit-font-smoothing: antialiased; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Top bar: back on the left, the logo in the middle (as on booked.html) ---------- */
.s-top {
  position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--top);
  padding: 0 24px; background: rgba(12, 13, 12, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 1px var(--line);
}
.s-back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 10px 0; border-radius: 8px; color: var(--soft); font: 500 14px/1 var(--landing-body); text-decoration: none; transition: color .2s ease; }
.s-back svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--quint); }
.s-back:hover { color: var(--ink); }
.s-back:hover svg { transform: translateX(-2px); }
.s-logo { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; }
.s-logo img { display: block; width: 28px; height: 28px; border-radius: 50%; }
.s-logo__word {
  width: 80px; height: 24px; background: #fff;
  -webkit-mask: url("assets/logo-word-white.svg") center / contain no-repeat; mask: url("assets/logo-word-white.svg") center / contain no-repeat;
}

/* ---------- Opening ---------- */
.s-main { max-width: 1040px; margin: 0 auto; padding: 48px 24px 64px; }
.s-head { text-align: center; }
.s-title { margin: 0; font: 600 40px/46px var(--landing-head); letter-spacing: -.6px; text-wrap: balance; }
.s-lead { margin: 10px auto 0; max-width: 520px; font-size: 16px; line-height: 24px; color: var(--soft); text-wrap: balance; }

.s-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 40px; }

/* ---------- The plan ---------- */
.s-plan { position: sticky; top: calc(var(--top) + 24px); display: grid; gap: 20px; padding: 0 0 26px; border-radius: 30px; background: var(--panel); overflow: hidden; }
.s-plan p { margin: 0; }
.s-plan__stage {
  padding: 28px 28px 0;
  background: radial-gradient(ellipse 260px 150px at 50% 96px, rgba(34, 168, 106, .4), rgba(34, 168, 106, .13) 52%, rgba(34, 168, 106, 0) 80%);
}
.s-plan__card { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3); }
.s-plan__title { display: none; }
/* What every visit includes: a plain name on the left, its detail in one right-hand column, each with
   its icon in a small round tile. Then where it happens. */
.s-includes { display: grid; gap: 12px; margin: 4px 28px 0; padding: 0; list-style: none; }
.s-includes li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.s-includes__icon { display: grid; place-items: center; flex: none; width: 18px; height: 18px; }
.s-includes svg { width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.s-includes__name { flex: 1; min-width: 0; font: 500 15px/20px var(--landing-body); color: var(--ink); }
.s-includes__detail { flex: none; font: 400 13px/20px var(--landing-body); color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-plan__where { display: flex; align-items: center; gap: 8px; margin: 2px 28px 0 !important; padding-top: 16px; box-shadow: inset 0 1px var(--line); font: 400 13px/18px var(--landing-body); color: var(--soft); }
.s-plan__where svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- The conversation panel ---------- */
.s-panel { display: flex; flex-direction: column; min-height: min(680px, calc(100vh - var(--top) - 48px)); padding: 0 28px; border-radius: 30px; background: var(--panel); }
/* Progress at the top of the panel; it stays under the top bar while the thread scrolls. */
.s-progress-row {
  position: sticky; top: var(--top); z-index: 4; display: grid; gap: 12px; margin: 0 -28px; padding: 24px 28px 18px;
  border-radius: 30px 30px 0 0; background: var(--panel); box-shadow: 0 1px var(--line);
}
.s-step { margin: 0; font: 500 13px/18px var(--landing-body); color: var(--soft); font-variant-numeric: tabular-nums; }
/* One segment per question (schedule.js builds them from its list of questions). Answered questions
   fill green; the one being asked is lit faintly and breathes. */
.s-progress { display: flex; gap: 4px; height: 4px; }
.s-progress__seg { position: relative; flex: 1 1 0; min-width: 0; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.s-progress__seg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(0);
  background: var(--green); transition: transform .6s var(--quint);
}
.s-progress__seg[data-state="done"]::before { transform: scaleX(1); }
.s-progress__seg[data-state="current"] { background: rgba(34, 168, 106, .3); animation: s-breathe 1.8s ease-in-out infinite; }
@keyframes s-breathe { 50% { background: rgba(34, 168, 106, .5); } }

.s-chat { display: flex; flex: 1; flex-direction: column; }
.s-thread { display: grid; align-content: start; flex: 1; gap: 6px; margin: 0; padding: 24px 0 8px; list-style: none; }
.s-msg { display: flex; align-items: flex-end; gap: 10px; animation: s-in .35s var(--quint) both; }
.s-msg__avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; }
/* In a run of Saccade's messages only the last carries the icon. */
.s-msg--saccade:has(+ .s-msg--saccade) .s-msg__avatar { visibility: hidden; }
.s-msg__text { max-width: 78%; margin: 0; padding: 11px 16px; border-radius: 20px; font: 400 15px/22px var(--landing-body); overflow-wrap: anywhere; }
.s-msg--saccade .s-msg__text { border-bottom-left-radius: 6px; background: var(--bubble); color: var(--ink); }
.s-msg--you { justify-content: flex-end; margin: 8px 0; }
/* The visitor's answers in the Acuity card's own green. */
.s-msg--you .s-msg__text { border-bottom-right-radius: 6px; background: linear-gradient(135deg, #1c7a4c, #0d5c3f); color: #fff; }
@keyframes s-in { from { opacity: 0; transform: translateY(8px); } }

/* Saccade "typing": three dots. */
.s-msg--typing .s-msg__text { display: inline-flex; gap: 4px; padding: 15px 16px; }
.s-msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); animation: s-dot 1s ease-in-out infinite; }
.s-msg--typing span:nth-child(2) { animation-delay: .15s; }
.s-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes s-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- The answer area: at the panel's foot, pinned to the bottom of the screen ---------- */
.s-composer {
  position: sticky; bottom: 0; z-index: 3; display: grid; justify-items: end; gap: 10px;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(22, 24, 22, 0), var(--panel) 24px);
}
.s-composer:empty { padding-bottom: 32px; }
.s-entry { position: relative; width: 100%; animation: s-in .35s var(--quint) both; }
.s-entry input {
  width: 100%; height: 56px; padding: 0 64px 0 22px; border: 0; border-radius: 28px; background: var(--tile); color: var(--ink); caret-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--line); font: 400 16px/1 var(--landing-body); transition: box-shadow .2s ease;
  -moz-appearance: textfield;
}
/* Keep the browser's autofill from painting the field light. */
.s-entry input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: inset 0 0 0 40px var(--tile), inset 0 0 0 1px var(--line); transition: background-color 9999s; }
.s-entry input::-webkit-outer-spin-button, .s-entry input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s-entry input::placeholder { color: rgba(255, 255, 255, .4); }
.s-entry input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.s-entry input:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.s-entry input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }
/* Send: the membership page's light pill, as a circle. */
.s-send {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #f2f2f0; color: #120c08; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .4); cursor: pointer; transition: background-color .2s ease, transform .2s var(--quint);
}
.s-send:hover { background: #fff; transform: translateY(-1px); }
.s-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* How many people: a number between − and + on the panel colour, like the membership page's spec row.
   The number can be typed for a bigger group. */
.s-stepper { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 8px; padding: 8px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.s-stepper__btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 14px; background: var(--wash); color: var(--ink); cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease, transform .15s var(--quint);
}
.s-stepper__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .13); }
.s-stepper__btn:active:not(:disabled) { transform: scale(.95); }
.s-stepper__btn:disabled { opacity: .3; cursor: default; }
.s-stepper__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.s-stepper__value { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.s-card .s-stepper__value input[type="text"] {
  width: 100%; max-width: 120px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: center;
  font: 500 30px/1 var(--landing-head); letter-spacing: -.5px; font-variant-numeric: tabular-nums; caret-color: var(--green); box-shadow: none;
}
.s-card .s-stepper__value input[type="text"]:hover { box-shadow: none; }
.s-card .s-stepper__value input[type="text"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }
.s-card .s-stepper__value input[aria-invalid="true"] { color: var(--danger); box-shadow: none !important; }
.s-stepper__unit { font: 400 13px/18px var(--landing-body); color: var(--soft); }
.s-done { justify-self: stretch; padding: 0 24px; }
.s-undo { padding: 4px 2px; border: 0; border-radius: 4px; background: none; color: var(--soft); font: 400 13px/18px var(--landing-body); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; cursor: pointer; transition: color .2s ease; }
.s-undo:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Cards in the answer area (the address, the days, contact permission, payment): one tile, its
   fields, then the one button. */
.s-card { display: grid; gap: 14px; width: 100%; padding: 20px; border-radius: 22px; background: var(--tile); animation: s-in .35s var(--quint) both; }

/* Home or Office: two tiles, an icon over each word. The chosen tile is the site's light pill. */
.s-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-kind__option {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 16px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); font: 500 15px/1 var(--landing-body); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.s-kind__option:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.s-kind__option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.s-kind__icon { display: grid; width: 20px; height: 20px; }
.s-kind__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.s-kind__option:has(input:checked) { background: #f2f2f0; color: #120c08; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .4); }
.s-kind__option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The address: one block on the panel colour, its parts split by hairlines, each with a small label
   inside. The part being typed in gets a soft ring; one with a problem gets a red one. */
.s-addr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.s-addr__cell { position: relative; display: grid; gap: 3px; min-width: 0; padding: 10px 16px 9px; box-shadow: inset 0 1px var(--line); cursor: text; }
.s-addr__cell:first-child, .s-addr__cell:nth-child(2) { box-shadow: none; }
.s-addr__cell--right { box-shadow: inset 0 1px var(--line), inset 1px 0 var(--line); }
.s-addr__cell:nth-child(2) { box-shadow: inset 1px 0 var(--line); }
.s-addr__cell--wide { grid-column: 1 / -1; }
.s-addr__label { font: 500 11px/14px var(--landing-body); letter-spacing: .02em; color: var(--soft); transition: color .2s ease; }
.s-addr .s-addr__cell :is(input[type="text"], select) {
  width: 100%; height: 24px; padding: 0; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; color: var(--ink);
  font: 400 16px/24px var(--landing-body);
}
.s-addr .s-addr__cell select {
  -webkit-appearance: none; appearance: none; padding-right: 18px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%23ffffffb0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0 center / 10px no-repeat;
}
.s-addr select:invalid { color: rgba(255, 255, 255, .42); }
.s-addr select option { color: #120c08; }
.s-addr input[type="text"]::placeholder { color: rgba(255, 255, 255, .32); }
.s-addr input:disabled { opacity: .5; cursor: not-allowed; }
.s-addr .s-addr__cell :is(input, select):focus-visible { outline: none; }
.s-addr__cell:focus-within { z-index: 1; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.s-addr__cell:focus-within .s-addr__label { color: var(--ink); }
.s-addr__cell:has([aria-invalid="true"]) { z-index: 1; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--danger); }
.s-addr__cell:has([aria-invalid="true"]) .s-addr__label { color: var(--danger); }
.s-addr input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: inset 0 0 0 40px var(--panel); }

/* City: a search box with a short list of matches under it. */
.s-combo { position: relative; }
.s-combo__list {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(100% + 6px); max-height: 264px; margin: 0; padding: 6px; overflow-y: auto; list-style: none;
  border-radius: 14px; background: #262a26; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .5);
}
.s-combo__list li { padding: 10px 12px; border-radius: 9px; font: 400 15px/20px var(--landing-body); color: var(--ink); cursor: pointer; }
.s-combo__list li:hover, .s-combo__list li[aria-selected="true"] { background: rgba(255, 255, 255, .1); }
.s-combo__credit { justify-self: end; margin-top: -6px; font: 400 11px/14px var(--landing-body); color: rgba(255, 255, 255, .45); text-decoration: none; }
.s-combo__credit:hover { color: var(--soft); text-decoration: underline; }

/* Days that suit: seven days on a dark track. Nothing is picked at first; a tapped day lights up in the
   site's light pill colour, so what is lit is what is chosen. */
.s-days__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.s-day {
  display: grid; place-items: center; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--soft);
  font: 500 15px/1 var(--landing-body); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s var(--quint);
}
.s-day:hover { background: var(--wash); color: var(--ink); }
.s-day:active { transform: scale(.94); }
.s-day[aria-pressed="true"] { background: #f2f2f0; color: #120c08; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .4); }
.s-days__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-days__all { padding: 4px 2px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: 500 13px/18px var(--landing-body); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; cursor: pointer; }
.s-days__all:hover { text-decoration-color: currentColor; }
.s-days__note { margin: 0; text-align: left; font: 400 13px/18px var(--landing-body); color: var(--soft); }

/* Contact permission: a soft square that fills light with a dark tick. */
.s-check { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; font: 400 15px/22px var(--landing-body); color: var(--ink); cursor: pointer; }
.s-check input { position: absolute; top: 0; left: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.s-check__box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background-color .15s ease, box-shadow .15s ease; }
.s-check__box::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border: solid #120c08; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .15s var(--quint); }
.s-check input:checked + .s-check__box { background: #f2f2f0; box-shadow: none; }
.s-check input:checked + .s-check__box::after { transform: rotate(-45deg) scale(1); }
.s-check input:focus-visible + .s-check__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.s-check:hover .s-check__box { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.s-fine { margin: 0; padding-top: 12px; box-shadow: inset 0 1px var(--line); font: 400 12px/18px var(--landing-body); color: var(--soft); }
.s-fine a { color: var(--ink); text-underline-offset: 2px; }
.s-pay .s-fine { padding-top: 0; box-shadow: none; }
.s-msg__text a { color: inherit; text-underline-offset: 2px; }

/* Date of birth: the browser's date field, with room for the send button. */
.s-entry--date input { color-scheme: dark; }
.s-entry--date input::-webkit-calendar-picker-indicator { margin-right: 4px; opacity: .7; cursor: pointer; }
/* The membership page's light pill on dark. */
.s-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 2px; border: 0; border-radius: 26px;
  background: #f2f2f0; color: #120c08; font: 500 15px/1 var(--landing-body); letter-spacing: -.015em; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .4); transition: background-color .2s ease;
}
.s-period { display: grid; width: min(100%, 22rem); gap: 12px; }
.s-period .s-submit { min-height: 52px; height: auto; margin: 0; padding: 14px 24px; line-height: 1.4; }
.s-days .s-submit:disabled { cursor: default; }
.s-submit:hover { background: #fff; }
.s-submit svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--quint); }
.s-submit:hover svg { transform: translateX(2px); }
.s-submit:disabled { opacity: .6; cursor: progress; }
.s-submit:is(a) { text-decoration: none; }
.s-pay__line { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 14px; box-shadow: 0 1px var(--line); font: 500 16px/22px var(--landing-head); color: var(--ink); }
.s-pay__line small { display: block; margin-top: 2px; font: 400 13px/18px var(--landing-body); color: var(--soft); }
.s-pay__line strong { font: 500 24px/1 var(--landing-head); letter-spacing: -.3px; text-align: right; }
.s-pay__line strong small { margin-top: 6px; letter-spacing: 0; }
.s-pay__qty { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--wash); font: 500 13px/18px var(--landing-body); color: var(--ink); }
.s-pay__qty a { color: inherit; text-underline-offset: 2px; white-space: nowrap; }

.s-error { margin: 0; padding: 0 0 16px; text-align: right; font: 400 13px/18px var(--landing-body); color: var(--danger); }
.s-error:empty { display: none; }
.s-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

:is(.s-back, .s-logo, .s-day, .s-days__all, .s-stepper__btn, .s-undo, .s-send, .s-submit, .s-fine a, .s-pay__qty a, .s-plan__help a):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Narrower screens: one column, the plan as one compact row ---------- */
@media (max-width: 860px) {
  .s-main { max-width: 640px; padding-top: 36px; }
  .s-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  /* The plan on narrower screens: a small header (the card beside its name and where it happens),
     then the three items at full width under a hairline, details in one right-hand column. */
  .s-plan {
    position: static; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "card title" "card where" "list list";
    align-items: center; column-gap: 14px; row-gap: 0; padding: 14px 18px 16px 14px; border-radius: 22px;
    background: radial-gradient(ellipse 140px 90px at 52px 40px, rgba(34, 168, 106, .28), rgba(34, 168, 106, 0) 80%), var(--panel);
  }
  .s-plan__stage { grid-area: card; padding: 0; background: none; }
  .s-plan__card { border-radius: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
  .s-plan__title { grid-area: title; display: block; align-self: end; margin: 0; font: 500 17px/22px var(--landing-head); letter-spacing: -.2px; color: var(--ink); }
  .s-plan__where { grid-area: where; align-self: start; margin: 2px 0 0 !important; padding: 0; box-shadow: none; font-size: 12px; line-height: 16px; }
  .s-plan__where svg { width: 13px; height: 13px; }
  .s-includes { grid-area: list; gap: 10px; margin: 14px 0 0; padding-top: 14px; box-shadow: inset 0 1px var(--line); }
  .s-includes li { gap: 10px; }
  .s-includes__icon, .s-includes svg { width: 16px; height: 16px; }
  .s-includes__name { font-size: 14px; line-height: 20px; }
  .s-includes__detail { font-size: 13px; line-height: 20px; }
  .s-panel { min-height: calc(100vh - var(--top) - 24px); border-radius: 26px; }
  .s-progress-row { border-radius: 26px 26px 0 0; }
}
@media (max-width: 560px) {
  :root { --top: 56px; }
  .s-top { padding: 0 16px; }
  .s-main { padding: 24px 12px 32px; }
  .s-title { font-size: 28px; line-height: 34px; letter-spacing: -.4px; }
  .s-lead { margin-top: 6px; font-size: 14px; line-height: 21px; }
  .s-layout { margin-top: 20px; gap: 10px; }
  .s-plan { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 12px 14px 14px 12px; border-radius: 18px; }
  .s-plan__title { font-size: 16px; line-height: 21px; }
  .s-panel { padding: 0 16px; border-radius: 22px; }
  .s-progress-row { margin: 0 -16px; padding: 18px 16px 14px; gap: 10px; border-radius: 22px 22px 0 0; }
  .s-progress { gap: 3px; }
  .s-msg__text { max-width: 86%; }
  .s-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-msg, .s-entry, .s-card { animation: none; }
  .s-day, .s-stepper__btn, .s-check__box, .s-check__box::after { transition: none; }
  .s-msg--typing span { animation: none; opacity: .6; }
  .s-progress__seg::before { transition: none; }
  .s-progress__seg[data-state="current"] { animation: none; }
}
.s-consent .s-pay__line { padding-top: 2px; }
.s-fine--stripe { padding-top: 0; box-shadow: none; text-align: center; }
.s-notice { justify-self: stretch; padding-top: 0; box-shadow: none; text-align: center; }

/* Dedicated date and time selection after the weekday search. */
.s-main[hidden], .calendar-page[hidden], .calendar-split[hidden] { display: none; }
.calendar-page { max-width: 1010px; margin: auto; padding: clamp(32px,6vw,76px) 24px 60px; }
.calendar-page h1 { margin: 0; font: 600 clamp(30px,4vw,44px)/1.15 var(--landing-head); letter-spacing: -.04em; }
.calendar-summary, .calendar-zone, .calendar-status { color: var(--soft); }
.calendar-summary { margin: 10px 0 32px; }
.calendar-status:empty { display: none; }
.calendar-split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); overflow: hidden; }
.calendar-month, .calendar-times { min-width: 0; padding: clamp(20px,3.2vw,40px); }
.calendar-month header, .month-controls, .calendar-actions { display: flex; align-items: center; }
.calendar-month header { justify-content: space-between; margin-bottom: 24px; }
.calendar-page h2 { margin: 0; font: 600 22px/1.3 var(--landing-head); letter-spacing: -.035em; }
.calendar-page button { font-family: inherit; cursor: pointer; }
.calendar-page button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.calendar-page button:disabled { cursor: default; }
.month-controls { gap: 6px; }
.month-controls button { width: 34px; height: 34px; border-radius: 50%; background: var(--wash); color: white; border: 0; font-size: 24px; line-height: 1; }
.month-controls button:disabled { opacity: .3; }
.calendar-week, .calendar-dates { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); text-align: center; justify-items: center; }
.calendar-week { color: var(--soft); font-size: 12px; margin-bottom: 10px; }
.calendar-dates { row-gap: 5px; }
.calendar-day { border: 0; width: min(100%,42px); aspect-ratio: 1; border-radius: 50%; color: #a7ebc5; background: #22382c; font-size: 15px; font-weight: 600; }
.calendar-day[data-available="false"] { color: #777d78; background: transparent; font-weight: 400; }
.calendar-day[aria-pressed="true"] { color: #10271a; background: #9be8ba; }
.calendar-times { border-left: 1px solid var(--line); }
.calendar-zone { font-size: 14px; margin: 6px 0 24px; }
.calendar-periods h3 { color: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: .06em; margin: 20px 0 8px; }
.calendar-slot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.calendar-slot { min-height: 44px; padding: 10px 4px; border-radius: 999px; background: #29322d; border: 0; color: #def3e5; font-size: 14px; }
.calendar-day:enabled:hover { box-shadow: inset 0 0 0 1px #9be8ba; }
.calendar-actions { gap: 24px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 680px) {
  .calendar-page { padding: 28px 14px 40px; }
  .calendar-split { grid-template-columns: 1fr; border-radius: 18px; }
  .calendar-times { border-left: 0; border-top: 1px solid var(--line); }
  .calendar-summary { margin-bottom: 20px; }
}

.special-request { width: min(100%, 620px); display: grid; gap: 16px; padding: 24px; background: var(--panel); border-radius: 20px; }
.special-request .s-undo { justify-self: start; }
.request-times { display: grid; gap: 14px; }
.request-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.request-row label { display: grid; gap: 4px; font-size: 14px; }
.request-row input { color: var(--ink); background: var(--tile); border: 1px solid var(--line); border-radius: 8px; padding: 9px; font: inherit; }
.special-request p:empty { display: none; }

.calendar-slot[data-featured="true"] { background: #30483a; color: #f3faf5; }
.calendar-slot:disabled { background: #1b1d1b; color: #818581; cursor: default; box-shadow: none; }
.time-toggle { margin-top: 14px; }

.calendar-slot:enabled:hover { background: #405e4c; }
