/* Orbit Waitlist — purple space theme */

:root {
  --bg: #06041a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.88);
  --ink-muted: rgba(255, 255, 255, 0.72);
  --ink-placeholder: rgba(255, 255, 255, 0.45);
  --cyan: #22d3ee;
  --cyan-deep: #06b6d4;
  --cyan-glow: rgba(34, 211, 238, 0.25);
  --purple: #a855f7;
  --purple-mid: #c084fc;
  --purple-deep: #7c3aed;
  --purple-glow: rgba(168, 85, 247, 0.22);
  --border: rgba(255, 255, 255, 0.14);
  --radius-lg: 24px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --space: clamp(1rem, 4vw, 1.5rem);
  --maxw: 26rem;
  --shadow-card:
    0 0 0 1px rgba(34, 211, 238, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.3),
    0 24px 64px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100dvh;
  height: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 55% at 50% 110%, rgba(120, 40, 220, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 0%,   rgba(100, 30, 180, 0.22) 0%, transparent 55%);
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* ─── Starfield canvas ─── */
#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Ambient purple overlay ─── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(140, 60, 255, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 20% 50%,  rgba(100, 30, 180, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 80% 50%,  rgba(100, 30, 180, 0.10) 0%, transparent 50%);
}

/* ─── Step shell ─── */
.step-shell {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  touch-action: pan-y;
}

.step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(32px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbars on all platforms while keeping scroll functional */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.step::-webkit-scrollbar {
  display: none;
}

/* Intro, form, and success slide in from below (not sideways) */
#step-0,
#step-3,
#step-4 {
  transform: translateY(16px);
}

.step.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.step.is-exit-fwd {
  opacity: 0;
  transform: translateX(-32px);
  pointer-events: none;
}

.step.is-exit-back {
  opacity: 0;
  transform: translateX(32px);
  pointer-events: none;
}

.step.from-left {
  transform: translateX(-32px);
}

/* ════════════════════════════════════════════
   ORBITAL SYSTEM
   ════════════════════════════════════════════ */

.orbital-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orbital-wrap--lg {
  width: clamp(200px, 56vw, 280px);
  height: clamp(200px, 56vw, 280px);
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(150, 80, 255, 0.32);
  box-shadow: 0 0 24px rgba(150, 80, 255, 0.06), inset 0 0 24px rgba(150, 80, 255, 0.03);
  animation: ring-spin 18s linear infinite;
}

.ring-mid {
  width: 68%;
  height: 68%;
  border: 1px solid rgba(100, 60, 220, 0.28);
  box-shadow: 0 0 18px rgba(100, 60, 220, 0.07);
  animation: ring-spin 11s linear infinite reverse;
}

.ring-inner {
  width: 38%;
  height: 38%;
  border: 1px solid rgba(180, 100, 255, 0.38);
  box-shadow: 0 0 14px rgba(180, 100, 255, 0.1);
  animation: ring-spin 6s linear infinite;
}

.orbital-dot {
  position: absolute;
  border-radius: 50%;
  top: -4px;
  left: 50%;
  margin-left: -4px;
}

.dot-outer {
  width: 10px;
  height: 10px;
  top: -5px;
  margin-left: -5px;
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc, 0 0 22px rgba(192, 132, 252, 0.65);
}

.dot-mid {
  width: 7px;
  height: 7px;
  top: -3.5px;
  margin-left: -3.5px;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa, 0 0 16px rgba(167, 139, 250, 0.6);
}

.dot-inner {
  width: 5px;
  height: 5px;
  top: -2.5px;
  margin-left: -2.5px;
  background: #f0e6ff;
  box-shadow: 0 0 7px rgba(240, 230, 255, 0.9);
}

.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  height: 34%;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.orbital-center--logo {
  width: 34%;
  height: auto;
  overflow: visible;
  padding: 0;
  border-radius: 0;
}

.orbital-center--logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ════════════════════════════════════════════
   INTRO STEP
   ════════════════════════════════════════════ */

.intro-step {
  align-items: center;
  justify-content: flex-start;
  padding: max(24vh, calc(env(safe-area-inset-top) + 3rem))
           max(1.25rem, env(safe-area-inset-right))
           max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem))
           max(1.25rem, env(safe-area-inset-left));
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 2.5vh, 1.4rem);
  max-width: 22rem;
  width: 100%;
}

/* .intro-wordmark removed — wordmark now lives inside the orbital center */

