/* ============================================
   EVALUATION — Cyber-Score
   ============================================ */

.eval-body {
  background: var(--bg);
  min-height: 100vh;
}

/* HEADER */
.eval-header {
  padding-top: clamp(7rem, 11vw, 9rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.eval-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 40%, var(--line) 60%, transparent);
}
.eval-header-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.eval-header .eyebrow { justify-content: center; }
.eval-h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-block: 0.5rem 0.75rem;
}
.eval-sub {
  max-width: 58ch;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-2);
  line-height: 1.65;
  text-align: center;
}
.eval-meta {
  display: flex; gap: 2rem 2.5rem; flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.em-item { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.em-n {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}
.em-l {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* QUIZ SECTION */
.eval-quiz-sec {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  background: var(--bg-soft);
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  min-height: 520px;
  box-shadow: 0 18px 60px oklch(0 0 0 / 0.04);
}

/* progress */
.quiz-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: oklch(0.94 0.005 60);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--brand);
  width: 0;
  transition: width 0.5s ease;
}
.quiz-progress-lbl {
  position: absolute;
  top: 8px; right: 1.25rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* INTRO */
.quiz-step { display: flex; flex-direction: column; align-items: stretch; }
.quiz-intro { align-items: center; text-align: center; }
.intro-icon {
  width: 88px; height: 88px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid; place-items: center;
  margin-bottom: 1.5rem;
}
.quiz-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.quiz-intro-p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}
.quiz-intro-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  max-width: 600px;
}
.quiz-intro-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.qil-ico {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 14px;
  margin-top: 2px;
}
.quiz-cta {
  align-self: center;
  padding-inline: 2.5rem;
  font-size: 15px;
}
.quiz-fine {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 1.25rem;
  text-align: center;
  max-width: none;
}

/* QUIZ */
.quiz-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.quiz-step-n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.quiz-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.quiz-q {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-bottom: 1.75rem;
  max-width: 28ch;
  line-height: 1.2;
  text-wrap: balance;
}
.opt-list {
  display: flex; flex-direction: column;
  gap: 0.65rem;
}
.opt-item {
  display: flex; align-items: center; gap: 14px;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.opt-item:hover {
  border-color: var(--ink-3);
  transform: translateX(2px);
}
.opt-item.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.opt-item .opt-n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  flex-shrink: 0;
  width: 24px;
}
.opt-item.selected .opt-n { color: var(--brand); }

.quiz-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem;
  min-height: 44px;
}
.quiz-back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  cursor: pointer;
  background: none; border: none;
  text-transform: uppercase;
}
.quiz-back:hover { color: var(--ink); }

/* GATE / SCANNER */
.quiz-step#gate-step { align-items: center; text-align: center; }
.scanner {
  width: 140px; height: 140px;
  position: relative;
  margin-bottom: 1.5rem;
}
.scanner-ring {
  position: absolute; inset: 0;
  border: 1.5px solid var(--brand);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  animation: scan-spin 2.2s linear infinite;
}
.scanner-ring-2 {
  inset: 14px;
  border-color: var(--brand-line);
  border-right-color: transparent;
  border-top-color: transparent;
  animation: scan-spin 3.5s linear infinite reverse;
}
.scanner-dot {
  position: absolute; inset: 50% 0 0 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--brand-soft);
  animation: scan-pulse 1.6s ease-in-out infinite;
}
@keyframes scan-spin { to { transform: rotate(360deg); } }
@keyframes scan-pulse {
  50% { box-shadow: 0 0 0 14px oklch(0.95 0.035 25 / 0.4); }
}
.quiz-status {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 1.5rem;
  transition: opacity 0.3s;
  min-height: 1.2em;
}
.quiz-gate-p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.quiz-gate-p strong { color: var(--ink); font-weight: 500; }
.quiz-gate-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 420px;
  width: 100%;
}
.quiz-gate-form input { text-align: center; }
.quiz-gate-form button { width: 100%; justify-content: center; padding-block: 1rem; }

/* RESULTS DASHBOARD */
.result-dashboard {
  padding-block: 1rem;
}
.res-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.res-head .eyebrow { justify-content: center; }
.res-h {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0.75rem auto 1rem;
}
.res-h em { color: var(--brand-ink); font-size: 1.05em; }
.res-level {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.res-level.lvl-mid {
  background: oklch(0.96 0.05 80);
  border-color: oklch(0.85 0.08 80);
  color: oklch(0.40 0.10 50);
}
.res-level.lvl-ok {
  background: oklch(0.95 0.06 150);
  border-color: oklch(0.83 0.08 150);
  color: oklch(0.32 0.08 150);
}
.res-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.res-radar-card, .res-dims {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.res-radar-card header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.res-card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-transform: uppercase;
}
.res-card-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}
.res-radar { display: grid; place-items: center; padding-block: 1rem; }
.res-radar svg { width: 100%; max-width: 420px; height: auto; }
.res-dims { display: flex; flex-direction: column; gap: 1rem; }
.dim-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.dim-item:last-child { border-bottom: none; padding-bottom: 0; }
.dim-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.dim-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.dim-pct {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
}
.dim-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.dim-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.res-cta {
  text-align: center;
  background: var(--bg-ink);
  color: oklch(0.94 0.005 70);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
}
.res-cta h3 {
  font-family: var(--serif);
  color: oklch(0.96 0.005 70);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
}
.res-cta p {
  color: oklch(0.78 0.008 70);
  max-width: 52ch;
  margin: 0 auto 1.5rem;
  font-size: 15px;
}

.res-recos {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.res-recos-h {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.reco {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  margin-bottom: 0.85rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  transition: border-color 0.15s, transform 0.15s;
}
.reco:hover { transform: translateX(2px); }
.reco-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.reco-name { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.reco-desc { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.reco-arrow {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--brand);
  text-decoration: none;
}

.fade-in { animation: fadein 0.4s ease; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .res-grid { grid-template-columns: 1fr; }
  .quiz-intro-list { grid-template-columns: 1fr; }
  .eval-meta { gap: 1.5rem; }
}
@media (max-width: 540px) {
  .quiz-card { padding: 1.5rem; }
  .opt-item { padding: 0.85rem 1rem; }
  .reco { flex-direction: column; align-items: flex-start; }
}
