/* Predixa Health — site styles.
   Palette: navy #191B4D, teal #17918C, mint #4FC4BE, bone #FAF9F5, sand #EAE5D9. */

:root {
  --navy: #191B4D;
  --navy-deep: #12143A;
  --teal: #17918C;
  --mint: #4FC4BE;
  --bone: #FAF9F5;
  --sand: #EAE5D9;
  --stone: #E8E5DD;
  --rule: rgba(25, 27, 77, 0.14);
  --ink-soft: rgba(25, 27, 77, 0.86);
  --ink-softer: rgba(25, 27, 77, 0.78);
  --on-navy: rgba(250, 249, 245, 0.85);
  --wrap: 1240px;
  --gutter: 40px;
  /* .header-inner's 18px padding twice + the 40px logo + the 1px border. */
  --header-h: 77px;
}

* { box-sizing: border-box; }

/* .site-header is sticky at top: 0, so without this every in-page link scrolled
   its target's top edge to y=0 — underneath the header — hiding the heading you
   just asked for. scroll-padding-top on the scroll container offsets all of them
   at once; per-section scroll-margin-top would need a rule for each id. The
   extra 24px is breathing room above the heading. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--navy);
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--bone);
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; color: var(--bone); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-pad { padding-top: 104px; padding-bottom: 104px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(25, 27, 77, 0.1);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 40px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}
/* :not(.btn) so the Contact button keeps the button classes' own colours —
   `.site-nav a` would otherwise out-specify `.btn-navy` and paint navy on navy. */
.site-nav a:not(.btn) { color: var(--navy); }
.site-nav a:not(.btn):hover { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
}

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}
.eyebrow-light { color: var(--mint); }

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow-rule::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--teal);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-navy { background: var(--navy); color: var(--bone); }
.btn-navy:hover { background: var(--teal); color: var(--bone); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: 0.65; cursor: default; }

.btn-underline {
  display: inline-flex;
  padding: 15px 24px;
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(25, 27, 77, 0.25);
}
.btn-underline:hover { color: var(--teal); border-bottom-color: var(--teal); }

.framed {
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--stone);
}
.framed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.framed-45 { aspect-ratio: 4 / 5; }
.framed-11 { aspect-ratio: 1 / 1; }

.h2-lg {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 18px 0;
}
.h2-md {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 18px 0 20px;
}
.accent { color: var(--mint); }

.section-head { max-width: 44em; margin-bottom: 64px; }
.section-head h2 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 18px 0;
}
.section-sub {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0;
}

.band-navy { background: var(--navy); color: var(--bone); }
.band-navy .section-sub { color: var(--on-navy); }
.band-sand { background: var(--sand); border-top: 1px solid var(--rule); }

/* ---------- hero ---------- */

.hero {
  padding-top: 96px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
.hero h1 {
  font-size: 60px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 34em;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- technology ---------- */

.tech-grid {
  padding-top: 104px;
  padding-bottom: 104px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}
.tech-grid .h2-lg { font-size: 44px; line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
.tech-copy { display: flex; flex-direction: column; gap: 26px; }
.tech-copy > p {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--on-navy);
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(250, 249, 245, 0.18);
}
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--mint);
}
.stat-label { font-size: 15px; color: var(--on-navy); line-height: 1.4; }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.step { background: var(--bone); padding: 38px 32px; }
.step-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 22px;
}
.step h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 72px;
  align-items: center;
}
.feature { padding: 20px 0; border-top: 1px solid var(--rule); }
.feature-list .feature:last-child { border-bottom: 1px solid var(--rule); }
.feature h4 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.feature p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
}

/* ---------- programs ---------- */

.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.program {
  background: #fff;
  border: 1px solid rgba(25, 27, 77, 0.24);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.program h3 {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.program p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
}
.program-metric { text-align: right; min-width: 150px; }
.metric-num {
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}
.metric-label {
  font-size: 14px;
  color: var(--ink-softer);
  line-height: 1.35;
  margin-top: 6px;
}

/* ---------- implementation ---------- */

.impl-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.impl-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.impl-card { background: var(--bone); padding: 30px 28px; }
.impl-card h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.impl-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
}

/* ---------- testimonials ---------- */

.quotes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.quotes-head .h2-lg { margin: 18px 0 0; }
.quote-nav { display: flex; gap: 12px; }
.quote-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(250, 249, 245, 0.5);
  background: transparent;
  color: var(--bone);
  font-size: 18px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.quote-arrow:hover { background: var(--bone); color: var(--navy); }

.quote-body {
  border-top: 1px solid rgba(250, 249, 245, 0.35);
  padding-top: 44px;
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
}
.quote-text {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0 0 34px;
  text-wrap: pretty;
}
.quote-role {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.quote-org {
  font-size: 16px;
  color: rgba(250, 249, 245, 0.8);
  font-weight: 300;
  margin-top: 8px;
}
.quote-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: rgba(250, 249, 245, 0.75);
  white-space: nowrap;
  padding-top: 8px;
}
.quote-dots { display: flex; gap: 10px; margin-top: 44px; }
.quote-dot {
  height: 4px;
  width: 84px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(250, 249, 245, 0.3);
  transition: background-color 0.18s ease;
}
.quote-dot[aria-selected="true"] { background: var(--mint); }

