/* Shared case study color tokens — original roles, LogiBrisk-aligned */

:root {
  --cs-section-blue: var(--orange-cta);
  --cs-section-blue-light: var(--orange-light);
  --cs-success: #0f6e56;
  --cs-success-light: #e1f5ee;
  --cs-label: #8a9bb0;
  --cs-navy-deep: #05122e;
  --cs-navbar-offset: 72px;
  --cs-accent: var(--orange-cta);
  --cs-accent-mid: var(--orange-cta);
  --cs-accent-light: var(--orange-light);
  --cs-accent-hover: var(--orange-hover);
  --cs-hero-muted: rgba(255, 255, 255, 0.55);
  --cs-hero-subtle: rgba(255, 255, 255, 0.45);
  --cs-hero-tag: rgba(255, 255, 255, 0.75);
  --cs-hero-chip-bg: rgba(255, 255, 255, 0.08);
  --cs-hero-chip-border: rgba(255, 255, 255, 0.15);
}

/* Unified line-art icons across case study sections */
[class^="cs-"] .cs-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--cs-accent-light);
  color: var(--orange-cta);
}

[class^="cs-"] .cs-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[class^="cs-"] .cs-icon--sm {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
}

[class^="cs-"] .cs-icon--sm svg {
  width: 14px;
  height: 14px;
}

[class^="cs-"] .pain-icon,
[class^="cs-"] .pain-badge,
[class^="cs-"] .feat-icon,
[class^="cs-"] .val-icon,
[class^="cs-"] .sol-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--cs-accent-light);
  color: var(--orange-cta);
  font-size: 0;
}

[class^="cs-"] .pain-icon svg,
[class^="cs-"] .pain-badge svg,
[class^="cs-"] .feat-icon svg,
[class^="cs-"] .val-icon svg,
[class^="cs-"] .sol-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[class^="cs-"] .feat-check,
[class^="cs-"] .ol-icon,
[class^="cs-"] .rl-bullet {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--cs-accent-light);
  color: var(--orange-cta);
  font-size: 0;
  margin-top: 1px;
}

[class^="cs-"] .feat-check svg,
[class^="cs-"] .ol-icon svg,
[class^="cs-"] .rl-bullet svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[class^="cs-"] a.btn--primary,
[class^="cs-"] a.btn--primary:hover,
[class^="cs-"] a.btn--outline-light,
[class^="cs-"] a.btn--outline-light:hover {
  color: #fff;
}

[class^="cs-"] a.btn--white,
[class^="cs-"] a.btn--white:hover {
  color: var(--blue-primary);
}

