/* The signup: the receptionist page's night (its tokens, font, controls and nav, copied so this page stands alone), then the
   steps, the progress line and the live preview. */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 2.6vw + 1.1rem, 3.5rem); --text-display: clamp(2.6rem, 3.4vw + 1.2rem, 4.5rem);
  --text-section: clamp(2rem, 2.2vw + 1rem, 3.25rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.3125rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(72% 0.15 27); --color-success: oklch(80% 0.12 160);
  --container: 1280px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;

  /* Night ground: one deep blue-teal ink, surfaces are lightness steps of it (Midnight raise). */
  --color-paper: oklch(16.5% 0.016 236);
  --color-paper-2: oklch(20.5% 0.018 234);
  --color-paper-3: oklch(25% 0.02 232);
  --color-ink: oklch(95.5% 0.008 215);
  --color-ink-2: oklch(84% 0.014 220);
  --color-muted: oklch(70% 0.018 226);
  --color-rule: oklch(31% 0.02 230);
  --color-edge: oklch(56% 0.03 226);
  /* Teal is the one signal (the owner's established Cooli colour). */
  --color-accent: oklch(80% 0.125 182);
  --color-accent-ink: oklch(21% 0.035 192);
  --color-focus: oklch(83% 0.14 182);
  --color-request: oklch(84% 0.11 78);
  /* The hour's light: the three fields the owner described (teal, blue, a little amber). */
  --light-teal: oklch(66% 0.11 184);
  --light-blue: oklch(48% 0.13 258);
  --light-amber: oklch(76% 0.11 68);
  --light-dawn: oklch(70% 0.09 40);
  --color-bubble-in: oklch(32% 0.05 190);
  --color-scrim: oklch(10% 0.02 236 / 0.72);
  --cursor-light: oklch(100% 0 0 / 0.07);

  --font-display: "Archivo", "Archivo Fallback Wide", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Archivo", "Archivo Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-body);
  --radius-card: 18px; --radius-control: 12px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: 0 1px 2px oklch(10% 0.02 236 / 0.4);
  --tracking-display: -0.025em;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
.container { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

@font-face {
  font-family: "Archivo";
  src: url("/home/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Roboto"), local("Helvetica Neue"); size-adjust: 98%; ascent-override: 89.6%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback Wide"; src: local("Arial"), local("Roboto"), local("Helvetica Neue"); size-adjust: 116%; ascent-override: 75.7%; descent-override: 18.1%; line-gap-override: 0%; }

html { color-scheme: dark; background: var(--color-paper); }
body { font-size: var(--text-md); }
.sprite { position: absolute; }

.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); background: var(--color-ink); color: var(--color-paper); translate: 0 -200%; }
.skip:focus-visible { translate: 0 0; }

/* Controls: one filled style, one outlined, one quiet. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-control);
  border: 1px solid transparent; font-weight: 600; font-size: var(--text-md); line-height: 1; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-focus); }
.btn--secondary { border-color: var(--color-edge); color: var(--color-ink); background: var(--color-paper); }
.btn--secondary:hover { border-color: var(--color-ink-2); background: var(--color-paper-2); }
.btn--quiet { min-height: 44px; padding: 0 var(--space-md); border-color: var(--color-rule); color: var(--color-ink); font-size: var(--text-sm); }
.btn--quiet:hover { border-color: var(--color-edge); background: var(--color-paper-2); }
.btn--ghost { padding-inline: var(--space-sm); border-color: transparent; background: transparent; color: var(--color-accent); }
.btn--ghost:hover { background: var(--color-paper-2); color: var(--color-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Nav: one line on the top edge. */
.nav { position: relative; z-index: var(--z-raised); }
.nav__in { position: relative; display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; padding-block: var(--space-sm); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; text-decoration: none; color: var(--color-ink); font-size: var(--text-lg); font-weight: 600; font-stretch: 112%; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; flex-shrink: 0; }
/* This page is one product under the company home: the brand goes home, and the product's name sits beside it. */
.crumb { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; margin-inline-start: calc(var(--space-sm) - var(--space-xl)); color: var(--color-ink-2); font-size: var(--text-md); text-decoration: none; white-space: nowrap; }
.crumb::before { content: ""; width: 1px; height: 1.1em; background: var(--color-edge); rotate: 18deg; }
.crumb:hover { color: var(--color-ink); }

