:root {
  color-scheme: light;
  --ink: #0c1720;
  --muted: #526474;
  --soft: #718291;
  --line: #cfe3ee;
  --line-strong: #8dcce4;
  --paper: rgba(255, 255, 255, 0.94);
  --panel: rgba(255, 255, 255, 0.88);
  --accent: #0b7fa2;
  --gold: #b98a1b;
  --green: #1f8a5b;
  --red: #b93737;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 255, 0.91)),
    url("../../app/static/assets/rfl-harmonic-scanner.png") center / cover fixed,
    #f7fbfd;
}

a {
  color: #075f78;
  font-weight: 800;
}

.page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 52px;
}

.topline,
.section-kicker,
.label {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero,
.panel,
.callout {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(49, 91, 117, 0.1);
}

.hero {
  padding: 28px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  background: #f5fcff;
  color: #064f66;
  text-decoration: none;
  font-weight: 900;
}

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

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

h1 {
  margin: 10px 0 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
  text-transform: uppercase;
}

.lede {
  max-width: 820px;
  margin-bottom: 0;
  color: #3d4d5b;
  font-size: 19px;
  line-height: 1.48;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 18px;
  border-radius: 8px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.callout {
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

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

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.stat span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.1;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.step b {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  background: #eef9fd;
  color: #064f66;
  border-radius: 6px;
  font-size: 13px;
}

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

.row {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
}

.row > * {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.row:last-child > * {
  border-bottom: 0;
}

.row strong {
  background: #f1f9fc;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef9fd;
  color: #064f66;
  font-size: 13px;
  font-weight: 900;
}

.pill.good {
  background: #eaf8f1;
  color: var(--green);
}

.pill.stop {
  background: #fff0f0;
  color: var(--red);
}

.provider {
  border-top: 3px solid var(--accent);
}

.quote {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f7fbfd;
  border-radius: 8px;
}

.quote ul {
  margin: 0;
  padding-left: 18px;
}

.footer {
  margin-top: 22px;
  color: var(--soft);
  font-size: 13px;
}

@media (max-width: 820px) {
  .grid,
  .grid.two,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .row,
  .step {
    grid-template-columns: 1fr;
  }
}