.intro-sub {
  margin: 0;
  font-size: clamp(1.0625rem, 4.2vw, 1.1875rem);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 20rem;
}

.intro-trust {
  margin-top: auto;
  margin-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: clamp(0.72rem, 2.8vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2.1rem;
  font: 600 0.9375rem/1 var(--font-body);
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-deep) 0%, var(--purple) 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.28), 0 0 56px rgba(168, 85, 247, 0.16), 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.btn-enter:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(34,211,238,0.38), 0 0 70px rgba(168,85,247,0.22), 0 8px 28px rgba(0,0,0,0.45); }
.btn-enter:active { transform: translateY(0); }
.btn-enter svg { width: 1rem; height: 1rem; }

/* ════════════════════════════════════════════
   INTRO ENTRANCE ANIMATIONS
   ════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  .intro-step .orbital-wrap {
    animation: orbital-entrance 1s 0.05s ease-out both;
  }
  .intro-step .intro-wordmark {
    animation: fade-up 0.55s 0.55s ease-out both;
  }
  .intro-step .intro-sub {
    animation: fade-up 0.55s 0.68s ease-out both;
  }
  .intro-step .intro-trust {
    animation: fade-up 0.5s 1.1s ease-out both;
  }
  .intro-step .btn-enter {
    animation:
      fade-up 0.55s 0.88s ease-out both,
      cta-pulse 2.8s 1.75s ease-in-out infinite;
  }
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow:
      0 0 28px rgba(34, 211, 238, 0.28),
      0 0 56px rgba(168, 85, 247, 0.16),
      0 4px 20px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 38px rgba(34, 211, 238, 0.42),
      0 0 72px rgba(168, 85, 247, 0.26),
      0 4px 24px rgba(0, 0, 0, 0.45);
  }
}

@keyframes orbital-entrance {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

/* ════════════════════════════════════════════
   SLIDE STEPS (shared)
   ════════════════════════════════════════════ */

.slide-step {
  align-items: center;
  justify-content: center;
  padding: max(3.25rem, calc(env(safe-area-inset-top) + 2.5rem))
           max(1.25rem, env(safe-area-inset-right))
           max(4.5rem, calc(env(safe-area-inset-bottom) + 3.5rem))
           max(1.25rem, env(safe-area-inset-left));
}

.slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 23rem;
  gap: clamp(0.85rem, 2vh, 1.1rem);
}

.slide-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-mid);
}

.slide-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.slide-body {
  margin: 0;
  font-size: clamp(1rem, 3.8vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 22rem;
}

.slide-intro {
  margin: 0;
  font-size: clamp(0.9375rem, 3.2vw, 1.0625rem);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 22rem;
  text-align: center;
}

.slide-sub {
  margin: 0;
  font-size: clamp(0.9375rem, 3.5vw, 1rem);
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 20rem;
}

.slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: clamp(0.75rem, 2vh, 1.1rem);
  gap: 0.75rem;
}

/* ─── Progress dots ─── */
.progress-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.progress-dot {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.3s ease, background 0.3s ease;
  width: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.progress-dot.is-active {
  width: 24px;
  background: var(--purple-mid);
}

/* ─── Continue button ─── */
.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.4rem;
  font: 600 0.9375rem/1 var(--font-body);
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-continue:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(168,85,247,0.42), 0 6px 20px rgba(0,0,0,0.4); }
.btn-continue:active { transform: translateY(0); }
.btn-continue svg { width: 0.9rem; height: 0.9rem; }
.btn-continue--cta {
  background: linear-gradient(135deg, var(--cyan-deep) 0%, var(--purple) 100%);
  box-shadow: 0 0 24px rgba(34,211,238,0.28), 0 4px 16px rgba(0,0,0,0.35);
}

/* ─── Back button ─── */
.btn-back {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.2s, background 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.btn-back svg { width: 1rem; height: 1rem; }
.btn-back.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.btn-back:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-2px);
}

/* ════════════════════════════════════════════
   PROBLEM SLIDE
   ════════════════════════════════════════════ */

.problem-statement {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
  width: 100%;
}

.problem-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* The moment — full presence */
.problem-line--a {
  color: var(--ink);
}

/* Fades in bright, then memory drains away */
.problem-line--b {
  color: var(--ink);
}

.problem-beats {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  max-width: 21rem;
  text-align: left;
}

