/* RegPharma landing — polished pass.
   Same lean stack: system fonts (no webfont swap), small monospace
   accents via ui-monospace, same navy palette, same copy.
   Polish: editorial section eyebrows, source badges, sample-alert
   preview in hero, stats strip, zebra tables, refined pricing,
   numbered FAQ. */

:root {
  /* base palette — same navy, slightly warmer neutrals */
  --bg: #ffffff;
  --bg-alt: #f6f4ef;            /* paper-warm replaces cool #f7f9fb */
  --bg-tint: #f1ecdf;            /* deeper paper for stats strip */
  --ink: #0c1a2b;
  --ink-2: #1a2b3e;
  --muted: #4a5d75;
  --muted-2: #6b7c92;
  --accent: #0b3b5e;
  --accent-2: #1e6b9f;
  --accent-deep: #06283f;
  --soft: #e3eaf2;
  --line: #d9d4c5;               /* paper-warm rule */
  --line-cool: #d8e2ec;
  --good: #1f7a3a;
  --soon: #b6720e;
  --shadow-sm: 0 1px 2px rgba(12,26,43,.05);
  --shadow: 0 1px 2px rgba(12,26,43,.05), 0 6px 24px rgba(12,26,43,.06);
  --shadow-lg: 0 2px 4px rgba(12,26,43,.06), 0 18px 48px rgba(12,26,43,.10);
  --rad: 6px;
  --rad-sm: 4px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* shared monospace primitives — editorial regulatory-doc feel */
.mono {
  font-family: var(--mono);
  font-size: .82em;
  letter-spacing: .02em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
  display: inline-block;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line-cool);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  font-weight: 700; font-size: 19px; color: var(--accent);
  letter-spacing: -.015em;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; background: #fff;
}
/* simple monogram: a thick stroke + a thin one — abstract "RP / signal" */
.brand-mark::before {
  left: 5px; top: 5px; width: 3px; height: 12px;
}
.brand-mark::after {
  left: 11px; top: 5px; width: 3px; height: 12px; opacity: .55;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 2px 7px;
  border: 1px solid var(--line-cool);
  border-radius: 999px;
  background: var(--bg);
}
.nav {
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  color: var(--muted); font-size: 14.5px;
  position: relative; padding: 4px 0;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
@media (max-width: 800px) {
  .nav { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(800px 400px at 88% -10%, rgba(30,107,159,.08), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-cool);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint editorial baseline grid — almost imperceptible */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(12,26,43,.025) 1px, transparent 1px);
  background-size: 80px 100%;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 720px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.capture-form {
  display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px;
}
.capture-form input[type=email] {
  flex: 1 1 240px; min-width: 0;
  padding: 13px 14px; font-size: 16px; font-family: var(--font);
  border: 1px solid var(--line-cool); border-radius: var(--rad);
  background: var(--bg); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.capture-form input[type=email]:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(30,107,159,.18);
}
.capture-form button {
  padding: 13px 22px; font-size: 15.5px; font-weight: 600;
  font-family: var(--font);
  background: var(--accent); color: white;
  border: 1px solid var(--accent); border-radius: var(--rad);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .1s;
}
.capture-form button:hover { background: var(--accent-deep); }
.capture-form button:active { transform: translateY(1px); }
.capture-form button:disabled { opacity: .55; cursor: progress; }
.capture-form button .arrow {
  font-family: var(--mono); font-weight: 400;
  transition: transform .15s;
}
.capture-form button:hover .arrow { transform: translateX(2px); }

.form-status {
  width: 100%; font-size: 14px; margin: 8px 0 0; min-height: 1.2em;
}
.form-status.ok { color: var(--good); }
.form-status.err { color: #a32030; }

.hero-fineprint {
  margin: 18px 0 0; font-size: 13.5px; color: var(--muted);
  font-family: var(--mono);
}

/* Sample-alert preview card — right column on desktop */
.alert-card {
  background: var(--bg);
  border: 1px solid var(--line-cool);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  line-height: 1.5;
  overflow: hidden;
  position: relative;
  transform: rotate(.4deg);
}
.alert-card::before {
  /* a subtle "envelope" / paper edge cue at top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.alert-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.alert-head .from { color: var(--ink); }
.alert-head .from b { color: var(--accent); font-weight: 700; }
.alert-head .sample-badge {
  display: inline-block;
  padding: 2px 7px;
  margin: 0 6px;
  background: #fff3cd;
  border: 1px solid #d4a93a;
  color: #6b4500;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 3px;
}
.alert-body { padding: 18px 18px 16px; }
.alert-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #a32030;
  background: #fbecec;
  border: 1px solid #f3d2d4;
  padding: 3px 8px; border-radius: 4px;
  margin: 0 0 10px;
}
.alert-title {
  font-size: 16px; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 4px;
}
.alert-sub {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin: 0 0 14px;
}
.alert-fields { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; }
.alert-fields dt {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted-2); padding-top: 2px;
}
.alert-fields dd { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.alert-foot {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.alert-foot a { color: var(--accent-2); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .alert-card { transform: none; max-width: 480px; }
}

/* ── Stats strip ────────────────────────────────────────────────────── */

.stats {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-row > div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.stats-row > div:last-child { border-right: 0; }
.stat-n {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}
.stat-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 6px;
  display: block;
}
@media (max-width: 760px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row > div:nth-child(2) { border-right: 0; }
  .stats-row > div:nth-child(1),
  .stats-row > div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── Three-up value props ───────────────────────────────────────────── */

.value-props { padding: 72px 0; border-bottom: 1px solid var(--line-cool); }
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.three-up article {
  position: relative; padding-top: 22px;
}
.three-up article::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 32px; height: 2px; background: var(--accent);
}
.three-up article h3 {
  font-size: 17px; margin: 0 0 10px; color: var(--ink);
  letter-spacing: -.005em;
}
.three-up article p {
  margin: 0; color: var(--muted); font-size: 15.5px;
}
@media (max-width: 820px) {
  .three-up { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Generic block sections ─────────────────────────────────────────── */

.block { padding: 80px 0; }
.block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.block h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}
.block h2 + .block-intro {
  color: var(--muted); font-size: 16px;
  max-width: 640px; margin: 0 0 28px;
}
.block-subhead {
  font-size: 12px; font-weight: 600; color: var(--muted-2);
  margin: 36px 0 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
}
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex: 0 0 auto;
}
.dot.live { background: var(--good); box-shadow: 0 0 0 3px rgba(31,122,58,.16); }
.dot.soon { background: var(--soon); box-shadow: 0 0 0 3px rgba(182,114,14,.16); }

/* ── Data tables ────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%; border-collapse: collapse;
  margin: 0;
  font-size: 14.5px;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-cool);
}
.data-table thead th {
  background: #f4f7fb;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted-2);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) td { background: #fafbfd; }

.data-table .freshness {
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  white-space: nowrap;
}
.data-table strong { color: var(--ink); }

/* source badge */
.src {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 7px; border-radius: 3px;
  background: #eaf1f8; color: var(--accent);
  border: 1px solid #d4e2ee;
  margin: 4px 6px 0 0;
}
.src.alt { background: #f3eee2; color: #6b4d10; border-color: #e2d6b3; }
.src.warn { background: #fbecec; color: #a32030; border-color: #f3d2d4; }

.compare-wrap {
  border-radius: 8px;
  border: 1px solid var(--line-cool);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.data-table.compare th:first-child {
  width: 18%; background: var(--bg-alt); font-weight: 600;
  font-family: var(--font); font-size: 14px;
  color: var(--ink); text-transform: none; letter-spacing: 0;
}
.data-table.compare th.us, .data-table.compare td.us {
  background: linear-gradient(180deg, #f4f9fd, #ecf3fa);
}
.data-table.compare th.us {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.not-in, .not-included {
  margin: 22px 0 0; font-size: 14px; color: var(--muted);
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-cool);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.block.alt .not-in, .block.alt .not-included { background: rgba(255,255,255,.7); }

/* ── Pricing ────────────────────────────────────────────────────────── */

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 20px;
  margin: 32px 0 0;
  align-items: stretch;
}
.tier {
  background: var(--bg);
  border: 1px solid var(--line-cool);
  border-radius: 10px;
  padding: 28px 26px;
  position: relative;
  display: flex; flex-direction: column;
}
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11,59,94,.06), var(--shadow-lg);
  transform: translateY(-8px);
  background:
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}
.tier .badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent); color: white;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  padding: 5px 11px; border-radius: 999px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.tier h3 {
  margin: 0 0 4px; font-size: 17px;
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted-2);
  font-weight: 600;
}
.tier.featured h3 { color: var(--accent); }
.tier .price {
  font-size: 38px; font-weight: 700;
  margin: 10px 0 18px;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1;
}
.tier.featured .price { color: var(--accent); }
.tier .price span {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  margin-left: 4px;
  font-family: var(--mono);
  letter-spacing: 0;
}
.tier ul {
  list-style: none; padding: 0; margin: 0;
  flex: 1;
}
.tier li {
  padding: 7px 0 7px 24px; font-size: 14.5px; color: var(--ink-2);
  position: relative;
  border-top: 1px solid var(--line-cool);
}
.tier li:first-child { border-top: 0; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}
@media (max-width: 880px) {
  .pricing-row { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
}

/* ── Trust list ─────────────────────────────────────────────────────── */

.trust-list { list-style: none; padding: 0; margin: 0; counter-reset: trust; }
.trust-list li {
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15.5px;
  position: relative;
  counter-increment: trust;
}
.trust-list li::before {
  content: counter(trust, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: rgba(255,255,255,.6);
}
.trust-list li:last-child { border-bottom: 0; }
.trust-list strong { color: var(--ink); }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq-list { counter-reset: faq; margin-top: 20px; }
details {
  border: 1px solid var(--line-cool); border-radius: 8px;
  background: var(--bg); margin-bottom: 10px; padding: 0 20px 0 56px;
  position: relative;
  counter-increment: faq;
  transition: border-color .15s, box-shadow .15s;
}
details::before {
  content: counter(faq, decimal-leading-zero);
  position: absolute; left: 20px; top: 18px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: var(--muted-2);
  letter-spacing: .04em;
}
details[open] { box-shadow: var(--shadow-sm); border-color: #c5d3e1; }
details[open]::before { color: var(--accent); }
details summary {
  cursor: pointer; padding: 16px 0; font-weight: 600;
  color: var(--ink); list-style: none;
  font-size: 15.5px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; float: right; font-family: var(--mono);
  font-weight: 400; color: var(--muted); font-size: 18px;
  line-height: 1;
  transition: transform .15s;
}
details[open] summary::after { content: "−"; color: var(--accent); }
details p {
  margin: 0 0 18px; color: var(--muted); font-size: 15.5px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 44px 0 36px;
  font-size: 13.5px;
}
.site-footer a { color: #8fbde0; }
.footer-row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  color: #fff;
  font-weight: 700; font-size: 16px;
  letter-spacing: -.01em;
}
.footer-brand .brand-mark { background: #fff; }
.footer-brand .brand-mark::before,
.footer-brand .brand-mark::after { background: var(--ink); }
.footer-row p { margin: 0 0 6px; max-width: 720px; }
.footer-row .contact { white-space: nowrap; align-self: flex-start; }
.footer-row .contact .label {
  display: block;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}
.footer-meta {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-family: var(--mono); font-size: 11.5px;
  color: rgba(255,255,255,.5);
  letter-spacing: .02em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
