:root {
  --bg: #FAFAF7;
  --bg-warm: #F3F0EA;
  --text: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --accent: #f9a500;
  --accent-light: #FEF3D6;
  --border: #E0DDD6;
  --navy: #201F24;

  --font-body: 'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, .serif {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

p {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawIn {
  from { opacity: 0; transform: scale(0.9); transform-origin: center; }
  to { opacity: 1; transform: scale(1); transform-origin: center; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

/* Screen Management */
.screen {
  display: none;
  min-height: 80vh;
  justify-content: center;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn:hover {
  background-color: #000;
  transform: translateY(-2px);
}

.btn:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-warm);
  color: var(--text);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--navy);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: #e89500;
  color: var(--navy);
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--navy);
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

/* Options for questions */
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  color: var(--text);
}

.option-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.option-btn.selected {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--navy);
  font-weight: 500;
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.question-indicator {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Questionnaire Footer */
.question-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
}

.btn-prev {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-prev:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============================================= */
/* RESULTS SCREEN                                 */
/* ============================================= */

.results-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(249, 165, 0, 0.3);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Score block */
.score-display {
  text-align: left;
}

.score-label {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.score-number {
  font-size: 5rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.score-number .score-total {
  font-size: 2rem;
  color: var(--text-light);
  margin-left: 6px;
}

.score-state {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.score-tagline {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

/* Radar */
.radar-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.radar-polygon {
  fill: var(--accent);
  fill-opacity: 0.2;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  animation: drawIn 1.2s ease-out 0.3s both;
}

/* Dimension Bars */
.dimensions-detail {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .dimensions-detail {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
}

.dim-bar-container {
  margin: 0;
}

.dim-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dim-label span:last-child {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
}

.dim-track {
  width: 100%;
  height: 6px;
  background-color: var(--bg-warm);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.dim-fill {
  height: 100%;
  background-color: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s ease-out 0.5s;
  border-radius: 3px;
}

.dim-qualitative {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0;
}

/* Qualitative quote */
.qualitative-quote {
  margin-top: 40px;
}

.quote-block {
  padding: 0 0 0 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  max-width: 680px;
}

/* ============================================= */
/* TEASER SECTION — 4 preview cards               */
/* ============================================= */

.teaser-section {
  margin-top: 56px;
  padding-top: 40px;
  padding: 40px 28px 32px;
  background: var(--bg-warm);
  border-radius: 14px;
}

.teaser-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.3;
}

.teaser-intro {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.preview-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: var(--font-display);
}

.preview-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-body);
}

.preview-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

.preview-card.locked .preview-blur {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(249,165,0,0.08), rgba(249,165,0,0.02));
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.preview-card.locked .preview-blur::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.35);
}

.preview-blur-content {
  font-size: 11px;
  color: var(--text-mid);
  line-height: 1.5;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.preview-row strong {
  color: var(--text);
}

.lock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--navy);
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
}

/* Email form inside teaser */
.email-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
}

.email-form h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 6px;
  font-weight: 400;
  color: var(--text);
}

.email-form-sub {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 18px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 540px) {
  .form-row {
    flex-direction: column;
  }
}

.form-row input {
  flex: 1;
}

.form-row button {
  white-space: nowrap;
}

.consent-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.consent-group input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.consent-text a {
  color: var(--text-mid);
  text-decoration: underline;
}

.form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 20px;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(32, 31, 36, 0.3);
  border-radius: 50%;
  border-top-color: var(--navy);
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}
