:root {
  --ink: #10202c;
  --muted: #5e6d78;
  --paper: #f5f8fa;
  --white: #ffffff;
  --line: #d8e0e6;
  --red: #c42435;
  --red-dark: #921c2a;
  --blue: #195f8d;
  --navy: #071d31;
  --teal: #1d7b70;
  --amber: #c8892b;
  --green: #2e7658;
  --shadow: 0 22px 64px rgba(7, 29, 49, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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.5;
  overflow-x: hidden;
}

body.beat-running .hands {
  animation: compress 0.6s linear infinite;
}

body.beat-running .chest-target {
  animation: target-pulse 0.6s linear infinite;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 11px clamp(14px, 3vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red-dark), var(--red) 55%, var(--blue));
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
}

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

.brand strong {
  color: var(--navy);
  line-height: 1.05;
}

.brand small {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.main-nav a {
  padding: 5px 0;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--red-dark);
}

.anonamed-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px !important;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 29, 49, 0.96), rgba(7, 29, 49, 0.68) 46%, rgba(196, 36, 53, 0.34)),
    linear-gradient(0deg, rgba(7, 29, 49, 0.86), transparent 55%);
}

.hero-copy {
  position: relative;
  max-width: 950px;
  padding: 86px clamp(20px, 7vw, 96px) 110px;
  color: white;
}

.language-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.language-row label {
  color: white;
  font-weight: 900;
}

.language-row select {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd37b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  color: white;
  font-size: clamp(3.5rem, 10vw, 8.2rem);
}

.hero-brand-title {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: 1;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 6rem);
}

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

h3 {
  font-size: 1.12rem;
}

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

.lede {
  max-width: 790px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.lede.dark {
  color: #334551;
}

.hero-actions,
.coach-controls,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--white);
  color: var(--navy);
}

.button.primary.dark {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.button.ghost {
  color: white;
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.emergency-strip {
  padding: 18px clamp(18px, 5vw, 72px);
  background: var(--red);
  color: white;
  font-size: 1.02rem;
}

.emergency-strip strong {
  color: white;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: white;
}

.quick-grid article {
  min-height: 245px;
  padding: clamp(22px, 4vw, 40px);
  border-right: 1px solid var(--line);
}

.quick-grid article:last-child {
  border-right: 0;
}

.quick-grid span,
.step-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fee8eb;
  color: var(--red-dark);
  font-weight: 950;
}

.quick-grid h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.coach-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 6vw, 80px);
  background: #edf4f6;
}

.coach-section.compact {
  padding-top: clamp(36px, 6vw, 70px);
  padding-bottom: clamp(36px, 6vw, 70px);
}

.coach-copy {
  max-width: 720px;
}

