/* ============================================================
   BrainFusion V2 Pricing Page
   ============================================================
   "Confident Clarity" -- trustworthy, no-tricks pricing for
   educators making budget decisions. Single visual emphasis
   on the recommended plan.
   ============================================================ */

/* ---- Plan Cards ---- */
.v2-plan-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--v2-border-default);
  background: var(--v2-surface-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v2-shadow-neutral-lg);
}

/* Recommended plan highlight */
.v2-plan-card--featured {
  border-color: var(--v2-brand-primary);
  border-width: 2px;
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--v2-brand-primary) 15%, transparent);
}

.v2-plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--v2-brand-primary);
  color: var(--v2-text-inverse);
  font-family: var(--v2-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.v2-plan-name {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--v2-text-primary);
  margin-bottom: 0.75rem;
}

.v2-plan-price {
  font-family: var(--v2-font-display);
  font-weight: 800;
  color: var(--v2-text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.v2-plan-price-amount {
  font-size: 2.5rem;
}

.v2-plan-price-currency {
  font-size: 1.25rem;
  vertical-align: top;
  margin-right: 0.125rem;
}

.v2-plan-price-period {
  font-family: var(--v2-font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--v2-text-muted);
}

.v2-plan-promo {
  font-size: 0.8rem;
  color: var(--v2-brand-primary);
  font-weight: 600;
  margin-top: 0.25rem;
}

.v2-plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  flex: 1;
}

.v2-plan-features li {
  font-size: 0.9rem;
  color: var(--v2-text-secondary);
  padding: 0.4rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}

.v2-plan-features li i {
  color: var(--v2-brand-primary);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ---- Credit Package Cards ---- */
.v2-credit-card {
  border-radius: 0.75rem;
  border: 1px solid var(--v2-border-default);
  background: var(--v2-surface-card);
  padding: 1.5rem;
  text-align: center;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
}

.v2-credit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v2-shadow-neutral-md);
  border-color: var(--v2-brand-primary);
}

.v2-credit-amount {
  font-family: var(--v2-font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--v2-text-primary);
  line-height: 1;
}

.v2-credit-label {
  font-size: 0.8rem;
  color: var(--v2-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-top: 0.25rem;
}

.v2-credit-price {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--v2-text-primary);
  margin-top: 0.75rem;
}

.v2-credit-unit {
  font-size: 0.8rem;
  color: var(--v2-text-muted);
  font-weight: 400;
  margin-top: 0.125rem;
}

/* Best value badge */
.v2-credit-card--best {
  border-color: var(--v2-brand-accent);
  position: relative;
}

.v2-credit-card--best::before {
  content: 'Best Value';
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--v2-brand-accent);
  color: var(--v2-text-on-accent);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ---- Special Pricing Cards ---- */
.v2-special-card {
  border-radius: 1rem;
  border: 1px solid var(--v2-border-default);
  background: var(--v2-surface-card);
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.v2-special-card:hover {
  box-shadow: var(--v2-shadow-neutral-md);
}

.v2-special-card-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.v2-special-card-features li {
  font-size: 0.9rem;
  color: var(--v2-text-secondary);
  padding: 0.3rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.v2-special-card-features li i {
  color: var(--v2-brand-primary);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ---- CTA Section ---- */
.v2-pricing-cta {
  background: linear-gradient(135deg, var(--v2-cta-gradient-start) 0%, var(--v2-cta-gradient-end) 100%);
  color: var(--v2-cta-section-text);
  position: relative;
  overflow: hidden;
}

.v2-pricing-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--v2-cta-orb) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Scroll Reveal ---- */
.v2-pricing-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-pricing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.v2-pricing-stagger > .v2-pricing-reveal:nth-child(1) { transition-delay: 0ms; }
.v2-pricing-stagger > .v2-pricing-reveal:nth-child(2) { transition-delay: 100ms; }
.v2-pricing-stagger > .v2-pricing-reveal:nth-child(3) { transition-delay: 200ms; }
.v2-pricing-stagger > .v2-pricing-reveal:nth-child(4) { transition-delay: 300ms; }

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .v2-pricing-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .v2-plan-card:hover,
  .v2-credit-card:hover {
    transform: none;
  }
}
