/* Patient Pipeline — VSL funnel styles.
   Design system mirrors patientpipeline.app: Geist, slate ink, teal-blue accent, soft cards. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap");

:root {
  --bg: oklch(0.984 0.003 247.858);
  --card: #fff;
  --ink: oklch(0.279 0.041 260.031);
  --ink-2: oklch(0.372 0.044 257.287);
  --muted-fg: oklch(0.554 0.046 257.417);
  --muted: oklch(0.968 0.007 247.896);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.869 0.022 252.894);
  --accent: oklch(0.588 0.084 220.5);
  --accent-hover: oklch(0.53 0.084 220.5);
  --accent-soft: oklch(0.588 0.084 220.5 / 0.1);
  --accent-line: oklch(0.588 0.084 220.5 / 0.4);
  --success: oklch(0.627 0.144 152.5);
  --danger: oklch(0.577 0.245 27.325);
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -28px rgba(15, 23, 42, 0.3);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: block; flex: none; text-decoration: none; }
.logo img { height: 44px; width: auto; }
@media (min-width: 768px) {
  .site-header .wrap { min-height: 84px; }
  .logo img { height: 60px; }
}

/* ---------- Type ---------- */
.label {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.label--muted { color: var(--muted-fg); }
.h1, h1 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(34px, 7vw, 68px); }
.h2, h2 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; font-size: clamp(28px, 4.6vw, 40px); }
.lede { margin: 0; color: var(--muted-fg); font-size: 17px; max-width: 60ch; }
/* No orphaned last words: headings balance their lines, body copy avoids single-word last lines. */
h1, h2, h3, .h1, .h2, .booking-time, .times__head, .cal__month, .ppg__title, .booking-overlay__title, .steps-text, .faq-q-text, .cls__t, .cls__note, .nolead p { text-wrap: balance; }
p, li, .lede, .faq-summary, .cls__d, .consent__text, .cta-note { text-wrap: pretty; }
@media (min-width: 768px) { .lede { font-size: 18px; } }
.mark {
  display: inline-block; background: var(--accent); color: #fff;
  border-radius: 0.16em; padding: 0.08em 0.24em 0.12em; margin-top: 0.1em;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; max-width: 100%;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #fff; padding: 13px 28px;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, color .15s, transform .08s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }
.btn--block { width: 100%; }
.btn--xl { font-size: clamp(17px, 2.2vw, 20px); padding: 18px 40px; border-radius: 10px; }
@media (max-width: 400px) { .btn--xl { font-size: 16px; padding: 16px 14px; } }
.btn--sm { font-size: 14px; padding: 10px 18px; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--muted); border-color: var(--border); }
.btn--invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn--invert:hover { background: var(--muted); border-color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 479px) { .site-header .btn--sm { font-size: 13px; padding: 9px 12px; } }

