/* PACC Screening Assessment — shares the landing page's token set. */

:root {
  --navy: #0b182d;
  --navy-2: #132540;
  --navy-3: #1c3152;
  --gold: #f6c667;
  --gold-dark: #b7892f;
  --paper: #fafaf7;
  --white: #fff;
  --ink: #101c2f;
  --body: #596273;
  --muted: #8992a1;
  --line: #e7e9ed;
  --shadow: 0 28px 70px rgba(11, 24, 45, .14);
  --shadow-sm: 0 10px 30px rgba(11, 24, 45, .08);
  --radius: 24px;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; }

/* Beats the display values set on .progress and .back below. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir LT Pro", "Avenir Next", Avenir, "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 340px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(246, 198, 103, .16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 50;
}
.skip-link:focus { left: 16px; }

/* ------------------------------------------------------------------ header */

.assess-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 247, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.assess-header-inner {
  width: min(calc(100% - 40px), 780px);
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo { height: 30px; width: auto; }

.progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width .45s var(--ease);
}

.progress-text {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px 4px;
  color: var(--body);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); }

/* ------------------------------------------------------------------- stage */

main { position: relative; z-index: 1; }

.stage {
  width: min(calc(100% - 40px), 700px);
  margin-inline: auto;
  padding: clamp(28px, 6vw, 64px) 0 120px;
}

.stage.is-entering { animation: rise .42s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

h1, h2 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
h1 { font-size: clamp(1.9rem, 5.4vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4.2vw, 2rem); font-weight: 800; }
h1 em, h2 em { font-style: italic; color: var(--gold-dark); }
h1:focus, h2:focus { outline: none; }

.lede { color: var(--body); font-size: 1.02rem; margin: 0 0 26px; }

.fineprint {
  margin: 26px 0 0;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 44px);
  box-shadow: var(--shadow-sm);
}

.part-card { text-align: center; }
.part-card .lede { margin-inline: auto; max-width: 46ch; }

/* -------------------------------------------------------------- intro form */

.intro-form { margin-top: 30px; display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }
.field > span { font-size: .82rem; font-weight: 700; color: var(--ink); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}

.field input:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: var(--white);
}

.field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field-hint { margin: -6px 0 4px; font-size: .8rem; color: var(--muted); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--body);
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-dark); flex: none; }
.consent a { color: var(--gold-dark); font-weight: 600; }

.form-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecec;
  color: #a32020;
  font-size: .85rem;
  font-weight: 600;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 14px 30px rgba(183, 137, 47, .28);
}
.btn-primary:hover { background: #ffd479; }

.btn-ghost {
  background: transparent;
  color: var(--body);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }

.btn-block { width: 100%; }

/* --------------------------------------------------------------- questions */

.question-block { padding-top: 4px; }

.question-prompt {
  font-size: clamp(1.35rem, 3.9vw, 1.85rem);
  margin-bottom: 10px;
}

.question-hint {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .88rem;
}

.options { display: grid; gap: 12px; margin-top: 26px; }

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 16px 20px;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(11, 24, 45, .03);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s var(--ease), box-shadow .18s;
}

