@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;800;900&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --black:    #1C1C1C;
  --surface:  #202020;
  --surface2: #2A2A2A;
  --border:   #2A2A2A;
  --border2:  #3A3A3A;
  --red:      #F51515;
  --red-dk:   #C10F0F;
  --red-glow: rgba(245,21,21,0.16);
  --gold:     #C9960A;
  --gold-lt:  #F0B429;
  --white:    #FFFFFF;
  --muted:    #8F8F8F;
  --radius:   10px;
  --ease:     cubic-bezier(.4,0,.2,1);
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ── Top bar ── */
.topbar {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.brand-badge {
  width: 36px; height: 36px;
  background: var(--red); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 14px; color: var(--white); letter-spacing: 1px;
}

.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 15px; color: var(--white); letter-spacing: 0.5px; line-height: 1.1;
}

.brand-name span { display: block; font-size: 10px; font-weight: 500; color: var(--gold); letter-spacing: 2px; }

.topbar-tag { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }

/* ── Progress ── */
.progress-wrap { height: 3px; background: var(--border); }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold-lt));
  transition: width 0.5s var(--ease); width: 0%;
}

/* ── Main ── */
.main {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px 60px;
}

.quiz-shell { width: 100%; max-width: 640px; }

/* ── Intro ── */
.intro { padding: 16px 0 8px; }

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

@media (max-width: 540px) {
  .intro-split { grid-template-columns: 1fr; gap: 24px; }
}

.intro-left {}

.intro-kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 3px; margin-bottom: 14px;
  text-transform: uppercase;
}

.intro-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(40px, 9vw, 64px);
  line-height: 0.95; text-transform: uppercase;
  margin-bottom: 16px; color: var(--white);
}

.intro-h em { font-style: normal; color: var(--red); display: block; }

.intro-desc {
  font-size: 15px; color: #999; line-height: 1.65;
  margin-bottom: 24px; max-width: 320px;
}

.intro-right {
  display: flex; flex-direction: column; gap: 10px;
}

/* Identity statement cards on intro */
.id-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px; color: #aaa; line-height: 1.4;
  position: relative; padding-left: 36px;
}

.id-card::before {
  content: '"';
  position: absolute; left: 12px; top: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 22px; color: var(--red);
  line-height: 1;
}

.intro-meta {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px; flex-wrap: wrap;
}

.intro-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); font-weight: 500;
}

.btn-start {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); border: none; border-radius: var(--radius);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 20px; padding: 15px 32px;
  cursor: pointer; letter-spacing: 0.5px; text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-start:hover {
  background: var(--red-dk); transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--red-glow);
}

