* {
  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. The visible CTA link sits above it
   (see `.card__cta`) and keeps its own independent click target. */
.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 by
   clicking/tapping any card (or arrowing through the radiogroup),
   separate from `.card__badge`'s permanent "Most Popular" recommendation.
   `Save 22%` and `Most Popular` never move; this border/shadow/CTA
   treatment does. */
.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;
  color: #737373;
}

.card__price-wrap {
  margin-top: 1.5rem;
  overflow: hidden;
}

.card__price {
  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;
  overflow: hidden;
  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.is-selected .card__cta {
  border-color: transparent;
  background: #171717;
  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;
}

.footnote {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #a3a3a3;
}

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

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

/*
 * Pricing 21 — "price switch transition + CTA sheen" animation identity.
 * Same canonical keyframes as `Pricing21.tailwind.css`. `.al-switch` is
 * re-triggered by script.js on every billing toggle (remove, force
 * reflow, re-add) since simply changing text content wouldn't replay a
 * CSS animation on its own. The sheen is a hover transition on the
 * button's own `::before` overlay, so it's left active under reduced
 * motion; the mount fade and the price-switch animation are disabled
 * there, and toggling then swaps the price text instantly instead.
 */
@keyframes al-pricing21-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes al-pricing21-switch {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.al-sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 600ms ease;
  pointer-events: none;
}

.al-sheen:hover::before {
  transform: translateX(120%);
}

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

  .al-switch {
    animation: al-pricing21-switch 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
