/* ============================================
   v9 — Before/After Comparison Section
   Restores Excel vs Dashboard with subtle motion
   ============================================ */

:root {
  --good: #059669;
  --good-soft: #d1fae5;
  --good-bg: #f0fdf4;
}

.solution.sol-min {
  background: white;
  padding: 96px 0;
}

/* === Grid override (centered arrow column) === */
.ba-grid.v9 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 8px;
}
@media (max-width: 880px) {
  .ba-grid.v9 { grid-template-columns: 1fr; gap: 20px; }
}

.ba-card {
  background: white;
  border: 1px solid #eef0f3;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,.03);
}
.ba-card.ba-before {
  background: #fafbfc;
}
.ba-card.ba-after {
  border-color: var(--good-soft);
  box-shadow: 0 14px 38px -22px rgba(5,150,105,.18), 0 2px 6px rgba(15,23,42,.04);
}

.ba-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 11px;
  background: white;
  border: 1px solid #e8eaee;
  border-radius: 999px;
  align-self: flex-start;
}
.ba-after .ba-label {
  color: var(--good);
  background: var(--good-bg);
  border-color: var(--good-soft);
}
.ba-label .dotty {
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.ba-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0;
  font-family: var(--mono, "JetBrains Mono", monospace);
  letter-spacing: -0.005em;
}

/* === Animated arrow === */
.ba-arrow.ba-arrow-pulse {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--good-soft);
  color: var(--good);
  box-shadow: 0 6px 20px -8px rgba(5,150,105,.3);
  animation: arrowPulse 2.4s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px -8px rgba(5,150,105,.3), 0 0 0 0 rgba(5,150,105,.25);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 24px -8px rgba(5,150,105,.4), 0 0 0 10px rgba(5,150,105,0);
  }
}
@media (max-width: 880px) {
  .ba-arrow.ba-arrow-pulse { transform: rotate(90deg); margin: 0 auto; }
}

/* === Excel error rows: subtle blink === */
.ba-card.ba-before .excel-row.err {
  animation: errBlink 4s ease-in-out infinite;
}
.ba-card.ba-before .excel-row.err:nth-of-type(5) {
  animation-delay: 1.2s;
}
@keyframes errBlink {
  0%, 92%, 100% { background: transparent; }
  94%, 98% { background: rgba(220,38,38,.04); }
}

/* === Caption rows below mockups === */
.ba-caption {
  margin-top: auto;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  border-left: 2px solid #cbd5e1;
}
.ba-caption.ba-caption-good {
  background: var(--good-bg);
  border-left-color: var(--good);
  color: var(--ink-2);
}

/* === Issues list (left) === */
.ba-issues {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ba-issues .iss {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #b91c1c;
  font-weight: 500;
}
.ba-issues .iss::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  flex-shrink: 0;
}

/* === Benefits list (right) — green === */
.ba-benefits {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ba-benefits .ben {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--good);
  font-weight: 600;
}
.ba-benefits .ben svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--good-bg);
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--good-soft);
}

/* === Mini-dashboard refinements === */
.mini-dash .mini-row .st-track {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Animated bars */
.bars.bars-anim .bar {
  height: 0;
  background: linear-gradient(180deg, var(--good) 0%, #34d399 100%);
  animation: barGrow 1.2s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes barGrow {
  to { height: var(--h); }
}
.bars.bars-anim .bar:nth-child(1) { animation-delay: 0.05s; }
.bars.bars-anim .bar:nth-child(2) { animation-delay: 0.12s; }
.bars.bars-anim .bar:nth-child(3) { animation-delay: 0.19s; }
.bars.bars-anim .bar:nth-child(4) { animation-delay: 0.26s; }
.bars.bars-anim .bar:nth-child(5) { animation-delay: 0.33s; }
.bars.bars-anim .bar:nth-child(6) { animation-delay: 0.40s; }
.bars.bars-anim .bar:nth-child(7) { animation-delay: 0.47s; }
.bars.bars-anim .bar:nth-child(8) { animation-delay: 0.54s; }

/* === CTA row below === */
.ba-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .ba-cta { flex-direction: column; align-items: stretch; }
  .ba-cta .btn { justify-content: center; }
}
