:root {
  --ink: #142033;
  --muted: #627083;
  --line: #dce5ed;
  --paper: #f6f8f7;
  --white: #ffffff;
  --navy: #0d2742;
  --teal: #157978;
  --teal-soft: #e5f4f2;
  --coral: #cf4f45;
  --coral-soft: #fff0ec;
  --gold: #b87b21;
  --gold-soft: #fff6df;
  --plum: #593d66;
  --shadow: 0 20px 48px rgba(20, 32, 51, 0.14);
}

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

button,
input,
select {
  font: inherit;
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--teal) 55%, var(--coral));
  color: var(--white);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 900;
}

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

.main-nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 66px);
  padding: clamp(42px, 8vw, 92px) clamp(16px, 5vw, 72px) 28px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 39, 66, 0.92), rgba(13, 39, 66, 0.72) 42%, rgba(13, 39, 66, 0.34)),
    url("assets/heart-rhythm-illustration.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-copy,
.hero-metrics {
  position: relative;
}

.hero-copy {
  align-self: center;
  max-width: 920px;
}

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

.hero .eyebrow {
  color: #ffb4a8;
}

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

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

.hero h1 {
  max-width: 1050px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.hero-lede {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
}

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

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

.button.primary,
button.primary {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--white);
}

.hero-metrics {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 54px;
}

.hero-metrics article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.notice-band {
  padding: 16px clamp(18px, 5vw, 72px);
  background: var(--gold-soft);
  border-block: 1px solid #ead59b;
  color: #5a3b0f;
}

.network-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.network-band span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.network-band a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.network-band a:hover {
  border-color: var(--teal);
}

.section {
  padding: clamp(44px, 7vw, 92px) clamp(16px, 5vw, 72px);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 28px;
}

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

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.45rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.evidence-grid,
.outcome-grid,
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.evidence-card,
.outcome-grid article,
.company-card,
.filters,
.clinician-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20, 32, 51, 0.07);
}

.evidence-card {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

dl {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

dl div {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 850;
}

.compare-section {
  background: var(--white);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--navy);
  color: var(--white);
}

tbody th {
  width: 160px;
  color: var(--teal);
}

.visual-section {
  background: #eef5f3;
}

.pulse-diagram {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.heart-panel {
  padding: clamp(14px, 3vw, 26px);
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.atrium {
  fill: #f4b0aa;
  stroke: #8d2c31;
  stroke-width: 8;
}

.vein {
  fill: none;
  stroke: #8d2c31;
  stroke-width: 22;
  stroke-linecap: round;
}

.ostium {
  fill: #fff2ef;
  stroke: #cf4f45;
  stroke-width: 6;
}

.pulses circle {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-dasharray: 10 12;
}

.catheter {
  fill: none;
  stroke: #2a3545;
  stroke-width: 10;
  stroke-linecap: round;
}

.tip {
  fill: var(--gold);
  stroke: var(--white);
  stroke-width: 4;
}

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

.outcome-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--plum);
  font-size: 1.05rem;
}

.market-section {
  background: var(--white);
}

.company-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.company-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.company-card h3 {
  margin-bottom: 4px;
}

.share-pill {
  min-width: 72px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--coral-soft);
  color: var(--coral);
  text-align: center;
  font-weight: 900;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f3;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.company-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.clinician-section {
  background: #fbf7f1;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.filters label {
  display: grid;
  gap: 7px;
}

.filters span,
.count-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(21, 121, 120, 0.14);
}

.count-box {
  display: grid;
  gap: 2px;
  padding: 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.count-box strong {
  font-size: 2.3rem;
  line-height: 1;
}

.count-box span {
  color: rgba(255, 255, 255, 0.72);
}

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

.clinician-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.clinician-card h3 {
  margin-bottom: 4px;
}

.clinician-card p {
  margin-bottom: 0;
}

.place {
  color: var(--muted);
  font-weight: 760;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.card-actions a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.sources-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 1050px;
}

.language-section {
  background: var(--white);
}

.language-tools {
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 1fr) minmax(220px, 0.28fr);
  gap: 18px;
  align-items: start;
  max-width: 1120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.language-tools label {
  display: grid;
  gap: 7px;
}

.language-tools label span,
.mini-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.language-chips a,
.language-chips span {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.sources-list a {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.sources-list a:hover {
  border-color: var(--teal);
}

.updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .evidence-grid,
  .outcome-grid,
  .company-grid,
  .clinician-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .brand {
    min-width: 0;
  }

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

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-metrics,
  .evidence-grid,
  .outcome-grid,
  .company-grid,
  .pulse-diagram,
  .directory-layout,
  .clinician-list,
  .language-tools,
  .sources-list {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}
