/**
 * LicensesWP Core Demo — Pricing page atmosphere & 3D commerce UI.
 */

.lwcd-pricing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(63, 212, 232, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(11, 91, 211, 0.28), transparent 50%),
    linear-gradient(180deg, #e8f3fc 0%, #f3f8fc 55%, transparent 100%);
}

.lwcd-pricing-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 91, 211, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 91, 211, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.lwcd-pricing-hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lwcd-pricing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(63, 212, 232, 0.45) 42%, rgba(11, 91, 211, 0.28) 70%, transparent 78%);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.5),
    0 24px 50px rgba(11, 91, 211, 0.16);
  animation: lwcdPricingFloat 10s ease-in-out infinite;
}

.lwcd-pricing-orb--xl {
  width: min(280px, 42vw);
  height: min(280px, 42vw);
  top: -8%;
  right: -4%;
  opacity: 0.55;
}

.lwcd-pricing-orb--lg {
  width: min(170px, 28vw);
  height: min(170px, 28vw);
  bottom: 8%;
  left: -3%;
  opacity: 0.5;
  animation-delay: -3s;
}

.lwcd-pricing-orb--md {
  width: 88px;
  height: 88px;
  top: 38%;
  left: 18%;
  opacity: 0.45;
  animation-delay: -5s;
}

.lwcd-pricing-shape {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(63, 212, 232, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(11, 91, 211, 0.14);
  transform: rotate(18deg) perspective(600px) rotateX(12deg) rotateY(-18deg);
  animation: lwcdPricingTilt 12s ease-in-out infinite;
}

.lwcd-pricing-shape--a {
  width: 72px;
  height: 72px;
  top: 22%;
  right: 18%;
}

.lwcd-pricing-shape--b {
  width: 48px;
  height: 48px;
  bottom: 18%;
  right: 28%;
  animation-delay: -4s;
  border-radius: 50%;
}

.lwcd-pricing-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.lwcd-pricing-hero h1 {
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--navy, #041833);
  margin: 0 0 0.85rem;
  max-width: 16ch;
}

.lwcd-pricing-hero__lead {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted, rgba(10, 31, 54, 0.72));
  max-width: 42rem;
  line-height: 1.6;
}

.lwcd-pricing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lwcd-pricing-cube {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(11, 91, 211, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 36px rgba(4, 24, 51, 0.12);
  transform: rotateX(18deg) rotateY(-24deg);
  animation: lwcdPricingFloat 11s ease-in-out infinite;
  pointer-events: none;
}

.lwcd-pricing-cube--1 {
  top: 12%;
  right: 12%;
  opacity: 0.55;
}

.lwcd-pricing-cube--2 {
  bottom: 16%;
  left: 8%;
  width: 40px;
  height: 40px;
  opacity: 0.4;
  animation-delay: -2.5s;
}

@keyframes lwcdPricingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes lwcdPricingTilt {
  0%, 100% { transform: rotate(18deg) perspective(600px) rotateX(12deg) rotateY(-18deg) translateY(0); }
  50% { transform: rotate(22deg) perspective(600px) rotateX(16deg) rotateY(-12deg) translateY(-10px); }
}

body.page-template-template-pricing .pricing-showcase--page,
.pricing-showcase.pricing-showcase--page {
  padding-top: clamp(2rem, 4vw, 3rem);
}

body.page-template-template-pricing .pricing-card--showcase,
.pricing-showcase--page .pricing-card--showcase {
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(6px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

body.page-template-template-pricing .pricing-card__glow,
.pricing-showcase--page .pricing-card__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 212, 232, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

body.page-template-template-pricing .pricing-card--showcase > *:not(.pricing-card__glow),
.pricing-showcase--page .pricing-card--showcase > *:not(.pricing-card__glow) {
  position: relative;
  z-index: 1;
}

body.page-template-template-pricing .pricing-card--showcase:hover,
.pricing-showcase--page .pricing-card--showcase:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 56px rgba(11, 91, 211, 0.16);
}

body.page-template-template-pricing .pricing-card--featured,
.pricing-showcase--page .pricing-card--featured {
  transform: translateY(-14px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 30px 64px rgba(11, 91, 211, 0.22);
}

body.page-template-template-pricing .pricing-card--featured:hover,
.pricing-showcase--page .pricing-card--featured:hover {
  transform: translateY(-18px) scale(1.025);
}

body.page-template-template-pricing .pricing-card__cta,
.pricing-showcase--page .pricing-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  min-height: 3rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(11, 91, 211, 0.22);
}

body.page-template-template-pricing .pricing-showcase__benefits,
.pricing-showcase--page .pricing-showcase__benefits {
  margin-bottom: 2rem;
}

body.page-template-template-pricing .pricing-showcase__benefits li,
.pricing-showcase--page .pricing-showcase__benefits li {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 91, 211, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 28px rgba(4, 24, 51, 0.06);
}

.lwcd-pricing-faq {
  position: relative;
  overflow: hidden;
}

.lwcd-pricing-faq .faq-item {
  background: #fff;
  border: 1px solid rgba(11, 91, 211, 0.12);
  border-radius: 14px;
  padding: 0.35rem 1rem;
  box-shadow: 0 10px 24px rgba(4, 24, 51, 0.05);
  margin-bottom: 0.65rem;
}

.lwcd-pricing-faq .faq-item summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--navy, #041833);
  padding: 0.85rem 0;
}

.lwcd-pricing-faq .faq-item p {
  margin: 0 0 0.95rem;
  color: var(--muted, rgba(10, 31, 54, 0.72));
}

.lwcd-pricing-cta .cta-band__inner {
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(63, 212, 232, 0.32), transparent 52%),
    linear-gradient(135deg, #041833 0%, #0a3d8f 55%, #0b5bd3 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 22px 48px rgba(4, 24, 51, 0.28);
  color: #e8f4fc;
}

.lwcd-pricing-cta .cta-band__inner::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(63, 212, 232, 0.4), transparent 72%);
  opacity: 0.85;
}