[class^="cs-"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

[class^="cs-"] .cs-product-shot {
  margin: var(--space-10) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

[class^="cs-"] .cs-product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

[class^="cs-"] .cs-product-shot__caption {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Shared testimonial quote block — all case studies */
.cs-quote-section {
  padding: 72px 0;
  text-align: center;
  background: var(--bg-white);
}

.cs-quote-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--cs-accent-light);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  border: 1px solid rgba(225, 109, 16, 0.25);
  position: relative;
}

.cs-quote-mark {
  font-size: 80px;
  font-family: Georgia, serif;
  color: rgba(225, 109, 16, 0.35);
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 32px;
}

.cs-quote-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--orange-cta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cs-quote-location {
  display: block;
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.cs-quote-wrap blockquote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.5;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
  font-style: normal;
}

.cs-quote-wrap blockquote em {
  font-style: normal;
  color: var(--orange-cta);
}

.cs-quote-attr {
  font-size: var(--text-sm);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.cs-quote-attr strong {
  color: var(--text-main);
  font-weight: 600;
}

.cs-quote-company {
  display: block;
  color: var(--orange-cta);
  font-weight: 600;
}

/* Shared section labels — orange vertical bar + uppercase text (all case studies) */
[class^="cs-"] .sec-eyebrow,
[class^="cs-"] .sec-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--orange-cta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

[class^="cs-"] .sec-eyebrow::before,
[class^="cs-"] .sec-tag::before {
  content: '';
  width: 4px;
  height: 14px;
  background: var(--orange-cta);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

[class^="cs-"] .sec-eyebrow .ew,
[class^="cs-"] .sec-eyebrow .ew-line {
  display: none;
}

/* Shared solution/deploy section — light bg + orange accents (hero unchanged) */
[class^="cs-"] .sol-bg,
[class^="cs-"] .solution-bg {
  background: var(--bg-light-alt);
  padding: 72px 0;
}

[class^="cs-"] .sol-bg .sec-eyebrow,
[class^="cs-"] .sol-bg .sec-tag,
[class^="cs-"] .solution-bg .sec-tag {
  color: var(--orange-cta);
}

[class^="cs-"] .sol-bg .sec-eyebrow .ew,
[class^="cs-"] .sol-bg .sec-eyebrow .ew-line,
[class^="cs-"] .sol-bg .sec-eyebrow::before,
[class^="cs-"] .sol-bg .sec-tag::before,
[class^="cs-"] .solution-bg .sec-tag::before {
  background: var(--orange-cta);
}

[class^="cs-"] .sol-bg .sec-title,
[class^="cs-"] .solution-bg .sec-title {
  color: var(--blue-primary);
}

[class^="cs-"] .sol-bg .sec-body,
[class^="cs-"] .solution-bg .sec-body {
  color: var(--text-muted);
}

[class^="cs-"] .sol-bg .sol-card,
[class^="cs-"] .solution-bg .sol-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

[class^="cs-"] .sol-bg .sol-card:hover,
[class^="cs-"] .solution-bg .sol-card:hover {
  border-color: var(--orange-cta);
}

[class^="cs-"] .sol-bg .sol-title,
[class^="cs-"] .solution-bg .sol-title {
  color: var(--blue-primary);
}

[class^="cs-"] .sol-bg .sol-body,
[class^="cs-"] .solution-bg .sol-body {
  color: var(--text-muted);
}

[class^="cs-"] .sol-bg .sol-tag,
[class^="cs-"] .sol-bg .sol-num,
[class^="cs-"] .solution-bg .sol-icon {
  color: var(--orange-cta);
}

[class^="cs-"] .sol-bg .sol-num {
  background: var(--cs-accent-light);
  border-radius: var(--radius-md);
}

[class^="cs-"] .solution-bg .sol-icon,
[class^="cs-"] .sol-bg .sol-icon {
  background: var(--cs-accent-light);
}

[class^="cs-"] .sol-bg .int-section,
[class^="cs-"] .sol-bg .int-wrap,
[class^="cs-"] .sol-bg .int-box,
[class^="cs-"] .solution-bg .int-section {
  margin-top: 48px;
}

[class^="cs-"] .sol-bg .int-heading,
[class^="cs-"] .solution-bg .int-heading {
  color: var(--blue-primary);
}

[class^="cs-"] .sol-bg .int-label,
[class^="cs-"] .solution-bg .int-intro {
  color: var(--text-muted);
}

[class^="cs-"] .sol-bg .int-chip,
[class^="cs-"] .sol-bg .ic,
[class^="cs-"] .solution-bg .int-chip {
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-main);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

[class^="cs-"] .sol-bg .int-chip:hover,
[class^="cs-"] .sol-bg .ic:hover,
[class^="cs-"] .solution-bg .int-chip:hover {
  background: var(--cs-accent-light);
  border-color: rgba(225, 109, 16, 0.35);
  color: var(--orange-cta);
}

[class^="cs-"] .sol-bg .int-dot,
[class^="cs-"] .sol-bg .ic-dot,
[class^="cs-"] .solution-bg .int-dot {
  background: var(--orange-cta);
}

/* Shared case study hero — Ekta-style navy top + metrics bar (all pages) */
[class^="cs-"] .trust-bar {
  background: #05122e;
  padding: 10px 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

[class^="cs-"] .trust-bar::-webkit-scrollbar {
  display: none;
}

[class^="cs-"] .trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  margin: 0 auto;
}

[class^="cs-"] .tb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cs-hero-tag);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

[class^="cs-"] .tb-icon {
  display: inline-flex;
  color: var(--orange-cta);
}

[class^="cs-"] .tb-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[class^="cs-"] .tb-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

[class^="cs-"] .cert-bar {
  background: #05122e;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

[class^="cs-"] .cert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

[class^="cs-"] .cert-item--contact {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

[class^="cs-"] .cert-badge {
  background: var(--orange-cta);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

[class^="cs-"] .cert-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

[class^="cs-"] .tagline-bar {
  background: #05122e;
  padding: 11px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

[class^="cs-"] .tagline-bar::-webkit-scrollbar {
  display: none;
}

[class^="cs-"] .tagline-bar span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

[class^="cs-"] .tagline-bar .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange-cta);
  flex-shrink: 0;
}

[class^="cs-"] .values-bar {
  background: #05122e;
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}

[class^="cs-"] .values-track {
  display: inline-flex;
  gap: 0;
  animation: cs-values-marquee 28s linear infinite;
}

@keyframes cs-values-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[class^="cs-"] .v-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

[class^="cs-"] .v-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange-cta);
  flex-shrink: 0;
}

[class^="cs-"] .hc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 12px;
}

[class^="cs-"] .hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
  position: relative;
  overflow: hidden;
}

