/* === CASE STUDY PAGE STYLES === */

/* Hero */
.cs-hero {
  padding: 180px 5% 80px;
  position: relative;
  overflow: hidden;
}

.cs-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cs-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cs-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.cs-hero h1 em {
  font-style: normal;
  color: var(--yc);
}

.cs-hero .lead {
  margin-bottom: 40px;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .2s;
}

.cs-back:hover {
  color: var(--yc);
}

/* Meta Row */
.cs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}

.cs-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
}

.cs-meta-icon {
  font-size: 18px;
}

/* Stats Banner */
.cs-stats-section {
  padding: 0 5%;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.cs-stat {
  padding: 36px 24px;
  background: var(--bg1);
  text-align: center;
}

.cs-stat-val {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--yc);
  line-height: 1;
  margin-bottom: 8px;
}

.cs-stat-lbl {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

/* Content Article */
.cs-content {
  padding: 80px 5%;
}

.cs-content-inner {
  max-width: 860px;
  margin: 0 auto;
}

.cs-content p {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 28px;
}

.cs-content p strong {
  color: var(--text);
  font-weight: 600;
}

/* Section headers inside content */
.cs-section {
  margin-top: 72px;
  margin-bottom: 32px;
}

.cs-section:first-child {
  margin-top: 0;
}

.cs-section h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cs-section p {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Callout Card */
.cs-callout-grid {
  margin: 32px 0 40px;
}

.cs-callout-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--yc);
  border-radius: var(--r);
  padding: 36px 40px;
}

.cs-callout-card h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text);
}

.cs-callout-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-callout-card ul li {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  padding-left: 24px;
  position: relative;
}

.cs-callout-card ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

/* Blockquote */
.cs-content blockquote {
  border-left: 3px solid var(--yc);
  padding: 24px 32px;
  margin: 40px 0;
  background: var(--bg1);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 18px;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  font-weight: 500;
}

/* Steps */
.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0 40px;
}

.cs-step {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .3s;
}

.cs-step:hover {
  border-color: var(--border-accent);
}

.cs-step-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--bg4);
  line-height: 1;
  min-width: 48px;
}

.cs-step-content h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.cs-step-content p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Data Table */
.cs-table-wrap {
  overflow-x: auto;
  margin: 32px 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.cs-table thead {
  background: var(--bg2);
}

.cs-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}

.cs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.cs-table tbody tr {
  background: var(--bg1);
  transition: background .2s;
}

.cs-table tbody tr:hover {
  background: var(--bg2);
}

.cs-table tbody tr:last-child td {
  border-bottom: none;
}

/* Results Grid */
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 40px;
}

.cs-result-card {
  padding: 28px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .3s, transform .3s;
}

.cs-result-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.cs-result-val {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--yc);
  margin-bottom: 8px;
}

.cs-result-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* CTA Box */
.cs-cta-box {
  margin-top: 72px;
  padding: 48px;
  background: var(--bg1);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cs-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--yc), transparent);
}

.cs-cta-box h3 {
  font-size: 28px;
  margin-bottom: 24px;
}

.cs-cta-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cs-cta-box ul li {
  font-size: 15px;
  color: var(--text2);
  padding-left: 24px;
  position: relative;
  line-height: 1.7;
}

.cs-cta-box ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--yc);
  font-weight: 700;
}

.cs-cta-box p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Proof Images */
.cs-proof-img {
  margin: 36px 0;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 12px;
}

.cs-proof-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cs-proof-caption {
  display: block;
  padding: 12px 8px 4px;
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
  text-align: center;
}

.cs-proof-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0;
}

/* Mobile */
@media(max-width:900px) {
  .cs-hero {
    padding: 140px 4% 60px;
  }

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

  .cs-results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-step {
    flex-direction: column;
    gap: 12px;
  }

  .cs-callout-card {
    padding: 28px 24px;
  }

  .cs-cta-box {
    padding: 36px 24px;
  }
  
  .cs-proof-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media(max-width:560px) {
  .cs-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-results-grid {
    grid-template-columns: 1fr;
  }

  .cs-meta-row {
    flex-direction: column;
    gap: 12px;
  }

  .cs-content blockquote {
    padding: 20px 24px;
    font-size: 16px;
  }
}

@media(max-width:480px) {
  .cs-stats-grid {
    grid-template-columns: 1fr;
  }
}