.lwcd-pricing-cta .cta-band__inner > div {
  position: relative;
  z-index: 1;
}

.lwcd-pricing-cta h2 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(4, 24, 51, 0.25);
}

.lwcd-pricing-cta p {
  color: rgba(232, 244, 252, 0.88) !important;
}

.lwcd-pricing-cta .hero__actions {
  position: relative;
  z-index: 1;
}

.lwcd-pricing-cta .btn--ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
}

.lwcd-pricing-cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.lwcd-pricing-cta .btn--primary {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

/* Responsive */
@media (max-width: 899px) {
  body.page-template-template-pricing .pricing-card--featured,
  .pricing-showcase--page .pricing-card--featured {
    transform: none;
  }

  body.page-template-template-pricing .pricing-card--featured:hover,
  .pricing-showcase--page .pricing-card--featured:hover {
    transform: translateY(-6px);
  }

  .lwcd-pricing-shape,
  .lwcd-pricing-cube {
    opacity: 0.35;
  }
}

@media (max-width: 560px) {
  .lwcd-pricing-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lwcd-pricing-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .lwcd-pricing-orb--xl,
  .lwcd-pricing-shape--a {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lwcd-pricing-orb,
  .lwcd-pricing-shape,
  .lwcd-pricing-cube,
  body.page-template-template-pricing .pricing-card--showcase {
    animation: none !important;
    transition: none !important;
  }
}

/* RTL */
html[dir="rtl"] .lwcd-pricing-hero__inner,
html[dir="rtl"] .lwcd-pricing-hero h1,
html[dir="rtl"] .lwcd-pricing-hero__lead,
html[dir="rtl"] .lwcd-pricing-faq,
body.rtl .lwcd-pricing-hero__inner,
body.rtl .lwcd-pricing-hero h1,
body.rtl .lwcd-pricing-hero__lead,
body.rtl .lwcd-pricing-faq {
  text-align: right;
}

html[dir="rtl"] .lwcd-pricing-orb--xl,
body.rtl .lwcd-pricing-orb--xl {
  right: auto;
  left: -4%;
}

html[dir="rtl"] .lwcd-pricing-orb--lg,
body.rtl .lwcd-pricing-orb--lg {
  left: auto;
  right: -3%;
}
