/* =====================================================================
   MEDCONNECT — Design System
   B2B SaaS Healthcare · Light theme · Mobile-first
   ===================================================================== */

:root {
  /* Brand */
  --brand-50:  #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-200: #BFDBFE;
  --brand-300: #93C5FD;
  --brand-500: #3B82F6;
  --brand-600: #2563EB;
  --brand-700: #1D4ED8;
  --brand-800: #1E40AF;

  /* Teal accent (tech / AI) */
  --teal-50:  #ECFEFF;
  --teal-100: #CFFAFE;
  --teal-500: #06B6D4;
  --teal-600: #0891B2;
  --teal-700: #0E7490;

  /* Mint success (health / growth) */
  --mint-50:  #ECFDF5;
  --mint-100: #D1FAE5;
  --mint-500: #10B981;
  --mint-600: #059669;

  /* Amber attention */
  --amber-50:  #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-500: #F59E0B;
  --amber-600: #D97706;

  /* Coral problem-state */
  --coral-50: #FEF2F2;
  --coral-500: #EF4444;
  --coral-600: #DC2626;

  /* Neutral */
  --bg:           #FFFFFF;
  --surface:      #F8FAFC;
  --surface-2:    #F1F5F9;
  --border:       #E2E8F0;
  --border-2:     #CBD5E1;
  --text:         #0F172A;
  --text-2:       #334155;
  --text-3:       #64748B;
  --text-4:       #94A3B8;

  /* Gradients */
  --grad-hero:   linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 50%, #F0F9FF 100%);
  --grad-brand:  linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(8,145,178,0.08) 100%);
  --grad-text:   linear-gradient(135deg, #2563EB 0%, #0891B2 100%);

  /* Shadow */
  --shadow-xs:  0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md:  0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:  0 10px 30px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-xl:  0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-brand: 0 8px 24px rgba(37, 99, 235, 0.18);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing scale */
  --container: 1240px;
}

* { box-sizing: border-box; }
html, body {
  /* Previne scroll-ul orizontal accidental cauzat de orice element care depășește viewport-ul.
     Critic pentru mobil — fără asta, pagina se mișcă stânga-dreapta când scrolezi. */
  overflow-x: hidden;
  max-width: 100%;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================================
   TOP NAVIGATION
   ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-text { font-size: 14px; line-height: 1.1; letter-spacing: 0.04em; }
.logo-text strong { display: block; font-weight: 700; font-size: 15px; }
.logo-text small { color: var(--text-3); font-size: 11px; font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a, .nav-links button {
  background: none;
  border: 0;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: all 160ms;
  text-decoration: none;
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--brand-600);
  background: var(--brand-50);
}
.nav-links a.active { color: var(--brand-700); background: var(--brand-50); }
.nav-links .nav-cta-link {
  padding-left: 16px;
  margin-left: 6px;
  border-left: 1px solid var(--border);
}
.nav-right { display: flex; align-items: center; gap: 10px; }

.btn.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  flex-shrink: 0;
}
.btn.mobile-toggle svg { width: 22px; height: 22px; }

/* Language switch RO/EN */
.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 0;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-decoration: none;
  border-radius: var(--radius-full);
  min-width: 36px;
  transition: all 160ms;
  line-height: 1;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
  background: #fff;
  color: var(--brand-700);
  box-shadow: var(--shadow-xs);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
  background: var(--brand-50);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-600);
  padding: 10px 14px;
}
.btn-ghost:hover { background: var(--brand-50); }
.btn svg { width: 16px; height: 16px; }
.btn-lg svg { width: 18px; height: 18px; }

