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

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

.list {
  max-width: 56rem;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.row-wrap {
  position: relative;
}

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

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

.row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e5e5;
  padding: 1.25rem;
  pointer-events: none;
}

/* Plan-selection state — a persistent choice the visitor makes, separate
   from `.row__badge`'s permanent "Most Popular" recommendation (which
   never moves). */
.row.is-selected {
  border-color: #15803d;
  background: rgba(21, 128, 61, 0.03);
}

.row__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.row__badge {
  border-radius: 9999px;
  background: #15803d;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.row__desc {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: #737373;
}

.row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border-radius: 9999px;
  background: #f5f5f5;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #525252;
}

.row__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.row__price {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
  font-variant-numeric: tabular-nums;
}

.row__price small {
  font-size: 0.875rem;
  font-weight: 400;
  color: #737373;
}

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

.row__cta:hover {
  background: #fafafa;
}

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

.row.is-selected .row__cta {
  border-color: transparent;
  background: #171717;
  color: #ffffff;
}

.row.is-selected .row__cta:hover {
  background: #333333;
}

@media (min-width: 640px) {
  .row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .row__info {
    width: 13rem;
    flex-shrink: 0;
  }

  .row__action {
    flex-shrink: 0;
  }
}

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

/*
 * Pricing 04 — "horizontal slide-in stagger" animation identity. Same
 * canonical keyframes as `Pricing04.tailwind.css`. Entirely disabled
 * under reduced motion: every row already renders at its final, fully
 * visible state.
 */
@keyframes al-pricing04-from-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes al-pricing04-from-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .al-from-left {
    animation: al-pricing04-from-left 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .al-from-right {
    animation: al-pricing04-from-right 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

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