/* ============================================================
   CAREMAP — Enterprise medical software website
   v2 — Epic/Athenahealth inspired
   ============================================================ */

/* ---- TOKENS ------------------------------------------------ */
:root {
  --navy-900: #0B2545;
  --navy-800: #133968;
  --navy-700: #1B4E8F;
  --navy-600: #2E6BB5;
  --teal-500: #19A7B8;
  --teal-100: #DFF1F4;
  --coral-500:#E07B7F;

  --ink:     #1A2235;
  --ink-2:   #3F4A60;
  --ink-3:   #6B7587;
  --ink-4:   #9099A8;
  --line:    #E3E7EE;
  --line-2:  #EEF1F6;
  --bg:      #FFFFFF;
  --bg-soft: #F6F8FB;

  --display: 'Inter', system-ui, -apple-system, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  --max:    1280px;
  --gutter: 32px;
  --r:      6px;
  --r-lg:   12px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow:    0 6px 24px -8px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(11, 37, 69, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--navy-800); color: #fff; }

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

/* TYPE */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.h-hero {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.h-section {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.h-block { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.18; }
.h-card  { font-size: 19px; line-height: 1.3; font-weight: 600; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.eyebrow--teal { color: var(--teal-500); }
.lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 64ch;
}
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em;
  padding: 12px 22px; border-radius: var(--r);
  transition: all 0.18s ease; white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn--white { background: #fff; color: var(--navy-800); }
.btn--white:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: 15px; }

/* UTILITY BAR */
.util { background: var(--navy-900); color: rgba(255,255,255,0.7); font-size: 13px; padding: 9px 0; }
.util-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.util-left { display: flex; gap: 28px; }
.util-left span svg { display: inline; vertical-align: -3px; margin-right: 6px; opacity: 0.6; }
.util-right { display: flex; gap: 20px; }
.util-right a { color: rgba(255,255,255,0.8); transition: color 0.15s; }
.util-right a:hover { color: #fff; }
.util-right a.support { color: var(--teal-500); font-weight: 500; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); gap: 40px;
}
.nav-brand img { height: 32px; }
.nav-links { display: flex; gap: 30px; align-items: center; flex: 1; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color 0.15s; padding: 28px 0; }
.nav-links a:hover { color: var(--navy-800); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 32px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 48px;
}
.hero-text .pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: var(--teal-100);
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: 12.5px; font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.04em;
}
.hero-text .pill .dot {
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.hero-text h1 { margin-bottom: 24px; max-width: 600px; }
.hero-text h1 .accent { color: var(--navy-800); }
.hero-text p.lead { margin-bottom: 36px; max-width: 540px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { display: flex; gap: 20px; flex-wrap: nowrap; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-tags .tag {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  white-space: nowrap;
}
.hero-tags .tag svg { color: var(--teal-500); flex-shrink: 0; }

.hero-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image .badge {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: var(--shadow);
}
.hero-image .badge .icon {
  width: 44px; height: 44px;
  background: var(--teal-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
  flex-shrink: 0;
}
.hero-image .badge strong { display: block; font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.hero-image .badge span { font-size: 12.5px; color: var(--ink-3); }

/* TRUSTED MARQUEE */
.trusted {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
}
.trusted-label {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 28px;
  animation: marquee 60s linear infinite;
  padding-left: 28px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-item {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  flex-shrink: 0;
}
.m-plus {
  color: var(--teal-500);
  font-weight: 700;
}
.m-dot {
  color: var(--ink-4);
  font-size: 18px;
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* METRICS BAND */
.metrics { padding: 40px 0; background: var(--navy-900); color: #fff; }
.metrics-head { margin-bottom: 28px; text-align: center; }
.metrics-head h2 { color: #fff; margin-top: 12px; font-size: clamp(24px, 2.4vw, 32px); }
.metrics-head .eyebrow { color: var(--teal-500); }
.metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.metric { padding: 0 16px; border-left: 1px solid rgba(255,255,255,0.12); text-align: center; }
.metric:first-child { border-left: none; }
.metric .num {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700; color: #fff;
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 10px;
}
.metric .num .plus { color: var(--teal-500); font-weight: 500; }
.metric .lab { font-size: 12.5px; color: rgba(255,255,255,0.65); font-weight: 500; }

/* SECTION */
.section { padding: 48px 0; position: relative; scroll-margin-top: 88px; }
.section--gray { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.section-head h2 { margin-bottom: 14px; }
#protect, #telearogya, #scribe { scroll-margin-top: 100px; }
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head .lead { margin: 0 auto; }

/* VALUE PROPS */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
}
.value:hover { border-color: var(--navy-700); box-shadow: var(--shadow); transform: translateY(-3px); }
.value-icon {
  width: 52px; height: 52px;
  background: var(--teal-100);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
  margin-bottom: 22px;
}
.value h3 { margin-bottom: 12px; }
.value p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 24px; flex: 1; }
.value .stat {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: var(--r);
  margin-top: auto;
}
.value .stat .big {
  font-size: 26px; font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em; white-space: nowrap;
}
.value .stat .desc { font-size: 12px; color: var(--ink-3); line-height: 1.45; }

/* PRODUCTS */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.2s ease;
}
.product:hover { box-shadow: var(--shadow-lg); border-color: var(--navy-700); }
.product-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img--infographic { display: flex; align-items: center; justify-content: center; }
.product-img--infographic svg { width: 100%; height: 100%; display: block; }
.solutions-image--infographic { background: var(--bg-soft); }
.solutions-image--infographic svg { width: 100%; height: 100%; display: block; }
.product-img .tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.96);
  padding: 5px 12px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px;
  color: var(--navy-800);
}
.product-body { padding: 32px 32px 36px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; color: var(--navy-900); }
.product-sub { font-size: 13px; font-weight: 500; color: var(--teal-500); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.product-desc { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 24px; flex: 1; }
.product-feats { list-style: none; margin-bottom: 28px; }
.product-feats li {
  font-size: 14px; color: var(--ink-2);
  padding: 5px 0 5px 24px; position: relative;
}
.product-feats li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px;
  background: var(--teal-100);
  border-radius: 50%;
}
.product-feats li::after {
  content: '';
  position: absolute; left: 4px; top: 15px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--navy-800);
  border-bottom: 1.5px solid var(--navy-800);
  transform: rotate(-45deg);
}

/* MODULES */
.modules-section { background: var(--bg-soft); }
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: all 0.15s;
}
.module:hover { border-color: var(--navy-700); transform: translateY(-2px); }
.module-icon {
  width: 38px; height: 38px;
  background: var(--teal-100);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
  margin-bottom: 16px;
}
.module h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.module p { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* SOLUTIONS BY AUDIENCE */
.solutions-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.solutions-list { display: grid; gap: 14px; }
.solution {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px;
  transition: all 0.2s;
}
.solution h4 {
  font-size: 17px; font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.solution h4 svg { color: var(--teal-500); }
.solution p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.solution:hover { border-color: var(--navy-700); box-shadow: var(--shadow-sm); }
.solutions-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  justify-self: center;
  width: 100%;
}
.solutions-image img { width: 100%; height: 100%; object-fit: cover; }

/* FEATURE CLUSTERS — "Built around how you actually run a practice" */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  border-color: var(--navy-700);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-icon {
  width: 46px; height: 46px;
  background: var(--teal-100);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.25;
}
.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.feature-desc strong { color: var(--ink); font-weight: 600; }
.feature-desc em { color: var(--navy-800); font-style: normal; font-weight: 600; }

/* SPECIALTIES */
.specialties-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.specialty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.15s;
}
.specialty:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.specialty .ico {
  width: 32px; height: 32px;
  background: var(--teal-100); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800); margin-bottom: 4px;
}
.specialty h5 { font-size: 15px; font-weight: 600; color: var(--ink); }
.specialty p { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

/* DEPLOYMENT */
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deploy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  display: flex; flex-direction: column;
}
.deploy-card .meta {
  font-size: 12px; font-weight: 600;
  color: var(--teal-500);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.deploy-card h3 { margin-bottom: 16px; font-size: 26px; }
.deploy-card > p { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 28px; }
.deploy-card ul { list-style: none; border-top: 1px solid var(--line); padding-top: 20px; margin-top: auto; }
.deploy-card ul li {
  display: flex; align-items: start; gap: 12px;
  padding: 9px 0;
  font-size: 14px; color: var(--ink-2);
}
.deploy-card ul li svg { color: var(--teal-500); flex-shrink: 0; margin-top: 3px; }

/* INSIGHTS */
.insights-section { background: var(--navy-900); color: #fff; }
.insights-section .section-head h2 { color: #fff; }
.insights-section .section-head .lead { color: rgba(255,255,255,0.75); }
.insights-section .section-head .eyebrow { color: var(--teal-500); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.insight { background: var(--navy-900); padding: 32px 28px; display: flex; flex-direction: column; }
.insight .num {
  font-size: clamp(38px, 3.6vw, 50px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: #fff; margin-bottom: 18px;
}
.insight .num .unit { font-size: 0.5em; font-weight: 500; color: var(--teal-500); margin-left: 4px; }
.insight .desc { font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.55; margin-bottom: 18px; flex: 1; }
.insight .src { font-size: 11.5px; color: rgba(255,255,255,0.45); line-height: 1.45; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.insights-callout {
  margin-top: 48px;
  padding: 22px 28px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--teal-500);
  border-radius: 0 var(--r) var(--r) 0;
}
.insights-callout p { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.92); font-weight: 500; }

/* CTA / DEMO FORM */
.cta { background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%); color: #fff; padding: 56px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.cta-grid h2 { color: #fff; margin-bottom: 20px; }
.cta-grid > div > p, .cta-pitch > p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 48ch; margin-bottom: 32px; }

.cta-contact { display: grid; gap: 0; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.cta-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cta-row:last-child { border-bottom: none; }
.cta-row svg { color: var(--teal-500); flex-shrink: 0; }
.cta-row strong { font-size: 14.5px; font-weight: 600; color: #fff; display: block; margin-bottom: 2px; }
.cta-row span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* FORM */
.demo-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 36px 32px;
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
}
.form-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-subtitle {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(19, 57, 104, 0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-4);
}
.form-field textarea { resize: vertical; min-height: 76px; font-family: var(--body); }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%236B7587' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--navy-800);
  color: #fff;
  font-size: 15px;
  border: none;
}
.form-submit:hover { background: var(--navy-700); box-shadow: var(--shadow); transform: translateY(-1px); }
.form-note {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status {
  margin-top: 12px;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: var(--r);
  transition: all 0.2s;
}
.form-status:empty { display: none; }
.form-status--ok {
  background: #E8F5E9;
  color: #1B5E20;
  padding: 12px 16px;
  border-left: 3px solid #19A7B8;
}
.form-status--err {
  background: #FFF3F3;
  color: #B05F68;
  padding: 12px 16px;
  border-left: 3px solid #E07B7F;
}

/* FOOTER */
.foot { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 48px 0 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-brand img { height: 32px; margin-bottom: 24px; }
.foot-brand p { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.65); max-width: 32ch; margin-bottom: 24px; }
.foot-brand .since { display: inline-block; padding: 5px 12px; background: rgba(255,255,255,0.08); border-radius: 999px; font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; }
.foot-col h6 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.foot-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.65); padding: 6px 0; transition: color 0.15s; }
.foot-col a:hover { color: var(--teal-500); }
.foot-bottom { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.45); gap: 24px; flex-wrap: wrap; }
.foot-bottom .legal { display: flex; gap: 24px; }
.foot-bottom .legal a { color: rgba(255,255,255,0.6); }
.foot-bottom .legal a:hover { color: #fff; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeIn 0.6s ease-out forwards; }
.fade-in.d1 { animation-delay: 0.05s; }
.fade-in.d2 { animation-delay: 0.12s; }
.fade-in.d3 { animation-delay: 0.2s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image { max-width: 600px; margin: 0 auto; aspect-ratio: 16/10; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .metric:nth-child(4) { border-left: none; padding-left: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: 1fr; gap: 40px; }
  .specialties-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .deploy-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-form { max-width: 600px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .util-left span:nth-child(2) { display: none; }
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .hero { padding: 32px 0 0; }
  .hero-grid { padding-bottom: 56px; }
  .section { padding: 56px 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(odd) { border-left: none; padding-left: 0; }
  .specialties-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .demo-form { padding: 28px 22px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-tags { flex-wrap: wrap; gap: 12px 20px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   LEGAL PAGES (Terms, Privacy, Refund)
   ============================================================ */
.legal-hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.legal-hero .crumbs {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.legal-hero .crumbs a { color: var(--navy-700); }
.legal-hero .crumbs a:hover { color: var(--navy-800); }
.legal-hero .crumbs span { margin: 0 8px; color: var(--ink-4); }
.legal-hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 14px;
}
.legal-hero .meta {
  font-size: 13.5px;
  color: var(--ink-3);
}
.legal-hero .meta strong { color: var(--ink); font-weight: 600; }

.legal-body {
  padding: 48px 0 80px;
  background: #fff;
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
  letter-spacing: -0.01em;
}
.legal-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 18px 24px;
  padding: 0;
}
.legal-content li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 6px;
  padding-left: 6px;
}
.legal-content ul li::marker { color: var(--teal-500); }
.legal-content ol li::marker { color: var(--navy-700); font-weight: 600; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--navy-700); border-bottom: 1px solid var(--navy-700); }
.legal-content a:hover { color: var(--teal-500); border-bottom-color: var(--teal-500); }
.legal-callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--teal-500);
  padding: 20px 24px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 28px 0;
}
.legal-callout p { margin: 0; font-size: 15px; }
.legal-callout p + p { margin-top: 10px; }

/* Sticky TOC sidebar on wider screens */
.legal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
}
.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.legal-toc h6 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.legal-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 0;
  line-height: 1.4;
  transition: color 0.15s;
  border: none;
}
.legal-toc a:hover { color: var(--navy-800); }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}
