* {
  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;
  perspective: 1000px;
}

.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. Pointer events over the card still
   reach this wrapper (see `.card`'s `pointer-events: none` below), which
   is what lets the tilt listener in script.js keep tracking the cursor. */
.card__radio {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  background: none;
  border-radius: 1rem;
  cursor: pointer;
  padding: 0;
}

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

.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 1.5rem;
  pointer-events: none;
  transition: transform 150ms ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Plan-selection state — a persistent choice the visitor makes.
   Border/shadow only, never `transform`, so it never competes with the
   pointer-driven tilt transform above. */
.card.is-selected {
  border-color: #171717;
  box-shadow: 0 20px 40px -24px rgba(23, 23, 23, 0.2);
}

.card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card__avatar {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 9999px;
  object-fit: cover;
}

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

.card__persona {
  margin: 0;
  font-size: 0.75rem;
  color: #737373;
}

.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: #737373;
}

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

.card__cta:hover {
  background: #fafafa;
}

.card.is-selected .card__cta {
  background: #171717;
  border-color: transparent;
  color: #ffffff;
}

.card.is-selected .card__cta:hover {
  background: #333333;
}

.card__cta:focus-visible {
  outline: 2px solid #15803d;
  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: #15803d;
}

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

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

/*
 * Pricing 10 — "tilt-on-hover" animation identity. Same canonical
 * keyframe as `Pricing10.tailwind.css`. The tilt itself is direct-
 * manipulation feedback driven by the user's pointer, not autoplaying
 * motion, so it stays active under reduced motion (see script.js) —
 * only the on-mount fade-in is disabled there.
 */
@keyframes al-pricing10-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .al-fade {
    animation: al-pricing10-fade 500ms ease-out both;
  }

  /* Plan-selection state — a persistent choice the visitor makes.
     Border/shadow only, never `transform`, so it never competes with the
     pointer-driven tilt transform above. */
  .card {
    transition:
      border-color 200ms ease,
      box-shadow 200ms ease;
  }
}
