/* ── SOLUTIONS INDEX PAGE ── */

/* == HERO == */
.solutions-page-hero {
  padding: calc(var(--nav-h) + 80px) 0 72px;
  background: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.solutions-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(109,24,221,0.09) 0%, transparent 65%),
    radial-gradient(circle at 85% 70%, rgba(232,201,31,0.07) 0%, transparent 50%);
}
.solutions-page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.solutions-page-hero > .container { position: relative; z-index: 1; }
.solutions-page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.solutions-page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.sol-hero-stat-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid var(--border-lg);
  margin-top: 36px;
}
.sol-hero-stat { text-align: center; }
.sol-hero-stat-val { font-size: 2rem; font-weight: 900; color: var(--purple); letter-spacing: -0.03em; }
.sol-hero-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* == SOLUTION CARDS == */
.solution-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.solution-index-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.solution-index-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.sic-header {
  padding: 36px 28px 28px;
  position: relative;
  overflow: hidden;
}
.sic-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.sic-payers    .sic-header { background: linear-gradient(135deg, #1E1140, #4C1D95); }
.sic-providers .sic-header { background: linear-gradient(135deg, #0C4A6E, #1E3A5F); }
.sic-health    .sic-header { background: linear-gradient(135deg, #064E3B, #065F46); }

.sic-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.sic-logo-icon { font-size: 20px; }
.sic-logo-label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
}
.sic-title {
  font-size: 1.45rem; font-weight: 900; color: #fff;
  margin-bottom: 10px; line-height: 1.25;
  position: relative; z-index: 1; letter-spacing: -0.02em;
}
.sic-sub {
  font-size: 0.875rem; color: rgba(255,255,255,0.62);
  line-height: 1.65; position: relative; z-index: 1;
}

.sic-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }

.sic-metrics {
  display: flex;
  margin-bottom: 22px;
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-lg);
  overflow: hidden;
}
.sic-metric {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 14px 8px; gap: 3px;
}
.sic-metric + .sic-metric { border-left: 1px solid var(--border-lg); }
.sic-metric-num { font-size: 1.2rem; font-weight: 900; color: var(--purple); letter-spacing: -0.02em; }
.sic-metric-lbl { font-size: 10px; color: var(--muted2); text-align: center; line-height: 1.3; }

.sic-highlights {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.sic-highlights li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.855rem; color: var(--muted); line-height: 1.5;
}
.sic-highlights li::before {
  content: '✓'; color: var(--green); font-weight: 700;
  flex-shrink: 0; margin-top: 1px; font-size: 12px;
}

.sic-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.875rem; color: var(--purple);
  padding: 10px 18px; border-radius: var(--r);
  background: var(--purple-xxl); border: 1px solid var(--purple-xl);
  transition: background 0.2s, border-color 0.2s;
  margin-top: auto; width: fit-content;
}
.sic-cta:hover { background: var(--purple-xl); border-color: rgba(124,58,237,0.3); }

/* == PRODUCT-SOLUTION MATRIX == */
.cross-product-section {
  padding: 88px 0;
  background: var(--bg-alt);
  position: relative;
}
.cross-product-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(109,24,221,0.04) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.cross-product-section > .container { position: relative; z-index: 1; }
.cross-section-header { text-align: center; margin-bottom: 40px; }
.cross-section-header h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); margin-bottom: 10px; }
.cross-section-header p { color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

.cross-matrix { overflow-x: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.cross-matrix table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem; background: #fff;
}
.cross-matrix th, .cross-matrix td {
  padding: 14px 18px; text-align: center;
  border-bottom: 1px solid var(--border-lg);
}
.cross-matrix th:first-child, .cross-matrix td:first-child { text-align: left; padding-left: 24px; }
.cross-matrix th:last-child,  .cross-matrix td:last-child  { padding-right: 24px; }
.cross-matrix thead th {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
  background: var(--bg-alt2); border-bottom: 2px solid var(--border);
}
.cross-matrix thead th:first-child { color: var(--text); }
.cross-matrix tbody tr:last-child td { border-bottom: none; }
.cross-matrix tbody tr:hover { background: var(--bg-alt2); }
.cross-matrix .check   { color: var(--green);  font-size: 0.8rem; font-weight: 700; }
.cross-matrix .partial { color: #D97706;        font-size: 0.8rem; font-weight: 600; }
.cross-matrix .dash    { color: var(--muted2); }
.cross-matrix td a {
  color: var(--text); font-weight: 600; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.cross-matrix td a:hover { color: var(--purple); }

/* Flagship rows */
.cross-matrix tr.flagship-row td { background: var(--purple-xxl); }
.cross-matrix tr.flagship-row td:first-child {
  border-left: 3px solid var(--purple);
  padding-left: 21px;
}
.cross-matrix tr.flagship-row td a { color: var(--purple-dk); font-weight: 700; }
.cross-matrix tr.flagship-row td a:hover { color: var(--purple); }

/* Group label rows */
.cross-matrix tr.group-label td {
  background: var(--deep);
  color: rgba(196,165,253,0.9);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 24px;
  text-align: left;
  border-bottom: none;
}

/* Flagship logo pill in table */
.matrix-logo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 5px;
  border-radius: 8px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
}
.matrix-logo-mark {
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
}

/* == FINAL CTA == */
.solutions-final-cta {
  padding: 96px 0; text-align: center;
  background: #fff; position: relative; overflow: hidden;
}
.solutions-final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(109,24,221,0.06) 0%, transparent 70%);
}
.solutions-final-cta > .container { position: relative; z-index: 1; }
.solutions-final-cta h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 14px; }
.solutions-final-cta p  { color: var(--muted); max-width: 500px; margin: 0 auto 32px; line-height: 1.7; }
.solutions-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* == AUDIENCE STRIP (solution sub-pages) == */
.aud-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.aud-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.aud-pill:hover { box-shadow: var(--shadow-md); border-color: rgba(124,58,237,0.28); }
.aud-pill-icon { font-size: 20px; }

/* == CASE STUDY BLOCK (solution sub-pages) == */
.case-block {
  background: linear-gradient(135deg, var(--deep), #2D1B69);
  border-radius: var(--r-xl);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.case-block::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.case-block > * { position: relative; z-index: 1; }
.case-block-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #E8C91F;
  margin-bottom: 16px;
}
.case-block h3 { color: #fff; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3; margin-bottom: 14px; }
.case-block p  { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.7; }
.case-block-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.case-result {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  text-align: center;
}
.case-result-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #E8C91F;
  line-height: 1;
  margin-bottom: 6px;
}
.case-result-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  font-weight: 500;
}

/* == PRODUCTS USED GRID (solution sub-pages) == */
.prod-used-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.prod-used-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.prod-used-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(124,58,237,0.28);
  transform: translateY(-4px);
}
.prod-used-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.prod-used-card h5 { font-size: 15px; font-weight: 700; margin: 0; }
.prod-used-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; margin: 0; }

/* == RESPONSIVE == */
@media (max-width: 900px) {
  .solution-index-grid { grid-template-columns: 1fr; gap: 20px; }
  .sol-hero-stat-row   { gap: 28px; }
  .case-block          { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
  .prod-used-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sic-metrics { flex-direction: column; }
  .sic-metric + .sic-metric { border-left: none; border-top: 1px solid var(--border-lg); }
  .case-block-results  { grid-template-columns: 1fr 1fr; }
}
