:root {
  --ink: #17232b;
  --muted: #65717b;
  --paper: #f5f1ea;
  --white: #ffffff;
  --line: #ddd6cc;
  --crimson: #8a1d28;
  --crimson-2: #b72e3c;
  --deep: #102f3e;
  --teal: #24756e;
  --gold: #b67c2a;
  --blue: #346f98;
  --shadow: 0 24px 70px rgba(23, 35, 43, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 241, 234, 0.92);
  border-bottom: 1px solid rgba(221, 214, 204, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--crimson);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

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

.brand strong {
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--crimson-2);
}

.nav-button {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--deep);
  color: white;
  font-weight: 800;
}

.nav-button:hover {
  color: white;
  background: var(--crimson);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111a21;
}

.hero img {
  position: absolute;
  right: clamp(-160px, -7vw, -40px);
  bottom: -18vh;
  width: min(62vw, 820px);
  max-width: none;
  opacity: 0.7;
  filter: saturate(0.82) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 26, 33, 0.97) 0%, rgba(22, 45, 55, 0.88) 50%, rgba(138, 29, 40, 0.42) 100%),
    linear-gradient(145deg, rgba(183, 46, 60, 0.34) 0%, transparent 42%),
    linear-gradient(0deg, rgba(36, 117, 110, 0.36), transparent 54%);
}

.hero-copy {
  position: relative;
  max-width: 980px;
  padding: 84px clamp(22px, 7vw, 96px) 118px;
  color: white;
}

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

.hero .eyebrow {
  color: #f2c36c;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 6.5rem;
}

h2 {
  font-size: 3.75rem;
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 14px 0 0;
}

.lede {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.3rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: #fbf7ea;
  color: #111a21;
}

.button.ghost {
  color: white;
}

.notice-band {
  padding: 16px clamp(20px, 5vw, 70px);
  background: #fff1e2;
  border-top: 1px solid #edcfb1;
  border-bottom: 1px solid #edcfb1;
  color: #5a3023;
}

.audience-bar {
  position: sticky;
  top: 67px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px clamp(20px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.audience-bar h2 {
  font-size: 1.75rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 340px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee6da;
}

.segmented-control button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.segmented-control button.active {
  background: var(--crimson);
  color: white;
  box-shadow: 0 9px 22px rgba(138, 29, 40, 0.2);
}

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

.section,
.band {
  padding: clamp(64px, 9vw, 116px) 0;
}

.band {
  background: var(--white);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: start;
}

.cards,
.cause-grid,
.workup-grid,
.visual-grid,
.language-tools {
  display: grid;
  gap: 18px;
}

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

.card,
.cause-card,
.workup-grid article,
figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 48px rgba(23, 35, 43, 0.06);
}

.card {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e4f2ef;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

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

.cause-card {
  position: relative;
  min-height: 282px;
  padding: 28px;
  overflow: hidden;
}

.cause-card::after {
  position: absolute;
  inset: auto 20px 18px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(36, 117, 110, 0.1);
  content: "";
}

.cause-card.urgent {
  border-color: #e1aaa8;
  background: #fff7ed;
}

.number {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 950;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: center;
}

.red-flag-section {
  background: #871b22;
  color: #fff8ed;
}

.red-flag-section .eyebrow {
  color: #ffd978;
}

.red-flag-section h2 {
  color: #fff;
  font-weight: 1000;
}

.red-flag-section .patient-copy,
.red-flag-section .clinician-copy {
  font-weight: 800;
}

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

.red-list div {
  display: grid;
  grid-template-columns: minmax(145px, 0.55fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #fff8f6;
  box-shadow: 0 18px 40px rgba(75, 10, 8, 0.26);
}

.red-list strong {
  color: #b3120f;
  font-weight: 1000;
  text-transform: uppercase;
}

.red-list span {
  color: #7f1412;
  font-weight: 850;
}

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

.workup-grid article {
  padding: 22px;
}

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

.language-tools {
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.35fr) minmax(220px, 0.75fr);
  align-items: end;
}

.language-tools label,
.language-tools > div {
  display: grid;
  gap: 8px;
}

.mini-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-chips a,
.language-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.language-chips a:hover {
  border-color: var(--crimson-2);
  color: var(--crimson-2);
}

figure {
  margin: 0;
  overflow: hidden;
}

figure img {
  display: block;
  width: 100%;
  height: 315px;
  object-fit: cover;
  background: #101820;
}

figure:first-child img,
figure:nth-child(3) img {
  object-fit: cover;
}

figcaption {
  padding: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

figcaption strong {
  color: var(--ink);
}

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

.source-list a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--deep);
  font-weight: 850;
  text-decoration: none;
}

.source-list a:hover {
  border-color: var(--crimson-2);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 70px);
  background: #102f3e;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: white;
}

.site-footer p {
  margin: 0;
}

.clinician-copy {
  display: none;
}

body.audience-clinician .patient-copy {
  display: none;
}

body.audience-clinician .clinician-copy {
  display: block;
}

@media (max-width: 1280px) {
  .audience-bar {
    position: static;
  }
}

@media (max-width: 1320px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 1020px) {
  h1 {
    max-width: 650px;
    font-size: 4.6rem;
  }

  h2 {
    font-size: 3rem;
  }

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

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

  .language-tools {
    grid-template-columns: 1fr;
  }

  figure img {
    height: 380px;
  }
}

@media (max-width: 760px) {
  .audience-bar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .hero {
    min-height: 84vh;
  }

  .hero img {
    right: -56vw;
    bottom: -8vh;
    width: 150vw;
    opacity: 0.32;
  }

  .intro-grid,
  .two-col,
  .cause-grid,
  .cards.four,
  .workup-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .red-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  h1 {
    max-width: 520px;
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .lede {
    font-size: 1.12rem;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand strong {
    max-width: 250px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    padding: 62px 20px 92px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .notice-band {
    padding: 14px;
  }

  .cause-card,
  .card,
  .workup-grid article {
    padding: 20px;
  }

  figure img {
    height: 290px;
  }
}
