/* Proposal P5: cards.
   Larger radius, faint white-to-lavender gradient, soft violet shadow, a thin
   gradient accent bar along the top edge, a blurred pastel "bubble" tucked in the
   top-right corner that grows on hover, and a small lift on hover. */

.card,
.hw-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid #E7E2F5;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F8FB 100%);
  box-shadow: 0 14px 40px rgba(43, 4, 232, 0.06);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease !important;
}

.card::before,
.hw-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2B04E8 0%, #8752FA 50%, #06B6D4 100%);
  z-index: 2;
}

.card::after,
.hw-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #F3EEFF;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  transition: transform 300ms ease !important;
}

.card > *,
.hw-card > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.hw-card:hover {
  transform: translateY(-2px);
  border-color: #B49CFF;
  box-shadow: 0 18px 48px rgba(43, 4, 232, 0.10);
}

.card:hover::after,
.hw-card:hover::after {
  transform: scale(1.25);
}

/* Vary the accent per card in a grid, like the reference */
.funded-mini-grid > .card:nth-child(3n+2)::before,
.compare-cards > .card:nth-child(3n+2)::before,
.hw-card:nth-child(3n+2)::before { background: linear-gradient(90deg, #22C55E 0%, #06B6D4 100%); }
.funded-mini-grid > .card:nth-child(3n+3)::before,
.compare-cards > .card:nth-child(3n+3)::before,
.hw-card:nth-child(3n+3)::before { background: linear-gradient(90deg, #F43F5E 0%, #8752FA 100%); }
.funded-mini-grid > .card:nth-child(3n+2)::after,
.hw-card:nth-child(3n+2)::after { background: #ECFEFF; }
.funded-mini-grid > .card:nth-child(3n+3)::after,
.hw-card:nth-child(3n+3)::after { background: #FFF1F2; }

@media (prefers-reduced-motion: reduce) {
  .card, .hw-card, .card::after, .hw-card::after { transition: none !important; }
  .card:hover, .hw-card:hover { transform: none; }
}
