/* ═══════════════════════════════════════════════════════════
   MedXFill HIP Platform — Light / White Theme Stylesheet
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --white:    #FFFFFF;
  --off-white:#F7F9FC;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --navy:     #0A1628;
  --navy2:    #1E293B;
  --teal:     #00A896;
  --teal2:    #00C9B1;
  --teal-light: rgba(0,168,150,0.1);
  --teal-border: rgba(0,168,150,0.25);
  --blue:     #3B82F6;
  --purple:   #8B5CF6;
  --green:    #10B981;
  --red:      #EF4444;
  --yellow:   #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-teal: 0 4px 20px rgba(0,168,150,0.18);
  --radius:    16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  /* Offset all native anchor jumps by the fixed navbar height */
  scroll-padding-top: 84px;
}

/* Per-section scroll margin (belt-and-suspenders for all browsers) */
section[id] {
  scroll-margin-top: 84px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--navy2);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ─── CARD ─── */
.glass-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-teal);
  transform: translateY(-4px);
}

/* ═══════════════════════════════════ NAVBAR ═══ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 48px; width: auto; display: block; }
.footer-logo-img { height: 44px; width: auto; display: block; margin-bottom: 12px; filter: brightness(1.15); }
.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  color: var(--gray-700); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: var(--teal); background: var(--teal-light); }

/* Active section indicator — teal dot under the link */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px; height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  opacity: 0;
}
.nav-links a.active {
  color: var(--teal) !important;
  background: var(--teal-light) !important;
}
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}
.btn-demo {
  background: var(--teal); color: var(--white); font-size: 14px; font-weight: 700;
  padding: 10px 22px; border-radius: 8px; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-demo:hover { background: var(--teal2); transform: translateY(-1px); box-shadow: var(--shadow-teal); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ═══════════════════════════════════ HERO ═══ */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 24px 80px;
  background: linear-gradient(160deg, #F0FDF9 0%, #E0F7FA 30%, #F8FAFC 60%, #FFFFFF 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.22; animation: float 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: #99F6E4; top: -150px; right: -150px; animation-delay: 0s; }
.orb2 { width: 350px; height: 350px; background: #BAE6FD; bottom: -80px; left: -80px; animation-delay: 3s; }
.orb3 { width: 280px; height: 280px; background: #C7D2FE; top: 50%; left: 40%; animation-delay: 6s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,168,150,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,168,150,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,168,150,0.1); border: 1px solid var(--teal-border);
  color: var(--teal); font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.3); } }
.hero-title {
  font-size: clamp(40px, 7vw, 78px); font-weight: 900;
  line-height: 1.05; margin-bottom: 24px; letter-spacing: -0.03em;
  color: var(--navy);
}
.gradient-text {
  background: linear-gradient(135deg, var(--teal), #0891B2, #3B82F6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px); color: var(--gray-500);
  margin-bottom: 40px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.btn-primary {
  background: var(--teal); color: var(--white); font-weight: 700; font-size: 16px;
  padding: 16px 32px; border-radius: 12px; text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,168,150,0.3);
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,168,150,0.4); }
.btn-secondary {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--gray-200); color: var(--navy2);
  font-weight: 600; font-size: 16px; padding: 16px 32px; border-radius: 12px;
  text-decoration: none; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px 32px;
  box-shadow: var(--shadow);
}
.stat-item { text-align: center; padding: 0 28px; }
.stat-num { font-size: 32px; font-weight: 900; color: var(--teal); }
.stat-plus { font-size: 22px; font-weight: 900; color: var(--teal); }
.stat-label { display: block; font-size: 13px; color: var(--gray-500); font-weight: 500; margin-top: 2px; }
.stat-label-big { font-size: 22px; font-weight: 900; color: var(--teal); display: block; }
.stat-divider { width: 1px; height: 40px; background: var(--gray-200); flex-shrink: 0; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.scroll-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(10px)} }

/* ═══════════════════════════════════ SECTIONS ═══ */
.section { padding: 100px 0; background: var(--white); }
.section-dark { background: var(--gray-50); }
.section-tag {
  display: inline-block; background: var(--teal-light); border: 1px solid var(--teal-border);
  color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -0.02em; color: var(--navy);
  position: relative;
  display: inline-block;  /* allows ::after to size to text width */
}
/* Animated underline drawn from center when title is revealed */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  border-radius: 100px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.section-title.is-revealed::after {
  transform: translateX(-50%) scaleX(1);
}
/* Don't show underline on hero title */
#hero .section-title::after,
.hero-title::after { display: none; }
.section-subtitle {
  font-size: 18px; color: var(--gray-500); max-width: 640px;
  line-height: 1.7; margin-bottom: 60px;
}

