/* ============================================================
   MedAdept — V1 "Clean Infrastructure"
   Light, authoritative, Stripe/Sword/ServiceNow lineage.
   ============================================================ */


:root {
  /* Brand */
  --navy: #1E3A5C;
  --navy-900: #1f3075;
  --navy-700: #28466b;
  --teal: #18b4be;
  --teal-600: #0E97AB;
  --teal-700: #0B7E8E;       /* accessible teal for text/links on white */

  /* Neutrals */
  --bg: #ffffff;
  --tint: #F3F7FA;           /* cool off-white sections */
  --tint-2: #ECF2F6;
  --line: #E1E8F0;
  --line-strong: #CBD7E3;
  --ink: #1A2B3D;            /* primary text */
  --ink-soft: #46586B;       /* secondary text */
  --muted: #5C6E80;

  /* Type */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20, 37, 59, 0.06), 0 2px 8px rgba(20, 37, 59, 0.05);
  --shadow-md: 0 12px 30px -12px rgba(20, 37, 59, 0.18), 0 4px 12px rgba(20, 37, 59, 0.06);
  --shadow-lg: 0 40px 80px -30px rgba(20, 37, 59, 0.30);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: unset; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
sup.rmark { font-size: 0.5em; top: -0.7em; }

::selection { background: var(--teal); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow-mark { display: none; }
.eyebrow-center { justify-content: center; }
.eyebrow-light { color: #8fe4ef; }
.eyebrow-light .eyebrow-mark { background: #8fe4ef; }

.lede { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.55; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 12px 18px; font-size: 16px; }
.btn-xs { padding: 9px 16px; font-size: 14px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(20,179,198,0.55); }

.btn-ghost { color: var(--navy); border-color: var(--line-strong); background: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); transform: translateY(-2px); }
.btn-ghost.btn-onlight { background: #fff; }

.btn-ondark { background: var(--teal); color: #fff; font-weight: 700; }
.btn-ondark:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(20,179,198,0.75); }

.btn-arrow { width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   ANNOUNCE BAR
   ============================================================ */
.announce-bar {
  background: var(--muted);
  color: #fff;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
}
.announce-apps { display: flex; align-items: center; gap: 14px; }
.announce-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}
.announce-store { display: inline-flex; align-items: center; color: #fff; opacity: 0.9; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.announce-store:hover { opacity: 1; transform: translateY(-1px); }
.announce-ic { width: 18px; height: 18px; }
.announce-cta { flex: none; box-shadow: none; }
.announce-cta:hover { transform: none; box-shadow: none; background: var(--teal); }

@media (max-width: 640px) {
  .announce-label { display: none; }
}
@media (max-width: 420px) {
  .announce-inner { height: auto; padding-block: 8px; }
  .announce-cta { font-size: 13px; padding: 8px 12px; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(20,37,59,0.25); background: rgba(255,255,255,0.92); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 49.5px; width: auto; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.25s var(--ease);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after { width: 100%; }

.header-actions { margin-left: auto; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--navy); transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav ul { display: flex; flex-direction: column; padding: 14px var(--gutter) 24px; gap: 4px; }
.mobile-nav a { font-size: 18px; font-weight: 500; padding: 14px 4px; display: block; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: 12px; border-bottom: none; justify-content: center; color: #fff; text-align: center;}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(60px, 7vw, 100px);
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(20,179,198,0.10), transparent 60%);
  overflow: hidden;
}
.hero::before {
  /* blueprint dot grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30,58,92,0.06) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(900px 600px at 70% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(900px 600px at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
  grid-template-areas:
    "eyebrow ."
    "title   visual"
    "sub     visual"
    "actions visual"
    "meta    .";
}
.hero-eyebrow { grid-area: eyebrow; }
.hero-title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  margin-bottom: 24px;
}
.hero-sub { grid-area: sub; max-width: 36ch; margin-bottom: 34px; }
.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }

.hero-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); }
.hero-meta span { font-size: 16px; color: var(--muted); }

/* ----- Hero monitoring console ----- */
.hero-visual { position: relative; grid-area: visual; align-self: stretch; display: flex; }
.hero-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -32px rgba(20,37,59,0.45);
}
.console {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px;
  z-index: 2;
}
.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.console-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,179,198,0.16); }
.console-label { font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.console-live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.console-live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

.console-chart { position: relative; flex: 1; min-height: 220px; }
.signal-svg { width: 100%; height: 100%; min-height: 220px; }
.grid-lines line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.signal-line {
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: draw 2.4s var(--ease) 0.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.signal-area { opacity: 0; animation: fadein 1.4s ease 1.6s forwards; }
@keyframes fadein { to { opacity: 1; } }
.flag-line { stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0; animation: fadein 0.6s ease 2.1s forwards; }
.flag-dot {
  position: absolute;
  left: 65.2%;   /* x = 300 / 460 */
  top: 49.2%;    /* y = 118 / 240 */
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 2;
  animation: popdot 0.5s var(--ease) 2.3s forwards;
}
@keyframes popdot {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.console-flag {
  position: absolute;
  top: 6px;
  left: 53%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  animation: fadein 0.6s ease 2.4s forwards;
}
.flag-pill {
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.flag-note { font-family: var(--font-mono); font-size: 16px; color: var(--muted); }

.console-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cstat { display: flex; flex-direction: column; }
.cstat-k { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy); }
.cstat-v { font-size: 16px; color: var(--muted); }

.float-chip {
  position: absolute;
  z-index: 3;
  background: var(--navy-900);
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.chip-roi { top: 70px; left: -26px; }
.chip-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--teal); line-height: 1; }
.chip-lbl { font-size: 16px; color: #c7d3df; margin-top: 4px; }

/* ============================================================
   GENERIC SECTIONS (spine layout)
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: transparent; }
.section.references{
	padding: clamp(64px, 2vw, 120px) 0 !important;
}
.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 80px);
}
.section-spine {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 110px;
  align-self: start;
}
.spine-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.1em;
}
.spine-label {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.section-spine::after {
  content: "";
  margin-top: 8px;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
}

/* media variant: image in the left column instead of the slim spine */
.section-grid--media { grid-template-columns: 0.82fr 1fr; align-items: stretch; }
.section-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-media .spine-label { margin-bottom: 2px; }
.section-img {
  flex: 1;
  width: 100%;
  min-height: 420px;
  background: center / cover no-repeat;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -32px rgba(20,37,59,0.45);
}
.section-img--gap { background-image: url("/wp-content/uploads/homepage-thegap.jpg"); }
.section-img--ww-infra { background-image: url("/wp-content/uploads/watchwell-infrastructure.jpg"); }

.section-body { max-width: 760px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 26px;
}
.section-title--wide { max-width: 18ch; }
.section-text { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); margin-bottom: 20px; max-width: 68ch; }
.section-text.emphasis {
  color: var(--navy-900);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  border-left: 3px solid var(--teal);
  padding-left: 22px;
  margin-top: 30px;
}
.sub-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 18px;
}

/* gap list */
.gap-list { margin: 26px 0 32px; display: grid; gap: 12px; }
.gap-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--navy-900);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gap-list li:hover { transform: translateX(6px); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.gap-index {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--tint-2);
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  border-radius: 10px;
}

.opportunity-rows { display: grid; gap: 0; counter-reset: opp; }
.opportunity-rows .section-text {
  position: relative;
  padding: 26px 0 26px 60px;
  border-top: 1px solid var(--line);
  margin: 0;
  max-width: none;
}
.opportunity-rows .section-text:last-child { border-bottom: 1px solid var(--line); }
.opportunity-rows .section-text::before {
  counter-increment: opp;
  content: "0" counter(opp);
  position: absolute;
  left: 0; top: 26px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
}

/* ============================================================
   STATEMENT (mission billboard)
   ============================================================ */
.statement { padding: clamp(48px, 7vw, 84px) 0; text-align: center; }
.statement-inner { max-width: 880px; margin-inline: auto; }
.statement-mark {
  display: block;
  width: 70px; height: 4px;
  margin: 0 auto 30px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  border-radius: 2px;
}
.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.statement-accent { color: var(--teal-700); }

/* ============================================================
   PLATFORM
   ============================================================ */
.platform { background: transparent; }
.platform-head { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.platform-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 22px;
}
.platform-sub { margin: 0 auto 34px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge { display: inline-block; transition: transform 0.25s var(--ease), filter 0.25s var(--ease); border-radius: 11px; }
.store-badge:hover { transform: translateY(-3px); filter: brightness(1.08); }
.badge-svg { width: 180px; height: 56px; }
.badge-small { font: 600 11px var(--font-body); }
.badge-large { font: 700 19px var(--font-display); letter-spacing: -0.01em; }

.populations {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 5vw, 56px);
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.populations::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(20,179,198,0.35), transparent 65%);
  pointer-events: none;
}
.populations .sub-title { color: #fff; }
.populations-copy { position: relative; }
.populations .section-text { color: #c7d3df; margin-bottom: 0; }

.population-grid { display: grid; gap: 8px; position: relative; }
.population-grid li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.population-grid li:last-child { border-bottom: none; }
.pop-icon {
  flex: none;
  width: 62px;
  height: 62px;
  padding: 11px;
  border-radius: 15px;
  background: rgba(20,179,198,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.population-grid li:hover .pop-icon {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: rgba(20,179,198,0.18);
}

/* ============================================================
   CARE MODELS
   ============================================================ */
.care-models { background: transparent; text-align: left; }
.care-models .section-title { margin-bottom: 44px; }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.model-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.model-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.model-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--tint);
  padding: 7px 12px;
  border-radius: 8px;
}
.model-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
  color: var(--navy-900);
  margin-top: 28px;
}
.model-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.5; margin-top: 12px; }
.model-card--tall { min-height: 220px; }

/* ============================================================
   RESULTS
   ============================================================ */
.results { background: transparent; }
.results-head { margin-bottom: 48px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.stat-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--navy));
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
.stat-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--teal-700);
}
.stat-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.5; margin-top: 6px; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.cta {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(20,179,198,0.28), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy));
  color: #fff;
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(700px 400px at 80% 100%, #000, transparent 70%);
  mask-image: radial-gradient(700px 400px at 80% 100%, #000, transparent 70%);
}
/* CTA with photographic background (navy overlay keeps text legible) */
.cta--media {
  background:
    linear-gradient(135deg, rgba(31,48,117,0.60), rgba(20,37,59,0.60)),
    url("/wp-content/uploads/homepage-continuecare.jpg") center/cover no-repeat;
}
.cta--media-ww {
  background:
    linear-gradient(135deg, rgba(31,48,117,0.60), rgba(20,37,59,0.60)),
    url("/wp-content/uploads/watchwell-continuecare.jpg") center/cover no-repeat;
}
.cta--media-wws {
  background:
    linear-gradient(135deg, rgba(31,48,117,0.60), rgba(20,37,59,0.60)),
    url("/wp-content/uploads/whoweserve-continuecare.jpg") center/cover no-repeat;
}
.cta--media-outcomes {
  background:
    linear-gradient(135deg, rgba(31,48,117,0.60), rgba(20,37,59,0.60)),
    url("/wp-content/uploads/outcomes-continuecare.jpg") center/cover no-repeat;
}
.cta-inner { position: relative; max-width: 820px; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.cta-sub { color: #c7d3df; margin-bottom: 38px; max-width: 56ch; }
.cta--center .cta-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.cta--center .cta-sub { margin-inline: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: transparent; padding-top: clamp(48px, 6vw, 80px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-logo { height: 34px; width: auto; margin-bottom: 18px; }
.footer-tag { font-size: 17px; color: var(--muted); max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-h {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 17px; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--teal-700); }

.footer-bottom { padding: 24px 10px 40px; }
.copyright {
  font-size: 14px;
  color: var(--muted);
  /*display: flex;*/
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  text-align: center;
}
.copyright a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.copyright a:hover { color: var(--teal-700); }
.dot-sep { color: var(--line-strong); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  background: linear-gradient(180deg, #fbfdfe, #fff);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.025em;
  color: var(--navy-900);
  margin-bottom: 14px;
}
.legal-updated { font-family: var(--font-mono); font-size: 16px; color: var(--muted); }
.legal-body { padding: clamp(48px, 7vw, 88px) 0 clamp(60px, 8vw, 110px); }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 18px; color: var(--ink-soft); line-height: 1.7; }
.legal-content p { margin-bottom: 18px; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 18px; display: grid; gap: 10px; }
.legal-content a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--navy-900); }

/* ============================================================
   INTERNAL PAGES
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(44px, 6vw, 72px);
  background:
    radial-gradient(1000px 460px at 82% -12%, rgba(20,179,198,0.12), transparent 60%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30,58,92,0.06) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(800px 500px at 75% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(800px 500px at 75% 10%, #000 30%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  max-width: 18ch;
  margin-bottom: 22px;
}
.page-hero-sub { max-width: 60ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; justify-content: flex-start; }

/* page hero with a side image */
.page-hero--media .page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.page-hero--media .page-hero-copy { min-width: 0; }
.page-hero-media { align-self: stretch; display: flex; }
.page-hero-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -32px rgba(20,37,59,0.45);
}

/* big ROI highlight */
.big-roi { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 10px 0 4px; font-size: clamp(19px, 1.8vw, 23px); color: var(--ink-soft); }
.big-roi .stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 7vw, 74px); line-height: 1; letter-spacing: -0.03em; color: var(--navy-900); }
.footnote { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.footnote.v2{
	margin-top: 20px;
}

/* generic centered content lead */
.lead-narrow { max-width: 760px; }
.lead-center { max-width: 760px; margin-inline: auto; text-align: center; }

/* simple feature list */
.feature-list { display: grid; gap: 14px; margin-top: 8px; }
.feature-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; color: var(--navy-900);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-list li:hover { transform: translateX(6px); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.feature-list .fl-mark { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--tint-2); color: var(--teal-700); border-radius: 10px; font-family: var(--font-mono); font-weight: 600; font-size: 16px; }
.feature-list .fl-text { flex: 1; }

/* flow diagram (WatchWell) */
.flow { display: grid; gap: 20px; }
.flow-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.flow-row--accent { background: linear-gradient(135deg, var(--navy-900), var(--navy)); border-color: transparent; color: #fff; }
.flow-label { font-family: var(--font-mono); font-size: 16px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal-700); margin-bottom: 18px; }
.flow-row--accent .flow-label { color: var(--bg); }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 10px; }
.flow-step {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px);
  color: var(--navy-900); background: var(--tint); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px;
}
.flow-row--accent .flow-step { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }
.flow-row--accent .flow-step--key { background: var(--teal); color: var(--navy-900); border-color: transparent; }
.flow-arrow { flex: none; width: 26px; height: 26px; color: var(--teal); }

