/* RidgeVia Health — site styles
   Palette: Deep Slate. One dark ground, white type, light-blue "Health" accent, blue action. */

:root {
  --ground: #0B1220;
  --surface: #121B2C;
  --surface-2: #172236;
  --text: #FFFFFF;
  --muted: #9AA6B8;
  --health: #8FC7FF;
  --action: #3D8BFF;
  --action-hover: #5B9DFF;
  --rule: #1E2A3D;
  --rule-strong: #2A3850;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}

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

html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--health); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(143, 199, 255, 0.28); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--action); color: #fff; padding: 8px 12px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---- Shared text roles ---- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--health);
}
.lede { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.lede a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--rule-strong); }
.lede a:hover { border-color: var(--health); }

/* ---- Buttons ---- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 7px; font-weight: 600; font-size: 0.98rem; line-height: 1;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-ghost { border-color: var(--rule-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--health); }
.btn:active { transform: translateY(1px); }
.text-link { color: var(--muted); font-weight: 500; }
.text-link:hover { color: var(--text); }

/* ---- Nav ---- */
.nav { border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 28px; height: auto; }
.brand-name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-name em, .foot-brand em { font-style: normal; font-weight: 500; color: var(--health); }
.nav nav { display: flex; gap: 26px; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.04;
  max-width: 15ch;
}
.hero .actions { margin-top: 6px; }
.hero-mark { position: relative; padding: 0 12px; }
.hero-mark img { width: clamp(150px, 20vw, 260px); height: auto; position: relative; z-index: 1; }
.hero-mark::before {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(closest-side, rgba(61, 139, 255, 0.22), rgba(61, 139, 255, 0) 70%);
  pointer-events: none;
}
.ridge {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80px;
  color: var(--rule-strong); display: block;
}

/* ---- Flagship ---- */
.flagship { border-top: 1px solid var(--rule); background: var(--surface); padding: 72px 0 80px; }
.flagship .eyebrow { margin-bottom: 18px; }
.flagship-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.flagship h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.08; }
.flagship-lede { color: var(--muted); font-size: 1.1rem; margin: 16px 0 26px; max-width: 46ch; }
.facts { display: grid; gap: 22px; }
.facts > div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px;
  padding-top: 18px; border-top: 1px solid var(--rule-strong);
}
.facts dt { font-weight: 600; color: var(--text); }
.facts dd { color: var(--muted); font-size: 0.98rem; }

/* ---- Approach ---- */
.approach { padding: 72px 0 80px; }
.approach .eyebrow { margin-bottom: 26px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principles h3 { font-size: 1.12rem; margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: 0.98rem; }

/* ---- Contact ---- */
.contact { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 64px 0 72px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact .eyebrow { margin-bottom: 12px; }
.contact h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.contact .lede { margin-top: 10px; font-size: 1.02rem; }

/* ---- Footer ---- */
.foot { padding: 34px 0 44px; }
.foot-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 32px; }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; }
.foot-brand img { width: 22px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-self: end; color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.foot-links a:hover { color: var(--text); }
.foot-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero { padding: 64px 0 88px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 120px; }
  .flagship-grid { grid-template-columns: 1fr; gap: 36px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
}
@media (max-width: 480px) {
  .nav nav { gap: 18px; font-size: 0.9rem; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}