[class^="cs-"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

[class^="cs-"] .hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 109, 16, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[class^="cs-"] .hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 68px 40px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

[class^="cs-"] .hero-left {
  padding-bottom: 64px;
}

[class^="cs-"] .hero-eyebrow,
[class^="cs-"] .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

[class^="cs-"] .hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

[class^="cs-"] .hero-stamp-badge {
  background: var(--orange-cta);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[class^="cs-"] .hero-stamp-text {
  font-size: var(--text-xs);
  color: var(--cs-hero-subtle);
  font-weight: 600;
  letter-spacing: 0.04em;
}

[class^="cs-"] .hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 14px;
  max-width: none;
}

[class^="cs-"] .hero h1 em {
  font-style: normal;
}

[class^="cs-"] .hero h1 mark {
  background: none;
}

[class^="cs-"] .hero h1 span,
[class^="cs-"] .hero h1 em,
[class^="cs-"] .hero h1 mark {
  color: var(--orange-cta);
  background: none;
}

[class^="cs-"] .hero-sub,
[class^="cs-"] .hero-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--cs-hero-muted);
  font-style: italic;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

[class^="cs-"] .hero-sub::before,
[class^="cs-"] .hero-tagline::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--orange-cta);
  flex-shrink: 0;
}

[class^="cs-"] .hero-left .hero-desc {
  font-size: var(--text-sm);
  color: var(--cs-hero-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 520px;
}

[class^="cs-"] .hero-left .hero-desc strong {
  color: #fff;
  font-weight: 600;
}

[class^="cs-"] .hero-left .hero-note {
  font-size: var(--text-sm);
  color: var(--cs-hero-subtle);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 20px;
}

[class^="cs-"] .hero-left .hc-label {
  color: var(--cs-hero-subtle);
  margin-top: 0;
  margin-bottom: 10px;
}

[class^="cs-"] .hero-left .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

[class^="cs-"] .hero-left .htag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--cs-hero-chip-bg);
  border: 1px solid var(--cs-hero-chip-border);
  color: var(--cs-hero-tag);
}

[class^="cs-"] .hero-left .hero-values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

[class^="cs-"] .hero-left .hv-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--orange-cta);
}

[class^="cs-"] .hero-left .hv-icon {
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 1px;
}

[class^="cs-"] .hero-left .hv-text {
  font-size: var(--text-sm);
  color: var(--cs-hero-muted);
  line-height: 1.55;
}

[class^="cs-"] .hero-left .hv-text strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2px;
}

[class^="cs-"] .hero-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 64px;
}

[class^="cs-"] .stat-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

[class^="cs-"] .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[class^="cs-"] .stat-row:last-child {
  border-bottom: none;
}

[class^="cs-"] .stat-cell {
  padding: 20px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

[class^="cs-"] .stat-cell:last-child {
  border-right: none;
}

[class^="cs-"] .stat-val {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--orange-cta);
  line-height: 1;
}

[class^="cs-"] .stat-label {
  font-size: var(--text-xs);
  color: var(--cs-hero-muted);
  margin-top: 5px;
  line-height: 1.4;
}

