:root {
  /* Fresh palette — cool, modern, confident indigo system */
  --canvas: #f4f5f9;
  --panel: #ffffff;
  --ink: #0d1220;
  --ink-soft: #5a6480;
  --ink-faint: #8a93ab;
  --line: #e7e9f1;
  --line-soft: #f0f1f7;

  --accent: #4f46e5;
  --accent-2: #7c6cf5;
  --accent-3: #a78bfa;
  --accent-soft: #ecebfe;
  --accent-ink: #4338ca;

  --teal: #0d9488;
  --teal-2: #14b8a6;
  --teal-soft: #dcf2ef;

  --navy: #111729;
  --navy-2: #1c2540;

  --risk: #e11d48;
  --invest: #4f46e5;
  --return: #0f9d70;

  --ok: #0f9d70;
  --ok-soft: #e2f6ee;
  --warn: #c2861f;
  --warn-soft: #f8efd9;
  --bad: #e11d48;
  --bad-soft: #fde7ec;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(20, 28, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 28, 60, 0.10);
  --shadow-lg: 0 24px 64px rgba(20, 28, 60, 0.16);
  --shadow-glow: 0 10px 30px rgba(79, 70, 229, 0.28);

  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ============ Masthead ============ */
.masthead {
  position: relative;
  padding: 88px 0 132px;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(124, 108, 245, 0.55), transparent 60%),
    linear-gradient(160deg, #1a1340 0%, #251a5e 42%, #14193a 100%);
  color: #fff;
  overflow: hidden;
}
.masthead::after {
  /* subtle grid texture */
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 400px at 70% 0%, #000, transparent 75%);
          mask-image: radial-gradient(900px 400px at 70% 0%, #000, transparent 75%);
  pointer-events: none;
}
.masthead-glow {
  position: absolute; top: -160px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.30) 0%, transparent 70%);
  pointer-events: none;
}
.masthead-inner { position: relative; z-index: 1; }

.kicker {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.7rem; font-weight: 700;
  color: var(--accent); margin: 0 0 18px;
}
.masthead .kicker { color: #b9aefc; }

h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: 3.4rem; line-height: 1.04; margin: 0 0 20px;
  letter-spacing: -0.035em;
}
.lede {
  font-size: 1.1rem; line-height: 1.65; color: #cdd2e6;
  max-width: 660px; margin: 0 0 24px; font-weight: 400;
}
.privacy-note {
  font-size: 0.84rem; color: #c7f2e3;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: inline-block; padding: 9px 17px; border-radius: 100px; margin: 0;
  backdrop-filter: blur(6px);
}

/* ============ Layout ============ */
main { padding: 0 24px 100px; }
.panel { margin-bottom: 40px; }
.panel.hidden { display: none; }

h2 { font-family: var(--sans); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.025em; margin: 0 0 14px; }
h3 {
  font-family: var(--sans); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em;
  margin: 44px 0 18px; padding-top: 32px; border-top: 1px solid var(--line);
}
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
p { line-height: 1.62; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }

/* ============ Intro / floating cards ============ */
.intro-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 48px; margin-top: -92px; position: relative; z-index: 2;
}

.intro-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin: 32px 0 36px;
}
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-hint { margin: 14px 0 0; font-size: 0.84rem; }

