:root {
  --blue: #174f8f;
  --blue-dark: #0e3f75;
  --red: #d61c2b;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --soft: #f4f7fb;
  --white: #ffffff;
  --green: #1f8f62;
  --amber: #c98400;
  --shadow: 0 18px 50px rgba(14, 63, 117, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(214,28,43,.06) 0, rgba(214,28,43,0) 220px),
    var(--soft);
}
button, textarea { font: inherit; }
button { cursor: pointer; }

.page-shell { min-height: 100vh; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 54px);
  background: var(--white);
  border-bottom: 5px solid var(--red);
}
.brand-name { color: var(--blue); font-weight: 900; letter-spacing: .06em; font-size: 1.35rem; line-height: 1; }
.brand-sub { color: var(--blue); font-weight: 700; font-size: .66rem; letter-spacing: .12em; margin-top: 4px; }
.brand-tagline { color: var(--red); font-weight: 800; text-align: right; }

.app-card {
  width: min(980px, calc(100% - 32px));
  margin: 38px auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section { padding: clamp(28px, 5vw, 56px); }
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  right: -90px; top: -70px;
  background: rgba(255,255,255,.06);
}
.eyebrow { color: var(--red); font-weight: 900; letter-spacing: .09em; text-transform: uppercase; font-size: .82rem; }
.hero .eyebrow { color: #fff; opacity: .85; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.05; }
h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
p { line-height: 1.62; margin: 0 0 16px; }
.lede { font-size: 1.16rem; max-width: 760px; }

.split-intro { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin: 28px 0; }
.info-card { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.info-card strong { color: var(--blue); display: block; margin-bottom: 7px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 850;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: white; }
.btn-secondary { background: var(--blue); color: white; }
.btn-ghost { background: var(--soft); color: var(--blue); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.progress-wrap { margin-bottom: 28px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 750; font-size: .9rem; margin-bottom: 8px; }
.progress { height: 11px; background: #e8edf4; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--red), var(--blue)); border-radius: inherit; transition: width .25s ease; }
.question-card { border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 40px); }
.question-number { color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.question-text { font-size: clamp(1.45rem, 3.5vw, 2.1rem); font-weight: 850; line-height: 1.25; margin-bottom: 30px; }
.scale-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.scale-option {
  padding: 18px 10px;
  min-height: 112px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 800;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.scale-option .score-num { font-size: 1.65rem; color: var(--blue); }
.scale-option small { color: var(--muted); font-weight: 700; }
.scale-option.selected { border-color: var(--red); background: rgba(214,28,43,.06); box-shadow: 0 0 0 3px rgba(214,28,43,.08); }

.result-hero { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: white; padding: clamp(32px, 5vw, 54px); }
.score-big { font-size: clamp(3.4rem, 9vw, 6.7rem); font-weight: 950; letter-spacing: -.05em; line-height: .92; }
.score-big span { font-size: .35em; opacity: .75; letter-spacing: 0; }
.score-percent { font-weight: 800; margin-top: 10px; opacity: .85; }
.result-band { margin-top: 22px; display: inline-block; background: white; color: var(--blue); border-radius: 999px; padding: 9px 14px; font-weight: 900; }
.result-copy { max-width: 800px; margin-top: 18px; }

.results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.metric-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: white; }
.metric-label { color: var(--muted); font-size: .87rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-score { font-size: 2rem; font-weight: 950; color: var(--blue); margin-top: 4px; }

.bar-chart { margin-top: 24px; display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 220px 1fr 78px; align-items: center; gap: 14px; }
.bar-label { font-weight: 850; }
.bar-track { height: 18px; border-radius: 999px; background: #e8edf4; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--blue)); transition: width .8s ease; }
.bar-value { font-weight: 900; color: var(--blue); text-align: right; }

.gap-card { margin-top: 28px; border-left: 7px solid var(--red); background: var(--soft); padding: 22px 24px; border-radius: 14px; }
.gap-card .gap-number { color: var(--red); font-size: 1.25rem; font-weight: 950; }

.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 22px; }
.profile-group { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.profile-group h3 { background: var(--blue); color: white; padding: 16px 18px; margin: 0; }
.profile-row { display: grid; grid-template-columns: 1fr 86px; gap: 14px; align-items: start; padding: 15px 18px; border-top: 1px solid var(--line); }
.profile-row:first-of-type { border-top: 0; }
.profile-score { text-align: right; font-weight: 900; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: .73rem; font-weight: 900; margin-top: 5px; }
.badge-strength { background: rgba(31,143,98,.12); color: var(--green); }
.badge-develop { background: rgba(201,132,0,.14); color: var(--amber); }
.badge-priority { background: rgba(214,28,43,.1); color: var(--red); }

.priority-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 16px; }
.priority-card h3 { color: var(--blue); margin-bottom: 8px; }
.priority-card .statement { font-weight: 850; font-size: 1.07rem; }
.priority-meta { color: var(--red); font-weight: 900; margin: 8px 0 18px; }
.callout { background: var(--soft); border-radius: 14px; padding: 15px 17px; margin-top: 12px; }
.callout strong { color: var(--blue); }

.action-fields { display: grid; gap: 14px; margin-top: 20px; }
.action-field label { display: block; font-weight: 850; margin-bottom: 8px; }
textarea { width: 100%; min-height: 94px; resize: vertical; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); background: white; }
textarea:focus { outline: 3px solid rgba(23,79,143,.12); border-color: var(--blue); }

.divider { height: 1px; background: var(--line); margin: 34px 0; }
.kicker { color: var(--red); font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.footer-message { background: var(--blue); color: white; text-align: center; padding: 34px 24px; }
.footer-message strong { display: block; font-size: 1.45rem; margin-top: 8px; }
.site-footer { text-align: center; color: var(--blue); font-weight: 900; letter-spacing: .08em; padding: 0 18px 34px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .brand-tagline { font-size: .84rem; max-width: 180px; }
  .split-intro, .results-grid, .profile-grid { grid-template-columns: 1fr; }
  .scale-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bar-row { grid-template-columns: 1fr 58px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bar-value { grid-column: 2; grid-row: 1; }
}

@media print {
  body { background: white; }
  .site-header, .site-footer, .btn-row, .no-print { display: none !important; }
  .app-card { width: 100%; margin: 0; box-shadow: none; border-radius: 0; }
  .section, .result-hero { padding: 20px; }
  .priority-card, .metric-card, .profile-group, .gap-card { break-inside: avoid; }
}


.participant-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:24px; }
.field-group label { display:block; font-weight:850; margin-bottom:8px; }
.field-group input { width:100%; border:1.5px solid var(--line); border-radius:14px; padding:14px; font:inherit; color:var(--ink); background:#fff; }
.field-group input:focus { outline:3px solid rgba(23,79,143,.12); border-color:var(--blue); }
.field-group small { display:block; margin-top:7px; color:var(--muted); line-height:1.4; }
.form-error { color:var(--red); font-weight:800; margin-top:12px; }
.result-name { font-size:1.25rem; font-weight:900; margin:8px 0 18px; }
.delivery-card { margin-top:28px; padding:24px; border:1px solid var(--line); border-radius:18px; background:var(--soft); }
.delivery-card .btn-row { margin-top:16px; }
.delivery-status { min-height:1.4em; margin-top:12px; color:var(--blue); font-weight:800; }

.pdf-report { position:absolute; left:0; top:0; z-index:999999; width:190mm; background:#fff; color:#172033; font-family:Arial,sans-serif; font-size:11pt; line-height:1.45; box-shadow:0 0 0 100vmax #fff; }
.pdf-report h1 { font-size:32pt; color:#174f8f; margin:16px 0 10px; }
.pdf-report h2 { font-size:20pt; color:#174f8f; margin:0 0 14px; }
.pdf-report h3 { font-size:13pt; color:#d61c2b; margin:14px 0 8px; }
.pdf-report p { margin:0 0 10px; }
.pdf-cover { min-height:245mm; padding:22mm 14mm; border-top:10mm solid #d61c2b; border-bottom:10mm solid #174f8f; display:flex; flex-direction:column; justify-content:center; }
.pdf-brand { font-size:20pt; font-weight:900; letter-spacing:.08em; color:#174f8f; }
.pdf-tagline { color:#d61c2b; font-weight:700; margin-top:4px; }
.pdf-section { padding:8mm 5mm; }
.pdf-score { font-size:34pt; font-weight:900; color:#174f8f; margin:10px 0; }
.pdf-score span { font-size:15pt; color:#d61c2b; }
.pdf-two-col { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0 20px; }
.pdf-two-col > div { border:1px solid #d8dee9; border-radius:8px; padding:12px; }
.pdf-mini-score { display:inline-block; margin-top:6px; font-size:18pt; font-weight:900; color:#174f8f; }
.pdf-profile-row { display:grid; grid-template-columns:1fr 50px; gap:12px; padding:7px 0; border-bottom:1px solid #e5e7eb; }
.pdf-profile-row strong { text-align:right; color:#174f8f; }
.pdf-box { border:1px solid #d8dee9; border-left:5px solid #d61c2b; border-radius:8px; padding:12px; margin:10px 0; break-inside:avoid; }
.pdf-note { margin-top:12px; color:#667085; font-size:9pt; }
.pdf-final { margin-top:28px; background:#174f8f; color:#fff; padding:18px; text-align:center; font-size:18pt; font-weight:900; }
.pdf-final span { font-size:11pt; font-weight:700; }
.page-break-before { break-before:page; page-break-before:always; }

@media (max-width:760px) { .participant-form { grid-template-columns:1fr; } }
