/* Revenue Leak Map™ — reusable card. Mount with [data-leak-map]. */

.leak-map {
  display: block;
  position: relative;
  height: 214px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.leak-map__sheet,
.leak-map__report {
  position: absolute;
  border-radius: 16px;
}

.leak-map__sheet--back {
  width: 82%;
  height: 76%;
  left: -4%;
  top: 0;
  background: #e4daf6;
  box-shadow: 0 12px 24px rgba(90, 60, 160, 0.08);
  transform: rotate(2deg);
}

.leak-map__sheet--back::before,
.leak-map__sheet--mid::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 18px;
  top: 26px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 0 rgba(255, 255, 255, 0.4), 0 24px 0 rgba(255, 255, 255, 0.28);
}

.leak-map__sheet--mid {
  width: 84%;
  height: 78%;
  left: 0;
  top: 4%;
  background: #f1eaff;
  box-shadow: 0 14px 26px rgba(90, 60, 160, 0.07);
  transform: rotate(5deg);
}

.leak-map__report {
  width: 86%;
  height: 84%;
  left: 8%;
  top: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 18px 36px rgba(80, 50, 150, 0.13),
    0 2px 8px rgba(80, 50, 150, 0.06);
  transform: rotate(8.5deg);
}

.leak-map__title {
  margin: 0;
  color: #16141c;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 3.5vw, 0.98rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.leak-map__chart {
  display: block;
  flex: 1 0 70px;
  width: 100%;
  height: 78px;
  min-height: 70px;
  margin-top: 2px;
}

.leak-map__rows {
  display: grid;
  flex-shrink: 0;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.leak-map__rows li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.leak-map__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.leak-map__dot--pink { background: #f472b6; }
.leak-map__dot--violet { background: #6d28d9; }
.leak-map__dot--lilac { background: #a5b4fc; }

.leak-map__bar {
  display: block;
  width: 86%;
  height: 5px;
  border-radius: 99px;
  background: #e4dfef;
}

.leak-map__bar--mid { width: 68%; }
.leak-map__bar--short { width: 58%; }
