/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Jana green palette (sage/olive) */
  --brand:        #7d944d;   /* jana-green-60 */
  --brand-dark:   #5a6b38;   /* jana-green-70 */
  --brand-mid:    #98b068;   /* jana-green-50 */
  --brand-light:  #e5ead7;   /* jana-green-20 */
  --brand-xlight: #f0f2e8;   /* jana-green-10 */

  /* Jana brown — used for dark/contrast sections */
  --navy:         #372315;   /* jana-brown-90 */

  /* Jana warm text */
  --text:         #161513;   /* jana-gray-100 */
  --text-muted:   #736866;   /* jana-gray-60 */
  --text-light:   #aca9a5;   /* jana-gray-40 */

  /* Jana warm borders & backgrounds */
  --border:       #e8ddd9;   /* jana-brown-20 */
  --bg:           #ffffff;
  --bg-alt:       #f7f4f2;   /* jana-brown-10 */

  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  --shadow-sm:    0 1px 3px rgba(75,52,37,.07), 0 1px 2px rgba(75,52,37,.05);
  --shadow-md:    0 4px 16px rgba(75,52,37,.09);
  --shadow-lg:    0 16px 48px rgba(75,52,37,.12);
  --shadow-green: 0 8px 32px rgba(125,148,77,.20);

  --transition:   200ms ease;
  --max-w:        1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ── Layout helpers ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.what--alt,
.impact--alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); }
.section-header .section-header__sub {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn--sm  { font-size: .875rem; padding: 9px 18px; }
.btn--lg  { font-size: 1rem;    padding: 15px 30px; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-green);
}
.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(125,148,77,.28);
}