/* The night's light, behind the whole signup: the same three fields as the receptionist page, drifting slowly. */
.aura { position: fixed; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
.aura__l { position: absolute; border-radius: 50%; filter: blur(96px); will-change: transform; animation: drift 34s var(--ease-in-out) infinite alternate; }
.aura__l--teal { width: 560px; height: 560px; right: 4%; top: 22%; background: var(--light-teal); opacity: 0.22; }
.aura__l--blue { width: 620px; height: 620px; left: -10%; top: -12%; background: var(--light-blue); opacity: 0.3; animation-duration: 42s; animation-delay: -12s; }
.aura__l--amber { width: 380px; height: 380px; left: 30%; bottom: -14%; background: var(--light-amber); opacity: 0.1; animation-duration: 38s; animation-delay: -20s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(48px, -36px, 0) scale(1.08); } }
body { min-height: 100svh; isolation: isolate; }
.nav__help { margin-inline-start: auto; display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }

/* The progress line: the night line of the receptionist page, with the six steps as its marks. Done steps are lit
   (dusk to dawn) and carry the answered check; the step in hand glows; the ones ahead wait on a dim line. */
.track { --done: 0%; position: relative; padding-block: var(--space-md) var(--space-xl); }
.track__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-block-end: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.track__now { color: var(--color-ink-2); }
.track__left { font-variant-numeric: tabular-nums; white-space: nowrap; }
.track__line { position: relative; height: 5px; border-radius: 3px; background: var(--color-rule); }
.track__line::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--done); border-radius: inherit; background: linear-gradient(90deg, var(--light-amber), var(--light-blue) 40%, var(--light-teal)); transition: width 700ms var(--ease-out); }
.track__steps { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.track__step { position: absolute; left: var(--x); top: 50%; translate: -50% -50%; display: grid; justify-items: center; }
.track__step:first-child { translate: 0 -50%; justify-items: start; }
.track__step:last-child { translate: -100% -50%; justify-items: end; }
.dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--color-edge); border-radius: 50%; background: var(--color-paper); color: var(--color-muted); transition: border-color var(--dur-long) var(--ease-out), color var(--dur-long) var(--ease-out), background-color var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out); }
.dot svg { width: 20px; height: 20px; }
.dot__ok { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); opacity: 0; scale: 0.4; transition: opacity var(--dur-short) var(--ease-out), scale var(--dur-long) var(--ease-out); }
.dot__ok svg { width: 12px; height: 12px; }
.track__label { position: absolute; top: calc(100% + 10px); color: var(--color-muted); font-size: var(--text-xs); white-space: nowrap; }
.track__step.is-done .dot { border-color: var(--color-accent); background: var(--color-paper-2); color: var(--color-accent); }
.track__step.is-done .dot__ok { opacity: 1; scale: 1; }
.track__step.is-now .dot { border-color: var(--color-accent); background: var(--color-paper-3); color: var(--color-ink); box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-accent) 16%, transparent), 0 6px 24px oklch(10% 0.02 236 / 0.5); }
.track__step.is-now .track__label { color: var(--color-ink); font-weight: 600; }
.track__step.is-done .track__label { color: var(--color-ink-2); }

/* The room: the question on the left, the live receptionist on the right. */
.room { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-2xl); align-items: start; padding-block: var(--space-xl) var(--space-3xl); }
.step { display: grid; gap: var(--space-lg); align-content: start; max-width: 36rem; }
.step h1 { font-size: var(--text-display-s); font-weight: 300; font-stretch: 118%; letter-spacing: var(--tracking-display); line-height: 1.05; color: var(--color-ink); }
.step__lede { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 34ch; }
.step__foot { display: flex; align-items: center; gap: var(--space-sm); padding-block-start: var(--space-sm); }
.step__foot .btn--primary { min-width: 11rem; }
.step__foot .btn svg { width: 18px; height: 18px; }
.step__hint { color: var(--color-muted); font-size: var(--text-sm); }