.problem-beats-header {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
}

.problem-beat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-left: 2px solid var(--purple-mid);
  padding-left: 0.75rem;
}

.problem-beat__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--purple-mid);
}

.problem-beat__text {
  margin: 0;
  font-size: clamp(0.9rem, 3.4vw, 1rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
}

/* ─── Problem slide entrance animations ─── */
@media (prefers-reduced-motion: no-preference) {

  .problem-slide .slide-kicker      { opacity: 0; }
  .problem-slide .problem-line--a   { opacity: 0; }
  .problem-slide .problem-line--b   { opacity: 0; }
  .problem-slide .problem-beat--1   { opacity: 0; }
  .problem-slide .problem-beat--2   { opacity: 0; }
  .problem-slide .problem-beat--3   { opacity: 0; }
  .problem-slide .problem-beat--4   { opacity: 0; }
  .problem-slide .problem-beat--5   { opacity: 0; }
  .problem-slide .problem-beats-header { opacity: 0; }
  .problem-slide .slide-nav         { opacity: 0; }

  .problem-slide.is-active .slide-kicker {
    animation: content-up 0.4s 0.05s ease-out both;
  }
  .problem-slide.is-active .problem-line--a {
    animation: content-up 0.55s 0.18s ease-out both;
  }
  .problem-slide.is-active .problem-line--b {
    animation:
      content-up 0.7s 0.45s ease-out both,
      memory-fade 1.4s 1.35s ease-out forwards;
  }
  .problem-slide.is-active .problem-beat--1 {
    animation: content-up 0.45s 0.95s ease-out both;
  }
  .problem-slide.is-active .problem-beat--2 {
    animation: content-up 0.45s 1.15s ease-out both;
  }
  .problem-slide.is-active .problem-beat--3 {
    animation: content-up 0.5s 1.38s ease-out both;
  }
  .problem-slide.is-active .problem-beat--4 {
    animation: content-up 0.5s 1.58s ease-out both;
  }
  .problem-slide.is-active .problem-beat--5 {
    animation: content-up 0.5s 1.78s ease-out both;
  }
  .problem-slide.is-active .problem-beats-header {
    animation: content-up 0.4s 0.78s ease-out both;
  }
  .problem-slide.is-active .slide-nav {
    animation: content-up 0.4s 2.0s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .problem-line--b {
    color: rgba(255, 255, 255, 0.32);
  }
}

@keyframes memory-fade {
  to { color: rgba(255, 255, 255, 0.32); }
}

@keyframes content-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   SOLUTION SLIDE
   ════════════════════════════════════════════ */

/* Solution slide — normal top-aligned scroll, CTA lives at end of content */
.problem-slide {
  justify-content: flex-start;
}

.problem-slide .slide-content {
  align-items: center;
  text-align: center;
  padding-top: max(3.5rem, calc(env(safe-area-inset-top) + 2.75rem));
}

.solution-slide {
  justify-content: flex-start;
}

.solution-slide .slide-content {
  padding-top: max(3.5rem, calc(env(safe-area-inset-top) + 2.75rem));
  padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem));
}

/* CTA bar — in-flow at the bottom of the scroll content */
.solution-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  width: 100%;
}

.orbit-steps {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.orbit-step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.orbit-step:last-child {
  border-bottom: none;
}

.orbit-step__num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--purple-mid);
  flex-shrink: 0;
  min-width: 2.5rem;
  padding-top: 0.12rem;
}

.orbit-step__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.orbit-step__body strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: block;
}

.orbit-step__body span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.6;
  display: block;
}

/* Closer punchline */
.solution-closer {
  margin: 0.5rem 0 0;
  font-size: clamp(0.9375rem, 3.8vw, 1.0625rem);
  font-weight: 600;
  color: var(--purple-mid);
  text-align: center;
  line-height: 1.45;
}