.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--border); }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.logo-mark { flex-shrink: 0; }
.logo-mark--footer { filter: brightness(0) invert(1); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .9rem;
  font-weight: 500;
}
.nav__links li a:not(.btn) { color: var(--text-muted); transition: color var(--transition); }
.nav__links li a:not(.btn):hover { color: var(--navy); }
.nav__links .btn--primary.btn--sm {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: none;
  transform: none;
}
.nav__links .btn--primary.btn--sm:hover {
  transform: none;
  box-shadow: 0 6px 14px rgba(125,148,77,.2);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 72px;
  isolation: isolate;
}
/* Hero background video — web-friendly: muted, autoplay, loop, playsinline */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: -3;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.87), rgba(255,255,255,.87));
  pointer-events: none;
  z-index: -2;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 16px;
}
.hero__headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.17rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__note {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__note::before {
  content: '✓';
  color: var(--brand-mid);
  font-weight: 700;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 45%, rgba(152,176,104,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(125,148,77,.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* CMI mockup card */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cmi-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.cmi-card__header {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cmi-card__label { color: rgba(255,255,255,.85); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cmi-card__state { color: #fff; font-size: .85rem; font-weight: 700; background: rgba(255,255,255,.15); padding: 3px 10px; border-radius: 100px; }

.cmi-card__body { padding: 24px; }
.cmi-chart {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px 12px;
}
.cmi-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  min-height: 150px;
}
.cmi-bar-wrap {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cmi-bar {
  width: 68px;
  border-radius: 10px 10px 4px 4px;
  box-shadow: var(--shadow-sm);
  animation: growBar .8s ease both;
}
.cmi-bar--baseline {
  height: 90px;
  background: #7f96ab;
}
.cmi-bar--enhanced {
  height: 126px;
  background: linear-gradient(180deg, #86c548, #6ea335);
}
.cmi-bar__value {
  margin-top: 6px;
  font-size: .98rem;
  font-weight: 800;
  color: var(--navy);
}
.cmi-bar__label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cmi-chart__hook {
  position: absolute;
  left: 112px;
  top: 18px;
  width: 136px;
  z-index: 3;
}
.cmi-hook__line,
.cmi-hook__head {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.cmi-hook__line {
  animation: drawStroke .45s ease forwards;
  animation-delay: .9s;
}
.cmi-hook__head {
  animation: drawStroke .22s ease forwards;
  animation-delay: 1.35s;
}
.cmi-chart__delta {
  position: absolute;
  right: 12px;
  top: 10px;
  background: #edf5df;
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: .75rem;
  padding: 4px 9px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  animation: revealDelta .24s ease forwards;
  animation-delay: 1.62s;
}
@keyframes growBar {
  from { transform: scaleY(.2); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes drawStroke {
  from {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@keyframes revealDelta {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cmi-divider { border: none; border-top: 1px solid var(--border); margin-block: 16px; }

.cmi-stat { display: flex; flex-direction: column; margin-bottom: 12px; }
.cmi-stat:last-child { margin-bottom: 0; }
.cmi-stat__figure { font-size: 1.6rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.cmi-stat__desc { font-size: .8rem; color: var(--text-muted); }
.cmi-stat--highlight {
  background: #f1f6e9;
  border: 1px solid #dce7c8;
  border-radius: 10px;
  padding: 8px 12px;
}

.cmi-card__footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ── Trust bar ────────────────────────────────────────────────── */
.trust-bar {
  background: var(--navy);
  padding-block: 40px;
}
.trust-bar__title {
  text-align: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}
.trust-stat {
  text-align: center;
  color: #eaded3;
  border: 1px solid #6b4f38;
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
}
.trust-stat__figure {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.trust-stat__desc {
  display: block;
  font-size: .82rem;
  color: #d8c7b8;
}
.trust-divider {
  width: 1px;
  background: #6b4f38;
}

/* ── Why CMI gets missed ──────────────────────────────────────── */
.missed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.missed-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.missed-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.missed-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-xlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  margin-bottom: 16px;
}
.missed-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.missed-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

.missed__callout {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 20px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* ── What Jana does ───────────────────────────────────────────── */
.drivers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.driver-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.driver-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.driver-card__num {
  font-size: .75rem;
  font-weight: 800;
  color: var(--brand-mid);
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.driver-card h3 { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.driver-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* Role tabs */
.roles { margin-top: 0; }
.roles__label {
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.roles__tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.role-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.role-tab--active,
.role-tab:hover { background: var(--brand); color: #fff; }

.roles__panels { position: relative; }
.role-panel { display: none; }
.role-panel--active { display: block; }

.role-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.role-panel h4 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.role-panel > p { font-size: .95rem; color: var(--text-muted); margin-bottom: 20px; max-width: 600px; }
.role-panel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-panel li {
  font-size: .875rem;
  color: var(--text);
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-light);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.role-panel li::before { content: '✓'; color: var(--brand-mid); font-weight: 700; flex-shrink: 0; }

/* ── How Jana works ───────────────────────────────────────────── */
.how__ehr-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 56px;
}
.ehr-chip {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.ehr-chip--brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.ehr-arrow { color: var(--text-muted); font-size: .9rem; }
.ehr-plus { color: var(--text-muted); font-weight: 700; }

.steps { max-width: 680px; margin-inline: auto; }
.step {
  display: flex;
  gap: 28px;
  padding-block: 28px;
  position: relative;
  z-index: 0;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 82px;
  bottom: 0;
  width: 2px;
  background: var(--brand-light);
  z-index: 0;
}
.step__num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
}
.step__body { position: relative; z-index: 1; }
.step__body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step__body p  { font-size: .9rem; color: var(--text-muted); }

/* ── Impact / Case study ──────────────────────────────────────── */
.case-study-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.case-study-banner__text { flex: 1; min-width: 280px; }
.case-study-banner__text .badge { margin-bottom: 14px; }
.case-study-banner__text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.case-study-banner__text p { font-size: .95rem; color: #c0a890; line-height: 1.7; }
.case-study-banner__text strong { color: #e8ddd9; }  /* jana-brown-20 */

.case-study-banner__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}
.case-study-banner__visual {
  min-width: 170px;
  text-align: center;
}
.impact-chart {
  margin-inline: auto;
  width: 130px;
  height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.impact-chart__bar {
  width: 50px;
  border-radius: 8px 8px 4px 4px;
}
.impact-chart__bar--base {
  height: 68px;
  background: #8aa0b5;
}
.impact-chart__bar--lift {
  height: 94px;
  background: linear-gradient(180deg, #8ac84a, #6da235);
}
.impact-chart__lift {
  position: absolute;
  right: 4px;
  top: -12px;
  color: #b4c48d;
  font-size: .88rem;
  font-weight: 800;
}
.impact-chart__caption {
  margin-top: 6px;
  color: #a89076;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cs-stat { text-align: center; }
.cs-stat__fig { display: block; font-size: 1.8rem; font-weight: 800; color: #b4c48d; letter-spacing: -0.02em; } /* jana-green-40 */
.cs-stat__label { font-size: .78rem; color: #a89076; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow var(--transition);
}
.testimonial:hover { box-shadow: var(--shadow-md); }
.testimonial p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  quotes: "\201C""\201D";
}
.testimonial p::before { content: open-quote; color: var(--brand-light); font-size: 2rem; line-height: 0; vertical-align: -0.4em; margin-right: 2px; }
.testimonial cite { font-size: .8rem; color: var(--text-muted); font-style: normal; font-weight: 600; }

/* ── Value Pyramid ────────────────────────────────────────────── */
.pyramid__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.pyramid__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.pyramid__text p { font-size: .95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }

.pyramid__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}
.pyr-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 96px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.pyr-tier--top  {
  width: 72%;
  background: var(--brand-mid);
  clip-path: polygon(7.5% 0%, 92.5% 0%, 100% 100%, 0% 100%);
}
.pyr-tier--mid  {
  width: 86%;
  background: var(--brand);
  clip-path: polygon(6.75% 0%, 93.25% 0%, 100% 100%, 0% 100%);
}
.pyr-tier--base {
  width: 100%;
  background: var(--brand-dark);
  clip-path: polygon(6.2% 0%, 93.8% 0%, 100% 100%, 0% 100%);
  min-height: 102px;
}

.pyr-tier__label { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1.2; }
.pyr-tier__sub   { font-size: .84rem; color: rgba(255,255,255,.9); margin-top: 6px; line-height: 1.35; }

/* ── Demo CTA ─────────────────────────────────────────────────── */
.demo-cta {
  background: var(--bg-alt);
}
.demo-cta__inner {
  text-align: center;
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px 34px;
}
.demo-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}
.demo-cta p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 30px; }

.demo-form { margin-bottom: 14px; }
.demo-form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
  max-width: 560px;
  margin-inline: auto;
}
.demo-form__input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: .9rem;
  border-radius: var(--radius);
  border: 2px solid var(--brand-light);
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.demo-form__input::placeholder { color: var(--text-light); }
.demo-form__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(125,148,77,.18);
}
.demo-form__input.is-invalid { border-color: #fca5a5; }

.demo-cta .btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  min-width: 240px;
  border-radius: 9999px;
  box-shadow: none;
}
.demo-cta .btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 6px 14px rgba(125,148,77,.2);
}

.demo-cta__note { font-size: .875rem; min-height: 1.4em; color: var(--text-muted); }
.demo-cta__note.is-success { color: var(--brand-dark); }
.demo-cta__note.is-error   { color: #b91c1c; }

.demo-cta__legal { margin-top: 16px; font-size: .9rem; color: var(--text-muted); }
.demo-cta__legal a { color: var(--brand-dark); text-decoration: underline; font-weight: 600; }
.demo-cta__legal a:hover { color: var(--brand-dark); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { background: var(--navy); color: #c0a890; }

.footer__inner {
  display: flex;
  gap: 64px;
  padding-block: 64px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer__brand { flex: 1; min-width: 200px; }
.footer__logo  { color: #fff !important; margin-bottom: 12px; }
.footer__brand p { font-size: .875rem; color: #a89076; line-height: 1.6; }
.footer__tagline-sub { color: #7a6050 !important; font-size: .8rem !important; margin-top: 4px; }

.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__col h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a6050;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: .875rem;
  color: #a89076;
  transition: color var(--transition);
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid #4f3422;  /* jana-brown-80 tone */
  padding-block: 20px;
}
.footer__bottom p { font-size: .8rem; color: #6b4f38; text-align: center; }
.footer__bottom a { color: #7a6050; transition: color var(--transition); }
.footer__bottom a:hover { color: #a89076; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .drivers__grid { grid-template-columns: repeat(2, 1fr); }
  .pyramid__inner { grid-template-columns: 1fr; gap: 48px; }
  .pyramid__visual { max-width: 440px; margin-inline: auto; }
  .demo-form__fields { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .cmi-card { max-width: 380px; }
  .trust-bar__inner { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .missed__grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .case-study-banner { flex-direction: column; padding: 32px; gap: 32px; }
  .case-study-banner__stats { flex-direction: row; justify-content: space-around; width: 100%; }
  .role-panel ul { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 56px 48px; }

  .nav__links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 0 12px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li a:not(.btn) {
    display: block;
    padding: 12px 24px;
    font-size: .95rem;
  }
  .nav__links li:last-child { padding: 8px 24px 0; }
  .nav__links li:last-child .btn { width: 100%; justify-content: center; }
  .nav__burger { display: flex; }

  .trust-bar__inner { grid-template-columns: 1fr; }

  .drivers__grid { grid-template-columns: 1fr; }

  .roles__tabs {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 8px;
  }
  .role-tab { border: 1px solid var(--border); border-radius: 100px; }
  .role-panel { padding: 24px 20px; }

  .how__ehr-banner { gap: 6px; }

  .case-study-banner__stats { flex-direction: column; align-items: center; }
  .demo-cta__inner { padding: 30px 20px; }

  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__links  { gap: 32px; }
}