.option:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.option.is-selected {
  border-color: var(--gold-dark);
  background: linear-gradient(180deg, #fffaf0, var(--white));
  box-shadow: 0 0 0 3px rgba(246, 198, 103, .35);
}

.option-letter {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 800;
  color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}

.option.is-selected .option-letter {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.option-text { font-size: .98rem; font-weight: 600; line-height: 1.45; }

.options-binary { grid-template-columns: 1fr 1fr; gap: 14px; }
.option-binary { justify-content: center; min-height: 96px; }
.option-binary .option-text { font-size: 1.05rem; font-weight: 800; }

/* ------------------------------------------------------------------ status */

.status-card { text-align: center; }

.spinner {
  width: 42px;
  height: 42px;
  margin: 4px auto 22px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--gold-dark);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-card { padding-top: clamp(34px, 6vw, 52px); }

.result-mark {
  width: 62px;
  margin: 0 auto 22px;
  color: var(--gold-dark);
}

/* --------------------------------------------- demo: recruiter view panel */

.recruiter {
  margin-top: 26px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #dbe3ef;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.recruiter-inner { padding: clamp(24px, 5vw, 38px); }

.recruiter-head { border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 20px; margin-bottom: 22px; }
.recruiter-head h3 { margin: 12px 0 8px; font-size: 1.3rem; color: var(--white); letter-spacing: -.01em; }
.recruiter-head p { margin: 0; font-size: .85rem; color: #9fadc4; }

.demo-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(246, 198, 103, .16);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--navy-2);
  border-left: 5px solid var(--muted);
}

.verdict-label { font-weight: 800; font-size: 1.02rem; color: var(--white); }
.verdict-score { font-size: 2rem; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.verdict-score small { font-size: .95rem; font-weight: 700; color: #7f8ea6; }

.verdict-invite { border-left-color: #4ec98a; }
.verdict-invite-if-room { border-left-color: var(--gold); }
.verdict-borderline { border-left-color: #f0a63c; }
.verdict-reject { border-left-color: #e0575c; }

.redlights {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(224, 87, 92, .12);
  border: 1px solid rgba(224, 87, 92, .3);
}
.redlights h4 { margin: 0 0 8px; color: #ff9a9e; font-size: .9rem; letter-spacing: .02em; }
.redlights ul { margin: 0; padding-left: 18px; font-size: .87rem; color: #e5c7c9; }
.redlights li + li { margin-top: 6px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.metric {
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--navy-2);
  text-align: center;
}
.metric span { display: block; font-size: 1.5rem; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.metric span small { font-size: .8rem; color: #7f8ea6; font-weight: 700; }
.metric label { display: block; margin-top: 4px; font-size: .7rem; letter-spacing: .04em; color: #9fadc4; }
.metric-fire span { color: var(--gold); }

.traits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.trait {
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  text-align: center;
}
.trait-count { display: block; font-size: 1.2rem; font-weight: 800; color: var(--white); }
.trait-name { display: block; font-size: .7rem; color: #9fadc4; letter-spacing: .03em; }
.trait-high { background: rgba(78, 201, 138, .14); border-color: rgba(78, 201, 138, .35); }
.trait-high .trait-count { color: #7ce0ac; }
.trait-zero { background: rgba(224, 87, 92, .12); border-color: rgba(224, 87, 92, .3); }
.trait-zero .trait-count { color: #ff9a9e; }

.flag {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: .87rem;
  line-height: 1.55;
}
.flag strong { display: block; margin-bottom: 4px; }
.flag-warn { background: rgba(240, 166, 60, .13); border: 1px solid rgba(240, 166, 60, .32); color: #f3d6ab; }
.flag-warn strong { color: #ffc879; }

.answers { margin-top: 20px; }
.answers summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.answers summary span { font-weight: 500; color: #7f8ea6; font-size: .82rem; }
.answers table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.answers th {
  text-align: left;
  padding: 8px 10px;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7f8ea6;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.answers td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #cbd5e5; }
.cell-q { font-weight: 800; color: var(--white); white-space: nowrap; }
.cell-shown { color: var(--gold); font-weight: 700; }

.recruiter .btn-ghost {
  margin-top: 22px;
  border-color: rgba(255, 255, 255, .18);
  color: #cbd5e5;
}
.recruiter .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* -------------------------------------------------------- demo control bar */

.demobar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.demobar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.demobar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 198, 103, .2);
}

.demobar-panel {
  order: -1;
  width: min(88vw, 292px);
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.demobar-panel p { margin: 0 0 12px; font-size: .8rem; color: var(--body); }

.demobar-actions { display: grid; gap: 8px; }
.demobar-actions button {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: .85rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.demobar-actions button:hover { border-color: var(--gold-dark); background: #fffaf0; }

.demobar-reset {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.demobar-reset:hover { color: var(--ink); }

/* -------------------------------------------------------------- responsive */

@media (max-width: 620px) {
  .assess-header-inner { gap: 14px; }
  .brand-logo { height: 24px; }
  .back span { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .traits { grid-template-columns: 1fr 1fr; }
  .verdict { flex-direction: column; align-items: flex-start; gap: 10px; }
  .option { min-height: 64px; padding: 14px 16px; gap: 13px; }
  .demobar { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
