/* AI for Marketing Assessment */
.quiz { max-width: 860px; margin: 0 auto; }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: stepIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz-step.is-active { animation: none; } }

.dims { list-style: none; padding: 0; margin: 40px 0 24px; border-top: 1px solid var(--black); }
.dims li { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.dims .n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--blue); }

/* Progress */
.progress { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.progress-bar { flex: 1; height: 4px; background: var(--bone); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.progress .label { white-space: nowrap; }

.q-head h2 { margin-top: 12px; }
.q-list { margin-top: 40px; display: grid; gap: 16px; }
.q { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.q legend { padding: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border: 1px solid var(--line); border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  background: var(--white); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.scale label:hover { border-color: var(--black); }
.scale input:checked + label { background: var(--black); color: var(--white); border-color: var(--black); }
.scale input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.q-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.q-hint { color: var(--ink-3); font-size: 14px; margin-top: 12px; min-height: 1.4em; }

/* Gate */
.gate-form { margin-top: 32px; display: grid; gap: 16px; max-width: 520px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px;
  font: inherit; font-size: 17px;
  border: 1px solid rgba(0,0,0,.18); border-radius: 14px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,96,204,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B00020; font-size: 15px; }

/* Results */
.score-row { display: flex; align-items: center; gap: 32px; margin-top: 16px; flex-wrap: wrap; }
.score { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.05em; font-size: clamp(88px, 14vw, 150px); line-height: .9; color: var(--blue); }
.score small { font-size: .3em; color: var(--ink-3); letter-spacing: -0.02em; margin-left: 4px; }
.level { display: inline-flex; height: 34px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--black); color: var(--white); font-weight: 600; font-size: 15px; }
.score-row > div:last-child { max-width: 420px; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.radar-card { display: flex; align-items: center; justify-content: center; }
.radar-card svg { width: 100%; max-width: 380px; }
.bars { display: grid; gap: 18px; }
.bar-row .bar-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.bar-row .bar-top span:last-child { font-family: var(--font-mono); font-weight: 500; color: var(--ink-2); }
.bar { height: 8px; background: var(--bone); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--black); border-radius: 999px; width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bar-row.is-gap .bar span { background: var(--blue); }
.bar-row.is-gap .bar-top span:first-child { color: var(--blue); }
.gap-card { margin-top: 20px; }
.gap-card p { color: var(--ink-2); max-width: 46em; }

@media (max-width: 720px) {
  .results-grid { grid-template-columns: 1fr; }
  .q { padding: 18px; }
  .scale label { height: 48px; }
  .q-actions .btn { flex: 1; }
}

/* Pop layer */
.dims .n { color: var(--blue); font-weight: 600; }
.progress-bar span { background: linear-gradient(90deg, #0860CC, #7CC4FF); box-shadow: 0 0 12px rgba(59,139,255,.6); }
.q { transition: border-color .25s, box-shadow .3s; }
.q:focus-within { border-color: rgba(8,96,204,.4); box-shadow: 0 16px 40px -24px rgba(8,96,204,.45); }
.scale label { border-radius: 10px; font-family: var(--font-head); font-weight: 600; transition: background-color .15s, color .15s, border-color .15s, transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s; }
.scale label:hover { transform: translateY(-2px); border-color: var(--blue); }
.scale input:checked + label { background: linear-gradient(160deg, #3B8BFF, #0860CC); border-color: #0860CC; color: #fff; box-shadow: 0 10px 22px -10px rgba(8,96,204,.8); transform: translateY(-2px); }
.score { background: linear-gradient(135deg, #0860CC, #3B8BFF 60%, #7CC4FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level { background: linear-gradient(160deg, #3B8BFF, #0860CC); }
.bar span { background: var(--ink); }
.bar-row.is-gap .bar span { background: linear-gradient(90deg, #0860CC, #7CC4FF); box-shadow: 0 0 10px rgba(59,139,255,.6); }
