* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; overflow-x: hidden; }
body {
  background-color: #040d1f;
  color: #d8f6f4;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 30%, #0a1c3a 0%, #040d1f 70%);
  background-color: #040d1f;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.stage { width: min(560px, 100%, 56vh); aspect-ratio: 1; }
.orb-btn {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.orb-btn:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 6px; }
.orb-btn.live { cursor: default; }
.orb { width: 100%; height: 100%; display: block; overflow: visible; }
.status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3ef2e4;
  min-height: 1.4em;
}
.heard {
  min-height: 1.5em;
  max-width: 60ch;
  text-align: center;
  font-size: 15px;
  color: #7fa3b3;
  font-style: italic;
  transition: opacity 0.5s;
}
.caption {
  min-height: 3.2em;
  max-width: 60ch;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  text-wrap: balance;
}
.taphint { min-height: 1.2em; margin-top: -8px; font-size: 12px; color: #4f7083; }
.timing { min-height: 1.2em; font-size: 12px; color: #4f7083; font-family: "IBM Plex Mono", ui-monospace, monospace; }
@media (max-width: 480px) { .caption { font-size: 16px; } .shell { gap: 12px; } }
.intro { text-align: center; max-width: 46ch; position: relative; top: -10vh; }
.intro p { margin: 0; }
.hint { font-size: 18px; font-weight: 500; color: #3ef2e4; }
.note { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #7fa3b3; }
.phones { margin-top: 6px; font-size: 12px; color: #4f7083; }
.lang { display: inline-block; margin-top: 14px; }
.lang select {
  font: 14px "DM Sans", system-ui, sans-serif; color: #d8f6f4; background-color: #0a1c3a;
  border: 1px solid rgba(62, 242, 228, 0.35); border-radius: 8px; padding: 8px 32px 8px 12px; min-height: 40px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #3ef2e4 50%), linear-gradient(135deg, #3ef2e4 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.lang select:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- "What Alph knows" help button and modal ---- */
.help-btn {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(62, 242, 228, 0.55); background: rgba(10, 28, 58, 0.75);
  color: #7ff9ee; font: 500 17px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer; display: grid; place-items: center; padding: 0;
  box-shadow: 0 0 12px rgba(62, 242, 228, 0.18); opacity: 0.8;
  transition: opacity 0.2s, box-shadow 0.2s; -webkit-tap-highlight-color: transparent; z-index: 5;
}
.help-btn:hover, .help-btn:focus-visible { opacity: 1; box-shadow: 0 0 18px rgba(62, 242, 228, 0.4); }
.help-btn:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 3px; }
.help-backdrop {
  position: fixed; inset: 0; z-index: 10; background: rgba(2, 7, 18, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.help-backdrop[hidden] { display: none; }
.help-panel {
  position: relative; width: min(720px, 100%); max-height: min(88vh, 88dvh); overflow-y: auto;
  overscroll-behavior: contain; background: #071630; border: 1px solid rgba(62, 242, 228, 0.25);
  border-radius: 16px; padding: 24px 22px 22px; color: #d8f6f4;
  box-shadow: 0 0 40px rgba(62, 242, 228, 0.12);
}
.help-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent; color: #7fa3b3; font-size: 26px; line-height: 1; cursor: pointer;
}
.help-close:hover, .help-close:focus-visible { color: #3ef2e4; background: rgba(62, 242, 228, 0.08); }
.help-close:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 1px; }
.help-h { margin: 0 0 14px; font: 500 19px/1.3 "DM Sans", system-ui, sans-serif; color: #3ef2e4; }
.help-h + .help-asks { margin-top: 0; }
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kcard {
  background: rgba(22, 60, 110, 0.28); border: 1px solid rgba(62, 242, 228, 0.16);
  border-radius: 12px; padding: 14px 14px 12px; min-width: 0;
}
.kcard p { margin: 0; }
.kcard-tag { font: 12px/1.4 "IBM Plex Mono", ui-monospace, monospace; color: #3ef2e4; letter-spacing: 0.06em; }
.kcard-title { margin-top: 6px !important; font-size: 15px; line-height: 1.4; font-weight: 500; }
.kcard-stat { margin-top: 10px !important; font-size: 26px; font-weight: 500; color: #7ff9ee; line-height: 1.1; }
.kcard-sub { margin-top: 4px !important; font-size: 13px; line-height: 1.45; color: #7fa3b3; }
.ph { display: inline-block; font-size: 13px; font-weight: 400; color: #4f7083; animation: ph-pulse 1.6s ease-in-out infinite; }
@keyframes ph-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .ph { animation: none; } }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 12px; line-height: 1.3; padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(62, 242, 228, 0.3); color: #bdeeea; background: rgba(62, 242, 228, 0.06);
}
.help-note { margin: 14px 0 22px; font-size: 14px; line-height: 1.5; color: #7fa3b3; }
.help-asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ask-group h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: #3ef2e4; }
.ask-group ul { margin: 0; padding: 0; list-style: none; }
.ask-group li {
  font-size: 14px; line-height: 1.45; padding: 7px 0 7px 12px; color: #d8f6f4;
  border-left: 2px solid rgba(62, 242, 228, 0.3); margin-bottom: 6px;
}
@media (max-width: 640px) {
  .help-cards, .help-asks { grid-template-columns: 1fr; }
  .help-panel { padding: 22px 16px 18px; border-radius: 14px; }
  .kcard-stat { font-size: 24px; }
}

.booking { width: min(520px, 100%); text-align: center; }
.booking[hidden], .book-card[hidden] { display: none; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.slots button, .book-actions button, .book-done a {
  font: 500 14px "DM Sans", system-ui, sans-serif; color: #d8f6f4; background: #0a1c3a;
  border: 1px solid rgba(62, 242, 228, 0.35); border-radius: 8px; padding: 9px 12px; min-height: 40px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.slots button:hover, .slots button:focus-visible, .book-actions button:hover { border-color: #3ef2e4; }
.slots button:focus-visible, .book-actions button:focus-visible, .book-card input:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 2px; }
.slots button.chosen { border-color: #3ef2e4; color: #7ff9ee; }
.book-card { margin: 12px auto 0; padding: 16px; border: 1px solid rgba(62, 242, 228, 0.25); border-radius: 12px; background: rgba(10, 28, 58, 0.85); display: grid; gap: 8px; text-align: left; }
.book-card p { margin: 0; }
.book-title { font-weight: 500; color: #3ef2e4; }
.book-when { font-size: 14px; color: #7fa3b3; }
.book-card input { font: 15px "DM Sans", system-ui, sans-serif; color: #d8f6f4; background: #040d1f; border: 1px solid rgba(62, 242, 228, 0.3); border-radius: 8px; padding: 10px 12px; width: 100%; }
.book-msg { min-height: 1.2em; font-size: 13px; color: #f2b13e; }
.book-actions { display: flex; gap: 8px; }
.book-actions button[type="submit"] { background: #3ef2e4; color: #040d1f; border-color: #3ef2e4; }
.book-done { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; color: #7ff9ee; }
.book-done a { margin-left: 6px; }
.book-done a.confirm { background: #3ef2e4; color: #040d1f; border-color: #3ef2e4; }

/* ---- Mute / Stop Alph / End (live conversation) ---- */
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.controls[hidden] { display: none; }
.ghost {
  font: 14px "DM Sans", system-ui, sans-serif; color: #7fa3b3; background: transparent;
  border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.ghost:hover { color: #d8f6f4; border-color: rgba(62, 242, 228, 0.25); }
.ghost:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 2px; }
.ghost[aria-pressed="true"] { color: #3ef2e4; border-color: rgba(62, 242, 228, 0.45); }

/* ---- "Demo video" pill (above the ? button) and the player ---- */
.shell { padding-bottom: 128px; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s; }
body.video-open .shell { transform: scale(0.94); filter: blur(2px); }
.video-pill {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; z-index: 5;
  bottom: calc(16px + 38px + 12px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px 0 5px;
  border-radius: 999px; border: 1px solid rgba(62, 242, 228, 0.45); background: rgba(10, 28, 58, 0.8);
  color: #bdeeea; font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 0 12px rgba(62, 242, 228, 0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.25s, border-color 0.25s, color 0.25s;
}
.video-pill:hover, .video-pill:focus-visible { color: #ffffff; border-color: #3ef2e4; box-shadow: 0 0 22px rgba(62, 242, 228, 0.42); }
.video-pill:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 3px; }
.pill-play {
  position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; background: #3ef2e4; color: #040d1f;
}
.pill-play svg { width: 11px; height: 11px; fill: currentColor; margin-left: 2px; }
.video-pill .pill-play::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(62, 242, 228, 0.7);
  animation: pill-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pill-ping { 0% { transform: scale(0.85); opacity: 0.9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.video-layer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; }
.video-layer[hidden] { display: none; }
.video-backdrop {
  position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(10, 28, 58, 0.78) 0%, rgba(2, 7, 18, 0.92) 70%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.video-frame {
  position: relative; width: min(1120px, 100%, calc((100dvh - 120px) * 16 / 9)); aspect-ratio: 16 / 9;
  transform-origin: 50% 50%; will-change: transform;
}
.video-glow {
  position: absolute; inset: 0; border-radius: 18px; pointer-events: none; opacity: 0.75;
  box-shadow: 0 0 0 1px rgba(62, 242, 228, 0.55), 0 0 40px rgba(62, 242, 228, 0.35), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.video-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; clip-path: inset(0px 0px round 18px); background: #040d1f; }
.video-clip video { display: block; width: 100%; height: 100%; object-fit: contain; background: #040d1f; }
.video-clip video:focus-visible { outline: 2px solid #3ef2e4; outline-offset: -2px; }
.video-shine {
  position: absolute; inset: -10% auto -10% 0; width: 45%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(127, 249, 238, 0.28) 45%, rgba(255, 255, 255, 0.35) 50%, rgba(127, 249, 238, 0.28) 55%, transparent);
  mix-blend-mode: screen;
}
.video-skin {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: #0a1c3a; color: #bdeeea;
}
.video-skin-label {
  display: inline-flex; align-items: center; gap: 9px; transform-origin: 50% 50%;
  font: 500 12px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.video-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(62, 242, 228, 0.4); background: rgba(10, 28, 58, 0.85); color: #d8f6f4;
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.video-close:hover, .video-close:focus-visible { color: #3ef2e4; border-color: #3ef2e4; box-shadow: 0 0 16px rgba(62, 242, 228, 0.4); }
.video-close:focus-visible { outline: 2px solid #3ef2e4; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .video-pill .pill-play::after { animation: none; display: none; }
  .shell { transition: none; }
}