/* =====================================================================
   MOBILE DRAWER
   ===================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
  z-index: 100;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 90vw);
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.mobile-drawer a, .mobile-drawer button.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
}
.mobile-drawer a:hover, .mobile-drawer button.drawer-link:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
.mobile-drawer .drawer-cta { margin-top: 16px; }

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-100);
}
.eyebrow.teal { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-100); }
.eyebrow.mint { background: var(--mint-50); color: var(--mint-600); border-color: var(--mint-100); }
.eyebrow.amber { background: var(--amber-50); color: var(--amber-600); border-color: var(--amber-100); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 0; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; }

.section-title {
  margin: 16px 0 18px;
}
.lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: 80px 0 64px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(8, 145, 178, 0.10) 0%, transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 24px;
}
.hero h1 .lh-tight { display: block; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-mini { display: flex; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(15,23,42,0.08); flex-wrap: wrap; }
.hero-mini-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.hero-mini-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--mint-500);
  margin-top: 1px;
}

/* Mockup visual on right */
.mockup {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.mockup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.mockup-dots span:nth-child(1) { background: #FF6058; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #28CA42; }
.mockup-url {
  margin-left: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  flex: 1;
  text-align: center;
}
.mockup-body { padding: 22px; }

.patient-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--brand-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-100);
}
.patient-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.patient-info .name { font-weight: 600; font-size: 15px; color: var(--text); }
.patient-info .meta { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); margin-top: 2px; }
.patient-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--mint-600);
  background: var(--mint-50);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--mint-100);
}
.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.mockup-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.mockup-tile .tile-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-4);
}
.mockup-tile .tile-value {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0;
  color: var(--text);
  font-family: var(--font-mono);
}
.mockup-tile .tile-delta {
  font-size: 11px;
  color: var(--mint-600);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mockup-tile .tile-delta.neg { color: var(--coral-500); }

.mockup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  font-size: 12.5px;
}
.mockup-row .doc-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mockup-row .doc-icon svg { width: 14px; height: 14px; }
.mockup-row .doc-name { color: var(--text); font-weight: 500; }
.mockup-row .doc-date { color: var(--text-4); font-family: var(--font-mono); font-size: 11px; margin-left: auto; }
.mockup-row .doc-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--mint-50);
  color: var(--mint-600);
  border: 1px solid var(--mint-100);
}

.mockup-ai-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-50), var(--teal-50));
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.mockup-ai-flag svg { width: 18px; height: 18px; color: var(--brand-600); }
.mockup-ai-flag strong { color: var(--brand-700); }

.hero-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-float-1 { top: -16px; left: -24px; color: var(--brand-700); }
.hero-float-2 { bottom: -16px; right: -24px; color: var(--teal-700); }
.hero-float svg { width: 16px; height: 16px; }

/* Trust strip below hero */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-strip-inner {
  padding: 28px 24px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 32px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.trust-pill svg { width: 18px; height: 18px; color: var(--brand-600); flex-shrink: 0; }
.trust-pill strong { color: var(--text); font-weight: 600; }

/* =====================================================================
   TOOLTIPS — modern, accessible, mobile-friendly
   ===================================================================== */
.term {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  border-bottom: 1px dashed var(--brand-300);
  cursor: help;
  color: inherit;
  font-weight: inherit;
}
.term::after {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 9px;
  font-weight: 700;
  margin-left: 3px;
  position: relative;
  top: -2px;
}
.term-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--text);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms, transform 180ms, visibility 0s 180ms;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  cursor: default;
}
.term-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 6px solid transparent;
  border-top-color: var(--text);
}
/* JS-driven shift when the tip would overflow viewport */
.term-tip[style*="--shift"] {
  /* used together with inline --shift custom property for fine-positioning */
}
.term-tip strong {
  display: block;
  color: var(--brand-200);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.term:hover .term-tip,
.term:focus-within .term-tip,
.term.tip-open .term-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(calc(-50% + var(--tip-shift, 0px))) translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.term:hover .term-tip::after,
.term:focus-within .term-tip::after,
.term.tip-open .term-tip::after {
  transform: translateX(calc(-50% - var(--tip-shift, 0px)));
}

/* =====================================================================
   PROBLEM / SOLUTION SIDE-BY-SIDE
   ===================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.split-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.split-card.problem {
  background: linear-gradient(180deg, var(--coral-50), #fff 80%);
  border-color: #FECACA;
}
.split-card.solution {
  background: linear-gradient(180deg, var(--mint-50), #fff 80%);
  border-color: var(--mint-100);
}
.split-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.split-card.problem .split-tag { background: #FEE2E2; color: var(--coral-600); }
.split-card.solution .split-tag { background: var(--mint-100); color: var(--mint-600); }
.split-card h3 { margin: 16px 0 20px; font-size: 1.5rem; }
.split-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.split-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
.split-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.split-card.problem .split-list li::before {
  background-color: #FEE2E2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.5' stroke-linecap='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='18' y1='6' x2='6' y2='18'/></svg>");
}
.split-card.solution .split-list li::before {
  background-color: var(--mint-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* =====================================================================
   FEATURE GRID (cards)
   ===================================================================== */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 200ms;
  position: relative;
}
.feature:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 18px;
}
.feature-icon.teal { background: var(--teal-50); color: var(--teal-600); }
.feature-icon.mint { background: var(--mint-50); color: var(--mint-600); }
.feature-icon.amber { background: var(--amber-50); color: var(--amber-600); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; font-size: 1.25rem; }
.feature p { color: var(--text-3); font-size: 15px; line-height: 1.6; margin: 0; }
.feature ul { list-style: none; padding: 0; margin: 14px 0 0; }
.feature ul li {
  padding-left: 22px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 6px;
}
.feature ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 1.5px;
  background: var(--brand-300);
  border-radius: 2px;
}

