:root {
  --bg:
    radial-gradient(circle at top, rgba(255, 124, 55, 0.08), transparent 28%),
    linear-gradient(180deg, #f4f6f8 0%, #eaeef2 46%, #e4e9ef 100%);
  --ink: #11161c;
  --muted: #5f6771;
  --line: rgba(24, 32, 42, 0.12);
  --frame: #203747;
  --surface: rgba(255, 255, 255, 0.8);
  --panel: #eef2f6;
  --bubble: #edf1f4;
  --bubble-user: #ff5a1f;
  --bubble-user-text: #ffffff;
  --accent: #ff5a1f;
  --accent-strong: #ff6a2a;
  --dark: #0f141a;
  --shadow: 0 18px 44px rgba(15, 20, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 106, 42, 0.08), transparent 22%),
    linear-gradient(180deg, #020304 0%, #050709 100%);
  color: #f4f6f8;
  font-family: "Instrument Sans", sans-serif;
}

html.embed-mode,
body.embed-mode {
  height: 100%;
  min-height: 100%;
}

body.embed-mode {
  background: transparent;
}

body.embed-mode .page {
  width: 100%;
  margin: 0;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
}

body.embed-mode .page-top {
  display: none;
}

body.embed-mode .experience-frame {
  border-radius: 0;
  border: 0;
  padding: 10px;
  box-shadow: none;
  height: 100vh;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 252, 0.9));
}

body.embed-mode .experience-frame {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  background:
    radial-gradient(circle at top, rgba(255, 106, 42, 0.08), transparent 20%),
    linear-gradient(180deg, #050709 0%, #090c11 100%);
  color: #f4f6f8;
}

body.embed-mode .hero-panel {
  display: none !important;
}

body.embed-mode .chat-panel,
body.embed-mode .stage-panel {
  grid-column: 1;
}

body.embed-mode .stage-panel {
  grid-row: 1;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
}

body.embed-mode .chat-panel {
  grid-row: 2;
  min-height: 0;
  max-height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.embed-mode .stage-shell,
body.embed-mode .control-bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.embed-mode .stage-shell {
  min-height: 420px;
  padding: 10px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, #050709 0%, #0c1016 100%);
}

body.embed-mode .chat-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.embed-mode .chat-header h2,
body.embed-mode .chat-disclaimer,
body.embed-mode .message.agent,
body.embed-mode .message.system,
body.embed-mode .end-button,
body.embed-mode .transport-button:not(.transport-button-accent) {
  color: #f7f8fb;
}

body.embed-mode .chat-disclaimer {
  color: rgba(244, 246, 248, 0.78);
  border-left-color: rgba(255, 106, 42, 0.96);
}

body.embed-mode .message.agent,
body.embed-mode .message.system {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.04);
}

body.embed-mode .suggestion-chip {
  background: rgba(255, 255, 255, 0.03);
  color: #f2f4f7;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.embed-mode .chat-composer textarea {
  background: rgba(2, 4, 7, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f7f8fb;
}

body.embed-mode .chat-composer textarea::placeholder {
  color: rgba(247, 248, 251, 0.42);
}

body.embed-mode .transport-button:not(.transport-button-accent) {
  background: rgba(255, 255, 255, 0.05);
}

body.embed-mode .end-button {
  border-color: rgba(255, 255, 255, 0.16);
}

.page {
  width: min(1140px, calc(100vw - 64px));
  margin: 18px auto 20px;
  display: grid;
  gap: 14px;
  height: calc(100vh - 38px);
  min-height: calc(100vh - 38px);
  grid-template-rows: auto minmax(0, 1fr);
}

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 2px 4px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(244, 246, 248, 0.58);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.85rem, 2.55vw, 2.75rem);
  line-height: 0.98;
  color: #f7f8fb;
}

.page-copy {
  margin: 12px 0 0;
  max-width: 42rem;
  color: rgba(244, 246, 248, 0.72);
  font-size: 0.98rem;
  line-height: 1.48;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status-offline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 246, 248, 0.6);
}

.status-connecting {
  background: rgba(255, 169, 20, 0.16);
  color: #f0a820;
}

.status-online {
  background: rgba(17, 200, 130, 0.16);
  color: #2dd4a0;
}

.status-speaking {
  background: rgba(96, 165, 250, 0.16);
  color: #60a5fa;
}

