* { box-sizing: border-box; }

:root {
  --bg: #f5f5f7;
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(0, 0, 0, 0.06);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #1d1d1f;
  --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Accent gradient + background "aurora" blobs -- the color/motion pass */
  --grad-1: #7c3aed;
  --grad-2: #db2777;
  --accent-gradient: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  --glow: rgba(124, 58, 237, 0.35);
  --blob-1: rgba(139, 92, 246, 0.35);
  --blob-2: rgba(236, 72, 153, 0.28);
  --blob-3: rgba(56, 189, 248, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card-bg: rgba(28, 28, 30, 0.72);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --accent: #f5f5f7;
    --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
    --glow: rgba(167, 139, 250, 0.45);
    --blob-1: rgba(139, 92, 246, 0.5);
    --blob-2: rgba(236, 72, 153, 0.4);
    --blob-3: rgba(56, 189, 248, 0.35);
  }
}

body {
  margin: 0;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Aurora background -- three soft blurred blobs drifting slowly behind the card.
   Pure CSS, no image assets; this is the "more color" + "more motion" pass. */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
body::before {
  width: 55vmax; height: 55vmax;
  background: var(--blob-1);
  top: -20%; left: -18%;
  animation: drift-a 26s ease-in-out infinite;
}
body::after {
  width: 50vmax; height: 50vmax;
  background: var(--blob-2);
  bottom: -22%; right: -15%;
  animation: drift-b 30s ease-in-out infinite;
}
.wrap::before {
  content: "";
  position: fixed;
  width: 40vmax; height: 40vmax;
  top: 40%; left: 60%;
  background: var(--blob-3);
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  animation: drift-c 34s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vmax, 6vmax) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7vmax, -8vmax) scale(1.05); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6vmax, 5vmax); }
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 32px;
  position: relative;
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 10;
}
.progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  transition: width 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

.step { display: none; }
.step.active {
  display: block;
  animation: step-in 420ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.step-count {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 590;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1, h2 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
}
h2 { font-size: 24px; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 200ms ease;
}
@media (prefers-color-scheme: dark) {
  .option { background: rgba(255, 255, 255, 0.04); }
}
.option:hover:not(:has(input:checked)) {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px var(--glow);
}
.option:active {
  transform: scale(0.98);
  transition: transform 100ms ease-out;
}
.option:has(input:checked) {
  border-color: transparent;
  background: var(--accent-gradient);
  box-shadow: 0 12px 28px -12px var(--glow);
}
.option:has(input:checked) span { color: #fff; }
.option input { accent-color: var(--grad-1); }
.option:has(input:checked) input { accent-color: #fff; }

.hint { color: var(--text-secondary); font-size: 14px; margin-top: -14px; margin-bottom: 20px; }

.text-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  font-size: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
@media (prefers-color-scheme: dark) {
  .text-input { background: rgba(255, 255, 255, 0.04); }
}
.text-input:focus {
  outline: none;
  border-color: var(--grad-1);
  box-shadow: 0 0 0 4px var(--glow);
}

.btn-submit {
  width: 100%;
  padding: 16px 18px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 590;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 24px -10px var(--glow);
  transition: transform 100ms ease-out, box-shadow 200ms ease, opacity 200ms ease;
}
.btn-submit:hover { box-shadow: 0 14px 30px -10px var(--glow); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

.landing h1 { font-size: 30px; }
.landing .lede { color: var(--text-secondary); margin-top: 0; font-size: 17px; }
.landing .cta-line { font-weight: 590; margin-top: 24px; }
.btn-link { max-width: 240px; margin-top: 12px; }

/* Reduced motion: freeze the aurora + step-in transform, keep the color (swap to a plain cross-fade) */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .wrap::before { animation: none !important; }
  .step.active { animation: fade-only 200ms ease; }
  @keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }
  .progress-bar, .option, .btn-submit { transition: opacity 150ms ease, background 150ms ease !important; transform: none !important; }
}
