/* ===== Aqua variant: scoped token override for this page group ===== */
/* Full 5-tone aqua palette (deeper than the sitewide aqua remap) --
   overrides just these 3 custom properties on top of tokens-aqua.css,
   which this file loads after. --accent-amber/--dark-bg etc. stay as
   already defined sitewide (#AAD0E2 / #153A50). */
:root {
  --cream-lightest: #AAD0E2;
  --warm-tan:        #87B1C8;
  --warm-sand:        #7198AF;
}

/* ===== Case Studies — shared page chrome ===== */

.cs-nav-section {
  background: var(--dark-bg);
}

.cs-nav-section #nav {
  padding: var(--space-2) var(--space-5);
}

/* PHONE PADDING. The rule above out-specifies the main nav's own phone steps in
   style-aqua.css (#nav alone), so without these this page kept 64px side padding at
   every width and scrolled sideways on phones: 43px at 320, 3px at 360 on /nl/. */
@media (max-width: 640px) {
  .cs-nav-section #nav {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

@media (max-width: 380px) {
  .cs-nav-section #nav {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

/* ===== Hub page — Hero (warm cream treatment) ===== */

.cs-hero {
  background: #ffffff;
  padding: var(--space-6) var(--space-3) var(--space-5);
  text-align: center;
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--warm-sand);
  border: 0.5px solid rgba(17, 17, 17, 0.1);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

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

.cs-heading {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto var(--space-3);
}

.cs-heading-sans {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.cs-heading-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

.cs-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-4);
}

.cs-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-5);
}

.cs-filter-pill {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cs-filter-pill:hover {
  background: var(--warm-sand);
  color: #ffffff;
}

.cs-filter-pill.active {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  color: #1a1005;
}

.cs-stats-row {
  display: flex;
  background: var(--cream-lightest);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
}

.cs-stat {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: var(--space-4) var(--space-2);
  border-right: 0.5px solid var(--border);
}

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

.cs-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cs-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #ffffff;
  line-height: 1.4;
  margin-top: 4px;
}

/* ===== Hub page — Grid section + cards ===== */

.cs-grid-section {
  background: #ffffff;
  padding: var(--space-6) var(--space-3) var(--space-7);
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 1160px;
  margin: 0 auto;
}

.cs-card {
  position: relative;
  background: var(--cream-lightest);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
}

.cs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.cs-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--warm-sand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-card-icon svg {
  width: 22px;
  height: 22px;
}

.cs-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  background: #ffffff;
}

.cs-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 4px;
}

.cs-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.cs-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.cs-card-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.cs-capability-pill {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--text-primary);
  background: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
}

.cs-card-sample {
  background: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-ui);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
  min-height: 108px;
}

.cs-sample-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.cs-sample-customer {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #ffffff;
  background: var(--warm-tan);
  border-radius: 12px 12px 4px 12px;
  padding: 8px 12px;
  margin-left: auto;
  margin-bottom: 8px;
  max-width: 85%;
  width: fit-content;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cs-sample-bot {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-alt);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px;
  max-width: 90%;
  width: fit-content;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cs-sample-customer.sample-visible,
.cs-sample-bot.sample-visible {
  opacity: 1;
  transform: translateY(0);
}

.cs-sample-bot .typing-dots {
  padding: 3px 2px;
}

.cs-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: var(--space-3);
  margin-top: auto;
}

.cs-metric {
  text-align: center;
  background: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-ui);
  padding: 10px 4px;
}

.cs-metric-value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.cs-metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

.cs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  border-top: 0.5px solid var(--border);
}

.cs-integrations {
  display: flex;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: #ffffff;
}

.cs-view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.cs-view-link:hover {
  gap: 10px;
  color: #ffffff;
}

.cs-cta-card {
  position: relative;
  border: 1px dashed rgba(17, 17, 17, 0.2);
  border-radius: var(--radius-card);
  background: var(--warm-sand);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
}

.cs-cta-card-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
}

.cs-cta-card-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
}

.cs-cta-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
}

.cs-cta-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-button-asym);
  background: var(--black);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* ===== Hub page — Closing CTA ===== */

.cs-hub-cta-section {
  background: var(--dark-bg);
  padding: var(--space-7) var(--space-3) var(--space-6);
  text-align: center;
}

.cs-hub-cta-heading {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto var(--space-3);
}

.cs-cta-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cs-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-button-asym);
  background: var(--accent-amber);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.cs-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-button-asym);
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

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

  .cs-stats-row {
    flex-direction: column;
  }

  .cs-stat {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

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

  .cs-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
}

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

/* ===== Case Study — detail page: Hero (warm cream treatment) ===== */

.cs-detail-hero {
  background: #ffffff;
  padding: var(--space-6) var(--space-3) var(--space-7);
}