/* =====================================================================
   FOUR UNIFIED COMPONENTS (Asistent Digital Integral)
   ===================================================================== */
.unified {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.unified-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  transition: all 220ms;
}
.unified-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.unified-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-4);
  font-weight: 600;
}
.unified-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 18px;
  color: var(--brand-600);
}
.unified-icon svg { width: 26px; height: 26px; }
.unified-card h3 { font-size: 1.0625rem; margin-bottom: 6px; line-height: 1.25; }
.unified-card p { font-size: 14px; color: var(--text-3); line-height: 1.55; margin: 0; }
.unified-replaces {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.unified-replaces svg { width: 12px; height: 12px; color: var(--coral-500); }

/* =====================================================================
   WORKFLOW (3 steps)
   ===================================================================== */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}
.workflow::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 14%;
  right: 14%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--brand-200) 50%, transparent 50%);
  background-size: 12px 2px;
  z-index: 0;
}
.workflow-step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.workflow-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-200);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 10px #fff, var(--shadow-sm);
}
.workflow-step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.workflow-step p { color: var(--text-3); font-size: 14.5px; line-height: 1.6; max-width: 320px; margin: 0 auto; }

/* =====================================================================
   AUDIENCE TABS (Pentru cine)
   ===================================================================== */
.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.audience {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 220ms;
}
.audience:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.audience::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.audience.doctor::before { background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.audience.patient::before { background: linear-gradient(90deg, var(--mint-500), var(--teal-500)); }
.audience.mgmt::before { background: linear-gradient(90deg, var(--teal-500), var(--brand-600)); }
.audience-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.audience.doctor .audience-icon { background: var(--brand-50); color: var(--brand-600); }
.audience.patient .audience-icon { background: var(--mint-50); color: var(--mint-600); }
.audience.mgmt .audience-icon { background: var(--teal-50); color: var(--teal-600); }
.audience-icon svg { width: 28px; height: 28px; }
.audience h3 { font-size: 1.375rem; margin-bottom: 4px; }
.audience .audience-sub { color: var(--text-3); font-size: 14px; margin-bottom: 22px; }
.audience-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.audience-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.audience-list li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--mint-500);
  margin-top: 2px;
}

/* =====================================================================
   AI SECTION — special highlight
   ===================================================================== */
