/* ===========================================
   NarcoticTrack - Clean Rebuild
   =========================================== */

:root {
  --red: #c8102e;
  --red-dk: #a00d24;
  --integritrack-purple: #3C3489;
  --blood: #7b1a1a;
  --maroon: #7D1E1E;
  --maroon-dk: #5e1616;
  --g50: #fafafa;
  --g100: #f4f4f5;
  --g200: #e4e4e7;
  --g400: #a1a1aa;
  --g500: #71717a;
  --g600: #52525b;
  --g700: #3f3f46;
  --g800: #27272a;
  --g900: #18181b;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --r: 10px;
  --rl: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--g800);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  scroll-margin-top: 72px;
}

h1, h2, h3 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-weight: 800;
  color: var(--g900);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 1rem + 2vw, 2.25rem);
}

h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 .75rem;
}

/* --- Layout --- */

.wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.sect {
  padding: 4.5rem 0;
}

.bg {
  background: var(--g50);
}

.centered {
  text-align: center;
}

.sub {
  font-size: 1.05rem;
  color: var(--g600);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.muted {
  color: var(--g500);
  font-size: .9rem;
}

.note {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: .88rem;
}

.two-col {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  border: 2px solid var(--red);
  font-size: .92rem;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--sans);
  text-align: center;
}

.btn:hover {
  background: var(--red-dk);
  border-color: var(--red-dk);
  box-shadow: 0 4px 14px rgba(200, 16, 46, .22);
  transform: translateY(-1px);
  color: #fff;
}

.btn.outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn.outline:hover {
  background: var(--red);
  color: #fff;
}

.btn.full {
  width: 100%;
}

.btn.sm {
  padding: .5rem 1rem;
  font-size: .85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.25rem 0;
}

/* --- Header --- */

.header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img,
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .logo img,
  .logo-img {
    height: 34px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.nav a:not(.btn) {
  font-weight: 600;
  font-size: .82rem;
  padding: .4rem .55rem;
  border-radius: 6px;
  color: var(--g700);
  transition: color .15s;
  white-space: nowrap;
}

.nav a:not(.btn):hover {
  color: var(--red);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 101;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g800);
  transition: .3s;
}

.menu-btn span {
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
}

.menu-btn span::before {
  top: -7px;
}

.menu-btn span::after {
  top: 7px;
}

.menu-btn[aria-expanded="true"] span {
  background: transparent;
}

.menu-btn[aria-expanded="true"] span::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-btn[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
  top: 0;
}

@media (max-width: 1080px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    gap: .35rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-bottom: 1px solid var(--g200);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: .7rem 1rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    font-size: .95rem;
  }

  .nav a:not(.btn) {
    font-size: .95rem;
    padding: .7rem 1rem;
  }
}

/* --- Hero --- */

.hero {
  padding: 4.5rem 0 3rem;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-text {
  order: 2;
}

.hero-img-wrap {
  order: 1;
  text-align: center;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-img-wrap {
    order: 2;
    text-align: left;
  }
}

.kicker {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  font-size: .78rem;
  margin-bottom: .5rem;
}

.hero-img {
  max-width: 720px;
  width: 100%;
  margin: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .07));
}

.quote {
  font-style: italic;
  color: var(--g500);
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
  font-size: .92rem;
}

.quote cite {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  font-style: normal;
  color: var(--g400);
}

/* --- Features --- */

#features {
  background: #ffffff;
}

.feat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.feat-img {
  max-width: 540px;
  width: 100%;
  border-radius: var(--rl);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  margin: 0 auto;
}

#narcotictrack > .wrap > div[style*="margin-top"] > .two-col {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  #narcotictrack > .wrap > div[style*="margin-top"] > .two-col {
    grid-template-columns: 1.3fr 1fr;
  }
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 260px;
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .7rem;
  font-size: .93rem;
  color: var(--g700);
  line-height: 1.5;
}

.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

.checks.sm li {
  font-size: .88rem;
  margin-bottom: .55rem;
}

/* --- BloodTrack --- */

.bt-sect {
  background: var(--g900);
  color: #fff;
  overflow: hidden;
}

.bt-sect h1,
.bt-sect h2,
.bt-sect h3 {
  color: #fff;
}

.bt-sect .sub {
  color: rgba(255, 255, 255, .65);
}

.bt-top {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.pill {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: .25rem .9rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: .75rem;
}

.bt-hero-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .bt-hero-row {
    grid-template-columns: 1.3fr .7fr;
  }
}

.bt-hero-img {
  border-radius: var(--rl);
  border: 1px solid rgba(255, 255, 255, .1);
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

.bt-hero-text h3 {
  margin-bottom: .5rem;
  font-size: 1.15rem;
}

.bt-hero-text p {
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
  line-height: 1.6;
}

.bt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.bt-tags span {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  padding: .3rem .6rem;
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
}

.bt-two-col {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .bt-two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.bt-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  overflow: hidden;
  transition: .25s;
}

.bt-card:hover {
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.bt-card img {
  width: 100%;
  display: block;
  padding: 8px 8px 0;
  background: rgba(255, 255, 255, .06);
}

.bt-card-body {
  padding: 1.25rem;
}

.bt-card-body h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.bt-card-body p {
  color: rgba(255, 255, 255, .55);
  font-size: .86rem;
  line-height: 1.55;
  margin: 0;
}

.bt-features-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .bt-features-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bt-features-bar > div {
  background: var(--g900);
  padding: 1.1rem 1.25rem;
}

.bt-features-bar strong {
  display: block;
  font-size: .88rem;
  color: #fff;
  margin-bottom: .2rem;
}

.bt-features-bar span {
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.4;
}

.bt-cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.bt-cta .btn {
  color: #fff;
}

.bt-cta .btn.outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.bt-cta .btn.outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.bt-note {
  color: rgba(255, 255, 255, .35);
  font-size: .83rem;
  margin-top: .75rem;
}

/* --- Temp Stick --- */

.ts-sect {
  background: var(--g50);
  border-top: 1px solid var(--g200);
  border-bottom: 1px solid var(--g200);
}

.ts-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .ts-layout {
    grid-template-columns: 1.4fr .6fr;
  }
}

.ts-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: .5rem;
}

.ts-text h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  margin-bottom: .65rem;
}

.ts-text > p {
  font-size: .92rem;
  color: var(--g600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.ts-btn-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.ts-disclosure {
  font-size: .72rem;
  color: var(--g400);
  line-height: 1.5;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--g200);
}

.ts-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ts-feature {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--r);
  padding: 1.15rem;
  transition: .25s;
}

.ts-feature:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}

.ts-feature svg {
  color: var(--red);
  margin-bottom: .5rem;
}

.ts-feature strong {
  display: block;
  font-size: .88rem;
  margin-bottom: .2rem;
  color: var(--g900);
}

.ts-feature p {
  font-size: .8rem;
  color: var(--g500);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 600px) {
  .ts-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .ts-btn-row {
    flex-direction: column;
  }

  .ts-btn-row .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* --- AI Intelligence --- */

.ai-sect {
  background: #fff;
  overflow: hidden;
}

.ai-top {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.ai-pill {
  background: var(--g900);
}

/* How it works grid */

.ai-how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .ai-how-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ai-how {
  padding: 1.15rem;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--r);
  transition: .25s;
}

.ai-how:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}

.ai-how-icon {
  color: var(--red);
  margin-bottom: .5rem;
}

.ai-how strong {
  display: block;
  font-size: .82rem;
  margin-bottom: .2rem;
  color: var(--g900);
}

.ai-how p {
  font-size: .75rem;
  color: var(--g500);
  line-height: 1.45;
  margin: 0;
}

/* What AI monitors */

.ai-monitors-section {
  margin-bottom: 3rem;
  text-align: center;
}

.ai-monitors-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.ai-monitors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  max-width: 900px;
  margin: 1.5rem auto 0;
  text-align: left;
}

@media (min-width: 600px) {
  .ai-monitors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .ai-monitors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ai-monitor-item {
  padding: 1.15rem;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--r);
  transition: .25s;
}

.ai-monitor-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}

.ai-monitor-item .ai-badge {
  margin-bottom: .5rem;
}

.ai-monitor-item strong {
  display: block;
  font-size: .88rem;
  margin-bottom: .25rem;
  color: var(--g900);
}

.ai-monitor-item p {
  font-size: .82rem;
  color: var(--g500);
  line-height: 1.5;
  margin: 0;
}

