/**
 * Card contrast — white cards + readable text site-wide.
 * Loaded last to override conflicting rules.
 */

/* Dark-tint cards → white surface, dark text */
.sector-card,
.module-card,
.workflow-cell,
.case-card,
.pipeline-step,
.resource-card,
.roi-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
}

.sector-card h4,
.module-card h3,
.workflow-cell,
.case-card-body h3,
.pipeline-step,
.resource-card h3,
.resource-card {
  color: #0f172a !important;
}

.sector-card p,
.module-card p,
.workflow-cell span,
.case-card-body p,
.resource-card p {
  color: #64748b !important;
}

.module-card-link {
  color: #4f46e5 !important;
}

/* Glass & solution cards inside dark sections */
.section-dark .glass-card,
.section-dark .solution-card .glass-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

.section-dark .glass-card h3,
.section-dark .glass-card h4,
.section-dark .solution-card .glass-card h4 {
  color: #0f172a !important;
}

.section-dark .glass-card p,
.section-dark .solution-card .glass-card p {
  color: #64748b !important;
}

.section-dark .glass-card .card-icon {
  color: #4f46e5 !important;
  background: rgba(79, 70, 229, 0.1) !important;
}

/* Use cases on dark bands */
.section-dark .use-case-item {
  background: #ffffff !important;
  border-left-color: #4f46e5 !important;
  color: #0f172a !important;
}

.section-dark .use-case-item h4 {
  color: #0f172a !important;
}

.section-dark .use-case-item p {
  color: #64748b !important;
}

/* Testimonials on dark sections */
.section-dark .testimonial-card {
  background: #ffffff !important;
  color: #0f172a !important;
}

.section-dark .testimonial-quote {
  color: #334155 !important;
}

.section-dark .testimonial-name {
  color: #0f172a !important;
}

.section-dark .testimonial-role {
  color: #64748b !important;
}

/* Metric boxes on light pages stay white; on dark sections too */
.metric-box {
  background: #ffffff !important;
  color: #0f172a !important;
}

.metric-box strong {
  color: #4f46e5 !important;
}

.metric-box span {
  color: #64748b !important;
}

/* Compare table on dark sections */
.section-dark .compare-table th {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

.section-dark .compare-table td {
  color: #cbd5e1 !important;
}

.section-dark .compare-table .col-highlight {
  background: rgba(99, 102, 241, 0.35) !important;
  color: #ffffff !important;
}

/* Product page impact list (light section) */
.impact-list-item,
.impact-list li {
  color: #475569 !important;
}

/* Inline styles on dark sections — force readable */
.section-dark [style*="color:var(--muted)"],
.section-dark [style*="color: var(--muted)"] {
  color: #64748b !important;
}

.section-dark h3[style],
.section-dark h4[style] {
  color: #0f172a !important;
}
