/* Magnetic audit funnel - dark, mobile first */

@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #080B12;
  --bg-2: #0D1220;
  --card: #101728;
  --card-2: #131C30;
  --line: rgba(255,255,255,.09);
  --ink: #F2F5FA;
  --dim: #97A2B8;
  --faint: #6C7793;
  --accent: #2F6BFF;
  --accent-soft: rgba(47,107,255,.14);
  --good: #21C776;
  --warn: #F5C518;
  --bad: #FF4D4D;
  --r: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(120% 70% at 50% -10%, #16233F 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  min-height: 100svh;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
.accent { color: #6FA0FF; }

.wrap { max-width: 560px; margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; }
.pad { padding: 0 20px; }
.screen { display: none; flex: 1; flex-direction: column; padding: 28px 0 max(32px, env(safe-area-inset-bottom)); }
.screen.is-on { display: flex; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.is-on { animation: none; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; margin-bottom: 34px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(47,107,255,.5);
}
.logo-name { font-size: 14px; font-weight: 700; letter-spacing: .24em; }
.logo-sm { margin-bottom: 22px; }

/* ---------- landing ---------- */
.land-h1 { font-size: 34px; line-height: 1.14; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 16px; }
.land-sub { color: var(--dim); font-size: 16px; line-height: 1.55; margin-bottom: 26px; }
.land-time { color: var(--faint); font-size: 13px; text-align: center; margin-bottom: 12px; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 18px 24px; border-radius: 14px;
  background: linear-gradient(180deg, #4C87FF, #2F6BFF);
  color: #fff; font-size: 17px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(47,107,255,.45), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:active { transform: scale(.985); }
.cta:hover { box-shadow: 0 14px 38px rgba(47,107,255,.55), inset 0 1px 0 rgba(255,255,255,.28); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 12px; color: var(--dim);
}
.chip svg { color: var(--accent); }

.trained { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.stat-rows { display: grid; gap: 10px; }
.stat-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.stat-row b { font-size: 15px; font-weight: 600; }
.stat-row span { font-size: 12px; color: var(--faint); text-align: right; }

/* ---------- quiz ---------- */
#scQuiz { padding-top: 0; }
.qhead {
  position: sticky; top: 0; z-index: 5;
  padding: max(16px, env(safe-area-inset-top)) 20px 14px;
  background: linear-gradient(180deg, rgba(8,11,18,.97) 70%, rgba(8,11,18,0));
  backdrop-filter: blur(10px);
}
.qhead-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.qcount { font-size: 13px; font-weight: 600; color: #6FA0FF; }
.qpct { font-size: 13px; color: var(--faint); }
.qbar { height: 3px; background: rgba(255,255,255,.09); border-radius: 2px; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 7%; background: var(--accent); border-radius: 2px; transition: width .35s cubic-bezier(.22,.61,.36,1); }

.qbody { flex: 1; padding-top: 26px; padding-bottom: 20px; }
.q-title { font-size: 25px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.q-help { color: var(--faint); font-size: 14px; margin-bottom: 20px; }
.q-title + .opts, .q-title + .ta-wrap, .q-title + .slider-wrap { margin-top: 20px; }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 17px 18px; font-size: 16px; color: var(--ink);
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.opt:active { transform: scale(.99); }
.opt .mark {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center;
  transition: border-color .16s ease, background .16s ease;
}
.opt.multi .mark { border-radius: 7px; }
.opt .mark i { width: 9px; height: 9px; border-radius: 50%; background: transparent; transition: background .16s ease; }
.opt.multi .mark i { border-radius: 2px; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt.sel .mark { border-color: var(--accent); background: var(--accent); }
.opt.sel .mark i { background: #fff; }

.ta-wrap textarea, .field input {
  width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-size: 16px; color: var(--ink); outline: none; resize: none;
  transition: border-color .16s ease;
}
.ta-wrap textarea { min-height: 140px; line-height: 1.5; }
.ta-wrap textarea::placeholder, .field input::placeholder { color: var(--faint); }
.ta-wrap textarea:focus, .field input:focus { border-color: var(--accent); }

.slider-wrap { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 30px 20px 20px; text-align: center; }
.slider-val { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; color: #6FA0FF; line-height: 1; }
.slider-unit { font-size: 14px; color: var(--dim); margin-bottom: 22px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  margin-top: -10.5px; box-shadow: 0 3px 10px rgba(0,0,0,.5); border: 3px solid var(--accent);
}
.slider-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 10px; }

.qnav {
  position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--bg) 62%, rgba(8,11,18,0));
}
.btn-ghost {
  padding: 16px 22px; border-radius: 13px; border: 1.5px solid var(--line);
  color: var(--dim); font-size: 15px; font-weight: 500;
}
.btn-next {
  flex: 1; padding: 16px 22px; border-radius: 13px; font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #4C87FF, #2F6BFF);
  box-shadow: 0 8px 22px rgba(47,107,255,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-next[disabled] { opacity: .4; box-shadow: none; }
.q-err { color: var(--bad); font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ---------- gate ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #6FA0FF; text-align: center; margin-bottom: 22px; }
.locked-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 20px 22px; text-align: center; margin-bottom: 30px; position: relative; overflow: hidden;
}
.ring-wrap { position: relative; width: 150px; margin: 0 auto; }
.ring-wrap.big { width: 176px; }
.ring { width: 100%; height: auto; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.ring-fg { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray 1.1s cubic-bezier(.22,.61,.36,1); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { display: block; font-size: 42px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ring-wrap.big .ring-num b { font-size: 50px; }
.ring-num span { font-size: 13px; color: var(--faint); }
.blurred { filter: blur(7px); opacity: .75; }
.blur-lines { display: grid; gap: 9px; margin: 22px 6px 18px; filter: blur(5px); }
.blur-lines i { height: 11px; border-radius: 5px; background: rgba(255,255,255,.14); }
.blur-lines i:nth-child(2) { width: 78%; }
.blur-lines i:nth-child(3) { width: 90%; }
.blur-lines i:nth-child(4) { width: 62%; }
.locked-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #6FA0FF; }

.gate-h2 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.gate-sub { color: var(--dim); font-size: 15px; margin-bottom: 24px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 7px; }
.field input.bad { border-color: var(--bad); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* ---------- results ---------- */
.res-top { margin-bottom: 26px; }
.res-h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 8px; }
.res-sub { color: var(--dim); font-size: 15px; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 30px 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; }
.score-card { text-align: center; padding-top: 30px; }
.score-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 20px 0 10px; }
.verdict { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.verdict-body { color: var(--dim); font-size: 15px; line-height: 1.6; }

.bars { display: grid; gap: 22px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; gap: 12px; }
.bar-name { font-size: 15px; font-weight: 600; }
.bar-pct { font-size: 15px; font-weight: 700; }
.bar-track { height: 7px; border-radius: 4px; background: rgba(255,255,255,.09); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; width: 0; transition: width 1s cubic-bezier(.22,.61,.36,1); }
.bar-note { font-size: 13px; color: var(--faint); line-height: 1.5; margin-top: 9px; }

.step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; margin-bottom: 12px; }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.step-problem { font-size: 14px; color: var(--dim); line-height: 1.6; margin-bottom: 14px; }
.step-problem b { color: var(--ink); font-weight: 600; }
.step-problem i { color: #A9B7D0; }
.step ul { list-style: none; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.step li svg { flex: none; margin-top: 2px; color: var(--good); }

.apply-card { margin-top: 26px; background: linear-gradient(160deg, #16233F, #101728); border-color: rgba(47,107,255,.35); text-align: center; }
.apply-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.apply-card p { color: var(--dim); font-size: 15px; margin-bottom: 20px; }
.apply-note { font-size: 12px; color: var(--faint); margin: 12px 0 0; }
.res-foot { font-size: 12px; color: var(--faint); text-align: center; margin-top: 26px; line-height: 1.6; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .wrap { max-width: 620px; }
  .screen { padding-top: 46px; }
  .pad { padding: 0 32px; }
  .land-h1 { font-size: 44px; }
  .res-h1 { font-size: 40px; }
  .q-title { font-size: 29px; }
  .cta { width: auto; min-width: 280px; margin: 0 auto; }
  .apply-card .cta { display: inline-flex; }
  .qnav { border-radius: 0; }
}
