/* =========================================
   Pricing Page – VisionAI
   White Theme + Rainbow Style
   Author: Zabiullah
   Version: 2.0
========================================= */

/* ===== PRICING HERO ===== */
.pricing-hero {
  padding: 60px 0 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.pricing-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.pricing-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 60px 0 40px;
  background: var(--bg-soft);
}

/* ===== PRICING GRID ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 8px 0 20px;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card ul {
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-card ul li {
  font-size: 14px;
  padding: 8px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

.pricing-card small {
  text-align: center;
}

/* ===== FEATURED / PRO CARD ===== */
.pricing-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--rainbow-border) border-box;
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-6px);
}

.pricing-card.featured .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--rainbow-border) border-box;
}

.pricing-card.featured .badge::before {
  display: none;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.trust-item span {
  font-size: 20px;
}

.trust-item p {
  font-weight: 500;
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
  padding: 80px 0;
  background: #ffffff;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.comparison-table thead {
  background: var(--bg-soft);
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.comparison-table th:first-child {
  min-width: 180px;
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tbody tr:hover {
  background: var(--bg-soft);
}

.comparison-table td strong {
  color: var(--text);
}

.comparison-table .table-cta td {
  padding: 20px;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: none;
}

.comparison-table .table-cta .btn-primary {
  display: inline-flex;
}

/* ===== PRICING FAQ ===== */
.pricing-faq {
  padding: 80px 0;
  background: var(--bg-soft);
}

.pricing-faq .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pricing-faq .faq-item {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  transition: all 0.2s;
}

.pricing-faq .faq-item:hover {
  border-color: #d6dbe3;
  box-shadow: var(--shadow-sm);
}

.pricing-faq .faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-faq .faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.featured {
    transform: none;
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }

  .pricing-faq .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-badges {
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .comparison-table-wrapper {
    border-radius: var(--radius);
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 720px) {
  .pricing-hero {
    padding: 40px 0 24px;
    text-align: center;
  }

  .pricing-hero p {
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto 32px;
  }

  .pricing-card.featured {
    max-width: 100%;
  }

  .pricing-faq .faq-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
  }

  .comparison-table-wrapper {
    border-radius: var(--radius);
  }

  .comparison-table {
    font-size: 12px;
    min-width: 480px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }

  .comparison-table th:first-child {
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .pricing-card .price {
    font-size: 34px;
  }

  .trust-item {
    font-size: 12px;
  }

  .trust-item span {
    font-size: 16px;
  }

  .comparison-table {
    font-size: 11px;
    min-width: 380px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
  }

  .pricing-faq .faq-item {
    padding: 16px 18px;
  }

  .pricing-faq .faq-item h3 {
    font-size: 14px;
  }
}