/* ============================================
   THE TRANSITION ASSESSMENT — STYLE SYSTEM
   Palette:
     --bg:        #15171A  (charcoal black)
     --surface:   #1D2024  (card surface)
     --line:      #2B2F34  (hairline borders)
     --text:      #F3F1EC  (off-white)
     --muted:     #9B9D9F  (muted gray)
     --accent:    #FF4B1F  (hot orange — energy/warning-tape)
     --accent-2:  #3ED598  (green — reserved for "All Systems Go")
   Type:
     Display: 'Bebas Neue' (condensed, industrial)
     Body:    'Inter'
   ============================================ */

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

:root {
  --bg: #15171A;
  --surface: #1D2024;
  --line: #2B2F34;
  --text: #F3F1EC;
  --muted: #9B9D9F;
  --accent: #FF4B1F;
  --accent-2: #3ED598;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============ SCAN BAR (signature element) ============ */
.scan-bar {
  width: 100%;
  max-width: 640px;
  display: flex;
  gap: 6px;
  padding: 20px 20px 0 20px;
}

.scan-segment {
  flex: 1;
  position: relative;
}

.scan-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.scan-fill-track {
  height: 4px;
}

.scan-segment::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.scan-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.scan-segment.filled .scan-label {
  color: var(--accent);
}

/* ============ STAGE / SCREENS ============ */
.stage {
  width: 100%;
  max-width: 640px;
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
  animation: fadeIn 0.35s ease;
}

.screen.active {
  display: block;
}

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

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .scan-fill { transition: none; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
}

.card--center {
  text-align: center;
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-headline--small {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}

.body-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.body-text:last-child {
  margin-bottom: 0;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #15171A;
}

.btn-primary:hover {
  background: #ff6338;
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============ QUESTION / OPTIONS ============ */
.q-counter {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.q-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

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

.option-btn {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

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

.option-btn:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.option-btn.selected {
  border-color: var(--accent);
  background: rgba(255, 75, 31, 0.1);
}

/* ============ EMAIL FORM ============ */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-input {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.email-input:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

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

/* ============ LOADER ============ */
.loader {
  width: 48px;
  height: 48px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 24px auto;
  animation: spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .loader { animation: spin 1.6s linear infinite; }
}

/* ============ RESULT ============ */
.result-modifier {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: italic;
  color: var(--muted);
}

.result-transition {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* ============ MOBILE ============ */
@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
    border-radius: 12px;
  }
  .scan-bar {
    padding: 16px 16px 0 16px;
  }
}