/* who we serve cards */
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.serve-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.serve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.serve-ic { width: 62px; height: 62px; margin-bottom: 22px; }
.serve-card h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); color: var(--navy-900); letter-spacing: -0.01em; margin-bottom: 18px; }
.serve-card ul { display: grid; gap: 12px; margin-bottom: 28px; }
.serve-card li { position: relative; padding-left: 26px; font-size: 17px; color: var(--ink-soft); }
.serve-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border: 2px solid var(--teal); border-radius: 50%; }
.serve-card .btn { margin-top: auto; align-self: flex-start; }

/* Featured card — the priority audience gets more visual weight */
.serve-card--featured {
  background: linear-gradient(150deg, var(--navy-900), var(--navy));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.serve-card--featured:hover { border-color: transparent; }
.serve-card--featured .serve-ic {
  padding: 11px;
  border-radius: 15px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px -8px rgba(20,37,59,0.5);
}
.serve-card--featured h3 { color: #fff; }
.serve-card--featured li { color: #c7d3df; }
.serve-card--featured li::before { border-color: var(--teal); }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-aside .section-title { margin-bottom: 18px; }
.contact-meta { display: grid; gap: 14px; margin-top: 28px; }
.contact-meta a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 600; color: var(--navy-900); }
.field .req { color: var(--teal-700); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,179,198,0.18); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 30px; width: 100%; justify-content: center; }
.form-note { font-size: 16px; color: var(--muted); margin-top: 14px; }

@media (max-width: 900px) {
  .serve-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GLOBAL GRADIENT CIRCLES (site-wide decorative background)
   Independent of sections; spans the full document, behind content.
   ============================================================ */
.bg-circles {
  position: absolute;
  inset: 0;
  z-index: -1;            /* behind all content */
  overflow: hidden;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe9e1, #95d9fe);
  opacity: 0.7;
}
/* sporadic sizes + positions scattered down the whole page */
.bg-blob.b1 { width: 360px; height: 360px; left: -6%;  top: 2%;  }
.bg-blob.b2 { width: 540px; height: 540px; right: -9%; top: 12%; background: linear-gradient(220deg, #ffe9e1, #95d9fe); }
.bg-blob.b3 { width: 340px; height: 340px; left: -9%;  top: 22%; }
.bg-blob.b4 { width: 460px; height: 460px; right: 4%;  top: 37%; background: linear-gradient(300deg, #ffe9e1, #95d9fe); }
.bg-blob.b5 { width: 300px; height: 300px; left: -4%;  top: 50%; }
.bg-blob.b6 { width: 500px; height: 500px; right: -8%; top: 62%; background: linear-gradient(160deg, #ffe9e1, #95d9fe); }
.bg-blob.b7 { width: 260px; height: 260px; left: 45%;  top: 77%; }
.bg-blob.b8 { width: 420px; height: 420px; left: 2%;   top: 85%; background: linear-gradient(245deg, #ffe9e1, #95d9fe); }
.bg-blob.b9 { width: 320px; height: 320px; right: 10%; top: 93%; }

@media (max-width: 640px) {
  .bg-blob { opacity: 0.6; }
  .bg-blob.b2, .bg-blob.b6 { width: 360px; height: 360px; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "sub" "actions" "visual" "meta";
  }
  .hero-visual { max-width: 560px; margin-top: 28px; align-self: start; }
  .hero-meta { margin-top: 36px; }
  .page-hero--media .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { margin-top: 28px; max-width: 560px; }
  .section-grid, .section-grid--media { grid-template-columns: 1fr; }
  .section-spine { position: static; flex-direction: row; align-items: center; gap: 14px; }
  .section-spine::after { margin: 0; width: 40px; }
  .section-media { position: static; }
  .section-img { max-width: 520px; }
  .populations { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .chip-roi { left: 6px; top: 64px; }
  .console-flag { left: 46%; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .model-grid, .stat-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; min-width: 0; white-space: normal; justify-content: center; text-align: center; }
  .footer-nav { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .signal-line { stroke-dashoffset: 0; }
  .signal-area, .flag-line, .flag-dot, .console-flag { opacity: 1; }
  .flag-dot { transform: translate(-50%, -50%) scale(1); }
  .reveal { opacity: 1; transform: none; }
}


.gform_required_legend{
    display: none !important;
}

/* Container & Wrapper Styles */
form[id^="gform_"] {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    padding: clamp(26px, 4vw, 40px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Grid Layout for Fields */
form[id^="gform_"] .gform_fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Base Field */
form[id^="gform_"] .gfield {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: 1 / -1 !important; /* Default to full width */
}

/* Half-width Field Handling */
form[id^="gform_"] .gfield--width-half {
    grid-column: span 1 !important;
}

/* Responsive adjustment for half-width fields */
@media (max-width: 560px) {
    form[id^="gform_"] .gfield--width-half {
        grid-column: 1 / -1 !important;
    }
}

/* Labels */
form[id^="gform_"] .gfield_label,
form[id^="gform_"] .gfield_label legend {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--navy-900) !important;
    margin: 0 !important;
}

/* Required Asterisk */
form[id^="gform_"] .gfield_required {
    color: var(--teal-700) !important;
    font-weight: normal !important;
}

/* Hidden sub-labels for Complex fields (Address) */
form[id^="gform_"] .hidden_sub_label {
    display: none !important;
}

/* Complex Fields (e.g., Address) */
form[id^="gform_"] .ginput_complex {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
    width: 100% !important;
}

form[id^="gform_"] .ginput_complex .ginput_full {
    grid-column: 1 / -1 !important;
}

/* Inputs, Selects, and Textareas */
form[id^="gform_"] .ginput_container input[type="text"],
form[id^="gform_"] .ginput_container input[type="tel"],
form[id^="gform_"] .ginput_container input[type="email"],
form[id^="gform_"] .ginput_container select,
form[id^="gform_"] .ginput_container textarea {
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    color: var(--ink) !important;
    padding: 6px 15px !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 49px !important;
}

/* Focus States */
form[id^="gform_"] .ginput_container input:focus,
form[id^="gform_"] .ginput_container select:focus,
form[id^="gform_"] .ginput_container textarea:focus {
    outline: none !important;
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(20, 179, 198, 0.18) !important;
}

/* Textarea Specific */
form[id^="gform_"] .ginput_container textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* Submit Button Layout */
form[id^="gform_"] .gform_footer {
    margin-top: 30px !important;
    padding: 0 !important;
}

/* Submit Button Styling */
form[id^="gform_"] .gform_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    font-family: var(--font-body) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 16px 24px !important;
    border-radius: 999px !important;
    border: 1.5px solid transparent !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    background: var(--navy) !important;
    color: #fff !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}

/* Submit Button Hover State */
form[id^="gform_"] .gform_button:hover {
    background: var(--teal) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 40px -16px rgba(20, 179, 198, 0.55) !important;
}

/* Submit Button Active State */
form[id^="gform_"] .gform_button:active {
    transform: translateY(1px) !important;
}

/* Hide Gravity Forms Honeypot Field globally */
form[id^="gform_"] .gform_validation_container,
form[id^="gform_"] .gfield--type-honeypot {
    display: none !important;
    position: absolute !important;
    left: -9000px !important;
}

/* Hide Description/Form Notes if unused */
form[id^="gform_"] .gfield_description {
    font-size: 16px !important;
    color: var(--muted) !important;
    margin-top: 14px !important;
}




@media (min-width: 640px) {
    .gform-theme--foundation .ginput_address_city, .gform-theme--foundation .ginput_address_country, .gform-theme--foundation .ginput_address_state, .gform-theme--foundation .ginput_address_zip {
        inline-size: 100% !important;
    }
}