:root {
  --ink: #142033;
  --muted: #5b6878;
  --line: #d8e2ee;
  --blue: #1e5baa;
  --blue-dark: #103966;
  --green: #17745d;
  --amber: #b06713;
  --red: #b42318;
  --bg: #f6f8fb;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(216, 226, 238, .9);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.site-header nav a,
footer nav a {
  text-decoration: none;
  color: #304155;
}

.nav-cta {
  color: var(--blue) !important;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding: 92px clamp(20px, 5vw, 72px) 56px;
  overflow: hidden;
  background: #101c2b;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/rxrescue-dashboard-preview.png");
  background-size: cover;
  background-position: center;
  opacity: .62;
  filter: saturate(1.04) contrast(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 32, .62);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6fa0df;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero .eyebrow {
  color: #b7d4ff;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(58px, 10vw, 126px);
  line-height: .9;
}

.lead {
  max-width: 690px;
  margin: 0;
  font-size: 22px;
  line-height: 1.38;
  color: #edf4ff;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

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

.metrics div {
  background: #fff;
  padding: 24px clamp(18px, 3vw, 36px);
}

.metrics strong {
  display: block;
  font-size: 26px;
  color: var(--blue-dark);
}

.metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.band,
.split,
.pilot,
.faq,
footer {
  padding: 76px clamp(20px, 5vw, 72px);
}

.band {
  background: #fff;
}

.section-copy {
  max-width: 780px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.section-copy p:not(.eyebrow),
.split p,
.pilot p,
.faq p,
footer p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature-grid article {
  border-top: 4px solid var(--blue);
  padding-top: 16px;
}

.feature-grid article:nth-child(2) {
  border-color: var(--green);
}

.feature-grid article:nth-child(3) {
  border-color: var(--amber);
}

.feature-grid article:nth-child(4) {
  border-color: var(--red);
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .8fr);
  gap: 46px;
  align-items: start;
}

.fit-list {
  display: grid;
  gap: 10px;
}

.fit-list p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.pilot {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 34px 0 28px;
  list-style: none;
}

.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdff;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.steps p {
  margin: 8px 0 0;
  font-size: 15px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 19px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.faq details p {
  margin: 10px 0 0;
  max-width: 780px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: #122033;
  color: #fff;
}

footer p {
  margin: 8px 0 0;
  color: #bfd0e4;
}

footer nav a {
  color: #d9e7f7;
}

.legal-page {
  background: #fff;
}

.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 22px 70px;
}

.legal-main h1 {
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
}

.legal-main h2 {
  margin-top: 34px;
  font-size: 26px;
}

.legal-main p,
.legal-main li {
  color: #435166;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .metrics,
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .site-header nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero {
    min-height: 78vh;
    padding-top: 54px;
  }

  .lead {
    font-size: 19px;
  }

  .metrics,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