/* Three tiers */

.ai-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .ai-tiers {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.ai-tier {
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 1.5rem;
  transition: .25s;
}

.ai-tier:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}

.ai-tier-icon {
  color: var(--red);
  margin-bottom: .75rem;
}

.ai-tier-freq {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin-bottom: .5rem;
}

.ai-tier h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: .4rem;
}

.ai-tier p {
  font-size: .88rem;
  color: var(--g600);
  line-height: 1.55;
}

.ai-tier-details {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}

.ai-tier-details li {
  font-size: .82rem;
  color: var(--g600);
  padding: .35rem 0;
  border-top: 1px solid var(--g200);
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.4;
}

.ai-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .5px;
  padding: .15rem .45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.ai-badge.critical {
  background: #fde8e8;
  color: #b91c1c;
}

.ai-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.ai-badge.info {
  background: #dbeafe;
  color: #1e40af;
}

.ai-tier-covers {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .75rem;
}

.ai-tier-covers span {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 6px;
  padding: .2rem .5rem;
  font-size: .7rem;
  color: var(--g500);
  font-weight: 600;
}

/* Compliance scoring */

.ai-scoring {
  margin-top: .75rem;
}

.ai-score-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}

.ai-score-label {
  font-size: .75rem;
  color: var(--g600);
  min-width: 90px;
  font-weight: 500;
}

.ai-score-bar {
  flex: 1;
  height: 8px;
  background: var(--g200);
  border-radius: 999px;
  overflow: hidden;
}

.ai-score-fill {
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  transition: width .6s ease;
}

.ai-score-pct {
  font-size: .72rem;
  font-weight: 700;
  color: var(--g500);
  min-width: 28px;
  text-align: right;
}

/* Dashboard mockup */

.ai-mockup-section {
  margin-bottom: 2.5rem;
  text-align: center;
}

.ai-mockup-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.ai-mockup {
  background: var(--g900);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .15);
  text-align: left;
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.ai-mockup-chrome {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  background: var(--g800);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ai-mockup-dots {
  display: flex;
  gap: 5px;
}

.ai-mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

.ai-mockup-dots span:first-child { background: #ef4444; }
.ai-mockup-dots span:nth-child(2) { background: #f59e0b; }
.ai-mockup-dots span:last-child { background: #22c55e; }

.ai-mockup-url {
  flex: 1;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: .3rem .75rem;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  font-family: monospace;
}

.ai-mockup-body {
  padding: 1.25rem;
}

.ai-mock-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ai-mock-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--red);
}

.ai-mock-title {
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
}

.ai-mock-date {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-left: auto;
}

/* Summary badges */

.ai-mock-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: 1rem;
}

.ai-mock-badge {
  border-radius: 8px;
  padding: .65rem .75rem;
  text-align: center;
}

.ai-mock-badge.critical { background: rgba(185, 28, 28, .15); border: 1px solid rgba(185, 28, 28, .25); }
.ai-mock-badge.warning { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .2); }
.ai-mock-badge.info { background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .2); }
.ai-mock-badge.compliant { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .2); }

.ai-mock-badge-count {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: .2rem;
}

.ai-mock-badge.critical .ai-mock-badge-count { color: #f87171; }
.ai-mock-badge.warning .ai-mock-badge-count { color: #fbbf24; }
.ai-mock-badge.info .ai-mock-badge-count { color: #60a5fa; }
.ai-mock-badge.compliant .ai-mock-badge-count { color: #4ade80; }

.ai-mock-badge-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.4);
}

/* Mock sections */

.ai-mock-section {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  margin-bottom: .65rem;
  overflow: hidden;
}

.ai-mock-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ai-mock-section-title {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}

.ai-mock-expand {
  font-size: .6rem;
  color: rgba(255,255,255,.25);
}

/* Flags */

.ai-mock-flag {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.ai-mock-flag:last-child {
  border-bottom: none;
}

.ai-mock-flag-sev {
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .5px;
  padding: .15rem .4rem;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: .1rem;
}

.ai-mock-flag.critical .ai-mock-flag-sev { background: rgba(185,28,28,.2); color: #f87171; }
.ai-mock-flag.warning .ai-mock-flag-sev { background: rgba(245,158,11,.15); color: #fbbf24; }
.ai-mock-flag.info .ai-mock-flag-sev { background: rgba(59,130,246,.15); color: #60a5fa; }

.ai-mock-flag-text {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  line-height: 1.45;
}

/* Unit status grid */

.ai-mock-units {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .65rem .85rem .35rem;
}

.ai-mock-unit {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: .3rem .55rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}

.ai-mock-unit-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ai-mock-unit-dot.good { background: #4ade80; }
.ai-mock-unit-dot.caution { background: #fbbf24; }
.ai-mock-unit-dot.bad { background: #f87171; }

.ai-mock-legend {
  display: flex;
  gap: 1rem;
  padding: .25rem .85rem .65rem;
  flex-wrap: wrap;
}

.ai-mock-legend > span {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .65rem;
  color: rgba(255,255,255,.3);
}

/* Mock footer */

.ai-mock-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .65rem .85rem;
  margin-top: .35rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .65rem;
  color: rgba(255,255,255,.25);
}

.ai-mock-regen {
  margin-left: auto;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  padding: .25rem .6rem;
  border-radius: 5px;
  font-size: .65rem;
  font-family: var(--sans);
  cursor: default;
}

/* Key differentiators */

.ai-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .ai-diff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ai-diff {
  padding: 1.15rem;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--r);
}

.ai-diff strong {
  display: block;
  font-size: .88rem;
  margin-bottom: .25rem;
  color: var(--g900);
}

.ai-diff p {
  font-size: .82rem;
  color: var(--g500);
  line-height: 1.5;
  margin: 0;
}

/* AI CTA */

.ai-cta {
  text-align: center;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* AI responsive */

@media (max-width: 600px) {
  .ai-how-grid {
    grid-template-columns: 1fr;
  }

  .ai-mock-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-mock-date {
    margin-left: 0;
    width: 100%;
  }

  .ai-diff-grid {
    grid-template-columns: 1fr;
  }

  .ai-tier {
    padding: 1.25rem;
  }

  .ai-mockup-body {
    padding: .85rem;
  }

  .ai-mock-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }

  .ai-mock-regen {
    margin-left: 0;
  }

  .ai-cta {
    flex-direction: column;
    align-items: center;
  }

  .ai-cta .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 380px) {
  .ai-mock-summary {
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
  }

  .ai-mock-badge {
    padding: .5rem .5rem;
  }

  .ai-mock-badge-count {
    font-size: 1.1rem;
  }

  .ai-score-label {
    min-width: 70px;
    font-size: .68rem;
  }
}

/* --- ResusciTrack --- */

.rt-sect {
  background: #fff;
  color: var(--g800);
}

.rt-sect h2,
.rt-sect h3 {
  color: var(--g900);
}

.rt-sect .sub {
  color: var(--g600);
}

.rt-top {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.rt-pill {
  background: var(--maroon);
}

.rt-btn {
  background: var(--maroon);
  border-color: var(--maroon);
}

.rt-btn:hover {
  background: var(--maroon-dk);
  border-color: var(--maroon-dk);
}

.rt-btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.rt-btn-outline:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

/* Problem / Solution */

.rt-problem-solution {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .rt-problem-solution {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }
}

.rt-ps-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  padding: 1.75rem;
}

.rt-ps-icon {
  color: rgba(255, 255, 255, .5);
  margin-bottom: .75rem;
}

.rt-problem .rt-ps-icon {
  color: #f87171;
}

.rt-solution .rt-ps-icon {
  color: #4ade80;
}

.rt-ps-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.rt-problem h3 {
  color: #f87171;
}

.rt-solution h3 {
  color: #4ade80;
}

.rt-ps-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rt-ps-card li {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  padding: .4rem 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}

.rt-problem li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 700;
}

.rt-solution li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}

.rt-ps-arrow {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, .2);
}

@media (max-width: 799px) {
  .rt-ps-arrow svg {
    transform: rotate(90deg);
  }
}

/* Feature Showcase */

.rt-features-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 72px;
}

.rt-section-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: .5rem;
}

.rt-features-section .sub {
  text-align: center;
  margin: 0 auto 1.75rem;
}

.rt-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .rt-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rt-feature-grid .rt-feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 540px;
    justify-self: center;
  }
}

.rt-feature-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  overflow: hidden;
  transition: .25s;
}

