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

/* Hero */
.cs-hero {
  padding: 140px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.cs-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.cs-cat-tags {
  justify-content: flex-end;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.2s, gap 0.2s;
}

.cs-back:hover { color: var(--fg); gap: 12px; }
.cs-back svg { width: 16px; height: 16px; }

.cs-cat {
  color: var(--fg-muted);
}

.cs-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 32px;
}

.cs-title em {
  color: var(--accent);
  font-style: normal;
  display: block;
}

.cs-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: 48px;
}

.cs-hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-stat {
  flex: 1;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-stat:last-child { border-right: none; }

.stat-val {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat-label {
  color: var(--fg-muted);
  font-size: 0.65rem;
}

/* Visual hero */
.cs-visual {
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 40px;
}

.cs-visual-inner {
  max-width: 700px;
  width: 100%;
}

.mockup-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.phone-lg {
  width: 160px;
  height: 290px;
  background: rgba(255,255,255,0.08);
  border-radius: 28px;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  padding: 16px 12px;
  flex-shrink: 0;
}

.phone-lg.offset { margin-top: 40px; }

.phone-notch {
  width: 50px;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin: 0 auto 16px;
}

.phone-content { display: flex; flex-direction: column; gap: 10px; }

.screen-header {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
}

.screen-amount {
  text-align: center;
  padding: 10px 0;
}

.amount-label {
  font-size: 6px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.amount-val {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.04em;
}

.recipient-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.12);
}

.r-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066FF, #0044CC);
  flex-shrink: 0;
}

.r-info { flex: 1; }
.r-name { font-size: 8px; color: #fff; font-weight: 600; }
.r-handle { font-size: 6px; color: rgba(255,255,255,0.5); }

.r-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
  font-weight: 700;
}

.screen-notes {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 6px 8px;
}
.notes-label { font-size: 6px; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.notes-text { font-size: 8px; color: rgba(255,255,255,0.8); }

.pay-btn {
  background: #0066FF;
  border-radius: 100px;
  padding: 8px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  margin-top: 4px;
}

.screen-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  text-align: center;
}

.success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.success-title { font-size: 13px; font-weight: 700; color: #fff; }
.success-sub { font-size: 7px; color: rgba(255,255,255,0.6); }

.success-card {
  width: 100%;
  height: 60px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}

/* Body content */
.cs-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.cs-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 60px;
}

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

.cs-section-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.cs-section-meta .mono { color: var(--accent); font-size: 0.65rem; }
.cs-section-meta span:last-child { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.cs-section-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.cs-section-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 36px 0 16px;
}

.cs-section-content p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.cs-callout {
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.callout-label {
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}

.cs-callout p {
  margin: 0;
  color: var(--fg);
  font-size: 0.95rem;
}

/* Research */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.research-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.research-num {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-card div:last-child {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* Insights */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.insight-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

.insight-marker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding-top: 3px;
  color: var(--accent);
}

.insight-item strong { color: var(--fg); }

/* Process comparison */
.process-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.comp-col { }

.comp-label {
  color: var(--fg-muted);
  font-size: 0.65rem;
  display: block;
  margin-bottom: 12px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-bad, .step-good {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.step-bad {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

.step-bad.drop-point {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

.step-good {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

/* Outcomes */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.outcome-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.3s;
}

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

.outcome-num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.outcome-label {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.outcome-label .mono { font-size: 0.65rem; display: block; margin-top: 4px; }

/* Next project */
.cs-next {
  border-top: 1px solid var(--border);
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-next .mono { color: var(--fg-muted); }

.cs-next-link {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -0.04em;
  color: var(--fg);
  transition: color 0.3s;
}

.cs-next-link:hover { color: var(--accent); }
.cs-next-link svg { width: 36px; height: 36px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 768px) {
  .cs-hero { padding: 100px 20px 60px; }
  .cs-body { padding: 0 20px; }
  .cs-section { grid-template-columns: 1fr; gap: 24px; }
  .cs-section-meta { flex-direction: row; align-items: center; gap: 12px; }
  .cs-hero-stats { flex-wrap: wrap; }
  .cs-stat { min-width: 45%; }
  .mockup-row { gap: 16px; }
  .phone-lg { width: 130px; height: 240px; }
  .research-grid { grid-template-columns: 1fr; }
  .process-comparison { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .cs-next { padding: 60px 20px; }
  /* Image and slider sections */
  .cs-visual { padding: 20px 16px !important; gap: 8px !important; }
  .cs-hero-img { border-radius: 8px !important; }
  .cs-compare { border-radius: 8px !important; }
  /* Hero nav */
  .cs-hero-meta { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .cs-cat-tags { justify-content: flex-start; display: flex !important; }
}
