/* ===========================
   CASE STUDY PAGE
   Uses the same tokens as theme.css
   =========================== */

/* ===========================
   HERO
   =========================== */
.cs-hero {
  background: var(--fg);
  color: #fff;
  padding: 100px var(--pad-x) 96px;
}
.cs-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 28px;
}
.cs-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.cs-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.cs-lede {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* ===========================
   SHARED SECTION
   =========================== */
.cs-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.cs-section-header {
  margin-bottom: 48px;
}
.cs-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.cs-section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
}

/* ===========================
   PROBLEM
   =========================== */
.cs-problem {
  padding: 80px 0;
  background: var(--bg-alt);
}
.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.cs-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.cs-stat-number {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #E53E3E;
  line-height: 1;
  margin-bottom: 12px;
}
.cs-stat-desc {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.6;
}
.cs-body {
  font-size: 16px;
  color: var(--fg-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ===========================
   SOLUTION
   =========================== */
.cs-solution {
  padding: 80px 0;
  background: var(--bg);
}
.cs-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.cs-solution-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.cs-solution-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}
.cs-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.cs-checklist li {
  font-size: 14px;
  color: var(--fg-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.cs-checklist li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.cs-timeline {
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
}
.cs-timeline-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.cs-timeline-text {
  font-size: 15px;
  color: var(--fg);
}

/* ===========================
   RESULTS
   =========================== */
.cs-results {
  background: var(--fg);
  color: #fff;
  padding: 80px 0;
}
.cs-results .cs-section-header { margin-bottom: 56px; }
.cs-section-header--light .cs-section-title { color: #fff; }
.cs-section-label--light { color: var(--accent); }

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
.cs-result-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.cs-result-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}
.cs-result-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  line-height: 1.5;
}
.cs-result-sub {
  font-size: 12px;
  color: #68D391;
  display: block;
}
.cs-quote {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 12px;
  font-style: italic;
}
.cs-quote-attr {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ===========================
   CTA
   =========================== */
.cs-cta {
  background: var(--accent);
  padding: 80px 0;
}
.cs-cta-inner {
  text-align: center;
}
.cs-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}
.cs-cta-body {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 36px;
}
.cs-cta-btn {
  display: inline-block;
  background: var(--fg);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cs-cta-btn:hover { opacity: 0.88; }
.cs-cta-note {
  font-size: 13px;
  color: rgba(10,10,10,0.5);
  margin-top: 16px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .cs-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --pad-x: 24px; }
  .cs-hero { padding: 72px var(--pad-x) 64px; }
  .cs-stats-grid { grid-template-columns: 1fr; }
  .cs-solution-grid { grid-template-columns: 1fr; }
  .cs-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cs-results-grid { grid-template-columns: 1fr; }
}