/* ============================================================
   AscendQ v2 — quiz + intake + results layout
   ============================================================ */

/* --- progress + step header --- */
.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.quiz-head .gold { color: var(--gold); }

.progress {
  background: #1A1B1D;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  height: 100%;
  width: 5%;
  transition: width .35s cubic-bezier(.2,.7,.2,1);
  border-radius: 3px;
}

/* --- question card --- */
.q-card {
  background: rgba(15,16,17,0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 520px) { .q-card { min-height: 420px; padding: 26px 20px; } }

.q { display: none; animation: qIn .35s cubic-bezier(.2,.7,.2,1) both; flex: 1; }
.q.active { display: flex; flex-direction: column; }
@keyframes qIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.q-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(22px, 4.2vw, 28px);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
  min-height: 64px;
}
.q-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* --- MC options --- */
.opts { display: flex; flex-direction: column; gap: 9px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(232,228,220,0.04);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, box-shadow .35s ease;
}
.opt:hover { border-color: var(--border-strong); background: rgba(232,228,220,0.06); }
.opt.selected {
  border-color: var(--gold);
  background: rgba(221,185,116,0.10);
  box-shadow: 0 0 0 1px rgba(221,185,116,0.18), 0 0 18px -8px rgba(221,185,116,0.35);
  animation: optGlow 1.1s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes optGlow {
  0%   { box-shadow: 0 0 0 1px rgba(221,185,116,0.10), 0 0 0 0 rgba(221,185,116,0); }
  55%  { box-shadow: 0 0 0 1px rgba(221,185,116,0.22), 0 0 22px -6px rgba(221,185,116,0.42); }
  100% { box-shadow: 0 0 0 1px rgba(221,185,116,0.18), 0 0 18px -8px rgba(221,185,116,0.30); }
}
.opt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-faint);
  flex-shrink: 0;
  transition: border-color .25s, background .25s, box-shadow .35s;
}
.opt.selected .opt-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 6px rgba(221,185,116,0.45);
}
.opt-label { flex: 1; }

/* --- Slider --- */
.slider-q { padding: 8px 4px 4px; }
.slider-display { text-align: center; margin-bottom: 18px; }
.slider-num {
  font-family: var(--ff-serif);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.slider-num.bump { transform: scale(1.08); }
.slider-unit {
  display: block;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-top: 6px;
}
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; height: 36px; }
input[type=range]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 40%, transparent 75%, rgba(255,255,255,0.06) 100%),
    linear-gradient(90deg,
      #4A3C20 0%,
      #8D7036 calc(var(--p,50%) * 0.35),
      #C19B4C calc(var(--p,50%) * 0.65),
      var(--gold) calc(var(--p,50%) * 0.85),
      var(--gold-light) var(--p,50%),
      #1A1B1D var(--p,50%),
      #1A1B1D 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.65), 0 0 0 1px rgba(15,16,17,0.5);
}
input[type=range]::-moz-range-track {
  height: 10px; border-radius: 5px; background: #1A1B1D;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.65), 0 0 0 1px rgba(15,16,17,0.5);
}
input[type=range]::-moz-range-progress {
  height: 10px; border-radius: 5px 0 0 5px;
  background: linear-gradient(90deg, #4A3C20 0%, #8D7036 35%, #C19B4C 65%, var(--gold) 85%, var(--gold-light) 100%);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 45%),
              linear-gradient(180deg, #F8F5EC 0%, #D9D2BE 100%);
  border: 1px solid rgba(0,0,0,0.55);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 0 0 3px rgba(15,16,17,0.7),
    0 0 14px -2px rgba(221,185,116,0.30);
  cursor: grab;
  margin-top: -6px;
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease;
}
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.05); box-shadow: 0 5px 12px rgba(0,0,0,0.6), 0 0 0 3px rgba(15,16,17,0.7), 0 0 20px -2px rgba(244,215,150,0.45); }
input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #F8F5EC 0%, #D9D2BE 100%);
  border: 1px solid rgba(0,0,0,0.55);
  box-shadow: 0 4px 10px rgba(0,0,0,0.55), 0 0 0 3px rgba(15,16,17,0.7);
  cursor: grab;
}
.range-zones {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.range-zones span { position: relative; padding-top: 8px; }
.range-zones span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 5px;
  background: rgba(232,228,220,0.18);
  transform: translateX(-50%);
}

/* --- Stepper --- */
.stepper-q { padding: 8px 4px; }
.stepper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}
.stp-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(232,228,220,0.04);
  color: var(--gold);
  font-family: var(--ff-serif);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stp-btn:hover { border-color: var(--gold); background: rgba(221,185,116,0.08); }