.ai-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(8, 145, 178, 0.25) 0%, transparent 40%);
  pointer-events: none;
}
.ai-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
  pointer-events: none;
}
.ai-section .container { position: relative; z-index: 1; }
.ai-section .eyebrow {
  background: rgba(37, 99, 235, 0.15);
  color: var(--brand-300);
  border-color: rgba(37, 99, 235, 0.3);
}
.ai-section h2 { color: #fff; }
.ai-section .lede { color: #CBD5E1; }
.ai-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: center;
}
.ai-flow-side {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}
.ai-flow-side h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ai-flow-side h4 svg { width: 18px; height: 18px; }
.ai-flow-side.before h4 svg { color: var(--coral-500); }
.ai-flow-side.after h4 svg { color: var(--mint-500); }
.ai-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  color: #CBD5E1;
}
.ai-doc svg { width: 16px; height: 16px; color: #94A3B8; }
.ai-doc.scan { color: #94A3B8; font-style: italic; }
.ai-extracted {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  align-items: center;
}
.ai-extracted .k { color: #CBD5E1; }
.ai-extracted .v { color: #6EE7B7; font-family: var(--font-mono); font-weight: 600; }
.ai-arrow {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2), 0 8px 24px rgba(37, 99, 235, 0.4);
  position: relative;
}
.ai-arrow::before {
  content: 'AI';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-300);
}
.ai-arrow svg { width: 28px; height: 28px; }

/* =====================================================================
   COMPETITORS TABLE
   ===================================================================== */
.compare-wrap {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
.compare-table thead th {
  text-align: left;
  padding: 16px 18px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table th.col-mcs {
  background: var(--brand-600);
  color: #fff;
}
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: var(--surface); }
.compare-table .row-label {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}
.compare-table .col-mcs { background: var(--brand-50); color: var(--text); font-weight: 600; }
.compare-table .check { color: var(--mint-600); font-weight: 700; }
.compare-table .x { color: var(--coral-500); font-weight: 700; }
.compare-table .partial { color: var(--amber-600); }

/* =====================================================================
   STATS row
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-value .unit { font-size: 0.55em; -webkit-text-fill-color: var(--text-3); margin-left: 2px; }
.stat-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* =====================================================================
   PRICING TEASER (audience cards)
   ===================================================================== */
.pricing-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-decoration: none;
  transition: all 220ms;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--text);
}
.pricing-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pricing-card.featured {
  background: linear-gradient(160deg, #fff, var(--brand-50));
  border-color: var(--brand-200);
}
.pricing-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.5rem; margin: 8px 0 8px; }
.pricing-card .price-lede { color: var(--text-3); font-size: 14.5px; margin: 0 0 24px; line-height: 1.55; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.pricing-list li strong { color: var(--text); font-weight: 600; font-family: var(--font-mono); }
.pricing-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
}

/* =====================================================================
   DEMO CARD
   ===================================================================== */
.demo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  box-shadow: var(--shadow-md);
}
.demo-card .demo-patient {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
}
.demo-card .demo-patient .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.demo-card .demo-patient .row:last-child { border-bottom: 0; }
.demo-card .demo-patient .k { color: var(--text-3); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.demo-card .demo-patient .v { color: var(--text); font-weight: 600; font-family: var(--font-mono); }
.pin-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.pin-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.pin-display {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: 0.16em;
  flex: 1;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 160ms;
}
.copy-btn:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-300); }
.copy-btn.copied { background: var(--mint-50); color: var(--mint-600); border-color: var(--mint-100); }
.copy-btn svg { width: 14px; height: 14px; }
.demo-note { color: var(--text-3); font-size: 13.5px; line-height: 1.55; margin: 0 0 22px; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}
.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}
.ci-row .ci-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.ci-row .ci-value { font-size: 16px; font-weight: 500; color: var(--text); }
.ci-row .ci-value a { color: var(--brand-600); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 160ms, box-shadow 160ms;
}
.form-row textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-note { color: var(--text-4); font-size: 13px; text-align: center; margin: 0; }
.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.form-status.ok { display: block; background: var(--mint-50); color: var(--mint-600); border: 1px solid var(--mint-100); }
.form-status.err { display: block; background: var(--coral-50); color: var(--coral-600); border: 1px solid #FECACA; }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text-3); font-size: 14px; line-height: 1.6; margin: 16px 0 0; max-width: 280px; }
.footer-brand .logo { margin-bottom: 0; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand-600); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================================================
   FINAL CTA banner
   ===================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E40AF 60%, #0E7490 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); font-size: 17px; max-width: 600px; margin: 0 auto 28px; line-height: 1.6; }
.cta-banner .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.cta-banner .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* =====================================================================
   MODAL
   ===================================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.96);
  transition: transform 200ms;
}
.modal.open .modal-card { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  color: var(--text-3);
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

/* =====================================================================
   PAGE HERO (sub-page hero — smaller than home)
   ===================================================================== */
.page-hero {
  background: var(--grad-hero);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(8, 145, 178, 0.08) 0%, transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.25rem, 4vw, 3rem); max-width: 760px; }
.page-hero .lede { max-width: 640px; margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.125rem); }
.page-hero .hero-cta { margin-top: 28px; }

/* =====================================================================
   MISC
   ===================================================================== */
hr.subtle { border: 0; border-top: 1px solid var(--border); margin: 64px 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 160ms; }
.link-arrow:hover svg { transform: translateX(2px); }

.kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.scroll-fade.in { opacity: 1; transform: translateY(0); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .unified { grid-template-columns: repeat(2, 1fr); }
  .audiences { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col.legal { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .btn.mobile-toggle { display: inline-flex; }
  .nav-right .btn:not(.mobile-toggle) { display: none; }

  .hero { padding: 56px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: 2; }
  .hero-float { display: none; }
  .hero-mini { gap: 16px; }

  section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
  .workflow::before { display: none; }

  .pricing-teaser { grid-template-columns: 1fr; gap: 16px; }
  .demo-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-info, .contact-form { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .ai-flow { grid-template-columns: 1fr; }
  .ai-arrow { transform: rotate(90deg); margin: 0 auto; }
  .ai-arrow::before { transform: translateX(-50%) rotate(-90deg); }

  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 1.75rem; }

  .modal-card { padding: 24px; }

  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 14px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2rem; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .unified { grid-template-columns: 1fr; }
  .hero-cta .btn, .hero-cta .btn-lg { width: 100%; }
  .nav-inner { padding: 12px 16px; }
  .logo-text { display: none; }
  .term-tip { max-width: calc(100vw - 64px); font-size: 12.5px; }
}

@media (hover: none) and (pointer: coarse) {
  .term-tip { font-size: 13px; }
}

/* Print */
@media print {
  .nav, footer, .mobile-drawer, .cta-banner { display: none; }
  body { background: #fff; }
  section { padding: 32px 0; page-break-inside: avoid; }
}

/* =====================================================================
   OFFER PAGES — plans + calculator
   ===================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 220ms;
}
.plan:hover { box-shadow: var(--shadow-md); }
.plan.featured {
  background: linear-gradient(160deg, #fff, var(--brand-50));
  border-color: var(--brand-300);
  box-shadow: var(--shadow-lg);
}
.plan.coming { opacity: 0.82; }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-brand);
}
.plan-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plan h3 {
  margin: 6px 0 6px;
  font-size: 1.375rem;
}
.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
  line-height: 1;
}
.plan-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--font-sans);
  margin-left: 4px;
}
.plan-sub { color: var(--text-3); font-size: 14.5px; line-height: 1.5; margin: 0 0 22px; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  padding-left: 28px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: var(--mint-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.plan-features li.disabled {
  color: var(--text-4);
  text-decoration: line-through;
}
.plan-features li.disabled::before {
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round'><line x1='6' y1='6' x2='18' y2='18'/><line x1='18' y1='6' x2='6' y2='18'/></svg>");
}
.plan-cta { margin-top: auto; }

/* Tier selector (storage) */
.tier-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0;
}
.tier-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  min-width: 120px;
  cursor: pointer;
  transition: all 200ms;
  text-align: center;
  font-family: inherit;
}
.tier-btn:hover { border-color: var(--brand-300); }
.tier-btn.active {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.tier-size { font-weight: 700; font-size: 18px; color: var(--text); }
.tier-discount { color: var(--mint-600); font-size: 12px; font-weight: 600; margin-top: 2px; }

.storage-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  background: linear-gradient(160deg, #fff, var(--brand-50));
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}
.storage-result .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}
.storage-result .line:last-child { border-bottom: 0; }
.storage-result .line span { color: var(--text-3); }
.storage-result .line strong { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.storage-result .line.savings strong { color: var(--mint-600); }
.storage-result-right { text-align: right; align-self: center; padding-left: 32px; border-left: 1px solid var(--brand-200); }
.total-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.total-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 8px 0 4px;
}
.total-vat { font-size: 12px; color: var(--text-3); }
.storage-note {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.storage-note strong { color: var(--brand-700); }

/* Enterprise calculator */
.calculator {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}
.calc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.calc-toolbar h3 { font-size: 1.125rem; }
.calc-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.calc-grid.params { grid-template-columns: repeat(3, 1fr); }
.calc-device {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.calc-device.light { background: #FEFCE8; border-color: #FEF08A; }
.calc-device-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.calc-device-name { font-weight: 600; font-size: 15px; color: var(--text); }
.calc-price-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.calc-row label, .calc-param label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.stepper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stepper input {
  border: 0;
  background: transparent;
  text-align: center;
  width: 100%;
  padding: 6px 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}
.stepper-btn {
  background: transparent;
  border: 0;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  align-self: stretch;
}
.stepper-btn:hover { background: var(--brand-50); color: var(--brand-700); }
.preset-row {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.preset-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-3);
  cursor: pointer;
}
.preset-btn:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.calc-param {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

/* Deployment-mode toggle (cloud vs on-site) — affects one-time installation fee */
.calc-deployment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.calc-deployment-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  flex: 1 0 auto;
}
.deployment-toggle {
  display: inline-flex;
  background: var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.deploy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}
.deploy-btn small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}
.deploy-btn:hover { color: var(--text); }
.deploy-btn.active {
  background: #fff;
  color: var(--brand-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.calc-cost-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--text-3);
}
.cost-mcs { color: var(--brand-700); font-weight: 600; font-family: var(--font-mono); }
.cost-competitor { color: var(--coral-500); font-weight: 600; font-family: var(--font-mono); text-decoration: line-through; }
.vs { color: var(--text-4); font-size: 11px; }

.summary-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.summary-table th, .summary-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.summary-table thead th {
  background: var(--surface);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.summary-table th.col-mcs { color: var(--brand-700); }
.summary-table th.col-comp { color: var(--coral-500); }
.summary-table .col-mcs { font-family: var(--font-mono); color: var(--brand-700); font-weight: 600; }
.summary-table .col-comp { font-family: var(--font-mono); color: var(--coral-500); }
.summary-table .muted { color: var(--text-4); font-style: italic; font-weight: 400; }
.summary-table .total-row td { background: var(--brand-50); border-top: 2px solid var(--brand-200); }
.summary-table .total-row.big td { font-size: 16px; padding: 18px; }
.summary-table tbody tr:last-child td { border-bottom: 0; }

/* Detailed breakdown — side by side MedConnect vs Competition */
.breakdown {
  margin-top: 32px;
}
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.breakdown-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.breakdown-col.nexus { border-color: var(--brand-200); background: linear-gradient(180deg, var(--brand-50) 0%, #fff 16%); }
.breakdown-col.competition { border-color: #FECACA; background: linear-gradient(180deg, var(--coral-50) 0%, #fff 16%); }
.breakdown-col h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.breakdown-col.nexus h4 { color: var(--brand-700); }
.breakdown-col.competition h4 { color: var(--coral-600); }
.bd-subtitle {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 18px;
}
.bd-section { margin-top: 18px; }
.bd-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.bd-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text-2);
}
.bd-row .bd-name { font-weight: 500; color: var(--text); }
.bd-row .bd-formula { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); text-align: left; }
.bd-row .bd-result { font-family: var(--font-mono); font-weight: 600; color: var(--text); text-align: right; }
.bd-row.empty { display: none; }
.bd-subtotal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0 4px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px;
  font-weight: 600;
}
.bd-subtotal span:first-child { color: var(--text-2); }
.bd-subtotal span:last-child { font-family: var(--font-mono); color: var(--text); text-align: right; }
.bd-empty-section {
  color: var(--text-4);
  font-style: italic;
  font-size: 13px;
  padding: 6px 0;
}
.bd-final {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--border);
}
.bd-final .bd-row {
  grid-template-columns: 1fr auto;
  padding: 6px 0;
}
.bd-final .bd-row.total {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.bd-final .bd-row.total span:last-child { font-family: var(--font-mono); color: var(--text); }
.bd-final .bd-row.muted { color: var(--text-4); font-style: italic; font-size: 13px; }
.bd-final .bd-row.muted span:last-child { font-family: var(--font-mono); }
.bd-final .bd-row.big-total {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.breakdown-col.nexus .bd-final .bd-row.big-total { background: var(--brand-50); color: var(--brand-700); }
.breakdown-col.competition .bd-final .bd-row.big-total { background: #FEE2E2; color: var(--coral-600); }
.bd-final .bd-row.big-total span:last-child {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* Section-level inline notes (italic notes appended at bottom of a section).
   Forced to the same min-height so notes of different lengths in the two
   columns don't break the horizontal alignment of subsequent rows. */
.bd-section > p {
  min-height: 36px;
}

.bd-formula-help {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
  font-family: var(--font-mono);
}
.bd-formula-help strong { color: var(--text-2); font-weight: 600; }

/* VAT info box appended after the big-total */
.bd-vat-info {
  margin-top: 8px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.025);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-md);
  display: grid;
  gap: 6px;
}
.bd-vat-info .vat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
}
.bd-vat-info .vat-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-2);
}
.bd-vat-info .vat-row.total {
  padding-top: 8px;
  border-top: 1px dashed var(--border-2);
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}
.bd-vat-info .vat-row.total span:last-child {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.breakdown-col.nexus .bd-vat-info .vat-row.total span:last-child { color: var(--brand-700); }
.breakdown-col.competition .bd-vat-info .vat-row.total span:last-child { color: var(--coral-600); }

/* VAT explanatory callout */
.vat-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.vat-note-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
}
.vat-note-icon svg { width: 16px; height: 16px; }
.vat-note strong { color: var(--text); font-weight: 600; }

