/* ── TOKENS ── */
:root {
  --abyssal:    #1C2B35;
  --deep:       #4A5C6B;
  --chalk:      #F5F2EE;
  --sand:       #E8E2D8;
  --mist:       #9EA8B2;
  --lacquer:    #6B2737;
  --cinnabar:   #9B3A40;
  --gold:       #B8955A;
  --pale-gold:  #D4BA7E;
  --warm:       #C4B49A;

  --bg:         var(--abyssal);
  --surface:    rgba(74,92,107,.14);
  --t1:         var(--chalk);
  --t2:         var(--mist);
  --t3:         rgba(158,168,178,.4);
  --gold-dim:   rgba(184,149,90,.10);
  --gold-line:  rgba(184,149,90,.22);
  --sand-line:  rgba(232,226,216,.10);

  --serif: 'Cormorant Garamond', Georgia, 'Songti SC', serif;
  --sans:  'DM Sans', 'PingFang SC', system-ui, sans-serif;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }

/* ── PROGRESS ── */
#prog {
  position: fixed; top: 0; left: 0; right: 0;
  height: 1px; background: rgba(184,149,90,.1);
  z-index: 100; display: none;
}
#prog-fill {
  height: 100%; background: var(--gold);
  transition: width .45s ease; width: 0%;
}

/* ── SCREENS ── */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
  overflow-y: auto;
}
.screen.active { opacity: 1; pointer-events: all; }

/* ══ INTRO ══ */
.intro-inner {
  max-width: 520px; width: 100%; text-align: center;
}
.intro-brand {
  font-size: 9px; font-weight: 400;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 48px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.intro-brand::before, .intro-brand::after {
  content: ''; width: 28px; height: 1px; background: var(--gold-line);
}
.intro-title {
  font-family: var(--serif);
  font-size: clamp(30px, 5.5vw, 50px);
  font-weight: 300; line-height: 1.18;
  letter-spacing: -.01em;
}
.intro-title em {
  display: block; font-style: italic;
  color: var(--mist); font-size: .56em;
  letter-spacing: .03em; margin-top: 12px;
}
.intro-rule {
  width: 1px; height: 40px;
  background: var(--gold-line); margin: 36px auto;
}
.intro-desc {
  font-size: 14.5px; color: var(--t2); line-height: 1.9;
  max-width: 380px; margin: 0 auto 36px;
}
.intro-meta {
  display: flex; gap: 6px 24px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 52px;
}
.intro-meta span {
  font-size: 10px; color: var(--t3);
  letter-spacing: .1em; text-transform: uppercase;
}
.intro-meta span::before {
  content: '—'; margin-right: 7px;
  color: var(--gold); opacity: .5;
}

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--chalk);
  padding: 13px 30px;
  font-size: 10px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: all .22s ease; border-radius: 1px;
}
.btn:hover { border-color: var(--gold); color: var(--pale-gold); }

.btn-next {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--sand-line);
  color: var(--t3);
  padding: 11px 26px;
  font-size: 10px; font-weight: 400;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: default; border-radius: 1px;
  transition: all .22s ease; pointer-events: none;
}
.btn-next.on {
  border-color: var(--gold-line); color: var(--t2);
  pointer-events: all; cursor: pointer;
}
.btn-next.on:hover { border-color: var(--gold); color: var(--pale-gold); }

.btn-back {
  background: none; border: none;
  color: var(--t3); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; padding: 8px 0;
  transition: color .2s;
}
.btn-back:hover { color: var(--t2); }
.btn-back:disabled { opacity: .2; cursor: default; }

/* ══ QUESTION ══ */
.q-wrap { max-width: 580px; width: 100%; }

.q-meta {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 36px;
}
.q-idx { font-size: 10px; color: var(--t3); letter-spacing: .12em; }
.q-rule { flex: 1; height: 1px; background: var(--sand-line); }
.q-cat {
  font-size: 10px; color: var(--gold);
  letter-spacing: .15em; text-transform: uppercase; opacity: .7;
}

