/* ============================================================
   RATNA HEALTHPLEX — Differentiators Page Styles
   differentiators.css | v1.0
   ============================================================ */

/* Compact vertical rhythm — design-system.css sets --section-py to
   6rem (96px) globally; this override only affects this page since
   this stylesheet is loaded exclusively by it. */
:root {
  --section-py: var(--space-16);
}

/* .bg-light (design-system.css) resolves to var(--surface-page), which
   is the same near-white neutral-50 as plain .bg-white — too subtle to
   read as an alternating color. Override scoped to this page only. */
.bg-light { background: linear-gradient(120deg, #edf0fc 0%, #eaf7f4 55%, #fdf3ea 100%); }

/* Banner connecting-dots/nodes network effect (see
   /assets/css/network-canvas.css + /assets/js/network-canvas.js).
   .page-banner itself is a shared component used by every inner
   page, so this host-section positioning stays page-scoped here. */
.diff-banner { position: relative; overflow: hidden; }
.diff-banner .container { position: relative; z-index: 1; }


/* Differentiator sections */
.diff-section { position: relative; overflow: hidden; }
.diff-number {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-primary-100);
  line-height: 1;
  margin-bottom: var(--space-2);
  user-select: none;
}

/* Proof list */
.diff-proof-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.dpl-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.dpl-item i {
  font-size: 18px;
  color: var(--color-primary-500);
  flex-shrink: 0;
}

/* Differentiator Visual Card */
.diff-visual-card {
  background: white;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
}
.dvc-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px var(--space-3);
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-200);
  color: var(--color-primary-700);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
}
.dvc-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}
.dvc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.dvc-metric {
  text-align: center;
  padding: var(--space-3);
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
}
.dvcm-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  margin-bottom: 2px;
}
.dvcm-label {
  font-size: 11px;
  color: var(--text-muted);
}
.dvc-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-50);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.dvc-alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Equity visual */
.equity-vis {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.ev-item { display: flex; flex-direction: column; gap: var(--space-2); }
.ev-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.ev-score {
  font-size: 11px;
  font-weight: var(--fw-bold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.ev-score.high     { background: var(--color-primary-50);   color: var(--color-primary-700); }
.ev-score.med      { background: var(--color-accent-50);    color: var(--color-accent-700); }
.ev-score.low      { background: var(--color-warning-50);   color: var(--color-warning-700); }
.ev-score.critical { background: var(--color-danger-50);    color: var(--color-danger-700); }
.ev-track {
  height: 8px;
  background: var(--color-neutral-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.ev-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* Cost compare */
.cost-compare {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.cc-item {
  flex: 1;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1.5px solid;
}
.cc-item.branded {
  background: var(--color-neutral-50);
  border-color: var(--border-default);
}
.cc-item.generic {
  background: var(--color-primary-50);
  border-color: var(--color-primary-200);
}
.cc-label {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.cc-name {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.cc-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.cc-save {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--color-primary-600);
  margin-top: var(--space-1);
}
.cc-arrow {
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
}

/* Consent list */
.consent-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.consent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle);
  background: var(--color-neutral-50);
}
.consent-item strong {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.consent-item span:first-child {
  font-size: 11px;
  color: var(--text-muted);
}
.consent-item.revoked {
  opacity: 0.65;
  background: var(--color-danger-50);
  border-color: #fecaca;
}

/* Telemedicine visual */
.tele-visual {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--color-neutral-50);
  border-radius: var(--radius-xl);
}
.tele-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-default);
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}
.tele-participant i { font-size: 24px; color: var(--color-primary-500); }
.tele-signal {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: var(--fw-semibold);
}
.tele-connection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.tele-conn-line {
  width: 40px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-neutral-300) 0, var(--color-neutral-300) 4px, transparent 4px, transparent 8px);
}

/* Demo form card */
.demo-form-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-3xl);
  padding: var(--space-10);
}
@media (max-width: 576px) {
  .demo-form-card { padding: var(--space-6); }
}
.demo-input {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: white !important;
}
.demo-input::placeholder { color: rgba(255,255,255,0.45) !important; }
.demo-input:focus {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.6) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12) !important;
}

/* Scroll animation */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}
