* {
  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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pricing {
  padding: 4rem 1rem;
}

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

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #15803d;
}

.heading {
  margin: 0.75rem 0 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;
}

.toggle {
  margin: 2rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #737373;
}

.toggle__label.is-active {
  color: #171717;
}

.toggle__switch {
  position: relative;
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: none;
  background: #e5e5e5;
  cursor: pointer;
  transition: background-color 200ms ease;
}

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

.toggle__switch[aria-checked="true"] {
  background: #171717;
}

.toggle__thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease;
}

.toggle__switch[aria-checked="true"] .toggle__thumb {
  transform: translateX(1.25rem);
}

.toggle__badge {
  border-radius: 9999px;
  background: rgba(21, 128, 61, 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  opacity: 0;
  transition: opacity 200ms ease;
}

.toggle__badge.is-visible {
  opacity: 1;
}

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

/* Plan-selection state — a persistent choice the visitor makes, separate
   from `.card__badge`'s permanent "Most Popular" recommendation (which
   never moves). */
.card.is-selected {
  border-color: #171717;
  box-shadow: 0 20px 40px -20px rgba(23, 23, 23, 0.15);
}

.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: #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;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
  border: 1px solid #d4d4d4;
  color: #171717;
  transition: background-color 200ms ease;
}

.card__cta:hover {
  background: #fafafa;
}

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

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

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

.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 01 — "staggered card reveal" animation identity. Same canonical
 * keyframe as `Pricing01.tailwind.css`. Entirely disabled under reduced
 * motion: every card already renders at its final, fully visible state;
 * the billing toggle stays fully functional regardless.
 */
@keyframes al-pricing01-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  /* Plan-selection state — lives on `.card`, never the `.card-wrap`
     entrance wrapper above, so it can never collide with the entrance
     animation's `fill-mode: both` hold once it finishes. */
  .card {
    transition:
      border-color 200ms ease,
      box-shadow 200ms ease;
  }
}
