@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

:root {
  --indigo: #2d3e8b;
  --indigo-dark: #17265f;
  --teal: #20b2aa;
  --purple: #7b61ff;
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #eef1f7;
  --gray-200: #dfe5f0;
  --gray-600: #657086;
  --text: #2c2c2c;
  --ink: #111827;
  --shadow: 0 18px 48px rgba(31, 47, 94, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid rgba(32, 178, 170, 0.55);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 229, 240, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.brand img {
  width: 218px;
  height: auto;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--indigo-dark);
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--gray-600);
  max-width: none;
  padding-left: 2px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.25;
}

.nav-links {
  gap: 86px;
}

.nav-links {
  display: flex;
  align-items: center;
  color: #34405c;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 26px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.button,
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--indigo);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.form-button:hover {
  transform: translateY(-2px);
  background: var(--indigo-dark);
  box-shadow: 0 12px 28px rgba(45, 62, 139, 0.25);
}

.button.secondary {
  background: var(--white);
  color: var(--indigo);
  border-color: var(--gray-200);
}

.button.secondary:hover {
  background: var(--gray-50);
}

.menu-toggle {
  display: inline-grid;
  place-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--indigo-dark);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  padding: 74px 0 80px;
  background:
    linear-gradient(
      110deg,
      rgba(248, 249, 252, 0.96),
      rgba(255, 255, 255, 0.86)
    ),
    linear-gradient(135deg, rgba(45, 62, 139, 0.08), rgba(32, 178, 170, 0.1));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 52px;
}

.index-page .hero .section-inner {
  width: 100%;
  padding: 0 24px;
}

.index-page .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(520px, 660px);
}

.index-page .hero-grid > div:first-child {
  margin-left: clamp(24px, 4vw, 72px);
}

.hero-grid > *,
.dashboard-preview > *,
.analytics-layout > *,
.split > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 4.85rem);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: #4d5870;
  font-size: 1.12rem;
}

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

.mhabi-visual {
  position: relative;
  width: min(100%, 660px);
  justify-self: end;
  margin-right: clamp(24px, 4vw, 72px);
  aspect-ratio: 1.28 / 1;
  min-height: 0;
  height: clamp(430px, 36vw, 520px);
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 22% 72%,
      rgba(32, 178, 170, 0.26),
      transparent 34%
    ),
    radial-gradient(
      circle at 80% 28%,
      rgba(123, 97, 255, 0.2),
      transparent 33%
    ),
    radial-gradient(
      circle at 50% 14%,
      rgba(45, 62, 139, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, #edf9fb 0%, #f4f3ff 52%, #ffffff 100%);
  box-shadow: var(--shadow);
}

#mhabiCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.center-hub {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 4;
  width: clamp(118px, 23%, 160px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #3153bd, #101d55 68%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 12px rgba(32, 178, 170, 0.1),
    0 22px 60px rgba(23, 38, 95, 0.3);
  animation: hubPulse 3.8s ease-in-out infinite;
}

.center-hub span {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.center-hub strong {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 0.96;
}

.metric {
  position: absolute;
  z-index: 5;
  width: clamp(122px, 25%, 176px);
  text-align: center;
  color: var(--indigo-dark);
}

.metric-icon {
  width: clamp(44px, 9vw, 58px);
  aspect-ratio: 1;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 34px rgba(31, 47, 94, 0.12),
    0 0 26px var(--glow);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
}

.metric-icon svg {
  width: 54%;
  height: 54%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric h3 {
  font-size: clamp(0.72rem, 1.7vw, 0.92rem);
  text-transform: uppercase;
}

.metric p {
  margin: 3px 0 0;
  color: #596378;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  font-weight: 600;
  line-height: 1.25;
}

.metric-access {
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  --glow: rgba(45, 62, 139, 0.34);
}

.metric-er {
  right: 4%;
  top: 31%;
  --glow: rgba(123, 97, 255, 0.38);
}

.metric-disease {
  right: 13%;
  bottom: 11%;
  --glow: rgba(32, 178, 170, 0.33);
}

.metric-function {
  left: 13%;
  bottom: 11%;
  --glow: rgba(32, 178, 170, 0.34);
}

.metric-suicide {
  left: 4%;
  top: 31%;
  --glow: rgba(123, 97, 255, 0.34);
}

.visual-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  width: 86%;
  margin: 0;
  transform: translateX(-50%);
  color: #526075;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
}

@keyframes hubPulse {
  50% {
    box-shadow:
      0 0 0 17px rgba(32, 178, 170, 0.13),
      0 25px 70px rgba(23, 38, 95, 0.35);
  }
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--gray-50);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header p {
  margin: 16px 0 0;
  color: #596378;
  font-size: 1.04rem;
}

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

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

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

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

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

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(31, 47, 94, 0.06);
}

.card p {
  margin: 12px 0 0;
  color: #596378;
}

.about-principles-section {
  background:
    linear-gradient(rgba(248, 249, 252, 0.84), rgba(248, 249, 252, 0.84)),
    linear-gradient(135deg, rgba(45, 62, 139, 0.08), rgba(32, 178, 170, 0.1));
}

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

.principle-card {
  position: relative;
  min-height: 100%;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(31, 47, 94, 0.08);
}

.principle-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--indigo));
}