/* Find: one big field, the matches under it as the owner types. */
.find { display: grid; gap: var(--space-sm); }
.field { position: relative; display: flex; align-items: center; }
.field > svg { position: absolute; left: var(--space-md); width: 22px; height: 22px; color: var(--color-muted); pointer-events: none; }
.field input { width: 100%; min-height: 60px; padding: 0 var(--space-md) 0 52px; border: 1px solid var(--color-edge); border-radius: var(--radius-control); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-lg); transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.field input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 18%, transparent); }
.field input::placeholder { color: var(--color-muted); }
.near { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.near input { min-height: 40px; width: 12rem; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: transparent; color: var(--color-ink); font-size: var(--text-sm); }
.matches { display: grid; gap: var(--space-2xs); margin: 0; padding: var(--space-2xs); list-style: none; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-paper-2) 92%, transparent); }
.match { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); width: 100%; min-height: 64px; padding: var(--space-xs) var(--space-sm); border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--color-ink); text-align: start; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.match:hover, .match[aria-selected="true"] { background: var(--color-paper-3); border-color: var(--color-edge); }
.match__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--color-paper); color: var(--color-accent); }
.match__icon svg { width: 20px; height: 20px; }
.match__name { display: block; font-weight: 600; }
.match__name mark { background: none; color: var(--color-accent); }
.match__where { display: block; color: var(--color-muted); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__go { width: 18px; height: 18px; color: var(--color-muted); opacity: 0; transition: opacity var(--dur-short) var(--ease-out), translate var(--dur-short) var(--ease-out); translate: -4px 0; }
.match:hover .match__go, .match[aria-selected="true"] .match__go { opacity: 1; translate: 0 0; color: var(--color-accent); }
.find__other { justify-self: start; color: var(--color-ink-2); font-size: var(--text-sm); }

/* Voice: eight voices, each plays the owner's own greeting; four tones under them. */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); margin: 0; padding: 0; border: 0; }
.voice { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: var(--space-sm); min-height: 68px; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: color-mix(in oklab, var(--color-paper-2) 80%, transparent); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.voice:hover { border-color: var(--color-edge); }
.voice input { position: absolute; opacity: 0; pointer-events: none; }
.voice:has(input:checked) { border-color: var(--color-accent); background: var(--color-paper-3); }
.voice:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.voice__play { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-edge); border-radius: 50%; background: var(--color-paper); color: var(--color-ink); cursor: pointer; }
.voice__play svg { width: 16px; height: 16px; }
.voice:has(input:checked) .voice__play { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.voice__name { display: block; font-weight: 600; }
.voice__about { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.voice__tag { position: absolute; right: var(--space-sm); top: var(--space-xs); color: var(--color-accent); font-size: var(--text-xs); }
.tones { display: grid; gap: var(--space-xs); }
.tones__label { color: var(--color-ink-2); font-size: var(--text-sm); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-paper-2); }
.seg label { display: grid; place-items: center; min-height: 44px; border-radius: 9px; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--color-paper-3); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-edge); }

/* The live receptionist: a phone taking a call for this business. It fills in as the owner answers, and the rings
   go out from it whenever the chosen voice speaks. */
