/* Orbit Waitlist — light theme (app parity) */

:root {
  /* App brand primary: cool near-black (#0A0B12) — Flutter Orbit fg/primary */
  --orbit-bg: #F2F2F7;
  --orbit-fg: #0A0B12;
  --orbit-body: #374151;
  --orbit-muted: #5B6270;
  --orbit-primary: #0A0B12;
  --orbit-accent: #1A1C24;
  --orbit-primary3: #2A2D38;
  --orbit-cyan: #00D4FF;
  --orbit-success: #22C55E;
  --orbit-destructive: #E0442A;
  --orbit-glass-fill: rgba(255, 255, 255, 0.8);
  --orbit-glass-blur: 24px;
  --orbit-card-radius: 22px;
  --orbit-cta-radius: 15px;
  --orbit-cta-shadow: 0 8px 24px rgba(10, 11, 18, 0.28);
  --orbit-primary-grad: linear-gradient(135deg, #1A1C24 0%, #0A0B12 100%);
  --orbit-pill-border: linear-gradient(90deg, #00D4FF, #0A0B12, #2A2D38);

  --bg: var(--orbit-bg);
  --bg-card: var(--orbit-glass-fill);
  --ink: var(--orbit-fg);
  --ink-soft: var(--orbit-body);
  --ink-muted: var(--orbit-muted);
  --ink-placeholder: #9CA3AF;
  --purple: var(--orbit-primary);
  --purple-mid: var(--orbit-accent);
  --purple-deep: var(--orbit-primary3);
  --purple-glow: rgba(10, 11, 18, 0.18);
  --border: rgba(0, 0, 0, 0.08);
  --radius-lg: var(--orbit-card-radius);
  --radius-sm: 14px;
  --radius-xs: 12px;
  --font-display: var(--font-body);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --space: clamp(1rem, 4vw, 1.5rem);
  --maxw: 30rem;
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(10, 11, 18, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
  background-color: #000000;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .orbital-ring,
  .dot-orbit { animation: none !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);
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* ─── Ambient blobs (app OrbitAmbientBackground parity) ─── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.ambient-blob--primary {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  top: -8%;
  left: -12%;
  background: rgba(10, 11, 18, 0.06);
  animation: blob-drift-a 20s ease-in-out infinite;
}

.ambient-blob--accent {
  width: min(55vw, 340px);
  height: min(55vw, 340px);
  top: 38%;
  right: -18%;
  background: rgba(26, 28, 36, 0.05);
  animation: blob-drift-b 22s ease-in-out infinite;
}

.ambient-blob--deep {
  width: min(50vw, 300px);
  height: min(50vw, 300px);
  bottom: 8%;
  left: 10%;
  background: rgba(42, 45, 56, 0.05);
  animation: blob-drift-c 24s ease-in-out infinite;
}

.ambient-blob--cyan {
  width: min(40vw, 240px);
  height: min(40vw, 240px);
  bottom: 22%;
  right: 8%;
  background: rgba(0, 212, 255, 0.06);
  animation: blob-drift-d 18s ease-in-out infinite;
}

@keyframes blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 4%) scale(1.06); }
}
@keyframes blob-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 6%) scale(1.04); }
}
@keyframes blob-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -5%) scale(1.05); }
}
@keyframes blob-drift-d {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, -3%) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none !important; }
}

/* ─── 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, 58vw, 300px);
  height: clamp(200px, 58vw, 300px);
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Ring strokes: Orbit splash — cool charcoal on light canvas */
.ring-outer {
  width: 100%;
  height: 100%;
  border: 2.25px solid rgba(10, 11, 18, 0.28);
  box-shadow: none;
  animation: ring-spin 45s linear infinite;
}

.ring-mid {
  width: 73.6%;
  height: 73.6%;
  border: 2.75px solid rgba(10, 11, 18, 0.22);
  box-shadow: none;
  animation: ring-spin 72s linear infinite reverse;
}

.ring-inner {
  width: 47.2%;
  height: 47.2%;
  border: 2.25px solid rgba(10, 11, 18, 0.18);
  box-shadow: none;
  animation: ring-spin 120s linear infinite;
}

/* Dot orbit speeds: t*speed rad per 10s (Flutter _orbitDot) */
.dot-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dot-orbit--outer {
  width: 100%;
  height: 100%;
  animation: ring-spin 10.47s linear infinite;
}

