/* ============================================================
   Lexia Analytics – Discrete Choice Modelling & Market Intelligence
   Design tokens match ai-activation page
   ============================================================ */

:root {
  --navy:         #0a1f3d;
  --navy-mid:     #0d2a4f;
  --navy-light:   #1e4f7a;
  --brand:        #003d66;
  --brand-accent: #2d7ab5;
  --brand-light:  #edf4fa;
  --brand-teal:   #17a2b8;
  --white:        #ffffff;
  --grey-bg:      #f8fafc;
  --ink:          #111827;
  --body:         #374151;
  --muted:        #6b7280;
  --border:       #e5e7eb;
  --green:        #2e7d32;
  --red:          #c62828;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(10,31,61,.10);
  --shadow-lg:    0 12px 40px rgba(10,31,61,.14);
  --radius:       0.5rem;
  --radius-lg:    1rem;
  --font:         'Inter', Arial, Helvetica, sans-serif;
  --transition:   0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section--white { background: var(--white); }
.section--light { background: var(--brand-light); }
.section--cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
}
.mt-8 { margin-top: 2.5rem; }

/* ── Section headings ── */
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.eyebrow--dark {
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ── Grids ── */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  max-width: 760px;
  position: relative;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.hero-lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================================
   CHALLENGE CARDS
   ============================================================ */
.challenge-card {
  background: var(--brand-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(45,122,181,0.12);
}
.challenge-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.challenge-card__icon svg { width: 24px; height: 24px; }
.challenge-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.challenge-card p { color: var(--body); font-size: 0.975rem; }

/* ── Callout ── */
.callout {
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
.callout strong { display: block; margin-bottom: 0.25rem; font-size: 1.05rem; }
.callout--teal {
  background: linear-gradient(135deg, #e0f7fa, #e8f5f9);
  border-left: 4px solid var(--brand-teal);
  color: #0e5c70;
}
.callout--teal strong { color: #0b4d5e; }
.callout--navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: rgba(255,255,255,0.88);
  border-left: 4px solid var(--brand-accent);
}
.callout--navy strong { color: #fff; }
.callout--navy em { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

/* ============================================================
   APPLICATION CARDS
   ============================================================ */
.app-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.app-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand-accent);
}
.app-card__icon svg { width: 22px; height: 22px; }
.app-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.app-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ============================================================
   METHODOLOGY — 4-STEP FLOW
   ============================================================ */
.method-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
}
.method-step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--brand-light);
  border-radius: var(--radius-lg);
  position: relative;
}
.method-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.method-step__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--brand-accent);
}
.method-step__icon svg { width: 28px; height: 28px; }
.method-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.method-step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.method-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  margin-top: 3.5rem;
  color: var(--brand-accent);
  flex-shrink: 0;
}
.method-arrow svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .method-flow {
    flex-direction: column;
    gap: 1rem;
  }
  .method-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
    padding: 0;
  }
}

/* ============================================================
   SURVEY ILLUSTRATION
   ============================================================ */
