:root {
  color-scheme: light;
  --bg: #eef3f3;
  --ink: #13211f;
  --ink-soft: #30423f;
  --muted: #667773;
  --line: #d5dfde;
  --surface: #ffffff;
  --surface-soft: #f5f8f7;
  --inero-blue: #045290;
  --inero-blue-dark: #02365f;
  --inero-blue-soft: #e6f1f8;
  --inero-blue-mid: #2d78ad;
  --steel: #dfe8e7;
  --gold: #c8972c;
  --danger: #b73535;
  --shadow: 0 22px 55px rgba(4, 82, 144, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(4, 82, 144, 0.1), rgba(4, 82, 144, 0) 360px),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--inero-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--inero-blue-mid);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: rgba(4, 82, 144, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero,
.quick-stats,
.assessment,
.summary-section,
.about-section,
.faq-section,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 142px;
  height: auto;
  object-fit: contain;
}

.brand span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

nav,
.site-footer div:last-child {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
  padding: 74px 0 48px;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--inero-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--inero-blue);
}

h1,
h2,
h3,
p,
summary,
label,
td,
th {
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.85rem, 6vw, 5.8rem);
  line-height: 0.96;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--inero-blue);
  box-shadow: 0 10px 24px rgba(4, 82, 144, 0.24);
}

.button-secondary {
  color: var(--inero-blue-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(2, 54, 95, 0.97), rgba(4, 82, 144, 0.94)),
    var(--inero-blue-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel span,
.quick-stats span,
.profile-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.68);
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -34px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-stats div {
  padding: 20px;
  background: var(--surface);
}

.quick-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.assessment,
.summary-section,
.about-section,
.faq-section {
  padding: 64px 0;
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.section-heading p:last-child {
  color: var(--muted);
}

.form-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.input-panel,
.criterion,
article,
details,
.table-wrap {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(4, 82, 144, 0.06);
}

.input-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.benchmark-panel {
  border-color: rgba(4, 82, 144, 0.24);
  background:
    linear-gradient(90deg, rgba(230, 241, 248, 0.9), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.input-panel h3,
.input-panel p {
  margin: 0;
}

.input-panel h3 {
  font-size: 1.25rem;
}

.input-panel p,
article p,
details p,
.criterion-copy,
.summary-note {
  color: var(--muted);
}

.field-grid,
.check-grid {
  display: grid;
  gap: 14px;
}

.field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

input[type="number"],
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c8d5d3;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(4, 82, 144, 0.04);
}

input[type="number"]:focus,
select:focus {
  border-color: var(--inero-blue);
}

.benchmark-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}

.profile-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat {
  min-height: 92px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(4, 82, 144, 0.16);
  border-radius: 6px;
}

.profile-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.22;
}

.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--inero-blue);
  flex: 0 0 auto;
}

.criteria-list {
  display: grid;
  gap: 18px;
}

.criterion {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(260px, 0.9fr) minmax(300px, 1.15fr);
  gap: 16px;
  padding: 16px;
}

.criterion-info {
  padding: 18px;
  background:
    linear-gradient(180deg, #f7faf9, #eef5f4);
  border: 1px solid #dce7e5;
  border-radius: 6px;
}

.criterion-info h3,
.criterion-info p,
.result-card h4,
.result-card p {
  margin: 0;
}

.criterion-copy {
  margin-top: 12px;
  font-size: 0.92rem;
}

.criterion-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.criterion-title-row h3 {
  margin-bottom: 0;
}

.info-button,
.modal-close {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.info-button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--inero-blue);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(4, 82, 144, 0.18);
}

.info-button:hover,
.info-button:focus-visible {
  background: var(--inero-blue-dark);
}

.results {
  display: grid;
  gap: 12px;
}

.results > h3 {
  margin: 0;
  font-size: 1rem;
}

.result-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-card {
  min-height: 124px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.result-card h4 {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--inero-blue-dark);
  background: #dfeeed;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 900;
}

.grade-3 {
  color: #183c1d;
  background: #dff1df;
}

.grade-2 {
  color: #1d5270;
  background: #dcecf6;
}

.grade-1 {
  color: #7b5a0a;
  background: #f5e8c6;
}

.grade-0 {
  color: #fff;
  background: var(--danger);
}

.grade-missing {
  min-width: 110px;
  color: var(--muted);
  background: var(--steel);
  font-size: 0.82rem;
}

.score {
  color: var(--inero-blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.range-table,
table {
  width: 100%;
  border-collapse: collapse;
}

.range-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.range-table th,
.range-table td,
th,
td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.range-table th,
th {
  color: var(--ink);
  background: #f2f6f5;
  font-weight: 900;
}

.range-table tr:last-child td,
tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  min-width: 900px;
}

.summary-note {
  max-width: 600px;
}

.summary-controls {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin: -8px 0 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(4, 82, 144, 0.06);
}

.summary-controls p {
  margin: 0;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 26, 44, 0.56);
}

.modal-backdrop[hidden] {
  display: none;
}

.criteria-modal {
  position: relative;
  width: min(100%, 760px);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(1, 26, 44, 0.32);
}

.criteria-modal h2 {
  margin: 0 44px 16px 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.criteria-modal p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--inero-blue-dark);
  background: var(--steel);
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fff;
  background: var(--inero-blue);
}

.modal-example {
  margin: 18px 0;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-example strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.modal-example p {
  margin: 0;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 30px;
  padding: 5px 10px;
  color: #fff;
  background: var(--inero-blue);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.priority-badge.priority-medium {
  color: var(--inero-blue-dark);
  background: var(--inero-blue-soft);
  border: 1px solid rgba(4, 82, 144, 0.18);
}

.priority-badge.priority-low {
  color: var(--muted);
  background: var(--steel);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

article {
  padding: 24px;
}

article h3 {
  margin: 0 0 10px;
}

article p {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer a {
  padding: 8px 0;
  color: var(--inero-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-footer div:last-child {
  align-content: flex-start;
  justify-content: flex-end;
}

.not-found {
  min-height: 100vh;
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  display: grid;
  align-content: center;
}

@media (max-width: 980px) {
  .hero,
  .input-panel,
  .criterion,
  .about-grid,
  .benchmark-grid,
  .summary-controls {
    grid-template-columns: 1fr;
  }

  .quick-stats,
  .field-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 16px;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand span {
    padding-left: 0;
    border-left: 0;
  }

  .brand img {
    width: 128px;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 34px;
  }

  .hero,
  .quick-stats,
  .assessment,
  .summary-section,
  .about-section,
  .faq-section,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: 2.42rem;
  }

  .hero-panel,
  .input-panel,
  .criterion,
  article,
  details {
    padding: 16px;
  }

  .profile-card,
  .result-pair,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .site-footer div:last-child {
    justify-content: flex-start;
  }
}