.cs-detail-layout {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.cs-detail-info {
  width: 46%;
  flex-shrink: 0;
}

.cs-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--warm-sand);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  margin-bottom: var(--space-3);
}

.cs-detail-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.cs-detail-title-accent {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.86em;
  margin-top: 4px;
}

.cs-detail-industries {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.cs-detail-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  max-width: 480px;
}

.cs-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.cs-detail-tags .cs-capability-pill {
  background: #ffffff;
}

.cs-detail-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cs-detail-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-button-asym);
  background: var(--black);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cs-detail-back-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.cs-detail-back-link:hover {
  color: var(--text-primary);
}

.cs-detail-visual {
  width: 54%;
  min-width: 0;
}

.cs-chat-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.12);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  height: 420px;
}

.cs-chat-thread {
  flex: 1;
  min-height: 0;
}

.chat-status-text {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-left: 6px;
}

/* ===== Detail page — Stat bar ===== */

.cs-detail-metrics-section {
  background: #ffffff;
  padding: var(--space-5) var(--space-3) var(--space-4);
}

.cs-detail-metrics-grid {
  display: flex;
  background: var(--dark-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.cs-detail-metric {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: var(--space-4) var(--space-2);
  border-right: 0.5px solid var(--border);
}

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

.cs-detail-metric-value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 44px);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cs-detail-metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: #ffffff;
  margin-top: 8px;
}

/* ===== Detail page — Two-column body ===== */

.cs-body-section {
  background: #ffffff;
  padding: var(--space-7) var(--space-3) var(--space-6);
}

.cs-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* A grid item's min-width defaults to auto, so the single 1fr column on phones could not
   shrink below its widest content and the body and sidebar columns ran ~20-45px past a 320px screen,
   scrolling the page sideways. min-width: 0 lets the column be the width it is given. */
.cs-body-grid > * {
  min-width: 0;
}

.cs-content-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5B8094;
  margin-bottom: var(--space-2);
}

.cs-content-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.cs-content-block {
  margin-bottom: var(--space-7);
}

.cs-content-block:last-child {
  margin-bottom: 0;
}

.cs-body-text {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

/* ----- Why Choose Us (between Overview and Problem vs Solution) ----- */

.cs-reasons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.cs-reason-card {
  background: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}

.cs-reason-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream-lightest);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.cs-reason-icon svg {
  width: 20px;
  height: 20px;
}

.cs-reason-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cs-reason-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.cs-body-text:last-child {
  margin-bottom: 0;
}

/* ===== Detail page — Problem vs Solution compare card ===== */

.cs-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.cs-compare-col {
  padding: var(--space-4) var(--space-3);
}

.cs-compare-before {
  background: #ffffff;
}

.cs-compare-after {
  background: var(--warm-sand);
}

.cs-compare-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.cs-compare-after .cs-compare-label {
  color: #ffffff;
}

.cs-compare-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cs-compare-before .cs-compare-icon {
  background: rgba(198, 63, 47, 0.12);
  color: #c63f2f;
}

.cs-compare-after .cs-compare-icon {
  background: rgba(74, 140, 89, 0.14);
  color: #ffffff;
}

.cs-compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cs-compare-after .cs-compare-list li {
  color: rgba(255, 255, 255, 0.85);
}

.cs-compare-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-compare-before .cs-compare-list li svg {
  color: #c63f2f;
}

.cs-compare-after .cs-compare-list li svg {
  color: #ffffff;
}

/* ===== Detail page — How It Works workflow ===== */

.cs-workflow-list {
  display: flex;
  flex-direction: column;
}

.cs-workflow-step {
  position: relative;
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
}

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

.cs-workflow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 8px;
  width: 0.5px;
  background: var(--border);
}

.cs-workflow-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  z-index: 1;
}

.cs-workflow-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cs-workflow-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ===== Detail page — Testimonial ===== */

.cs-testimonial-card {
  background: var(--warm-sand);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.cs-testimonial-quote-icon {
  color: var(--accent-amber);
  margin-bottom: var(--space-2);
}

.cs-testimonial-quote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.cs-testimonial-attribution {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.cs-testimonial-attribution span {
  color: #ffffff;
}

/* ===== Detail page — Sidebar ===== */

.cs-body-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
  top: var(--space-3);
}

.cs-sidebar-card {
  background: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}

.cs-sidebar-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.cs-metric-row-list {
  display: flex;
  flex-direction: column;
}

.cs-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--border);
}

.cs-metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cs-metric-row:first-child {
  padding-top: 0;
}

.cs-metric-row-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
}

.cs-metric-row-value {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.cs-sidebar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-sidebar-pills .cs-capability-pill {
  background: var(--cream-lightest);
  border-color: transparent;
}

.cs-sidebar-card-demo {
  background: var(--warm-tan);
  border: none;
}

.cs-sidebar-card-demo .cs-sidebar-card-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: #ffffff;
}

