/* Luminal B2C Quiz — styles
   Design tokens sourced from the Luminal brand palette. */

:root {
  --color-teal: #1b7a7e;
  --color-teal-light: #2a9fa4;
  --color-teal-tint: rgba(27, 122, 126, 0.08);
  --color-gold: #d4a037;
  --color-gold-bright: #f5b844;
  --color-terracotta: #b5643a;

  --neutral-900: #111111;
  --neutral-800: #2b2b2b;
  --neutral-700: #4a4a4a;
  --neutral-600: #6e6e6e;
  --neutral-500: #8c8c8c;
  --neutral-400: #b5b5b5;
  --neutral-300: #d3d3d3;
  --neutral-200: #e6e6e6;
  --neutral-100: #f2f2f2;
  --neutral-000: #ffffff;

  --font-display: "Fredoka", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 12px rgba(17, 17, 17, 0.06);
  --shadow-card-hover: 0 4px 20px rgba(17, 17, 17, 0.09);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--neutral-100);
  color: var(--neutral-900);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 64px;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0;
}

p { margin: 0; line-height: 1.6; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

#app {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Brand mark ---------- */

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark img { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }

.brand-mark span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-teal);
}

.brand-mark.small { margin-bottom: 20px; }
.brand-mark.small img { width: 24px; height: 24px; }
.brand-mark.small span { font-size: 15px; }

/* ---------- Screen / card shell ---------- */

.screen {
  width: 100%;
  background: var(--neutral-000);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.screen.compact { padding: 28px 32px; gap: 16px; }

@media (max-width: 520px) {
  .screen { padding: 28px 20px; border-radius: var(--radius-md); }
}

/* Screen transition: slide-fade */
.screen-enter {
  animation: slideFadeIn var(--transition-base) ease both;
}
.screen-exit {
  animation: slideFadeOut var(--transition-fast) ease both;
}
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideFadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-24px); }
}

/* ---------- Landing ---------- */

.landing-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 350ms ease forwards;
}
.landing-stagger > *:nth-child(1) { animation-delay: 0ms; }
.landing-stagger > *:nth-child(2) { animation-delay: 100ms; }
.landing-stagger > *:nth-child(3) { animation-delay: 200ms; }
.landing-stagger > *:nth-child(4) { animation-delay: 300ms; }
.landing-stagger > *:nth-child(5) { animation-delay: 380ms; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.headline {
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
}
.headline .accent { color: var(--color-teal); }

@media (max-width: 520px) {
  .headline { font-size: 26px; }
}

.body-copy {
  font-size: 17px;
  color: var(--neutral-700);
  text-align: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tag {
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.footnote {
  font-size: 13px;
  color: var(--neutral-500);
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  transition: background var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
  width: 100%;
}
.btn-primary:hover:not(:disabled) { background: var(--color-teal-light); }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  width: 100%;
}
.btn-outline:hover { background: var(--color-teal-tint); }

.btn-text {
  color: var(--neutral-600);
  font-weight: 500;
  padding: 10px 4px;
}
.btn-text:hover { color: var(--neutral-800); }

.btn-cta-gold {
  background: var(--color-gold-bright);
  color: var(--neutral-900);
  width: 100%;
  font-size: 17px;
}
.btn-cta-gold:hover { background: var(--color-gold); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.nav-row .btn-primary { width: auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Progress + legend ---------- */

.progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.progress-label {
  font-size: 13px;
  color: var(--neutral-600);
  font-weight: 500;
}
.progress-label .bonus-tag {
  background: var(--color-gold-bright);
  color: var(--neutral-900);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}
.progress-track {
  height: 6px;
  background: var(--neutral-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--color-teal);
  border-radius: var(--radius-pill);
  transition: width var(--transition-base);
}

.scale-legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.scale-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.scale-chip .num {
  background: var(--color-teal);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Question ---------- */

.question-text {
  font-size: 23px;
  line-height: 1.4;
  color: var(--neutral-900);
  font-weight: 500;
}

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

.pill-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--neutral-300);
  background: var(--neutral-000);
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral-800);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform 100ms ease;
}
.pill-option:hover { border-color: var(--neutral-500); }
.pill-option.selected {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: var(--neutral-900);
  transform: scale(0.99);
}
.pill-option .opt-num {
  font-weight: 700;
  min-width: 18px;
}

/* ---------- Choice cards (role select, area choice, balanced choice) ---------- */

.choice-cards {
  display: flex;
  gap: 12px;
}
@media (max-width: 520px) {
  .choice-cards { flex-direction: column; }
}
.choice-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--neutral-200);
  background: var(--neutral-000);
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral-800);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.choice-card:hover { border-color: var(--neutral-400); }
.choice-card.selected {
  border-color: var(--color-teal);
  background: var(--color-teal-tint);
}
.choice-card .check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.choice-card.selected .check { display: flex; }
.choice-card svg { width: 28px; height: 28px; color: var(--color-teal); }

/* ---------- Processing ---------- */

.processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
  text-align: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--neutral-200);
  border-top-color: var(--color-teal);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing p { color: var(--neutral-700); font-size: 15px; max-width: 360px; }

/* ---------- Result preview / eyebrow ---------- */

.eyebrow {
  display: inline-block;
  align-self: center;
  background: var(--neutral-100);
  color: var(--color-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.result-headline {
  font-size: 26px;
  text-align: center;
  line-height: 1.35;
}
.result-headline .area-name { color: var(--color-teal); }

.fade-up-once {
  animation: fadeUp 400ms ease both;
}

/* ---------- Lead form ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
}
.field input[type="text"],
.field input[type="email"] {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--neutral-300);
  outline: none;
  transition: border-color var(--transition-fast);
}
.field input:focus { border-color: var(--color-teal); }
.field .error {
  font-size: 12px;
  color: var(--color-terracotta);
  display: none;
}
.field.invalid input { border-color: var(--color-terracotta); }
.field.invalid .error { display: block; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-teal);
  flex-shrink: 0;
}
.consent-row label { font-size: 13px; color: var(--neutral-700); line-height: 1.5; }

/* ---------- Full result page ---------- */

.result-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-section h2 {
  font-size: 20px;
  color: var(--color-teal);
}
.result-section p { color: var(--neutral-800); font-size: 15px; white-space: pre-line; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bullet-list li {
  padding-left: 18px;
  position: relative;
  color: var(--neutral-700);
  font-size: 15px;
}
.bullet-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--neutral-500);
}

.callout {
  border-radius: var(--radius-md);
  padding: 22px 24px;
  background: var(--neutral-000);
  border: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.callout-strength { border-left: 4px solid var(--color-gold-bright); }
.callout-action { border-left: 4px solid var(--color-teal); }
.callout-ai { background: var(--neutral-100); border-left: none; }

.callout .callout-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-500);
}
.callout h3 { font-size: 17px; }

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.steps-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--neutral-800);
}
.steps-list .step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-highlight {
  background: var(--color-teal-tint);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--neutral-900);
  font-weight: 500;
}

.freedom-room-band {
  background: var(--color-teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.freedom-room-band h2 { color: #fff; font-size: 21px; }
.freedom-room-band p { color: rgba(255,255,255,0.9); font-size: 15px; white-space: pre-line; }
.freedom-room-band .btn-cta-gold { max-width: 280px; align-self: center; }

.limitations {
  font-size: 12.5px;
  color: var(--neutral-500);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--neutral-200);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
