/* ============================================================
   Four-mechanism framework grid (Section B of copy handoff)
   Component used on the homepage, treatment hubs, and any page
   that introduces the mechanism framework.
   ============================================================ */

.v4-mech {
  margin: 32px 0 0;
}
.v4-mech__lbl {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.v4-mech__intro {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-leading);
}
.v4-mech__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.v4-mech--five .v4-mech__grid,
.v4-mech--six .v4-mech__grid {
  grid-template-columns: repeat(3, 1fr);
}
.v4-mech__cell--neuro { background: #E8F0EE; }
.v4-mech__cell--neuro h4 { color: #2C6B5A; }
.v4-mech__cell {
  padding: 22px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.v4-mech__cell h4 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0;
}
.v4-mech__cell p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: none;
}
.v4-mech__cell--inflam { background: #EAF1F8; }
.v4-mech__cell--inflam h4 { color: #2D6EB1; }
.v4-mech__cell--fibro  { background: #E7F3EC; }
.v4-mech__cell--fibro  h4 { color: #2F7A4F; }
.v4-mech__cell--immuno { background: #F0EAF5; }
.v4-mech__cell--immuno h4 { color: #6B4E8A; }
.v4-mech__cell--angio  { background: #FBEFE4; }
.v4-mech__cell--angio  h4 { color: #B85F2F; }
.v4-mech__cell--apop   { background: #F8EAEC; }
.v4-mech__cell--apop   h4 { color: #B0455A; }

@media (max-width: 720px) {
  .v4-mech__grid { grid-template-columns: 1fr; }
  .v4-mech--five .v4-mech__grid,
  .v4-mech--six .v4-mech__grid { grid-template-columns: 1fr; }
}

/* Immunomodulation focus callout: sits below v4-mech grid on systemic/longevity pages */
.immuno-focus {
  margin: 28px 0 0;
  padding: 22px 26px;
  background: #F0EAF5;
  border-left: 3px solid #6B4E8A;
  border-radius: 8px;
}
.immuno-focus__lbl {
  display: block;
  margin-bottom: 10px;
  color: #6B4E8A;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.immuno-focus p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 78ch;
}

/* ============================================================
   Animated variant: each cell leads with a looping SVG icon that
   illustrates its mechanism. Playback + reduced-motion handling
   lives in scripts/mechanism-icons.js.
   ============================================================ */
.v4-mech--animated .v4-mech__cell { padding: 24px; }
.v4-mech--animated .v4-mech__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.v4-mech--animated .v4-mech__icon svg {
  display: block;
  width: 120px;
  height: 120px;
}
