:root {
  --bg: #0a0a0f;
  --bg-elevated: #14141c;
  --border: #26262f;
  --text: #f5f5f7;
  --text-dim: #a3a3ad;
  --purple: #8b5cf6;
  --purple-dim: #6d28d9;
  --coral: #ff7a5c;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.screen {
  width: 100%;
  max-width: 560px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 14px;
}

.subhead {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--purple);
  color: #fff;
  width: 100%;
}

.btn-coral {
  background: var(--coral);
  color: #1a0d08;
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  width: 100%;
}

.small-note {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
}

.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-dim), var(--purple));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-label {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 24px;
}

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

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover {
  border-color: var(--purple);
  background: #181822;
}

.option.selected {
  border-color: var(--purple);
  background: #1d1730;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
}

.form-field input:focus {
  outline: none;
  border-color: var(--purple);
}

.score-hero {
  text-align: center;
  margin-bottom: 24px;
}

.score-number {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--purple);
}

.score-out-of {
  color: var(--text-dim);
  font-size: 14px;
}

.result-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
}

.result-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.category-name { font-size: 14px; }

.category-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-strong { background: rgba(139,92,246,0.18); color: var(--purple); }
.tag-decent { background: rgba(255,255,255,0.08); color: var(--text); }
.tag-needsAttention { background: rgba(255,122,92,0.16); color: var(--coral); }
.tag-needsClarityFirst { background: rgba(255,122,92,0.28); color: var(--coral); }

.cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.error-text {
  color: var(--coral);
  font-size: 13px;
  margin-top: 8px;
}