.principle-marker {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(32, 178, 170, 0.12);
  color: var(--indigo);
  font-size: 0.9rem;
  font-weight: 900;
}

.principle-card h3,
.about-direction h3 {
  margin: 0;
}

.principle-card p,
.about-direction p {
  margin: 12px 0 0;
  color: #596378;
}

.about-direction {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.about-direction article {
  padding: 24px;
  border: 1px solid rgba(45, 62, 139, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.research-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(45, 62, 139, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(45, 62, 139, 0.11), rgba(32, 178, 170, 0.1));
  box-shadow: 0 18px 40px rgba(31, 47, 94, 0.08);
}

.research-feature h3 {
  margin: 0;
  font-size: 1.65rem;
}

.research-feature p,
.coming-next-card p {
  margin: 12px 0 0;
  color: #596378;
}

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

.presentation-logo-card,
.coming-next-card {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.presentation-logo-card {
  min-height: 150px;
  margin: 0;
  display: grid;
  place-items: center;
}

.presentation-logo-card img {
  display: block;
  width: min(100%, 320px);
  max-height: 120px;
  object-fit: contain;
}

.presentation-logo-card-epa img {
  width: min(100%, 546px);
  max-height: 210px;
}

.research-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(32, 178, 170, 0.12);
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coming-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.coming-next-card {
  min-height: 100%;
  box-shadow: 0 12px 32px rgba(31, 47, 94, 0.06);
}

.coming-next-card .icon {
  margin-bottom: 16px;
}

.coming-next-card h3 {
  margin: 14px 0 0;
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(32, 178, 170, 0.12);
  color: var(--indigo);
  font-weight: 900;
}

.process {
  counter-reset: steps;
}

.process .card {
  position: relative;
  padding-top: 58px;
}

.process .card::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 22px;
  left: 24px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--white);
  font-weight: 900;
}

.dashboard-preview,
.analytics-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
}

.dashboard-preview-image {
  margin: 0;
  overflow: hidden;
  align-self: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.dashboard-preview-image img {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-page-preview {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.dashboard-page-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.mock-panel {
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  color: #596378;
}

.stat-row strong {
  color: var(--indigo-dark);
}

.bar-chart {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bar span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
}

.trend {
  height: 180px;
  margin-top: 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      transparent 0 31%,
      rgba(223, 229, 240, 0.72) 32% 33%,
      transparent 34% 64%,
      rgba(223, 229, 240, 0.72) 65% 66%,
      transparent 67%
    ),
    linear-gradient(
      135deg,
      transparent 0 43%,
      rgba(32, 178, 170, 0.28) 44% 46%,
      transparent 47%
    ),
    linear-gradient(
      160deg,
      transparent 0 50%,
      rgba(123, 97, 255, 0.3) 51% 53%,
      transparent 54%
    ),
    var(--gray-50);
}

.page-hero {
  padding: 70px 0;
  background: linear-gradient(
    135deg,
    rgba(45, 62, 139, 0.08),
    rgba(32, 178, 170, 0.09)
  );
}

.page-hero .lead {
  max-width: 820px;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #effbf9;
  color: #31405a;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.calculator-hero {
  padding-bottom: 52px;
}

.calculator-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.context-open {
  flex: 0 0 auto;
}

.calculator-section {
  padding-top: 56px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.calculator-card,
.results-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.calculator-card {
  padding: 28px;
}

.calculator-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.calculator-card-header .eyebrow {
  margin-bottom: 8px;
}

.calculator-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(32, 178, 170, 0.1);
  color: #137a75;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.calculator-inputs {
  display: grid;
  gap: 16px;
}

.burden-field {
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.tracker-row {
  display: grid;
  grid-template-columns: 92px minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.diagnosis-select {
  width: min(100%, 260px);
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: #34405c;
  font-size: 0.82rem;
  font-weight: 700;
}

.scoring-guide {
  margin-top: 12px;
}

.scoring-guide summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--indigo);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.scoring-guide summary::-webkit-details-marker {
  display: none;
}

.scoring-guide summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.scoring-guide[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.guide-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.guide-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
}

.guide-list article:last-child {
  border-bottom: 0;
}

.guide-list strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(45, 62, 139, 0.1);
  color: var(--indigo);
  font-size: 0.82rem;
}

.guide-list span {
  color: #43506a;
  font-size: 0.86rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 24, 54, 0.5);
}

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

.modal-window {
  width: min(100%, 760px);
  max-height: min(86vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(15, 24, 54, 0.28);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}

.modal-header {
  border-bottom: 1px solid var(--gray-100);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-600);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--gray-50);
  color: var(--indigo-dark);
}

