:root {
  --bg-0: #060b16;
  --ink-0: #f5f7fa;
  --ink-1: #a9b3c7;
  --ink-2: #5f6a83;
  --blue: #0f67fd;
  --teal: #3bedc3;
  --teal-solid: #00f1be;
  --border: rgba(255,255,255,0.08);
  --field-bg: rgba(255,255,255,0.04);

  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.25rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 1200px 800px at 18% -8%, rgba(15,103,253,0.15), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 100% 108%, rgba(59,237,195,0.09), transparent 55%),
    var(--bg-0);
  color: var(--ink-0);
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- landing ---------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 6vw;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding-bottom: var(--space-5);
}

.logo-wrap img { height: clamp(48px, 6vw, 68px); width: auto; display: block; margin-bottom: var(--space-3); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--teal);
  margin: 0;
}

h1 {
  font-size: clamp(var(--step-3), 3.6vw, var(--step-4));
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--ink-0) 45%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle { font-size: var(--step-1); color: var(--ink-1); max-width: 38ch; margin: 0; line-height: 1.55; }

.meta { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-2); font-size: var(--step--1); margin: var(--space-1) 0 var(--space-2); }
.meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-solid); box-shadow: 0 0 10px 2px rgba(0,241,190,0.5); }

.cta, .next {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: var(--step-0);
  color: #04140f;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--teal-solid), var(--blue) 140%);
  box-shadow: 0 10px 30px -8px rgba(0,241,190,0.4), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  display: inline-block;
}
.next { padding: 0.85rem 2.2rem; }
.cta:hover, .next:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -6px rgba(0,241,190,0.5), 0 0 0 1px rgba(255,255,255,0.08) inset; }
.cta:focus-visible, .next:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

footer.legal { text-align: center; font-size: var(--step--1); color: var(--ink-2); }
footer.legal a { color: var(--ink-1); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- questionnaire screen ---------- */
.topbar { display: flex; justify-content: center; }
.topbar img { height: 26px; width: auto; }

.progress { display: flex; align-items: center; gap: var(--space-3); max-width: 560px; width: 100%; margin: var(--space-4) auto 0; }
.progress-track { flex: 1; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width 0.4s ease; }
.progress-count { flex: none; font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.stage { flex: 1; display: flex; align-items: center; justify-content: center; }
.card { width: 100%; max-width: 560px; text-align: center; }

.card .eyebrow { margin: 0 0 var(--space-2); }
.card h1 { font-size: clamp(var(--step-2), 3.2vw, var(--step-3)); max-width: none; margin: 0 0 var(--space-4); }

.hint { text-align: left; font-size: var(--step--1); color: var(--ink-2); margin-top: var(--space-1); }
.multi-hint { text-align: left; font-size: var(--step--1); color: var(--ink-2); margin: 0 0 var(--space-2); }
.error { text-align: left; font-size: var(--step--1); color: #ff8b8b; margin-top: var(--space-1); }

.field {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--ink-0);
  font: inherit;
  font-size: var(--step-1);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field::placeholder { color: var(--ink-2); }
.field:focus { border-color: var(--teal-solid); background: rgba(0,241,190,0.06); }
textarea.field { resize: none; min-height: 9rem; line-height: 1.5; font-size: var(--step-0); }

.options { display: flex; flex-direction: column; gap: var(--space-2); text-align: left; }

.option, .checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.95rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--ink-0);
  font-size: var(--step-0);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover, .checkbox:hover { border-color: rgba(59,237,195,0.4); background: rgba(59,237,195,0.06); }
.option.selected, .checkbox.selected,
.option:has(input:checked), .checkbox:has(input:checked) { border-color: var(--teal-solid); background: rgba(0,241,190,0.08); }
.option input, .checkbox input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }

.mark { flex: none; width: 20px; height: 20px; border: 2px solid var(--ink-2); display: flex; align-items: center; justify-content: center; }
.option .mark { border-radius: 50%; }
.checkbox .mark { border-radius: 6px; }
.option.selected .mark, .checkbox.selected .mark,
.option:has(input:checked) .mark, .checkbox:has(input:checked) .mark { border-color: var(--teal-solid); background: var(--teal-solid); }
.option.selected .mark::after,
.option:has(input:checked) .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #04140f; }
.checkbox.selected .mark::after,
.checkbox:has(input:checked) .mark::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #04140f; border-bottom: 2px solid #04140f; transform: rotate(-45deg) translateY(-1px); }

.option-other { margin-top: var(--space-2); }
.option-other .field { padding: 0.85rem 1.1rem; font-size: var(--step-0); }

.consent { display: flex; align-items: flex-start; gap: var(--space-2); text-align: left; margin-top: var(--space-4); font-size: var(--step--1); color: var(--ink-1); }
.consent input { margin-top: 3px; }
.consent a { color: var(--teal); text-decoration: underline; }

.nav { display: flex; justify-content: space-between; align-items: center; max-width: 560px; margin: var(--space-4) auto 0; width: 100%; }
.back { background: none; border: none; color: var(--ink-2); font: inherit; font-size: var(--step--1); cursor: pointer; text-decoration: none; }
.back:hover { color: var(--ink-1); }

/* ---------- thank-you ---------- */
.thanks-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,241,190,0.12);
  border: 1px solid rgba(0,241,190,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--teal-solid);
  font-size: 1.5rem;
}