.stp-display { min-width: 120px; text-align: center; }
.stp-num {
  font-family: var(--ff-serif);
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.stp-num.bump { transform: scale(1.08); }
.stp-unit {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-top: 4px;
}
.stp-presets {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.stp-preset {
  padding: 6px 12px;
  background: rgba(232,228,220,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-transform: uppercase;
  transition: .12s;
}
.stp-preset:hover { border-color: var(--gold); color: var(--gold); }

/* --- Emoji scale --- */
.emoji-q { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 4px 4px; width: 100%; }
.emoji-scale { display: flex; gap: 10px; justify-content: center; }
.emoji-btn {
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(232,228,220,0.03);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: border-color .2s, background .2s, box-shadow .25s, transform .15s, filter .2s;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(0.7) opacity(0.6);
}
.emoji-btn:hover { border-color: var(--border-strong); filter: none; transform: translateY(-2px); }
.emoji-btn.selected { filter: none; transform: translateY(-2px); }
.emoji-btn.selected[data-tier="bad"]  { border-color: var(--red);   background: rgba(247,110,120,0.14); box-shadow: 0 0 0 1px rgba(247,110,120,0.30), 0 0 22px -4px rgba(247,110,120,0.55); }
.emoji-btn.selected[data-tier="mid"]  { border-color: var(--gold);  background: rgba(221,185,116,0.14); box-shadow: 0 0 0 1px rgba(221,185,116,0.30), 0 0 22px -4px rgba(221,185,116,0.55); }
.emoji-btn.selected[data-tier="good"] { border-color: var(--green); background: rgba(125,211,168,0.14); box-shadow: 0 0 0 1px rgba(125,211,168,0.30), 0 0 22px -4px rgba(125,211,168,0.55); }
.emoji-anchors {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 340px;
  margin-top: 2px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
}
.emoji-anchors span { flex: 1; text-align: center; }
.emoji-anchors span:first-child { text-align: left; }
.emoji-anchors span:last-child { text-align: right; }

/* --- Bell IQ picker --- */
.iq-pick { display: flex; flex-direction: column; align-items: center; padding: 4px 0; }
.iq-pick-value {
  font-family: var(--ff-serif);
  font-size: 60px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.iq-pick-value.bump { transform: scale(1.06); }
.iq-pick-hint {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin: 6px 0 8px;
}
.iq-pick-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#iq-pick-handle { transition: r .12s ease; }
.iq-pick.dragging #iq-pick-handle { cursor: grabbing; r: 11; }
.iq-pick.dragging #iq-pick-glow { opacity: 0.32; }

/* --- Nav buttons --- */
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 14px; min-height: 52px; }
.btn-nav {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .12s;
  min-width: 96px;
}
.btn-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-next {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0F1011;
  border: none;
  border-radius: 11px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, box-shadow .15s;
  box-shadow: 0 6px 20px -8px rgba(221,185,116,0.6);
  min-width: 130px;
}
.btn-next:hover:not(:disabled) { transform: translateY(-1px); }
.btn-next:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Analyzing overlay --- */
.analyzing {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #0F1011;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  z-index: 9999;
  animation: anaIn .35s cubic-bezier(.2,.7,.2,1) both;
  overflow: hidden;
}
.analyzing.show { display: flex; }
@keyframes anaIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.ana-eyebrow {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ana-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: anaBlink 1s infinite;
}
@keyframes anaBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ana-title {
  font-family: var(--ff-serif);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
  text-align: center;
  line-height: 1.2;
}
.ana-title em { color: var(--gold); font-style: italic; }
.ana-svg { width: 100%; max-width: 380px; height: auto; display: block; margin-bottom: 14px; }
.ana-stat {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.ana-cap {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 6px;
  text-align: center;
  max-width: 320px;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .analyzing { padding: 24px 16px; }
  .ana-title { font-size: 22px; margin-bottom: 12px; }
  .ana-svg { max-width: 100%; margin-bottom: 8px; }
  .ana-stat { font-size: 34px; }
  .ana-cap { font-size: 12px; }
}

/* ============================================================
   Pre-quiz splash (TikTok cold-traffic hook)
   ============================================================ */
.intro {
  max-width: 540px;
  margin: 0 auto;
  padding: 24px 4px 80px;
  text-align: center;
  animation: introIn .55s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes introIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.intro-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(221,185,116,0.32);
  background: rgba(221,185,116,0.07);
  border-radius: 999px;
  margin: 0 auto 22px;
  font-family: var(--ff-sans);
  font-size: 12.5px;
  color: var(--text);
}
.intro-stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.intro-rating-val { font-weight: 700; color: var(--text); }
.intro-rating-meta {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--text-sub);
  text-transform: uppercase;
}
.intro-rating-meta b { color: var(--text); font-weight: 600; }

.intro-eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.intro-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(36px, 7.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.intro-title em { color: var(--gold); font-style: italic; }

.intro-sub {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 auto 28px;
  max-width: 42ch;
}

.intro-bullets {
  list-style: none;
  margin: 0 auto 32px;
  padding: 18px 22px;
  background: rgba(232,228,220,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  max-width: 420px;
}
.intro-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
  font-family: var(--ff-sans);
}
.intro-bullets li + li { border-top: 1px solid rgba(232,228,220,0.05); }
.intro-bullet-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(125,211,168,0.12);
  border: 1px solid rgba(125,211,168,0.35);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.intro-cta {
  font-size: 20px;
  padding: 24px 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, #F4D796 0%, #DDB974 100%);
  color: #0F1011;
  box-shadow: 0 16px 36px -10px rgba(221,185,116,0.65), 0 0 36px -8px rgba(221,185,116,0.40);
  border-radius: 14px;
  transition: transform .15s, box-shadow .25s;
}
.intro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -10px rgba(221,185,116,0.85), 0 0 48px -8px rgba(221,185,116,0.55);
}
.intro-cta .btn-arrow { font-size: 22px; line-height: 1; }

.intro-foot {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}

@media (max-width: 520px) {
  .intro { padding-top: 12px; padding-bottom: 60px; }
  .intro-title { font-size: clamp(30px, 8.5vw, 42px); }
  .intro-bullets { padding: 14px 18px; }
  .intro-bullets li { font-size: 13.5px; gap: 10px; }
  .intro-cta { font-size: 17px; padding: 20px 40px; gap: 12px; }
  .intro-cta .btn-arrow { font-size: 19px; }
}