.stage { --card-w: 340px; position: sticky; top: var(--space-lg); display: grid; place-items: center; min-height: 600px; }
.rings { position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; translate: -50% -50%; pointer-events: none; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--color-accent); opacity: 0; }
.is-speaking .rings i { animation: ring 2.4s var(--ease-out) infinite; }
.is-speaking .rings i:nth-child(2) { animation-delay: 0.8s; }
.is-speaking .rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { opacity: 0.5; transform: scale(0.72); } to { opacity: 0; transform: scale(1.25); } }
.live { position: relative; z-index: var(--z-raised); display: grid; grid-template-rows: auto auto 1fr auto; width: min(var(--card-w), 100%); min-height: 560px; padding: var(--space-md); border: 1px solid var(--color-edge); border-radius: 34px; background: var(--color-paper); box-shadow: 0 30px 80px oklch(8% 0.02 236 / 0.6), 0 2px 6px oklch(8% 0.02 236 / 0.4); }
.live__bar { display: flex; justify-content: space-between; padding: 0 var(--space-xs); color: var(--color-ink-2); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.live__who { display: grid; justify-items: center; gap: var(--space-2xs); padding-block: var(--space-xl) var(--space-lg); text-align: center; }
.live__ring { color: var(--color-accent); font-size: var(--text-xs); }
.live__avatar { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin-block: var(--space-xs); border-radius: 50%; background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-xl); font-weight: 600; font-stretch: 112%; box-shadow: inset 0 0 0 1px var(--color-edge); }
.live__name { font-size: var(--text-xl); font-weight: 400; font-stretch: 112%; letter-spacing: -0.01em; color: var(--color-ink); }
.live__hours { display: inline-flex; align-items: center; gap: 6px; color: var(--color-ink-2); font-size: var(--text-sm); }
.live__hours svg { width: 14px; height: 14px; color: var(--color-accent); }
.live__say { align-self: start; display: grid; gap: var(--space-xs); }
.bubble { justify-self: start; max-width: 92%; padding: var(--space-sm) var(--space-md); border-radius: 18px 18px 18px 6px; background: var(--color-bubble-in); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.45; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; padding-inline: var(--space-xs); }
.wave i { width: 3px; height: var(--h, 30%); border-radius: 2px; background: var(--color-accent); opacity: 0.85; transition: height 90ms linear; }
.is-speaking .wave i { animation: wave 0.9s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--d) * -1s); }
@keyframes wave { from { height: 18%; } to { height: 100%; } }
.live__voice { color: var(--color-muted); font-size: var(--text-xs); }
.live__foot { display: grid; gap: var(--space-xs); padding-block-start: var(--space-md); border-top: 1px solid var(--color-rule); }
.live__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); }
.live__row b { color: var(--color-ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.live__row b.is-wait { color: var(--color-muted); font-weight: 400; }
.skel { display: block; height: 10px; border-radius: 5px; background: var(--color-paper-3); }
/* A fact arriving in the preview lights up once, then settles. */
.is-new { animation: arrive 1.2s var(--ease-out); }
@keyframes arrive { 0% { opacity: 0; filter: blur(6px); translate: 0 6px; color: var(--color-accent); } 40% { opacity: 1; filter: blur(0); translate: 0 0; color: var(--color-accent); } }

/* A step leaving and the next arriving: a short drift with a soft blur. Reduced motion keeps only the cross fade. */
.step.is-leaving { animation: leave 260ms var(--ease-in) forwards; }
.step.is-entering { animation: enter 520ms var(--ease-out) both; }
@keyframes leave { to { opacity: 0; translate: -28px 0; filter: blur(6px); } }
@keyframes enter { from { opacity: 0; translate: 36px 0; filter: blur(8px); } }
.step.is-entering > * { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }

@media (max-width: 60rem) {
  .room { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-md) 128px; }
  .stage { position: relative; top: 0; min-height: 0; order: -1; }
  .rings { width: 300px; height: 300px; }
  /* On a phone the live receptionist folds into one strip above the question: name, hours and the voice playing. */
  .live { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 0 var(--space-sm); width: 100%; min-height: 0; padding: var(--space-sm); border-radius: var(--radius-card); box-shadow: 0 12px 32px oklch(8% 0.02 236 / 0.5); }
  .live__bar, .live__ring, .live__foot, .live__say .bubble { display: none; }
  .live__who { display: contents; }
  .live__avatar { grid-row: 1 / span 2; width: 52px; height: 52px; margin: 0; font-size: var(--text-md); }
  .live__name { grid-column: 2; font-size: var(--text-md); font-weight: 600; text-align: start; }
  .live__hours { grid-column: 2; font-size: var(--text-xs); }
  .live__say { grid-column: 3; grid-row: 1 / span 2; }
  .live__voice { display: none; }
  .wave { height: 24px; gap: 2px; padding: 0; }
  .wave i:nth-child(n+13) { display: none; }
  .rings { display: none; }
  .live__hours { white-space: nowrap; }
  .live__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .track__label { display: none; }
  .dot { width: 34px; height: 34px; }
  .dot svg { width: 16px; height: 16px; }
  .dot__ok { width: 16px; height: 16px; right: -5px; top: -5px; }
  .dot__ok svg { width: 10px; height: 10px; }
  .track { padding-block: var(--space-xs) var(--space-md); }
  .track__head { margin-block-end: var(--space-md); }
  .track__step.is-now .dot { box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 16%, transparent); }
  .step h1 { font-size: 2.1rem; }
  .step__lede { font-size: var(--text-md); }
  /* The decision stays in reach: Continue sits on the screen's bottom edge. */
  .step__foot { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); padding: var(--space-sm) max(var(--gutter), env(safe-area-inset-right)) calc(var(--space-sm) + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); border-top: 1px solid var(--color-rule); background: var(--color-paper); }
  .step__foot .btn--primary { flex: 1; }
  .step__foot .btn--ghost span { display: none; }
  .step__hint { display: none; }
  .nav__help span { display: none; }
  .voices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .voice { grid-template-columns: 40px minmax(0, 1fr); padding: var(--space-xs); gap: var(--space-xs); }
  .voice__play { width: 40px; height: 40px; }
  .voice__about { font-size: var(--text-xs); }
  .voice__tag { display: none; }
  .near input { flex: 1; width: auto; }
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .aura__l, .is-speaking .rings i, .is-speaking .wave i { animation: none; }
  .step.is-leaving { animation: fade-out 160ms linear forwards; }
  .step.is-entering, .step.is-entering > * { animation: fade-in 200ms linear both; }
  .is-new { animation: none; }
}