/* ---------- contact ---------- */

.contact-grid {
  padding-top: 110px;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.contact-grid .section-sub { margin-bottom: 30px; }
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-soft);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.contact-form {
  background: var(--bone);
  border: 1px solid rgba(25, 27, 77, 0.16);
  padding: 38px;
  display: grid;
  gap: 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-softer);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(25, 27, 77, 0.22);
  background: #fff;
  color: var(--navy);
  border-radius: 2px;
  outline: none;
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #B3261E; }

.btn-submit { margin-top: 4px; justify-self: start; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status { font-size: 15px; margin: 0; min-height: 1.4em; }
.form-status[data-state="error"] { color: #B3261E; }
.form-status[data-state="ok"] { color: var(--teal); font-weight: 600; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(250, 249, 245, 0.75); }
.footer-grid {
  padding-top: 64px;
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: 16px; }
.footer-tag { font-size: 15px; margin: 0; font-weight: 300; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-head {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.5);
  margin-bottom: 4px;
}
.footer-col a { color: rgba(250, 249, 245, 0.8); }
.footer-col a:hover { color: var(--mint); }
.footer-addr { font-weight: 300; line-height: 1.5; }
.footer-bottom {
  padding-top: 20px;
  padding-bottom: 44px;
  border-top: 1px solid rgba(250, 249, 245, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  font-weight: 300;
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(250, 249, 245, 0.85); }
.footer-legal a:hover { color: var(--mint); }

/* ---------- legal pages ---------- */

.legal { padding-top: 72px; padding-bottom: 104px; }
.legal-head { max-width: 44em; margin-bottom: 56px; }
.legal-head h1 {
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 18px 0 20px;
}
.legal-meta {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-softer);
  margin: 0;
}

/* 34em keeps legal prose near 75 characters a line. Long documents are the one
   place on this site where line length matters more than filling the grid. */
.legal-body { max-width: 34em; }
.legal-body h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  margin: 52px 0 14px;
}
.legal-body h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  margin: 32px 0 10px;
}
.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--ink-soft);
}
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { font-weight: 600; color: var(--navy); }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; }
.legal-body > h2:first-child { margin-top: 0; }

/* Capitalised disclaimer blocks. Kept legible rather than shouty: the emphasis
   comes from the panel, not from the text size. */
.legal-caps {
  background: var(--sand);
  padding: 20px 22px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero h1 { font-size: 50px; }
  .h2-lg { font-size: 44px; }
  .quote-text { font-size: 28px; }
  .hero, .tech-grid, .impl-grid, .contact-grid { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 17px;
  }
  .site-nav a.btn {
    margin-top: 16px;
    border-bottom: none;
    justify-content: center;
    padding: 14px 20px;
  }

  .section-pad { padding-top: 68px; padding-bottom: 68px; }
  .section-head { margin-bottom: 40px; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 40px;
  }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 18px; }
  .framed-45 { aspect-ratio: 4 / 3; }

  .tech-grid {
    grid-template-columns: 1fr;
    padding-top: 68px;
    padding-bottom: 68px;
    gap: 32px;
  }
  .tech-grid .h2-lg { font-size: 36px; }
  .stats { grid-template-columns: 1fr; gap: 20px; }

  .h2-lg { font-size: 36px; }
  .h2-md { font-size: 34px; }
  .section-head h2 { font-size: 32px; }

  .steps { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .framed-11 { aspect-ratio: 4 / 3; }

  .programs { grid-template-columns: 1fr; }
  .program { grid-template-columns: 1fr; gap: 20px; }
  .program-metric { text-align: left; min-width: 0; }

  .impl-grid { grid-template-columns: 1fr; gap: 32px; }
  .impl-cards { grid-template-columns: 1fr; }

  .quotes-head { margin-bottom: 32px; }
  .quote-body {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding-top: 32px;
  }
  .quote-text { font-size: 24px; margin-bottom: 24px; }
  .quote-dots { margin-top: 32px; }
  .quote-dot { width: 100%; flex: 1; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 68px;
    padding-bottom: 68px;
  }
  .contact-form { padding: 26px 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}

@media (max-width: 900px) {
  .legal-head h1 { font-size: 36px; }
  .legal { padding-top: 48px; padding-bottom: 72px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 33px; }
  .h2-lg, .h2-md { font-size: 29px; }
  .section-head h2 { font-size: 27px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-actions .btn-underline { justify-content: center; }
  .btn-submit { width: 100%; }
  .metric-num { font-size: 38px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media print {
  .site-header, .nav-toggle, .quote-nav, .quote-dots { display: none; }
}
