.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); margin-top: 1.85rem; }
@media (min-width: 721px) {
  .plans-grid:has(> :only-child) { grid-template-columns: minmax(0, 25rem); justify-content: center; }
  .plans-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 25rem)); justify-content: center; }
}
.plan {
  --black: #080808;
  --muted: #c8c2bb;
  --heading: Poppins, Arial, sans-serif;
  --subheading: Montserrat, Arial, sans-serif;
  --accent: var(--orange);
  --beam: var(--lime);
  position: relative;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  font-family: Inter, system-ui, sans-serif;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.55rem) clamp(.95rem, 2vw, 1.55rem) 1rem;
  border: 1px solid #32302d;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #1b1a18, #080808 80%);
  color: var(--paper);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}
.plans-grid--interactive:has(.plan:is(:hover, :focus-within)) .plan { opacity: .62; transform: scale(.985); }
.plans-grid--interactive:has(.plan:is(:hover, :focus-within)) .plan:not(:is(:hover, :focus-within)) .plan-price::before { animation-play-state: paused; }
.plans-grid--interactive:has(.plan:is(:hover, :focus-within)) .plan:is(:hover, :focus-within) {
  z-index: 1;
  opacity: 1;
  transform: scale(1.055);
  box-shadow: 0 24px 50px rgb(8 8 8 / .34);
}
.plan-lime { --accent: var(--lime); --beam: var(--orange); }
.plan-featured { border: 2px solid var(--orange); }
.plan-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: .46rem .74rem .4rem .8rem;
  border-radius: 0 calc(1.15rem - 2px) 0 .62rem;
  background: var(--lime);
  color: var(--black);
  font: 700 .6rem/1 var(--heading);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan-featured:has(.plan-badge) h3 { padding-right: 8.6rem; }
.plan:not(.plan-featured):has(.plan-badge) h3 { padding-top: 1.1rem; }
@container (max-width: 20rem) {
  .plan-featured:has(.plan-badge) h3 { padding: 1.1rem 0 0; }
}
.plan h3 { font: 800 clamp(1.33rem, 2.55vw, 2rem)/1.12 var(--heading); letter-spacing: -.055em; text-transform: uppercase; }
.plan:not(.plan-featured) h3 { text-align: center; }
.plan h3, .plan-price strong { overflow-wrap: anywhere; }
.plan h3 span { color: var(--accent); }
.plan > p { margin-top: .45rem; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.plan ul { display: grid; padding: 0; list-style: none; gap: .35rem; margin-block: 1.15rem 1.3rem; font-size: clamp(.82rem, 1.2vw, .94rem); line-height: 1.4; }
.plan li { display: grid; grid-template-columns: .78rem 1fr; align-items: start; gap: .65rem; }
.plan li::before { width: .72rem; height: .4rem; margin-top: .26em; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); content: ""; }
.plan-price {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  min-height: 4.3rem;
  margin-top: auto;
  padding: .62rem .85rem;
  overflow: hidden;
  border-radius: .85rem;
  color: var(--black);
  text-decoration: none;
  transition: transform 220ms ease, filter 160ms ease;
}
.plans-grid--interactive .plan:is(:hover, :focus-within) .plan-price { transform: scale(1.045); }
.plan-price::before {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: 220%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 68%, var(--beam) 84%, #fff 91%, var(--beam) 97%, transparent 100%);
  animation: price-beam 2.6s linear infinite;
  content: "";
}
.plan-price::after {
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: calc(.85rem - 2px);
  background: var(--accent);
  content: "";
}
@keyframes price-beam {
  from { transform: translate(-50%, -50%) rotate(0turn); }
  to { transform: translate(-50%, -50%) rotate(1turn); }
}
a.plan-price:hover { filter: brightness(1.12); }
.plan-price strong { display: block; font: 800 clamp(1.28rem, 2.65vw, 1.8rem)/1 var(--subheading); letter-spacing: -.045em; }
.plan-price small { display: block; margin-top: .17rem; font: 600 .85rem/1.05 var(--subheading); }
.price-arrow { display: grid; flex: none; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--black); color: var(--paper); }
.price-arrow svg { width: 1.25rem; height: 1.25rem; }

@media (max-width: 720px) {
  .plans-grid { grid-template-columns: minmax(0, 27rem); justify-content: center; gap: 1.3rem; }
  .plan { padding: 1.2rem; }
  .plan h3 { font-size: 1.65rem; }
  .plan ul { font-size: .92rem; }
  .plan-price strong { font-size: 1.55rem; }
}

@container (max-width: 17rem) {
  .plan h3 { font-size: clamp(1.22rem, 8.5cqi, 1.6rem); }
  .plan-price strong { font-size: clamp(1.18rem, 8cqi, 1.48rem); }
}

@media (prefers-reduced-motion: reduce) {
  .plan, .plan-price { transition: none; }
  .plans-grid--interactive:has(.plan:is(:hover, :focus-within)) .plan,
  .plans-grid--interactive:has(.plan:is(:hover, :focus-within)) .plan:is(:hover, :focus-within),
  .plans-grid--interactive .plan:is(:hover, :focus-within) .plan-price { transform: none; }
  .plan-price::before { animation: none; }
}