/* ─── Solution slide entrance animations ─── */
@media (prefers-reduced-motion: no-preference) {

  .solution-slide .slide-kicker,
  .solution-slide .slide-heading { opacity: 0; }
  .solution-slide .orbit-step    { opacity: 0; }
  .solution-slide .solution-closer { opacity: 0; }
  .solution-slide .solution-cta-bar { opacity: 0; }

  .solution-slide.is-active .slide-kicker {
    animation: content-up 0.4s 0.05s ease-out both;
  }
  .solution-slide.is-active .slide-heading {
    animation: content-up 0.4s 0.15s ease-out both;
  }
  .solution-slide.is-active .orbit-step:nth-child(1) {
    animation: content-up 0.42s 0.28s ease-out both;
  }
  .solution-slide.is-active .orbit-step:nth-child(2) {
    animation: content-up 0.42s 0.38s ease-out both;
  }
  .solution-slide.is-active .orbit-step:nth-child(3) {
    animation: content-up 0.42s 0.48s ease-out both;
  }
  .solution-slide.is-active .orbit-step:nth-child(4) {
    animation: content-up 0.42s 0.58s ease-out both;
  }
  .solution-slide.is-active .orbit-step:nth-child(5) {
    animation: content-up 0.42s 0.68s ease-out both;
  }
  .solution-slide.is-active .solution-closer {
    animation: content-up 0.4s 0.8s ease-out both;
  }
  .solution-slide.is-active .solution-cta-bar {
    animation: content-up 0.4s 0.9s ease-out both;
  }
}

/* ════════════════════════════════════════════
   FORM STEP
   ════════════════════════════════════════════ */

.form-step {
  align-items: center;
  justify-content: flex-start;
  padding: max(2.5rem, calc(env(safe-area-inset-top) + 2rem))
           max(1rem, env(safe-area-inset-right))
           max(3rem, calc(env(safe-area-inset-bottom) + 2rem))
           max(1rem, env(safe-area-inset-left));
}

/* ─── Form entrance animations ─── */
@media (prefers-reduced-motion: no-preference) {
  .form-step .orbit-logo,
  .form-step .form-heading,
  .form-step .form-subheading,
  .form-step .form-social-proof,
  .form-step .form-card,
  .form-step .form-footnote { opacity: 0; }

  .form-step.is-active .orbit-logo {
    animation: fade-up 0.5s 0.05s ease-out both;
  }
  .form-step.is-active .form-heading {
    animation: fade-up 0.5s 0.18s ease-out both;
  }
  .form-step.is-active .form-subheading {
    animation: fade-up 0.5s 0.28s ease-out both;
  }
  .form-step.is-active .form-social-proof {
    animation: fade-up 0.45s 0.38s ease-out both;
  }
  .form-step.is-active .form-card {
    animation: fade-up 0.55s 0.48s ease-out both;
  }
  .form-step.is-active .form-footnote {
    animation: fade-up 0.45s 0.65s ease-out both;
  }
}

.form-page {
  max-width: var(--maxw);
  width: 100%;
  margin: auto;
}

.orbit-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.25rem, 3.5vh, 1.75rem);
}

.orbit-logo__img {
  height: clamp(4.5rem, 22vw, 7rem);
  width: auto;
  object-fit: contain;
}

.form-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.5vw, 2.2rem);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  background: linear-gradient(135deg, var(--cyan) 0%, #93c5fd 40%, var(--purple) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.form-social-proof__dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--purple-mid);
  box-shadow: 0 0 6px var(--purple-mid);
  flex-shrink: 0;
}

.form-subheading {
  margin: 0 0 clamp(0.75rem, 2vh, 1rem);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.5;
}


.form-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4.5vw, 1.75rem);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.08),
    0 0 40px rgba(168, 85, 247, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.form-group--last { margin-bottom: 1.25rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.form-label .optional {
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 0.25em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xs);
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-placeholder); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.06);
  box-shadow:
    0 0 0 3px rgba(168, 85, 247, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.2);
}
.form-input.is-error { border-color: rgba(248, 113, 113, 0.6); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1); }
.form-field-error { font-size: 0.72rem; color: #f87171; display: none; }
.form-field-error.is-visible { display: block; }

.btn-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  font: 600 0.9375rem/1 var(--font-body);
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-deep) 0%, var(--purple) 100%);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25), 0 0 48px rgba(168, 85, 247, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent;
}
.btn-submit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 50%); pointer-events: none; }
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 32px rgba(34,211,238,0.35), 0 0 64px rgba(168,85,247,0.22), 0 8px 24px rgba(0,0,0,0.35); }
.btn-submit:active { transform: translateY(0); opacity: .9; }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-submit:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.btn-submit__spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,0.38); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
.btn-submit.is-loading .btn-submit__text { display: none; }
.btn-submit.is-loading .btn-submit__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-banner { display: none; padding: .7rem .9rem; border-radius: var(--radius-xs); font-size: .83rem; margin-bottom: .85rem; }
.form-banner.is-error     { display: block; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; }
.form-banner.is-duplicate { display: block; background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.25); color: var(--cyan); }

