/*
  REVALYTICS — CASE STUDIES
  Page-specific styles. Loaded after moneyball.css.
*/

/* ─── Hero overrides ─────────────────────────────────── */
.hero-card {
  min-height: 0;
}

.hero-inner {
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: clamp(16px, 2vw, 28px) 73px 36px;
}

.hero-label {
  font-family: var(--rev-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rev-blue-300);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 32px;
}

.hero-inner > div:first-child .hero-h1 {
  margin-top: 0;
  margin-bottom: 28px;
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.hero-inner > div:first-child .hero-h1 em {
  color: var(--rev-blue-300);
}

.hero-support {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

/* ─── Glass KPI card (hero right column) ─────────────── */
.hero-kpi-card {
  width: 100%;
  background: rgba(4, 18, 45, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--rev-radius-md);
  padding: 28px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-kpi-card-label {
  font-family: var(--rev-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rev-blue-300);
  margin-bottom: 20px;
}

.hero-kpi-card-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-kpi-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-kpi-card-row .hero-kpi-num {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  min-width: 56px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-kpi-label {
  font-family: var(--rev-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3px;
}

.hero-kpi-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── Live dots ──────────────────────────────────────── */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rev-blue);
  animation: wire-pulse 1.6s infinite;
  flex-shrink: 0;
}

.live-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rev-pos);
  animation: wire-pulse 1.6s infinite;
  flex-shrink: 0;
}

/* ─── Section intro grids ────────────────────────────── */
.sec-intro-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 28px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 60px;
  align-items: start;
}

/* ─── Override shared s-h2 to match page heading scale ── */
.s-h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* ─── Case study sections ────────────────────────────── */
.cs-meta {
  font-family: var(--rev-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  margin: 0 0 28px;
}

.cs-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 48px;
}

.cs-h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--rev-text);
  margin: 0 0 28px;
}

.cs-h2 em {
  font-style: italic;
  color: var(--rev-blue);
}

.cs-h2-sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--rev-text-body);
  margin: 0 0 28px;
}

.cs-quote {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--rev-text);
  margin: 0 0 28px;
  border-left: 3px solid var(--rev-blue);
  padding-left: 20px;
}

.cs-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--rev-text-muted);
}

.cs-body + .cs-body { margin-top: 28px; }
.cs-body strong { color: var(--rev-text); font-weight: 600; }

/* ─── Before / After table ───────────────────────────── */
.ba-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-radius: var(--rev-radius-sm);
  overflow: hidden;
}

.ba-table thead th {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
}

.ba-table thead th:first-child {
  background: rgba(208, 129, 129, 0.08);
  color: var(--rev-neg);
  border-bottom: 1px solid rgba(208, 129, 129, 0.2);
}

.ba-table thead th:last-child {
  background: rgba(92, 151, 103, 0.08);
  color: var(--rev-pos);
  border-bottom: 1px solid rgba(92, 151, 103, 0.2);
  border-left: 1px solid var(--rev-border);
}

.ba-table tbody tr { border-bottom: 1px solid var(--rev-border); }
.ba-table tbody tr:last-child { border-bottom: none; }

.ba-table td {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  vertical-align: top;
}

.ba-table td:first-child {
  color: var(--rev-text-muted);
  background: rgba(208, 129, 129, 0.03);
}

.ba-table td:last-child {
  color: var(--rev-text);
  font-weight: 500;
  background: rgba(92, 151, 103, 0.04);
  border-left: 1px solid var(--rev-border);
}

/* ─── Sidebar stat card ──────────────────────────────── */
.cs-stat-card {
  background: var(--rev-blue-25);
  border: 1px solid var(--rev-border);
  border-radius: var(--rev-radius-md);
  padding: 28px 24px;
  margin-bottom: 16px;
}

.cs-stat-label {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  margin-bottom: 8px;
}

.cs-stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  color: var(--rev-blue);
  letter-spacing: -0.025em;
  line-height: 1;
}

.cs-stat-sub {
  font-size: 13px;
  color: var(--rev-text-muted);
  margin-top: 6px;
}

/* ─── Sidebar list card ──────────────────────────────── */
.cs-list-card {
  background: #fff;
  border: 1px solid var(--rev-border);
  border-radius: var(--rev-radius-md);
  padding: 24px;
}

.cs-list-label {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  margin-bottom: 14px;
}

.cs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.cs-list li {
  font-size: 14px;
  color: var(--rev-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.cs-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rev-neg);
  flex-shrink: 0;
  margin-top: 6px;
}

.cs-list.pos li::before { background: var(--rev-pos); }

/* ─── Recovery breakdown tiles ───────────────────────── */
.cs-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 8px;
}

.cs-breakdown-tile {
  background: var(--rev-blue-25);
  border: 1px solid var(--rev-border);
  border-radius: var(--rev-radius-sm);
  padding: 20px 18px;
}

.cs-breakdown-num {
  font-size: 28px;
  font-weight: 600;
  color: var(--rev-text);
  letter-spacing: -0.02em;
}

.cs-breakdown-label {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  margin-top: 6px;
}

/* ─── Testimonial (light bg) ─────────────────────────── */
.cs-testimonial {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px solid var(--rev-blue-50);
}

.cs-testimonial-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.cs-testimonial-tag span {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
}

.cs-testimonial-quote {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--rev-text);
  margin-bottom: 24px;
}