/* Archive advantage callout — patient's old CDs */
.archive-callout {
  margin-top: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--mint-50) 0%, var(--brand-50) 100%);
  border: 1px solid var(--mint-100);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.archive-callout-icon {
  width: 56px; height: 56px;
  background: #fff;
  color: var(--mint-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.archive-callout-icon svg { width: 28px; height: 28px; }
.archive-callout h5 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.archive-callout p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.archive-callout p + p { margin-top: 10px; }
.archive-callout strong { color: var(--text); font-weight: 600; }
.archive-callout .vs {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.archive-callout .vs.nexus { background: var(--mint-100); color: var(--mint-600); }
.archive-callout .vs.comp { background: #FEE2E2; color: var(--coral-600); }
@media (max-width: 600px) {
  .archive-callout { grid-template-columns: 1fr; padding: 20px; }
  .archive-callout-icon { margin-bottom: 4px; }
}

.summary-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.summary-card {
  background: linear-gradient(160deg, var(--brand-600), var(--teal-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.summary-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.summary-card.savings { background: linear-gradient(160deg, var(--mint-600), var(--mint-500)); }
.summary-card .lbl { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; position: relative; }
.summary-card .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin-top: 6px;
  letter-spacing: -0.02em;
  position: relative;
}

@media (max-width: 1080px) {
  .plans { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid.params { grid-template-columns: repeat(2, 1fr); }
  .summary-highlight { grid-template-columns: 1fr; }
  .storage-result { grid-template-columns: 1fr; gap: 16px; }
  .storage-result-right { padding-left: 0; border-left: 0; border-top: 1px solid var(--brand-200); padding-top: 24px; text-align: center; }
}
@media (max-width: 600px) {
  .calc-grid, .calc-grid.params { grid-template-columns: 1fr; }
  .deployment-toggle { width: 100%; flex-direction: column; }
  .deploy-btn { flex: 1; justify-content: center; flex-direction: column; gap: 2px; padding: 10px 8px; }
  .summary-table { font-size: 13px; }
  .summary-table th, .summary-table td { padding: 10px 12px; }
  .tier-btn { min-width: 90px; padding: 10px 14px; }
  .tier-size { font-size: 16px; }
}

/* =====================================================================
   COMPETITOR PROFILES — landscape cards
   ===================================================================== */
.competitor-group { margin-top: 48px; }
.competitor-group h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.competitor-group h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.competitor-group .competitor-group-sub {
  color: var(--text-3);
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 720px;
}
.competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.competitor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 200ms;
}
.competitor-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.comp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.comp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.comp-country {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.comp-what {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}
.comp-edge {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0;
  padding: 10px 12px;
  background: var(--brand-50);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.comp-edge strong { color: var(--brand-700); font-weight: 600; }
.competitor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
  align-self: flex-start;
}
.competitor-tag.eu { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.competitor-tag.ro { background: var(--amber-50); color: var(--amber-600); border-color: var(--amber-100); }

@media (max-width: 1080px) {
  .breakdown-grid { grid-template-columns: 1fr; }
  .competitor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .competitor-grid { grid-template-columns: 1fr; }
  .bd-row { grid-template-columns: 1fr auto; }
  .bd-row .bd-formula { grid-column: 1 / -1; padding-left: 0; font-size: 11.5px; }
}

/* =====================================================================
   GDPR / LEGAL PAGES
   ===================================================================== */
.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.legal-wrap h1 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 8px;
}
.legal-meta {
  color: var(--text-3);
  font-size: 13.5px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-wrap h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
  scroll-margin-top: 80px;
}
.legal-wrap h3 {
  font-size: 1.125rem;
  margin: 28px 0 10px;
}
.legal-wrap p, .legal-wrap li {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 15.5px;
}
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin: 12px 0 20px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { color: var(--brand-600); text-decoration: underline; }
.legal-wrap a:hover { color: var(--brand-700); }
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.legal-toc h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.legal-toc ol { padding-left: 18px; margin: 0; font-size: 14.5px; }
.legal-toc li { margin-bottom: 4px; }
.legal-callout {
  background: var(--brand-50);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text-2);
}
.legal-callout strong { color: var(--brand-700); }