[class^="cs-"] .stat-sublabel {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

[class^="cs-"] .stat-cell.full {
  grid-column: 1 / -1;
  border-right: none;
}

[class^="cs-"] .stat-cell.accent {
  background: rgba(225, 109, 16, 0.12);
}

@media (max-width: 920px) {
  [class^="cs-"] .hero-inner {
    padding: 48px 24px 0;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  [class^="cs-"] .hero-left,
  [class^="cs-"] .hero-right {
    padding-bottom: 0;
  }

  [class^="cs-"] .hero-right {
    padding-bottom: 48px;
  }

  [class^="cs-"] .hero h1 {
    font-size: 34px;
  }

  [class^="cs-"] .trust-bar {
    padding: 16px 24px;
  }

  [class^="cs-"] .cert-bar,
  [class^="cs-"] .tagline-bar {
    padding-left: 24px;
    padding-right: 24px;
  }

  [class^="cs-"] .trust-bar-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  [class^="cs-"] .stat-row {
    grid-template-columns: 1fr;
  }

  [class^="cs-"] .stat-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  [class^="cs-"] .stat-cell:last-child {
    border-bottom: none;
  }
}

/* Shared challenge stat sidebar — light bg + orange accents */
[class^="cs-"] .sc.dark,
[class^="cs-"] .st-card.dark,
[class^="cs-"] .sc-card.dark,
[class^="cs-"] .ss-card.dk,
[class^="cs-"] .context-box {
  background: var(--cs-accent-light);
  border: 1px solid rgba(225, 109, 16, 0.25);
}

[class^="cs-"] .sc.dark::before,
[class^="cs-"] .sc.dark::after,
[class^="cs-"] .st-card.dark::before,
[class^="cs-"] .sc-card.dark::before {
  background: var(--orange-cta);
}

[class^="cs-"] .sc.dark .sc-val,
[class^="cs-"] .st-card.dark .st-val,
[class^="cs-"] .sc-card.dark .sc-val,
[class^="cs-"] .ss-card.dk .ss-val,
[class^="cs-"] .context-box .cb-val {
  color: var(--orange-cta);
}

[class^="cs-"] .sc.dark .sc-label,
[class^="cs-"] .st-card.dark .st-label,
[class^="cs-"] .sc-card.dark .sc-label,
[class^="cs-"] .ss-card.dk .ss-label,
[class^="cs-"] .context-box .cb-desc,
[class^="cs-"] .context-box .cb-note-text {
  color: var(--text-muted);
}

[class^="cs-"] .sc-note,
[class^="cs-"] .st-note,
[class^="cs-"] .ss-note {
  color: var(--text-muted);
  border-top-color: var(--border);
}

[class^="cs-"] .context-box .cb-stat {
  border-bottom-color: var(--border);
}

[class^="cs-"] .context-box .cb-stat.cb-stat--note {
  border-top-color: var(--border);
}

[class^="cs-"] .context-box .cb-title {
  color: var(--orange-cta);
}

/* Shared results section — light bg + orange accents (hero unchanged) */
[class^="cs-"] .results-bg {
  background: var(--bg-light-alt);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

[class^="cs-"] .results-bg .sec-eyebrow,
[class^="cs-"] .results-bg .sec-tag {
  color: var(--orange-cta);
}

[class^="cs-"] .results-bg .sec-eyebrow .ew,
[class^="cs-"] .results-bg .sec-eyebrow .ew-line,
[class^="cs-"] .results-bg .sec-eyebrow::before,
[class^="cs-"] .results-bg .sec-tag::before {
  background: var(--orange-cta);
}

[class^="cs-"] .results-bg .sec-title {
  color: var(--blue-primary);
}

[class^="cs-"] .results-bg .sec-body {
  color: var(--text-muted);
}

/* Shared CTA banner — site theme orange (matches .cta-banner); pair with .btn--white */
[class^="cs-"] .cta-section {
  background: linear-gradient(135deg, var(--orange-cta) 0%, var(--orange-hover) 100%);
  padding: 64px 40px;
  text-align: center;
}

[class^="cs-"] .cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

[class^="cs-"] .cta-body {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

[class^="cs-"] .cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

[class^="cs-"] .btn-p,
[class^="cs-"] .btn-cta-primary {
  background: var(--bg-white);
  color: var(--blue-primary);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--bg-white);
  font-family: inherit;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

[class^="cs-"] .btn-p:hover,
[class^="cs-"] .btn-cta-primary:hover {
  background: var(--bg-light-alt);
  box-shadow: var(--shadow-lg);
}

[class^="cs-"] .btn-g,
[class^="cs-"] .btn-cta-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

[class^="cs-"] .btn-g:hover,
[class^="cs-"] .btn-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

[class^="cs-"] .cta-btns .btn {
  min-width: 200px;
}

main[class^="cs-"] :is(.svc-icon, .entity-icon, .ind-icon, .pain-icon-wrap, .ol-bullet, .val-emoji) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-cta);
}

main[class^="cs-"] :is(.svc-icon, .entity-icon, .ind-icon, .pain-icon-wrap, .val-emoji) svg {
  width: 20px;
  height: 20px;
}

main[class^="cs-"] .svc-icon {
  display: flex;
}

main[class^="cs-"] .ol-bullet svg {
  width: 14px;
  height: 14px;
}

main[class^="cs-"] .pt-key,
main[class^="cs-"] .ind-label {
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--text-sm);
}

[class^="cs-"] .hero-actions .btn,
[class^="cs-"] .cta-btns .btn {
  border-radius: var(--radius-full);
  padding: 14px 32px;
}

@media (max-width: 768px) {
  [class^="cs-"] .cta-section {
    padding: 48px 24px;
  }

  [class^="cs-"] .cta-body {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .cs-quote-section {
    padding: 48px 0;
  }

  .cs-quote-wrap {
    padding: 36px 24px;
  }

  .cs-quote-mark {
    font-size: 56px;
    left: 20px;
    top: 12px;
  }

  .cs-quote-wrap blockquote {
    font-size: 18px;
  }
}

main[class^="cs-"] .tagline-bar span,
main[class^="cs-"] .v-item {
  font-size: var(--text-sm);
  letter-spacing: normal;
  text-transform: none;
}

main[class^="cs-"] .pt-row {
  grid-template-columns: 160px minmax(0, 1fr);
}

main[class^="cs-"] .pt-key,
main[class^="cs-"] .pt-val {
  text-align: left;
  justify-content: flex-start;
}

main[class^="cs-"] .int-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-5);
}