.modal-body {
  overflow: auto;
  padding: 24px;
  color: #43506a;
}

.modal-body p {
  margin: 0 0 16px;
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.scenario-box {
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.scenario-box h3 {
  margin: 0 0 8px;
  color: var(--indigo-dark);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.scenario-box ul {
  margin: 0;
  padding-left: 18px;
}

.scenario-box li {
  margin: 9px 0;
}

.scenario-box code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #e9edf5;
  color: var(--indigo-dark);
  font-size: 0.82rem;
}

.triage-view {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #cfd8e6;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(31, 47, 94, 0.06);
}

.triage-view p {
  margin: 0 0 8px;
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.triage-bar {
  display: grid;
  grid-template-columns: 15fr 40fr 65fr 80fr;
  overflow: hidden;
  border-radius: 4px;
}

.triage-bar span {
  min-height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.triage-critical,
.legend-critical {
  background: #ef4444;
}

.triage-high,
.legend-high {
  background: #f97316;
}

.triage-mod,
.legend-mod {
  background: #facc15;
}

.triage-low,
.legend-low {
  background: #22c55e;
}

.triage-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
}

.triage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.triage-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.clinical-modal blockquote {
  margin: 16px 0 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--purple);
  color: var(--indigo-dark);
  font-weight: 800;
  font-style: italic;
}

.tracker-row input[type="number"] {
  min-height: 38px;
  padding: 8px 10px;
}

.burden-range {
  --range-progress: 0%;
  width: 100%;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    90deg,
    #2f6bea 0 var(--range-progress),
    #dfe7f1 var(--range-progress) 100%
  );
  box-shadow: none;
  cursor: pointer;
}

.burden-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 999px;
  appearance: none;
  background: #2f6bea;
  box-shadow: 0 4px 12px rgba(47, 107, 234, 0.35);
}

.burden-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: #2f6bea;
  box-shadow: 0 4px 12px rgba(47, 107, 234, 0.35);
}

.burden-range::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.field label span,
.optional {
  color: var(--gray-600);
  font-weight: 600;
}

.field small {
  color: var(--gray-600);
  font-size: 0.82rem;
}

.estimate-check,
.location-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #43506a;
  font-size: 0.9rem;
  font-weight: 700;
}

.estimate-check {
  margin-top: 0;
  white-space: nowrap;
}

.estimate-check input,
.location-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.location-check {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
}

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

