/* ============================================================
   CASE STUDY SHARED STYLES
   Used by: self-service-betting-terminal-ux.html, responsive-sportsbook-redesign.html, leadership.html,
            case-study-template.html
   ============================================================ */

/* === CASE STUDY HERO === */
.cs-page-hero {
  padding: 160px 0 80px;
  position: relative;
}

.cs-page-hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 5%;
  right: -5%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

.cs-page-brand {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-page-brand::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.cs-page-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

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

.cs-page-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cs-page-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === HERO IMAGE === */
.cs-hero-image {
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 80px;
  /* Render images above the noise overlay for crisp screenshots */
  z-index: 10000;
  isolation: isolate;
}

.cs-hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  /* Prevent sub-pixel rendering artifacts on Retina displays */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cs-hero-image::before {
  content: none;
}

.cs-image-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* === SECTIONS === */
.cs-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.cs-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cs-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* Sidebar */
.cs-sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 100px;
}

.cs-sidebar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Meta info */
.cs-meta-row {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cs-meta-block {}

.cs-meta-key {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cs-meta-val {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Content */
.cs-heading {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.cs-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Challenge cards */
.cs-challenges {
  display: grid;
  gap: 24px;
  margin-top: 12px;
}

.cs-challenge {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.cs-challenge:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.cs-challenge-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
}

.cs-challenge h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.cs-challenge p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Process timeline */
.cs-timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.cs-step {
  position: relative;
  padding-bottom: 40px;
}

.cs-step:last-child { padding-bottom: 0; }

.cs-step-dot {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.cs-step h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cs-step p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Gallery */
.cs-gallery {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.cs-gallery-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cs-gallery-row:last-child { margin-bottom: 0; }

.cs-img {
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Render images above the noise overlay for crisp screenshots */
  z-index: 10000;
  isolation: isolate;
}

.cs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Prevent sub-pixel rendering artifacts on Retina displays */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cs-img::before {
  content: none;
}

.cs-img--half { flex: 1; height: 340px; }
.cs-img--full { width: 100%; height: 400px; }
.cs-img--tall { flex: 1; height: 480px; }

/* Outcomes */
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.cs-stat {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.cs-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.cs-stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.cs-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Next project */
.cs-next {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cs-next-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cs-next-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cs-next-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.cs-next-title a:hover { color: var(--accent); }

.cs-next-brand {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === BETSTATION-SPECIFIC === */

/* Research section */
.cs-research-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cs-pullquote {
  padding: 28px 32px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  margin: 32px 0 48px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cs-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.cs-insight {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color 0.3s, transform 0.3s;
}

.cs-insight:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent);
  transform: translateY(-2px);
}

.cs-insight:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.cs-insight h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.cs-insight-observation {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.cs-insight-takeaway {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Environment factor row */
.cs-env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 24px;
}
.cs-env-cell {
  background: var(--bg-card);
  padding: 28px 24px;
  transition: background 0.3s;
}
.cs-env-cell:hover { background: var(--bg-elevated); }
.cs-env-key {
  font-family: var(--serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cs-env-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.cs-env-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Solution cards (UX surfaces) */
.cs-solutions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-solution {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
}
.cs-solution:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.cs-solution-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cs-solution-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.cs-solution-tag {
  font-family: var(--serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-solution-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
}
.cs-solution-block-label {
  font-family: var(--serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cs-solution-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.cs-solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-solution-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.cs-solution-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cs-solution-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Reflection cards */
.cs-reflections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cs-reflection {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color 0.3s, transform 0.3s;
}
.cs-reflection:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.cs-reflection h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
}
.cs-reflection p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* === TRADING TOOLS-SPECIFIC === */

/* Research insight cards */
.cs-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}

.cs-insight-card {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color 0.3s, transform 0.3s;
}

.cs-insight-card:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent);
  transform: translateY(-2px);
}

.cs-insight-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.cs-insight-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Features grid */
.cs-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.cs-feature {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.cs-feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.cs-feature h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.cs-feature p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* User groups grid (multi-persona row) */
.cs-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 24px;
}
.cs-persona {
  background: var(--bg-card);
  padding: 24px;
  transition: background 0.3s;
}
.cs-persona:hover { background: var(--bg-elevated); }
.cs-persona-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.cs-persona-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Legacy landscape list */
.cs-legacy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.cs-legacy-item {
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  transition: border-color 0.3s, transform 0.3s;
}
.cs-legacy-item:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent);
  transform: translateY(-2px);
}
.cs-legacy-tag {
  font-family: var(--serif);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cs-legacy-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.cs-legacy-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Tool transformation cards */
.cs-transforms {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-transform {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.cs-transform:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.cs-transform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cs-transform-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.cs-transform-tag {
  font-family: var(--serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-transform-flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.cs-transform-side {
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.cs-transform-side.is-after {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.cs-transform-side-label {
  font-family: var(--serif);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cs-transform-side.is-before .cs-transform-side-label { color: var(--text-muted); }
.cs-transform-side.is-after .cs-transform-side-label { color: var(--accent); }
.cs-transform-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-transform-side li {
  position: relative;
  padding-left: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.cs-transform-side li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.cs-transform-arrow {
  align-self: center;
  text-align: center;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}
.cs-transform-impact {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  padding-top: 4px;
}
.cs-transform-impact strong {
  color: var(--accent);
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .cs-page-hero { padding: 120px 0 60px; }
  .cs-hero-image { }
  .cs-section { padding: 60px 0; }
  .cs-grid { grid-template-columns: 1fr; gap: 28px; }
  .cs-sidebar-label { position: static; }
  .cs-meta-row { gap: 24px; }
  .cs-gallery-row { flex-direction: column; }
  .cs-img--half { height: 220px; }
  .cs-img--full { height: 260px; }
  .cs-img--tall { height: 300px; }
  .cs-outcomes { grid-template-columns: 1fr 1fr; }
  .cs-insights-grid { grid-template-columns: 1fr; }
  .cs-solution-body { grid-template-columns: 1fr; gap: 24px; }
  .cs-reflections { grid-template-columns: 1fr; }
  .cs-features-grid { grid-template-columns: 1fr; }
  .cs-insight-grid { grid-template-columns: 1fr; }
  .cs-legacy-list { grid-template-columns: 1fr; }
  .cs-transform-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cs-transform-arrow { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .cs-outcomes { grid-template-columns: 1fr; }
  .cs-meta-row { flex-direction: column; gap: 16px; }
}


/* ============================================================
   MERGED FROM BWIN-SPORTSBOOK.CSS
   Unified styles so all case studies use one stylesheet
   ============================================================ */

/* === NAV PROGRESS BAR === */
.nav-progress {
  position: fixed;
  top: 64px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 999;
  transition: width 0.1s;
}

/* === REVEAL DELAY VARIANTS === */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === SECTION DIVIDER === */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}


/* === STATS ROW (At a Glance / quick metrics) === */
.cs-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.cs-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.cs-stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.cs-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-stat-card:hover::before { transform: scaleX(1); }
.cs-stat-card-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}


/* === DESIGN PRINCIPLES GRID === */
.cs-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
}
.cs-principle-cell {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background 0.3s;
}
.cs-principle-cell:hover { background: var(--bg-elevated); }
.cs-principle-num {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 14px;
}
.cs-principle-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.cs-principle-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* === USABILITY TESTING CARDS === */
.cs-testing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.cs-test-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.cs-test-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.cs-test-number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  position: absolute;
  top: 16px; right: 24px;
  line-height: 1;
}
.cs-test-finding-label {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.cs-test-finding {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}
.cs-test-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.cs-test-action {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cs-test-action strong {
  color: var(--accent);
  font-weight: 600;
}


/* === MIGRATION / CONSTRAINT CARDS === */
.cs-migration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.cs-migration-card {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  transition: border-color 0.3s, transform 0.3s;
}
.cs-migration-card:hover {
  border-color: var(--border-hover);
  border-left-color: var(--accent);
  transform: translateY(-2px);
}
.cs-migration-card h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
}
.cs-migration-observation {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.cs-migration-response {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* === RESULTS GRID (alternative to cs-outcomes for 6-stat layouts) === */
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cs-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.cs-result-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.cs-result-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-result-card:hover::after { transform: scaleX(1); }
.cs-result-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.cs-result-metric {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 500;
}
.cs-result-context {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* === LEARNINGS LIST (numbered reflections — alternative to card grid) === */
.cs-learnings-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-learning-item {
  display: flex;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cs-learning-item:first-child { padding-top: 0; }
.cs-learning-number {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
  width: 40px;
  opacity: 0.6;
}
.cs-learning-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.cs-learning-text strong {
  color: var(--text-primary);
  font-weight: 600;
}


/* === CHALLENGE LIST (bulleted) === */
.cs-challenge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-challenge-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.cs-challenge-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cs-challenge-list strong {
  color: var(--text-primary);
  font-weight: 600;
}


/* === TOKEN / CODE BLOCK === */
.cs-token-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-top: 32px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 2;
  letter-spacing: -0.01em;
  overflow-x: auto;
}
.cs-token-block .tok-accent { color: var(--accent); }

/* === ACCESSIBILITY NOTE === */
.cs-accessibility-note {
  margin-top: 4rem;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.cs-accessibility-note-label {
  font-family: var(--serif);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cs-accessibility-note p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}


/* === MERGED RESPONSIVE OVERRIDES === */
@media (max-width: 900px) {
  .cs-testing-grid { grid-template-columns: 1fr; }
  .cs-results-grid { grid-template-columns: 1fr; }
  .cs-migration-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cs-testing-grid { grid-template-columns: 1fr; }
  .cs-learnings-list .cs-learning-item { gap: 20px; }
  .cs-learning-number { font-size: 1.1rem; width: 28px; }
}

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


/* === TERMINAL DEVICE FRAME === */
.cs-terminal-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px 64px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 0;
  position: relative;
}

.cs-terminal-device {
  position: relative;
  width: 420px;
  max-width: 100%;
}

/* Terminal bezel */
.cs-terminal-bezel {
  background: #1a1a1e;
  border-radius: 12px;
  padding: 16px 16px 20px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}

/* Dot below screen */
.cs-terminal-bezel::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2e;
  border: 1px solid #3a3a3e;
  margin: 14px auto 0;
}

/* Screen area */
.cs-terminal-screen {
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.cs-terminal-screen img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Two terminals side by side */
.cs-terminal-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  padding: 48px 40px 64px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
}

.cs-terminal-pair .cs-terminal-device {
  width: 360px;
}

/* Single terminal, centered and smaller */
.cs-terminal-single {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px 64px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
}

.cs-terminal-single .cs-terminal-device {
  width: 380px;
}

/* Responsive */
@media (max-width: 900px) {
  .cs-terminal-pair {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .cs-terminal-pair .cs-terminal-device {
    width: 340px;
  }
}

@media (max-width: 600px) {
  .cs-terminal-device,
  .cs-terminal-pair .cs-terminal-device,
  .cs-terminal-single .cs-terminal-device {
    width: 280px;
  }
  .cs-terminal-frame,
  .cs-terminal-pair,
  .cs-terminal-single {
    padding: 32px 20px 48px;
  }
}