main[class^="cs-"] .int-group__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--blue-primary);
  margin: 0;
}

main[class^="cs-"] .int-group .int-row {
  margin-top: var(--space-3);
}

main.cs-1call .profile-table {
  width: 100%;
}

main.cs-1call .pain-item {
  font-size: var(--text-base);
  padding: var(--space-5) 0;
}

main.cs-1call .sol-card {
  padding: var(--space-5);
}

main.cs-1call .sol-num {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: normal;
}

main.cs-1call .sol-title {
  font-size: var(--text-lg);
}

main.cs-1call .sol-body {
  font-size: var(--text-sm);
}

main.cs-ssg .c-item {
  font-size: var(--text-sm);
  color: var(--blue-primary);
  letter-spacing: normal;
}

main.cs-ssg .m-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  main[class^="cs-"] .pt-row,
  main[class^="cs-"] .int-groups {
    grid-template-columns: 1fr;
  }
}
/* Case study download pop-up (appended to body, outside main) */
.csd-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(6, 24, 61, 0.6);
}

.csd-overlay[hidden] {
  display: none;
}

.csd-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  width: min(880px, 100%);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.csd-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  background: none;
  border: 0;
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--text-muted, #64748b);
  cursor: pointer;
}

.csd-aside {
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(160deg, var(--blue-primary), var(--blue-secondary));
  color: #fff;
}

.csd-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--orange-cta);
  font-size: var(--text-xs);
  font-weight: 700;
}

.csd-aside__title {
  margin: var(--space-4) 0 var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.csd-aside__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--cs-hero-tag);
}

.csd-aside__list li {
  position: relative;
  padding-left: var(--space-6);
}

.csd-aside__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange-cta);
}

