:root {
  --bg: #101116;
  --card: #1a1c23;
  --text: #f2f3f7;
  --muted: #9aa0ae;
  --accent: #a88bff;
  --accent2: #ff3d8b;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --heading-font: var(--font);
  --heading-weight: 700;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 48px;
  position: relative;
}

.loading { text-align: center; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; }

/* ---------- landing ---------- */
.kicker {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

h1.headline {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.promise {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 46ch;
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  padding: 18px 30px;
  border-radius: calc(var(--radius) + 30px);
  width: 100%;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.985); filter: brightness(1.1); }

/* ---------- quiz step ---------- */
.progress-track {
  width: 100%;
  height: 4px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  transition: width 0.35s ease;
}
.step-count {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 30px;
}

h2.question {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: clamp(26px, 6.5vw, 36px);
  line-height: 1.12;
  margin-bottom: 28px;
}

.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: var(--card);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 500;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s ease, background 0.12s ease;
}
.option:hover { border-color: var(--accent); }
.option:active, .option.picked {
  transform: scale(0.985);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
}

/* ---------- email step ---------- */
.email-input {
  width: 100%;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  outline: none;
}
.email-input:focus { border-color: var(--accent); }
.email-error { color: var(--accent2); font-size: 14px; margin: -6px 0 12px; display: none; }

/* ---------- result ---------- */
.result-title {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: clamp(30px, 7.5vw, 44px);
  line-height: 1.08;
  margin-bottom: 16px;
}
.result-body { color: var(--muted); font-size: 17px; line-height: 1.6; margin-bottom: 32px; max-width: 48ch; }

.fine { margin-top: 22px; font-size: 12.5px; color: color-mix(in srgb, var(--muted) 70%, transparent); text-align: center; }

.fade-in { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