.q-text {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 300; line-height: 1.55;
  margin-bottom: 16px; letter-spacing: -.01em;
  color: var(--chalk);
}

.q-hint {
  font-size: 10px; color: var(--t3);
  letter-spacing: .08em; margin-bottom: 24px;
}
.q-hint.hidden { display: none; }

.opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }

.opt {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--sand-line);
  border-radius: 1px; cursor: pointer;
  transition: all .18s ease;
  background: transparent; text-align: left;
  color: var(--t2); width: 100%;
}
.opt:hover { border-color: var(--gold-line); color: var(--t1); background: var(--surface); }
.opt.sel { border-color: var(--gold); color: var(--chalk); background: var(--gold-dim); }
.opt.dim { opacity: .35; }

.opt-dot {
  width: 15px; height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%; flex-shrink: 0;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
  opacity: .35; transition: all .18s ease;
}
.opt.sel .opt-dot {
  background: var(--gold); border-color: var(--gold); opacity: 1;
}
.opt.sel .opt-dot::after {
  content: ''; width: 5px; height: 5px;
  background: var(--abyssal); border-radius: 50%;
}
.opt-txt { font-size: 13.5px; line-height: 1.65; font-weight: 300; }

.q-nav {
  display: flex; align-items: center;
  justify-content: space-between;
}

/* ══ CALC ══ */
.calc-inner { text-align: center; }
.calc-lbl {
  font-size: 10px; letter-spacing: .25em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 18px; opacity: .7;
}
.calc-txt {
  font-family: var(--serif); font-size: 24px;
  font-weight: 300; color: var(--mist);
}

/* ══ RESULTS ══ */
#s-result {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.r-wrap {
  width: 100%; max-width: 660px;
  margin: 0 auto; padding: 80px 32px 120px;
}

/* header */
.r-hdr {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--sand-line);
  margin-bottom: 32px;
}
.r-brand {
  font-size: 9px; letter-spacing: .3em;
  color: var(--t3); text-transform: uppercase; margin-bottom: 20px;
}
.r-headline {
  font-family: var(--serif);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 300; line-height: 1.28;
  margin-bottom: 22px; letter-spacing: -.02em;
  color: var(--chalk);
}
.r-tag {
  display: inline-block; font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--t3); border: 1px solid var(--sand-line);
  padding: 5px 14px; border-radius: 1px;
  margin-right: 8px; margin-bottom: 8px;
}
.r-tag.gold { border-color: var(--gold-line); color: var(--gold); }
.r-rarity {
  font-size: 11px; color: var(--t3);
  letter-spacing: .04em; margin-top: 14px;
  font-style: italic;
}

/* personalized intro */
.r-intro {
  font-size: 14px; color: var(--t2);
  line-height: 1.88; margin-bottom: 48px;
  padding: 22px 24px;
  border-left: 1px solid var(--gold-line);
  background: rgba(184,149,90,.04);
}
.r-intro strong { color: var(--chalk); font-weight: 400; }

/* section */
.r-sec { margin-bottom: 48px; }
.sec-head {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 20px;
}
.sec-n { font-size: 9px; color: var(--gold); letter-spacing: .2em; font-weight: 400; }
.sec-t { font-size: 9px; color: var(--t3); letter-spacing: .25em; text-transform: uppercase; }
.sec-rule { flex: 1; height: 1px; background: var(--sand-line); }

.gap-desc {
  font-family: var(--serif);
  font-size: 17px; font-weight: 300;
  line-height: 1.88; color: var(--mist); font-style: italic;
}

/* bullets */
.blist { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.blist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; color: var(--t2); line-height: 1.65;
}
.blist.risk li::before {
  content: '↑'; color: var(--cinnabar); opacity: .75;
  flex-shrink: 0; font-size: 10px; margin-top: 4px;
}
.blist.strength li::before {
  content: '→'; color: var(--gold); opacity: .7;
  flex-shrink: 0; font-size: 10px; margin-top: 4px;
}
.blist.steps { counter-reset: steps; }
.blist.steps li { counter-increment: steps; }
.blist.steps li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--gold); opacity: .6;
  flex-shrink: 0; font-size: 10px;
  letter-spacing: .08em; margin-top: 4px;
  font-family: var(--sans);
}