.dot-orbit--mid {
  width: 73.6%;
  height: 73.6%;
  animation: ring-spin 6.98s linear infinite reverse;
}

.dot-orbit--inner {
  width: 47.2%;
  height: 47.2%;
  animation: ring-spin 5.24s linear infinite;
}

.orbital-dot {
  position: absolute;
  border-radius: 50%;
  top: -4px;
  left: 50%;
  margin-left: -4px;
}

/* All three splash dots: app primary cool black (#0A0B12) */
.dot-outer {
  width: 10px;
  height: 10px;
  top: -5px;
  margin-left: -5px;
  background: var(--orbit-primary);
  box-shadow: 0 0 10px rgba(10, 11, 18, 0.28);
}

.dot-mid {
  width: 8px;
  height: 8px;
  top: -4px;
  margin-left: -4px;
  background: var(--orbit-primary);
  box-shadow: 0 0 10px rgba(10, 11, 18, 0.28);
}

.dot-inner {
  width: 8px;
  height: 8px;
  top: -4px;
  margin-left: -4px;
  background: var(--orbit-primary);
  box-shadow: 0 0 10px rgba(10, 11, 18, 0.28);
}

.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: 40%;
  max-width: 4.25rem;
  height: auto;
  overflow: visible;
  padding: 0;
  border-radius: 0;
}

.orbital-center--logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4.25rem;
  object-fit: contain;
  object-position: center;
}

/* logo-mark.png is white-on-black; invert for black mark on light canvas */
.orbital-center--logo .orbit-mark--light {
  filter: invert(1);
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ════════════════════════════════════════════
   INTRO STEP
   ════════════════════════════════════════════ */

.intro-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  padding: max(0.25rem, env(safe-area-inset-top))
           max(1.25rem, env(safe-area-inset-right))
           calc(4.5rem + env(safe-area-inset-bottom, 0px))
           max(1.25rem, env(safe-area-inset-left));
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.intro-hero-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 22rem;
  gap: clamp(0.75rem, 2vh, 1.25rem);
  flex-shrink: 0;
  padding-bottom: 0;
}

.intro-copy-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.75rem, 2vh, 1.1rem);
  width: 100%;
  max-width: 20rem;
  flex-shrink: 0;
  margin-top: clamp(0.5rem, 1.25vh, 0.875rem);
  padding-bottom: 0;
}

.intro-wordmark {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(2rem, 9vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--orbit-fg);
}

.intro-headline {
  margin: 0;
  font-size: clamp(1.125rem, 4.5vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--orbit-fg);
  max-width: 20rem;
}

.intro-sub {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--orbit-body);
  letter-spacing: 0;
  line-height: 1.55;
  max-width: 20rem;
}

.intro-trust-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  border-top: none;
  pointer-events: none;
}

.intro-trust {
  margin: 0;
  padding: 0.55rem 1.1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orbit-muted);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(10, 11, 18, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  pointer-events: auto;
}

.btn-enter,
.btn-submit,
.btn-continue--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font: 700 0.9375rem/1 var(--font-body);
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--orbit-primary-grad);
  border: none;
  border-radius: var(--orbit-cta-radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--orbit-cta-shadow);
  position: relative;
  overflow: hidden;
}
.btn-enter::before,
.btn-submit::before,
.btn-continue--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.btn-enter:hover,
.btn-submit:hover:not(:disabled),
.btn-continue--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(10, 11, 18, 0.32);
}
.btn-enter:active,
.btn-submit:active,
.btn-continue--cta:active { transform: translateY(0); }
.btn-enter svg,
.btn-continue 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.1s ease-out both;
  }
  .intro-step .intro-headline {
    animation: fade-up 0.55s 0.45s ease-out both;
  }
  .intro-step .intro-sub {
    animation: fade-up 0.55s 0.58s ease-out both;
  }
  .intro-step .intro-trust-bar {
    animation: fade-up 0.5s 1s ease-out both;
  }
  .intro-step .btn-enter {
    animation:
      fade-up 0.55s 0.72s ease-out both,
      cta-pulse 2.8s 1.75s ease-in-out infinite;
  }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--orbit-cta-shadow); }
  50% { box-shadow: 0 10px 32px rgba(10, 11, 18, 0.35); }
}

@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.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orbit-primary);
}

.slide-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--orbit-fg);
}