/* ---- The built page: states, the other steps, and the phone's controls. ---- */
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); background: var(--color-ink); color: var(--color-paper); translate: 0 -200%; }
.skip:focus-visible { translate: 0 0; }
.step h1:focus { outline: none; }
.step > * { min-width: 0; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn[aria-busy="true"] { cursor: progress; }
.find__other { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: underline; text-decoration-color: var(--color-edge); text-underline-offset: 0.2em; cursor: pointer; }
.find__other:hover { color: var(--color-ink); }
.find__state { min-height: 1.4em; color: var(--color-muted); font-size: var(--text-sm); }
.find__state:empty { min-height: 0; }
.find__state.is-busy::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--color-accent); animation: pulse 1s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { opacity: 0.25; scale: 0.6; } }
.matches li { animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.match__go { opacity: 0; }
.match[aria-selected="true"] .match__go { opacity: 1; translate: 0 0; color: var(--color-accent); }
.match:hover .match__go { opacity: 0.5; translate: 0 0; }

/* Plain fields: the label above, the field under it. */
.lf { display: grid; gap: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.lf em { color: var(--color-muted); font-style: normal; }
.lf input, .lf textarea, .numbers__area input { min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-edge); border-radius: var(--radius-control); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-md); transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.lf textarea { padding-block: var(--space-sm); resize: vertical; line-height: 1.5; }
.lf input:focus, .lf textarea:focus, .numbers__area input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 18%, transparent); }
.lf input[aria-invalid="true"] { border-color: var(--color-error); }
.lf input::placeholder, .lf textarea::placeholder { color: var(--color-muted); }
.manual, .owner { display: grid; gap: var(--space-md); }
.oops { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid color-mix(in oklab, var(--color-error) 45%, var(--color-rule)); border-radius: var(--radius-control); background: color-mix(in oklab, var(--color-error) 8%, var(--color-paper-2)); color: var(--color-ink); font-size: var(--text-sm); }
.oops > svg { width: 18px; height: 18px; color: var(--color-error); flex-shrink: 0; }
.oops > span { flex: 1 1 16rem; }
.note { padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-edge); border-radius: var(--radius-control); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); }