.cs-sidebar-demo-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
}

.cs-sidebar-demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-button-asym);
  background: var(--black);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ===== Detail page — sidebar: Capabilities + Use Cases cards ===== */
/* Moved into the sidebar (after "Try the Demo") so all six cards — Key
   Metrics, Integrations, Industry, Try the Demo, What's Enabled, Scenarios
   Handled — read as one consistent stack. Reuses .cs-sidebar-card /
   .cs-sidebar-card-title / .cs-sidebar-pills as-is for the capabilities
   pill row; only the use-cases list needed a new, sidebar-scaled variant
   (the old .cs-usecases-list was sized for a centered, full-width section). */

.cs-sidebar-usecases-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-sidebar-usecases-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cs-sidebar-usecases-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 14px;
  height: 14px;
  color: var(--accent-amber);
}

/* ===== Detail page — Closing CTA ===== */

.cs-detail-cta-section {
  background: var(--dark-bg);
  padding: var(--space-7) var(--space-3) var(--space-6);
  text-align: center;
}

.cs-detail-cta-heading {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto var(--space-3);
}

.cs-detail-cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto var(--space-4);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .cs-detail-layout {
    flex-direction: column;
  }

  .cs-detail-info,
  .cs-detail-visual {
    width: 100%;
  }

  .cs-detail-metrics-grid {
    flex-direction: column;
  }

  .cs-detail-metric {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

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

  .cs-chat-card {
    height: 380px;
  }

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

  .cs-body-sidebar {
    position: static;
  }

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

  .cs-cta-btn-row {
    flex-direction: column;
  }
}

/* The assistant page for this industry, inside the existing demo card.
   Sized and coloured off .cs-sidebar-demo-desc so it reads as part of that
   card rather than as a second call to action competing with the button. */
.cs-sidebar-assistant-link {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	line-height: 1.5;
	margin: 12px 0 0;
	text-align: center;
}
.cs-sidebar-assistant-link a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}
.cs-sidebar-assistant-link a:hover,
.cs-sidebar-assistant-link a:focus-visible {
	color: #fff;
}

/* ── Live hero chat ──────────────────────────────────────────────────────────
   The card is WHITE (.cs-chat-card background #ffffff), so everything here is
   built on the light tokens the card already uses — --surface-alt for fills,
   --border for hairlines, --text-primary/-secondary for type. The first pass
   was written for a dark card and rendered white-on-white: the input and the
   name field were invisible, and only the Start button and a stray arrow
   showed. Take the palette from the component, never from memory of it. */

/* The bot glyph. .chat-bubble-bot sizes `i` (the lucide element the static
   markup uses) and nothing sizes `svg`, which these bubbles are built from —
   so the icon rendered at its intrinsic size and sat oddly against the text. */
.chat-bubble-bot svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-secondary);
}

/* Composer. A hairline above it echoes .chat-header's rule below, so the thread
   sits between two matching edges rather than floating. */
.cs-chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.cs-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cs-chat-input::placeholder { color: var(--text-secondary); }
.cs-chat-input:focus {
  border-color: var(--accent-steel);
  box-shadow: 0 0 0 3px rgba(113, 152, 175, 0.15);
}
.cs-chat-input:disabled { background: var(--surface-alt); color: var(--text-secondary); cursor: not-allowed; }

/* Matches the hero's own "Start a Live Demo" button rather than inventing a
   second primary colour on the same screen. */
.cs-chat-send {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: #111;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cs-chat-send:hover { background: #000; transform: translateX(1px); }
.cs-chat-send:active { transform: translateX(0) scale(0.96); }
.cs-chat-send:disabled { background: var(--text-secondary); cursor: not-allowed; }


/* Status dot follows the SOCKET. Live keeps the component's own green and its
   glow ring exactly, so a working card is pixel-identical to the static one;
   only the other two states are new. */
.chat-status-dot.is-connecting {
  background: #d9a441;
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.15);
  animation: cs-dot-pulse 1.3s ease-in-out infinite;
}
.chat-status-dot.is-live {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.chat-status-dot.is-offline {
  background: #b6bcc8;
  box-shadow: 0 0 0 3px rgba(182, 188, 200, 0.15);
  animation: none;
}
@keyframes cs-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* The thread must scroll inside the fixed-height card, not push the composer
   out of it — .cs-chat-card is height:420px and .cs-chat-thread is flex:1. */
.cs-chat-thread { overflow-y: auto; }

/* The one action a bot bubble can carry: a link to the full demo when the bot
   hands off to a form this card cannot render, or a Try again button after a
   refusal. Inline with the bubble's text, so the bubble keeps its own look. */
.cs-chat-action {
  display: inline;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cs-chat-action:hover { color: #000; }
.cs-chat-action:disabled { color: var(--text-secondary); cursor: default; }