.cs-testimonial-quote em { font-style: italic; color: var(--rev-blue); }

.cs-attribution {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--rev-navy-900);
  border: 2px solid var(--rev-border);
  overflow: hidden;
}

.cs-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cs-name { font-size: 15px; font-weight: 600; color: var(--rev-text); }

.cs-role {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  margin-top: 2px;
}

/* ─── Testimonial dark (Cisneros) ────────────────────── */
.cs-testimonial-dark {
  background: var(--rev-navy-900);
  border-radius: var(--rev-radius-md);
  padding: 36px 40px;
  margin: 32px 0;
  box-shadow: 6px 6px 0 0 var(--rev-blue);
}

.cs-testimonial-dark .cs-testimonial-tag span { color: rgba(255, 255, 255, 0.35); }
.cs-testimonial-dark .cs-testimonial-quote { color: rgba(255, 255, 255, 0.85); }
.cs-testimonial-dark .cs-testimonial-quote em { color: var(--rev-blue-300); }
.cs-testimonial-dark .cs-name { color: #fff; }
.cs-testimonial-dark .cs-role { color: rgba(255, 255, 255, 0.4); }
.cs-testimonial-dark .cs-avatar { background: var(--rev-blue); border-color: rgba(255, 255, 255, 0.15); }
.cs-testimonial-dark .cs-attribution { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; }

/* ─── KPI tiles (3-up row) ───────────────────────────── */
.cs-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.cs-kpi-tile {
  background: var(--rev-blue-25);
  border: 1px solid var(--rev-border);
  border-radius: var(--rev-radius-sm);
  padding: 20px 18px;
  text-align: center;
}

.cs-kpi-tile-label {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text-muted);
  margin-bottom: 8px;
}

.cs-kpi-tile-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--rev-text);
  letter-spacing: -0.015em;
}

.cs-kpi-tile-sub { font-size: 12px; color: var(--rev-text-muted); margin-top: 2px; }

/* ─── The Shift ──────────────────────────────────────── */
.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.shift-tile {
  border-radius: var(--rev-radius-md);
  padding: 36px 32px;
}

.shift-tile.stopped {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.shift-tile.started {
  background: rgba(0, 86, 235, 0.18);
  border: 1px solid rgba(0, 86, 235, 0.32);
}

.shift-tile-label {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.shift-tile.stopped .shift-tile-label { color: var(--rev-neg); }
.shift-tile.started .shift-tile-label { color: var(--rev-blue-300); }

.shift-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.shift-list li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

.shift-list.started li { color: rgba(255, 255, 255, 0.8); }

.shift-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.shift-tile.stopped .shift-list li::before { background: var(--rev-neg); }
.shift-tile.started .shift-list li::before { background: var(--rev-pos); }

.shift-mantra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 40px;
}

.shift-mantra-item {
  padding-right: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.shift-mantra-item:nth-child(2) { padding-left: 40px; }

.shift-mantra-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 40px;
}

.shift-mantra-text {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.shift-mantra-text em { font-style: italic; color: rgba(255, 255, 255, 0.4); font-weight: 400; }

/* ─── CTA left column ────────────────────────────────── */
.cs-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rev-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}


.cs-cta-h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--rev-text);
  margin: 0 0 20px;
}

.cs-cta-h2 em { font-style: italic; font-weight: 300; color: var(--rev-blue); }

.cs-cta-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--rev-text-muted);
  margin: 0 0 24px;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr !important; padding: 48px 32px !important; gap: 32px !important; }
}

@media (max-width: 1000px) {
  .cs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sec-intro-grid { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .pattern-grid { grid-template-columns: 1fr; gap: 32px; }
  .shift-grid { grid-template-columns: 1fr; gap: 12px; }
  .shift-tile { padding: 24px 20px; }
  .cs-testimonial-dark { padding: 24px 20px; box-shadow: 4px 4px 0 0 var(--rev-blue); }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 908px) {
  .s-wrap { margin: 0 !important; padding: 0 !important; width: 100% !important; }
  .s-light,
  .s-dark { padding: 40px 24px !important; margin: 20px 10px 0 !important; width: auto !important; border-radius: 0 !important; }
}

@media (max-width: 640px) {
  .hero-h1 { text-align: center !important; }

  .hero-label {
    display: block !important;
    text-align: center !important;
  }

  .hero-label .live-dot-green {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
  }

  .hero-support {
    text-align: center !important;
  }
  .cs-breakdown { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cs-breakdown-tile { padding: 14px 12px; }
  .cs-breakdown-num { font-size: 22px; }
  .cs-breakdown-label { font-size: 9px; }
  .shift-mantra { grid-template-columns: repeat(3, 1fr) !important; border-top: 1px solid rgba(255, 255, 255, 0.09) !important; padding-top: 28px !important; margin-top: 32px !important; }
  .shift-mantra-item { border-right: 1px solid rgba(255, 255, 255, 0.09) !important; padding: 0 16px 0 0 !important; }
  .shift-mantra-item:nth-child(2) { padding: 0 16px !important; }
  .shift-mantra-item:last-child { border-right: none !important; padding: 0 0 0 16px !important; }
  .shift-mantra-text { font-size: 14px; }
  .cta-button { padding: 12px 24px; font-size: 15px; }
}

/* ── CTA fine-print — two nowrap groups, no orphan dots ── */
.cta-fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
}

.cta-fine span {
  white-space: nowrap;
}
