/* Pricing — Premium marketing layout */

.section-pricing-hero {
  position: relative;
  isolation: isolate;
}

.section-pricing-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47, 107, 255, 0.15), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.section-pricing-hero .container {
  padding-top: calc(8rem + env(safe-area-inset-top, 0px));
  padding-bottom: 2.5rem;
  text-align: center;
}

.section-pricing-hero .p-header-copy {
  max-width: 44rem;
  margin: 0 auto;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-pricing-hero h1 {
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.5rem;
}

.section-pricing-hero p:not(.eyebrow) {
  font-size: 1.1rem;
  color: rgba(244, 246, 251, 0.84);
}

.pricing-free-band {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.pricing-free-band .band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.4);
}

.pricing-free-band h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #fff 30%, #9bb6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-free-band p {
  margin: 0;
  font-size: 0.95rem;
}

.pricing-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2.5rem !important;
  padding-bottom: 1.5rem !important;
  align-items: stretch;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.p-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

.p-card.is-featured {
  border-color: rgba(47, 107, 255, 0.5);
  background:
    radial-gradient(ellipse at top, rgba(47, 107, 255, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
  box-shadow:
    0 32px 64px -24px rgba(47, 107, 255, 0.35),
    0 0 0 1px rgba(47, 107, 255, 0.15);
}

.p-card.is-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bexo-sky), var(--bexo-blue), var(--bexo-indigo));
}

.p-card.is-featured:hover {
  transform: translateY(-12px);
  box-shadow:
    0 40px 80px -24px rgba(47, 107, 255, 0.45),
    0 0 0 1px rgba(47, 107, 255, 0.25),
    0 0 80px -20px rgba(47, 107, 255, 0.2);
}

.plan-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.85);
  margin-bottom: 1rem;
}

.plan-tag--hot {
  color: #7dd3fc;
  text-shadow: 0 0 12px rgba(47, 107, 255, 0.5);
}

.p-card .price {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: #fff;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.p-card .price .dl {
  font-size: 1.35rem;
  margin-right: 0.1rem;
}

.p-card .price-period {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bexo-muted);
  font-weight: 600;
}

.p-card .price-details {
  font-size: 0.95rem;
  min-height: 3em;
}

.p-card-info {
  margin: 1.5rem 0 2rem;
  flex: 1;
}

.p-card-info p {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: rgba(244, 246, 251, 0.85);
}

.p-card-info i {
  color: var(--bexo-sky);
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(47, 107, 255, 0.4));
}

.pricing-lifetime {
  padding-top: 1rem;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.lifetime-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(47, 107, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.12), transparent 60%),
    rgba(11, 16, 32, 0.9);
  box-shadow: 0 24px 60px -20px rgba(47, 107, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.lifetime-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.5), transparent);
}

.lifetime-copy {
  flex: 1;
  min-width: 18rem;
}

.lifetime-copy h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.75rem;
  background: linear-gradient(135deg, #fff 30%, #9bb6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lifetime-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.lifetime-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(244, 246, 251, 0.85);
}

.lifetime-points i {
  color: var(--bexo-sky);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(47, 107, 255, 0.4));
}

.pricing-note {
  text-align: center;
  padding-bottom: 4rem;
  padding-top: 2rem;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.pricing-note p {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--bexo-muted);
}

@media (max-width: 1024px) {
  .pricing-primary {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-card[data-plan="growth"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .pricing-primary {
    grid-template-columns: 1fr;
  }

  .p-card.is-featured {
    transform: none;
  }
  
  .p-card.is-featured:hover {
    transform: translateY(-4px);
  }
  
  .pricing-free-band .band,
  .lifetime-band {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .lifetime-points {
    justify-content: center;
  }
}