.form-state.is-hidden { display: none; }

.form-footnote {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ════════════════════════════════════════════
   SUCCESS STEP
   ════════════════════════════════════════════ */

.success-step {
  align-items: center;
  justify-content: center;
  padding: max(2rem, env(safe-area-inset-top))
           max(1.25rem, env(safe-area-inset-right))
           max(3.25rem, calc(env(safe-area-inset-bottom) + 2.25rem))
           max(1.25rem, env(safe-area-inset-left));
}

.success-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
  max-width: 22rem;
  width: 100%;
  margin: auto;
}

.success-logo {
  height: clamp(5.5rem, 22vw, 8rem);
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 700;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.success-sub {
  margin: -0.5rem 0 0;
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  font-weight: 600;
  font-style: italic;
  color: var(--purple-mid);
  letter-spacing: 0.01em;
}

.success-text {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 22rem;
}

/* ════════════════════════════════════════════
   PAGE FOOTER
   ════════════════════════════════════════════ */

.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: max(0.85rem, env(safe-area-inset-bottom)) 1rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-footer.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-footer__dot {
  opacity: 0.55;
  margin: 0 0.15em;
}

/* ════════════════════════════════════════════
   QR INDEX PAGE
   ════════════════════════════════════════════ */

body.page-qr {
  overflow: auto;
  background:
    radial-gradient(ellipse 120% 55% at 50% 110%, rgba(120, 40, 220, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 0%,   rgba(100, 30, 180, 0.22) 0%, transparent 55%),
    var(--bg);
}

body.page-qr::after { display: none; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1.5rem, env(safe-area-inset-top))
           max(1rem, env(safe-area-inset-right))
           max(3.5rem, calc(env(safe-area-inset-bottom) + 2rem))
           max(1rem, env(safe-area-inset-left));
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2vh, 1.25rem);
  width: 100%;
  max-width: 24rem;
}

