:root {
  --color-primary: #19215b;
  --color-primary-soft: #96d1f1;
  --color-action: #d7fa53;
  --color-action-alt: #b8cd14;
  --color-warning: #f76a0c;
  --color-text: #222222;
  --color-muted: #626262;
  --color-border: #e1e1e1;
  --color-surface: #ffffff;
  --color-background: #f7f7f7;
  --font-heading: Gotham, "Arial Bold", Arial, sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  background: var(--color-primary);
  color: #fff;
  padding: 16px 20px;
}

.topbar-inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 18px;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-cintel {
  background: #fff;
  border-radius: 4px;
  max-height: 34px;
  padding: 5px 8px;
  width: 132px;
}

.brand-logo-center {
  max-height: 42px;
  width: 220px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 20px 48px;
}

.narrow {
  max-width: 760px;
}

.hero {
  align-items: end;
  background: var(--color-primary);
  color: #fff;
  display: grid;
  min-height: 360px;
  padding: 36px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0 0 14px;
  max-width: 850px;
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  margin: 0 0 24px;
  max-width: 760px;
}

.section {
  padding: 28px 0;
}

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

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

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
}

.panel-title {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-title.compact {
  align-items: center;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

h2 {
  color: var(--color-primary);
  font-size: 28px;
}

h3 {
  color: var(--color-primary);
  font-size: 20px;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--color-muted);
}

.small {
  font-size: 14px;
}

.chip {
  background: rgba(150, 209, 241, 0.28);
  border-radius: 999px;
  color: var(--color-primary);
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.status-low {
  background: #ffe5e1;
  color: #9b271d;
}

.status-mid {
  background: #fff3c4;
  color: #765300;
}

.status-high {
  background: #dff7df;
  color: #17652d;
}

.button {
  align-items: center;
  background: var(--color-action);
  border: 0;
  border-radius: 8px;
  color: var(--color-text);
  display: inline-flex;
  font-family: var(--font-heading);
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

.button.warning {
  background: var(--color-warning);
  color: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
}

.field input,
.field select {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

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

.examples {
  color: var(--color-muted);
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  align-items: start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 34px 1fr;
  min-height: 58px;
  padding: 13px 14px;
  text-align: left;
  width: 100%;
}

.option.selected {
  background: var(--color-action);
  border-color: var(--color-primary);
}

.score-badge {
  align-items: center;
  background: var(--color-primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: var(--font-heading);
  height: 28px;
  justify-content: center;
  width: 28px;
}

.progress {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.progress div {
  background: var(--color-action);
  height: 100%;
}

.progress div.status-low {
  background: #f47b6f;
}

.progress div.status-mid {
  background: #f4c542;
}

.progress div.status-high {
  background: #42b66f;
}

.kpi {
  display: grid;
  gap: 4px;
}

.kpi strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 32px;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--color-border);
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 13px;
}

.radar-wrap {
  align-items: center;
  display: grid;
  justify-items: center;
}

.radar-layout {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 360px) 1fr;
}

.radar-legend {
  display: grid;
  gap: 10px;
}

.radar-legend div {
  align-items: baseline;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  gap: 8px;
  grid-template-columns: 44px 1fr;
  padding-bottom: 8px;
}

.radar-legend strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.executive-summary {
  display: grid;
  gap: 12px;
}

.executive-summary > div {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.executive-summary strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.ladder {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 440px;
  overflow: visible;
  padding-top: 18px;
}

.ladder-step {
  align-content: end;
  align-items: end;
  border: 1px solid currentColor;
  border-bottom-width: 6px;
  border-radius: 8px 8px 0 0;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  position: relative;
}

.ladder-step:nth-child(1) {
  height: 235px;
}

.ladder-step:nth-child(2) {
  height: 265px;
}

.ladder-step:nth-child(3) {
  height: 295px;
}

.ladder-step:nth-child(4) {
  height: 325px;
}

.ladder-step:nth-child(5) {
  height: 355px;
}

.ladder-step:nth-child(6) {
  height: 385px;
}

.ladder-riser {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 13px;
  justify-content: center;
  padding: 7px 9px;
  width: fit-content;
}

.ladder h4,
.gap-item h4 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 15px;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}

.ladder p,
.ladder span {
  font-size: 12px;
  line-height: 1.32;
  margin: 0;
  overflow-wrap: anywhere;
}

.recommendation-card {
  display: grid;
  gap: 12px;
}

.recommendation-detail {
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 2px;
  padding-top: 12px;
}

.recommendation-detail p {
  margin-bottom: 6px;
}

.gap-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.gap-item {
  align-items: start;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 14px;
}

.notice {
  background: rgba(150, 209, 241, 0.2);
  border-left: 4px solid var(--color-primary-soft);
  padding: 14px;
}

.warning-note {
  background: rgba(247, 106, 12, 0.08);
  border-left: 4px solid var(--color-warning);
  padding: 14px;
}

@media (max-width: 780px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .brand-logo-cintel {
    width: 124px;
  }

  .brand-logo-center {
    width: 210px;
  }

  .hero {
    min-height: 430px;
    padding: 28px 22px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .radar-layout {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 20px 14px 40px;
  }

  .panel-title {
    display: grid;
  }

  .ladder {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ladder-step {
    height: auto !important;
    min-height: 108px !important;
  }
}

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

  body {
    background: #fff;
  }

  .page {
    max-width: none;
    padding: 0;
  }

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

  .card {
    break-inside: avoid;
    margin-bottom: 14px;
    padding: 14px;
  }

  .section {
    padding: 10px 0;
  }

  .ladder {
    grid-template-columns: repeat(6, 1fr);
    min-height: 330px;
    overflow: visible;
  }

  .ladder-step {
    min-width: 0;
    padding: 9px;
  }

  .ladder-step:nth-child(1) {
    height: 185px !important;
  }

  .ladder-step:nth-child(2) {
    height: 205px !important;
  }

  .ladder-step:nth-child(3) {
    height: 225px !important;
  }

  .ladder-step:nth-child(4) {
    height: 245px !important;
  }

  .ladder-step:nth-child(5) {
    height: 265px !important;
  }

  .ladder-step:nth-child(6) {
    height: 285px !important;
  }

  .ladder h4 {
    font-size: 12px;
  }

  .ladder p,
  .ladder span {
    font-size: 10px;
  }

  .recommendation-card {
    gap: 8px;
  }

  .recommendation-detail ul {
    margin: 0;
    padding-left: 18px;
  }
}