.csd-main {
  padding: var(--space-8);
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.csd-title {
  margin: 0 var(--space-6) var(--space-2) 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--blue-primary);
}

.csd-title:focus {
  outline: none;
}

.csd-intro {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary, #5a6370);
}

.csd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.csd-field {
  position: relative;
  margin-bottom: var(--space-3);
}

.csd-field label {
  display: block;
  margin-bottom: 2px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-primary);
}

.csd-field label span {
  color: var(--orange-cta);
}

.csd-field input,
.csd-field select {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: var(--text-sm);
  border: 1px solid #d5dbe5;
  border-radius: var(--radius-md);
  background: #fff;
}

.csd-field input:focus,
.csd-field select:focus {
  outline: 2px solid var(--orange-cta);
  outline-offset: 1px;
  border-color: var(--orange-cta);
}

.csd-field [aria-invalid="true"] {
  border-color: #d93025;
}

/* Show validation text only when present — no reserved empty gap */
.csd-error,
.csd-form-error {
  display: none;
  margin: 3px 0 0;
  font-size: var(--text-xs);
  line-height: 1.25;
  color: #d93025;
}

.csd-error:not(:empty),
.csd-form-error:not(:empty) {
  display: block;
}

.csd-success {
  display: block;
  padding: var(--space-5, 20px);
  background-color: var(--success-light, #d1fae5);
  color: #065f46;
  border-radius: var(--radius-md, 8px);
  text-align: center;
  font-weight: 500;
  font-size: var(--text-base, 16px);
  line-height: 1.5;
}

.csd-success:focus {
  outline: none;
}

.csd-success--error {
  background-color: var(--error-light, #fee2e2);
  color: #991b1b;
}

.csd-view--done {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.csd-view--done[hidden] {
  display: none !important;
}

.csd-submit,
.csd-download {
  width: 100%;
  margin-top: var(--space-2);
  border-radius: var(--radius-full);
}

.csd-note {
  margin: var(--space-2) 0 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-secondary, #5a6370);
}

[class^="cs-"] button.btn--outline-light {
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.csd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-right: var(--space-6);
}

.csd-head .csd-title {
  margin-right: 0;
}

.csd-head__icon {
  flex: none;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--blue-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csd-head__dot {
  fill: var(--blue-primary);
}

.csd-head__arrow {
  stroke: #fff;
}

.csd-field input::placeholder {
  color: #9aa3b2;
}

.csd-field select:invalid {
  color: #9aa3b2;
}

.csd-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.csd-submit__ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csd-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.csd-note svg,
.csd-insight svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csd-note svg {
  width: 14px;
  height: 14px;
}

.csd-insight {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: #eef3fb;
  font-size: var(--text-sm);
  color: var(--blue-primary);
}

.csd-insight svg {
  width: 28px;
  height: 28px;
  color: var(--blue-secondary);
}

/* Rich showcase variant (page supplies <template id="csd-showcase">) */
.csd-dialog--rich {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  width: min(1080px, 100%);
  background: linear-gradient(180deg, #eaf2fc 0%, #f7faff 55%, #fff 100%);
}

.csd-dialog--rich .csd-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-self: start;
  height: auto;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: var(--space-6) var(--space-6) var(--space-5);
  background: none;
  color: var(--blue-primary);
}

.csd-dialog--rich .csd-main {
  align-self: start;
  margin: var(--space-5) var(--space-5) var(--space-5) 0;
  padding: var(--space-5);
  max-height: calc(100vh - 32px - (var(--space-5) * 2));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(6, 24, 61, 0.1);
}

.csd-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.csd-brand img {
  height: 52px;
  width: auto;
}

.csd-brand span {
  max-width: 170px;
  padding-left: var(--space-4);
  border-left: 1px solid #c9d3e3;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.35;
}

.csd-kick {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary, #5a6370);
}

.csd-dialog--rich .csd-badge {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.csd-dialog--rich .csd-aside__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-primary);
}

.csd-aside__title em {
  font-style: normal;
  color: var(--orange-cta);
}

.csd-aside__lead {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary, #5a6370);
}

.csd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.csd-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--text-secondary, #5a6370);
}

.csd-stats b {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1.1;
  color: var(--blue-primary);
}

.csd-stats__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  color: #fff;
}

.csd-stats__ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.csd-stats__ic--blue { background: #1f6fd6; }
.csd-stats__ic--green { background: #16a34a; }
.csd-stats__ic--purple { background: #7c3aed; }
.csd-stats__ic--teal { background: #0891b2; }

.csd-scene {
  position: relative;
  margin-top: var(--space-2);
  flex: 0 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7.5;
}

.csd-scene__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.csd-laptop {
  position: absolute;
  right: 5%;
  bottom: 52px;
  width: 44%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.csd-laptop__screen {
  padding: 4% 4% 3%;
  background: #111827;
  border-radius: 8px 8px 0 0;
}

.csd-laptop__screen img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 2px;
}

.csd-laptop__base {
  height: 8px;
  margin: 0 -7%;
  background: linear-gradient(#d1d5db, #9ca3af);
  border-radius: 0 0 10px 10px;
}

.csd-chips {
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.csd-chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 5px;
  background: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  white-space: nowrap;
  font-weight: 600;
  color: var(--blue-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.csd-chips li::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1f6fd6;
  color: #fff;
  font-size: 10px;
}

@media (max-width: 960px) {
  .csd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .csd-dialog,
  .csd-dialog--rich {
    grid-template-columns: 1fr;
  }

  .csd-dialog--rich .csd-main {
    margin: 0;
    box-shadow: none;
  }

  .csd-head__icon {
    display: none;
  }

  .csd-aside {
    display: none;
  }

  .csd-main {
    padding: var(--space-6) var(--space-5);
  }

  .csd-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media print {
  #navbar-placeholder,
  #footer-placeholder,
  .site-footer,
  .navbar,
  .hero-actions,
  .cta-section,
  .csd-overlay,
  [data-case-study-download],
  [class*="chatbot"],
  [id*="chatbot"],
  [class*="marquee"],
  .clients-strip {
    display: none !important;
  }

  main[class^="cs-"] section {
    break-inside: avoid-page;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
/* Previous / next case study */
main[class^="cs-"] .cs-more {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--space-12, 48px) 40px;
}

main[class^="cs-"] .cs-more__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

main[class^="cs-"] .cs-more__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--blue-primary);
}

main[class^="cs-"] .cs-more__all,
main[class^="cs-"] .cs-more__link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--orange-cta);
}

main[class^="cs-"] .cs-more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

main[class^="cs-"] .cs-more__card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border, #e5e9f0);
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

main[class^="cs-"] .cs-more__card--next {
  grid-template-columns: minmax(0, 1fr) 160px;
  text-align: right;
}

main[class^="cs-"] .cs-more__card--next .cs-more__img {
  order: 2;
}

main[class^="cs-"] .cs-more__card:hover,
main[class^="cs-"] .cs-more__card:focus-visible {
  border-color: var(--orange-cta);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

main[class^="cs-"] .cs-more__card:focus-visible {
  outline: 2px solid var(--orange-cta);
  outline-offset: 2px;
}

main[class^="cs-"] .cs-more__img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

main[class^="cs-"] .cs-more__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-6);
}

main[class^="cs-"] .cs-more__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--orange-cta);
}

main[class^="cs-"] .cs-more__client {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--blue-primary);
}

main[class^="cs-"] .cs-more__title {
  font-size: var(--text-sm);
  color: var(--text-secondary, #5a6370);
}

main[class^="cs-"] .cs-more__link {
  margin-top: auto;
  padding-top: var(--space-3);
}

@media (max-width: 768px) {
  main[class^="cs-"] .cs-more {
    padding: var(--space-10, 40px) 24px;
  }

  main[class^="cs-"] .cs-more__grid {
    grid-template-columns: 1fr;
  }

  main[class^="cs-"] .cs-more__card,
  main[class^="cs-"] .cs-more__card--next {
    grid-template-columns: 110px minmax(0, 1fr);
    text-align: left;
  }

  main[class^="cs-"] .cs-more__card--next .cs-more__img {
    order: 0;
  }
}

@media print {
  main[class^="cs-"] .cs-more {
    display: none;
  }
}