/* Example-report banner on the results screen */
.demo-banner {
  background: var(--warn-soft); border: 1px solid #e9cf94; border-radius: var(--radius);
  padding: 13px 18px; margin-bottom: 20px; font-size: 0.88rem; line-height: 1.55; color: #6b5216;
}
.demo-banner strong { color: var(--warn); }
@media print { .demo-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.intro-feature {
  background: linear-gradient(180deg, #fbfbfe 0%, #f6f6fc 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.intro-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.intro-feature p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px; background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(79,70,229,0.10);
}
.feature-icon[data-accent="exec"] { background: #e6edfe; }
.feature-icon[data-accent="e8"] { background: var(--accent-soft); }
.feature-icon[data-accent="nist"] { background: var(--teal-soft); }

/* ============ Profile form ============ */
.profile-form { display: flex; flex-direction: column; gap: 28px; margin: 28px 0 8px; }
.profile-group > label.group-label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.profile-group > .group-help { margin: 0 0 12px; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.profile-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.profile-option {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius); cursor: pointer; font-size: 0.9rem;
  color: var(--ink-soft); transition: border-color .15s, background .15s, color .15s;
}
.profile-option:hover { border-color: var(--accent-2); }
.profile-option input { accent-color: var(--accent); }
.profile-option.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* ============ Buttons ============ */
.btn {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .18s, opacity .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(79,70,229,0.38); }
.btn-large { padding: 16px 34px; font-size: 1.02rem; }
.btn-secondary { background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent-2); color: var(--accent-ink); }
.btn-tertiary { background: transparent; border: none; color: var(--ink-soft); text-decoration: underline; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-ink); }

.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.step-label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

/* ============ Step rail ============ */
.step-rail { margin: 44px 0 30px; }
.step-dots { display: flex; gap: 6px; }
.step-dot { flex: 1; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.step-dot.done { background: var(--accent); }
.step-dot.active::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  width: var(--fill, 0%); transition: width .25s ease;
}
.step-dot.nist-dot { background: #d6e3e0; }
.step-dot.nist-dot.done { background: var(--teal); }
.step-dot.nist-dot.active::after { background: var(--teal); }

/* ============ Question card ============ */
.card-stage { position: relative; min-height: 320px; }
.strategy-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 42px; animation: card-in .34s cubic-bezier(0.22,1,0.36,1);
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }

.strategy-card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 4px; }
.strategy-icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, var(--accent-soft), #f3f1ff);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(79,70,229,0.12);
}
.strategy-icon.nist { background: linear-gradient(140deg, var(--teal-soft), #e9f7f4); color: var(--teal); box-shadow: inset 0 0 0 1px rgba(13,148,136,0.14); }
.strategy-icon svg { width: 30px; height: 30px; }
.strategy-card h3 { margin: 0; border-top: none; padding-top: 0; font-size: 1.4rem; }
.card-tag {
  display: inline-block; font-size: 0.66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 5px;
}
.card-tag.nist { color: var(--teal); }
.strategy-summary { color: var(--ink-soft); font-size: 0.97rem; margin: 8px 0 30px 74px; }

.question-block { margin-bottom: 26px; }
.question-block:last-child { margin-bottom: 0; }
.question-text { font-weight: 700; font-size: 0.99rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.option-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; margin-bottom: 7px; border-radius: var(--radius);
  border: 1.5px solid var(--line); cursor: pointer; font-size: 0.92rem;
  color: var(--ink-soft); transition: border-color .15s, background .15s, color .15s;
}
.option-row:hover { border-color: var(--accent-2); background: #fafaff; }
.option-row input { margin-top: 3px; accent-color: var(--accent); }
.option-row.selected { color: var(--accent-ink); font-weight: 600; border-color: var(--accent); background: var(--accent-soft); }

/* ============ Results header & tabs ============ */
.results-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px; margin: 44px 0 26px;
}
.results-header .kicker { color: var(--accent); }
.results-actions { display: flex; gap: 10px; }

/* Segmented pill tab control — the fresh look */
.result-tabs {
  display: inline-flex; gap: 4px; padding: 5px;
  background: #ebedf4; border-radius: 14px; margin-bottom: 30px; flex-wrap: wrap;
}
.tab-btn {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft); padding: 10px 20px; border-radius: 10px;
  transition: color .15s, background .15s, box-shadow .15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--accent-ink); background: var(--panel); box-shadow: var(--shadow-sm); }
.tab-panel.hidden { display: none; }
.print-only-heading { display: none; }