.survey-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.survey-tab {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.survey-tab.active,
.survey-tab:hover {
  border-color: var(--brand-accent);
  color: var(--brand);
  background: var(--white);
}
.survey-tab.active { font-weight: 600; }

.survey-panel { display: none; }
.survey-panel.active { display: block; }

.survey-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.survey-frame__header {
  background: var(--brand);
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
}
.survey-frame__tag {
  background: rgba(255,255,255,0.15);
  border-radius: 1rem;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  color: #fff;
}
.survey-frame__progress {
  height: 4px;
  background: rgba(45,122,181,0.2);
}
.survey-frame__bar {
  height: 100%;
  background: var(--brand-accent);
  transition: width 0.4s ease;
}
.survey-frame__body {
  padding: 2rem;
}
.survey-question {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Choice grid (pricing survey) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.choice-option {
  background: var(--grey-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}
.choice-option.is-most {
  border-color: var(--green);
  background: #f0f9f0;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}
.choice-option.is-least {
  border-color: var(--red);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.10);
}
.choice-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: 0.7rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.choice-option.is-most .choice-badge {
  display: flex;
  background: var(--green);
}
.choice-option.is-most .choice-badge::after { content: '★'; }
.choice-option.is-least .choice-badge {
  display: flex;
  background: var(--red);
}
.choice-option.is-least .choice-badge::after { content: '✕'; }

.choice-option__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: #fff;
}
.choice-option__icon svg { width: 24px; height: 24px; }
.co-blue  { background: var(--brand); }
.co-teal  { background: var(--brand-teal); }
.co-navy  { background: var(--navy-light); }
.co-green { background: var(--green); }

.choice-option__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.choice-attrs {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  background: transparent;
}
.choice-attrs tr { background: transparent; }
.choice-attrs td {
  border: none !important;
  background: transparent !important;
  padding: 0.15rem 0;
  box-shadow: none !important;
}
.attr-key {
  color: var(--muted);
  text-align: left;
  width: 50%;
}
.attr-val {
  color: var(--body);
  font-weight: 500;
  text-align: right;
}
.choice-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.choice-btns {
  display: flex;
  gap: 0.4rem;
}
.choice-btn {
  flex: 1;
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.choice-btn--most:hover,
.choice-option.is-most .choice-btn--most {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.choice-btn--least:hover,
.choice-option.is-least .choice-btn--least {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media (max-width: 720px) {
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .choice-grid { grid-template-columns: 1fr; }
}

/* Planogram (shelf visibility survey) */
.planogram-wrap {
  max-width: 600px;
  margin: 0 auto 1.25rem;
}
.planogram {
  background: #1c1c1c;
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: inset 0 4px 16px rgba(0,0,0,0.5), var(--shadow-lg);
}
.plano-rail {
  height: 10px;
  background: linear-gradient(to bottom, #d4aa6a 0%, #a07030 55%, #d4aa6a 100%);
  border-radius: 3px;
  margin: 3px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.plano-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 4px 0;
}
.plano-cell {
  background: #2e2e2e;
  border: 2px solid #3d3d3d;
  border-radius: 3px;
  padding: 0.6rem 0.75rem 0.5rem;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.plano-cell--focal { background: #2e2418; border-color: #5a4020; }
.plano-cell.is-most { border-color: var(--green); background: rgba(46,125,50,0.18); }
.plano-cell.is-least { border-color: var(--red); background: rgba(198,40,40,0.15); }

/* Badge (most/least indicator) */
.plano-badge {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.plano-cell.is-most .plano-badge  { display: flex; background: var(--green); }
.plano-cell.is-most .plano-badge::after  { content: '★'; }
.plano-cell.is-least .plano-badge { display: flex; background: var(--red); }
.plano-cell.is-least .plano-badge::after { content: '✕'; }

/* Bottle facings */
.plano-facings {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 0.5rem;
  min-height: 72px;
}
.plano-bottle {
  width: 22px;
  height: 64px;
  border-radius: 3px 3px 2px 2px;
  position: relative;
  flex-shrink: 0;
  transition: filter 0.2s;
}
.plano-bottle::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 11px;
  background: inherit;
  border-radius: 2px 2px 0 0;
}
.plano-cell.is-most  .plano-bottle { filter: brightness(1.2); }
.plano-cell.is-least .plano-bottle { filter: brightness(0.5) grayscale(0.4); }

/* Bottle colours */
.pb-amber    { background: linear-gradient(to bottom, #e67e22, #a04000); }
.pb-darkblue { background: linear-gradient(to bottom, #2c3e6b, #1a2240); }
.pb-darkgreen{ background: linear-gradient(to bottom, #1e5631, #0d3320); }
.pb-darkred  { background: linear-gradient(to bottom, #922b21, #5b1515); }
.pb-slate    { background: linear-gradient(to bottom, #4a5568, #2d3748); }
.pb-navy     { background: linear-gradient(to bottom, #1a3a6b, #0d1f45); }

/* Cell metadata */
.plano-cell__meta {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.plano-name  { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.plano-price { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.5); }

/* Cell buttons */
.plano-cell__btns { display: flex; gap: 0.3rem; }
.plano-btn {
  flex: 1;
  padding: 0.22rem 0.25rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.15s;
}
.plano-btn--most:hover,
.plano-cell.is-most .plano-btn--most  { background: var(--green); border-color: var(--green); color: #fff; }
.plano-btn--least:hover,
.plano-cell.is-least .plano-btn--least { background: var(--red);   border-color: var(--red);   color: #fff; }

/* Legend */
.plano-legend {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.plano-legend__item {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.plano-legend__item::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.plano-legend__item--focal::before  { background: linear-gradient(to bottom, #e67e22, #a04000); }
.plano-legend__item--fixed::before  { background: #4a5568; }

/* Survey footer */
.survey-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.survey-reset {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.survey-reset:hover {
  border-color: var(--brand-accent);
  color: var(--brand);
}
.survey-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

/* ============================================================
   PHASE CARDS (Process section)
   ============================================================ */
.phase-card {
  background: var(--brand-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(45,122,181,0.15);
  position: relative;
}
.phase-card--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.phase-card--active h3,
.phase-card--active p { color: rgba(255,255,255,0.9); }
.phase-card--active .phase-card__label { color: rgba(255,255,255,0.65); }
.phase-card--active .phase-card__number {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.phase-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.phase-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
  margin-bottom: 0.4rem;
}
.phase-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.phase-card p {
  color: var(--body);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* ============================================================
   DELIVERABLES
   ============================================================ */
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.deliverables-col__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.deliverable-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.deliverable-item:last-child { margin-bottom: 0; }
.deliverable-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.deliverable-item__num--accent { background: var(--brand-accent); }
.deliverable-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.deliverable-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .deliverables-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   CAROUSEL & CASE CARDS
   ============================================================ */
.carousel { position: relative; overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.case-card {
  min-width: 100%;
  background: var(--brand-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.case-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.case-card__company {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.2rem;
}
.case-card__sector {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.case-card__stat {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  text-align: center;
  min-width: 110px;
  flex-shrink: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}
.case-card__stat span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}
.case-card__body { flex: 1; }
.case-card__body p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.case-card__body p:last-child { margin-bottom: 0; }
.case-card__relevance {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(45,122,181,0.08);
  border-left: 3px solid var(--brand-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--brand);
  font-style: italic;
  margin-bottom: 0 !important;
}
.case-card__relevance svg {
  width: 16px; height: 16px;
  color: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.case-card__source {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Carousel controls — use !important to override Elementor/theme */
.carousel__controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}
.carousel__btn {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50% !important;
  border: 2px solid var(--border) !important;
  background: var(--white) !important;
  color: var(--brand) !important;
  cursor: pointer !important;
  transition: background 0.2s, border-color 0.2s !important;
  flex-shrink: 0 !important;
  font-size: 0 !important;
}
.carousel__btn:hover {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.carousel__btn svg {
  width: 18px !important;
  height: 18px !important;
  color: inherit !important;
  flex-shrink: 0 !important;
}
.carousel__dots {
  display: flex !important;
  gap: 0.5rem !important;
  align-items: center !important;
}
.carousel__dot {
  all: unset !important;
  box-sizing: border-box !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: var(--border) !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
  display: block !important;
}
.carousel__dot.active {
  background: var(--brand) !important;
  transform: scale(1.3) !important;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .case-card { padding: 1.5rem; }
  .case-card__stat { min-width: auto; }
  .shelf-container { padding: 1rem; }
  .shelf-row { gap: 1.25rem; }
  .survey-frame__body { padding: 1.25rem; }
  .method-step { padding: 1.5rem 1rem; }
}