.qr-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.qr-frame {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.qr-image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  border-radius: 0;
  image-rendering: auto;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.qr-cta {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
}

.qr-sub {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.01em;
}

.err {
  font: 500 0.875rem/1.4 var(--font-body);
  color: var(--ink-soft);
  max-width: 20rem;
  text-align: center;
  padding: 1rem;
}

.orbit-logo-qr { display: flex; align-items: center; justify-content: center; margin-bottom: .35rem; }
.orbit-logo-qr img { height: clamp(2.5rem, 10vw, 4rem); width: auto; object-fit: contain; filter: drop-shadow(0 0 12px rgba(34,211,238,.35)); }

/* ════════════════════════════════════════════
   UTILITIES + GLOBAL ANIMATIONS
   ════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  .fade-up         { animation: fade-up .55s ease-out both; }
  .fade-up-delay-1 { animation: fade-up .55s .1s ease-out both; }
  .fade-up-delay-2 { animation: fade-up .55s .2s ease-out both; }
  .fade-up-delay-3 { animation: fade-up .55s .3s ease-out both; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET, IPAD & DESKTOP
   Mobile layout is preserved. All changes are
   additive via min-width breakpoints only.
   ════════════════════════════════════════════ */

/* ── Tablet / iPad portrait (≥ 680px) ── */
@media (min-width: 680px) {

  /* Global content width boost */
  :root { --maxw: 32rem; }

  /* Bigger orbital on splash */
  .orbital-wrap--lg {
    width: clamp(280px, 38vw, 360px);
    height: clamp(280px, 38vw, 360px);
  }

  /* Intro: more breathing room */
  .intro-inner { max-width: 28rem; gap: clamp(1.1rem, 2.5vh, 1.6rem); }
  .intro-sub { font-size: clamp(1.1rem, 2.2vw, 1.2rem); max-width: 26rem; }

  /* Slide steps: wider and more padding */
  .slide-step {
    padding-top: max(4rem, calc(env(safe-area-inset-top) + 3.5rem));
    padding-left: max(2.5rem, env(safe-area-inset-left));
    padding-right: max(2.5rem, env(safe-area-inset-right));
  }

  /* Wider slide content box */
  .slide-content { max-width: 30rem; }

  /* Scale typography up gently */
  .slide-heading { font-size: clamp(1.75rem, 3.5vw, 2.1rem); }
  .problem-line  { font-size: clamp(1.8rem, 4vw, 2.35rem); }
  .problem-beats { max-width: 28rem; }
  .problem-beat__text { font-size: 0.9375rem; }

  /* Solution steps: slightly more generous */
  .orbit-step__num          { font-size: 1.85rem; }
  .orbit-step__body strong  { font-size: 1.05rem; }
  .orbit-step__body span    { font-size: 0.9375rem; }

  /* Form */
  .form-heading { font-size: clamp(1.9rem, 3.5vw, 2.4rem); }

  /* Success */
  .success-stack { max-width: 28rem; gap: 1.25rem; }
  .success-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
  .success-sub   { font-size: 1.1rem; }
  .success-logo  { height: clamp(6rem, 15vw, 9rem); }
}

/* ── Desktop / iPad landscape (≥ 1024px) ── */
@media (min-width: 1024px) {

  :root { --maxw: 38rem; }

  /* ── Splash: vertically centred, large orbital ── */
  .intro-step {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* "Coming soon" stays pinned to the bottom — centered on all devices */
  .intro-trust {
    margin-top: 0;
    position: absolute;
    bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .orbital-wrap--lg {
    width: clamp(360px, 28vw, 440px);
    height: clamp(360px, 28vw, 440px);
  }

  .intro-inner { max-width: 34rem; }
  .intro-sub   { font-size: 1.25rem; max-width: 30rem; }

  /* CTA button: slightly larger */
  .btn-enter { padding: 1.05rem 2.5rem; font-size: 1rem; }

  /* ── Problem slide: two-column grid ── */
  .problem-slide .slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "kicker  kicker"
      "stmt    beats"
      "nav     nav";
    column-gap: 4rem;
    row-gap: 1.5rem;
    max-width: 68rem;
    text-align: left;
    align-items: start;
    margin-top: auto;
    margin-bottom: auto;
  }
  .problem-slide .slide-kicker      { grid-area: kicker; }
  .problem-slide .problem-statement { grid-area: stmt; align-self: start; text-align: left; }
  .problem-slide .problem-beats-col { grid-area: beats; max-width: none; }
  .problem-slide .problem-beats     { max-width: none; }
  .problem-slide .slide-nav         { grid-area: nav; margin-top: 0; }

  .problem-line  { font-size: clamp(2rem, 3vw, 2.6rem); }
  .problem-beat__text { font-size: 1rem; }

  /* ── Solution slide: wider single column ── */
  .solution-slide .slide-content { max-width: 52rem; }
  .slide-intro { max-width: 36rem; font-size: 1.0625rem; text-align: center; }
  .orbit-step                    { padding: 1.4rem 0; }
  .orbit-step__body strong       { font-size: 1.1rem; }
  .orbit-step__body span         { font-size: 1rem; }
  .orbit-step__num               { font-size: 2rem; min-width: 3rem; }

  /* ── Form: centred, wider ── */
  .form-page   { padding: 3rem 0; }
  .form-heading { font-size: clamp(2rem, 2.8vw, 2.8rem); }
  .form-card   { padding: 2rem 2.25rem; }

  /* ── Success ── */
  .success-stack { max-width: 34rem; gap: 1.5rem; }
  .success-title { font-size: clamp(2.2rem, 3vw, 3rem); }
  .success-sub   { font-size: 1.25rem; }
  .success-text  { font-size: 1.125rem; max-width: 30rem; }
  .success-logo  { height: clamp(7rem, 12vw, 10rem); margin-bottom: 0.5rem; }

  /* Back button: nudge inward on desktop */
  .btn-back {
    top: max(1.5rem, env(safe-area-inset-top, 0px));
    left: max(1.5rem, env(safe-area-inset-left, 0px));
  }
}

/* ── Large desktop (≥ 1280px) ── */
@media (min-width: 1280px) {

  :root { --maxw: 42rem; }

  .orbital-wrap--lg { width: 460px; height: 460px; }

  .problem-slide .slide-content { max-width: 80rem; column-gap: 6rem; }
  .problem-line  { font-size: 2.8rem; }

  .solution-slide .slide-content { max-width: 60rem; }

  .slide-heading { font-size: 2.3rem; }

  .success-title { font-size: 3.2rem; }
  .success-sub   { font-size: 1.35rem; }
  .success-logo  { height: 11rem; }
}