/* ═══════════════════════════════════ OVERVIEW ═══ */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.overview-card { padding: 32px; }
.ov-icon {
  width: 52px; height: 52px; background: var(--teal-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.overview-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.overview-card p { color: var(--gray-500); font-size: 15px; line-height: 1.7; }

/* ═══════════════════════════════════ PRODUCTS ═══ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.product-card:hover { border-color: var(--teal-border); box-shadow: var(--shadow-teal); transform: translateY(-4px); }
.product-featured { border-color: var(--teal-border) !important; background: linear-gradient(135deg, #F0FDF9, #E0F7FA) !important; }
.product-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.product-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-icon.rx      { background: linear-gradient(135deg, #EF4444, #DC2626); }
.product-icon.therapy { background: linear-gradient(135deg, var(--teal), #0891B2); }
.product-icon.supp    { background: linear-gradient(135deg, var(--purple), #7C3AED); }
.product-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal); background: var(--teal-light); padding: 3px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 6px;
}
.featured-tag { color: var(--white); background: var(--teal); }
.product-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); }
.product-count { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; font-style: italic; }
.product-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.product-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); }
.list-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.list-dot.teal { background: var(--teal); }
.list-dot.red  { background: var(--red); }
.list-dot.blue { background: var(--blue); }

/* ═══════════════════════════════════ FEATURES ═══ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card { padding: 32px; }
.feature-icon {
  width: 48px; height: 48px; background: var(--teal-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature-card h4 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { color: var(--gray-500); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feature-bullets li { font-size: 13px; color: var(--gray-500); padding-left: 16px; position: relative; }
.feature-bullets li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-size: 12px; }

/* ═══════════════════════════════════ SOLUTIONS ═══ */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.solution-card { padding: 36px 28px; position: relative; overflow: hidden; }
.sol-num { font-size: 64px; font-weight: 900; color: rgba(0,168,150,0.07); position: absolute; top: 16px; right: 20px; line-height: 1; }
.sol-icon { margin-bottom: 20px; }
.solution-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.solution-card p { color: var(--gray-500); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.sol-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sol-list li { font-size: 14px; color: var(--gray-700); padding-left: 18px; position: relative; }
.sol-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ═══════════════════════════════════ TECHNOLOGY ═══ */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.tech-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 16px; }
.tech-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 8px;
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.tech-badge:hover { border-color: var(--teal-border); color: var(--teal); box-shadow: var(--shadow-teal); }
.tech-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tech-dot.blue   { background: var(--blue); }
.tech-dot.teal   { background: var(--teal); }
.tech-dot.purple { background: var(--purple); }
.tech-dot.green  { background: var(--green); }

/* ═══════════════════════════════════ COMPLIANCE ═══ */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.compliance-badge-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.compliance-badge-card:hover { border-color: var(--teal-border); box-shadow: var(--shadow-teal); transform: translateY(-3px); }
.comp-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.comp-icon.hipaa    { background: linear-gradient(135deg, #059669, #047857); }
.comp-icon.dea      { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.comp-icon.delaware { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.comp-icon.ssl      { background: linear-gradient(135deg, #D97706, #B45309); }
.comp-icon.ein      { background: linear-gradient(135deg, #0891B2, #0E7490); }
.comp-icon.pwa      { background: linear-gradient(135deg, #DC2626, #B91C1C); }
.comp-label  { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.comp-status { font-size: 12px; color: var(--teal); font-weight: 600; }

/* ═══════════════════════════════════ PRICING ═══ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.pricing-card { padding: 36px; }
.pricing-featured {
  border-color: var(--teal-border) !important;
  background: linear-gradient(160deg, #F0FDF9, #FFFFFF) !important;
  box-shadow: var(--shadow-teal) !important;
}
.pricing-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: var(--white); font-size: 12px; font-weight: 800;
  padding: 4px 18px; border-radius: 100px; white-space: nowrap;
}
.pricing-tier { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.pricing-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li { font-size: 14px; color: var(--gray-700); display: flex; align-items: center; gap: 10px; }
.check { color: var(--teal); font-weight: 700; font-size: 16px; }
.btn-outline {
  display: block; text-align: center; border: 1.5px solid var(--gray-200);
  color: var(--gray-700); font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 10px; text-decoration: none; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ═══════════════════════════════════ CTA ═══ */
.section-cta {  }
.cta-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 24px; padding: 60px; box-shadow: var(--shadow-lg);
}
.cta-content h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.cta-content p { color: var(--gray-500); font-size: 17px; line-height: 1.7; margin-bottom: 28px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--gray-700); }
.contact-item a { color: var(--teal); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.btn-large { font-size: 18px; padding: 18px 40px; }
.cta-card { padding: 28px; background: var(--gray-50) !important; border-color: var(--gray-200) !important; box-shadow: var(--shadow-sm) !important; }
.cta-card:hover { transform: none !important; }
.cta-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--gray-500); }
.cta-dot { width: 12px; height: 12px; border-radius: 50%; }
.cta-dot.green  { background: #10B981; }
.cta-dot.yellow { background: #F59E0B; }
.cta-dot.red    { background: #EF4444; }
.cta-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.metric { background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; padding: 14px; text-align: center; }
.metric-val { display: block; font-size: 20px; font-weight: 800; color: var(--teal); }
.metric-lab { font-size: 11px; color: var(--gray-500); }
.cta-status { display: flex; flex-direction: column; gap: 10px; }
.status-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray-700); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.pulse { background: var(--teal); animation: pulse 2s infinite; }
.status-dot.green-dot { background: var(--green); }

/* ═══════════════════════════════════ FOOTER ═══ */
#footer { background: var(--navy); color: var(--white); padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 48px; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; margin-top: 16px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; }
.footer-legal p { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.footer-disclaimer { margin-top: 16px; }
.footer-disclaimer p { font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.7; max-width: 900px; }
/* keep footer logo readable */
#footer .logo-main { color: var(--white); }

/* ═══════════════════════════════════ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .stat-item { padding: 8px 0; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════ CONTACT FORM ═══════════════════════ */
.contact-form {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0,168,150,0.08), 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;        /* override old 320px — let it shrink on mobile */
  max-width: 460px;
  width: 100%;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1E293B;
  background: #F8FAFC;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00A896;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,168,150,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0BEC5;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #00A896 0%, #028090 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,168,150,0.25);
  letter-spacing: 0.1px;
  margin-top: 4px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #028090 0%, #026070 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,168,150,0.35);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: #94A3B8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0FDF9;
  border: 1.5px solid #00A896;
  border-radius: 10px;
  padding: 12px 16px;
  color: #028090;
  font-size: 0.93rem;
  font-weight: 600;
  margin-top: -4px;
}



/* ═══════════════════ SECTION BACKGROUND OVERLAYS ═══════════════════ */
section { position: relative; overflow: hidden; }
section > .container,
section > * > .container { position: relative; z-index: 1; }

footer { position: relative; }

/* ═══════════════════ SCROLL ANIMATIONS ═══════════════════ */

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00A896, #028090, #E07B39);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* All animated elements start hidden via JS (inline style).
   This ensures no flash of unstyled content if JS is slow. */
[data-aos] {
  /* Fallback: visible if JS fails / prefers-reduced-motion */
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #scroll-progress { display: none; }
}

/* ═══════════════════════ SECTION BACKGROUND IMAGES ═══════════════════════ */
/*
 * Structure per section:
 *   <section>
 *     <img class="section-bg-img" src="img/xxx.jpg">   ← z-index: 0, absolute fill
 *     <div class="section-inner">                       ← z-index: 1, all real content
 *       <div class="container">...</div>
 *     </div>
 *   </section>
 *
 * section has position:relative + overflow:hidden.
 * img is at z-index:0 (above section background, below content).
 * section-inner is at z-index:1 (above img).
 * No isolation:isolate needed — clean stacking.
 */

section {
  position: relative;
  overflow: hidden;
}

.section-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}

.section-inner {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════ FAQ SECTION ═══ */
.faq-layout { max-width: 820px; margin: 0 auto; }

/* ── Category tabs ──────────────────────────────────────────── */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.faq-tab {
  padding: 7px 20px;
  border-radius: 40px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.faq-tab:hover {
  border-color: var(--teal-border);
  color: var(--teal);
}
.faq-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(0,168,150,0.25);
}

/* ── Accordion items ────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open {
  border-color: var(--teal-border);
  box-shadow: 0 4px 20px rgba(0,168,150,0.10);
}
.faq-item.hidden { display: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy2);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--teal); }
.faq-item.open .faq-question { color: var(--teal); }

.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-400);
  transition: var(--transition);
  line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1), padding 0.28s ease, opacity 0.3s ease;
  padding: 0 22px;
  opacity: 0;
}
.faq-item.open .faq-answer {
  /* height is set dynamically by JS via scrollHeight for pixel-perfect animation */
  max-height: 2000px;
  padding: 0 22px 22px;
  opacity: 1;
}
.faq-answer p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}
.faq-answer p strong { color: var(--navy2); font-weight: 600; }
.faq-answer p a { color: var(--teal); text-decoration: none; font-weight: 600; }
.faq-answer p a:hover { text-decoration: underline; }

/* ── Bottom CTA ─────────────────────────────────────────────── */
.faq-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.faq-cta p {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy2);
}
@media (max-width: 600px) {
  .faq-cta { flex-direction: column; gap: 14px; text-align: center; }
  .faq-question { font-size: 14px; padding: 15px 16px; }
  .faq-answer { padding: 0 16px; }
  .faq-item.open .faq-answer { padding: 0 16px 16px; }
}



/* ══════════════════════════════════ TESTIMONIALS SECTION ═══ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* ── Individual card ─────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-teal);
  transform: translateY(-4px);
}
.testimonial-card.featured {
  border-color: var(--teal-border);
  background: linear-gradient(160deg, rgba(0,168,150,0.04) 0%, var(--white) 60%);
  box-shadow: var(--shadow-teal);
}
.testimonial-card.featured::after {
  content: 'Featured';
  position: absolute;
  top: 16px; right: 16px;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Quote mark */
.testimonial-quote-mark {
  font-size: 56px;
  font-family: Georgia, serif;
  line-height: 0.6;
  color: var(--teal);
  opacity: 0.25;
  margin-bottom: -8px;
  user-select: none;
}

/* Body text */
.testimonial-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
  flex: 1;
}

/* Stars */
.testimonial-rating { display: flex; gap: 3px; }
.star { color: #F59E0B; font-size: 15px; }

/* Author row */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.testimonial-info { display: flex; flex-direction: column; gap: 2px; }
.testimonial-info strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.testimonial-info span {
  font-size: 12px;
  color: var(--gray-500);
}
.testimonial-org {
  font-size: 11px !important;
  color: var(--teal) !important;
  font-weight: 600 !important;
}

/* ── Stats bar ───────────────────────────────────────────── */
.testimonial-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 40px;
  flex-wrap: wrap;
}
.tstat {
  text-align: center;
  padding: 8px 40px;
}
.tstat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 5px;
}
.tstat-value span {
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
}
.tstat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.tstat-divider {
  width: 1px;
  height: 48px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .tstat { padding: 12px 20px; }
  .tstat-divider { display: none; }
  .testimonial-stats { gap: 0; padding: 20px; }
}
@media (max-width: 600px) {
  .testimonial-card { padding: 24px 20px 20px; }
  .testimonial-body { font-size: 14px; }
  .tstat-value { font-size: 28px; }
}


/* ═══════════════════════════════════════ MOBILE NAV DRAWER ═══ */

/* ── Backdrop overlay ─────────────────────────────────────── */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav-backdrop.visible {
  display: block;
}
.nav-backdrop.active {
  opacity: 1;
}

/* ── Hamburger button — shown on mobile ───────────────────── */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    transition: border-color 0.25s ease, background 0.25s ease;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 1001;
    position: relative;
  }
  .nav-toggle:hover {
    border-color: var(--teal-border);
    background: var(--teal-light);
  }

  /* The three bars */
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.25s ease,
                width     0.3s ease;
    transform-origin: center;
  }

  /* Active (X) state */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── Slide-in drawer ──────────────────────────────────────── */
  .nav-links {
    /* Override desktop flex row */
    display: flex !important;
    flex-direction: column;
    gap: 0;
    margin-left: 0;

    /* Positioning */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    height: 100dvh;   /* dvh = dynamic viewport height, accounts for iOS toolbar */
    height: 100vh;    /* fallback for browsers without dvh support */
    z-index: 999;

    /* Appearance */
    background: var(--white);
    padding: 84px 0 32px;   /* top padding clears the navbar height */
    box-shadow: -8px 0 40px rgba(10, 22, 40, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* Hidden state — translated to the right */
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Individual nav items */
  .nav-links li {
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a {
    display: block;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy2);
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-links a:hover {
    background: var(--teal-light);
    color: var(--teal);
  }

  /* Hide the desktop CTA button inside the nav area */
  nav .btn-demo {
    display: none;
  }

  /* Add a "Request Demo" CTA at the bottom of the drawer */
  .nav-links::after {
    content: 'Request Demo →';
    display: block;
    margin: 20px 24px 8px;
    padding: 13px 22px;
    background: var(--teal);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    pointer-events: none;   /* purely decorative — real CTA is in the list via JS */
  }

  /* Prevent body scroll when drawer is open — iOS-safe technique:
     overflow:hidden alone breaks position:fixed on iOS Safari when
     the page has been scrolled. We instead fix the body in place
     at the current scroll offset, then restore on close (JS handles
     the top value via data-scroll-y). */
  body.nav-open {
    position: fixed;
    width: 100%;
    overflow-y: scroll; /* keep scrollbar gutter to avoid layout shift */
  }
}

/* ── Desktop — reset any mobile overrides above 860px ──────── */
@media (min-width: 861px) {
  .nav-links {
    transform: none !important;
    visibility: visible !important;
    position: static !important;
    flex-direction: row !important;
    width: auto !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .nav-links a {
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--gray-700) !important;
    border-radius: 8px !important;
  }
  .nav-backdrop {
    display: none !important;
  }
  .nav-toggle {
    display: none !important;
  }
  nav .btn-demo {
    display: inline-flex !important;
  }
}

/* ══════════════════════════════════ SCROLL ANIMATIONS v2 ═══ */

/* ── New animation keyframes ──────────────────────────────── */

/* blur-in: content fades + unblurs as it rises */
@keyframes blurIn {
  from { opacity: 0; filter: blur(10px); transform: translateY(22px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

/* scale-up: subtle grow + rise */
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(24px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* slide-up: more dramatic vertical rise */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* zoom-out: start slightly big, settle */
@keyframes zoomOut {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}

/* fade-in: opacity only */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Section-level entrance: faint background pulse ──────── */
@keyframes sectionPulse {
  0%   { box-shadow: inset 0 0 0 0 rgba(0,168,150,0); }
  40%  { box-shadow: inset 0 0 80px 0 rgba(0,168,150,0.04); }
  100% { box-shadow: inset 0 0 0 0 rgba(0,168,150,0); }
}

/* Apply entrance pulse once when a section comes into view */
section.section-entered {
  animation: sectionPulse 1.4s ease forwards;
}

/* ── Section tag shimmer on reveal ───────────────────────── */
@keyframes tagShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.section-tag.is-revealed {
  background-image: linear-gradient(
    90deg,
    rgba(0,168,150,0.08) 0%,
    rgba(0,201,177,0.22) 40%,
    rgba(0,168,150,0.08) 80%
  );
  background-size: 200% auto;
  animation: tagShimmer 1s ease forwards;
}

/* ── Stagger helper: [data-stagger-children] ─────────────── */
/* JS assigns --stagger-i CSS variable to each child          */
[data-stagger-children] > * {
  transition-delay: calc(var(--stagger-i, 0) * 120ms);
}

/* ── After-reveal: cleanup will-change for performance ────── */
.anim-done {
  will-change: auto !important;
}

/* ── Ensure section-title is center-block for underline ───── */
.section-inner .section-title,
.section > .container .section-title,
.section > .section-inner > .container .section-title {
  display: block;          /* full-width block keeps text centered */
}
/* But the ::after pseudo still needs scaleX trick — re-assert */
.section-title::after {
  left: 50%;
  width: 48px;
}

/* ── Reduced-motion: kill all custom keyframes too ─────── */
@media (prefers-reduced-motion: reduce) {
  @keyframes blurIn    { from { opacity:1; filter:none; transform:none; } to { opacity:1; } }
  @keyframes scaleUp   { from { opacity:1; transform:none; } to { opacity:1; } }
  @keyframes slideUp   { from { opacity:1; transform:none; } to { opacity:1; } }
  @keyframes zoomOut   { from { opacity:1; transform:none; } to { opacity:1; } }
  @keyframes fadeIn    { from { opacity:1; } to { opacity:1; } }
  @keyframes sectionPulse { to {} }
  @keyframes tagShimmer   { to {} }
  .section-title::after { transition: none; }
}

/* ── Smooth scroll: section arrival flash ────────────────────
   Brief left-border teal pulse when scrolled to a section.   */
@keyframes scrollArrived {
  0%   { box-shadow: inset 4px 0 0 var(--teal); }
  60%  { box-shadow: inset 4px 0 0 rgba(0,168,150,0.5); }
  100% { box-shadow: inset 0  0 0 transparent; }
}
section.scroll-arrived {
  animation: scrollArrived 0.9s ease forwards;
}

/* ── Scroll progress bar: slightly taller + smoother ──────── */
#scroll-progress {
  height: 3px;
  transition: width 0.08s linear;
}

/* ── Reduced motion: disable arrival animation ────────────── */
@media (prefers-reduced-motion: reduce) {
  section.scroll-arrived { animation: none; }
}

/* ── Bug fix: Contact section mobile layout ──────────────────
   .cta-box is a 2-col grid on desktop; stack to 1-col on mobile */
@media (max-width: 860px) {
  .cta-box {
    grid-template-columns: 1fr;   /* stack vertically */
    gap: 40px;
    padding: 32px 24px;           /* reduce desktop 60px padding */
    border-radius: 16px;
  }
  .cta-content h2 {
    font-size: clamp(22px, 6vw, 32px);
  }
  .btn-large {
    font-size: 16px;
    padding: 14px 28px;
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }
  .contact-form {
    padding: 24px 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .cta-box {
    padding: 24px 16px;
    border-radius: 12px;
  }
  .contact-form {
    padding: 20px 16px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   COOKIE / HIPAA COMPLIANCE BANNER
   ════════════════════════════════════════════════════════════════════ */
#compliance-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f1623;
  border-top: 2px solid var(--teal, #00c9b1);
  box-shadow: 0 -4px 40px rgba(0,0,0,0.45);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.22,1,0.36,1);
  font-family: inherit;
}
#compliance-banner.cb-visible {
  transform: translateY(0);
}
#compliance-banner.cb-hiding {
  transform: translateY(110%);
  transition: transform 0.38s cubic-bezier(0.55,0,1,0.45);
}

/* Main content row */
.cb-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 32px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Shield icon */
.cb-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0,201,177,0.18), rgba(0,201,177,0.06));
  border: 1px solid rgba(0,201,177,0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal, #00c9b1);
  margin-top: 2px;
}

/* Text block */
.cb-text { flex: 1; min-width: 0; }
.cb-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.cb-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
  margin: 0;
}
.cb-body strong { color: rgba(255,255,255,0.88); }
.cb-link {
  color: var(--teal, #00c9b1);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-link:hover { color: #fff; }

/* Action buttons */
.cb-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: stretch;
  min-width: 160px;
}
.cb-btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}
.cb-btn-primary {
  background: var(--teal, #00c9b1);
  color: #fff;
}
.cb-btn-primary:hover {
  background: #00b09c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,201,177,0.35);
}
.cb-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.15);
}
.cb-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.cb-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  padding: 6px 10px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.10);
}
.cb-btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Bottom HIPAA strip */
.cb-hipaa-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 10px 32px 12px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.cb-hipaa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  background: rgba(0,201,177,0.10);
  border: 1px solid rgba(0,201,177,0.22);
  border-radius: 20px;
  padding: 4px 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cb-hipaa-text {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  margin-left: auto;
}
.cb-strip-link {
  color: rgba(0,201,177,0.65);
  text-decoration: underline;
  cursor: pointer;
}
.cb-strip-link:hover { color: var(--teal, #00c9b1); }

/* ── Mobile responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cb-inner {
    flex-direction: column;
    padding: 18px 20px 12px;
    gap: 14px;
  }
  .cb-icon { display: none; }
  .cb-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }
  .cb-btn-primary { flex: 1; }
  .cb-btn-secondary { flex: 1; }
  .cb-btn-ghost { flex-shrink: 0; }
  .cb-hipaa-strip {
    padding: 10px 20px 14px;
    gap: 8px 12px;
  }
  .cb-hipaa-text { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .cb-body { font-size: 12px; }
  .cb-hipaa-badge { font-size: 10px; padding: 3px 8px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #compliance-banner,
  #compliance-banner.cb-hiding {
    transition: none;
  }
}
/* ── END COMPLIANCE BANNER ─────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════
   SIMPLE CONTACT SECTION  (.contact-simple)
   ════════════════════════════════════════════════════════════════════ */

/* Section wrapper */
.contact-simple {
  position: relative;
  background: #f8fafb;
  padding: 100px 0 110px;
  overflow: hidden;
}

/* Subtle decorative background blob */
.cs-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 40%, rgba(0,201,177,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(0,168,200,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Header ───────────────────────────────────────────────────────── */
.cs-header {
  text-align: center;
  margin-bottom: 52px;
}
.cs-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark, #0f1623);
  margin: 12px 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cs-subtitle {
  font-size: 17px;
  color: var(--gray-600, #4b5563);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.cs-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Left info sidebar ────────────────────────────────────────────── */
.cs-info {
  background: linear-gradient(160deg, var(--teal, #00c9b1) 0%, #007db8 100%);
  padding: 44px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cs-info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.cs-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin: 0 0 3px;
}
.cs-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.4;
}
a.cs-info-value:hover { text-decoration: underline; opacity: 0.88; }
.cs-info-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 4px 0;
}
.cs-info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.5;
}
.cs-info-note svg { flex-shrink: 0; margin-top: 1px; }

/* ── Form area ────────────────────────────────────────────────────── */
.cs-form-wrap {
  padding: 44px 40px 40px;
}
.cs-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Fields */
.cs-field { display: flex; flex-direction: column; gap: 7px; }

.cs-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark, #0f1623);
  letter-spacing: 0.01em;
}
.cs-req { color: var(--teal, #00c9b1); margin-left: 2px; }

/* Input wrapper (for icon) */
.cs-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cs-field-icon {
  position: absolute;
  left: 14px;
  color: var(--gray-400, #9ca3af);
  pointer-events: none;
  flex-shrink: 0;
}

/* Shared input/textarea style */
.cs-input,
.cs-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  color: var(--dark, #0f1623);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.cs-input {
  padding: 11px 14px 11px 42px; /* left padding for icon */
  height: 46px;
}
.cs-textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 130px;
}

.cs-input:hover, .cs-textarea:hover { border-color: #c4c9d4; background: #fff; }
.cs-input:focus, .cs-textarea:focus {
  border-color: var(--teal, #00c9b1);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,201,177,0.14);
}
.cs-input:invalid:not(:placeholder-shown),
.cs-textarea:invalid:not(:placeholder-shown) {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.12);
}

/* Submit button */
.cs-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal, #00c9b1) 0%, #00a896 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  align-self: flex-start;
  letter-spacing: 0.01em;
}
.cs-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,168,150,0.38);
}
.cs-submit:active:not(:disabled) { transform: translateY(0); }
.cs-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner animation */
@keyframes csSpin { to { transform: rotate(360deg); } }
.cs-spinner { animation: csSpin 0.8s linear infinite; }

/* Success message */
.cs-success {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(0,201,177,0.10), rgba(0,201,177,0.05));
  border: 1.5px solid rgba(0,201,177,0.30);
  border-radius: 12px;
  padding: 18px 20px;
  animation: csFadeIn 0.4s ease forwards;
}
@keyframes csFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cs-success-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--teal, #00c9b1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-success strong {
  display: block;
  font-size: 15px;
  color: var(--dark, #0f1623);
  margin-bottom: 3px;
}
.cs-success p {
  font-size: 13px;
  color: var(--gray-600, #4b5563);
  margin: 0;
}

/* ── Mobile responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .contact-simple { padding: 72px 0 80px; }
  .cs-card {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .cs-info { padding: 32px 28px 28px; gap: 20px; }
  .cs-form-wrap { padding: 32px 28px 28px; }
  .cs-submit { align-self: stretch; justify-content: center; }
}
@media (max-width: 480px) {
  .cs-title { font-size: 26px; }
  .cs-subtitle { font-size: 15px; }
  .cs-form-wrap { padding: 28px 20px 24px; }
  .cs-info { padding: 28px 20px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cs-spinner { animation: none; }
  .cs-success { animation: none; }
}
/* ── END SIMPLE CONTACT SECTION ─────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════
   FORM VALIDATION STATES & THANK-YOU PANEL
   ════════════════════════════════════════════════════════════════════ */

/* ── Valid icon (hidden by default, shown when field valid) ───────── */
.cs-valid-icon {
  position: absolute;
  right: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  flex-shrink: 0;
}
.cs-field--valid .cs-valid-icon   { opacity: 1; transform: scale(1); }
.cs-field--valid   .cs-input,
.cs-field--valid   .cs-textarea   {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.cs-field--valid   .cs-input      { padding-right: 40px; }  /* room for tick */

/* ── Error state ─────────────────────────────────────────────────── */
.cs-field--error .cs-input,
.cs-field--error .cs-textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
  background: #fff;
}
.cs-field--error .cs-field-icon { color: #ef4444; }
.cs-field--error .cs-valid-icon { display: none; }

/* Error message text */
.cs-error {
  display: block;
  min-height: 18px;
  font-size: 12px;
  font-weight: 500;
  color: #ef4444;
  margin-top: 4px;
  padding-left: 2px;
  line-height: 1.4;
  /* slide-in animation */
  transition: opacity 0.18s ease;
}
.cs-error:empty { opacity: 0; }
.cs-error:not(:empty) { opacity: 1; }

/* ── Shake animation ─────────────────────────────────────────────── */
@keyframes csShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.cs-shake { animation: csShake 0.5s ease; }

/* ── Label row (label + char counter on same line) ───────────────── */
.cs-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.cs-label-row .cs-label { margin-bottom: 0; }

/* ── Character counter ───────────────────────────────────────────── */
.cs-char-counter {
  font-size: 11px;
  color: var(--gray-400, #9ca3af);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.cs-char-counter--warn { color: #f59e0b; font-weight: 600; }

/* ── Send error bar ──────────────────────────────────────────────── */
.cs-send-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239,68,68,0.07);
  border: 1.5px solid rgba(239,68,68,0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.5;
  animation: csFadeIn 0.3s ease forwards;
}
.cs-send-error svg { flex-shrink: 0; margin-top: 1px; }

/* ── Submit button disabled state ────────────────────────────────── */
.cs-submit:disabled {
  background: linear-gradient(135deg, #c4cdd6, #b5bec7);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  opacity: 1;  /* override prev rule so color is visible */
}

/* ══════════════════════════════════════════════════════════════════
   THANK-YOU PANEL  (.cs-thankyou)
   ══════════════════════════════════════════════════════════════════ */
.cs-thankyou {
  padding: 44px 40px 40px;
  animation: csFadeIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* Big animated check circle */
.cs-ty-check {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--teal, #00c9b1), #00a896);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 28px rgba(0,201,177,0.35);
  animation: csTyPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
@keyframes csTyPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.cs-ty-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark, #0f1623);
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.cs-ty-sub {
  font-size: 15px;
  color: var(--gray-600, #4b5563);
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Steps list */
.cs-ty-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-ty-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  animation: csFadeIn 0.4s ease both;
}
.cs-ty-step:nth-child(1) { animation-delay: 0.15s; }
.cs-ty-step:nth-child(2) { animation-delay: 0.28s; }
.cs-ty-step:nth-child(3) { animation-delay: 0.41s; }

.cs-ty-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--teal, #00c9b1), #00a896);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-ty-step strong {
  display: block;
  font-size: 14px;
  color: var(--dark, #0f1623);
  margin-bottom: 3px;
}
.cs-ty-step p {
  font-size: 13px;
  color: var(--gray-600, #4b5563);
  margin: 0;
  line-height: 1.5;
}
.cs-ty-step em { color: var(--teal, #00c9b1); font-style: normal; font-weight: 600; }

/* CTA buttons */
.cs-ty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cs-ty-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal, #00c9b1), #00a896);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  animation: csFadeIn 0.4s ease 0.55s both;
}
.cs-ty-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,168,150,0.35);
  color: #fff;
}
.cs-ty-btn-ghost {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gray-600, #4b5563);
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  animation: csFadeIn 0.4s ease 0.65s both;
}
.cs-ty-btn-ghost:hover {
  border-color: var(--teal, #00c9b1);
  color: var(--teal, #00c9b1);
  background: rgba(0,201,177,0.05);
}

.cs-ty-footer {
  font-size: 12px;
  color: var(--gray-400, #9ca3af);
  text-align: center;
  margin: 0;
  animation: csFadeIn 0.4s ease 0.75s both;
}
.cs-ty-footer a {
  color: var(--teal, #00c9b1);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cs-ty-footer a:hover { color: #009984; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cs-thankyou { padding: 32px 28px 28px; }
  .cs-ty-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .cs-thankyou { padding: 28px 20px 24px; }
  .cs-ty-actions { flex-direction: column; }
  .cs-ty-btn-primary,
  .cs-ty-btn-ghost { flex: none; width: 100%; }
  .cs-ty-check { width: 60px; height: 60px; }
  .cs-ty-title { font-size: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cs-ty-check    { animation: none; }
  .cs-ty-step     { animation: none; }
  .cs-ty-btn-primary, .cs-ty-btn-ghost,
  .cs-ty-footer, .cs-thankyou { animation: none; }
  .cs-shake       { animation: none; }
  .cs-valid-icon  { transition: none; }
}
/* ── END VALIDATION + THANK-YOU ────────────────────────────────── */

/* ═══════════════════════════════════════════════════
   SPAM PROTECTION — Honeypot field
   Hidden visually but NOT with display:none (bots
   skip display:none fields; this fools them).
   ═══════════════════════════════════════════════════ */
.cs-honeypot {
  position: absolute;
  left:      -9999px;
  top:       -9999px;
  width:     1px;
  height:    1px;
  overflow:  hidden;
  opacity:   0;
  pointer-events: none;
}
.cs-honeypot input {
  width:  1px;
  height: 1px;
  border: none;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   SOCIAL PROOF TICKER  —  hero section bottom bar
   ═══════════════════════════════════════════════════════════════════════ */
.sp-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,201,177,.08);
  border: 1px solid rgba(0,201,177,.22);
  border-radius: 40px;
  padding: 8px 18px 8px 14px;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.sp-ticker-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00c9b1;
  box-shadow: 0 0 0 3px rgba(0,201,177,.25);
  animation: sp-pulse 1.8s ease-in-out infinite;
}
@keyframes sp-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,201,177,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(0,201,177,.10); }
}
.sp-ticker-track {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 22px;
  position: relative;
}
.sp-ticker-item {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  letter-spacing: .01em;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s ease, transform .4s ease;
  padding-right: 8px;
}
.sp-ticker-item.sp-active {
  opacity: 1;
  transform: translateY(0);
}
.sp-ticker-item.sp-exit {
  opacity: 0;
  transform: translateY(-18px);
}
.sp-ticker-item .sp-loc {
  color: #00c9b1;
  font-weight: 600;
}
.sp-ticker-item .sp-icon {
  font-size: .9rem;
}


/* ═══════════════════════════════════════════════════════════════════════
   HOW IT WORKS  —  Patient Journey Timeline
   ═══════════════════════════════════════════════════════════════════════ */
.hiw-section {
  position: relative;
  background: linear-gradient(160deg, #0a1628 0%, #0f2044 55%, #091830 100%);
  overflow: hidden;
}
.hiw-section .section-bg-img {
  opacity: .04;
}

/* Header */
.hiw-section .section-header { margin-bottom: 72px; }
.hiw-section .section-title  { color: #fff; }
.hiw-section .section-subtitle { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; }

/* ── Timeline spine ──────────────────────────────────────────────────── */
.hiw-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto 72px;
}

/* Vertical line running through centre */
.hiw-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    rgba(0,201,177,0)  0%,
    rgba(0,201,177,.5) 8%,
    rgba(0,201,177,.5) 92%,
    rgba(0,201,177,0)  100%);
}

/* ── Each step row ───────────────────────────────────────────────────── */
.hiw-step {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: start;
  gap: 0;
  position: relative;
  margin-bottom: 48px;
}
.hiw-step:last-child { margin-bottom: 0; }

/* Left-side steps: card left, node centre, empty right */
.hiw-step .hiw-card      { grid-column: 1; grid-row: 1; text-align: right; padding-right: 32px; }
.hiw-step .hiw-node      { grid-column: 2; grid-row: 1; justify-self: center; }
.hiw-step .hiw-connector { grid-column: 3; grid-row: 1; display: none; } /* not used on left */

/* Right-side steps */
.hiw-step--right .hiw-card      { grid-column: 3; grid-row: 1; text-align: left;  padding-left: 32px; padding-right: 0; }
.hiw-step--right .hiw-node      { grid-column: 2; grid-row: 1; justify-self: center; }

/* ── Node (circle on spine) ──────────────────────────────────────────── */
.hiw-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-top: 8px;
}
.hiw-step-num {
  position: relative;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c9b1, #0070f3);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(0,201,177,.15), 0 4px 20px rgba(0,201,177,.3);
}
.hiw-node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,201,177,.3);
  animation: hiw-ring-pulse 2.4s ease-in-out infinite;
}
@keyframes hiw-ring-pulse {
  0%,100% { transform: scale(1);   opacity: .6; }
  50%      { transform: scale(1.3); opacity: 0;  }
}

/* ── Card ────────────────────────────────────────────────────────────── */
.hiw-card {
  position: relative;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px 28px 24px;
  transition: background .25s, border-color .25s, transform .25s;
}
.hiw-card:hover {
  background: rgba(0,201,177,.07);
  border-color: rgba(0,201,177,.25);
  transform: translateY(-3px);
}
.hiw-step--right .hiw-card { text-align: left; }

/* Icon */
.hiw-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.hiw-icon--intake   { background: rgba(0,201,177,.15); color: #00c9b1; }
.hiw-icon--consult  { background: rgba(0,112,243,.15); color: #4d9fff; }
.hiw-icon--rx       { background: rgba(245,158,11,.15); color: #f59e0b; }
.hiw-icon--epcs     { background: rgba(139,92,246,.15); color: #a78bfa; }
.hiw-icon--delivery { background: rgba(16,185,129,.15); color: #34d399; }

/* left-aligned steps: icon flush right */
.hiw-step:not(.hiw-step--right) .hiw-icon { margin-left: auto; }

/* Step label */
.hiw-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #00c9b1;
  margin-bottom: 6px;
}

/* Title */
.hiw-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.35;
}

/* Description */
.hiw-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin: 0 0 14px;
}

/* Bullets */
.hiw-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hiw-bullets li {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hiw-step:not(.hiw-step--right) .hiw-bullets li { justify-content: flex-end; }
.hiw-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #00c9b1;
}
.hiw-step:not(.hiw-step--right) .hiw-bullets li::before { order: 2; }

/* Badge */
.hiw-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.hiw-step--right .hiw-badge { right: auto; left: 16px; }
.hiw-badge--teal   { background: rgba(0,201,177,.15); color: #00c9b1;  border: 1px solid rgba(0,201,177,.3);  }
.hiw-badge--blue   { background: rgba(0,112,243,.15); color: #4d9fff;  border: 1px solid rgba(0,112,243,.3);  }
.hiw-badge--amber  { background: rgba(245,158,11,.15);color: #f59e0b;  border: 1px solid rgba(245,158,11,.3); }
.hiw-badge--purple { background: rgba(139,92,246,.15);color: #a78bfa;  border: 1px solid rgba(139,92,246,.3); }
.hiw-badge--green  { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.3); }

/* Bottom CTA */
.hiw-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hiw-cta-text {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hiw-timeline::before {
    left: 26px;
    transform: none;
  }
  .hiw-step,
  .hiw-step--right {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto;
  }
  .hiw-step .hiw-node,
  .hiw-step--right .hiw-node      { grid-column: 1; grid-row: 1; justify-self: center; }
  .hiw-step .hiw-card,
  .hiw-step--right .hiw-card      { grid-column: 2; grid-row: 1; text-align: left !important; padding: 22px 20px 18px; padding-right: 20px !important; padding-left: 20px !important; }
  .hiw-step .hiw-connector,
  .hiw-step--right .hiw-connector { display: none; }
  .hiw-step:not(.hiw-step--right) .hiw-icon { margin-left: 0; }
  .hiw-step:not(.hiw-step--right) .hiw-bullets li { justify-content: flex-start; }
  .hiw-step:not(.hiw-step--right) .hiw-bullets li::before { order: 0; }
  .hiw-badge,
  .hiw-step--right .hiw-badge { top: 14px; right: 14px; left: auto; }
  .sp-ticker { margin: 16px auto 0; }
}

@media (max-width: 480px) {
  .hiw-card { padding: 18px 16px; }
  .hiw-title { font-size: 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hiw-node-ring  { animation: none; }
  .sp-ticker-dot  { animation: none; }
  .sp-ticker-item { transition: none; }
  .hiw-card:hover { transform: none; }
}


/* ═══════════════════════════════════════════════════════════
   APPLE-LIKE REFINEMENT PASS — v18
   Calmer hierarchy, restrained color, larger whitespace,
   editorial platform panels, quieter motion.
   ═══════════════════════════════════════════════════════════ */
:root {
  --white: #ffffff;
  --off-white: #fbfbfd;
  --gray-50: #f5f5f7;
  --gray-100: #ececf1;
  --gray-200: #d8d8de;
  --gray-300: #b7b7c2;
  --gray-500: #6e6e73;
  --gray-700: #424245;
  --navy: #1d1d1f;
  --navy2: #2d2d31;
  --teal: #0f8f83;
  --teal2: #149c8f;
  --teal-light: rgba(15,143,131,0.08);
  --teal-border: rgba(15,143,131,0.18);
  --blue: #0a84ff;
  --purple: #8f8ff5;
  --green: #34c759;
  --red: #ff453a;
  --yellow: #ff9f0a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.03);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-teal: 0 18px 42px rgba(15, 143, 131, 0.10);
  --radius: 26px;
  --radius-sm: 16px;
  --transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-padding-top: 92px; }
section[id] { scroll-margin-top: 92px; }
body {
  background: var(--white);
  color: var(--navy2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container,
.nav-container { max-width: 1280px; }

#navbar {
  padding: 14px 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(29,29,31,0.08);
  box-shadow: none;
}
.nav-links { gap: 2px; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 9px 12px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(29,29,31,0.05) !important;
  color: var(--navy) !important;
}
.nav-links a::after { display: none; }
.btn-demo,
.btn-primary,
.btn-secondary,
.cs-ty-btn-primary,
.cs-ty-btn-secondary {
  border-radius: 999px !important;
}
.btn-demo {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}
.btn-demo:hover {
  background: #000;
  box-shadow: none;
  transform: translateY(-1px);
}

#hero {
  min-height: 96vh;
  padding: 156px 24px 112px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 56%, #f5f5f7 100%);
}
#hero .section-inner { width: 100%; }
#hero .section-bg-img {
  opacity: 0.045 !important;
  filter: grayscale(0.2) saturate(0.8) contrast(0.92);
}
.hero-bg { opacity: 0.45; }
.hero-orb {
  filter: blur(120px);
  opacity: 0.14;
  animation-duration: 14s;
}
.grid-lines {
  background-image: linear-gradient(rgba(29,29,31,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(29,29,31,0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.42;
}
.hero-content {
  max-width: 980px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-title {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: clamp(48px, 6.8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--navy);
}
.gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--navy);
}
.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--gray-500);
}
.hero-ctas {
  gap: 14px;
  margin-bottom: 44px;
}
.btn-primary,
.btn-secondary {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 650;
}
.btn-primary {
  background: var(--navy);
  box-shadow: none;
}
.btn-primary:hover {
  background: #000;
  box-shadow: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(29,29,31,0.10);
  color: var(--navy);
  box-shadow: none;
}
.btn-secondary:hover {
  background: #fff;
  border-color: rgba(29,29,31,0.18);
  color: var(--navy);
  transform: translateY(-1px);
}
.hero-stats {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 28px;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  row-gap: 14px;
}
.stat-item { padding: 0 20px; }
.stat-num,
.stat-plus,
.stat-label-big {
  color: var(--navy);
}
.stat-num { font-size: 30px; font-weight: 750; }
.stat-plus { font-size: 20px; }
.stat-label,
.stat-label-big + .stat-label { color: var(--gray-500); }
.stat-divider { background: rgba(29,29,31,0.08); }
.hero-scroll { bottom: 26px; }
.scroll-dot {
  width: 8px;
  height: 8px;
  background: rgba(29,29,31,0.35);
  animation-duration: 3.2s;
}

.sp-ticker {
  margin: 28px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(29,29,31,0.08);
  background: rgba(255,255,255,0.78);
  color: var(--gray-500);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(180%);
}
.sp-ticker-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.10);
  animation-duration: 3.2s;
}
.sp-ticker-track { min-height: 20px; transition: width 360ms ease; }
.sp-ticker-item {
  color: var(--gray-500);
  transition: opacity 360ms ease, transform 360ms ease;
}
.sp-ticker-item .sp-icon { opacity: 0.8; }
.sp-ticker-item .sp-loc { color: var(--navy); font-weight: 600; }

.section {
  padding: 136px 0;
}
.section-dark {
  background: var(--gray-50);
}
.section-bg-img {
  opacity: 0.055;
  filter: grayscale(0.12) saturate(0.75) contrast(0.95);
}
.section-tag {
  background: transparent;
  border: 1px solid rgba(29,29,31,0.08);
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 7px 14px;
}
.section-title {
  display: block;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 750;
  margin-bottom: 18px;
  color: var(--navy);
}
.section-title::after,
.section-title.is-revealed::after {
  display: none;
}
.section-subtitle {
  max-width: 760px;
  margin-bottom: 72px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--gray-500);
}

.glass-card,
.overview-card,
.product-card,
.feature-card,
.solution-card,
.pricing-card,
.testimonial-card,
.faq-item,
.cs-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}
.glass-card:hover,
.overview-card:hover,
.product-card:hover,
.feature-card:hover,
.solution-card:hover,
.testimonial-card:hover,
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29,29,31,0.12);
  box-shadow: var(--shadow);
}
.feature-icon,
.ov-icon,
.cs-info-icon {
  background: rgba(29,29,31,0.04);
  border: 1px solid rgba(29,29,31,0.06);
}
.feature-icon svg,
.ov-icon svg { stroke: var(--navy); }
.feature-card p,
.product-card p,
.solution-card p,
.overview-card p,
.testimonial-body,
.faq-answer,
.cs-subtitle,
.cs-info-note {
  color: var(--gray-500);
}
.feature-bullets li::before,
.sol-list li::before,
.list-dot.teal,
.list-dot.red,
.list-dot.blue {
  color: var(--teal);
  background: var(--teal);
}
.product-featured {
  background: rgba(255,255,255,0.96) !important;
  border-color: rgba(29,29,31,0.08) !important;
}
.product-icon.rx,
.product-icon.therapy,
.product-icon.supp {
  background: linear-gradient(180deg, #1d1d1f, #4b4b4f);
}
.product-tag,
.featured-tag {
  color: var(--gray-500);
  background: rgba(29,29,31,0.05);
}
.sol-num {
  color: rgba(29,29,31,0.05);
}

.overview-grid--editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.overview-card {
  padding: 34px;
}
.overview-card--wide {
  grid-column: 1 / -1;
}
.overview-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: end;
}
.overview-eyebrow {
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.overview-card h3 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.overview-card p {
  font-size: 17px;
  line-height: 1.7;
}
.overview-meta {
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: end;
}
.overview-meta li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(29,29,31,0.03);
  color: var(--navy2);
  font-size: 14px;
  line-height: 1.45;
}

#products .product-grid,
#features .features-grid,
#solutions .solutions-grid {
  gap: 28px;
}
#products .product-card,
#features .feature-card,
#solutions .solution-card,
#testimonials .testimonial-card,
#pricing .pricing-card,
#faq .faq-item,
#contact .cs-card {
  backdrop-filter: blur(12px);
}
#features .feature-card,
#solutions .solution-card {
  padding: 34px;
}
#testimonials .section-subtitle,
#pricing .section-subtitle,
#faq .section-subtitle,
#contact .cs-subtitle {
  max-width: 720px;
}

.hiw-section {
  background: var(--off-white);
}
.hiw-section .section-bg-img {
  opacity: 0.03;
}
.hiw-section .section-title,
.hiw-section .section-subtitle { color: inherit; }
.hiw-section .section-subtitle { color: var(--gray-500); }
.hiw-timeline::before {
  width: 2px;
  background: linear-gradient(180deg, rgba(29,29,31,0.06), rgba(15,143,131,0.14), rgba(29,29,31,0.06));
}
.hiw-node {
  background: #ffffff;
  border: 1px solid rgba(29,29,31,0.08);
  box-shadow: var(--shadow-sm);
}
.hiw-step-num { color: var(--navy); }
.hiw-node-ring {
  border-color: rgba(15,143,131,0.12);
  animation-duration: 4.2s;
}
.hiw-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}
.hiw-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hiw-icon,
.hiw-icon--intake,
.hiw-icon--consult,
.hiw-icon--rx,
.hiw-icon--epcs,
.hiw-icon--delivery {
  background: rgba(29,29,31,0.05);
  color: var(--navy);
}
.hiw-label,
.hiw-desc,
.hiw-bullets li,
.hiw-cta-text { color: var(--gray-500); }
.hiw-title { color: var(--navy); letter-spacing: -0.02em; }
.hiw-bullets li::before { background: var(--teal); }
.hiw-badge,
.hiw-badge--teal,
.hiw-badge--blue,
.hiw-badge--amber,
.hiw-badge--purple,
.hiw-badge--green {
  background: rgba(29,29,31,0.05);
  color: var(--gray-500);
  border: 1px solid rgba(29,29,31,0.08);
}
.hiw-cta {
  margin-top: 64px;
  padding: 26px 28px;
  border: 1px solid rgba(29,29,31,0.08);
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
}

.contact-simple {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}
.cs-card {
  overflow: hidden;
}
.cs-info {
  background: rgba(29,29,31,0.02);
}
.cs-title {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 750;
  color: var(--navy);
}
.cs-input,
.cs-textarea {
  border-radius: 18px;
  border-color: rgba(29,29,31,0.10);
  background: rgba(255,255,255,0.95);
}
.cs-input:focus,
.cs-textarea:focus {
  border-color: rgba(15,143,131,0.34);
  box-shadow: 0 0 0 4px rgba(15,143,131,0.08);
}

.cb-wrap {
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.cb-btn {
  border-radius: 999px;
}

@media (max-width: 1080px) {
  .overview-grid--editorial {
    grid-template-columns: 1fr;
  }
  .overview-card--wide {
    grid-column: auto;
  }
  .overview-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding: 132px 20px 84px;
  }
  .section {
    padding: 104px 0;
  }
  .hero-title {
    font-size: clamp(40px, 12vw, 58px);
  }
  .hero-subtitle,
  .section-subtitle,
  .cs-subtitle {
    font-size: 18px;
  }
  .hero-stats {
    padding: 20px 18px;
    border-radius: 24px;
  }
  .stat-item {
    width: calc(50% - 8px);
    padding: 0 12px;
  }
  .stat-divider:nth-of-type(2n) {
    display: none;
  }
  .overview-card,
  .product-card,
  .feature-card,
  .solution-card,
  .pricing-card,
  .testimonial-card,
  .hiw-card,
  .cs-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .scroll-dot,
  .sp-ticker-dot,
  .hiw-node-ring {
    animation: none !important;
  }
}


/* ═══════════════════════════════════ LEGAL PAGES ═══ */
.legal-page {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.06), transparent 26%),
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.06), transparent 24%),
    linear-gradient(180deg, #F6F8FB 0%, #FFFFFF 22%, #FFFFFF 100%);
  color: var(--navy2);
}
.legal-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.legal-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.legal-brand {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.legal-nav a,
.footer-policy-inline a,
.legal-footer-links a,
.policy-content a,
.legal-side-card a,
.legal-summary-card a {
  color: var(--teal);
  text-decoration: none;
}
.legal-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.72);
  transition: background-color .2s ease, color .2s ease;
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  background: rgba(15, 23, 42, 0.06);
  color: var(--navy);
}
.legal-nav a:hover,
.policy-content a:hover,
.legal-footer-links a:hover,
.footer-policy-inline a:hover,
.legal-side-card a:hover,
.legal-summary-card a:hover {
  text-decoration: underline;
}
.legal-hero {
  padding: 92px 0 34px;
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 201, 177, 0.14), transparent 24%),
    linear-gradient(180deg, #F3F8FF 0%, #FFFFFF 100%);
}
.legal-hero-inner {
  max-width: 900px;
}
.legal-kicker {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-hero h1 {
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
  color: var(--navy);
}
.legal-subtitle {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.68);
  margin-bottom: 18px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.94rem;
}
.legal-shell {
  padding: 12px 0 80px;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.legal-sidebar {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 16px;
}
.legal-side-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  padding: 20px 18px;
}
.legal-side-card p,
.legal-side-card li {
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.94rem;
  line-height: 1.65;
}
.legal-side-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.5);
}
.legal-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-side-list li + li {
  margin-top: 10px;
}
.legal-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-contact-list li + li {
  margin-top: 10px;
}
.legal-card {
  max-width: none;
  margin: 0;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.07);
  padding: 44px clamp(22px, 4vw, 52px);
}
.legal-prologue {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.legal-eyebrow {
  margin: 0 0 8px;
  color: rgba(15, 23, 42, 0.48);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legal-prologue-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.legal-prologue-copy {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.75;
}
.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.legal-summary-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,248,251,0.94));
  border: 1px solid rgba(15, 23, 42, 0.07);
}
.legal-summary-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.46);
}
.legal-summary-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.72;
}
.legal-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.035);
  color: rgba(15, 23, 42, 0.66);
  font-size: 0.94rem;
}
.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4 {
  color: var(--navy);
  letter-spacing: -0.025em;
}
.policy-content h1 { font-size: 2rem; margin: 0 0 20px; }
.policy-content h2 {
  margin: 34px 0 14px;
  font-size: clamp(1.4rem, 1.8vw, 1.62rem);
  padding-top: 10px;
}
.policy-content h3 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
}
.policy-content h4 {
  margin: 20px 0 8px;
  font-size: 1rem;
}
.policy-content h2[id],
.policy-content h3[id],
.policy-content h4[id] {
  scroll-margin-top: 118px;
}
.policy-content p,
.policy-content li,
.policy-content td,
.policy-content th {
  color: rgba(15, 23, 42, 0.7);
  font-size: 1rem;
  line-height: 1.78;
}
.policy-content p + p { margin-top: 12px; }
.policy-content ul,
.policy-content ol {
  margin: 12px 0 18px 1.4rem;
}
.policy-content li + li { margin-top: 8px; }
.policy-content strong,
.policy-content th {
  color: var(--navy);
}
.policy-content hr {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: 30px 0;
}
.policy-content blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  background: rgba(0, 168, 150, 0.05);
  border-radius: 14px;
}
.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
}
.legal-table th,
.legal-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  background: #fff;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-table th {
  background: #F7FAFC;
}
.footer-policy-inline {
  margin-top: 14px;
  font-size: 0.94rem;
}
.legal-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248,250,252,0.85);
  padding: 28px 0;
}
.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}
.legal-footer-brand {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.legal-footer-copy {
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.95rem;
}
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
@media (max-width: 1040px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .legal-header-inner {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
  }
  .legal-summary-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .legal-card,
  .legal-side-card {
    border-radius: 20px;
  }
  .legal-card {
    padding: 28px 18px;
  }
  .legal-nav {
    gap: 4px;
  }
  .legal-nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  .legal-meta {
    flex-direction: column;
    gap: 8px;
  }
  .legal-sidebar {
    grid-template-columns: 1fr;
  }
}


/* ======================================================================
   v21 HOMEPAGE REFINEMENT - calmer, more Apple-like presentation
   ====================================================================== */
#navbar {
  padding: 14px 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.nav-container--v21 {
  gap: 20px;
}
.nav-links {
  gap: 2px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.76);
  padding: 8px 12px;
}
.nav-links a::after,
.section-title::after,
.hero-scroll,
.grid-lines,
.hero-orb,
.badge-dot {
  display: none !important;
}
.btn-demo,
.btn-primary,
.btn-outline,
.btn-secondary {
  box-shadow: none !important;
}
.btn-demo,
.btn-primary {
  background: #111827;
}
.btn-demo:hover,
.btn-primary:hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: none;
}
.btn-secondary,
.btn-outline {
  border-color: rgba(15, 23, 42, 0.12);
}
.glass-card,
.product-card,
.feature-card,
.pricing-card,
.hiw-card,
.cs-card {
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05) !important;
}
.glass-card:hover,
.product-card:hover,
.feature-card:hover,
.pricing-card:hover,
.hiw-card:hover,
.cs-card:hover {
  transform: none !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
}
.section {
  padding: 88px 0;
}
.section-title {
  display: block;
  letter-spacing: -0.04em;
}
.section-title--left {
  text-align: left;
}
.section-subtitle--narrow {
  max-width: 720px;
}
.section-header--center {
  text-align: center;
}
.proof-kicker,
.hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.56);
  margin-bottom: 14px;
}
.hero-v21 {
  position: relative;
  min-height: auto;
  padding: 132px 0 84px;
  background: linear-gradient(180deg, #f7f7f8 0%, #ffffff 45%, #ffffff 100%);
}
.hero-backdrop-image {
  opacity: 0.05;
  filter: grayscale(100%);
}
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero-title--v21 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 18px;
  color: #111827;
}
.hero-subtitle--v21 {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(15, 23, 42, 0.68);
  margin-bottom: 28px;
}
.hero-ctas--v21 {
  justify-content: flex-start;
  margin-bottom: 28px;
}
.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-proof-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-proof-item strong {
  display: block;
  font-size: 1rem;
  color: #111827;
  margin-bottom: 4px;
}
.hero-proof-item span {
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}
.hero-visual {
  display: grid;
  gap: 18px;
}
.hero-device {
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.hero-device img {
  display: block;
  width: 100%;
  border-radius: 18px;
}
.hero-note-card {
  max-width: 420px;
  margin-left: auto;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-note-eyebrow {
  color: rgba(15, 23, 42, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-note-title {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 8px;
}
.hero-note-body {
  color: rgba(15, 23, 42, 0.64);
}
.product-proof-section {
  background: #f5f5f7;
}
.product-proof-header,
.proof-grid,
.focus-grid,
.pricing-grid--v21,
.faq-layout--v21 {
  position: relative;
  z-index: 1;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.proof-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.proof-panel--wide {
  grid-column: 1 / -1;
}
.proof-image {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}
.proof-copy {
  padding: 26px 28px 30px;
}
.proof-label {
  color: rgba(15, 23, 42, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.proof-copy h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 12px;
}
.proof-copy p:last-child {
  color: rgba(15, 23, 42, 0.66);
  line-height: 1.7;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.focus-card {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
}
.focus-card h3 {
  font-size: 1.2rem;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.focus-card p {
  color: rgba(15, 23, 42, 0.66);
}
.pricing-v21-section {
  background: #f8fafc;
}
.pricing-grid--v21 .pricing-card {
  padding: 34px;
  border-radius: 26px;
  background: rgba(255,255,255,0.94);
}
.pricing-grid--v21 .pricing-featured {
  transform: none;
}
.pricing-grid--v21 .pricing-tier {
  color: rgba(15, 23, 42, 0.56);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}
.pricing-grid--v21 .pricing-price {
  font-size: 2rem;
  color: #111827;
  margin: 10px 0 12px;
}
.pricing-grid--v21 .pricing-desc,
.pricing-grid--v21 .pricing-features li {
  color: rgba(15, 23, 42, 0.66);
}
.pricing-grid--v21 .check {
  color: rgba(15, 23, 42, 0.4);
}
.faq-v21-section {
  background: #ffffff;
}
.faq-layout--v21 {
  max-width: 860px;
}
.faq-layout--v21 .faq-item {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}
.faq-layout--v21 .faq-question {
  padding: 24px 22px;
}
.faq-layout--v21 .faq-answer p {
  color: rgba(15, 23, 42, 0.66);
}
.hiw-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.hiw-section .section-bg-img {
  opacity: 0.04;
  filter: grayscale(100%);
}
.hiw-card {
  background: rgba(255,255,255,0.94) !important;
}
.hiw-badge,
.hiw-badge--teal,
.hiw-badge--blue,
.hiw-badge--amber,
.hiw-badge--purple,
.hiw-badge--green {
  background: rgba(15, 23, 42, 0.06) !important;
  color: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.hiw-node,
.hiw-node-ring,
.hiw-connector {
  opacity: 0.4;
}
.contact-simple {
  background: #ffffff;
}
.cs-card {
  border-radius: 28px;
}
.cs-info-item,
.cs-input-wrap,
.cs-thankyou {
  border-color: rgba(15, 23, 42, 0.08);
}
#footer.footer-v21 {
  background: #f5f5f7;
  color: var(--navy);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 48px 0 30px;
}
.footer-v21-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}
.footer-links--v21 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.48);
  margin-bottom: 12px;
}
#footer.footer-v21 .footer-col a {
  color: rgba(15, 23, 42, 0.78);
}
#footer.footer-v21 .footer-col a:hover {
  color: var(--navy);
}
.footer-bottom--v21 {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
#footer.footer-v21 .footer-bottom--v21 .footer-disclaimer p,
#footer.footer-v21 .footer-bottom--v21 .footer-legal p,
#footer.footer-v21 .footer-tagline {
  color: rgba(15, 23, 42, 0.68);
}
#footer.footer-v21 .footer-col-title {
  color: rgba(15, 23, 42, 0.56);
}
#footer.footer-v21 .logo-main {
  color: var(--navy);
}
@media (max-width: 980px) {
  .hero-shell,
  .footer-v21-inner,
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .proof-grid,
  .hero-proof-row,
  .footer-links--v21 {
    grid-template-columns: 1fr;
  }
  .hero-note-card {
    margin-left: 0;
  }
}
@media (max-width: 720px) {
  .hero-v21 {
    padding: 118px 0 72px;
  }
  .hero-title--v21 {
    font-size: clamp(36px, 10vw, 54px);
  }
  .section {
    padding: 72px 0;
  }
  .proof-copy,
  .focus-card,
  .pricing-grid--v21 .pricing-card {
    padding: 22px;
  }
}

/* ======================================================================
   v23 MOBILE-ONLY POLISH PASS
   Home + Terms + Privacy + Refund
   ====================================================================== */
@media (max-width: 860px) {
  html {
    scroll-padding-top: 84px;
  }
  section[id] {
    scroll-margin-top: 84px;
  }
  #navbar {
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
  }
  .nav-container--v21 {
    gap: 12px;
    padding-inline: 16px;
  }
  .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .nav-links {
    width: min(340px, calc(100vw - 18px));
    padding: calc(84px + env(safe-area-inset-top)) 0 calc(22px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.98);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.14);
  }
  .nav-links a {
    padding: 17px 24px;
    font-size: 15px;
  }
  .hero-v21 {
    padding: max(104px, calc(88px + env(safe-area-inset-top))) 0 58px;
  }
  .hero-shell {
    gap: 26px;
  }
  .hero-title--v21 {
    max-width: 11ch;
    font-size: clamp(34px, 11vw, 48px);
    line-height: 0.98;
  }
  .hero-subtitle--v21 {
    font-size: 16.5px;
    line-height: 1.62;
    max-width: 34ch;
  }
  .hero-ctas--v21 {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }
  .hero-ctas--v21 a,
  .pricing-grid--v21 .btn-primary,
  .pricing-grid--v21 .btn-outline,
  .cs-submit {
    width: 100%;
    justify-content: center;
  }
  .hero-proof-row {
    gap: 10px;
  }
  .hero-proof-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
  }
  .hero-device img,
  .proof-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .hero-note-card,
  .proof-panel,
  .focus-card,
  .pricing-grid--v21 .pricing-card,
  .faq-layout--v21 .faq-item,
  .cs-card {
    border-radius: 24px;
  }
  .section-header,
  .cs-header {
    margin-bottom: 24px;
  }
  .section-title,
  .cs-title {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.05;
  }
  .section-subtitle,
  .cs-subtitle,
  .faq-layout--v21 .faq-answer p,
  .footer-tagline {
    font-size: 15.5px;
    line-height: 1.65;
  }
  .proof-grid,
  .focus-grid,
  .pricing-grid--v21,
  .faq-layout--v21 {
    gap: 16px;
  }
  .hiw-section .section-header {
    text-align: left;
    margin-bottom: 26px;
  }
  .hiw-step .hiw-card,
  .hiw-step--right .hiw-card {
    padding: 20px 18px 18px;
  }
  .hiw-badge,
  .hiw-step--right .hiw-badge {
    position: static;
    display: inline-flex;
    margin-top: 14px;
  }
  .faq-layout--v21 .faq-question {
    padding: 18px 18px;
    font-size: 16px;
    line-height: 1.45;
  }
  .faq-layout--v21 .faq-answer p {
    padding: 0 18px 18px;
  }
  .contact-simple {
    padding: 64px 0 calc(72px + env(safe-area-inset-bottom));
  }
  .cs-card {
    overflow: hidden;
  }
  .cs-info,
  .cs-form-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .cs-info {
    padding-top: 22px;
    padding-bottom: 18px;
  }
  .cs-form-wrap {
    padding-top: 20px;
    padding-bottom: 22px;
  }
  .cs-ty-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-v21 {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .footer-v21-inner,
  .footer-bottom--v21,
  .footer-links--v21 {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero-v21 {
    padding: max(96px, calc(82px + env(safe-area-inset-top))) 0 52px;
  }
  .hero-title--v21 {
    max-width: 10ch;
    font-size: clamp(32px, 11vw, 42px);
  }
  .hero-subtitle--v21 {
    max-width: none;
  }
  .hero-proof-item strong {
    font-size: 1.02rem;
  }
  .proof-copy,
  .focus-card,
  .pricing-grid--v21 .pricing-card {
    padding: 20px;
  }
  .proof-panel .proof-copy h3,
  .focus-card h3,
  .pricing-grid--v21 .pricing-tier {
    line-height: 1.2;
  }
  .hiw-step,
  .hiw-step--right {
    grid-template-columns: 46px 1fr;
  }
  .hiw-card {
    border-radius: 22px;
  }
  .hiw-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
  .cs-info-value,
  .legal-contact-list a,
  .legal-side-list a,
  .footer-col a,
  .footer-legal p,
  .footer-disclaimer p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .footer-col {
    gap: 10px;
  }
  .legal-header {
    top: 0;
  }
  .legal-header-inner {
    align-items: stretch;
    gap: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 12px;
  }
  .legal-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin-inline: -2px;
  }
  .legal-nav::-webkit-scrollbar {
    display: none;
  }
  .legal-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .legal-header .btn-demo {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .legal-hero {
    padding: max(78px, calc(68px + env(safe-area-inset-top))) 0 20px;
  }
  .legal-hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
  .legal-subtitle {
    font-size: 0.98rem;
    line-height: 1.66;
  }
  .legal-meta span {
    width: 100%;
    justify-content: flex-start;
  }
  .legal-shell {
    padding: 8px 0 calc(56px + env(safe-area-inset-bottom));
  }
  .legal-layout {
    gap: 18px;
  }
  .legal-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    grid-template-columns: none;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .legal-sidebar::-webkit-scrollbar {
    display: none;
  }
  .legal-side-card {
    flex: 0 0 84%;
    min-width: 260px;
    padding: 18px 16px;
  }
  .legal-card {
    padding: 24px 16px;
    border-radius: 24px;
  }
  .legal-prologue {
    margin-bottom: 26px;
    padding-bottom: 22px;
  }
  .legal-prologue-title {
    font-size: 1.4rem;
  }
  .policy-content h2 {
    margin: 28px 0 12px;
    font-size: 1.26rem;
  }
  .policy-content h3 {
    margin: 22px 0 8px;
    font-size: 1rem;
  }
  .policy-content p,
  .policy-content li,
  .policy-content td,
  .policy-content th {
    font-size: 0.96rem;
    line-height: 1.72;
  }
  .policy-content ul,
  .policy-content ol {
    margin-left: 1.1rem;
  }
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .legal-table th,
  .legal-table td {
    min-width: 140px;
    white-space: normal;
  }
  .legal-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .legal-footer-inner {
    align-items: flex-start;
    gap: 12px;
  }
}
