/* Zalaris Payroll Transformation Scorecard
   Brand: Zalaris V4 2025. Figtree is a stand-in for Proxima Nova (Typekit); swap --font when the Typekit kit is available. */
html,
body {
  margin: 0;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:root {
  --navy: #17245f;
  --blue: #004f9e;
  --sky: #18b2e8;
  --orange: #e9580c;
  --peach: #fdd2b9;
  --signal: #0063db;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eceff4;
  --line: #dde2eb;
  --line-2: #c1c7d3;
  --ink: #0f1a33;
  --text: #333a4d;
  --muted: #6b7689;
  --heading: #17245f;
  --accent: #004f9e;
  --accent-ink: #ffffff;
  --focus: #18b2e8;
  --hero-bg: #17245f;
  --hero-ink: #ffffff;
  --hero-muted: #b9c6e6;
  --logo-word: #575756;
  --shadow: 0 1px 2px rgba(23, 36, 95, 0.06), 0 8px 24px rgba(23, 36, 95, 0.07);
  --good: #1f8a5b;
  --warn: #b7791f;
  --crit: #c2410c;
  --sel-bg: #eaf4fd;
  --sel-line: #004f9e;
  --font: 'Figtree', Arial, 'Helvetica Neue', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b1330;
    --surface: #121c40;
    --surface-2: #1a2550;
    --line: #26336a;
    --line-2: #34438a;
    --ink: #f2f5fb;
    --text: #c9d1e4;
    --muted: #8e9ab8;
    --heading: #e8eefb;
    --accent: #3fa9f5;
    --accent-ink: #06122e;
    --hero-bg: #101a42;
    --hero-ink: #ffffff;
    --hero-muted: #a9b7db;
    --logo-word: #e8eefb;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --good: #4cc38a;
    --warn: #e3b04b;
    --crit: #ff8a4c;
    --sel-bg: #18306a;
    --sel-line: #3fa9f5;
  }
}
:root[data-theme='dark'] {
  --bg: #0b1330;
  --surface: #121c40;
  --surface-2: #1a2550;
  --line: #26336a;
  --line-2: #34438a;
  --ink: #f2f5fb;
  --text: #c9d1e4;
  --muted: #8e9ab8;
  --heading: #e8eefb;
  --accent: #3fa9f5;
  --accent-ink: #06122e;
  --hero-bg: #101a42;
  --hero-ink: #ffffff;
  --hero-muted: #a9b7db;
  --logo-word: #e8eefb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --good: #4cc38a;
  --warn: #e3b04b;
  --crit: #ff8a4c;
  --sel-bg: #18306a;
  --sel-line: #3fa9f5;
}
* {
  box-sizing: border-box;
}
body {
  background: #0b1330 !important;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
  line-height: 1.15;
}
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.zlogo {
  height: 26px;
  width: auto;
  display: block;
}
.zlogo .cls-1 {
  fill: #e9580c;
}
.zlogo .cls-2 {
  fill: #18b2e8;
}
.zlogo .cls-3 {
  fill: #004f9e;
}
.zlogo .cls-4 {
  fill: var(--logo-word);
}
.on-dark .zlogo .cls-4 {
  fill: #ffffff;
}
.on-dark .zlogo .cls-3 {
  fill: #6fb7f2;
}