.open-demo {
  margin: 24px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.open-demo img,
.open-demo video {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: var(--navy);
}

.open-demo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.coach-media {
  display: grid;
  gap: 18px;
}

.compression-coach {
  position: relative;
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(196, 36, 53, 0.14), transparent 30%),
    linear-gradient(135deg, white, #f3f8fb);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.beat-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.beat-readout strong {
  font-size: 2rem;
  line-height: 1;
}

.beat-readout span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.torso {
  position: relative;
  width: min(320px, 82vw);
  height: 260px;
  margin: 42px auto 22px;
  border-radius: 48% 48% 28% 28%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(145deg, #d9e7ee, #a7bdc8);
  border: 1px solid #8ba6b6;
}

.torso::before,
.torso::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 58px;
  height: 168px;
  border-radius: 999px;
  background: #d2e0e7;
  border: 1px solid #91aaba;
}

.torso::before {
  left: -34px;
  transform: rotate(16deg);
}

.torso::after {
  right: -34px;
  transform: rotate(-16deg);
}

.chest-target {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 112px;
  height: 112px;
  border: 4px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(196, 36, 53, 0.1);
}

.hands {
  position: absolute;
  left: 50%;
  top: 24%;
  width: 122px;
  height: 82px;
  border-radius: 999px 999px 36px 36px;
  background:
    linear-gradient(90deg, #f0c199 0 47%, #e4aa80 47% 53%, #f0c199 53%),
    linear-gradient(#f0c199, #e2a77c);
  border: 2px solid rgba(90, 52, 36, 0.2);
  transform: translate(-50%, 0);
  box-shadow: 0 22px 34px rgba(7, 29, 49, 0.18);
}

.hands::before,
.hands::after {
  content: "";
  position: absolute;
  top: -82px;
  width: 44px;
  height: 110px;
  border-radius: 24px;
  background: #e9b389;
  border: 2px solid rgba(90, 52, 36, 0.16);
}

.hands::before {
  left: 18px;
  transform: rotate(-22deg);
}

.hands::after {
  right: 18px;
  transform: rotate(22deg);
}

.coach-note {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.image-band,
.split-section,
.content-section,
.stats-section,
.sources,
.consensus-section,
.do-now-section {
  padding: clamp(48px, 8vw, 100px) clamp(18px, 6vw, 80px);
}

.do-now-section {
  background: white;
}

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

.do-now-grid article {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: #fbfdff;
}

.do-now-grid span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 1.6rem;
  font-weight: 950;
}

.do-now-grid h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.do-now-grid p {
  font-size: 1.08rem;
}

.inline-video-panel {
  margin-top: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.inline-image-panel {
  margin-top: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.inline-image-panel img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
}

.inline-video-panel video {
  display: block;
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  background: var(--navy);
}

.call-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-size: 1.08rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.call-button:focus,
.call-button:hover {
  background: var(--red-dark);
}

.call-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem !important;
}

.aed-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 1.08rem;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
}

.aed-button:focus,
.aed-button:hover {
  background: var(--navy);
}

.aednear-cue {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 850;
}

.aednear-link {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.aednear-link:hover {
  border-color: var(--blue);
}

.novice-rule {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #fff4f5;
  color: var(--ink);
  font-size: 1.08rem;
}

.special-situations {
  background: #fff;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  background: white;
}

.image-band img,
.page-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.aed-map-panel {
  margin-top: 22px;
}

.aed-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.aed-status {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.aed-map-panel iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.consensus-section {
  background: var(--navy);
}

.consensus-section.light {
  background: #edf4f6;
}

.consensus-section h2,
.consensus-section:not(.light) p {
  color: white;
}

.consensus-section.light h2 {
  color: var(--navy);
}

.consensus-section .eyebrow {
  color: #ffd37b;
}

.consensus-section.light .eyebrow {
  color: var(--red);
}

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

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

.guideline-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.light .guideline-grid article {
  border-color: var(--line);
  background: white;
}

.guideline-grid strong {
  display: block;
  color: #ffd37b;
  font-size: 1.05rem;
  line-height: 1.1;
}

.light .guideline-grid strong {
  color: var(--red-dark);
}

.guideline-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.light .guideline-grid span {
  color: var(--muted);
}

.guideline-note {
  max-width: 980px;
  margin: 24px 0 0;
  font-weight: 850;
}

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

.stat-grid article,
.cards article,
.flow-grid article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.stat-grid strong {
  display: block;
  color: var(--red-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stat-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.split-section > div {
  padding: clamp(34px, 5vw, 58px);
  background: white;
}

.sources {
  background: var(--navy);
}

.sources h2,
.sources a {
  color: white;
}

.sources .eyebrow {
  color: #ffd37b;
}

.sources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  max-width: 1080px;
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: white;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 80px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 247, 0.96)),
    radial-gradient(circle at 92% 10%, rgba(196, 36, 53, 0.18), transparent 36%);
}

.patient-hero h1,
.doctor-hero h1 {
  max-width: 850px;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.step-list span {
  margin: 0;
}

.caveat-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 5vw, 66px);
  background: #fff7ea;
  border-top: 1px solid #ecd6ab;
  border-bottom: 1px solid #ecd6ab;
}

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

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

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

.plain-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.plain-table > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.plain-table > div:last-child {
  border-bottom: 0;
}

.plain-table strong {
  color: var(--navy);
}

.plain-table span {
  color: var(--muted);
}

.clinical-flow {
  background: white;
}

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

.flow-grid article span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 950;
}

@keyframes compress {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  44% {
    transform: translate(-50%, 76px) scaleY(0.94);
  }
  58% {
    transform: translate(-50%, 76px) scaleY(0.94);
  }
}

@keyframes target-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(196, 36, 53, 0.32);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(196, 36, 53, 0);
    transform: translate(-50%, -50%) scale(0.92);
  }
}

@media (max-width: 1050px) {
  .quick-grid,
  .do-now-grid,
  .stat-grid,
  .cards.four,
  .flow-grid,
  .guideline-grid,
  .guideline-grid.clinical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coach-section,
  .image-band,
  .page-hero,
  .caveat-section {
    grid-template-columns: 1fr;
  }
}

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

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

@media (max-width: 760px) {
  .hero {
    min-height: 680px;
  }

  .hero-copy {
    padding: 62px 18px 72px;
  }

  .language-row {
    flex-wrap: wrap;
  }

  .quick-grid,
  .do-now-grid,
  .stat-grid,
  .cards.three,
  .cards.four,
  .flow-grid,
  .guideline-grid,
  .guideline-grid.clinical,
  .split-section,
  .sources ul {
    grid-template-columns: 1fr;
  }

  .quick-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plain-table > div,
  .step-list article {
    grid-template-columns: 1fr;
  }

  .compression-coach {
    min-height: 390px;
    padding: 18px;
  }
}
