/* BeMooore Vision Quiz v2 - Mobile First */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #141420;
  --surface-2: #1e1e2e;
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --happiness: #f59e0b;
  --health: #10b981;
  --wealth: #4f46e5;
  --love: #ec4899;
  --vision: #8b5cf6;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}
.screen.active { display: flex; flex-direction: column; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px var(--accent-glow); } 50% { box-shadow: 0 0 40px var(--accent-glow); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.logo {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.logo span { color: var(--accent); }

.tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.welcome-headline {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.welcome-headline .highlight {
  background: linear-gradient(135deg, var(--happiness), var(--love));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 400px;
}

.btn-start {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: white;
  border: none;
  padding: 18px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  transition: var(--transition);
  animation: glow 2s infinite;
  width: 100%;
  max-width: 360px;
}
.btn-start:hover { transform: translateY(-2px); }
.btn-start:active { transform: scale(0.97); }

.welcome-stats {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  justify-content: center;
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

.welcome-legal {
  margin-top: 32px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.welcome-legal a { color: var(--text-muted); text-decoration: underline; }

/* ===== PROGRESS BAR ===== */
.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px;
}
.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.logo-mini { font-size: 0.9rem; font-weight: 800; }
.logo-mini span { color: var(--accent); }

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 36px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
  width: 0%;
}

/* ===== QUESTION CARD ===== */
.question-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s ease;
}

.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  align-self: flex-start;
}

.q-emoji { font-size: 3.5rem; margin-bottom: 20px; }

.q-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.q-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ===== CHOICE OPTIONS ===== */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 2px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-size: 1.1rem;
  color: var(--text);
  width: 100%;
  min-height: 64px;
}
.option-btn:hover { border-color: var(--accent); background: var(--surface-2); transform: translateX(4px); }
.option-btn:active { transform: scale(0.98); }
.option-btn.selected { border-color: var(--accent); background: rgba(139, 92, 246, 0.15); transform: translateX(4px); }
.option-icon { font-size: 1.8rem; flex-shrink: 0; }
.option-text { font-weight: 600; line-height: 1.3; }

/* ===== SCALE SLIDER ===== */
.scale-wrapper { margin-top: 8px; }

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  padding: 0 4px;
}
.scale-labels span {
  max-width: 45%;
  line-height: 1.3;
}
.scale-label-left { text-align: left; color: #ef4444; }
.scale-label-right { text-align: right; color: #22c55e; }

.scale-input {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
  outline: none;
  transition: var(--transition);
}
.scale-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.3), 0 0 0 4px var(--accent);
  border: 3px solid var(--accent);
}
.scale-input::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.3), 0 0 0 4px var(--accent);
  border: 3px solid var(--accent);
}

.scale-value-display {
  text-align: center;
  font-size: 5rem;
  font-weight: 900;
  margin: 24px 0;
  color: var(--accent);
  line-height: 1;
}

.scale-numbers {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  margin-bottom: 32px;
}
.scale-numbers span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
  cursor: pointer;
  padding: 4px 0;
  border-radius: 8px;
  transition: var(--transition);
}
.scale-numbers span:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.btn-continue {
  background: var(--accent);
  color: white;
  border: none;
  padding: 20px 0;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  margin-top: auto;
  min-height: 60px;
}
.btn-continue:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-continue:active { transform: scale(0.97); }
.btn-continue:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== DREAM TEXT INPUT ===== */
.dream-textarea {
  width: 100%;
  min-height: 180px;
  background: var(--surface);
  border: 2px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1.7;
  resize: vertical;
  transition: var(--transition);
}
.dream-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.dream-textarea::placeholder { color: var(--text-muted); font-style: italic; font-size: 1rem; }

.char-count {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 28px;
}

/* ===== PRAISE SCREEN ===== */
.praise-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.praise-emoji { font-size: 5rem; margin-bottom: 28px; animation: pulse 1s infinite; }

.praise-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 500px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
  max-width: 500px;
  text-align: left;
}
.value-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.value-card strong { color: var(--accent); font-weight: 700; }

.btn-next {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: white;
  border: none;
  padding: 16px 48px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  max-width: 360px;
}

/* ===== RESULTS SCREEN ===== */
.results-screen {
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}

.life-score {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--happiness), var(--health), var(--wealth), var(--love));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 16px 0;
}

.score-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.area-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 40px;
}

.area-score-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.area-score-card .area-emoji { font-size: 1.5rem; }
.area-score-card .area-name { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 4px 0; }
.area-score-card .area-val { font-size: 1.8rem; font-weight: 800; }

/* ===== VISION BOARD LOADING ===== */
.vision-loading {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.loading-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== EMAIL SCREEN ===== */
.email-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.vision-preview {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.email-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.email-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  max-width: 400px;
}

.email-form {
  width: 100%;
  max-width: 400px;
}

.input-email {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface);
  border: 2px solid var(--surface-2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 16px;
  transition: var(--transition);
}
.input-email:focus { outline: none; border-color: var(--accent); }
.input-email::placeholder { color: var(--text-muted); }

.btn-email {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: white;
  border: none;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 60px;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.privacy-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== APP CTA SCREEN ===== */
.app-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.app-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.app-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 400px;
}

.app-steps {
  text-align: left;
  width: 100%;
  max-width: 400px;
  margin-bottom: 40px;
}

.app-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.step-text { font-size: 0.9rem; line-height: 1.4; padding-top: 4px; }
.step-text strong { color: var(--accent); }

.store-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-store:hover { border-color: var(--accent); }
.btn-store .store-icon { font-size: 1.5rem; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.mt-auto { margin-top: auto; }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .screen { padding: 48px; max-width: 680px; margin: 0 auto; }
  .welcome-headline { font-size: 3rem; }
  .q-title { font-size: 2.2rem; }
  .q-emoji { font-size: 4rem; }
  .q-desc { font-size: 1.15rem; }
  .option-btn { padding: 24px 28px; font-size: 1.2rem; }
  .option-icon { font-size: 2rem; }
  .scale-value-display { font-size: 6rem; }
  .scale-labels { font-size: 1.15rem; }
  .scale-numbers span { font-size: 1.1rem; }
  .praise-text { font-size: 1.5rem; }
  .value-card p { font-size: 1.15rem; }
  .life-score { font-size: 7rem; }
  .dream-textarea { min-height: 220px; font-size: 1.2rem; }
  .btn-continue { font-size: 1.2rem; padding: 22px 0; }
  .btn-start { font-size: 1.2rem; padding: 22px 56px; }
  .btn-next { font-size: 1.1rem; padding: 20px 56px; }
}