.status-error {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.transport-button:hover,
.cta-button:hover,
.composer-send:hover,
.end-button:hover,
.suggestion-chip:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
}

.button-start {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 20px 36px rgba(255, 90, 31, 0.26);
}

.button.is-live {
  background: linear-gradient(135deg, #11151b 0%, #1f2933 100%);
  color: #fff;
  box-shadow: none;
}

.experience-frame {
  position: relative;
  border: 1.5px solid rgba(255, 155, 117, 0.72);
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(180deg, #050709 0%, #090c11 100%);
  padding: 12px;
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.hero-panel,
.chat-panel {
  grid-column: 1;
  grid-row: 1;
}

.stage-panel {
  grid-column: 2;
  grid-row: 1;
}

.hero-panel {
  min-height: 0;
  height: 100%;
  display: none;
  align-items: stretch;
}

.hero-panel-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(180deg, #0d1217 0%, #121922 58%, #18212a 100%);
  color: #f3f6f9;
  box-shadow: 0 22px 56px rgba(7, 12, 18, 0.22);
  padding: 30px 28px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-copy {
  margin: 0;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.01rem;
  line-height: 1.5;
}

.hero-activate {
  justify-self: start;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(255, 90, 31, 0.24);
}

.page.is-prestart .hero-panel {
  display: flex;
}

.page.is-prestart .chat-panel,
.page.is-prestart .control-bar {
  display: none;
}

.page.is-prestart .stage-panel {
  grid-template-rows: minmax(0, 1fr);
}

.page.is-prestart .preview-layer {
  display: none;
}

.page.is-prestart .stage-shell {
  padding: 10px;
}

.page.is-prestart .agent-viewport {
  inset: 10px;
  border-radius: 22px;
}

.page.is-prestart .agent-overlay {
  display: none;
}

.page:not(.is-prestart) .hero-panel {
  display: none;
}

.chat-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  box-shadow: none;
}

.stage-shell,
.control-bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: none;
}

.chat-panel {
  min-height: 0;
  height: 100%;
  max-height: min(720px, calc(100vh - 150px));
  padding: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
}

.chat-header {
  padding: 18px 22px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h2 {
  font-size: 1.28rem;
  color: #f7f8fb;
}

.chat-disclaimer {
  margin: 16px 18px 0;
  padding: 12px 0 12px 16px;
  border-left: 3px solid rgba(255, 106, 42, 0.96);
  font-size: 0.96rem;
  line-height: 1.5;
  font-style: normal;
  color: rgba(244, 246, 248, 0.78);
}

.message-history {
  padding: 16px 16px 10px;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 86%;
  padding: 13px 16px;
  border-radius: 22px;
  line-height: 1.3;
  font-size: 0.98rem;
}

.message strong {
  display: none;
}

.message-body {
  white-space: pre-line;
}

.message.agent,
.message.system {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #f4f6f8;
}

.message.is-pending {
  opacity: 0.65;
}

.message.user {
  align-self: flex-end;
  background: var(--bubble-user);
  color: var(--bubble-user-text);
}

.message.is-typing {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.message.is-typing .typing-dots {
  animation: typing-pulse 1.2s ease-in-out infinite;
  letter-spacing: 0.15em;
  font-size: 1.1em;
  color: rgba(244, 246, 248, 0.5);
}
@keyframes typing-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.suggestion-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 10px;
}

.suggestion-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(244, 246, 248, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.suggestion-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.suggestion-strip::-webkit-scrollbar {
  display: none;
}

.suggestion-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #f2f4f7;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  justify-self: center;
  width: 100%;
  max-width: 200px;
}

.chat-composer {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 10px;
}

.chat-composer textarea {
  width: 100%;
  min-height: 54px;
  max-height: 140px;
  resize: none;
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 4, 7, 0.86);
  padding: 15px 18px;
  font: inherit;
  color: #f7f8fb;
  outline: none;
  overflow-y: auto;
}

.chat-composer textarea::placeholder {
  color: rgba(247, 248, 251, 0.42);
}

.composer-send {
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stage-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 58px;
  gap: 6px;
}

.stage-shell {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 10px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, #050709 0%, #0c1016 100%);
}

.preview-layer,
.agent-viewport {
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  overflow: hidden;
}

.preview-layer {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.32s ease;
}

.stage-shell.has-preview .preview-layer {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  inset: 116px 10px 4px;
}

.preview-canvas {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0c1016;
}

.preview-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(244, 246, 248, 0.6);
}

.empty-state {
  display: grid;
  gap: 10px;
}

.empty-state strong {
  font-size: 1.2rem;
  color: #f4f6f8;
}

.resume-banner {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(16, 18, 22, 0.9);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.22s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.stage-shell.has-preview .resume-banner {
  top: 16px;
  opacity: 1;
  pointer-events: auto;
}

.resume-banner .material-symbols-outlined {
  font-size: 1.08rem;
}

.pause-video-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  color: #f4f6f8;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.pause-video-banner.is-visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.pause-video-banner:hover {
  background: rgba(10, 12, 16, 0.95);
  transform: translateX(-50%) translateY(-1px);
}

.pause-video-banner-text {
  line-height: 1.2;
}

.pause-video-banner-x {
  font-size: 1rem;
  opacity: 0.6;
}

.pause-video-banner-x:hover {
  opacity: 1;
}

.preview-media,
.preview-frame,
.preview-link-card {
  width: 100%;
  height: 100%;
}

.preview-media img,
.preview-media video,
.preview-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.calendly-inline-host {
  width: 100%;
  height: 100%;
  min-width: 320px;
}

.preview-media img,
.preview-media video {
  object-fit: contain;
}

.preview-link-card {
  background: linear-gradient(180deg, #f6f8fa 0%, #eef2f6 100%);
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.preview-form-card {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 42%),
    linear-gradient(160deg, #f7f3ee 0%, #efe7df 100%);
  padding: 44px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.preview-link-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.preview-form-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.preview-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.preview-form-card p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 10px;
}

.form-field {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #2e2a24;
}

.form-field span {
  font-size: 0.92rem;
}

.form-field input {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(16, 18, 22, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.form-field input:focus {
  border-color: rgba(255, 90, 31, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.lead-submit {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
}

.lead-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.lead-form-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: #524d45;
  font-size: 0.94rem;
}

/* ── Booking Form Wizard ─────────────────────────────── */

.booking-wizard {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-wizard h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: -0.03em;
}

.booking-wizard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wizard-step-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 4px;
}

.wizard-step-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  transition: background 0.2s;
}

.wizard-step-dots .dot.active {
  background: #e8713a;
}

.wizard-step-dots .dot.done {
  background: #2ecc71;
}

/* Step 1: Interest grid */
.interest-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.interest-option {
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  text-align: left;
}

.interest-option:hover {
  border-color: #e8713a;
  background: rgba(255,255,255,0.95);
  transform: translateY(-1px);
}

/* Step 2: Day picker */
.day-picker-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.day-nav {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}
.day-nav:hover {
  background: rgba(0,0,0,0.12);
}
.day-nav-placeholder {
  width: 30px;
  flex: 0 0 auto;
}
.day-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex: 1;
}

.day-card {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 10px 8px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.day-card .day-name { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.day-card .day-num { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.day-card .day-month { font-size: 0.78rem; color: var(--muted); }

.day-card:hover { border-color: #e8713a; }
.day-card.is-selected {
  border-color: #e8713a;
  background: rgba(232,113,58,0.1);
}

/* Step 2: Time slots */
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.time-slot {
  padding: 8px 4px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.time-slot:hover { border-color: #e8713a; }
.time-slot.is-selected {
  border-color: #e8713a;
  background: #e8713a;
  color: #fff;
}

.tz-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}

/* Step 3: Back button */
.wizard-back {
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.wizard-back:hover { opacity: 1; }

/* Confirmation screen */
.form-confirmation {
  text-align: center;
  padding: 40px 20px;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #2ecc71;
  color: #fff;
  font-size: 32px;
  line-height: 64px;
  font-weight: 700;
}

/* ── Embed mode (dark theme) overrides ─────────────── */

body.embed-mode .preview-form-card {
  background: linear-gradient(160deg, #1a1d23 0%, #23272e 100%);
}

body.embed-mode .booking-wizard h3 {
  color: #f4f6f8;
}

body.embed-mode .booking-wizard p,
body.embed-mode .tz-label {
  color: rgba(255,255,255,0.5);
}

body.embed-mode .interest-option,
body.embed-mode .day-nav {
  background: rgba(255,255,255,0.08);
  color: #f4f6f8;
}
body.embed-mode .day-nav:hover {
  background: rgba(255,255,255,0.16);
}
body.embed-mode .day-card,
body.embed-mode .time-slot {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #f4f6f8;
}

body.embed-mode .interest-option:hover,
body.embed-mode .day-card:hover,
body.embed-mode .time-slot:hover {
  border-color: #e8713a;
  background: rgba(255,255,255,0.1);
}

body.embed-mode .day-card.is-selected {
  border-color: #e8713a;
  background: rgba(232,113,58,0.15);
}

body.embed-mode .time-slot.is-selected {
  background: #e8713a;
  color: #fff;
}

body.embed-mode .day-card .day-name,
body.embed-mode .day-card .day-month {
  color: rgba(255,255,255,0.45);
}

body.embed-mode .form-field {
  color: #f4f6f8;
}

body.embed-mode .form-field input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #f4f6f8;
}

body.embed-mode .form-field input:focus {
  border-color: rgba(232,113,58,0.5);
  box-shadow: 0 0 0 4px rgba(232,113,58,0.12);
}

body.embed-mode .wizard-back { color: #f4f6f8; }
body.embed-mode .lead-form-status { color: rgba(255,255,255,0.6); }
body.embed-mode .wizard-step-dots .dot { background: rgba(255,255,255,0.15); }

/* ── End Booking Form Wizard ──────────────────────── */

.agent-viewport {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 44%),
    radial-gradient(circle at bottom right, rgba(255, 96, 32, 0.12), transparent 28%),
    linear-gradient(155deg, #17212b 0%, #3c4b58 55%, #6a7884 100%);
  transition:
    width 0.34s ease,
    height 0.34s ease,
    left 0.34s ease,
    right 0.34s ease,
    top 0.34s ease,
    bottom 0.34s ease,
    transform 0.34s ease,
    border-radius 0.34s ease;
}

.arrival-overlay {
  position: absolute;
  inset: 12px;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 48%),
    linear-gradient(160deg, rgba(19, 25, 33, 0.78), rgba(27, 43, 60, 0.58));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s ease, visibility 0.34s ease;
}

.arrival-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.arrival-overlay.is-prestart {
  display: none;
}

.arrival-overlay.is-prestart .arrival-spinner {
  display: none;
}

.arrival-card {
  width: min(404px, calc(100% - 32px));
  padding: 24px 24px 22px;
  border-radius: 28px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  color: #fff;
  background: rgba(11, 16, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 62px rgba(6, 10, 14, 0.24);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.arrival-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffffff;
  animation: arrival-spin 1s linear infinite;
}

.arrival-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arrival-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.arrival-copy {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.45;
}

.arrival-overlay:not(.is-prestart) .arrival-button {
  display: none;
}

.arrival-button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  margin-top: 4px;
  box-shadow: 0 18px 32px rgba(255, 90, 31, 0.22);
}

.stage-shell.has-preview .agent-viewport {
  inset: auto;
  left: 50%;
  top: 10px;
  right: auto;
  bottom: auto;
  width: 170px;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 16px;
  z-index: 5;
  box-shadow: 0 18px 36px rgba(8, 13, 18, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.idle-layer,
.stream-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease,
    transform 0.32s ease;
}

.idle-layer {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.idle-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.stream-layer {
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  transform: scale(1.005);
}

.stream-layer.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.agent-viewport.is-stream-pending .stream-layer {
  visibility: visible;
  opacity: 0;
}

.agent-viewport.is-streaming .idle-layer {
  opacity: 0;
  visibility: hidden;
}

.agent-viewport.is-fluent .idle-layer {
  display: none;
}

.agent-viewport.is-fluent .stream-layer {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.agent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}

.agent-overlay.is-hidden {
  opacity: 0;
}

.stage-shell.has-preview .agent-overlay {
  padding: 8px 10px;
}

.agent-badge,
.agent-caption {
  background: rgba(16, 18, 22, 0.58);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.agent-badge {
  align-self: flex-start;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
}

.agent-badge.is-speaking {
  background: rgba(37, 99, 235, 0.86);
}

.agent-caption {
  padding: 11px 13px;
  border-radius: 16px;
  display: grid;
  gap: 4px;
  max-width: min(360px, 58%);
}

.stage-shell.has-preview .agent-caption {
  display: none;
}

.agent-caption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

@keyframes arrival-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.control-bar {
  position: relative;
  padding: 0 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.transport-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.transport-button,
.end-button {
  border: 0;
  background: transparent;
  color: #f7f8fb;
  font: inherit;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.transport-button .material-symbols-outlined,
.end-button .material-symbols-outlined {
  font-size: 1.35rem;
}

.transport-button {
  background: rgba(255, 255, 255, 0.05);
  color: #f7f8fb;
}

.transport-button-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(255, 90, 31, 0.24);
}

.transport-button.is-live {
  color: #fff;
}

.transport-button.is-muted {
  color: rgba(255, 255, 255, 0.78);
}

.end-button {
  position: static;
  background: transparent;
  color: #f7f8fb;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1380px) {
  .page {
    width: min(100vw - 28px, 1100px);
  }

  .experience-frame {
    grid-template-columns: 376px minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .page-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page {
    width: min(100vw - 24px, 980px);
    margin: 12px auto 18px;
    height: auto;
    min-height: 0;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .experience-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    height: auto;
    overflow: visible;
  }

  .hero-panel,
  .chat-panel,
  .stage-panel {
    grid-column: 1;
  }

  .hero-panel {
    grid-row: 2;
  }

  .stage-panel {
    grid-row: 1;
  }

  .page:not(.is-prestart) .chat-panel {
    grid-row: 2;
  }

  .hero-panel {
    min-height: 220px;
  }

  .chat-panel {
    max-height: none;
    min-height: 360px;
  }

  .stage-shell {
    min-height: 440px;
  }

  .stage-shell.has-preview .preview-layer {
    inset: 106px 10px 4px;
  }

  .end-button {
    position: static;
  }

  .control-bar {
    justify-content: space-between;
  }

}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top, rgba(255, 106, 42, 0.08), transparent 22%),
      linear-gradient(180deg, #020304 0%, #050709 100%);
    color: #f4f6f8;
  }

  .page {
    width: min(100vw - 12px, 100%);
    margin: 6px auto 14px;
    height: auto;
    min-height: 0;
    gap: 10px;
  }

  .page-top {
    gap: 8px;
    padding: 0 12px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: rgba(244, 246, 248, 0.58);
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: #f7f8fb;
    max-width: 10ch;
  }

  .page-copy {
    margin-top: 8px;
    max-width: 26rem;
    font-size: 0.9rem;
    line-height: 1.42;
    color: rgba(244, 246, 248, 0.72);
  }

  .top-actions {
    display: none;
  }

  .experience-frame {
    padding: 10px;
    border-radius: 30px;
    gap: 10px;
    border-color: rgba(255, 155, 117, 0.72);
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 22%),
      linear-gradient(180deg, #050709 0%, #090c11 100%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  }

  .page.is-prestart .hero-panel,
  .page.is-prestart .stage-panel,
  .page:not(.is-prestart) .stage-panel,
  .page:not(.is-prestart) .chat-panel {
    grid-column: 1;
  }

  .page.is-prestart .stage-panel,
  .page:not(.is-prestart) .stage-panel {
    grid-row: 1;
  }

  .page.is-prestart .hero-panel,
  .page:not(.is-prestart) .chat-panel {
    grid-row: 2;
  }

  .hero-panel,
  .chat-panel,
  .stage-shell,
  .control-bar {
    border-radius: 22px;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-panel-inner {
    min-height: 0;
    padding: 18px 18px 20px;
    gap: 12px;
    border-radius: 22px;
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 18%),
      linear-gradient(180deg, #07090c 0%, #10141a 100%);
    box-shadow: none;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-copy {
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(244, 246, 248, 0.8);
  }

  .hero-activate {
    min-height: 48px;
    padding: 0 18px;
  }

  .chat-panel {
    min-height: 0;
    max-height: 272px;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .chat-header {
    padding: 12px 16px 10px;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .chat-header h2 {
    font-size: 1.04rem;
    color: #f7f8fb;
  }

  .chat-disclaimer {
    margin: 10px 12px 0;
    padding: 10px 0 10px 12px;
    font-size: 0.86rem;
    line-height: 1.42;
    color: rgba(244, 246, 248, 0.78);
    border-left-color: rgba(255, 106, 42, 0.96);
  }

  .message-history {
    padding: 10px 12px 6px;
    gap: 8px;
  }

  .message {
    max-width: 92%;
    padding: 11px 13px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .message.agent,
  .message.system {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.04);
    color: #f4f6f8;
  }

  .suggestion-strip {
    display: none;
  }

  .chat-composer {
    padding: 0 12px 12px;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .chat-composer textarea {
    min-height: 48px;
    padding: 13px 16px;
    font-size: 0.92rem;
    background: rgba(2, 4, 7, 0.86);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f7f8fb;
  }

  .chat-composer textarea::placeholder {
    color: rgba(247, 248, 251, 0.42);
  }

  .composer-send {
    width: 48px;
    height: 48px;
  }

  .stage-panel {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .stage-shell {
    min-height: 340px;
    height: clamp(330px, 46vh, 430px);
    padding: 10px;
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 26%),
      linear-gradient(180deg, #050709 0%, #0c1016 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .preview-layer,
  .agent-viewport {
    inset: 10px;
    border-radius: 18px;
  }

  .stage-shell.has-preview .preview-layer {
    inset: 78px 10px 4px;
  }

  .stage-shell.has-preview .agent-viewport {
    width: 120px;
    height: 68px;
    top: 10px;
  }

  .stage-shell.has-preview .resume-banner {
    top: 10px;
    right: 10px;
    left: auto;
    width: 38px;
    height: 38px;
  }

  .agent-overlay {
    padding: 10px;
  }

  .agent-badge {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .agent-caption {
    padding: 10px 11px;
    max-width: min(240px, 78%);
  }

  .agent-caption strong {
    font-size: 0.94rem;
  }

  .agent-caption span {
    font-size: 0.78rem;
  }

  .arrival-overlay {
    inset: 10px;
    padding: 14px;
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 30%),
      linear-gradient(180deg, rgba(2, 5, 9, 0.9), rgba(6, 10, 16, 0.92));
  }

  .arrival-card {
    width: min(100%, 320px);
    padding: 18px 16px;
    border-radius: 20px;
    gap: 10px;
  }

  .arrival-spinner {
    width: 42px;
    height: 42px;
  }

  .arrival-title {
    font-size: 1.45rem;
  }

  .arrival-copy {
    font-size: 0.88rem;
  }

  .control-bar {
    min-height: 50px;
    padding: 8px 8px 0;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .transport-controls {
    justify-content: center;
    gap: 8px;
  }

  .transport-button,
  .end-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.88rem;
    color: #f7f8fb;
  }

  .transport-button .material-symbols-outlined,
  .end-button .material-symbols-outlined {
    font-size: 1.1rem;
  }

  .transport-button:not(.transport-button-accent) {
    background: rgba(255, 255, 255, 0.05);
  }

  .end-button {
    border-color: rgba(255, 255, 255, 0.16);
    color: #f7f8fb;
  }
}

@media (max-width: 540px) {
  .page {
    width: 100%;
    margin: 0;
    gap: 10px;
  }

  .page-top {
    padding: 0 12px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
    max-width: 8ch;
  }

  .page-copy {
    font-size: 0.86rem;
    max-width: 22rem;
  }

  .experience-frame {
    min-height: 0;
    border-radius: 30px;
    margin: 0 8px 16px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .page.is-prestart .hero-panel {
    min-height: 0;
  }

  .page.is-prestart .stage-panel {
    margin-bottom: 0;
  }

  .hero-panel-inner {
    min-height: 0;
  }

  .chat-panel {
    max-height: 248px;
  }

  .chat-disclaimer {
    display: none;
  }

  .stage-shell {
    height: clamp(320px, 44vh, 400px);
  }

  .control-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── Case Picker ─────────────────────────────────────────────── */
.case-picker-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-picker-title {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: -0.03em;
}

.case-picker-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
}

.case-picker-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
}

.case-picker-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

.case-picker-btn:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.case-picker-btn.is-selected {
  border-color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.case-picker-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.case-picker-label {
  flex: 1;
}

/* Embed mode overrides */
body.embed-mode .case-picker-root {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}

body.embed-mode .case-picker-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

body.embed-mode .case-picker-btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body.embed-mode .case-picker-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

body.embed-mode .case-picker-btn.is-selected {
  border-color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.15);
}