.form-note {
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.field-error {
  border-color: #d93f3f !important;
  box-shadow: 0 0 0 3px rgba(217, 63, 63, 0.1);
}

.results-card {
  position: sticky;
  top: 104px;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
}

.results-empty {
  min-height: 360px;
  padding: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  color: var(--gray-600);
}

.results-icon {
  width: 118px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(31, 47, 94, 0.08);
}

.results-icon img {
  width: 92px;
  height: auto;
}

.results-empty h2,
.results-output h2 {
  margin: 0;
}

.results-output {
  display: grid;
  gap: 20px;
  padding-bottom: 24px;
}

.results-output[hidden] {
  display: none;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.results-header h2 {
  color: var(--indigo-dark);
  font-size: 1.22rem;
}

.confidence-badge {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--gray-100);
  color: #43506a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.confidence-badge.confidence-high,
.confidence-table-grid .active-confidence-high {
  background: #dcfce7;
  color: #166534;
  box-shadow: inset 0 0 0 1px #86efac;
}

.confidence-badge.confidence-moderate,
.confidence-table-grid .active-confidence-moderate {
  background: #fef9c3;
  color: #854d0e;
  box-shadow: inset 0 0 0 1px #fde68a;
}

.confidence-badge.confidence-low,
.confidence-table-grid .active-confidence-low {
  background: #fee2e2;
  color: #991b1b;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.score-card,
.score-gauge,
.confidence-warning,
.confidence-table,
.diagnostic-panel,
.normalized-panel,
.result-notes,
.amplification-note,
.result-message,
.copy-summary {
  margin-inline: 22px;
}

.score-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 12px 28px rgba(31, 47, 94, 0.07);
}

.score-card.low {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.score-card.moderate {
  background: #fef9c3;
  border-color: #fde68a;
  color: #854d0e;
}

.score-card.high {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}

.score-card.critical {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.result-ref {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.52);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.score-card p,
.score-card div span {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-card strong {
  display: block;
  margin: 8px 0;
  font-family: "Poppins", sans-serif;
  font-size: 3.5rem;
  line-height: 1;
}

.score-card strong small {
  font-size: 1.35rem;
  font-weight: 600;
  opacity: 0.62;
}

.score-card h3 {
  margin: 0 0 12px;
  color: inherit;
  font-size: 1.35rem;
}

.score-card div {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.score-card div b {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.score-gauge {
  position: relative;
  padding: 10px 0 0;
}

.gauge-track {
  display: grid;
  grid-template-columns: 40fr 30fr 15fr 15fr;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gray-100);
}

.gauge-low {
  background: #22c55e;
}

.gauge-moderate {
  background: #eab308;
}

.gauge-high {
  background: #f97316;
}

.gauge-critical {
  background: #ef4444;
}

.gauge-marker {
  position: absolute;
  top: 2px;
  left: 0%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--indigo);
  box-shadow: 0 6px 14px rgba(31, 47, 94, 0.22);
  transform: translateX(-50%);
}

.gauge-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 800;
}

.gauge-labels span:last-child {
  text-align: right;
}

.confidence-warning,
.amplification-note {
  padding: 13px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: #fffbeb;
  color: #854d0e;
  font-size: 0.88rem;
}

.confidence-table h3,
.diagnostic-panel h3,
.normalized-panel h3,
.result-notes h3 {
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.confidence-table-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.45fr 1.2fr;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.76rem;
}

.confidence-table-grid > div {
  padding: 9px 10px;
  border-bottom: 1px solid var(--gray-100);
}

.confidence-table-head {
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 900;
}

.diagnostic-panel {
  text-align: center;
}

.radar-card {
  position: relative;
  min-height: 260px;
  padding: 28px 0 18px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.subscore-radar {
  width: min(100%, 260px);
  height: 220px;
  overflow: visible;
}

.subscore-radar line,
.radar-grid {
  fill: none;
  stroke: #cfd8e6;
  stroke-width: 1;
}

.radar-grid.outer {
  stroke: #b8c3d3;
}

.radar-shape {
  fill: rgba(45, 62, 139, 0.22);
  stroke: #2f6bea;
  stroke-width: 2;
}

.subscore-radar circle {
  fill: #2f6bea;
}

.radar-label {
  position: absolute;
  display: grid;
  gap: 2px;
  color: var(--gray-600);
  font-size: 0.76rem;
  font-weight: 900;
}

.radar-label strong {
  color: var(--indigo-dark);
  font-family: Consolas, monospace;
}

.radar-crisis {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.radar-clinical {
  bottom: 12px;
  left: 10px;
}

.radar-economic {
  right: 10px;
  bottom: 12px;
}

.normalized-panel ul {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--gray-50);
  list-style: none;
}

.normalized-panel li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-200);
}

.normalized-panel li:last-child {
  border-bottom: 0;
}

.normalized-panel strong {
  color: var(--indigo-dark);
  font-family: Consolas, monospace;
}

.result-notes {
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: #fffbeb;
}

.result-notes p {
  margin: 0;
  color: #43506a;
  font-style: italic;
}

.result-message {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--gray-50);
  color: #43506a;
  font-weight: 700;
}

.copy-summary {
  width: calc(100% - 44px);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--indigo-dark);
  font-weight: 800;
}

.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  padding: 0;
  border: 1px solid #9ab0cf;
  border-radius: 999px;
  background: var(--white);
  color: #466083;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  vertical-align: text-top;
}