/* header */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.tag {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tag b {
  color: var(--heading);
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
}
.btn-orange {
  background: #e9580c;
  color: #fff;
}
.btn-orange:hover {
  background: #d24e09;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--heading);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-link {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

/* intro */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -180px;
  top: -120px;
  width: 760px;
  height: 780px;
  background: url('/payroll-transformation-scorecard/img/swirl-fineline.svg') no-repeat
    center/contain;
  opacity: 0.55;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding-block: clamp(40px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #18b2e8;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(45deg, #fdd2b9, #e9580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: var(--hero-muted);
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 300;
  margin-top: 18px;
  max-width: 58ch;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 30px;
}
.hero .btn-link {
  color: #8fd3f4;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--hero-muted);
}
.meta-row span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18b2e8;
  margin-right: 8px;
  vertical-align: middle;
}
.dims {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.dims h2 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.dim {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.dim b {
  display: block;
  color: #fff;
  font-size: 15px;
}
.dim small {
  display: block;
  color: var(--hero-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}
.pillar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.intro-body {
  padding-block: clamp(36px, 5vw, 64px);
}
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.why h3 {
  font-size: 18px;
  font-weight: 700;
}
.why p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.why .k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  display: block;
}
.fine {
  font-size: 13px;
  color: var(--muted);
  margin-top: 36px;
  max-width: 80ch;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* quiz */
.quiz {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding-block: 36px 60px;
}
.rail {
  position: sticky;
  top: 90px;
  align-self: start;
}
.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rail li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.rail li .ring {
  width: 28px;
  height: 28px;
  flex: none;
  position: relative;
  box-shadow: none;
}
.rail li .ring svg {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}
.rail li.active {
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.rail li.done {
  color: var(--text);
}
.rail .timeleft {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  padding-left: 10px;
}
.mprog {
  display: none;
}
.qcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.qhead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.qsection {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.qcount {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.qtitle {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin-top: 12px;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.qhelp {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 64ch;
}
.answers {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 14px;
}
.spectrum {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-block: 4px;
}
.spectrum .bar {
  flex: 1;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e9580c, #fdd2b9 30%, #18b2e8 70%, #004f9e);
}
.spectrum .lab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.opts {
  display: grid;
  gap: 10px;
  grid-row: 1;
  grid-column: 2;
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.opt:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.opt .dot {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  margin-top: 2px;
  display: grid;
  place-items: center;
}
.opt.check .dot {
  border-radius: 6px;
}
.opt[aria-checked='true'] {
  border-color: var(--sel-line);
  background: var(--sel-bg);
  color: var(--ink);
}
.opt[aria-checked='true'] .dot {
  border-color: var(--sel-line);
  background: var(--sel-line);
}
.opt[aria-checked='true'] .dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.opt.check[aria-checked='true'] .dot::after {
  width: 10px;
  height: 6px;
  border-radius: 0;
  background: none;
  border-left: 2px solid var(--surface);
  border-bottom: 2px solid var(--surface);
  transform: rotate(-45deg) translate(1px, -1px);
}
.opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.opt.na {
  grid-column: 2;
  margin-top: 6px;
  border-style: dashed;
  font-size: 15px;
  color: var(--muted);
}
.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.chips .opt {
  font-size: 15px;
  padding: 12px 14px;
}
.qnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.kbd {
  font-size: 12px;
  color: var(--muted);
}
.kbd kbd {
  font-family: inherit;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  font-size: 11px;
}
.hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* gate */
.gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  padding-block: 48px 72px;
  align-items: start;
}
.gate h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.015em;
}
.gate .lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 48ch;
}
.teaser {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.teaser div {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: var(--text);
}
.teaser div::before {
  content: '';
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(45deg, #18b2e8, #004f9e);
}
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}
.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 16px;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}
.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.err {
  color: var(--crit);
  font-size: 14px;
  min-height: 1em;
}

/* results */
.res-hero {
  background: var(--hero-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.res-hero::before {
  content: '';
  position: absolute;
  left: -260px;
  bottom: -360px;
  width: 720px;
  height: 740px;
  background: url('/payroll-transformation-scorecard/img/swirl-fineline.svg') no-repeat
    center/contain;
  opacity: 0.4;
  pointer-events: none;
}
.res-hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: clamp(36px, 5vw, 60px);
}
.example-flag {
  display: inline-block;
  background: #e9580c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.res-hero .eyebrow {
  color: #8fd3f4;
}
.profile-name {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 10px;
}
.profile-desc {
  color: var(--hero-muted);
  font-size: 18px;
  font-weight: 300;
  margin-top: 14px;
  max-width: 52ch;
}
.headline-scores {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hs {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 170px;
}
.hs .v {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(45deg, #18b2e8, #9ed8f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hs .v small {
  font-size: 16px;
  font-weight: 600;
  -webkit-text-fill-color: var(--hero-muted);
}
.hs .l {
  font-size: 13px;
  color: var(--hero-muted);
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.quad-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
}
.quad-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 440px;
  margin: 0 auto;
}
.section {
  padding-block: clamp(32px, 4vw, 52px);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sec-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}
.sec-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
  margin-top: 6px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pcard.pri {
  border-color: #e9580c;
  box-shadow: 0 0 0 1px #e9580c inset;
}
.pcard .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}
.pcard h3 {
  font-size: 16px;
  font-weight: 700;
}
.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.chip-pri {
  background: #e9580c;
  color: #fff;
}
.chip-ok {
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: var(--good);
}
.pcard .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pcard .num small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.meter {
  height: 8px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #18b2e8, #004f9e);
}
.pcard.pri .meter i {
  background: linear-gradient(90deg, #fdd2b9, #e9580c);
}
.subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.subs b {
  display: block;
  color: var(--heading);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.pcard .band {
  font-size: 14px;
  color: var(--text);
}
.opp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.oppcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.oppcard .oh {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.oppcard .rank {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(45deg, #e9580c, #fdd2b9);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.oppcard .oh h3 {
  font-size: 22px;
}
.oppcard .oh p {
  margin-top: 6px;
  font-size: 17px;
  color: var(--text);
}
.ogrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ogrid > div {
  padding: 22px 28px;
}
.ogrid > div + div {
  border-left: 1px solid var(--line);
}
.ogrid h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.ogrid p,
.ogrid li {
  font-size: 15px;
  color: #fff;
}
.ogrid ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.ogrid .q li {
  color: var(--heading);
  font-weight: 600;
}
.signals {
  padding: 0 28px 24px;
}
.signals h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 10px;
}
.gap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gap > div {
  padding: 12px 16px;
  font-size: 14px;
  color: #fff;
}
.gap .now {
  background: var(--surface-2);
}
.gap .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.gap .now .lbl {
  color: var(--crit);
}
.gap .good .lbl {
  color: var(--good);
}
.gap .qt {
  grid-column: 1/-1;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--heading);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.triggers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.trig {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.trig h3 {
  font-size: 16px;
}
.trig p {
  font-size: 14px;
  margin-top: 6px;
  color: var(--text);
}
.prefs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pref {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.pref h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pref p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--heading);
  font-weight: 600;
}
.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.taglist span {
  font-size: 13px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text);
}
.cta {
  background: linear-gradient(45deg, #18b2e8, #004f9e);
  color: #fff;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}
.cta p {
  color: #e3f3fc;
  margin-top: 10px;
  font-size: 16px;
  max-width: 52ch;
}
.cta .field label {
  color: #fff;
}
.cta textarea {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  min-height: 84px;
  resize: vertical;
}
.cta textarea::placeholder {
  color: #cfe7f7;
}
.cta .btn-orange {
  margin-top: 12px;
}
.cta .done {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
}
.res-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.disclaimer {
  font-size: 13px;
  color: var(--muted);
  max-width: 90ch;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 50;
  box-shadow: var(--shadow);
}

.gate-scores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.gate-scores div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 130px;
}
.gate-scores b {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.gate-scores span {
  font-size: 13px;
  color: var(--muted);
}
.gate-scores .locked b {
  color: #e9580c;
}
.capacity {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 36px);
}
.capacity h2 {
  font-size: clamp(20px, 2.2vw, 26px);
}
.capacity #cap-fte {
  color: #e9580c;
}
.cap-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  max-width: 62ch;
}
.cap-box {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 20px;
}
.cap-val {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(45deg, #e9580c, #f29a6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cap-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.cap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.cap-row select {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 14px;
}
.cap-box input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 8px;
}
.cta-opts {
  display: grid;
  gap: 8px;
}
.cta-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.cta-opt input {
  margin-top: 4px;
  accent-color: #e9580c;
}
.cta input[type='tel'] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tier-Hot {
  background: #e9580c;
  color: #fff;
}
.tier-Warm {
  background: color-mix(in srgb, var(--warn) 20%, transparent);
  color: var(--warn);
}
.tier-Nurture {
  background: var(--surface-2);
  color: var(--muted);
}

/* admin */
.admin {
  padding-block: 36px 60px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.kpi b {
  display: block;
  font-size: 28px;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi span {
  font-size: 13px;
  color: var(--muted);
}
.tablewrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  min-width: 980px;
}
th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
td.n {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
tr.lead-row {
  cursor: pointer;
}
tr.lead-row:hover td {
  background: var(--surface-2);
}
.flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
  margin: 1px 2px 1px 0;
  background: color-mix(in srgb, #e9580c 16%, transparent);
  color: var(--crit);
}
.prof {
  font-weight: 600;
  color: var(--heading);
}
.detail td {
  background: var(--bg);
}
.detail pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  margin: 0;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero .wrap,
  .res-hero .wrap,
  .gate,
  .cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .quiz {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 18px 40px;
  }
  .rail {
    display: none;
  }
  .mprog {
    display: block;
  }
  .mprog .t {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .mprog .track {
    height: 6px;
    border-radius: 6px;
    background: var(--surface-2);
    overflow: hidden;
  }
  .mprog .track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #18b2e8, #004f9e);
    transition: width 0.25s;
  }
  .why,
  .prefs,
  .capacity {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ogrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ogrid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tag {
    display: none;
  }
}
@media (max-width: 560px) {
  .pillars,
  .chips,
  .row2,
  .gap,
  .dim-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .answers {
    grid-template-columns: minmax(0, 1fr);
  }
  .spectrum {
    display: none;
  }
  .opts,
  .opt.na {
    grid-column: 1;
  }
  .oppcard .oh,
  .ogrid > div,
  .signals {
    padding-inline: 18px;
  }
  .kbd {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.fade {
  animation: fade 0.25s ease-out;
}
@keyframes fade {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}
