* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.pricing {
  padding: 4rem 1rem;
}

.intro {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.heading {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
}

.copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #737373;
}

.grid {
  margin: 3rem auto 0;
  max-width: 64rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card-wrap {
  position: relative;
}

/* Covers the whole card as an invisible hit target for pointer/keyboard
   selection — a real `role="radio"` button, not a div, and never nested
   inside another interactive element. */
.card__radio {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  background: none;
  border-radius: 1.5rem;
  cursor: pointer;
  padding: 0;
}

.card__radio:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  padding: 1.5rem;
  pointer-events: none;
}

/* Keyed off `.card-wrap:hover` (the wrapper) rather than `.card:hover`
   (the card itself): the card is `pointer-events: none` so hit-testing
   skips straight through to the radio button beneath it, and hovering
   any part of that button still counts as hovering the ancestor wrapper. */
.card-wrap:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -24px rgba(23, 23, 23, 0.25);
}

.card--sand {
  background: #fffbeb;
}

.card--sky {
  background: #f0f9ff;
}

.card--lilac {
  background: #f5f3ff;
}

/* Plan-selection state — a persistent choice the visitor makes, separate
   from `.card__badge`'s permanent "Most Popular" recommendation (which
   never moves). */
.card.is-selected {
  outline: 2px solid #171717;
  outline-offset: 0;
}

.card__badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  border-radius: 9999px;
  background: #171717;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #171717;
}

.card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #404040;
}

.card__price {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.card__price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
  font-variant-numeric: tabular-nums;
}

.card__price-period {
  font-size: 0.875rem;
  color: #525252;
}

.card__cta {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #171717;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  pointer-events: auto;
  transition: background-color 200ms ease;
}

.card__cta:hover {
  background: #333333;
}

.card__cta:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.card__features {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
}

.card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #404040;
}

.card__features svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #171717;
}

@media (min-width: 1024px) {
  .pricing {
    padding: 6rem 2rem;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*
 * Pricing 05 — "soft lift + shadow" animation identity. Same canonical
 * keyframe as `Pricing05.tailwind.css`. Entrance disabled under reduced
 * motion; the hover lift/shadow above stays active regardless, since it's
 * user-driven rather than autoplaying.
 */
@keyframes al-pricing05-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .al-fade {
    animation: al-pricing05-fade 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
