/* Soul Quiz — Enneagramm Lead Magnet für Faith.Science */

:root {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-hover: #252540;
  --text: #e0e0e0;
  --text-muted: #8888aa;
  --accent: #7b68ee;
  --accent-glow: rgba(123, 104, 238, 0.3);
  --type-color: #7b68ee;
  --border: #2a2a40;
  --radius: 12px;
  --max-width: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
}

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hidden { display: none !important; }

/* ===== Start Screen ===== */

.start-header {
  text-align: center;
  margin-bottom: 2rem;
}

.start-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.start-header .subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.start-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.start-info p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.start-info p:last-child { margin-bottom: 0; }

.start-info strong { color: var(--text); }

.start-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== Buttons ===== */

.btn-primary {
  display: block;
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #6c5ce7;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  margin-top: 0.5rem;
}

.btn-ghost:hover { color: var(--text); }

/* ===== Progress Bar ===== */

.progress-container {
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ===== Question ===== */

.question-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.question-text {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2.5rem;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

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

/* ===== Likert Scale (Horizontal Slider) ===== */

.likert-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.likert-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 1.5rem 0;
}

.likert-track::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
  transform: translateY(-50%);
}

.likert-dot-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.likert-dot-btn:hover {
  border-color: var(--accent);
  transform: scale(1.15);
}

.likert-dot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: scale(1.2);
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.likert-value-label {
  text-align: center;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  min-height: 1.5em;
  margin-top: 0.25rem;
}

/* ===== Navigation ===== */

.quiz-nav {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ===== Email Screen ===== */

.email-screen {
  text-align: center;
}

.email-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.email-screen h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.email-screen p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.form-input {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== Result Screen ===== */

.result-screen {
  animation: fadeIn 0.5s ease;
}

.result-greeting {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-hero {
  text-align: center;
  padding: 2rem 0;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.result-type-name {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--type-color);
}

.result-type-number {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.result-wing {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
}

/* Result Sections */

.result-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.result-section h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.result-section p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.result-section ul {
  list-style: none;
  padding: 0;
}

.result-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}

.result-section li:last-child { border-bottom: none; }

.result-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Score Chart */

.score-chart {
  margin-top: 1.5rem;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.chart-bar.main-type {
  font-weight: 600;
}

.chart-label {
  width: 2.5rem;
  font-size: 0.85rem;
  text-align: right;
  flex-shrink: 0;
}

.chart-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.chart-value {
  width: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* CTA */

.result-cta {
  text-align: center;
  padding: 2rem 0;
}

.result-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== Footer ===== */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ===== Responsive ===== */

@media (max-width: 480px) {
  html { font-size: 16px; }
  .container { padding: 1.25rem 1rem; }
  .start-header h1 { font-size: 2rem; }
  .start-header .subtitle { font-size: 1.15rem; }
  .question-text { font-size: 1.25rem; }
  .start-features { grid-template-columns: 1fr; }
  .result-emoji { font-size: 3rem; }
  .result-type-name { font-size: 1.8rem; }
  .likert-dot-btn { width: 38px; height: 38px; }
}