/* build box */
.build-box {
  border: 1px solid var(--sand-line);
  padding: 22px 26px; border-radius: 1px;
}
.build-lbl {
  font-size: 9px; color: var(--t3);
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 9px;
}
.build-txt { font-size: 14.5px; color: var(--chalk); line-height: 1.68; font-weight: 300; }

/* first step callout */
.firststep-box {
  border: 1px solid var(--gold);
  padding: 26px 30px; border-radius: 1px;
  background: rgba(184,149,90,.06);
  margin-bottom: 40px;
}
.firststep-lbl {
  font-size: 9px; color: var(--gold);
  letter-spacing: .28em; text-transform: uppercase;
  margin-bottom: 14px;
}
.firststep-txt {
  font-family: var(--serif);
  font-size: 17px; color: var(--chalk);
  line-height: 1.78; font-weight: 300;
}
.firststep-note {
  margin-top: 12px; font-size: 11.5px;
  color: var(--t3); font-style: italic;
  line-height: 1.6;
}

/* score bars */
.score-grid { display: flex; flex-direction: column; gap: 14px; }
.score-row { display: flex; align-items: center; gap: 14px; }
.score-lbl { font-size: 11px; color: var(--t2); width: 100px; flex-shrink: 0; }
.score-track { flex: 1; height: 1px; background: var(--sand-line); overflow: hidden; }
.score-bar { height: 100%; width: 0%; transition: width 1.1s ease .25s; }
.score-val { font-size: 10px; color: var(--t3); width: 30px; text-align: right; flex-shrink: 0; }

/* lead capture */
.capture-box {
  border: 1px solid var(--gold-line);
  padding: 28px 32px; border-radius: 1px;
  background: var(--gold-dim); margin-bottom: 32px;
}
.capture-lbl {
  font-size: 9px; color: var(--gold);
  letter-spacing: .25em; text-transform: uppercase; margin-bottom: 10px;
}
.capture-title {
  font-family: var(--serif); font-size: 22px;
  font-weight: 300; color: var(--chalk);
  margin-bottom: 4px; line-height: 1.3;
}
.capture-sub { font-size: 12.5px; color: var(--t2); margin-bottom: 20px; font-weight: 300; }
.capture-form { display: flex; gap: 8px; flex-wrap: wrap; }
.capture-form input[type="email"] {
  flex: 1; min-width: 200px;
  height: 42px; padding: 0 14px;
  background: rgba(28,43,53,.6);
  border: 1px solid var(--sand-line);
  border-radius: 1px; color: var(--chalk);
  font: inherit; font-size: 13px; outline: none;
  transition: border-color .2s;
}
.capture-form input[type="email"]:focus { border-color: var(--gold-line); }
.capture-form input[type="email"]::placeholder { color: var(--t3); }
.capture-note {
  margin-top: 10px; font-size: 12px;
  display: none;
}
.capture-note.success { color: var(--gold); display: block; }
.capture-note.error { color: var(--cinnabar); display: block; }

/* cta */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0; }
.btn-subtle {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--sand-line);
  color: var(--t3); padding: 11px 22px;
  font-size: 10px; font-weight: 400;
  letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; border-radius: 1px; transition: all .22s ease;
}
.btn-subtle:hover { border-color: var(--gold-line); color: var(--t2); }

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .r-wrap { padding: 56px 20px 80px; }
  .capture-box { padding: 20px 18px; }
  .capture-form { flex-direction: column; }
  .capture-form input[type="email"] { width: 100%; }
  .score-lbl { width: 76px; font-size: 10.5px; }
  .intro-meta { flex-direction: column; gap: 4px; }
  .q-text { font-size: 18px; }
  .r-intro { padding: 16px 18px; }
  .firststep-box { padding: 20px 18px; }
}