.rt-feature-card:hover {
  border-color: rgba(125, 30, 30, .4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

.rt-feature-img-wrap img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.rt-feature-body {
  padding: 1.25rem;
}

.rt-feature-body h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.rt-feature-body p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.55;
}

.rt-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}

.rt-feature-tags span {
  background: rgba(125, 30, 30, .25);
  border: 1px solid rgba(125, 30, 30, .35);
  border-radius: 6px;
  padding: .2rem .5rem;
  font-size: .7rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 600;
}

/* Workflow */

.rt-workflow-section {
  margin-bottom: 3.5rem;
}

.rt-workflow-section .sub {
  text-align: center;
  margin: 0 auto 1.75rem;
}

.rt-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 800px) {
  .rt-workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .rt-workflow-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.rt-workflow-step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  transition: .25s;
}

.rt-workflow-step:hover {
  border-color: rgba(125, 30, 30, .4);
  transform: translateY(-2px);
}

.rt-step-num {
  position: absolute;
  top: -.55rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--maroon);
  color: #fff;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.rt-step-icon {
  color: rgba(255, 255, 255, .45);
  margin-bottom: .5rem;
}

.rt-workflow-step strong {
  display: block;
  font-size: .85rem;
  margin-bottom: .25rem;
  color: #fff;
}

.rt-workflow-step p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  line-height: 1.45;
  margin: 0;
}

/* Metrics */

.rt-metrics-section {
  margin-bottom: 3.5rem;
}

.rt-metrics-section .sub {
  text-align: center;
  margin: 0 auto 1.75rem;
}

.rt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 800px) {
  .rt-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rt-metric-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  padding: 1.25rem;
  text-align: center;
  transition: .25s;
}

.rt-metric-card:hover {
  border-color: rgba(125, 30, 30, .4);
  transform: translateY(-2px);
}

.rt-metric-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--maroon);
  background: linear-gradient(135deg, #c87d7d, #e8b4b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: .35rem;
}

.rt-metric-card strong {
  display: block;
  font-size: .85rem;
  margin-bottom: .25rem;
  color: #fff;
}

.rt-metric-card p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  line-height: 1.45;
  margin: 0;
}

/* Integrations */

.rt-integrations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .rt-integrations {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rt-integration-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  padding: 1.5rem;
}

.rt-integration-icon {
  color: rgba(255, 255, 255, .5);
  flex-shrink: 0;
  margin-top: .1rem;
}

.rt-integration-card strong {
  display: block;
  font-size: .92rem;
  margin-bottom: .25rem;
  color: #fff;
}

.rt-integration-card p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.55;
  margin: 0;
}

/* CTA */

.rt-cta {
  text-align: center;
  padding-top: .5rem;
}

.rt-cta h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: .35rem;
}

.rt-cta p {
  color: rgba(255, 255, 255, .5);
  font-size: .92rem;
}

.rt-cta-note {
  font-size: .8rem !important;
  color: rgba(255, 255, 255, .3) !important;
  margin-top: .75rem;
}

/* Screenshot containers */

.rt-screenshot {
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.rt-screenshot img {
  width: 100%;
  height: auto;
  border-radius: var(--rl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .08);
}

.rt-screenshot-sm {
  max-width: 900px;
  margin: 0;
  flex: 1 1 55%;
}

/* Highlight rows */

.rt-highlight-section {
  margin-bottom: 3.5rem;
}

.rt-highlight-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .rt-highlight-row {
    grid-template-columns: .45fr .55fr;
  }

  .rt-highlight-reverse {
    grid-template-columns: .55fr .45fr;
  }

  .rt-highlight-reverse .rt-highlight-text {
    order: 2;
  }

  .rt-highlight-reverse .rt-screenshot-sm {
    order: 1;
  }
}

.rt-highlight-text h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.rt-highlight-text p {
  font-size: .92rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
  margin: 0;
}

/* Pricing section */

.rt-pricing-section {
  margin-bottom: 3rem;
  scroll-margin-top: 72px;
}

.rt-pricing-inner {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rl);
  padding: 3rem 2rem;
}

.rt-pricing-section h2 {
  color: #fff;
}

.rt-pricing-sub {
  color: rgba(255, 255, 255, .55) !important;
}

.rt-setup-banner {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 4px solid var(--maroon);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 2rem;
  max-width: 840px;
}

.rt-setup-banner strong {
  color: rgba(255, 255, 255, .85);
}

/* Pricing cards inside dark section */

.rt-pricing-section .plan {
  background: var(--g900);
  border-color: rgba(255, 255, 255, .1);
}

.rt-pricing-section .plan:hover {
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}

.rt-pricing-section .plan.pop {
  border-color: var(--maroon);
  border-width: 2px;
}

.rt-pricing-section .pop-tag {
  background: var(--maroon);
}

.rt-pricing-section .plan-price {
  color: #fff;
}

.rt-pricing-section .plan-price span {
  color: rgba(255, 255, 255, .4);
}

.rt-pricing-section .plan-mo {
  color: rgba(255, 255, 255, .45);
}

.rt-pricing-section .plan-mo strong {
  color: #e8b4b4;
}

.rt-pricing-section .plan-head p {
  color: rgba(255, 255, 255, .45);
}

.rt-plan-label {
  background: var(--maroon) !important;
}

.rt-pricing-section .checks li {
  color: rgba(255, 255, 255, .6);
}

.rt-pricing-section .checks li::before {
  color: #e8b4b4;
}

.rt-pricing-section .checks li strong {
  color: #fff;
}

.rt-pricing-section .btn.outline {
  color: rgba(255, 255, 255, .8);
  border-color: rgba(255, 255, 255, .2);
}

.rt-pricing-section .btn.outline:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.rt-pricing-section .btn.full:not(.outline) {
  background: var(--maroon);
  border-color: var(--maroon);
}

.rt-pricing-section .btn.full:not(.outline):hover {
  background: var(--maroon-dk);
  border-color: var(--maroon-dk);
}

/* A la carte and custom integrations in dark */

.rt-pricing-section .extras-title {
  color: #fff;
}

.rt-muted {
  color: rgba(255, 255, 255, .35) !important;
}

.rt-extra {
  background: rgba(255, 255, 255, .04) !important;
  border-color: rgba(255, 255, 255, .08) !important;
}

.rt-extra .extra-price {
  color: #fff;
}

.rt-extra .extra-price span {
  color: rgba(255, 255, 255, .35);
}

.rt-extra strong {
  color: rgba(255, 255, 255, .85);
}

.rt-extra p {
  color: rgba(255, 255, 255, .4) !important;
}

.rt-extras {
  margin-bottom: 2.5rem;
}

.rt-custom-integrations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ResusciTrack Responsive */

@media (max-width: 800px) {
  .rt-top {
    margin-bottom: 2.5rem;
  }

  .rt-pricing-inner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .rt-feature-grid {
    grid-template-columns: 1fr;
  }

  .rt-workflow-grid {
    grid-template-columns: 1fr;
  }

  .rt-metrics-grid {
    grid-template-columns: 1fr;
  }

  .rt-ps-card {
    padding: 1.25rem;
  }

  .rt-cta .btn-row {
    flex-direction: column;
    align-items: center;
  }

  .rt-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .rt-feature-body {
    padding: 1rem;
  }

  .rt-pricing-inner {
    padding: 1.5rem 1rem;
  }

  .rt-setup-banner {
    font-size: .84rem;
    padding: .85rem 1rem;
  }

  .rt-custom-integrations {
    grid-template-columns: 1fr;
  }

  .rt-highlight-text h3 {
    text-align: center;
  }

  .rt-highlight-text p {
    text-align: center;
  }
}

/* --- Logos --- */

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.logos img {
  max-height: 52px;
  filter: grayscale(1);
  opacity: .55;
  transition: .3s;
}

.logos img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* --- Pricing --- */

.setup-banner {
  background: #fff;
  border: 1px solid var(--g200);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--g600);
  margin-bottom: 2rem;
  max-width: 840px;
}

.setup-banner strong {
  color: var(--g800);
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.plan {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: .25s;
}

.plan:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}

.plan.pop {
  border: 2px solid var(--red);
  position: relative;
}

@media (min-width: 900px) {
  .plan.pop {
    transform: scale(1.03);
    z-index: 2;
  }

  .plan.pop:hover {
    transform: scale(1.03) translateY(-2px);
  }
}