/* Plans: three choices, the suggested one already picked. */
.plans { display: grid; gap: var(--space-xs); margin: 0; padding: 0; border: 0; }
.plan { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-md); padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-paper-2) 80%, transparent); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), translate var(--dur-short) var(--ease-out); }
.plan:hover { border-color: var(--color-edge); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--color-accent); background: var(--color-paper-3); }
.plan:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.plan__head { display: flex; align-items: baseline; gap: var(--space-sm); }
.plan__name { font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); }
.plan__tag { color: var(--color-accent); font-size: var(--text-xs); }
.plan__price { grid-column: 2; grid-row: 1; color: var(--color-ink-2); font-size: var(--text-sm); white-space: nowrap; }
.plan__price b { color: var(--color-ink); font-size: var(--text-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__blurb { grid-column: 1 / -1; color: var(--color-ink-2); font-size: var(--text-sm); }
.plan__inc { grid-column: 1 / -1; color: var(--color-muted); font-size: var(--text-xs); }
.plan__check { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); opacity: 0; scale: 0.4; transition: opacity var(--dur-short) var(--ease-out), scale var(--dur-long) var(--ease-out); }
.plan__check svg { width: 13px; height: 13px; }
.plan:has(input:checked) .plan__check { opacity: 1; scale: 1; }
.extras, .booking__other { color: var(--color-ink-2); font-size: var(--text-sm); }
.extras summary, .booking__other summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-edge); text-underline-offset: 0.2em; }
.extras__in { display: grid; gap: var(--space-xs); padding-block-end: var(--space-xs); }
.extras__in b { color: var(--color-ink); font-weight: 600; }
.booking { display: grid; gap: var(--space-2xs); padding: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); color: var(--color-ink-2); font-size: var(--text-sm); }
.booking > p { display: flex; gap: var(--space-sm); }
.booking > p svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-accent); }
.booking__say { color: var(--color-ink); padding-block: var(--space-2xs) var(--space-sm); }
.booking__form { display: grid; gap: var(--space-sm); }
.booking__form .btn { justify-self: start; }
.tick { display: flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink-2); }
.tick input { width: 20px; height: 20px; accent-color: var(--color-accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status--error { color: var(--color-error); }
.form-status--success { color: var(--color-success); }

/* What it should know: each fact a switch. */
.reading { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }
.reading__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); animation: pulse 1s var(--ease-in-out) infinite; }
.knows { display: grid; gap: var(--space-2xs); max-height: min(52vh, 30rem); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2xs); margin: calc(-1 * var(--space-2xs)); scrollbar-color: var(--color-edge) transparent; }
.knows__none { color: var(--color-ink-2); font-size: var(--text-sm); }
.know { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-md); min-height: 56px; padding: var(--space-xs) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: color-mix(in oklab, var(--color-paper-2) 80%, transparent); cursor: pointer; animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
.know__text { display: grid; gap: 1px; font-size: var(--text-sm); }
.know__text b { color: var(--color-ink); font-weight: 600; }
.know__text span { color: var(--color-muted); overflow-wrap: anywhere; }
.know:has(.switch:not(:checked)) .know__text { opacity: 0.6; }
.know__edit { min-height: 44px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-control); background: none; color: var(--color-accent); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background 160ms var(--ease-out); }
.know__edit:hover { background: color-mix(in oklab, var(--color-accent) 14%, transparent); }
.know__edit:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.know__input { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--color-accent); border-radius: var(--radius-control); background: var(--color-paper); color: var(--color-ink); font: inherit; font-size: var(--text-sm); resize: vertical; animation: rise 220ms var(--ease-out) both; }
.switch { appearance: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--color-paper-3); box-shadow: inset 0 0 0 1px var(--color-edge); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-ink-2); transition: translate var(--dur-long) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.switch:checked { background: var(--color-accent); box-shadow: none; }
.switch:checked::after { translate: 18px 0; background: var(--color-accent-ink); }
.switch:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.skel--row { height: 56px; border-radius: var(--radius-control); background: linear-gradient(90deg, var(--color-paper-2), var(--color-paper-3), var(--color-paper-2)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Voice: the playing card says so. */
.voice.is-playing .voice__play { animation: beat 1.2s var(--ease-in-out) infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-accent) 22%, transparent); } }
.stage.is-loading .live__play { animation: pulse 1s var(--ease-in-out) infinite; }
.live__voicebar { display: flex; align-items: center; gap: var(--space-xs); }
.live__play { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--color-accent); border-radius: 50%; background: transparent; color: var(--color-accent); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.live__play:hover, .is-speaking .live__play { background: var(--color-accent); color: var(--color-accent-ink); }
.live__play svg { width: 16px; height: 16px; }
.live__avatar svg { width: 30px; height: 30px; color: var(--color-muted); }
.wave i { transition: height 80ms linear; }
.is-speaking .wave i { animation: none; }
.live__say { min-height: 9rem; align-content: start; }
.btn { background: transparent; color: var(--color-ink); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-focus); }
.btn--primary[disabled]:hover { background: var(--color-accent); }

/* Number: the area code, then a short list with the first one picked. */
.numbers { display: grid; gap: var(--space-sm); }
.numbers__area { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }
.numbers__area input { width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); margin: 0; padding: 0; border: 0; }
.num { position: relative; display: grid; gap: 2px; min-height: 68px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: color-mix(in oklab, var(--color-paper-2) 80%, transparent); cursor: pointer; animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.num input { position: absolute; opacity: 0; pointer-events: none; }
.num:has(input:checked) { border-color: var(--color-accent); background: var(--color-paper-3); }
.num:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.num__n { color: var(--color-ink); font-size: var(--text-lg); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.num__where { color: var(--color-muted); font-size: var(--text-xs); }
.nums .skel--row { grid-column: span 1; }

/* Pay: a short summary, then the button. */
.sum { display: grid; gap: var(--space-xs); padding: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-paper-2) 80%, transparent); }
.sum__row { display: flex; justify-content: space-between; gap: var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); }
.sum__row b { color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
.sum__row--quiet { color: var(--color-muted); font-size: var(--text-xs); }
.fine { color: var(--color-muted); font-size: var(--text-xs); line-height: 1.5; max-width: 52ch; }
.fine a { color: var(--color-ink-2); }
.noscript { padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); color: var(--color-ink-2); }

