:root {
  --ink: #14181f;
  --paper: #edeff3;
  --card: #ffffff;
  --cobalt: #1b4b91;
  --cobalt-deep: #123a72;
  --coral: #e1613d;
  --coral-deep: #c74f2e;
  --slate: #14181f;
  --slate-soft: #4a5361;
  --line: #dee2e8;

  --font-display: "Space Grotesk", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--slate-soft);
  max-width: 46ch;
  margin: 0 0 24px;
}

/* ---------------- Progress rail ---------------- */
.progress-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  padding: 14px 20px 12px;
}
.rail-track {
  height: 4px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.rail-fill {
  height: 100%;
  width: 0%;
  background: var(--coral);
  transition: width 0.4s ease;
}
.rail-label {
  max-width: 720px;
  margin: 8px auto 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/* ---------------- Layout ---------------- */
main { min-height: 100vh; }

.step {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.5s ease both;
}
.step[hidden] {
  display: none !important;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signal hero: split media + message, full-bleed dark background */
.step--hero {
  background: var(--ink);
  color: #fff;
  max-width: none;
  min-height: 100vh;
  padding: 48px 24px;
  display: flex;
  align-items: center;
}
.hero-split {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-copy { flex: 1 1 400px; }
.step--hero h1 { color: #fff; }
.step--hero .eyebrow { color: #7fa8e0; }
.step--hero .hero-sub { color: rgba(255,255,255,0.68); }
.hero-cta { margin-top: 8px; }

.video-frame {
  flex: 1 1 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
  min-width: 280px;
}
.video-frame video { width: 100%; display: block; max-height: 60vh; }

@media (max-width: 760px) {
  .hero-split { flex-direction: column; gap: 28px; }
  .video-frame { width: 100%; }
}

/* ---------------- Forms ---------------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--card);
  color: var(--slate);
}
.input:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(27,75,145,0.15);
}
.textarea { resize: vertical; min-height: 120px; }

/* ---------------- Options (radio cards) ---------------- */
.options { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 8px; }
.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 1rem;
}
.option-card:hover { border-color: var(--cobalt); }
.option-card input { accent-color: var(--cobalt); width: 18px; height: 18px; flex-shrink: 0; }
.option-card:has(input:checked) {
  border-color: var(--cobalt);
  background: #eef3fb;
}

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--coral-deep); }
.btn-secondary { background: transparent; color: var(--slate-soft); border: 1.5px solid var(--line); }
.step--hero .btn-secondary { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.25); }

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.step-footer--center { flex-direction: column; align-items: flex-start; gap: 10px; }

.hint { font-size: 0.85rem; color: var(--slate-soft); margin: 0; }
.step--hero .hint { color: rgba(255,255,255,0.55); }

/* ---------------- Selfie recorder ---------------- */
.prompt-list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.9;
}
.recorder {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 340px;
  margin: 0 auto 20px;
}
.recorder-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.recorder-timer {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.recorder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.file-input { display: block; margin: 8px auto 0; font-size: 0.9rem; }

/* ---------------- Review + thank you ---------------- */
.review-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 8px;
}
.review-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.review-row:last-child { border-bottom: none; }
.review-row span:first-child { color: var(--slate-soft); }

@media (max-width: 520px) {
  .step { padding: 36px 18px 48px; }
  .step-footer { flex-direction: column-reverse; align-items: stretch; }
  .btn { width: 100%; }
}
