/* NephroReach - site styles
   Palette: professional navy + clinical blue. WCAG AA/AAA contrast, light + dark. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* NephroReach. Clinical and plain on purpose.
   This site exists to pass A2P 10DLC carrier review: a reviewer needs to find
   the opt-in, the consent language, a privacy policy carrying the mobile-data
   clause, and terms. Everything here serves that. A fuller brand site comes
   later and is a separate exercise. */
:root {
  --primary: #10222E;
  --on-primary: #FFFFFF;
  --secondary: #45596A;
  --accent: #0B6C82;
  --accent-hover: #095A6D;
  --accent-soft: #E6F2F5;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F7F9;
  --fg: #10222E;
  --fg-2: #45596A;
  --fg-3: #6E8091;
  --muted: #F4F7F9;
  --border: #E1E8EC;
  --border-2: #CBD7DE;
  --ok: #0F6B4F;
  --ok-soft: #EAF5F0;
  --font-head: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --nav-h: 68px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(16,34,46,.05), 0 6px 18px rgba(16,34,46,.05);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-primary); padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-inline: clamp(18px, 4vw, 48px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand svg { flex-shrink: 0; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  letter-spacing: -.02em; color: var(--fg);
}
.brand-name em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--fg-2); text-decoration: none;
  transition: color .18s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
@media (max-width: 860px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 12px 22px; min-height: 44px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-primary { background: var(--accent); color: var(--on-primary); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn-lg { font-size: 16.5px; padding: 15px 30px; min-height: 52px; }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }
.wrap-narrow { max-width: 800px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }

.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
h1 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08;
  letter-spacing: -.02em; text-wrap: balance;
}
h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.18;
  letter-spacing: -.02em; text-wrap: balance;
}
h3 {
  font-family: var(--font-head); font-weight: 600;
  font-size: 19px; line-height: 1.35; letter-spacing: -.01em;
}
.lede { font-size: clamp(17.5px, 2vw, 20px); color: var(--fg-2); max-width: 62ch; }
p { max-width: 70ch; }
p + p { margin-top: 16px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(56px, 9vw, 108px);
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 26px; font-size: 14.5px; color: var(--fg-3);
  display: flex; align-items: center; gap: 9px;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--fg-2); }
.card-tag {
  /* mint on ink */
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 100px;
  margin-bottom: 14px;
}

.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 22px 24px;
}
.step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.step-n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: var(--on-primary); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--fg-2); }

/* ---------- document pages ---------- */
.page-head {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding-block: clamp(40px, 6vw, 68px);
}
.page-head h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 14px; }
.page-meta {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg-3);
}
.doc { padding-block: clamp(44px, 6vw, 72px); }
.doc section { margin-bottom: 46px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc section:last-child { margin-bottom: 0; }
.doc-num {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px;
}
.doc h2 { margin-bottom: 16px; }
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { color: var(--fg-2); font-size: 16.5px; }
.doc ul { margin: 12px 0 16px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
/* Not a grid. A grid makes every child of the li its own cell, so an li
   containing <strong> or <a> gets its bare text pushed into the 16px
   bullet column and wraps one word per line. */
.doc ul li { position: relative; padding-left: 28px; }
.doc ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc strong { color: var(--fg); font-weight: 600; }

/* ---------- facts table ---------- */
.facts { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fact { display: grid; grid-template-columns: 210px 1fr; gap: 22px; padding: 15px 22px; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: none; }
.fact:nth-child(odd) { background: var(--surface-2); }
.fact-k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--fg-3); padding-top: 4px;
}
.fact-v { font-size: 15.5px; color: var(--fg-2); }
.fact-v strong { color: var(--fg); }
@media (max-width: 660px) { .fact { grid-template-columns: 1fr; gap: 5px; } }

/* ---------- callouts ---------- */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; margin: 22px 0;
}
.callout-t {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px;
  font-weight: 600;
}
.callout p { font-size: 15.5px; color: var(--fg-2); }
.callout.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.callout.ok .callout-t { color: var(--ok); }

/* ---------- consent replica ---------- */
.replica {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 26px 28px; margin: 20px 0;
}
.replica-cap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 18px;
}
.replica-row { display: flex; align-items: flex-start; gap: 14px; }
.replica-box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px;
  border: 2px solid var(--border-2); border-radius: 5px; background: var(--surface);
}
.replica-tx { font-size: 15px; line-height: 1.7; color: var(--fg-2); }

/* ---------- sample messages ---------- */
.msgs { display: grid; gap: 16px; margin-top: 18px; }
.msg-lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 8px;
}
.msg {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px; padding: 15px 19px; max-width: 580px;
  font-size: 15.5px; line-height: 1.62; color: var(--fg-2); box-shadow: var(--shadow);
}

/* ---------- form ---------- */
.form-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--fg); }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 12px 14px; min-height: 46px;
}
.field textarea { min-height: 104px; resize: vertical; }
.field-hint { font-size: 13.5px; color: var(--fg-3); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.consent {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 18px 20px; margin-bottom: 22px;
}
.consent input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent label { font-size: 14.5px; line-height: 1.65; color: var(--fg-2); font-weight: 400; cursor: pointer; }

.form-status { margin-top: 18px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #DC2626; }

/* ---------- footer ---------- */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding-block: 44px; margin-top: 0;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: 15px; color: var(--fg-2); text-decoration: none; }
.footer-col a:hover { color: var(--fg); text-decoration: underline; }
.footer-col p { font-size: 15px; color: var(--fg-2); }
.footer-legal {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 8px 20px;
}

/* ---------- hero two-column (landing page only) ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-grid h1 { margin-bottom: 18px; }
.hero-grid .lede { margin-bottom: 28px; }
.hero-img img {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
}
.hero-note { color: var(--fg-3); font-size: 14px; }
.form-status.show { display: block; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: #B3261E; font-weight: 600; }

/* A reviewer following the link from /sms must land ON the consent control,
   not merely on the page containing it. */
.consent { scroll-margin-top: calc(var(--nav-h) + 24px); }