.intro-reassure { margin-top: 12px; font-size: 12px; color: #3a3a3a; }

/* ── Steps ── */
.step-screen { display: none; }
.step-screen.active { display: block; }

.step-counter { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.step-counter span { color: var(--gold); }

.step-q {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(24px, 5vw, 36px);
  line-height: 1.1; color: var(--white); margin-bottom: 8px;
}

.step-hint { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

/* Statement-style options (large) */
.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.opt {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  font-size: 15px; font-weight: 500; color: #bbb;
  line-height: 1.45; text-align: left;
  user-select: none; -webkit-tap-highlight-color: transparent;
}

.opt:hover { border-color: var(--red); background: #2a1414; color: var(--white); }
.opt.selected { border-color: var(--red); background: #2a1414; color: var(--white); }

.opt-box {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid #3a3a3a; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s var(--ease); background: transparent;
  margin-top: 1px;
}

.opt.selected .opt-box { background: var(--red); border-color: var(--red); }

.opt-check { opacity: 0; transition: opacity 0.15s; }
.opt.selected .opt-check { opacity: 1; }

/* ── Nav ── */
.step-nav { display: flex; gap: 10px; align-items: center; }

.btn-back {
  background: transparent; border: 1.5px solid var(--border2);
  border-radius: var(--radius); color: var(--muted);
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600;
  padding: 12px 20px; cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}

.btn-back:hover { color: var(--white); border-color: #555; }

.btn-next {
  flex: 1; background: var(--red); border: none; border-radius: var(--radius);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 18px; padding: 13px 24px;
  cursor: pointer; letter-spacing: 0.5px; text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  opacity: 0.35; pointer-events: none;
}

.btn-next.enabled { opacity: 1; pointer-events: all; }
.btn-next.enabled:hover { background: var(--red-dk); transform: translateY(-1px); }

.err { font-size: 12px; color: var(--red); margin-top: -20px; margin-bottom: 16px; display: none; font-weight: 600; }
.err.show { display: block; }

/* ── Email gate ── */
.email-gate { display: none; }
.email-gate.active { display: block; }

.gate-preview {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px; margin-bottom: 24px;
  position: relative; overflow: hidden;
}

.gate-preview::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; background: linear-gradient(transparent, var(--surface2));
}

.gate-preview-label { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }

.preview-lines { display: flex; flex-direction: column; gap: 8px; }
.pl { height: 10px; background: var(--border2); border-radius: 99px; }
.pl.gold { background: var(--gold); opacity: 0.35; width: 45%; }
.pl.long { width: 95%; }
.pl.med { width: 75%; }
.pl.short { width: 50%; }

.gate-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(28px, 6vw, 44px);
  line-height: 1.05; text-transform: uppercase; margin-bottom: 10px;
}

.gate-h em { font-style: normal; color: var(--gold-lt); }

.gate-sub { font-size: 14px; color: #999; line-height: 1.65; margin-bottom: 24px; }

.field-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .field-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }

.field input {
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: var(--radius); color: var(--white);
  font-family: 'Barlow', sans-serif; font-size: 15px;
  padding: 13px 14px; outline: none; transition: border-color 0.2s; width: 100%;
}

.field input:focus { border-color: var(--red); }
.field input::placeholder { color: #3a3a3a; }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  border: none; border-radius: var(--radius); color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 20px; padding: 16px 24px;
  cursor: pointer; letter-spacing: 0.5px; text-transform: uppercase;
  transition: all 0.2s; box-shadow: 0 4px 24px rgba(201,150,10,0.2);
}

.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(240,180,41,0.3); }

.gate-fine { font-size: 11px; color: #3a3a3a; text-align: center; margin-top: 12px; line-height: 1.6; }

/* ── Loading ── */
.loading-screen { display: none; text-align: center; padding: 40px 0; }
.loading-screen.active { display: block; }

.loader-ring {
  width: 60px; height: 60px;
  border: 3px solid var(--border2); border-top-color: var(--red);
  border-radius: 50%; animation: spin 0.85s linear infinite;
  margin: 0 auto 22px;
}

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

.loading-h { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; color: var(--white); margin-bottom: 8px; }
.loading-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }
.loading-steps { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

.loading-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); padding: 10px 14px;
  background: var(--surface); border-radius: 8px; border: 1px solid var(--border);
  transition: all 0.4s;
}

.loading-step.done { color: var(--white); border-color: var(--red); }
.loading-step.active-step { color: var(--gold-lt); border-color: var(--gold); }

.ls-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); flex-shrink: 0; transition: background 0.3s; }
.loading-step.done .ls-dot { background: var(--red); }
.loading-step.active-step .ls-dot { background: var(--gold-lt); }

/* ── Result ── */
.result-screen { display: none; }
.result-screen.active { display: block; }

.result-wrap { text-align: center; padding: 16px 0 32px; }

.sent-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--red), #6a0a0d);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 20px;
}

.result-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(34px, 7vw, 52px);
  text-transform: uppercase; line-height: 1.0; margin-bottom: 12px;
}

.result-h em { font-style: normal; color: var(--gold-lt); }

.result-sub { font-size: 15px; color: #999; line-height: 1.65; max-width: 460px; margin: 0 auto 28px; }

.result-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  text-align: left; margin-bottom: 14px;
}

.result-card-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.result-card p { font-size: 13px; color: #bbb; line-height: 1.65; }
.result-card strong { color: var(--gold-lt); font-weight: 600; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 16px 24px; text-align: center; font-size: 11px; color: #555; }

/* ── Transitions ── */
.fade-enter { animation: fadeIn 0.35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.field select{width:100%;background:var(--surface,#161616);border:1.5px solid var(--border2,#333);border-radius:var(--radius,8px);color:var(--white,#fff);font-family:inherit;font-size:15px;padding:13px 14px;outline:none;-webkit-appearance:none;appearance:none;}
.field input.invalid,.field select.invalid{border-color:var(--red,#F51515) !important;}