.pop-tag {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: .35rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.plan-head {
  padding: 1.5rem 1.5rem .75rem;
}

.plan-label {
  display: inline-block;
  background: var(--g900);
  color: #fff;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.plan-label.accent {
  background: var(--red);
}

.plan-label.blood {
  background: var(--blood);
}

.plan-price {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--g900);
  line-height: 1;
}

.plan-price span {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--g400);
}

.plan-mo {
  font-size: .85rem;
  color: var(--g500);
  margin: .25rem 0 .6rem;
}

.plan-mo strong {
  color: var(--red);
}

.plan-head p {
  font-size: .88rem;
  color: var(--g600);
  line-height: 1.5;
  margin: 0;
}

.plan-body {
  padding: .75rem 1.5rem;
  flex: 1;
}

.plan-foot {
  padding: 0 1.5rem 1.5rem;
}

/* Extras */

.pricing-divider-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--g200);
}

.extras-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: .25rem;
}

.rt-integrations-extras {
  margin-bottom: 2.5rem;
}

.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .extras {
    grid-template-columns: repeat(4, 1fr);
  }
}

.extra {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--r);
  padding: 1.15rem;
}

.extra-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--g900);
  margin-bottom: .15rem;
}

.extra-price span {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  color: var(--g400);
}

.extra strong {
  display: block;
  font-size: .85rem;
  margin-bottom: .2rem;
}

.extra p {
  font-size: .8rem;
  color: var(--g500);
  line-height: 1.45;
  margin: 0;
}

/* Custom SaaS */

.custom-box {
  background: var(--g900);
  border-radius: var(--rl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.25rem;
}

@media (min-width: 800px) {
  .custom-box {
    grid-template-columns: .9fr 1.1fr;
    padding: 2.5rem;
  }
}

.custom-left h3 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: .6rem;
}

.custom-left p {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  line-height: 1.6;
}

.custom-left .btn {
  background: #fff;
  color: var(--g900);
  border-color: #fff;
}

.custom-left .btn:hover {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 16px rgba(255, 255, 255, .15);
  color: var(--g900);
}

.custom-right p {
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
  line-height: 1.6;
  margin: 0;
}

.custom-right strong {
  color: rgba(255, 255, 255, .75);
}

/* --- PDF Highlight --- */

.pdf-highlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  align-items: center;
}

@media (min-width: 800px) {
  .pdf-highlight {
    grid-template-columns: 1fr 1.2fr;
  }
}

.pdf-highlight-text h3 {
  color: var(--red);
  margin-bottom: .5rem;
}

.pdf-highlight-text p {
  font-size: .92rem;
  color: var(--g600);
  line-height: 1.6;
  margin: 0;
}

.pdf-highlight-img img {
  border-radius: var(--r);
  border: 1px solid var(--g200);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  width: 100%;
}

/* --- About --- */

.portrait-wrap {
  text-align: center;
}

.portrait {
  width: 280px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--rl);
  border: 3px solid var(--red);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
  margin: 0 auto;
}

/* --- Contact --- */

.form {
  max-width: 600px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.form input,
.form textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--g200);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: .92rem;
  transition: border .2s;
  background: #fff;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .06);
}

.form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.form button {
  grid-column: 1 / -1;
  padding: .85rem;
}

/* --- CTA Band --- */

.cta-band {
  background: var(--g900);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .sub {
  color: rgba(255, 255, 255, .6);
  max-width: 660px;
  margin: 1rem auto 1.5rem;
}

.cta-band .sub strong {
  color: #fff;
}

.cta-band .btn {
  background: #fff;
  color: var(--g900);
  border-color: #fff;
}

.cta-band .btn:hover {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 16px rgba(255, 255, 255, .15);
  color: var(--g900);
}

/* --- Footer --- */

.footer {
  background: var(--g900);
  color: var(--g400);
  text-align: center;
  padding: 1.25rem 0;
  font-size: .82rem;
}

.footer p {
  margin: 0;
}

/* --- Responsive --- */

/* -- Tablet (601-800px) -- */

@media (max-width: 800px) {
  /* Center stacked sections on tablet/mobile */
  .hero .wrap > div:first-child,
  .bt-top,
  .bt-cta {
    text-align: center;
  }

  .hero .quote {
    text-align: left;
  }

  .hero-img-wrap {
    order: -1;
    text-align: center;
  }

  .hero-img {
    max-width: 540px;
    margin: 0 auto;
  }

  .hero .btn-row {
    justify-content: center;
  }

  /* BloodTrack CTA buttons stack on mobile */
  .bt-cta .btn-row,
  .bt-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }

  .bt-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  /* About section: portrait first on mobile */
  .two-col.about-grid {
    direction: ltr;
  }

  #about .two-col {
    text-align: center;
  }

  #about .two-col p {
    text-align: left;
  }

  /* Partners logos smaller gap */
  .logos {
    gap: 1.25rem;
  }

  .logos img {
    max-height: 42px;
  }
}

/* -- Small mobile (max 600px) -- */

@media (max-width: 600px) {
  .sect {
    padding: 3rem 0;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-img {
    max-width: 380px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .sub {
    font-size: .95rem;
  }

  .portrait {
    width: 200px;
    height: 290px;
  }

  .feat-grid {
    flex-direction: column;
  }

  .feat-img {
    max-width: 380px;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
  }

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

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

  /* Tighter padding on dark boxes */
  .custom-box {
    padding: 1.5rem;
  }

  .pdf-highlight {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  /* BloodTrack refinements */
  .bt-hero-row {
    gap: 1.5rem;
  }

  .bt-hero-text {
    text-align: center;
  }

  .bt-tags {
    justify-content: center;
  }

  .bt-card-body {
    padding: 1rem;
  }

  .bt-features-bar > div {
    padding: .9rem 1rem;
  }

  /* Pricing cards */
  .plan-head {
    padding: 1.25rem 1.25rem .6rem;
  }

  .plan-body {
    padding: .6rem 1.25rem;
  }

  .plan-foot {
    padding: 0 1.25rem 1.25rem;
  }

  .setup-banner {
    font-size: .84rem;
    padding: .85rem 1rem;
  }

  /* Partners logos */
  .logos {
    gap: 1rem;
  }

  .logos img {
    max-height: 36px;
  }

  /* Quote smaller on mobile */
  .quote {
    font-size: .86rem;
    margin-top: 1.25rem;
  }

  /* Section headings center on small mobile */
  #features > .wrap > h2,
  #features > .wrap > .sub,
  #records > .wrap > h2,
  #who > .wrap > h2,
  #who > .wrap > .sub {
    text-align: center;
  }

  /* Form inputs larger touch targets */
  .form input,
  .form textarea {
    padding: .9rem 1rem;
    font-size: .95rem;
  }

  /* CTA band tighter */
  .cta-band .sub {
    font-size: .92rem;
  }

  /* About section text */
  #about p {
    font-size: .93rem;
  }
}

/* -- Extra small mobile (max 380px) -- */

@media (max-width: 380px) {
  .wrap {
    width: 94%;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .plan-price {
    font-size: 2rem;
  }

  .extra-price {
    font-size: 1.15rem;
  }

  .bt-features-bar {
    grid-template-columns: 1fr;
  }
}

/* --- Accessibility --- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .header, .footer, .nav, .btn {
    display: none;
  }
  .sect {
    page-break-inside: avoid;
  }
}

/* ============================================
   Restructure additions
   ============================================ */

/* Hero product tiles */
.hero-product-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .hero-product-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero-product-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1300px) {
  .hero-product-tiles { grid-template-columns: repeat(6, 1fr); }
}
.hero-tile {
  display: block;
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--g200);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--g800);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.hero-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: var(--red);
}
.hero-tile strong {
  display: block;
  font-size: 1.05rem;
  color: var(--red);
  margin-bottom: .25rem;
}
.hero-tile span {
  display: block;
  font-size: .85rem;
  color: var(--g600);
  line-height: 1.4;
}
@media (max-width: 639px) {
  .hero-product-tiles { gap: .75rem; }
}