@media (max-width: 60rem) {
  /* The pinned Continue bar is about 76 px tall plus the safe area: the page ends that far above it, so the last
     option, the play buttons and the fine print are never under it. */
  .room { padding-block-end: calc(112px + env(safe-area-inset-bottom)); }
  /* A moving or blurred step would carry the pinned bar with it (fixed inside a transformed box), so on a phone the
     step itself only fades; its parts still rise in turn. */
  .step.is-leaving { animation: fade-out 200ms var(--ease-in) forwards; }
  .step.is-entering { animation: fade-in 320ms var(--ease-out) both; }
  .step.is-entering > .step__foot { animation: none; }
  .stage .live__say { min-height: 0; }
  .live__say .skel, .live__voice { display: none; }
  .live__voicebar { gap: var(--space-2xs); }
  .live__play { width: 36px; height: 36px; }
  .nums { grid-template-columns: minmax(0, 1fr); }
  .knows { max-height: none; overflow: visible; }
  .plan { padding: var(--space-sm) var(--space-md); }
}

/* Back from the payment page without canceling: no second payment offered, just where to look. */
.sent { display: grid; gap: var(--space-lg); max-width: 36rem; padding-block: var(--space-2xl) var(--space-3xl); }
.sent h1 { font-size: var(--text-display-s); font-weight: 300; font-stretch: 118%; letter-spacing: var(--tracking-display); line-height: 1.05; }
.sent__do { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* medical and dental offices: a plain note, never an error */
.medical { display: flex; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.5; animation: rise 420ms var(--ease-out) both; }
.medical > svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; color: var(--color-accent); }
.medical a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }

/* what it books in: its kind of business, then that kind's systems, then the rest */
.sys { display: grid; gap: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.sys__type { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }
.sys__type b { color: var(--color-ink); font-weight: 600; }
.sys__change, .sys__more { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: underline; text-decoration-color: var(--color-edge); text-underline-offset: 0.2em; cursor: pointer; }
.sys__change:hover, .sys__more:hover { color: var(--color-ink); }
.sys__more { justify-self: start; }
.sys__types, .sys__list { display: grid; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.sys__types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sys__q { padding: 0; margin-bottom: var(--space-2xs); color: var(--color-ink); font-weight: 600; font-size: var(--text-sm); }
.sys__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.sys__grid--out { padding-top: var(--space-xs); }
.sys__sub { padding-top: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.opt { position: relative; display: flex; align-items: center; min-height: 52px; padding: var(--space-xs) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: color-mix(in oklab, var(--color-paper-2) 80%, transparent); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; line-height: 1.25; cursor: pointer; animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.opt:hover { border-color: var(--color-edge); }
.opt:active { transform: scale(0.98); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--color-accent); background: var(--color-paper-3); box-shadow: inset 0 0 0 1px var(--color-accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.sys__note { color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.5; }
.sys__note:empty { display: none; }
.sys__custom { display: grid; gap: var(--space-sm); }

/* General questions mode (medical and dental): the office's link, a free/busy calendar, insurance and services. */
.care { display: grid; gap: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); animation: rise 420ms var(--ease-out) both; }
.care__cal { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2xs); }
.care .sys__q em, .care .lf em { font-style: normal; font-weight: 400; color: var(--color-ink-2); }

/* Typed-in business: the one medical or dental question. */
.yn { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.yn legend { grid-column: 1 / -1; margin-bottom: var(--space-2xs); color: var(--color-ink); font-weight: 600; font-size: var(--text-sm); padding: 0; }

/* How it says the name (voice step) and the extras on the pay summary. */
.spoken { margin-top: var(--space-lg); }
.spoken__row { display: flex; gap: var(--space-sm); align-items: center; }
.spoken__row input { flex: 1 1 auto; min-width: 0; }
.spoken__row .btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.spoken__row .btn svg { width: 16px; height: 16px; }
.spoken__hint { margin: 6px 0 0; color: var(--color-muted); font-size: var(--text-sm); }
.sum__over { margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.sum__over p { margin: 4px 0; }
.sum__over b { color: var(--color-ink); font-weight: 600; }
.sum__over-title { color: var(--color-ink); font-weight: 600; }
