/* Pricing cards — matches dashboard upgrade.php (public landing) */

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(80px + 24px) 16px 48px;
}

@media (min-width: 768px) {
  .page-wrap {
    padding: calc(80px + 40px) 24px 64px;
  }
}

.plans-hero {
  text-align: center;
  margin-bottom: 28px;
}

.plans-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plans-hero p {
  color: var(--gray);
  font-size: 17px !important;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--dark-3);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.billing-tab {
  position: relative;
  padding: 14px 28px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.billing-tab.active {
  color: var(--dark-1);
  background: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.billing-tab .save-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(19, 141, 254, 0.15);
  color: var(--primary);
  border-radius: 4px;
  vertical-align: middle;
}

.billing-tab.active .save-badge {
  background: rgba(0, 0, 0, 0.15);
  color: var(--dark-1);
}

.plans-panel {
  display: none;
  animation: pricingFadeIn 0.35s ease;
}

.plans-panel.active {
  display: block;
}

@keyframes pricingFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.pricing-grid--single {
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .pricing-grid--multi {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .pricing-grid--multi {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid--multi .plan-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

.plan-card {
  position: relative;
  background: linear-gradient(165deg, var(--dark-2) 0%, var(--dark-3) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 141, 254, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.plan-card--featured {
  border-color: rgba(19, 141, 254, 0.5);
  box-shadow: 0 0 0 1px rgba(19, 141, 254, 0.2), 0 16px 48px rgba(19, 141, 254, 0.1);
}

.plan-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 50%, rgba(59, 130, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(19, 141, 254, 0.3);
}

.plan-card--featured .plan-tag {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  border: none;
}

.plan-name {
  font-size: 22px !important;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  padding-right: 72px;
}

.plan-desc {
  font-size: 15px !important;
  color: var(--gray-muted);
  margin-bottom: 20px;
}

.plan-price-block {
  margin-bottom: 8px;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  white-space: nowrap;
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
}

.plan-period {
  font-size: 1.125rem;
  color: var(--gray);
  font-weight: 500;
  margin-left: 0.2em;
}

.royalty-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 12px;
  background: rgba(19, 141, 254, 0.1);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px !important;
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.4;
}

.plan-features li i {
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.75rem;
  width: 14px;
  text-align: center;
}

.plan-features li.is-yes i { color: var(--primary); }
.plan-features li.is-yes span { color: var(--gray); }

.plan-features li.is-no i { color: var(--red); }
.plan-features li.is-no span {
  color: var(--gray-muted);
  opacity: 0.75;
}

.plan-cta {
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  display: block;
  text-decoration: none;
}

.plan-cta--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0b6fd4 100%);
  color: var(--dark-1);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.plan-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--primary-glow);
  color: var(--dark-1);
}

.plan-cta--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(19, 141, 254, 0.45);
}

.plan-cta--outline:hover {
  background: var(--primary-dim);
  color: var(--primary);
}