/* Compact partner strip directly under hero */
.partner-strip {
  padding: 2rem 0 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--g200);
}
.partner-strip .partner-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g500);
  margin-bottom: 1.25rem;
}
.partner-strip .logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.partner-strip .logos img {
  height: 50px;
  width: auto;
  opacity: .75;
  filter: grayscale(20%);
  transition: opacity .2s, filter .2s;
}
.partner-strip .logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}
.partner-strip .logos svg.logo-fl-hospital {
  height: 50px;
  width: auto;
  opacity: .75;
  filter: grayscale(20%);
  transition: opacity .2s, filter .2s;
}
.partner-strip .logos svg.logo-fl-hospital:hover {
  opacity: 1;
  filter: grayscale(0);
}
@media (max-width: 760px) {
  .partner-strip .logos { gap: 1.5rem; }
  .partner-strip .logos img { height: 38px; }
  .partner-strip .logos svg.logo-fl-hospital { height: 38px; }
}

/* Product section header (clear product identity) */
.product-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}
.product-section-header .product-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(125, 30, 30, .08);
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.product-section-header h2 {
  margin: 0 auto .75rem;
  max-width: 720px;
}
.product-section-header .sub {
  max-width: 640px;
  margin: 0 auto;
}

/* Section divider band between products */
.product-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g300), transparent);
  margin: 0;
  border: none;
}

/* Inline pricing card inside product section */
.inline-pricing {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px dashed var(--g300);
}
.inline-pricing h3.inline-pricing-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}
.inline-pricing .plans {
  max-width: 480px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

/* Bundles intro centered */
#bundles .bundles-intro {
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================
   FIX: ResusciTrack light background overrides
   Section was originally dark; flipping to light
   to match NarcoticTrack visual flow
   ============================================ */

/* Cards: light surface with subtle border */
.rt-sect .rt-ps-card,
.rt-sect .rt-feature-card,
.rt-sect .rt-workflow-step,
.rt-sect .rt-metric-card,
.rt-sect .rt-integration-card {
  background: #fff;
  border-color: var(--g200);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.rt-sect .rt-feature-card:hover,
.rt-sect .rt-workflow-step:hover,
.rt-sect .rt-metric-card:hover {
  border-color: var(--maroon);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

/* Problem/solution divider lines and text */
.rt-sect .rt-ps-card li {
  color: var(--g700);
  border-top-color: var(--g200);
}
.rt-sect .rt-ps-icon {
  color: var(--g500);
}

/* Workflow step text */
.rt-sect .rt-step-icon {
  color: var(--g500);
}
.rt-sect .rt-workflow-step strong {
  color: var(--g900);
}
.rt-sect .rt-workflow-step p {
  color: var(--g600);
}

/* Metric cards */
.rt-sect .rt-metric-card strong {
  color: var(--g900);
}
.rt-sect .rt-metric-card p {
  color: var(--g600);
}
.rt-sect .rt-metric-value {
  background: linear-gradient(135deg, var(--maroon), #c87d7d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature card body (kept structurally even though showcase removed) */
.rt-sect .rt-feature-body p {
  color: var(--g600);
}
.rt-sect .rt-feature-img-wrap img {
  border-bottom-color: var(--g200);
}
.rt-sect .rt-feature-tags span {
  background: rgba(125, 30, 30, .08);
  border-color: rgba(125, 30, 30, .2);
  color: var(--maroon);
}

/* Integration callouts */
.rt-sect .rt-integration-icon {
  color: var(--maroon);
}
.rt-sect .rt-integration-card strong {
  color: var(--g900);
}
.rt-sect .rt-integration-card p {
  color: var(--g600);
}

/* Highlight rows */
.rt-sect .rt-highlight-text h3 {
  color: var(--g900);
}
.rt-sect .rt-highlight-text p {
  color: var(--g600);
}

/* Screenshot borders/shadows tuned for light bg */
.rt-sect .rt-screenshot img {
  border-color: var(--g200);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

/* Outline button restyle for light bg */
.rt-sect .rt-btn-outline {
  color: var(--maroon);
  border-color: var(--maroon);
}
.rt-sect .rt-btn-outline:hover {
  background: rgba(125, 30, 30, .06);
  color: var(--maroon);
  border-color: var(--maroon);
}

/* CTA text */
.rt-sect .rt-cta p {
  color: var(--g600);
}
.rt-sect .rt-cta-note {
  color: var(--g500) !important;
}

/* ============================================
   FIX: Inline pricing card grid override
   Force single-column so cards aren't squeezed
   ============================================ */
/* Inline pricing single column override (already set in .inline-pricing .plans above) */
@media (min-width: 900px) {
  .inline-pricing .plans {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   FIX: Temp Stick block on dark BloodTrack bg
   ============================================ */
.bt-sect .ts-layout .ts-text h3 {
  color: #fff;
}
.bt-sect .ts-layout .ts-text > p {
  color: rgba(255, 255, 255, 0.85);
}
.bt-sect .ts-layout .checks li {
  color: rgba(255, 255, 255, 0.88);
}
.bt-sect .ts-layout .checks li::before {
  color: var(--red);
}
.bt-sect .ts-layout .ts-disclosure {
  color: rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 0.15);
}
.bt-sect .ts-layout .ts-feature {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.bt-sect .ts-layout .ts-feature strong {
  color: #fff;
}
.bt-sect .ts-layout .ts-feature p {
  color: rgba(255, 255, 255, 0.75);
}
.bt-sect .ts-layout .ts-feature svg {
  color: var(--red);
}

/* ============================================
   FIX: Dark Bundles section
   ============================================ */
#bundles {
  background: var(--g900);
  color: #fff;
}
#bundles h2 {
  color: #fff;
}
#bundles .sub {
  color: rgba(255, 255, 255, .65);
}
#bundles .plan {
  background: #1f1f23;
  border-color: rgba(255, 255, 255, .1);
}
#bundles .plan:hover {
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
#bundles .plan.pop {
  border-color: var(--red);
}
#bundles .plan-label {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
#bundles .plan-label.accent {
  background: var(--red);
  color: #fff;
}
#bundles .plan-label.rt-plan-label {
  background: var(--maroon);
  color: #fff;
}
#bundles .plan-price {
  color: #fff;
}
#bundles .plan-price span {
  color: rgba(255, 255, 255, .5);
}
#bundles .plan-mo {
  color: rgba(255, 255, 255, .55);
}
#bundles .plan-mo strong {
  color: #fff;
}
#bundles .plan-head p {
  color: rgba(255, 255, 255, .65);
}
#bundles .checks li {
  color: rgba(255, 255, 255, .85);
}
#bundles .checks li strong {
  color: #fff;
}
#bundles .checks li::before {
  color: var(--red);
}
#bundles .btn.outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}
#bundles .btn.outline:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

/* ============================================
   FIX: Image background placeholder while loading
   Prevents jarring blank space as images stream in
   ============================================ */
img {
  background: #f3f3f3;
}
.partner-strip .logos img,
.logo img {
  background: transparent;
}

/* ============================================
   ResusciTrack Timeline Showcase
   ============================================ */
.rt-timeline-showcase {
  margin: 0 auto 3.5rem;
  text-align: center;
}
.rt-timeline-showcase .rt-screenshot {
  margin-bottom: .85rem;
}
.rt-timeline-caption {
  font-size: .85rem;
  color: var(--g600);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   ResusciTrack Case Replay (NEW feature)
   ============================================ */
.rt-case-replay {
  margin: 0 auto 3.5rem;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(128, 0, 32, .04) 0%, rgba(128, 0, 32, 0) 100%);
  border-top: 1px solid rgba(128, 0, 32, .12);
  border-bottom: 1px solid rgba(128, 0, 32, .12);
  border-radius: var(--rl);
}

.rt-cr-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.75rem;
}

.rt-cr-pill {
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: .08em;
}

.rt-cr-header h3 {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 .75rem;
  color: var(--g900);
}

.rt-cr-header .sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--g600);
  margin: 0;
}

.rt-cr-video-wrap {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.rt-cr-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--rl);
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
  border: 1px solid rgba(0, 0, 0, .08);
}

.rt-cr-caption {
  font-size: .85rem;
  color: var(--g600);
  font-style: italic;
  margin: .85rem auto 0;
  max-width: 720px;
  line-height: 1.5;
}

.rt-cr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .rt-cr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.rt-cr-feature {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--rl);
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.rt-cr-icon {
  color: var(--maroon);
  margin-bottom: .65rem;
}

.rt-cr-feature strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--g900);
  margin-bottom: .4rem;
  line-height: 1.3;
}

.rt-cr-feature p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--g600);
  margin: 0;
}

.rt-cr-footnote {
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: center;
}

.rt-cr-footnote p {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--g600);
  font-style: italic;
  margin: 0;
}