/* ---------- Cards ---------- */
.box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 24px 0; font-size: 13px; color: var(--muted-fg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .site-footer__legal { display: grid; gap: 10px; justify-content: stretch; margin-bottom: 20px; padding-bottom: 20px; }
.site-footer__legal p { margin: 0; max-width: 860px; font-size: 12px; line-height: 1.55; }
.site-footer__legal + .wrap { padding-top: 20px; border-top: 1px solid var(--border); }
.site-footer__legal strong { color: var(--ink-2); font-weight: 600; }

/* =====================================================================
   Landing page
   ===================================================================== */
.hero-bg {
  background:
    radial-gradient(960px 480px at 85% -10%, oklch(0.588 0.084 220.5 / 0.14), transparent 70%),
    linear-gradient(oklch(0.9642 0.00705 246.49) 0%, var(--bg) 100%);
  background-repeat: no-repeat; background-size: 100% 760px;
}
.hero { padding: 40px 0 36px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
@media (min-width: 768px) { .hero { padding: 72px 0 52px; } .hero .wrap { gap: 26px; } }
/* Headline is exactly two rows; js/fit.js sizes each row to the available width (CSS below is the no-JS fallback). */
.hero2 .h1 { width: 100%; max-width: none; line-height: 1.04; }
.hero2 .h1 .h1__line, .hero2 .h1 .mark { white-space: nowrap; }
.hero2 .h1 .h1__line { display: block; font-size: min(calc((100vw - 2 * var(--gutter)) / 15.2), 62px); }
.hero2 .h1 .mark { font-size: min(calc((100vw - 2 * var(--gutter)) / 15.6), 62px); }
/* Phones: two short rows would be tiny, so each row wraps onto two balanced lines at a readable size. */
@media (max-width: 639px) {
  .hero2 .h1 .h1__line, .hero2 .h1 .mark { white-space: normal; text-wrap: balance; font-size: clamp(27px, 8.3vw, 36px); line-height: 1.1; }
  .hero2 .h1 .mark { margin-top: 0.28em; padding: 0.14em 0.3em 0.18em; }
}
.hero .lede { margin: 0 auto; }
@media (min-width: 900px) { .hero .lede--wide { max-width: 860px; } }
.cta-row, .cta-block { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.cta-block { margin-top: 32px; }
.cta-row .btn, .cta-block .btn { width: 100%; }
@media (min-width: 640px) { .cta-row .btn, .cta-block .btn { width: auto; } }
.cta-note { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted-fg); }

/* VSL frame */
.vsl-section { padding: 0 0 56px; }
@media (min-width: 768px) { .vsl-section { padding-bottom: 96px; } }
.vsl-inner { max-width: 960px; margin: 0 auto; }
.vsl-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); }
.vsl { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
@supports not (aspect-ratio: 16 / 9) { .vsl { height: 0; padding-top: 56.25%; } }
.vsl--solo { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 16px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, oklch(0.372 0.044 257.287), var(--ink) 70%);
}
.vsl-play {
  width: clamp(60px, 13vw, 96px); height: clamp(60px, 13vw, 96px); border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.14);
}
.vsl-play::before {
  content: ""; display: block; width: 0; height: 0; margin-left: 9%;
  border-style: solid; border-color: transparent transparent transparent #fff;
  border-width: clamp(11px, 2.4vw, 17px) 0 clamp(11px, 2.4vw, 17px) clamp(18px, 3.9vw, 28px);
}
.vsl-placeholder .label, .ppp__big .label { color: #fff; font-size: 12px; letter-spacing: 0.08em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* Stat strip fused under the video */
.vstats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.vstats li { background: var(--card); padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.vstats__num { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(19px, 5.4vw, 24px); color: var(--ink); }
.vstats__label { font-size: 12px; font-weight: 500; color: var(--muted-fg); line-height: 1.3; }
@media (min-width: 768px) {
  .vstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vstats li { padding: 22px 12px 20px; gap: 6px; }
  .vstats__num { font-size: clamp(22px, 2.6vw, 28px); }
  .vstats__label { font-size: 13px; }
}

/* Dark "on the call" panel */
.sec { padding: 56px 0; }
@media (min-width: 768px) { .sec { padding: 96px 0; } }
.sec--top { border-top: 1px solid var(--border); background: var(--card); }
.cls { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 28px 20px; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .cls { padding: 56px; } }
.cls__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.cls .label { color: oklch(0.78 0.07 220.5); }
.cls__head .label { white-space: nowrap; }
@media (max-width: 479px) { .cls__stamp { font-size: 11px; padding: 4px 10px; letter-spacing: 0.02em; } }
.cls__stamp { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.cls h2 { color: #fff; margin: 0 0 16px; }
.cls__lede { color: oklch(0.869 0.022 252.894); max-width: 62ch; margin: 0; font-size: 17px; }
.cls__steps { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cls__steps li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.cls__n { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: oklch(0.78 0.07 220.5); font-variant-numeric: tabular-nums; }
.cls__t { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.cls__d { grid-column: 2; color: oklch(0.869 0.022 252.894); font-size: 15px; }
@media (min-width: 768px) {
  .cls__steps li { grid-template-columns: auto 12em 1fr; }
  .cls__t { font-size: 21px; }
  .cls__d { grid-column: 3; font-size: 16px; }
}
.cls__foot { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 768px) { .cls__foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.cls__note { margin: 0; font-weight: 600; font-size: 16px; }
.cls .btn { width: 100%; }
@media (min-width: 640px) { .cls .btn { width: auto; } }

/* =====================================================================
   Custom video player (js/video.js, Vimeo)
   ===================================================================== */
.ppp { position: absolute; inset: 0; background: var(--ink); color: #fff; overflow: hidden; }
.ppp__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ppp[data-state="idle"]::before, .ppp[data-state="loading"]::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(15, 23, 42, 0.38); pointer-events: none; }
.ppp:not([data-state="idle"]) .ppp__poster { visibility: hidden; }
.ppp__frame, .ppp__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ppp__frame { z-index: 0; }
.ppp[data-state="idle"] .ppp__frame { opacity: 0; pointer-events: none; }
.ppp.is-tapthrough[data-state="idle"] .ppp__frame { opacity: 0.01; pointer-events: auto; z-index: 6; }
.ppp__hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.ppp[data-state="idle"] .ppp__hit { display: none; }
.ppp.is-native .ppp__hit, .ppp.is-native .ppp__bar, .ppp.is-native .ppp__big { display: none; }
.ppp__big {
  position: absolute; inset: 0; z-index: 3; margin: auto; border: 0; padding: 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: transparent; color: #fff; font: inherit; width: 100%; height: 100%;
}
.ppp__big .vsl-play { transition: transform .12s ease, background .15s; }
.ppp__big:hover .vsl-play { transform: scale(1.06); background: var(--accent-hover); }
.ppp__big:focus-visible { outline: none; }
.ppp__big:focus-visible .vsl-play { outline: 3px solid #fff; outline-offset: 6px; }
.ppp[data-state="playing"] .ppp__big, .ppp[data-state="loading"] .ppp__big { opacity: 0; pointer-events: none; }
.ppp[data-state="paused"] .ppp__big, .ppp[data-state="ended"] .ppp__big { background: rgba(15, 23, 42, 0.35); }
.ppp[data-state="paused"] .ppp__big .label { display: none; }
.ppp__spinner {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%;
  animation: ppp-spin .8s linear infinite; display: none; pointer-events: none;
}
.ppp[data-state="loading"] .ppp__spinner, .ppp.is-buffering[data-state="playing"] .ppp__spinner { display: block; }
@keyframes ppp-spin { to { transform: rotate(360deg); } }
.ppp__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 4px; padding: 0 8px; height: 48px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7));
  transform: translateY(100%); transition: transform .18s ease;
}
.ppp[data-state="paused"] .ppp__bar, .ppp[data-state="ended"] .ppp__bar,
.ppp.is-active:not([data-state="idle"]):not([data-state="loading"]) .ppp__bar,
.ppp:focus-within:not([data-state="idle"]):not([data-state="loading"]) .ppp__bar { transform: none; }
.ppp__btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: transparent; color: #fff; border: 0; border-radius: 6px; padding: 0; cursor: pointer; }
.ppp__btn svg { width: 20px; height: 20px; display: block; }
.ppp__btn:hover { background: rgba(255, 255, 255, 0.16); }
.ppp__btn:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.ppp__progress { flex: 1 1 auto; height: 40px; display: flex; align-items: center; cursor: pointer; touch-action: none; padding: 0 6px; }
.ppp__progress:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 6px; }
.ppp__track { position: relative; width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.ppp__buffered, .ppp__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; }
.ppp__buffered { background: rgba(255, 255, 255, 0.35); }
.ppp__fill { background: var(--accent); }
.ppp__knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .12s ease; }
.ppp__progress:hover .ppp__knob, .ppp.is-scrubbing .ppp__knob, .ppp__progress:focus-visible .ppp__knob { transform: scale(1); }
.ppp__time { flex: none; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
@media (max-width: 420px) { .ppp__time { font-size: 11px; padding: 0 2px; } .ppp__bar { gap: 0; padding: 0 2px; } }
.ppp__unmute {
  position: absolute; z-index: 5; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; box-shadow: var(--shadow-sm);
}
.ppp__unmute svg { width: 18px; height: 18px; }
.vsl:fullscreen { border: 0; border-radius: 0; width: 100vw; height: 100vh; aspect-ratio: auto; padding: 0; background: #000; }
.vsl:-webkit-full-screen { border: 0; border-radius: 0; width: 100vw; height: 100vh; padding: 0; background: #000; }

/* =====================================================================
   "Practice owner or patient?" gate (js/gate.js)
   ===================================================================== */
.ppg { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ppg__box { width: 100%; max-width: 520px; background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: 16px; padding: 28px 20px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.5); }
@media (min-width: 640px) { .ppg__box { padding: 40px; } }
.ppg__label { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ppg__title { margin: 0 0 12px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; font-size: clamp(26px, 6.4vw, 34px); }
.ppg__text { margin: 0 0 24px; color: var(--muted-fg); font-size: 16px; line-height: 1.5; }
.ppg__opts { display: grid; gap: 12px; }
.ppg__opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.ppg__opt small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted-fg); }
.ppg__opt:hover { background: var(--muted); border-color: var(--input); }
.ppg__opt--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.ppg__opt--primary small { color: rgba(255, 255, 255, 0.85); }
.ppg__opt--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ppg__opt:focus-visible, .ppg__close:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; }
.ppg__arrow { flex: none; font-size: 20px; }
.ppg__close { margin-top: 12px; width: 100%; min-height: 50px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.ppg__close:hover { background: var(--muted); }

/* =====================================================================
   Step 1: lead form (/schedule)
   ===================================================================== */
.sched { padding: 40px 0 72px; }
@media (min-width: 768px) { .sched { padding: 72px 0 112px; } }
.sched__col { max-width: 560px; margin: 0 auto; }
.sched__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.sched__head .mark { white-space: nowrap; }
.sched__box { padding: 24px; }
@media (min-width: 768px) { .sched__box { padding: 40px; } }
@media (max-width: 360px) { .sched__box { padding: 20px 16px; } }
.sched__form { display: flex; flex-direction: column; gap: 22px; }
.sched__note { margin: 12px 0 0; font-size: 13px; color: var(--muted-fg); text-align: center; }
.sched__error { margin: 0; color: var(--danger); font-weight: 600; font-size: 14px; }
.sched__error:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .svc__legend { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.field input {
  font-family: var(--font); font-size: 17px; font-weight: 400; color: var(--ink);
  border: 1px solid var(--input); border-radius: var(--radius); background: var(--card);
  padding: 13px 14px; width: 100%; min-width: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: oklch(0.72 0.03 257); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.err { margin: 0; color: var(--danger); font-size: 13px; font-weight: 500; }
.err:empty { display: none; }

/* Services multi-select */
.svc { border: 0; margin: 0; padding: 0; min-width: 0; }
.svc__legend { padding: 0; margin: 0 0 4px; width: 100%; font-size: 15px; }
.svc__hint { margin: 0 0 12px; font-size: 13px; color: var(--muted-fg); }
.svc__group { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
/* Two equal columns that span the same width as the inputs above; one full-width column on phones. */
.svc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
@media (max-width: 479px) {
  .svc__grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .svc__grid .svc__box { min-height: 42px; padding: 8px 10px; gap: 8px; font-size: 14.5px; }
}
.svc__opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.svc__input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.svc__box {
  display: flex; align-items: center; gap: 10px; height: 100%; min-height: 48px; padding: 9px 12px;
  border: 1px solid var(--input); border-radius: var(--radius); background: var(--card);
  font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--ink);
  -webkit-user-select: none; user-select: none; transition: background .12s, border-color .12s;
}
.svc__box::before {
  content: ""; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--input); border-radius: 5px; background: var(--card);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1; color: #fff;
}
@media (hover: hover) { .svc__opt:hover .svc__input:not(:checked) + .svc__box { background: var(--muted); } }
.svc__input:checked + .svc__box { border-color: var(--accent); background: var(--accent-soft); }
.svc__input:checked + .svc__box::before { content: "\2713"; background: var(--accent); border-color: var(--accent); }
.svc__input:focus-visible + .svc__box { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.svc[aria-invalid="true"] .svc__box { border-color: var(--danger); }
.svc .svc__grid:last-of-type { margin-bottom: 0; }
.svc .err { margin-top: 8px; }

/* SMS consent */
.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 4px 0; cursor: pointer; }
.consent__input { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.consent__box { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--input); border-radius: 6px; background: var(--card); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; line-height: 1; }
.consent__input:checked + .consent__box { background: var(--accent); border-color: var(--accent); }
.consent__input:checked + .consent__box::after { content: "\2713"; }
.consent__input:focus-visible + .consent__box { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.consent__input[aria-invalid="true"] + .consent__box { border-color: var(--danger); }
.consent__text { font-size: 13px; line-height: 1.5; color: var(--muted-fg); }
.consent-wrap .err { margin-top: 4px; }

/* =====================================================================
   Step 2: calendar (/book)
   ===================================================================== */
.book { padding: 36px 0 72px; }
@media (min-width: 768px) { .book { padding: 64px 0 112px; } }
.book__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; max-width: 760px; }
.nolead { padding: 24px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 560px; }
@media (min-width: 768px) { .nolead { padding: 40px; } }
.nolead .btn { max-width: 100%; white-space: normal; }
.nolead p { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.picker { padding: 20px 16px; }
@media (min-width: 768px) { .picker { padding: 32px; } }

.tzrow { display: flex; flex-direction: column; gap: 6px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.tzlabel { font-size: 14px; font-weight: 600; cursor: default; }
.tznote { margin: 0; font-size: 13px; color: var(--muted-fg); }
.tzdd { position: relative; width: 100%; }
@media (min-width: 768px) { .tzdd { width: 380px; max-width: 100%; } }
.tzdd__btn {
  display: block; width: 100%; margin: 0; text-align: left;
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink);
  border: 1px solid var(--input); border-radius: var(--radius); background: var(--card);
  padding: 13px 48px 13px 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.tzdd__btn:focus { outline: none; }
.tzdd__btn:focus-visible, .tzdd.is-open .tzdd__btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tzdd__chev { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; transition: transform .15s ease; color: var(--muted-fg); }
.tzdd.is-open .tzdd__chev { transform: translateY(-50%) rotate(180deg); }
.tzdd__pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.3); overflow: hidden; padding: 4px; }
.tzdd__list { list-style: none; margin: 0; padding: 0; }
.tzdd__list:focus { outline: none; }
.tzdd__opt { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tzdd__opt.is-active, .tzdd__opt:active { background: var(--muted); }
.tzdd__check { visibility: hidden; font-size: 16px; line-height: 1; flex: 0 0 auto; color: var(--accent); }
.tzdd__opt[aria-selected="true"] .tzdd__check { visibility: visible; }

.picker__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .picker__grid { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 40px; align-items: start; } }

.cal__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__month { margin: 0; font-size: clamp(19px, 3.6vw, 24px); font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.navbtn { flex: none; width: 44px; height: 44px; padding: 0 0 3px; font-family: var(--font); font-size: 26px; font-weight: 500; line-height: 1; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; }
.navbtn:hover:not([disabled]) { background: var(--muted); }
.navbtn:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.navbtn[disabled] { color: var(--input); cursor: not-allowed; }
.cal__dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 6px; }
.cal__dow span { font-size: 12px; font-weight: 600; color: var(--muted-fg); text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__grid.is-loading .day { opacity: .45; }
.cell, .day { height: clamp(44px, 10.5vw, 62px); border-radius: var(--radius); }
.day {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 0; margin: 0; border: 1px solid var(--accent-line); background: var(--accent-soft);
  font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: background .12s, border-color .12s;
}
@media (hover: hover) { .day:hover:not([disabled]):not([aria-pressed="true"]) { background: oklch(0.588 0.084 220.5 / 0.2); } }
.day:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; z-index: 1; }
.day[disabled] { background: transparent; border-color: transparent; color: oklch(0.78 0.02 257); font-weight: 400; cursor: default; }
.day.is-today { box-shadow: inset 0 -3px 0 -1px var(--ink-2); }
.day.is-today[disabled] { box-shadow: inset 0 -3px 0 -1px var(--input); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }

.cal__hint { display: none; margin: 14px 0 0; font-size: 14px; color: var(--muted-fg); text-align: center; }
@media (max-width: 899px) { .cal__hint { display: block; } }
.times { scroll-margin-top: 100px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.times__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.times__head { margin: 0; min-width: 0; font-size: clamp(21px, 3.6vw, 26px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.times__head:focus { outline: none; }
.times__tz { display: none; }
.backbtn { display: none; flex: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; margin: 0; font-family: var(--font); font-size: 14px; font-weight: 600; white-space: nowrap; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.backbtn:hover:not([disabled]) { background: var(--muted); }
.backbtn:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.backbtn[disabled] { color: var(--input); cursor: not-allowed; }
.groups { display: flex; flex-direction: column; gap: 20px; }
.tgroup { display: flex; flex-direction: column; gap: 10px; }
.tgroup__label { color: var(--muted-fg); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) {
  .groups { max-height: 420px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: var(--input) transparent; }
}
@media (max-width: 899px) {
  .picker:not(.is-times) .times:not(.is-status) { display: none; }
  .picker.is-times .tzrow, .picker.is-times .cal { display: none; }
  .picker.is-times .backbtn { display: inline-flex; }
  .picker.is-times .times__tz { display: block; margin-top: -6px; }
}
.slot { min-height: 48px; padding: 8px 6px; font-family: var(--font); font-size: 16px; font-weight: 600; white-space: nowrap; border: 1px solid var(--input); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s; }
@media (hover: hover) { .slot:hover:not([aria-pressed="true"]) { background: var(--muted); border-color: var(--accent-line); } }
.slot:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.hint { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-fg); }
.muted { margin: 0; color: var(--muted-fg); }
.loader { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.loader__bar { position: relative; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.loader__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 3px; background: var(--accent); animation: ppload 1.1s linear infinite; }
@keyframes ppload { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .loader__bar::before { animation-duration: 3s; } }
.alert { border: 1px solid var(--danger); background: oklch(0.577 0.245 27.325 / 0.06); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; scroll-margin: 110px; }
.alert p { margin: 0; color: var(--danger); font-weight: 600; }
.confirm { margin-top: 6px; }
.confirm .btn { white-space: nowrap; font-size: clamp(14px, 4vw, 17px); padding-left: 10px; padding-right: 10px; }
@media (max-width: 899px) {
  .confirm { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.25); padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  body.has-confirm { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
.booking-overlay { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.booking-overlay__inner { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); padding: 32px 24px; text-align: center; }
.booking-overlay__title { font-size: clamp(24px, 5.6vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 10px 0 14px; }
.booking-overlay__when { font-weight: 600; font-size: 16px; margin: 0 0 10px; }
.booking-overlay__hint { color: var(--muted-fg); font-size: 13px; margin: 0 0 20px; }
.booking-overlay.is-done .booking-overlay__hint { visibility: hidden; }
.booking-overlay__bar { position: relative; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
/* A bright segment sweeps left to right while the booking is in flight. */
.booking-overlay__bar span {
  position: absolute; top: 0; bottom: 0; left: 0; width: 45%; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
  animation: pp-book-sweep 1.15s cubic-bezier(.45, 0, .55, 1) infinite;
  will-change: transform;
}
@keyframes pp-book-sweep { from { transform: translateX(-110%); } to { transform: translateX(235%); } }
/* Confirmed: the bar fills, turns green, and a sheen keeps moving across it. */
.booking-overlay.is-done .booking-overlay__bar span {
  width: 100%; background: var(--success);
  background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 200% 100%; background-repeat: no-repeat;
  animation: pp-book-fill .45s ease-out both, pp-book-sheen 1.1s linear .2s infinite;
}
@keyframes pp-book-fill { from { transform: scaleX(0.15); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes pp-book-sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }
/* Reduced motion: this is a progress indicator, so it still moves, just slower and without the sheen. */
@media (prefers-reduced-motion: reduce) {
  .booking-overlay__bar span { animation-duration: 2.2s; }
  .booking-overlay.is-done .booking-overlay__bar span { animation: none; background-image: none; }
}

/* =====================================================================
   Thank-you page
   ===================================================================== */
.ty-hero { padding: 44px 0 32px; text-align: center; }
.ty-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ty-hero .h1 { font-size: clamp(40px, 9vw, 76px); }
@media (min-width: 768px) { .ty-hero { padding: 80px 0 48px; } .ty-hero .wrap { gap: 22px; } }
.check-badge { width: 56px; height: 56px; border-radius: 50%; background: oklch(0.627 0.144 152.5 / 0.14); color: var(--success); display: grid; place-items: center; }
.check-badge svg { width: 28px; height: 28px; }
.booking-box { width: 100%; max-width: 760px; padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
@media (min-width: 640px) { .booking-box { padding: 24px 32px; } }
.booking-time { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-size: clamp(19px, 3.1vw, 26px); overflow-wrap: break-word; }
.booking-time--pending { letter-spacing: 0; font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--muted-fg); }
.reschedule { margin: 0; font-size: 13px; color: var(--muted-fg); }
/* Phones: date on one line, time on the next, both large and using the full card width. */
@media (max-width: 639px) {
  .booking-box { padding: 18px 12px 20px; }
  .booking-time:not(.booking-time--pending) { font-size: clamp(22px, 6.6vw, 28px); line-height: 1.2; text-wrap: wrap; }
  .booking-time .bt-date, .booking-time .bt-time { display: block; }
  .booking-time .bt-at { display: none; }
}
.addcal { margin-top: 20px; padding: 20px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center; }
@media (min-width: 640px) { .addcal { padding: 24px 28px; } }
.addcal__title { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.addcal__btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { .addcal__btns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.addcal__btn { width: 100%; padding: 13px 12px; font-size: 15px; }
.addcal__note { margin: 12px 0 0; font-size: 13px; color: var(--muted-fg); }

.steps { padding: 48px 0; }
@media (min-width: 768px) { .steps { padding: 80px 0; } }
.steps .label { margin-bottom: 20px; font-size: 12px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.steps-list li { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.steps-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.steps-text { font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; font-size: 18px; }

.faq-section { padding: 48px 0 64px; }
@media (min-width: 768px) { .faq-section { padding: 80px 0 112px; } }
.faq-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.faq { display: grid; gap: 12px; }
@media (min-width: 900px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; } }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q { margin: 0; font-size: inherit; }
.faq-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 14px 16px; background: var(--card); color: var(--ink); border: 0; cursor: pointer; font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; text-align: left; }
@media (min-width: 768px) { .faq-btn { padding: 18px 22px; font-size: 18px; min-height: 64px; } }
.faq-btn:hover { background: var(--muted); }
.faq-btn:focus-visible { outline: 3px solid var(--accent-line); outline-offset: -4px; }
.faq-q-text { min-width: 0; overflow-wrap: break-word; }
.faq-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 500; line-height: 1; color: var(--accent); }
.faq-icon::before { content: "+"; }
.faq-btn[aria-expanded="true"] .faq-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-btn[aria-expanded="true"] .faq-icon::before { content: "\2013"; }
.faq-panel { padding: 0 16px 20px; }
@media (min-width: 768px) { .faq-panel { padding: 0 22px 24px; } }
.faq-panel .vsl { border-radius: 10px; }
.faq-summary { margin: 14px 0 0; color: var(--muted-fg); font-size: 15px; max-width: 70ch; }