.info-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(280px, 78vw);
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #111827;
  color: var(--white);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.field input:not([type="range"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.field input[type="range"].burden-range {
  min-height: 8px;
  padding: 0;
  border: 0;
  background: linear-gradient(
    90deg,
    #2f6bea 0 var(--range-progress),
    #dfe7f1 var(--range-progress) 100%
  );
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.pre-footer {
  padding: 58px 0;
  background: var(--indigo-dark);
  color: var(--white);
}

.pre-footer .section-inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pre-footer h2 {
  color: var(--white);
}

.pre-footer .button {
  background: var(--teal);
}

.site-footer {
  background: #0f1836;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  width: 100%;
  padding: 54px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
}

.footer-grid h3 {
  color: var(--white);
  font-size: 0.96rem;
}

.footer-grid ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.footer-grid li {
  margin: 8px 0;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .header-actions .button {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-grid,
  .dashboard-preview,
  .analytics-layout,
  .calculator-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .mhabi-visual {
    max-width: 680px;
    margin-inline: auto;
  }

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

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

  .results-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    width: 86px;
    flex: 0 0 auto;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    max-width: 138px;
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(2.12rem, 10vw, 2.55rem);
  }

  .hero h1 {
    max-width: 10.8ch;
  }

  .lead {
    max-width: 32ch;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    justify-items: start;
  }

  .button,
  .form-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .header-actions {
    flex: 0 0 auto;
    position: fixed;
    top: 16px;
    right: 14px;
    z-index: 60;
  }

  .menu-toggle {
    display: inline-grid !important;
    flex: 0 0 46px;
    place-content: center;
  }

  .section {
    padding: 60px 0;
  }

  .calculator-card {
    padding: 20px;
  }

  .results-empty {
    padding: 20px;
  }

  .calculator-card-header {
    display: grid;
  }

  .calculator-header-actions {
    justify-content: flex-start;
  }

  .calculator-hero-inner {
    display: grid;
  }

  .context-open {
    justify-self: start;
    margin-top: 0;
  }

  .calculator-actions {
    display: grid;
  }

  .tracker-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field-label-row {
    display: grid;
    gap: 10px;
  }

  .diagnosis-select {
    width: 100%;
  }

  .tracker-row input[type="number"] {
    width: 100%;
  }

  .estimate-check {
    justify-self: start;
  }

  .score-card strong {
    font-size: 3.1rem;
  }

  .confidence-table-grid {
    grid-template-columns: 1fr;
  }

  .confidence-table-head {
    display: none;
  }

  .radar-card {
    min-height: 245px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

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

  .grid.three,
  .grid.two,
  .grid.four,
  .grid.five {
    grid-template-columns: 1fr;
  }

  .about-principles,
  .about-direction,
  .research-feature,
  .coming-next-grid,
  .presentation-list {
    grid-template-columns: 1fr;
  }

  .mhabi-visual {
    min-height: 470px;
    aspect-ratio: auto;
  }

  .metric {
    width: 96px;
  }

  .metric h3 {
    font-size: 0.64rem;
    overflow-wrap: break-word;
  }

  .metric p {
    font-size: 0.66rem;
  }

  .metric-icon {
    width: 46px;
    font-size: 1rem;
  }

  .metric-access {
    top: 5%;
  }

  .metric-er {
    right: 8%;
    top: 31%;
  }

  .metric-suicide {
    left: 8%;
    top: 31%;
  }

  .metric-disease {
    right: 9%;
    bottom: 15%;
  }

  .metric-function {
    left: 9%;
    bottom: 15%;
  }

  .visual-caption {
    bottom: 12px;
    font-size: 0.72rem;
  }

  .pre-footer .section-inner,
  .footer-bottom {
    display: grid;
    justify-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 78px;
  }

  .brand-subtitle {
    max-width: 132px;
  }

  .metric-er {
    right: 7%;
  }

  .metric-suicide {
    left: 7%;
  }
}

@media (max-width: 360px) {
  .brand-subtitle {
    display: none;
  }

  .mhabi-visual {
    min-height: 440px;
  }
}

@media (min-width: 981px) {
  .menu-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