@media (max-width: 640px) {
  .rt-case-replay {
    padding: 2rem 1rem;
  }

  .rt-cr-header h3 {
    font-size: 1.5rem;
  }

  .rt-cr-header .sub {
    font-size: .92rem;
  }
}

/* ============================================
   ProtocolTrack section layouts
   ============================================ */
.pt-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .pt-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pt-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.pt-feature {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: .25s;
}
.pt-feature:hover {
  border-color: var(--maroon);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.pt-feature strong {
  display: block;
  font-size: .98rem;
  color: var(--g900);
  margin-bottom: .35rem;
}
.pt-feature p {
  font-size: .85rem;
  color: var(--g600);
  line-height: 1.55;
  margin: 0;
}

/* 3-step / 4-audience / 6-proof grids reuse rt-workflow-step cards */
.pt-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 800px) {
  .pt-steps { grid-template-columns: repeat(3, 1fr); }
}

.pt-audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .pt-audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pt-audience-grid { grid-template-columns: repeat(4, 1fr); }
}

.pt-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .pt-proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pt-proof-grid { grid-template-columns: repeat(3, 1fr); }
}

.pt-audience-grid .rt-workflow-step,
.pt-proof-grid .rt-workflow-step {
  text-align: left;
  padding: 1.25rem;
}
.pt-audience-grid .rt-workflow-step strong,
.pt-proof-grid .rt-workflow-step strong {
  display: block;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.pt-audience-grid .rt-workflow-step p,
.pt-proof-grid .rt-workflow-step p {
  font-size: .85rem;
  line-height: 1.55;
  margin: 0;
}

/* Bundle subhead and subnote (group label inside #bundles) */
#bundles .bundles-subhead {
  margin: 2.5rem 0 .35rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--g900);
}

#bundles .bundles-subnote {
  margin: 0 0 1.5rem;
  color: var(--g600);
  font-size: .95rem;
}

/* Bundles: responsive grid that scales with module count */
.bundles-plans {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .bundles-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .bundles-plans { grid-template-columns: repeat(3, 1fr); }
}

/* Two-module row goes 5-up at wide widths, three-module row stays 4-up */
@media (min-width: 1300px) {
  .bundles-three { grid-template-columns: repeat(4, 1fr); }
  .bundles-two { grid-template-columns: repeat(5, 1fr); }
}

/* ============================================
   PRODUCT COLOR IDENTITY
   ============================================ */

/* Per-product accent variables (ID specificity beats class overrides) */
#narcotictrack { --product-accent: #dc2626; --product-accent-soft: rgba(220, 38, 38, 0.05); }
#bloodtrack    { --product-accent: #991b1b; --product-accent-soft: rgba(153, 27, 27, 0.05); }
#resuscitrack  { --product-accent: #ec4899; --product-accent-soft: rgba(236, 72, 153, 0.05); }
#protocoltrack { --product-accent: #1e40af; --product-accent-soft: rgba(30, 64, 175, 0.05); }
#certtrack     { --product-accent: #0d9488; --product-accent-soft: rgba(13, 148, 136, 0.05); }
#supplytrack   { --product-accent: #ea580c; --product-accent-soft: rgba(234, 88, 12, 0.05); }

/* Top accent strip on each product section */
#narcotictrack,
#bloodtrack,
#resuscitrack,
#protocoltrack,
#certtrack,
#supplytrack {
  position: relative;
}
#narcotictrack::before,
#bloodtrack::before,
#resuscitrack::before,
#protocoltrack::before,
#certtrack::before,
#supplytrack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--product-accent);
  z-index: 2;
}

/* Eyebrow pills tinted to product accent */
#narcotictrack .product-eyebrow,
#bloodtrack .pill,
#resuscitrack .pill,
#protocoltrack .pill,
#certtrack .pill,
#supplytrack .pill {
  background: var(--product-accent);
  color: #fff;
}

/* H2 underline accent under each product title */
#narcotictrack .product-section-header h2,
#bloodtrack .bt-top h2,
#resuscitrack .rt-top h2,
#protocoltrack .rt-top h2,
#certtrack .rt-top h2,
#supplytrack .rt-top h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
#narcotictrack .product-section-header h2::after,
#bloodtrack .bt-top h2::after,
#resuscitrack .rt-top h2::after,
#protocoltrack .rt-top h2::after,
#certtrack .rt-top h2::after,
#supplytrack .rt-top h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--product-accent);
  border-radius: 2px;
}

/* How It Works step number circles per product */
#resuscitrack .rt-step-num,
#protocoltrack .rt-step-num,
#certtrack .rt-step-num,
#supplytrack .rt-step-num {
  background: var(--product-accent);
}


/* ============================================
   PHASE 2: SHARED COMPONENTS AND MODULE PAGES
   ============================================ */

/* --- Audience line under module hero --- */
.audience-line {
  font-size: .95rem;
  color: var(--g600);
  margin-top: .5rem;
  font-style: italic;
}

/* --- Module hero: lift padding-top to clear sticky header --- */
.sect .rt-top h1,
.sect .bt-top h1,
.sect .product-section-header h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: .25rem 0 .75rem;
}

/* --- Module hero: ID-scoped H1 underline (mirrors Phase 1 h2 pattern) --- */
#narcotictrack .product-section-header h1,
#bloodtrack .bt-top h1,
#resuscitrack .rt-top h1,
#protocoltrack .rt-top h1,
#certtrack .rt-top h1,
#supplytrack .rt-top h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
#narcotictrack .product-section-header h1::after,
#bloodtrack .bt-top h1::after,
#resuscitrack .rt-top h1::after,
#protocoltrack .rt-top h1::after,
#certtrack .rt-top h1::after,
#supplytrack .rt-top h1::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--product-accent);
  border-radius: 2px;
}

/* --- Bundle pointer (between pricing and regulatory) --- */
.bundle-pointer-section {
  padding: 2rem 0;
  background: var(--g50);
}
.bundle-pointer-text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--g700);
}
.bundle-pointer-text a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.bundle-pointer-text a:hover {
  border-bottom-color: var(--red);
}

/* --- Regulatory / Clinical / Accreditation section --- */
.regulatory-section {
  padding: 3.5rem 0;
  background: #fff;
}
.reg-heading {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  text-align: center;
  margin: 0 0 .5rem;
  color: var(--g900);
}
.reg-sub {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}
.reg-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .reg-grid { grid-template-columns: repeat(3, 1fr); }
}
.reg-card {
  padding: 1.5rem;
  border: 1px solid var(--g200);
  border-radius: 12px;
  background: #fff;
  border-top: 4px solid var(--product-accent, var(--red));
}
.reg-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  color: var(--g900);
}
.reg-card p {
  margin: 0;
  font-size: .95rem;
  color: var(--g600);
  line-height: 1.55;
}

/* --- Pairs well with --- */
.pairs-section {
  padding: 3.5rem 0;
  background: var(--g50);
}
.pairs-heading {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  text-align: center;
  margin: 0 0 .5rem;
  color: var(--g900);
}
.pairs-sub {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}
.pairs-section .hero-product-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 960px;
}
.pairs-section .hero-tile {
  flex: 1 1 240px;
  max-width: 300px;
}

/* --- CTA band --- */
.cta-band {
  padding: 3rem 0;
  background: var(--g900);
  color: #fff;
}
.cta-band-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .cta-band-inner { grid-template-columns: 1fr auto; }
}
.cta-band-text h2 {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: #fff;
}
.cta-band-text p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 1rem;
}
.cta-band-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.cta-band .btn.outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.cta-band .btn.outline:hover {
  background: #fff;
  color: var(--g900);
  border-color: #fff;
}

/* --- Footer multi-column with sitemap --- */
.footer {
  padding: 3rem 0 1.5rem;
  background: var(--g100);
  color: var(--g600);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-heading {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--g900);
  margin-bottom: .25rem;
}
.footer-col a {
  color: var(--g600);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover {
  color: var(--red);
}
.footer-verse {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--g200);
  font-size: .82rem;
  color: var(--g500);
  text-align: center;
}
.footer-verse em {
  font-style: italic;
}
.footer-legal {
  margin: .35rem 0 0;
  font-size: .85rem;
  color: var(--g500);
  text-align: center;
}

/* ============================================
   PHASE 2 TRIM AND POLISH
   ============================================ */

