/* pricing.css — Pricing page styles */

.pricing-page {
  min-height: 100dvh;
  background: #0d0d1a;
  color: #fff;
  padding: 40px 20px 60px;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* Header */
.pricing-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.pricing-back-link {
  display: inline-block;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.pricing-back-link:hover { color: #00d4ff; }

.pricing-page .pricing-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fff;
  background-clip: unset;
  font-style: normal;
}

.pricing-subtitle {
  color: #999;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Cards Grid — 2-card layout (Free + Mathmatix+) */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
}

/* Individual Card */
.pricing-card {
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s, transform 0.2s;
}
.pricing-card:hover {
  border-color: #555;
  transform: translateY(-2px);
}

/* Featured card (Best Value) */
.pricing-card-featured {
  border-color: #7b2ff7;
  box-shadow: 0 0 24px rgba(123, 47, 247, 0.15);
}
.pricing-card-featured:hover {
  border-color: #9b5ff7;
}

/* Active tier highlight */
.pricing-card-active {
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Badge */
.card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #aaa;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 20px;
}
.card-badge-featured {
  background: #7b2ff7;
  color: #fff;
}
.card-badge-premium {
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  color: #fff;
}

/* M+ Logo on Mathmatix+ card */
.card-plus-logo {
  display: block;
  margin: 12px auto 4px;
  border-radius: 14px;
}

/* Plan Name */
.pricing-page .card-plan-name {
  font-size: 20px;
  font-weight: 600;
  margin: 12px 0 8px;
  text-align: center;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #fff;
  background-clip: unset;
}

/* Price */
.card-price {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  color: #00d4ff;
}
.card-price-cents {
  font-size: 22px;
}
.card-price-mo {
  font-size: 16px;
  color: #888;
  font-weight: 400;
}

.card-period {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Real-time equivalent note */
.card-realtime-note {
  text-align: center;
  color: #00d4ff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 20px;
}
.card-realtime-note i {
  margin-right: 4px;
}

/* Comparison note above CTA */
.card-compare-note {
  text-align: center;
  color: #888;
  font-size: 12px;
  font-style: italic;
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid #2a2a3e;
}
.card-compare-note i {
  color: #7b2ff7;
  margin-right: 4px;
}

/* Feature List */
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.card-features li {
  font-size: 14px;
  padding: 6px 0;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-features li i.fa-check { color: #00d4ff; font-size: 12px; }
.card-features li i.fa-lock  { color: #555; font-size: 12px; }
.card-features .feature-locked {
  color: #555;
}

/* CTA Buttons */
.card-cta {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.card-cta-current {
  background: #2a2a3e;
  color: #666;
  cursor: default;
}
.card-cta-buy {
  background: #1e1e3a;
  color: #00d4ff;
  border: 1px solid #00d4ff;
}
.card-cta-buy:hover:not(:disabled) {
  background: #00d4ff;
  color: #0d0d1a;
}
.card-cta-premium {
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  color: #fff;
}
.card-cta-premium:hover:not(:disabled) {
  background: linear-gradient(135deg, #33dfff, #9b5ff7);
  transform: scale(1.02);
}
.card-cta:disabled {
  opacity: 0.6;
  cursor: default;
}

/* School Banner */
.pricing-school-banner {
  max-width: 600px;
  margin: 40px auto 0;
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #aaa;
  font-size: 14px;
}
.pricing-school-banner i {
  font-size: 24px;
  color: #7b2ff7;
}
.pricing-school-banner strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

/* Skip link */
.pricing-skip {
  text-align: center;
  margin-top: 24px;
}
.pricing-skip-link {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.pricing-skip-link:hover { color: #aaa; }

/* Responsive: 1-col on mobile */
@media (max-width: 560px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 16px;
  }
  .pricing-page .pricing-title { font-size: 26px; }
  .pricing-page { padding: 24px 16px 40px; }
}
