:root {
  --bg: #03060c;
  --hero: #07111f;
  --panel: #0d1524;
  --panel-2: #121c2d;
  --field: #080e18;
  --ink: #f4f7fb;
  --muted: #9aa8bc;
  --faint: #6b7c93;
  --line: rgba(96, 165, 250, 0.18);
  --cyan: #38bdf8;
  --blue: #2563eb;
  --danger: #fb7185;
  --ok: #34d399;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Sora", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  position: relative;
}

.bg-depth {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(37, 99, 235, 0.28), transparent 58%),
    radial-gradient(700px 380px at 8% 18%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(640px 420px at 100% 8%, rgba(30, 64, 175, 0.22), transparent 46%),
    linear-gradient(180deg, #07111f 0%, #03060c 42%, #020409 100%);
}

a { color: var(--cyan); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: var(--ink); }

.site-header {
  background: rgba(3, 6, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
}
.brand-text {
  margin: 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.page {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto 88px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 0 -8px 28px;
  padding: 48px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(720px 280px at 18% 0%, rgba(56, 189, 248, 0.16), transparent 58%),
    radial-gradient(640px 260px at 88% 10%, rgba(37, 99, 235, 0.22), transparent 52%),
    linear-gradient(180deg, #0a1a33 0%, #07111f 58%, #050b16 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 78%);
  opacity: 0.35;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}
.hero-orb-a {
  width: 220px;
  height: 220px;
  right: 8%;
  top: -70px;
  background: rgba(56, 189, 248, 0.16);
}
.hero-orb-b {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -50px;
  background: rgba(37, 99, 235, 0.18);
}
.intro { position: relative; z-index: 1; margin-bottom: 0; }
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.intro h1, .card h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  color: #fff;
}
.card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.facts li {
  font-size: 0.78rem;
  font-weight: 500;
  color: #dbeafe;
  background: rgba(8, 14, 24, 0.55);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
}

.path-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card .path-cards {
  z-index: 0;
}
.path-card {
  position: relative;
  text-align: left;
  cursor: pointer;
  padding: 22px 48px 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: linear-gradient(180deg, rgba(18, 32, 54, 0.92), rgba(8, 14, 24, 0.92));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.path-card:hover {
  border-color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.28), 0 16px 40px rgba(37, 99, 235, 0.22);
}
.path-card:focus-visible {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}
.path-card.selected {
  border-color: #7dd3fc;
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(56, 189, 248, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.32), rgba(8, 14, 24, 0.95));
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.55), 0 18px 50px rgba(37, 99, 235, 0.32);
}
.path-check {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(8, 14, 24, 0.7);
}
.path-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: 2px solid transparent;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.path-card.selected .path-check {
  border-color: #7dd3fc;
  background: #2563eb;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}
.path-card.selected .path-check::after {
  border-color: #fff;
}
.path-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.path-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.tz-strip {
  background: rgba(255, 196, 140, 0.14);
  border: 1px solid rgba(255, 186, 120, 0.38);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 18px;
  color: #ffe8cc;
  font-size: 0.84rem;
}

.steps { margin: 0 0 16px; }
.stage-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.stage-list li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}
.stage-list li.on { color: #fff; border-bottom-color: var(--cyan); }
.stage-list li.done { color: var(--cyan); border-bottom-color: rgba(56, 189, 248, 0.45); }
.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.card, .choice, .slot {
  background: var(--panel);
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 18px;
}
.card {
  padding: 34px 32px 30px;
  background: #151e30;
  border: 1px solid rgba(147, 197, 253, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#wizard.card-compact {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  padding: 26px 24px 22px;
}
#wizard.card-compact h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.field { margin-bottom: 20px; }
.field label, .check label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.86rem;
  color: #d5deea;
}
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="file"], select, textarea {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 12px;
  padding: 0 16px;
  background-color: var(--field);
  background-image: none;
  color: #fff;
  box-shadow: none;
}
input[type="file"] { height: auto; padding: 14px 16px; }
select { background-color: var(--field); }
textarea { height: auto; padding: 16px; }
input::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background-color: var(--field);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border: 1px solid rgba(96, 165, 250, 0.22);
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset !important;
  box-shadow: 0 0 0 1000px var(--field) inset !important;
  transition: background-color 9999s ease-out;
}
.hidden { display: none !important; }
.hint { color: var(--faint); font-size: 0.8rem; margin: 8px 0 0; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-2:has(#region-wrap.hidden) {
  grid-template-columns: 1fr;
}

.suggest {
  border: 1px solid var(--line);
  background: #070b12;
  border-radius: 12px;
  margin-top: 6px;
  overflow: hidden;
}
.suggest button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.suggest button:hover { background: rgba(56, 189, 248, 0.08); }

.guess-box {
  background: #070b12;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 4px 0 20px;
}
.guess-box p { margin: 0 0 8px; }
.guess-box p:last-child { margin: 0; }
.guess-box code {
  font-size: 0.78rem;
  color: var(--cyan);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice {
  padding: 22px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.choice:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}
.choice h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}
.choice p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.choice.secondary { background: var(--panel-2); }

.day-block { margin: 0 0 36px; }
.day-block:first-child { margin-top: 4px; }
.date-header {
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-left: 3px solid var(--cyan);
  background: linear-gradient(180deg, #1a2740 0%, #121c2e 100%);
}
.date-weekday {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}
.date-full {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.slot {
  position: relative;
  padding: 16px 36px 14px 14px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.slot:hover { border-color: #7dd3fc; }
.slot.picked {
  border-color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.45), 0 12px 28px rgba(37, 99, 235, 0.22);
}
.slot-time {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.slot .you { font-weight: 500; color: var(--muted); font-size: 0.75rem; margin-top: 6px; }
.slot .us { color: #9eb0c6; font-size: 0.8rem; margin-top: 4px; }
.slot-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.28);
}
.slot-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.slot.picked .slot-check {
  border-color: #7dd3fc;
  background: #2563eb;
}
.slot.picked .slot-check::after { border-color: #fff; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
  padding: 14px;
  background: #070b12;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.check input { margin-top: 4px; }
.check label { margin: 0; color: #e5eef8; font-size: 0.92rem; }
#video-privacy-hint {
  margin: 4px 0 8px;
  font-size: 0.84rem;
}
#video-privacy {
  margin: 12px 0 14px;
  padding: 10px 12px;
  gap: 10px;
  border-radius: 10px;
}
#video-privacy label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.tz-strip-alert {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}
.tz-confirm {
  background: rgba(127, 29, 29, 0.32);
  border: 1px solid rgba(248, 113, 113, 0.48);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 4px 0 16px;
}
.tz-confirm-who,
.tz-confirm-where {
  margin: 0 0 8px;
  color: #ffe4e6;
}
.tz-confirm-where { margin-bottom: 0; }
.tz-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.tz-dual-card {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
}
.tz-dual-card.yours {
  border-color: rgba(252, 165, 165, 0.7);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.18);
}
.tz-dual-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fca5a5;
}
.tz-dual-time {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.15;
  color: #fff;
  margin: 6px 0 4px;
  letter-spacing: -0.03em;
}
.tz-dual-date,
.tz-dual-zone {
  display: block;
  color: #fecaca;
  font-size: 0.82rem;
}
.tz-confirm-same {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 8px;
  line-height: 1.45;
}
.tz-confirm-meta {
  margin: 0;
  color: #fca5a5;
  font-size: 0.82rem;
}
.check-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.42);
}
.check-alert input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #ef4444;
}
.check-alert label {
  color: #fff;
}
.confirm-lock-note {
  color: #fb7185;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 8px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  color: #fff;
  min-height: 54px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38);
}
#next-btn.btn-primary {
  width: 220px;
  height: 56px;
}
#next-btn.btn-red {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 55%, #b91c1c 100%);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.4);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-record { background: #e11d48; color: #fff; }
#next-q {
  background: #e11d48;
  color: #fff;
  border: 0;
  min-width: 168px;
}
#next-q:hover { filter: brightness(1.08); }
.btn-stop { background: #fff; color: #041018; }

.err { color: var(--danger); font-weight: 600; margin-top: 10px; font-size: 0.9rem; }
.ok { color: var(--ok); font-weight: 600; }
.meet-box {
  background: #070b12;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #fff;
  padding: 22px;
  margin-top: 20px;
}
.meet-email-note {
  margin: 14px 0 0;
  color: #ffe4e6;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.video-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}
.questions, .recorder-card { padding: 0; border: 0; background: transparent; }
.questions h3, .recorder-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #fff;
}
.questions ol { margin: 12px 0 0; padding-left: 18px; }
.questions li { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
.questions li.current {
  color: #fff;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  margin-left: -10px;
}

.video-note {
  max-width: 36rem;
  background: rgba(255, 196, 140, 0.12);
  border: 1px solid rgba(255, 186, 120, 0.32);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #ffe8cc;
  font-weight: 400;
}

.preview-wrap {
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
.preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
#live {
  pointer-events: none;
}
#live.mirrored { transform: scaleX(-1); }
#playback {
  transform: none;
  pointer-events: auto;
}
.play-face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  z-index: 3;
}
.play-face::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #041018;
}
.play-face.is-hidden,
.preview-wrap.is-live .play-face,
.preview-wrap.is-recording .play-face,
.preview-wrap.is-playback .play-face {
  display: none;
}
.preview-wrap.is-playback .timer,
.preview-wrap.is-playback .q-overlay,
.preview-wrap.is-playback .rec-dot,
.preview-wrap:not(.is-recording) .timer,
.preview-wrap:not(.is-recording) .q-overlay {
  display: none;
}
.timer, .rec-dot, .q-overlay {
  position: absolute;
  color: #fff;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}
.timer { right: 12px; bottom: 10px; font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.rec-dot {
  left: 12px;
  top: 10px;
  background: #e11d48;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.q-overlay {
  left: 12px;
  right: 12px;
  bottom: 36px;
  font-size: 0.82rem;
}
.meter {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 26px 0 12px;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.upload-progress { margin: 14px 0 4px; }
.upload-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
#upload-progress-fill,
#book-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #34d399, #059669);
  transition: width 0.28s ease;
}
#upload-progress-label,
#book-progress-label {
  color: #86efac;
  font-weight: 600;
}

.footer-note {
  color: var(--faint);
  font-size: 0.8rem;
  margin: 28px 0 0;
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

@media (max-width: 800px) {
  .grid-2, .choice-grid, .video-layout, .path-cards, .stage-list, .tz-dual { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr 1fr; }
  .header-inner, .page { width: calc(100% - 24px); }
  .hero { margin: 16px 0 24px; padding: 28px 18px 22px; }
  .card { padding: 22px 18px; }
  #next-btn.btn-primary { width: 100%; }
  .brand-text { font-size: 0.82rem; }
}
@media (max-width: 520px) {
  .slots { grid-template-columns: 1fr; }
}