/* --- Shared utilities used by the new pages --- */
.centered-heading {
  text-align: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.25rem);
  color: var(--g900);
  margin: 0 0 .5rem;
}
.centered-sub {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.centered-note {
  text-align: center;
  margin: 2rem auto 0;
  font-size: .95rem;
  color: var(--g600);
}

/* --- Page hero (used by /about, /contact, /pricing, /ai-insights) --- */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: #fff;
  border-bottom: 1px solid var(--g200);
}
.page-hero .kicker {
  margin-bottom: .5rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
}
.page-hero .sub {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  font-size: 1.1rem;
  color: var(--g600);
}
.page-hero .btn-row {
  justify-content: center;
}

/* --- How IntegriTrack works --- */
.how-it-works-section {
  padding: 4rem 0;
  background: #fff;
}
.how-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}
.how-step {
  padding: 1.75rem;
  border: 1px solid var(--g200);
  border-radius: 14px;
  background: #fff;
  position: relative;
}
.how-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.how-step h3 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  color: var(--g900);
}
.how-step p {
  margin: 0;
  font-size: .95rem;
  color: var(--g600);
  line-height: 1.55;
}

/* --- Featured modules --- */
.featured-modules-section {
  padding: 4rem 0;
}
.bg {
  background: var(--g50);
}
.featured-card {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 16px;
  overflow: hidden;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 900px) {
  .featured-card { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.5rem; }
  .featured-card-reverse { direction: rtl; }
  .featured-card-reverse > * { direction: ltr; }
}
.featured-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.featured-card-text h3 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  margin: 0 0 .75rem;
  color: var(--g900);
}
.featured-card-text p {
  color: var(--g600);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.featured-card-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* --- AI Insights teaser --- */
.ai-teaser-section {
  padding: 4rem 0;
  background: var(--g900);
  color: #fff;
}
.ai-teaser-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .ai-teaser-grid { grid-template-columns: 1.2fr 1fr; }
}
.ai-teaser-text h2 {
  color: #fff;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
  margin: 0 0 .75rem;
}
.ai-teaser-text p {
  color: rgba(255, 255, 255, .75);
  margin: 0 0 1.25rem;
  font-size: 1rem;
}
.ai-teaser-eyebrow {
  color: rgba(255, 255, 255, .85);
}
.ai-teaser-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.ai-teaser-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .35rem;
  color: rgba(255, 255, 255, .85);
}
.ai-teaser-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.ai-teaser-visual {
  display: grid;
  gap: 1rem;
}
.ai-teaser-stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.ai-teaser-stat-num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--red);
  margin-bottom: .35rem;
}
.ai-teaser-stat-label {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  line-height: 1.4;
}
.ai-teaser-section .btn.outline {
  color: #fff;
  border-color: #fff;
}
.ai-teaser-section .btn.outline:hover {
  background: #fff;
  color: var(--g900);
}

/* --- Pricing teaser on homepage --- */
.pricing-teaser-section {
  padding: 4rem 0;
}
.pricing-fullpage-link {
  display: inline-block;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.pricing-fullpage-link:hover {
  border-bottom-color: var(--red);
}

/* --- About page extras --- */
.about-page-section {
  padding: 4rem 0;
}
.about-company-section {
  padding: 4rem 0;
  background: #fff;
}

/* --- Contact page layout --- */
.contact-page-section {
  padding: 3rem 0 4rem;
}
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-aside-block {
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.contact-aside-block h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
  color: var(--g900);
}
.contact-aside-block p {
  margin: 0;
  font-size: .9rem;
  color: var(--g600);
  line-height: 1.55;
}

/* --- Pricing page sections --- */
.individual-pricing-section {
  padding: 4rem 0 2rem;
  background: #fff;
}
.pricing-modules {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .pricing-modules { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .pricing-modules { grid-template-columns: repeat(3, 1fr); }
}

.pricing-faq-section {
  padding: 4rem 0;
  background: var(--g50);
}
.faq-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
.faq-item {
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 12px;
  padding: 1.5rem;
}
.faq-item h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--g900);
}
.faq-item p {
  margin: 0;
  font-size: .95rem;
  color: var(--g600);
  line-height: 1.6;
}
.pricing-cta-section {
  padding: 4rem 0;
  background: #fff;
}
.pricing-cta-section .btn-row {
  justify-content: center;
}

/* --- Page-hero kicker color --- */
.page-hero .kicker {
  color: var(--red);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- Module page screenshot gallery --- */
.screenshot-gallery {
  margin-top: 4rem;
}
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
  border-color: var(--product-accent, var(--red));
}
.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--g200);
}
.gallery-card figcaption {
  padding: 1rem 1.25rem 1.25rem;
}
.gallery-card figcaption strong {
  display: block;
  font-size: 1rem;
  color: var(--g900);
  margin-bottom: .25rem;
}
.gallery-card figcaption span {
  display: block;
  font-size: .9rem;
  color: var(--g600);
  line-height: 1.5;
}

/* --- Mobile mockup section on CertTrack and SupplyTrack pages --- */
.mobile-mockup-section {
  margin-top: 4rem;
}
.mobile-mockup-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (min-width: 768px) {
  .mobile-mockup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}
.mobile-mockup-grid img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

/* --- Thank-you confirmation that replaces the contact form on success --- */
.thank-you-card {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 3rem 2rem;
  background: #fff;
  border: 1px solid var(--g200);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
  text-align: center;
  animation: thank-you-rise .35s ease-out both;
}
@keyframes thank-you-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.thank-you-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
}
.thank-you-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.thank-you-heading {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 1.9rem);
  color: var(--g900);
  margin: 0 0 .75rem;
  line-height: 1.2;
}
.thank-you-lede {
  font-size: 1.05rem;
  color: var(--g700);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.thank-you-meta {
  font-size: .9rem;
  color: var(--g600);
  margin: 0 0 1.75rem;
}
.thank-you-meta strong {
  color: var(--g900);
}
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

/* ============================================
   /custom page
   ============================================ */

.custom-origin-section,
.custom-not-section {
  padding: 4rem 0;
}
.custom-origin-wrap,
.custom-not-wrap,
.custom-audience-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.custom-origin-wrap p,
.custom-not-wrap p,
.custom-audience-wrap p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--g700);
  line-height: 1.65;
}
.custom-origin-wrap p:last-child,
.custom-not-wrap p:last-child,
.custom-audience-wrap p:last-child {
  margin-bottom: 0;
}

.custom-build-section,
.custom-process-section,
.custom-audience-section,
.custom-form-section {
  padding: 4rem 0;
}

/* Who-this-is-for list: two columns on desktop, single column on mobile. */
.custom-audience-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .custom-audience-list { grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
}
.custom-audience-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--g700);
  font-size: 1rem;
}
.custom-audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* Custom-page contact form: single column with labels above inputs. */
.custom-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.custom-form-wrap .form {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.custom-form-wrap .form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--g800);
  margin-bottom: -.5rem;
}
.custom-form-wrap .form-label-opt {
  font-weight: 500;
  color: var(--g500);
}
.custom-form-wrap .form select {
  padding: .8rem 1rem;
  border: 1px solid var(--g200);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: .92rem;
  background: #fff;
  transition: border .2s;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.75rem;
}
.custom-form-wrap .form select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .06);
}
.custom-form-wrap .form textarea {
  grid-column: auto;
}
.custom-form-wrap .form button {
  grid-column: auto;
  margin-top: .5rem;
  justify-self: start;
  padding: .85rem 2rem;
}
@media (max-width: 540px) {
  .custom-form-wrap .form button { justify-self: stretch; }
}

/* ============================================
   MOBILE & TABLET POLISH
   Targeted refinements for phones (<=600px),
   small tablets (601-799px), and tablets
   (800-1080px). Keeps desktop layout intact.
   ============================================ */

/* Larger menu button tap target (WCAG 44x44 min) and
   align with current header height. */
.menu-btn {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
}

/* Mobile nav: anchor under the actual header (which is
   position: sticky so it acts as the positioned ancestor)
   and allow scrolling for long menus on short screens. */
