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

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

.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: 1rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #737373;
}

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

.pillars li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #404040;
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #15803d;
}

.panel {
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 0.5rem;
}

.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: 0.75rem;
  border-radius: 0.75rem;
  padding: 1.25rem;
  pointer-events: none;
}

/* Plan-selection state — a persistent choice the visitor makes, separate
   from `.row__tag`'s permanent "Recommended" note (which never moves). */
.row.is-selected {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

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

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

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

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

.row__action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.row__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #d4d4d4;
  background: #ffffff;
  padding: 0.5rem 0.875rem;
  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;
}

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

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

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/*
 * Pricing 03 — "panel crossfade" animation identity. Same canonical
 * keyframes as `Pricing03.tailwind.css`. Entirely disabled under reduced
 * motion: both panels already render at their final, fully visible state.
 */
@keyframes al-pricing03-from-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

  /* Plan-selection state — gated the same way as the panel's own
     entrance above, so under reduced motion the row's shadow change
     lands instantly instead of easing. */
  .row {
    transition: box-shadow 200ms ease;
  }
}
