:root {
  --ink: #231f26;
  --muted: #716b76;
  --paper: #f8f5f8;
  --white: #ffffff;
  --line: #e6dfe8;
  --pine: #4b214f;
  --pine-2: #6d3571;
  --moss: #768642;
  --clay: #9b463d;
  --gold: #c09345;
  --aqua: #327b78;
  --shadow: 0 24px 70px rgba(75, 33, 79, 0.16);
}

* {
  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;
}

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(248, 245, 248, 0.92);
  border-bottom: 1px solid rgba(230, 223, 232, 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(--pine);
  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;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

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

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

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

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #2a1830;
}

.hero img {
  position: absolute;
  right: -4vw;
  bottom: -10vh;
  width: min(72vw, 900px);
  max-width: none;
  opacity: 0.74;
  filter: saturate(0.96) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 52%, rgba(192, 147, 69, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(45, 24, 52, 0.96) 0%, rgba(58, 30, 65, 0.82) 45%, rgba(58, 30, 65, 0.42) 100%);
}

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

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

.hero .eyebrow {
  color: #d7bd7d;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 8vw, 7.7rem);
}

h2 {
  font-size: clamp(2rem, 4.1vw, 4rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 14px 0 0;
}

.lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.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: #26162b;
}

.button.ghost {
  color: white;
}

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

.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: clamp(1.25rem, 2.2vw, 2rem);
}

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

.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(--pine);
  color: white;
  box-shadow: 0 9px 22px rgba(75, 33, 79, 0.22);
}

.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: 900px;
  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 {
  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(35, 31, 38, 0.06);
}

.card {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3edf4;
  color: var(--pine-2);
  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: 250px;
  padding: 28px;
  overflow: hidden;
}

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

.cause-card.urgent {
  border-color: #e5b9a6;
  background: #fffaf5;
}

.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: #452044;
  color: #fff8f2;
}

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

.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: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.red-list strong {
  color: #ffe0be;
}

.red-list span {
  color: rgba(255, 255, 255, 0.78);
}

.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));
}

figure {
  margin: 0;
  overflow: hidden;
}

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

figure:first-child img {
  object-fit: contain;
  padding: 24px;
}

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(--pine);
  font-weight: 850;
  text-decoration: none;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 70px);
  background: #2c1832;
  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: 1020px) {
  .cards.four,
  .workup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  figure img {
    height: 360px;
  }
}

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

  nav {
    justify-content: flex-start;
  }

  .audience-bar {
    top: 94px;
  }

  .segmented-control {
    width: 100%;
  }

  .hero {
    min-height: 86vh;
  }

  .hero img {
    right: -44vw;
    bottom: -7vh;
    width: 150vw;
    opacity: 0.5;
  }

  .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 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }
}

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

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

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

  .notice-band {
    padding: 14px;
  }

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

  figure img {
    height: 280px;
  }
}
