/* ============================================================
   POST-LAUNCH IMPACT INFOGRAPHIC
   Rebranded to the orange→pink system, dark-first, token-driven.
   ============================================================ */

.infographic-section {
  position: relative;
  z-index: 2;
  min-height: auto;
  margin: clamp(2rem, 6vh, 4rem) 0;
  overflow: visible;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* solid band instead of a full-width live backdrop-blur */
  background: var(--surface);
}

.infographic-section .container {
  align-items: flex-start;
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6rem) var(--gutter);
  overflow: visible;
  display: block;
}

.content-wrapper { max-width: 80rem; margin: 0 auto; }

/* ---------- Header ---------- */
.header-section { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4rem); }

/* mono accent label (not a pill) — mirrors the eyebrows used across the
   homepage and case heroes, dot and all */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.main-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 1.5rem 0;
}

.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--bone-faint);
}

/* ---------- Stats grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 769px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: rgba(234, 230, 222, 0.04);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
html[data-theme="light"] .stat-card { background: rgba(15, 15, 16, 0.03); }
.stat-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }

.stat-content { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.stat-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.stat-value-word {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--bone);
}
.stat-detail { display: flex; align-items: center; gap: 0.5rem; color: var(--bone-dim); }
.stat-text { font-size: 0.875rem; }
.stat-purple { color: var(--bone-faint); }

/* accent icons (inline SVG, currentColor) */
.infographic-section .icon-teal { color: var(--accent); }
.infographic-section .icon-purple { color: var(--accent-2); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* Timeline */
.timeline-card {
  background: rgba(234, 230, 222, 0.04);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 14px;
}
html[data-theme="light"] .timeline-card { background: rgba(15, 15, 16, 0.03); }
.timeline-header { margin-bottom: 1.5rem; }
.timeline-title {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.timeline-subtitle { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--bone-faint); margin-top: 0.35rem; }
.timeline-content { display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { display: flex; align-items: flex-start; gap: 1.5rem; }
.timeline-year {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--bone);
  min-width: 80px;
}
.timeline-progress { flex: 1; }
.timeline-value { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--accent); }
.progress-bar-container {
  height: 0.5rem;
  background: var(--line);
  border-radius: 9999px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.progress-bar { height: 100%; background: var(--accent-gradient); border-radius: 9999px; }

/* Impact card — deliberate dark "spotlight" panel on both themes */
.impact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1b1b1e 0%, #0b0b0c 100%);
  border: 1px solid rgba(234, 230, 222, 0.14);
  padding: 2rem;
  border-radius: 14px;
  color: #eae6de;
}
.impact-card::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  right: -10%;
  top: -20%;
  background: radial-gradient(closest-side, rgba(215, 124, 0, 0.18), transparent 72%);
  pointer-events: none;
}
.impact-content { position: relative; z-index: 1; }
.impact-header { margin-bottom: 2rem; }
.impact-title { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; color: #eae6de; }
/* card is dark in both themes — scope under .impact-card so the light text
   beats .case-study-body p (which goes dark in light mode) */
.impact-card .impact-subtitle { color: rgba(234, 230, 222, 0.6); margin-top: 0.5rem; }
.impact-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.impact-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(234, 230, 222, 0.06);
  border: 1px solid rgba(234, 230, 222, 0.1);
  border-radius: 12px;
}
.impact-feature-text { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: rgba(234, 230, 222, 0.85); }

/* Tangible-outcome list (replaces the old adjective pills): each row pairs a
   concrete improvement with the design decision that produced it. */
.impact-list { display: flex; flex-direction: column; }
.impact-row {
  display: flex;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(234, 230, 222, 0.1);
}
.impact-row:first-child { border-top: 0; padding-top: 0; }
/* circle marker (not a bar) so it doesn't read like the growth-timeline bars */
.impact-row-bar {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--accent-gradient);
}
.impact-card .impact-row-title { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: #eae6de; }
.impact-card .impact-row-text { margin-top: 0.2rem; font-size: 0.92rem; line-height: 1.45; color: rgba(234, 230, 222, 0.62); }

.impact-background { position: absolute; right: -2rem; bottom: -2rem; opacity: 0.06; z-index: 0; }
.background-icon { width: 12rem; height: 12rem; filter: brightness(0) invert(1); }

.capability-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.capability-tag {
  padding: 0.35rem 0.85rem;
  background: rgba(234, 230, 222, 0.1);
  border: 1px solid rgba(234, 230, 222, 0.18);
  border-radius: 9999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(234, 230, 222, 0.85);
}

/* ---------- Section headers ---------- */
.section-header, .mapping-header { text-align: center; margin-bottom: 1.5rem; }
.section-title, .mapping-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.section-subtitle, .mapping-subtitle { color: var(--bone-dim); margin-top: 0.5rem; }

/* ---------- Business + benefit + mapping cards ---------- */
.business-section, .benefits-section, .mapping-section { margin-top: 3rem; }

.business-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .business-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .business-grid { grid-template-columns: repeat(3, 1fr); } }

