:root {
  --bg: #fbfbfb;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --accent: #6b09bb;
  --accent-dark: #55009b;
  --pink: #aa4cf7;
  --green: #0fd586;
  --red: #e8003a;
  --border: #e5e5e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Neue Haas Unica W1G', Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: auto -20% -40% -20%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(107, 9, 187, 0.08), transparent 70%);
  pointer-events: none;
}

.header { padding: 28px 36px; }
.logo { height: 28px; display: block; }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  transition: width 0.4s ease;
}

.app {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 96px;
}

.step { display: none; width: min(640px, 100%); }
.step.active { display: block; animation: rise 0.45s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 28px;
}

.optional {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -20px 0 24px;
}

.choices { display: flex; gap: 12px; flex-wrap: wrap; }
.choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.choice {
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.choice:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(107, 9, 187, 0.12);
  transform: translateY(-1px);
}
.choice.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.field { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }

input[type="text"], input[type="email"], textarea {
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 9, 187, 0.12);
}

.btn {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.back {
  position: fixed;
  bottom: 28px;
  left: 36px;
  font: inherit;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.back:hover { color: var(--text); }

.error { color: var(--red); font-size: 0.9rem; margin: 0; }
.hidden { display: none !important; }

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  padding: 0;
  border: none;
}

.thanks { text-align: center; }
.check { width: 72px; height: 72px; margin-bottom: 20px; }
.check-circle {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 158;
  stroke-dashoffset: 158;
  animation: draw 0.7s ease forwards;
}
.check-mark {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw 0.45s ease 0.5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks p { color: var(--muted); line-height: 1.5; }