@media (max-width: 1080px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav a:not(.btn),
  .nav a.btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet portrait (700-899px): show plan and bundle cards
   in a 2-column grid so they aren't a long single stack. */
@media (min-width: 700px) and (max-width: 899px) {
  .plans,
  .bundles-plans,
  .pricing-modules {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Highlighted plan spans both columns so the "popular"
     card never sits on its own row at half width. */
  .plans .plan.pop {
    grid-column: 1 / -1;
    max-width: 520px;
    justify-self: center;
    width: 100%;
  }
}

/* CTA band action buttons: stack to full width on phones so
   they're easy to tap. */
@media (max-width: 600px) {
  .cta-band-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-band-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Tighten section padding on tablet and phone so the new
   homepage and module-page sections don't have huge gaps. */
@media (max-width: 900px) {
  .how-it-works-section,
  .featured-modules-section,
  .ai-teaser-section,
  .pricing-teaser-section,
  .regulatory-section,
  .pairs-section,
  .about-page-section,
  .about-company-section,
  .individual-pricing-section,
  .pricing-faq-section,
  .pricing-cta-section,
  .contact-page-section,
  .custom-origin-section,
  .custom-build-section,
  .custom-process-section,
  .custom-audience-section,
  .custom-not-section,
  .custom-form-section {
    padding: 3rem 0;
  }
  .cta-band { padding: 2.5rem 0; }
}
@media (max-width: 600px) {
  .how-it-works-section,
  .featured-modules-section,
  .ai-teaser-section,
  .pricing-teaser-section,
  .regulatory-section,
  .pairs-section,
  .about-page-section,
  .about-company-section,
  .individual-pricing-section,
  .pricing-faq-section,
  .pricing-cta-section,
  .contact-page-section,
  .custom-origin-section,
  .custom-build-section,
  .custom-process-section,
  .custom-audience-section,
  .custom-not-section,
  .custom-form-section {
    padding: 2.25rem 0;
  }
  .page-hero { padding: 2.25rem 0 1.75rem; }
  .partner-strip { padding: 1.25rem 0 1rem; }
  .partner-strip .partner-label { margin-bottom: .75rem; }
}

/* Override the inline style="margin-top:4rem|3rem" hooks
   used by several module pages so they don't add huge
   vertical gaps on small screens. */
@media (max-width: 800px) {
  [style*="margin-top:4rem"] { margin-top: 2.25rem !important; }
  [style*="margin-top:3rem"] { margin-top: 2rem !important; }
}

/* Featured cards: trim padding on phones. */
@media (max-width: 600px) {
  .featured-card {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .featured-card-text h3 { font-size: 1.25rem; }
  .featured-card-text p { font-size: .95rem; }
}

/* AI Insights mock dashboard: keep flag rows from getting
   cramped on phones and let unit chips wrap nicely. */
@media (max-width: 600px) {
  .ai-mock-flag-text { font-size: .72rem; }
  .ai-mock-units { gap: .3rem; padding: .55rem .65rem .25rem; }
  .ai-mock-unit { padding: .25rem .45rem; font-size: .68rem; }
  .ai-mock-header { gap: .5rem; }
  .ai-mock-title { font-size: .9rem; }
  .ai-mockup-url { font-size: .65rem; }
}

/* Audience caption under module H1s: smaller on phones. */
@media (max-width: 600px) {
  .audience-line { font-size: .88rem; line-height: 1.5; }
}

/* Hero on tablet: ensure the image doesn't dominate the
   stacked layout between 600 and 800px. */
@media (min-width: 601px) and (max-width: 800px) {
  .hero-img { max-width: 480px; }
  .hero { padding: 3rem 0 2rem; }
}

/* Hero tiles: slightly tighten on small phones. */
@media (max-width: 480px) {
  .hero-tile { padding: 1rem; }
  .hero-tile strong { font-size: .98rem; }
  .hero-tile span { font-size: .8rem; }
}

/* ResusciTrack problem/solution stack tightening. */
@media (max-width: 600px) {
  .rt-ps-card { padding: 1.1rem; }
  .rt-ps-card h3 { font-size: 1.05rem; }
  .rt-ps-card li { font-size: .82rem; }
  .rt-case-replay { padding: 1.5rem 1rem; }
  .rt-cr-feature { padding: 1.15rem; }
  .rt-cr-feature p { font-size: .85rem; }
}

/* Workflow steps: keep two-up on phones instead of single
   column, six steps single-column is too much scrolling. */
@media (max-width: 600px) {
  .rt-workflow-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .rt-workflow-step { padding: 1rem .75rem; }
  .rt-workflow-step strong { font-size: .8rem; }
  .rt-workflow-step p { font-size: .72rem; }
  .rt-step-num { width: 1.2rem; height: 1.2rem; font-size: .65rem; }
}

/* Metrics: keep two-up on phones. */
@media (max-width: 600px) {
  .rt-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .rt-metric-card { padding: 1rem .75rem; }
  .rt-metric-value { font-size: 1.2rem; }
  .rt-metric-card strong { font-size: .78rem; }
  .rt-metric-card p { font-size: .7rem; }
}

/* Mobile mockup screenshots: cap height on phones so two
   phone images don't fill the whole screen. */
@media (max-width: 600px) {
  .mobile-mockup-grid img {
    max-width: 280px;
    border-radius: 22px;
  }
  .mobile-mockup-grid { gap: 1.25rem; }
}

/* Gallery cards: tighter spacing on phones. */
@media (max-width: 600px) {
  .gallery-grid { gap: 1rem; }
  .gallery-card figcaption { padding: .85rem 1rem 1rem; }
  .gallery-card figcaption strong { font-size: .92rem; }
  .gallery-card figcaption span { font-size: .82rem; }
}

/* Thank-you confirmation card: smaller padding on phones. */
@media (max-width: 600px) {
  .thank-you-card {
    padding: 2rem 1.25rem;
    margin-top: 1rem;
    border-radius: 14px;
  }
  .thank-you-icon { width: 64px; height: 64px; margin-bottom: 1rem; }
  .thank-you-lede { font-size: .98rem; }
  .thank-you-actions { flex-direction: column; }
  .thank-you-actions .btn { width: 100%; }
}

/* About page: portrait sized appropriately for small phones. */
@media (max-width: 600px) {
  .portrait { width: 180px; height: 260px; }
  #about p, .about-page-section p { font-size: .95rem; }
}

/* FAQ grid: smaller padding on phones. */
@media (max-width: 600px) {
  .faq-item { padding: 1.15rem; }
  .faq-item h3 { font-size: 1rem; }
  .faq-item p { font-size: .9rem; }
}

/* Reg cards and pairs section tiles: tighter on phones. */
@media (max-width: 600px) {
  .reg-card { padding: 1.15rem; }
  .reg-card h3 { font-size: 1rem; }
  .reg-card p { font-size: .9rem; }
}

/* Custom page audience list: ensure bullets line up neatly. */
@media (max-width: 600px) {
  .custom-audience-list li { font-size: .95rem; }
}

/* AI tiers: single column on phones (already), but tighten
   spacing and scoring readability. */
@media (max-width: 600px) {
  .ai-tiers { gap: 1rem; }
  .ai-tier { padding: 1.15rem; }
  .ai-tier h3 { font-size: 1.05rem; }
  .ai-tier p { font-size: .82rem; }
  .ai-tier-details li { font-size: .78rem; gap: .35rem; }
}

/* Contact-grid: stack on tablet portrait so the form is full
   width and aside sits below (instead of cramped 1.3fr/1fr). */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-aside { gap: 1rem; }
  .contact-aside-block { padding: 1rem 1.15rem; }
}

/* Setup banner: full-bleed inside narrow .wrap on phones. */
@media (max-width: 600px) {
  .setup-banner, .rt-setup-banner {
    font-size: .82rem;
    padding: .75rem .9rem;
  }
}

/* Form action buttons: comfortable tap target. */
.form button, .btn { min-height: 44px; }

/* Make sure no media in the site can blow out the viewport. */
img, svg, video, iframe { max-width: 100%; height: auto; }

/* Long copy & code-like strings don't push the layout. */
.hero-tile span,
.bundles-subnote,
.faq-item p,
.reg-card p,
.featured-card-text p,
.contact-aside-block p {
  overflow-wrap: anywhere;
}

/* Smaller phones: tighten wrap padding without losing
   breathing room. */
@media (max-width: 380px) {
  .wrap { width: 92%; }
  .plan-price { font-size: 1.8rem; }
  .extra-price { font-size: 1.05rem; }
  .ai-mock-summary { grid-template-columns: 1fr 1fr; }
  .bt-features-bar { grid-template-columns: 1fr; }
}

/* Tablet landscape (901-1080px) still uses the mobile menu;
   widen the menu panel to fit longer link labels. */
@media (min-width: 901px) and (max-width: 1080px) {
  .nav { padding: 1.25rem 1.5rem; }
  .nav a { font-size: 1rem; }
}