.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }

.business-card, .benefit-card {
  background: rgba(234, 230, 222, 0.04);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 14px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
html[data-theme="light"] .business-card,
html[data-theme="light"] .benefit-card { background: rgba(15, 15, 16, 0.03); }
.business-card:hover, .benefit-card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }

.business-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 12px;
  background: rgba(215, 124, 0, 0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.business-icon .icon-white { color: var(--accent); }
.business-title { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.05rem; color: var(--bone); margin-bottom: 0.5rem; }
.business-description { font-size: 0.9rem; color: var(--bone-dim); }

.benefit-content { display: flex; gap: 1rem; }
.benefit-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 10px;
  background: rgba(237, 30, 121, 0.14);
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon .icon-white { color: var(--accent-2); }
.benefit-text { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
/* large outline number — echoes the homepage approach cards */
.benefit-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  transition: color 0.5s var(--ease-out), -webkit-text-stroke-color 0.5s;
  margin-bottom: 0.2rem;
}
.benefit-card:hover .benefit-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.benefit-title { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.1rem; color: var(--bone); }
.benefit-description { font-size: 0.9rem; color: var(--bone-dim); margin-bottom: 0; }
.benefit-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(234, 230, 222, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}
html[data-theme="light"] .benefit-highlight { background: rgba(15, 15, 16, 0.03); }
.benefit-highlight .icon-teal { color: var(--accent); }
.benefit-highlight-text { font-size: 0.85rem; color: var(--bone-dim); margin-bottom: 0; }

/* Mapping */
.mapping-section {
  background: rgba(234, 230, 222, 0.03);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 16px;
}
html[data-theme="light"] .mapping-section { background: rgba(15, 15, 16, 0.02); }
.mapping-header { margin-bottom: 2rem; }
.mapping-content { display: flex; flex-direction: column; gap: 1rem; max-width: 56rem; margin: 0 auto; }
.mapping-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(234, 230, 222, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}
html[data-theme="light"] .mapping-item { background: rgba(15, 15, 16, 0.03); }
.mapping-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 10px;
  background: rgba(215, 124, 0, 0.14);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.mapping-feature, .mapping-outcome { flex: 1; }
.mapping-label { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 0.25rem; }
.mapping-text { color: var(--bone); }
.arrow-icon { width: 1.5rem; height: 1.5rem; color: var(--accent); flex-shrink: 0; }

/* The outcome is the payoff — give it a distinct accent panel so the eye
   reads "plain input → highlighted result" rather than two equal columns. */
.mapping-outcome {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  background: rgba(215, 124, 0, 0.08);
  border: 1px solid rgba(215, 124, 0, 0.22);
  border-radius: 10px;
}
.mapping-outcome .mapping-label { color: var(--accent); }
.mapping-outcome .mapping-text { font-weight: 500; }

/* Footer row — "Designed For" */
.infographic-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  background: rgba(234, 230, 222, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.infographic-footer-label { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bone-faint); white-space: nowrap; }
.infographic-footer-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.infographic-footer-tag {
  padding: 0.3rem 0.85rem;
  background: rgba(234, 230, 222, 0.06);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--bone-dim);
}

/* ---------- Pared-back icons ----------
   The homepage is typographic and editorial — no decorative glyphs.
   Drop the per-stat icons and the coloured icon tiles so these panels
   read the same way; keep only the semantic feature→outcome arrow and
   the faint background flourish. */
.stat-detail svg,
.impact-feature svg,
.business-icon,
.benefit-icon,
.mapping-icon { display: none; }

/* feature chips (were icon tiles) now read as tags, matching the
   capability tags on the other case study */
.impact-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.impact-feature {
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0.35rem 0.85rem;
  background: rgba(234, 230, 222, 0.1);
  border: 1px solid rgba(234, 230, 222, 0.18);
  border-radius: 9999px;
}

/* ---------- Icon sizes (infographic-scoped) ---------- */
.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-xl { width: 2rem; height: 2rem; }
.icon-2xl { width: 3rem; height: 3rem; }
.icon-white { color: #fff; }

@media (max-width: 768px) {
  .infographic-section .container { padding: clamp(2.5rem, 7vh, 4rem) var(--gutter); }
  .benefit-num { -webkit-text-stroke: 0; color: var(--accent); font-size: 2.6rem; }
  .mapping-item { flex-wrap: wrap; }
  .mapping-feature, .mapping-outcome { flex: 1 1 100%; }
  .arrow-icon { transform: rotate(90deg); }
}
