/* ═══════════════════════════════════════════════════════════════
   BRAIN STEM AI — Case Study Page Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── PAGE OVERRIDES ─── */

.section { padding: var(--space-2xl) 2.5rem; max-width: 1200px; }
.section-heading { font-size: clamp(2rem, 3.5vw, 3rem); }
.section-description { max-width: 640px; }

/* ─── HERO ─── */

.cs-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--space-3xl) + 2rem) 2.5rem var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.cs-hero-inner { max-width: 1200px; margin: 0 auto; }
.cs-hero-eyebrow { /* base styles in common.css */ }

.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.cs-hero h1 em { font-style: italic; color: var(--cyan-300); }

.cs-hero-sub { font-size: 1.1875rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); max-width: 640px; margin-bottom: var(--space-md); }
.cs-hero-support { font-size: 1rem; font-weight: 300; line-height: 1.7; color: var(--text-dim); max-width: 640px; margin-bottom: var(--space-lg); }
.cs-hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-bottom: var(--space-xl); }

/* ─── PROOF BAR ─── */

.proof-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }
.proof-item { text-align: center; }
.proof-item-text { font-size: 0.875rem; font-weight: 400; color: var(--text-secondary); }

/* ─── TWO COL ─── */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }

/* ─── QUESTION CARDS ─── */

.question-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.question-stack-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }

.question-card {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: border-color 0.3s ease;
}

.question-card:hover { border-color: var(--border); }

/* ─── OPPORTUNITY CARDS ─── */

.opp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: var(--space-md); }
.opp-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 8px; text-align: center; font-size: 0.9375rem; font-weight: 400; color: var(--text-secondary); }

.opp-banner {
  padding: 1.25rem 1.5rem;
  background: rgba(0, 212, 170, 0.04);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--cyan-300);
  text-align: center;
}

/* ─── STEP CARDS ─── */

.steps { display: flex; flex-direction: column; gap: 1.5rem; position: relative; padding-left: 3rem; }
.steps::before { content: ''; position: absolute; left: 0.9375rem; top: 0; bottom: 0; width: 1px; background: var(--border-subtle); }

.step { position: relative; }
.step-number {
  position: absolute;
  left: -3rem; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--cyan-400);
}

.step-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.step-text { font-size: 0.9375rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); max-width: 600px; }

/* ─── INSIGHT CALLOUT ─── */

.insight-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 2.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.insight-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.insight-headline { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; color: var(--text-primary); margin-bottom: var(--space-md); }
.insight-question { font-size: 1.0625rem; font-weight: 300; color: var(--text-dim); margin-bottom: var(--space-sm); }
.insight-answer { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--cyan-300); margin-bottom: var(--space-lg); }

.insight-bullets { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.insight-bullets li {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-dim);
}

/* ─── QUOTE BLOCK ─── */

.quote-block { padding: 2rem 2.5rem; background: var(--surface-raised); border-left: 3px solid var(--cyan-400); border-radius: 0 8px 8px 0; }
.quote-text { font-family: var(--font-display); font-size: 1.375rem; font-style: italic; line-height: 1.4; color: var(--text-primary); }

/* ─── BEFORE/AFTER ─── */

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba-card { padding: 2rem; border-radius: 8px; }
.ba-card--before { background: var(--surface); border: 1px solid var(--border-subtle); }
.ba-card--after { background: rgba(0, 212, 170, 0.04); border: 1px solid rgba(0, 212, 170, 0.15); }

.ba-card-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.ba-card--before .ba-card-label { color: var(--text-dim); }
.ba-card--after .ba-card-label { color: var(--cyan-400); }

.ba-card-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.ba-card-list li { font-size: 0.9375rem; font-weight: 300; line-height: 1.5; padding-left: 1.25rem; position: relative; }
.ba-card--before .ba-card-list li { color: var(--text-dim); }
.ba-card--before .ba-card-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border: 1px solid var(--border); border-radius: 1px; }
.ba-card--after .ba-card-list li { color: var(--text-secondary); }
.ba-card--after .ba-card-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--cyan-500); border-radius: 1px; }

/* ─── TRANSFORM TABLE ─── */

.transform-table { width: 100%; border-collapse: collapse; }
.transform-table td { font-size: 0.9375rem; font-weight: 300; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.transform-table td:first-child { color: var(--text-dim); width: 45%; }
.transform-table .arrow { color: var(--cyan-500); text-align: center; width: 10%; font-size: 1rem; }
.transform-table td:last-child { color: var(--text-secondary); }
.transform-table tr:last-child td { border-bottom: none; }

/* ─── WHY CARDS ─── */

.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card { padding: 2rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 8px; text-align: center; transition: all 0.3s ease; }
.why-card:hover { border-color: var(--border); }
.why-card-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.why-card-text { font-size: 0.875rem; font-weight: 300; color: var(--text-secondary); line-height: 1.6; }

/* ─── CAPABILITY LIST ─── */

.cap-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.cap-list li { font-size: 0.9375rem; font-weight: 300; color: var(--text-secondary); padding-left: 1.75rem; position: relative; line-height: 1.6; }
.cap-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--cyan-500); border-radius: 50%; opacity: 0.6; }

/* ─── CTA MICRO ─── */

.cta-micro { font-size: 0.8125rem; color: var(--text-dim); margin-top: var(--space-md); max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── CASE STUDY FOOTER (simplified) ─── */

.footer-inner { max-width: 1200px; display: flex; justify-content: space-between; align-items: center; }

/* ─── UTILITY CLASSES ─── */

.steps--spaced { margin-top: var(--space-xl); }
.step-number--highlight { background: var(--cyan-400); border-color: var(--cyan-400); color: var(--void); }
.step-text--spaced { margin-bottom: var(--space-md); }
.quote-block--spaced { margin-top: var(--space-lg); }

.feature-map-frame { margin-left: -3rem; }
.feature-map-frame img { /* base styles in common.css */ }

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .two-col, .opp-cards, .ba-grid, .why-cards, .proof-bar { grid-template-columns: 1fr; }
  .proof-bar { gap: 1rem; }
}

@media (max-width: 768px) {
  .cs-hero { padding: calc(var(--space-2xl) + 2rem) 1.25rem var(--space-xl); }
  .insight-section { padding: var(--space-xl) 1.25rem; }
  .cs-hero-actions { flex-direction: column; align-items: flex-start; }
}
