/* Pricing Page Styles */

.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0 0 0.75rem;
}

.pricing-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600, #4b5563);
  margin: 0 0 2rem;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  background: var(--gray-100, #f3f4f6);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600, #4b5563);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-btn.active {
  background: white;
  color: var(--gray-900, #111827);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.save-badge {
  background: var(--green-100, #d1fae5);
  color: var(--green-700, #047857);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* Pricing Card */
.pricing-card {
  background: white;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--gray-300, #d1d5db);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pricing-card.popular {
  border: 2px solid var(--primary, #2563eb);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.pricing-card.coming-soon {
  opacity: 0.85;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary, #2563eb);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.pricing-card .card-header {
  margin-bottom: 1.5rem;
}

.plan-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.plan-badge.free { background: var(--gray-100, #f3f4f6); color: var(--gray-600, #4b5563); }
.plan-badge.core { background: var(--blue-100, #dbeafe); color: var(--blue-700, #1d4ed8); }
.plan-badge.plans { background: var(--orange-100, #ffedd5); color: var(--orange-700, #c2410c); }
.plan-badge.estimating { background: var(--red-100, #fee2e2); color: var(--red-700, #b91c1c); }

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
  margin: 0 0 0.75rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-500, #6b7280);
}

.plan-price .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900, #111827);
  line-height: 1;
}

.plan-price .period {
  font-size: 0.9rem;
  color: var(--gray-500, #6b7280);
  margin-left: 2px;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--gray-500, #6b7280);
  margin: 0;
  line-height: 1.4;
}

/* Features List */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--gray-700, #374151);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features .check {
  width: 18px;
  height: 18px;
  color: var(--green-500, #22c55e);
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA Button */
.plan-cta {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: 2px solid var(--gray-200, #e5e7eb);
  border-radius: 10px;
  background: white;
  color: var(--gray-700, #374151);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-cta:hover {
  border-color: var(--gray-300, #d1d5db);
  background: var(--gray-50, #f9fafb);
}

.plan-cta.primary {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  color: white;
}

.plan-cta.primary:hover {
  background: var(--primary-dark, #1d4ed8);
  border-color: var(--primary-dark, #1d4ed8);
}

.plan-cta.disabled {
  background: var(--gray-100, #f3f4f6);
  border-color: var(--gray-100, #f3f4f6);
  color: var(--gray-400, #9ca3af);
  cursor: not-allowed;
}

/* Footer */
.pricing-footer {
  text-align: center;
  color: var(--gray-600, #4b5563);
}

.pricing-footer a {
  color: var(--primary, #2563eb);
  font-weight: 500;
}

.pricing-footer a:hover {
  text-decoration: underline;
}

