:root {
  --teal: #005f6b;
  --teal-2: #007b8a;
  --navy: #003057;
  --navy-2: #001f3a;
  --blue: #2563eb;
  --green: #0f766e;
  --amber: #d97706;
  --red: #b42318;
  --ink: #1a2330;
  --muted: #5f6b7a;
  --line: #dce2ea;
  --soft: #f6f8fb;
  --soft-2: #eef3f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .07);
  --shadow-md: 0 8px 24px rgba(0, 48, 87, .11);
  --radius: 8px;
  --font: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--navy), var(--teal));
  display: inline-grid;
  place-items: center;
  color: var(--white);
  font-size: .76rem;
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #334155;
  font-size: .88rem;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft-2);
  color: var(--navy);
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(0, 31, 58, .98), rgba(0, 48, 87, .96) 48%, rgba(0, 95, 107, .94)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .12));
  border-radius: var(--radius);
  color: var(--white);
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-md);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 42%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 16px,
    rgba(255, 255, 255, .05) 16px,
    rgba(255, 255, 255, .05) 18px
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #7dd3e0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 14px;
  color: inherit;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .82);
  max-width: 680px;
  font-size: 1.05rem;
}

.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.hero .button.primary {
  background: #ffffff;
  color: var(--navy);
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.hero .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
}

.button.ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--line);
}

.button.danger {
  color: var(--red);
  background: #fff7f7;
  border-color: #ffd7d7;
}

.button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

.section-kicker {
  color: var(--teal);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 850;
  margin: 0 0 5px;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.24;
}

.lede {
  color: var(--muted);
  margin: 7px 0 0;
  max-width: 820px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.card,
.panel,
.metric-card,
.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card,
.resource-card {
  padding: 18px;
}

.panel {
  padding: 22px;
}

.card-label {
  color: var(--teal);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
  margin-bottom: 8px;
}

.card p,
.resource-card p,
.panel p {
  margin: 0;
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border-top: 3px solid var(--teal);
}

.metric-value {
  display: block;
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1.1;
}

.metric-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}

.score-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.score-ring {
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  background: conic-gradient(var(--teal) calc(var(--score, 0) * 1%), #e8eef4 0);
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: inherit;
  background: var(--white);
}

.score-ring-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.score-number {
  display: block;
  font-size: 3rem;
  color: var(--navy);
  font-weight: 850;
  line-height: .95;
}

.score-caption {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
}

.bar-label,
.bar-value {
  color: #344154;
  font-size: .88rem;
  font-weight: 700;
}

.bar-track {
  height: 11px;
  background: #e8eef4;
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--teal), var(--blue));
  border-radius: inherit;
}

.stage-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
  gap: 10px;
  position: relative;
}

.stage-node {
  position: relative;
  min-height: 124px;
  border: 1px solid var(--line);
  border-top: 3px solid #bac5d2;
  border-radius: var(--radius);
  padding: 13px;
  background: var(--white);
}

.stage-node.active {
  border-color: var(--teal);
  border-top-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(0, 95, 107, .12);
}

.stage-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: var(--soft-2);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 850;
  margin-bottom: 9px;
}

.stage-node.active .stage-id {
  background: var(--teal);
  color: var(--white);
}

.stage-name {
  color: var(--navy);
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 6px;
}

.stage-meta {
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.35;
}

.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  min-height: 26px;
  padding: 4px 9px;
  font-size: .76rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--soft);
  color: #334155;
}

.status-pill.success {
  color: #0b5f57;
  background: #e8faf7;
  border-color: #b8ece4;
}

.status-pill.warning {
  color: #92400e;
  background: #fff8ed;
  border-color: #f5ddb0;
}

.status-pill.danger {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.wizard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.wizard-sidebar {
  position: sticky;
  top: 84px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: #e8eef4;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.question-card {
  min-height: 430px;
  display: grid;
  align-content: center;
}

.question-number {
  color: var(--teal);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 850;
  margin-bottom: 10px;
}

.question-title {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.14;
  margin: 0 0 12px;
  color: var(--navy);
}

.help-text {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 760px;
}

.field-control {
  width: min(720px, 100%);
}

.field-control input,
.field-control select,
.field-control textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 12px 13px;
  min-height: 46px;
  background: var(--white);
  color: var(--ink);
}

.field-control input:focus,
.field-control select:focus,
.field-control textarea:focus {
  outline: 3px solid rgba(0, 95, 107, .16);
  border-color: var(--teal);
}

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

.check-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  cursor: pointer;
}

.check-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.form-error {
  color: var(--red);
  font-weight: 700;
  min-height: 24px;
  margin: 10px 0 0;
}

.timeline {
  display: grid;
  gap: 14px;
  counter-reset: plan;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
}

.timeline-window {
  color: var(--teal);
  font-weight: 850;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344154;
}

.checklist input {
  margin-top: 4px;
  accent-color: var(--teal);
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-bars {
  display: grid;
  gap: 13px;
}

.compare-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 50px;
  gap: 12px;
  align-items: center;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--soft);
  text-align: center;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  padding: 22px 0 36px;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.print-only {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .wizard-layout,
  .score-hero {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .page {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .hero {
    padding: 24px 18px;
  }

  .grid.two,
  .grid.three,
  .metric-strip,
  .stage-map,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .bar-row,
  .compare-row,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .question-card {
    min-height: 0;
  }

  .section-head {
    display: block;
  }
}

@media print {
  .topbar,
  .footer,
  .no-print,
  .button {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .panel,
  .card,
  .metric-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .print-only {
    display: block;
  }
}