/* ============ Exec KPIs ============ */
.exec-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kpi {
  border-radius: var(--radius-lg); padding: 28px;
  color: #fff; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.kpi-risk { background: linear-gradient(150deg, #be123c 0%, #f43f5e 100%); }
.kpi-invest { background: linear-gradient(150deg, #4338ca 0%, #7c6cf5 100%); }
.kpi-return { background: linear-gradient(150deg, #0f766e 0%, #14b8a6 100%); }
.kpi-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; margin: 0 0 12px; font-weight: 700; position: relative; }
.kpi-value { font-family: var(--serif); font-weight: 700; font-size: 2.8rem; line-height: 1; margin: 0; position: relative; letter-spacing: -0.02em; }
.kpi-sub { font-size: 0.8rem; opacity: 0.88; margin: 13px 0 0; position: relative; line-height: 1.5; }

.board-narrative {
  background: linear-gradient(180deg, #fbfbfe, #f7f7fd);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg); padding: 26px 30px; margin-top: 20px;
}
.board-narrative .kicker { color: var(--accent); margin-bottom: 10px; }
.board-narrative p:last-child { margin: 0; font-size: 1.04rem; line-height: 1.72; color: #2a3047; }

.model-note { font-size: 0.78rem; color: var(--ink-faint); font-style: italic; margin-top: 18px; }

/* ============ Methodology explainer ============ */
.methodology { margin-top: 6px; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.method-steps li { background: linear-gradient(180deg, #fbfbfe, #f7f7fd); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.method-h { display: block; font-weight: 800; font-size: 0.92rem; letter-spacing: -0.01em; color: var(--accent-ink); margin-bottom: 8px; }
.method-steps p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--ink-soft); }
.method-steps b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============ Spend quadrant ============ */
.quadrant-wrap {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px;
}
.spend-quadrant { width: 100%; height: auto; }
.q-axis { stroke: var(--ink-soft); stroke-width: 1.5; }
.q-grid { stroke: var(--line-soft); stroke-width: 1; }
.q-divider { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 5 4; }
.q-zone { fill: var(--accent-soft); opacity: 0.4; }
.q-axis-label { fill: var(--ink-soft); font-size: 11px; font-family: var(--sans); font-weight: 700; }
.q-tick { fill: var(--ink-faint); font-size: 9.5px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.q-zone-label { fill: var(--ink-faint); font-size: 9.5px; font-family: var(--sans); font-weight: 800; letter-spacing: 0.04em; }
.q-zone-label.win { fill: var(--accent); }
.q-bubble { fill: var(--accent); opacity: 0.88; stroke: #fff; stroke-width: 2; transition: r .5s ease; cursor: pointer; }
.q-bubble.nist { fill: var(--teal); }
.q-bubble-label { fill: #fff; font-size: 11px; font-family: var(--sans); font-weight: 800; pointer-events: none; }

.quadrant-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-soft); }
.qleg-item { display: inline-flex; align-items: center; gap: 7px; }
.qleg-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.qleg-dot.e8 { background: var(--accent); }
.qleg-dot.nist { background: var(--teal); }
.qleg-bubble-key { color: var(--ink-faint); font-size: 1rem; }

.rank-chip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.78rem; }
.rank-chip.nist { background: var(--teal); }

/* ============ Priority table ============ */
.table-wrap { overflow-x: auto; }
.priority-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.priority-table th, .priority-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.priority-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 700; }
.priority-table tbody tr { transition: background .12s; }
.priority-table tbody tr:hover { background: #fafaff; }
.priority-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.cost-risk { color: var(--risk); }
.cost-invest { color: var(--invest); }
.roi-badge { display: inline-block; padding: 4px 11px; border-radius: 100px; font-size: 0.78rem; font-weight: 800; background: var(--ok-soft); color: var(--return); }

/* ============ Hero score cards ============ */
.hero-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nist-hero { grid-template-columns: 1fr 2fr; }
.hero-score-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 30px 24px; text-align: center; position: relative;
}
.nist-blurb { text-align: left; display: flex; align-items: center; }
.nist-blurb p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.overall-card {
  background:
    radial-gradient(400px 200px at 80% -20%, rgba(124,108,245,0.5), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, #232c4d 100%);
  color: #fff; border-color: var(--navy);
}
.overall-card .score-label { color: #c2c9e3; }

.score-ring { width: 100px; height: 100px; margin: 0 auto 4px; display: block; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 9; }
.ring-fill {
  fill: none; stroke: var(--accent-3); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(167,139,250,0.6));
}
#nist-ring-fill { stroke: var(--teal-2); filter: drop-shadow(0 0 6px rgba(20,184,166,0.55)); }
/* Overlay the text exactly over the 100px ring and stack the number above
   the "/100" unit, so even a 3-digit score (100) sits inside the circle. */
.ring-text {
  position: absolute; top: 30px; left: 0; right: 0; height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; font-family: var(--serif); line-height: 1;
}
.ring-text .score-big { font-size: 1.9rem; line-height: 1; color: #fff; font-weight: 700; }
.ring-text .score-unit { font-size: 0.72rem; color: #c2c9e3; margin-top: 3px; letter-spacing: 0.02em; }

.score-label { font-size: 0.78rem; color: var(--ink-soft); margin: 12px 0 4px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.score-big { font-family: var(--serif); font-size: 2.6rem; margin: 0; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.maturity-big { color: var(--accent); }
.score-sub { font-size: 0.8rem; color: var(--ink-soft); margin: 7px 0 0; }
#gap-count { color: var(--warn); }

/* ============ Radar ============ */
.radar-wrap {
  display: flex; align-items: center; gap: 34px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 30px;
}
.radar-chart { width: 100%; max-width: 340px; flex: 0 0 auto; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-area { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.5; opacity: 0; transition: opacity .7s ease; }
.radar-area.show { opacity: 0.7; }
.radar-area.nist { fill: var(--teal-soft); stroke: var(--teal); }
.radar-point { fill: var(--accent); }
.radar-point.nist { fill: var(--teal); }
.radar-label { font-size: 11px; fill: var(--ink-soft); font-family: var(--sans); font-weight: 700; }

.domain-legend { display: flex; flex-direction: column; gap: 15px; flex: 1; }
.legend-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.legend-row:last-child { border-bottom: none; padding-bottom: 0; }
.legend-name { font-weight: 700; font-size: 0.92rem; letter-spacing: -0.01em; }
.legend-desc { font-size: 0.78rem; color: var(--ink-soft); display: block; margin-top: 2px; }
.legend-score { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.nist-legend .legend-score { color: var(--teal); }

/* ============ Strategy bars ============ */
.strategy-bars { display: flex; flex-direction: column; gap: 12px; }
.strategy-bar-row {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 20px; display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 18px;
  transition: box-shadow .15s, transform .15s;
}
.strategy-bar-row:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.bar-name { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.bar-track { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; position: relative; }
.bar-target-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--navy); z-index: 2; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0%; transition: width .9s cubic-bezier(0.22, 1, 0.36, 1); }
.status-pill { display: inline-block; padding: 4px 13px; border-radius: 100px; font-size: 0.76rem; font-weight: 800; white-space: nowrap; }
.status-met { background: var(--ok-soft); color: var(--ok); }
.status-near { background: var(--warn-soft); color: var(--warn); }
.status-gap { background: var(--bad-soft); color: var(--bad); }

/* ============ Gaps list ============ */
.gaps-list { list-style: none; margin: 0; padding: 0; counter-reset: gap-counter; display: flex; flex-direction: column; gap: 14px; }
.gap-item {
  counter-increment: gap-counter; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px 26px 24px 60px; position: relative;
  transition: box-shadow .15s, transform .15s;
}
.gap-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gap-item::before {
  content: counter(gap-counter); position: absolute; left: 18px; top: 24px;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}
.gap-item.nist-gap::before { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.gap-title { font-weight: 800; font-size: 1.04rem; display: inline; letter-spacing: -0.015em; }
.gap-badge {
  font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 100px; margin-left: 9px; vertical-align: middle;
  background: var(--accent-soft); color: var(--accent-ink);
}
.gap-badge.nist { background: var(--teal-soft); color: var(--teal); }
.gap-meta { font-size: 0.8rem; color: var(--ink-soft); margin: 6px 0 14px; }
.gap-rec { font-size: 0.95rem; margin: 0; line-height: 1.6; }
.gap-rec-label { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); display: block; margin-bottom: 6px; }
.empty-gaps { color: var(--ok); font-weight: 700; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 60px; }
.site-footer p { font-size: 0.8rem; color: var(--ink-faint); margin: 0; line-height: 1.6; }

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .intro-features, .exec-kpis, .hero-score-grid, .nist-hero { grid-template-columns: 1fr; }
  .radar-wrap { flex-direction: column; }
  .strategy-bar-row { grid-template-columns: 1fr; gap: 10px; }
  .profile-options { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 2.3rem; }
  .masthead { padding: 64px 0 110px; }
  .intro-card { padding: 30px; margin-top: -84px; }
  .strategy-card { padding: 26px; }
  .strategy-summary { margin-left: 0; }
  .form-actions { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
  .result-tabs { display: flex; width: 100%; }
  .tab-btn { flex: 1; padding: 10px 8px; font-size: 0.82rem; }
}

/* ============ Print ============ */
@media print {
  body { background: #fff; }
  .masthead { background: none; color: var(--ink); padding: 10px 0; }
  .masthead::after, .masthead-glow { display: none; }
  .masthead .kicker { color: var(--accent); }
  .lede { color: var(--ink-soft); }
  .privacy-note { background: none; border: 1px solid var(--ok); color: var(--ok); }
  .no-print, #intro-panel, #profile-panel, #assessment-panel, .site-footer { display: none !important; }
  .panel.hidden#results-panel { display: block !important; }
  .tab-panel.hidden { display: block !important; }
  .print-only-heading { display: block; font-size: 1.5rem; }
  .tab-panel { page-break-before: always; }
  .tab-panel:first-of-type { page-break-before: avoid; }
  .kpi { color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .overall-card { background: var(--accent-soft) !important; color: var(--ink) !important; }
  .overall-card .score-label, .ring-text .score-big, .ring-text .score-unit { color: var(--ink) !important; }
  .hero-score-card, .gap-item, .strategy-bar-row, .radar-wrap, .quadrant-wrap, .board-narrative, .kpi { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
