:root {
  --ink: #10243a;
  --ink-soft: #506174;
  --paper: #f4f5f3;
  --surface: #ffffff;
  --line: #d8dee3;
  --line-strong: #b9c4ce;
  --blue: #0878c9;
  --blue-dark: #07578f;
  --blue-pale: #e8f4fc;
  --navy: #0c2238;
  --green: #187a58;
  --green-pale: #e6f4ed;
  --amber: #ad6700;
  --amber-pale: #fff3d9;
  --orange: #bf4b19;
  --orange-pale: #ffede5;
  --red: #b42332;
  --red-pale: #fdebee;
  --shadow: 0 18px 60px rgba(13, 36, 58, 0.08);
  --radius: 18px;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  line-height: 1.05;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--navy);
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: #a9bbcb; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.utility-label { color: #a9bbcb; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.hero {
  padding: 86px 0 92px;
  color: #fff;
  background: var(--navy);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 72px;
  align-items: end;
}

.eyebrow,
.section-index,
.scope-number,
.card-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.scope-number { color: #7bc8f5; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
}

h1 span { color: #7bc8f5; }

.lede {
  max-width: 690px;
  margin-bottom: 36px;
  color: #ccdae5;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.scan-form { max-width: 760px; }
.scan-form > label { display: block; margin-bottom: 9px; color: #dce8f0; font-size: 13px; font-weight: 750; }

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(0,0,0,.18);
}

.input-row:focus-within { outline: 3px solid rgba(123, 200, 245, .32); }

.input-row input {
  min-width: 0;
  padding: 13px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.input-row button,
.button-primary,
.button-secondary {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.input-row button,
.button-primary { color: #fff; background: var(--blue); }
.input-row button:hover,
.button-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #7bc8f5; outline-offset: 2px; }
button:disabled { cursor: wait; opacity: .65; transform: none; }

.form-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: #9fb2c2;
  font-size: 12px;
}

.form-error { color: #ffc2c7; font-weight: 700; text-align: right; }
.authorization-note { max-width: 700px; margin: 17px 0 0; color: #8fa5b6; font-size: 12px; }

.scope-card {
  padding: 30px;
  background: #132d46;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
}

.scope-card h2 { margin-bottom: 22px; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.scope-card ul { margin: 0; padding: 0; list-style: none; }
.scope-card li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 15px 0; color: #d3e0e9; border-top: 1px solid rgba(255,255,255,.11); font-size: 14px; line-height: 1.45; }
.scope-card li span { color: #7bc8f5; font-size: 11px; font-weight: 850; }
.scope-footnote { margin: 18px 0 0; color: #91a9ba; font-size: 11px; }

.progress-section { padding: 54px 0; background: #e9edef; }
.progress-card { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 64px; align-items: center; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.progress-card h2 { margin-bottom: 6px; font-size: 27px; letter-spacing: -.03em; }
.progress-card p:not(.eyebrow) { margin: 0; color: var(--ink-soft); }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.progress-steps li { color: #8a98a5; font-size: 11px; font-weight: 750; text-align: center; }
.progress-steps span { display: grid; width: 30px; height: 30px; margin: 0 auto 7px; place-items: center; background: #eef1f3; border: 1px solid var(--line); border-radius: 50%; }
.progress-steps li.active { color: var(--blue-dark); }
.progress-steps li.active span { color: #fff; background: var(--blue); border-color: var(--blue); }
.progress-steps li.done { color: var(--green); }
.progress-steps li.done span { color: #fff; background: var(--green); border-color: var(--green); }
.progress-track { grid-column: 1 / -1; height: 4px; overflow: hidden; background: #e9edf0; border-radius: 10px; }
.progress-track span { display: block; width: 12%; height: 100%; background: var(--blue); transition: width .7s ease; }

.results { padding: 66px 0 84px; background: var(--paper); }
.results-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.results-header h2 { margin-bottom: 7px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.045em; }
.report-meta { margin: 0; color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover { background: #edf1f3; transform: translateY(-1px); }

.overview-grid { display: grid; grid-template-columns: minmax(360px, .9fr) 1.1fr; gap: 18px; }
.score-card { display: grid; grid-template-columns: 154px 1fr; gap: 26px; align-items: center; min-height: 236px; padding: 34px; color: #fff; background: var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); }
.score-ring { display: grid; width: 146px; height: 146px; place-items: center; border: 12px solid #557086; border-radius: 50%; }
.score-ring > div { text-align: center; }
.score-ring strong { display: block; font-size: 48px; line-height: .95; letter-spacing: -.055em; }
.score-ring span { color: #a9bdcd; font-size: 12px; }
.score-card .card-kicker { color: #9eb2c2; }
.score-card h3 { margin-bottom: 8px; font-size: 35px; letter-spacing: -.035em; }
.score-card p:last-child { margin: 0; color: #b8c8d4; font-size: 14px; line-height: 1.5; }
.score-card[data-risk="low"] .score-ring { border-color: #4fbb92; }
.score-card[data-risk="moderate"] .score-ring { border-color: #e3a62e; }
.score-card[data-risk="high"] .score-ring { border-color: #ed7340; }
.score-card[data-risk="critical"] .score-ring { border-color: #e35866; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.metric-card { min-height: 109px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.metric-card strong { display: block; margin-bottom: 2px; font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }
.metric-card span { color: var(--ink-soft); font-size: 13px; }

.report-section { margin-top: 18px; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.section-heading h3 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--ink-soft); font-size: 13px; text-align: right; }
.section-index { margin-bottom: 7px; }

.findings-list { display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: start; padding: 19px 0; border-top: 1px solid var(--line); }
.finding:first-child { border-top: 0; }
.finding-severity { display: inline-block; width: max-content; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.severity-critical, .severity-high { color: var(--red); background: var(--red-pale); }
.severity-medium { color: var(--amber); background: var(--amber-pale); }
.severity-low, .severity-info { color: var(--green); background: var(--green-pale); }
.finding h4 { margin: 0 0 5px; font-size: 16px; line-height: 1.35; }
.finding p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.finding-points { color: var(--red); font-size: 13px; font-weight: 850; white-space: nowrap; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #6a7885; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
td { font-size: 13px; }
td .tracker-evidence { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 10px; font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-block; padding: 4px 8px; color: var(--ink-soft); background: #eef1f3; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-pill.before { color: var(--red); background: var(--red-pale); }
.status-pill.after { color: var(--amber); background: var(--amber-pale); }
.empty-state { margin: 12px 0 0; padding: 18px; color: var(--ink-soft); background: #f4f6f7; border-radius: 10px; font-size: 14px; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-section.compact { margin-top: 18px; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 13px 0; border-top: 1px solid var(--line); }
.detail-list > div:first-child { border-top: 0; }
.detail-list dt { color: var(--ink-soft); font-size: 13px; }
.detail-list dd { margin: 0; font-size: 13px; font-weight: 800; text-align: right; }
.value-good { color: var(--green); }
.value-caution { color: var(--amber); }
.value-risk { color: var(--red); }

.recommendations { background: var(--navy); border-color: var(--navy); color: #fff; }
.recommendations .section-heading > p { color: #a9bdcc; }
.recommendations .section-index { color: #7bc8f5; }
.recommendations-list { margin: 0; padding: 0; list-style: none; counter-reset: recommendations; }
.recommendations-list li { counter-increment: recommendations; display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 18px 0; color: #d7e2ea; border-top: 1px solid rgba(255,255,255,.12); }
.recommendations-list li::before { content: counter(recommendations, decimal-leading-zero); color: #7bc8f5; font-size: 12px; font-weight: 850; }
.recommendations-list strong { display: block; margin-bottom: 4px; color: #fff; }
.recommendations-list p { margin: 0; color: #afc0cc; font-size: 13px; }

.technical-details { margin-top: 18px; padding: 0 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.technical-details summary { padding: 20px 0; font-weight: 800; cursor: pointer; }
.technical-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 0 24px; }
.technical-item { padding: 15px; background: #f4f6f7; border-radius: 10px; }
.technical-item strong { display: block; margin-bottom: 4px; font-size: 12px; }
.technical-item span { color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.report-disclaimer { margin-top: 18px; padding: 22px 26px; background: #e9edef; border-left: 4px solid var(--line-strong); }
.report-disclaimer strong { font-size: 13px; }
.report-disclaimer p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }

.method-section { padding: 78px 0; color: #fff; background: #14324d; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.method-grid h2 { max-width: 480px; margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.method-section .eyebrow { color: #7bc8f5; }
.method-copy { color: #c2d0da; font-size: 16px; }
.method-copy p:last-child { margin-bottom: 0; }

footer { color: #8fa4b4; background: var(--navy); font-size: 12px; }

@media (max-width: 940px) {
  .hero-grid, .overview-grid, .method-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .scope-card { max-width: 680px; }
  .progress-card { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: 1fr; gap: 0; }
  .results-header, .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
}

@media (max-width: 660px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .utility-label { display: none; }
  .hero { padding: 62px 0; }
  h1 { font-size: 49px; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { width: 100%; }
  .form-meta { display: block; }
  .form-error { display: block; margin-top: 5px; text-align: left; }
  .scope-card, .progress-card, .report-section { padding: 24px 20px; }
  .progress-steps { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .score-card { grid-template-columns: 1fr; text-align: center; }
  .score-ring { margin: 0 auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 17px; }
  .finding { grid-template-columns: 1fr; gap: 8px; }
  .finding-points { grid-row: 1; text-align: right; }
  .report-actions { width: 100%; justify-content: flex-start; }
  .report-actions button { flex: 1 1 140px; }
  .technical-content { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
}

@media print {
  body { color: #000; background: #fff; font-size: 11pt; }
  .site-header, .hero, .progress-section, .method-section, footer, .report-actions, .technical-details { display: none !important; }
  .results { display: block !important; padding: 0; }
  .shell { width: 100%; }
  .results-header { margin-bottom: 16px; }
  .overview-grid, .two-column { grid-template-columns: 1fr 1fr; }
  .score-card, .recommendations { color: #000; background: #fff; border: 1px solid #aaa; box-shadow: none; }
  .score-card p:last-child, .recommendations-list li, .recommendations-list strong, .recommendations-list p { color: #333; }
  .report-section { break-inside: avoid; box-shadow: none; }
  .recommendations-list li { border-color: #ccc; }
}