.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(10, 11, 18, 0.18);
  transition: width 0.3s ease, background 0.3s ease;
  width: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.progress-dot.is-active {
  width: 24px;
  background: var(--orbit-primary);
}

/* ─── Continue button (glass secondary) ─── */
.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  min-height: 44px;
  font: 600 0.9375rem/1 var(--font-body);
  letter-spacing: 0.01em;
  color: var(--orbit-fg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--orbit-cta-radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-continue:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(10, 11, 18, 0.1);
}
.btn-continue:active { transform: translateY(0); }
.btn-continue svg { width: 0.9rem; height: 0.9rem; }

/* ─── 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(--orbit-muted);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  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(--orbit-fg);
  background: rgba(255, 255, 255, 0.95);
  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-body);
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  font-weight: 800;
  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: 0.75rem;
  width: 100%;
  max-width: 21rem;
  text-align: left;
}

.problem-beats-header {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--orbit-fg);
  text-align: center;
}

.problem-beat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.problem-beat__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orbit-primary);
}

.problem-beat__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--orbit-body);
  line-height: 1.55;
}

/* ─── 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: var(--orbit-muted);
  }
}

@keyframes memory-fade {
  to { color: var(--orbit-muted); }
}

@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(0, 0, 0, 0.06);
  text-align: left;
}

.orbit-step:last-child {
  border-bottom: none;
}

.orbit-step__num {
  font-family: var(--font-body);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--orbit-primary);
  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(--orbit-primary);
  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: center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  padding: max(0.65rem, env(safe-area-inset-top))
           max(1rem, env(safe-area-inset-right))
           max(0.65rem, env(safe-area-inset-bottom))
           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-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-card {
    animation: fade-up 0.55s 0.38s ease-out both;
  }
  .form-step.is-active .form-footnote {
    animation: fade-up 0.45s 0.52s ease-out both;
  }
}

.form-page {
  max-width: 32rem;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.2rem, 0.75dvh, 0.5rem);
  min-height: 0;
  overflow: hidden;
}

.orbit-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 4vh, 2rem);
  width: 100%;
}

.form-step .orbit-logo {
  width: 100%;
  margin: 0 0 clamp(0.2rem, 0.6dvh, 0.4rem);
  flex-shrink: 0;
}

.form-step .orbit-logo__img--full {
  height: clamp(5.25rem, 24vw, 8.75rem);
  max-width: min(26rem, 94vw);
}

.form-step .form-heading {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 5.5vw, 2rem);
  flex-shrink: 0;
}

.form-step .form-subheading {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto clamp(0.45rem, 1.1dvh, 0.75rem);
  padding: 0 0.25rem;
  text-align: center;
  font-size: clamp(0.875rem, 2.4vw, 0.9375rem);
  line-height: 1.5;
  flex-shrink: 0;
}

.form-step .form-card {
  width: 100%;
  padding: clamp(1.1rem, 2.8dvh, 1.5rem);
  flex-shrink: 1;
  min-height: 0;
}

.form-step .form-group {
  margin-bottom: clamp(0.55rem, 1.4dvh, 0.75rem);
}

.form-step .form-group--last {
  margin-bottom: clamp(0.65rem, 1.6dvh, 0.9rem);
}

.form-step .form-label {
  font-size: 0.875rem;
}

.form-step .form-input {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
}

.form-step .btn-submit {
  min-height: 48px;
}

.form-step .form-trust {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.orbit-logo__img {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.orbit-logo__img--full {
  height: clamp(4.5rem, 22vw, 7rem);
  max-width: min(20rem, 92vw);
}

.form-step .form-footnote {
  width: 100%;
  margin: clamp(0.45rem, 1dvh, 0.65rem) 0 0;
  text-align: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

@media (max-height: 640px) {
  .form-step .form-trust {
    display: none;
  }

  .form-step .orbit-logo__img--full {
    height: clamp(4.5rem, 18vw, 6.5rem);
  }

  .form-step .form-subheading {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 0.35rem;
  }
}

.form-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 6.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  color: var(--orbit-fg);
}

.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(--orbit-success);
  flex-shrink: 0;
}

.form-subheading {
  margin: 0 0 clamp(1rem, 2.5vh, 1.25rem);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--orbit-body);
  text-align: center;
  line-height: 1.55;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.form-card {
  background: var(--orbit-glass-fill);
  backdrop-filter: blur(var(--orbit-glass-blur));
  -webkit-backdrop-filter: blur(var(--orbit-glass-blur));
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(10, 11, 18, 0.08),
    var(--shadow-card);
  border-radius: var(--orbit-card-radius);
  padding: clamp(1.5rem, 4.5vw, 2rem);
  width: 100%;
}

.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%;
  min-height: 48px;
  padding: 0.78rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--orbit-fg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-xs);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s, box-shadow 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(10, 11, 18, 0.45);
  box-shadow: 0 0 0 1.5px rgba(10, 11, 18, 0.35);
}
.form-input.is-error {
  border-color: rgba(224, 68, 42, 0.55);
  box-shadow: 0 0 0 1.5px rgba(224, 68, 42, 0.35);
}
.form-field-error { font-size: 0.75rem; color: var(--orbit-destructive); display: none; }
.form-field-error.is-visible { display: block; }

.btn-submit {
  width: 100%;
  margin-top: 0.15rem;
  border-radius: var(--orbit-cta-radius);
}
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-submit:focus-visible { outline: 2px solid var(--orbit-primary); outline-offset: 2px; }

.form-trust {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--orbit-muted);
  line-height: 1.4;
}

.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(224, 68, 42, 0.08); border: 1px solid rgba(224, 68, 42, 0.25); color: #B91C1C; }
.form-banner.is-duplicate { display: block; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.08); color: var(--orbit-body); }

.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-check {
  color: var(--orbit-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.success-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--orbit-fg);
}

.success-sub {
  margin: -0.25rem 0 0;
  font-size: clamp(1rem, 3.5vw, 1.125rem);
  font-weight: 700;
  font-style: normal;
  color: var(--orbit-success);
  letter-spacing: 0.01em;
}

.success-text {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--orbit-body);
  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: var(--orbit-bg);
  color: var(--orbit-fg);
}

.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-body);
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orbit-fg);
  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; }

/* ════════════════════════════════════════════
   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; }

  .orbital-wrap--lg {
    width: clamp(220px, 34vw, 280px);
    height: clamp(220px, 34vw, 280px);
  }

  .intro-hero-cluster { max-width: 26rem; }
  .intro-copy-block { max-width: 24rem; margin-top: clamp(0.5rem, 1.25vh, 0.875rem); }
  .intro-headline { font-size: 1.3rem; max-width: 22rem; }
  .intro-sub { font-size: 1rem; max-width: 24rem; }

  /* 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); }
  .form-step .form-heading {
    font-size: clamp(1.75rem, 4vw, 2.1rem);
  }
  .form-step .orbit-logo__img--full {
    height: clamp(5.5rem, 20vw, 8.5rem);
    max-width: min(26rem, 92vw);
  }

  /* 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; }
}

/* ── Desktop / iPad landscape (≥ 1024px) ── */
@media (min-width: 1024px) {

  :root { --maxw: 38rem; }

  .intro-step {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .intro-trust-bar {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  .intro-copy-block {
    margin-top: clamp(0.625rem, 1.5vh, 1rem);
  }

  .orbital-wrap--lg {
    width: clamp(260px, 24vw, 300px);
    height: clamp(260px, 24vw, 300px);
  }

  .intro-hero-cluster { max-width: 32rem; }
  .intro-copy-block { max-width: 28rem; margin-top: clamp(0.625rem, 1.5vh, 1rem); }
  .intro-headline { font-size: 1.35rem; max-width: 24rem; }
  .intro-sub   { font-size: 1.0625rem; max-width: 24rem; }

  /* 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: 0;
    margin: 0 auto;
    max-height: 100%;
  }

  .form-step .orbit-logo__img--full {
    height: clamp(5.75rem, 14vw, 9rem);
    max-width: min(28rem, 90vw);
  }
  .form-step .form-heading {
    font-size: clamp(1.85rem, 2.8vw, 2.35rem);
  }
  .form-heading { font-size: clamp(2rem, 2.8vw, 2.8rem); }
  .form-card   { padding: 2rem 2.25rem; }
  .form-step .form-card {
    padding: clamp(1.25rem, 2.5dvh, 1.65rem);
  }
  .form-step .form-subheading {
    max-width: 22rem;
    font-size: 0.9375rem;
  }

  /* ── 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.0625rem; max-width: 30rem; }

  /* 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: 280px; height: 280px; }

  .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; }
}
