:root {
  --ink: #162229;
  --muted: #66727a;
  --line: #dbe4e6;
  --paper: #ffffff;
  --page: #f5f8f7;
  --blue: #235f8d;
  --blue-dark: #173d5d;
  --mint: #dceee9;
  --gold: #b88b34;
  --shadow: 0 18px 44px rgba(22, 34, 41, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  font-weight: 950;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-nav button,
.primary-btn,
.secondary-btn {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 850;
}

.top-nav button,
.secondary-btn {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.top-nav button.active {
  border-color: var(--blue);
  background: #e6f0f7;
  color: var(--blue-dark);
}

.app {
  padding: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 22px;
  min-height: calc(100vh - 122px);
  align-items: stretch;
}

.tool-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 8px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  margin-top: 12px;
  font-size: 54px;
  line-height: 1.03;
}

.hero-copy p {
  max-width: 710px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

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

.primary-btn {
  padding: 0 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.secondary-btn {
  padding: 0 16px;
}

.safe-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 8px;
  background: #dfe8e7;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.image-card strong,
.image-card span {
  display: block;
}

.image-card strong {
  font-size: 18px;
}

.image-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.signal-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  font-size: 18px;
}

.signal-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.section-block {
  margin-top: 18px;
  padding: 26px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin-top: 6px;
  font-size: 26px;
}

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

.condition-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.condition-card:nth-child(2n) {
  background: #f6f9fc;
}

.condition-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.condition-card h3 {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 1.18;
}

.condition-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.condition-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.how-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.how-grid strong,
.how-grid span {
  display: block;
}

.how-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tool-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
}

.tool-shell.narrow {
  max-width: 720px;
}

.condition-shell {
  max-width: 1180px;
}

.condition-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.condition-hero p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.condition-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.condition-section-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.condition-section-grid h2 {
  font-size: 18px;
}

.condition-section-grid p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.tool-head h1 {
  font-size: 36px;
}

.progress-pill {
  display: grid;
  min-width: 74px;
  min-height: 52px;
  place-items: center;
  border-radius: 8px;
  background: #e6f0f7;
  color: var(--blue-dark);
  font-weight: 950;
}

.privacy-note {
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid #c4d8e5;
  border-radius: 8px;
  background: #eaf3f8;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

#progressFill {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 160ms ease;
}

.review-form {
  margin-top: 26px;
}

.step-card {
  display: none;
}

.step-card.active {
  display: block;
}

.step-title {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 950;
}

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

.stack-form,
.field {
  display: grid;
  gap: 8px;
}

.stack-form {
  gap: 16px;
}

.field span,
.stack-form label span {
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.detail-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.detail-item strong {
  display: block;
  margin-top: 5px;
  word-break: break-word;
}

.result-shell {
  max-width: 880px;
}

.result-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.result-summary {
  margin-top: 22px;
}

.result-card h2,
.lead-detail h3 {
  margin-top: 22px;
  font-size: 20px;
}

.doc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.doc-list span {
  padding: 9px 11px;
  border-radius: 999px;
  background: #e6f0f7;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.lead-list,
.lead-detail {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.lead-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.lead-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.lead-card.active {
  border-color: var(--blue);
  background: #eaf3f8;
}

.lead-card strong,
.lead-card span {
  display: block;
}

.lead-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.lead-detail {
  padding: 20px;
}

.source-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #e6f0f7;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.admin-controls,
.note-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.note-item {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.anchor-btn {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.pulse-btn {
  animation: softPulse 2.8s ease-in-out infinite;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.privacy-badges span {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #cddbdd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.privacy-badges.compact {
  margin-top: 14px;
}

.choice-panel,
.checker-panel,
.path-grid,
.journey-panel,
.traveler-note {
  margin-top: 24px;
}

.choice-panel,
.checker-panel,
.traveler-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(22, 34, 41, 0.06);
}

.choice-panel {
  padding: 24px;
}

.checker-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
}

.checker-panel h2,
.path-grid h2,
.journey-panel h2,
.traveler-note h2 {
  margin-top: 6px;
  font-size: 30px;
}

.checker-panel p,
.traveler-note p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.checker-card {
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 1px solid #c9d7da;
  border-radius: 8px;
  background: #f8fbfa;
}

.mini-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.mini-progress span {
  height: 7px;
  border-radius: 999px;
  background: #d9e5e7;
}

.mini-progress span:first-child,
.mini-progress span:nth-child(2) {
  background: var(--blue);
}

.checker-card strong {
  display: block;
  font-size: 18px;
}

.checker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.checker-option {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.checker-option:hover {
  border-color: var(--blue);
  background: #eaf3f8;
  transform: translateY(-2px);
}

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

.condition-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  padding: 20px;
  border: 0;
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 18px 38px rgba(22, 34, 41, 0.18);
  isolation: isolate;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.condition-card:hover {
  box-shadow: 0 24px 52px rgba(22, 34, 41, 0.23);
  transform: translateY(-5px);
}

.condition-card .card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(165deg, rgba(15, 35, 50, 0.92), rgba(35, 95, 141, 0.62)),
    url("./assets/care-coordination.jpg") center / cover;
  transition: transform 360ms ease;
}

.condition-card:hover .card-bg,
.share-card:hover .card-bg {
  transform: scale(1.05);
}

.condition-card::after,
.share-card::after {
  position: absolute;
  inset: auto -42px -72px auto;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  content: "";
}

.condition-spine .card-bg {
  background:
    linear-gradient(165deg, rgba(31, 45, 52, 0.93), rgba(74, 115, 107, 0.66)),
    url("./assets/care-coordination.jpg") 42% center / cover;
}

.condition-joint .card-bg {
  background:
    linear-gradient(165deg, rgba(42, 43, 38, 0.93), rgba(184, 139, 52, 0.6)),
    url("./assets/care-coordination.jpg") 62% center / cover;
}

.condition-nerve .card-bg {
  background:
    linear-gradient(165deg, rgba(30, 34, 44, 0.93), rgba(115, 84, 125, 0.62)),
    url("./assets/care-coordination.jpg") 78% center / cover;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 950;
}

.condition-card .condition-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.condition-card h3 {
  max-width: 220px;
  color: #fff;
  font-size: 26px;
}

.condition-card p {
  max-width: 270px;
  color: rgba(255, 255, 255, 0.86);
}

.condition-card .microcopy {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.card-btn {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 900;
}

.card-btn span {
  transition: transform 180ms ease;
}

.condition-card:hover .card-btn span {
  transform: translateX(4px);
}

.path-cards,
.journey-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.path-cards article,
.journey-track article {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(22, 34, 41, 0.05);
  transition: transform 180ms ease, border-color 180ms ease;
}

.path-cards article:hover,
.journey-track article:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.path-cards span,
.journey-track span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3f8;
  color: var(--blue-dark);
  font-weight: 950;
}

.path-cards strong,
.path-cards small,
.journey-track strong,
.journey-track small {
  display: block;
}

.path-cards strong,
.journey-track strong {
  margin-top: 18px;
  font-size: 18px;
}

.path-cards small,
.journey-track small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.traveler-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.reveal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.reveal-card summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
}

.reveal-card summary::after {
  color: var(--blue);
  content: "+";
  font-size: 22px;
}

.reveal-card[open] summary::after {
  content: "-";
}

.reveal-card p {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.5;
}

.step-card.active {
  animation: slideStep 220ms ease both;
}

.step-title {
  display: grid;
  gap: 6px;
}

.step-title span {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-field legend {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

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

.option-card {
  display: grid;
  min-height: 58px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card:hover,
.option-card:has(input:checked) {
  border-color: var(--blue);
  background: #eaf3f8;
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.share-shell {
  display: grid;
  min-height: calc(100vh - 174px);
  place-items: center;
}

.share-card {
  position: relative;
  overflow: hidden;
  width: min(620px, 100%);
  min-height: 620px;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.share-card .card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(165deg, rgba(15, 35, 50, 0.94), rgba(35, 95, 141, 0.56)),
    url("./assets/care-coordination.jpg") center / cover;
  transition: transform 360ms ease;
}

.share-inner {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

.share-inner h1 {
  color: #fff;
}

.share-inner p {
  max-width: 480px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.45;
}

.share-inner .source-pill {
  width: fit-content;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.share-inner .primary-btn {
  width: fit-content;
  margin-top: 24px;
  border-color: #fff;
  background: #fff;
  color: var(--blue-dark);
}

.mobile-sticky-cta {
  display: none;
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(35, 95, 141, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(35, 95, 141, 0.11);
  }
}

@keyframes slideStep {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .condition-grid,
  .how-grid,
  .admin-grid,
  .checker-panel,
  .traveler-note,
  .path-cards,
  .journey-track {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero-image {
    min-height: 360px;
  }

  h1 {
    font-size: 38px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 74px;
  }

  .app,
  .site-header {
    padding: 16px;
  }

  .hero-copy,
  .tool-shell {
    padding: 20px;
  }

  .hero-copy {
    padding-right: 0;
    padding-left: 0;
  }

  h1,
  .tool-head h1 {
    font-size: 30px;
  }

  .field-grid,
  .signal-grid,
  .result-summary,
  .condition-section-grid {
    grid-template-columns: 1fr;
  }

  .condition-hero {
    flex-direction: column;
  }

  .step-actions {
    flex-direction: column;
  }

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

  .share-inner,
  .share-card {
    min-height: 560px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 20;
    display: block;
    min-height: 52px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(22, 34, 41, 0.22);
  }
}
