/* ==========================================================================
   Impact graphics
   Before/after bars, lines and design-system illustrations.
   ========================================================================== */

/* ===== impact graphics ===== */
.vz {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
  justify-content: flex-end;
  animation: fade 0.5s both;
}
.vz-leg {
  display: flex;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--dm);
  font-weight: 500;
}
.vz-leg span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.vz-leg i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.vz-leg i.b,
.vz-bar.b,
.vz-seg .b {
  background: var(--soft);
}
.vz-leg i.a,
.vz-bar.a,
.vz-seg .a {
  background: var(--a);
}
.vz-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 12px;
}
.vz-l,
.vz-l2 {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--dm);
}
.vz-t {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vz-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: var(--w);
  min-width: 46px;
  height: 17px;
  border-radius: 6px;
  padding: 0 8px;
  animation: vzw 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.vz-bar em {
  font:
    600 0.72rem Figtree,
    sans-serif;
  font-style: normal;
}
.vz-bar.b em {
  color: var(--dm);
}
.vz-bar.a em {
  color: var(--on-a);
}
@keyframes vzw {
  from {
    width: 0;
    opacity: 0.2;
  }
}
.vz-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.vz-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.vz-tx {
  font:
    500 11px Figtree,
    sans-serif;
  fill: var(--dm);
}
.vz-tx.on {
  fill: var(--dt);
  font-weight: 700;
}
.vz-ln {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vz-ln.b {
  stroke: var(--dm);
  opacity: 0.55;
  stroke-dasharray: 2 7;
  animation: fade 0.6s both;
}
.vz-ln.a {
  stroke: var(--a);
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: vzd 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) both;
}
@keyframes vzd {
  from {
    stroke-dashoffset: 1;
  }
}
.vz-pt.b {
  fill: var(--dm);
  opacity: 0.6;
}
.vz-pt.a {
  fill: var(--a);
}
.vz-cap {
  font-size: 0.84rem;
  color: var(--dm);
}
.vz-sp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vz-seg {
  display: flex;
  gap: 4px;
  width: var(--w);
  height: 34px;
  animation: vzw 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.vz-seg span {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font:
    600 0.78rem Figtree,
    sans-serif;
  white-space: nowrap;
}
.vz-seg .b {
  color: var(--dm);
}
.vz-seg .a {
  color: var(--on-a);
}
.vz-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vz-s {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 34px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 130px;
  overflow: hidden;
}
.vz-st {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dm);
}
.vz-s i {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: var(--soft);
}
.vz-s.rough i:nth-of-type(odd) {
  transform: translateX(8px) rotate(-1.5deg);
}
.vz-s.rough i:nth-of-type(even) {
  transform: translateX(-3px) rotate(1deg);
}
.vz-hd {
  display: block;
  height: 12px;
  width: 40%;
  border-radius: 6px;
  background: var(--a);
  margin-bottom: 2px;
}
.vz-ok {
  position: absolute;
  right: 12px;
  top: 8px;
  background: #f1ff5e;
  color: #10130a;
  font:
    700 0.72rem Figtree,
    sans-serif;
  font-style: normal;
  padding: 3px 9px;
  border-radius: 99px;
}
.vz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vz-chips span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dt);
  background: var(--soft);
  padding: 5px 12px;
  border-radius: 99px;
}
@media (max-width: 560px) {
  .vz-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
