/* ===== INDEX PAGE — brief-to-deliverable card ===== */
/* Reuses the cs- tokens and most cs-* blocks from case-study.css.
   Overrides only the cases where the detail page assumed a dark results
   background — the index card sits on the default light surface. */

.cs-index-card-section {
  background: var(--bg);
}

.cs-index-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.cs-index-block {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
}

.cs-index-block:last-child {
  border-bottom: none;
}

.cs-index-block-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-index-block-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.cs-index-block-tag {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mid);
  margin-bottom: 12px;
}

.cs-index-block-body {
  font-size: 17px;
  line-height: 1.7;
  color: #3D3832;
  font-weight: 300;
  max-width: 720px;
}

/* ===== INDEX — outcome metrics on light background =====
   Overrides the dark-bg treatment built into case-study.css .cs-metric.
   Same shape as the detail page block; color tokens flipped for the
   light surface this section lives on. */

.cs-index-card .cs-metrics-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cs-index-card .cs-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}

.cs-index-card .cs-metric-label {
  color: var(--mid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cs-index-card .cs-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cs-index-block {
    padding: 28px 24px;
  }
  .cs-index-block-body {
    font-size: 16px;
  }
  .cs-index-card .cs-metrics-grid {
    grid-template-columns: 1fr;
  }
}
