/* ===================== PRICING PAGE ===================== */

/* Hero */
.pricing-hero {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a8a 100%);
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}
.pricing-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.ph-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.2; }
.ph-shape-1 { width: 500px; height: 500px; background: radial-gradient(#818cf8, #4f46e5); top: -150px; right: -100px; animation: float1 10s ease-in-out infinite; }
.ph-shape-2 { width: 350px; height: 350px; background: radial-gradient(#06b6d4, #0891b2); bottom: -80px; left: -80px; animation: float2 13s ease-in-out infinite; }

.pricing-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 16px 0 20px;
}
.pricing-hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pricing-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Pricing Cards */
.pricing-cards-section {
  padding: 80px 0 60px;
  background: var(--bg-soft);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 840px;
  margin: 0 auto 36px;
}

.pricing-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.pricing-card-featured {
  background: linear-gradient(145deg, #1e1b4b, #2d2980);
  border-color: transparent;
  box-shadow: 0 16px 60px rgba(79,70,229,0.3);
  position: relative;
}

.pricing-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
  letter-spacing: 0.04em;
}

.pricing-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.18);
  color: var(--primary);
}

.pricing-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0 0;
}
.pricing-card-featured .pricing-card-name { color: #fff; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0;
}
.price-currency { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.price-amount   { font-size: 3.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-period   { font-size: 0.9rem; color: var(--text-secondary); margin-left: 4px; }

.pricing-card-featured .price-currency,
.pricing-card-featured .price-amount,
.pricing-card-featured .price-period { color: #fff; }
.pricing-card-featured .price-period { color: rgba(255,255,255,0.6); }

.pricing-card-per {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: -12px 0 0;
}
.pricing-card-featured .pricing-card-per { color: #67e8f9; }

.pricing-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 4px;
}
.pricing-card-featured .pricing-card-desc { color: rgba(255,255,255,0.65); }

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card-featured .pricing-features-list li { color: rgba(255,255,255,0.75); }
.pf-check      { color: var(--success); font-weight: 700; flex-shrink: 0; }
.pf-check-light { color: #6ee7b7; font-weight: 700; flex-shrink: 0; }
.pf-dash       { color: var(--text-muted); flex-shrink: 0; }
.pf-muted      { opacity: 0.55; }

.pricing-btn { margin-top: auto; }

.btn-primary-light {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.pricing-card-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: -12px;
}

.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto;
}

/* Free trial banner */
.free-trial-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  max-width: 840px;
  margin: 32px auto 48px;
  flex-wrap: wrap;
}
[data-theme="dark"] .free-trial-banner {
  background: var(--bg-card);
  border-color: var(--border);
}
.ftb-icon { font-size: 2rem; flex-shrink: 0; }
.ftb-content { flex: 1; min-width: 200px; }
.ftb-content strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ftb-content p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }
.ftb-btn { flex-shrink: 0; }

/* Included section */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.included-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}
.included-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.included-icon { font-size: 1.8rem; margin-bottom: 14px; }
.included-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.included-card p  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(79,70,229,0.2); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: var(--font);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 22px 18px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* Bottom CTA section */
.pricing-cta-section {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e3a8a 100%);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.pcs-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.2; pointer-events: none; }
.pcs-shape-1 { width: 500px; height: 500px; background: radial-gradient(#818cf8,#4f46e5); top: -150px; left: -100px; }
.pcs-shape-2 { width: 350px; height: 350px; background: radial-gradient(#06b6d4,#0891b2); bottom: -80px; right: -80px; }

.pricing-cta-inner { position: relative; z-index: 1; }
.pricing-cta-inner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}
.pricing-cta-inner p { font-size: 1.05rem; color: rgba(255,255,255,0.65); margin: 0 0 36px; }
.pricing-cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Nav active state */
.nav-links a.active { color: var(--primary) !important; }

/* Responsive */
@media (max-width: 768px) {
  .pricing-hero { padding: 130px 0 70px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { margin-top: 16px; }
  .included-grid { grid-template-columns: 1fr 1fr; }
  .free-trial-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .included-grid { grid-template-columns: 1fr; }
  .pricing-cta-btns { flex-direction: column; align-items: center; }
}

/* ── 3-column pricing grid ── */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1080px !important;
  gap: 24px !important;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr !important; } }

/* Alt badge (purple-teal) for term plan */
.pricing-card-badge-alt {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  box-shadow: 0 4px 12px rgba(79,70,229,0.4) !important;
}

/* Included icon — SVG version */
.included-icon {
  width: 48px !important; height: 48px !important;
  font-size: unset !important;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.included-icon svg { width: 22px; height: 22px; color: var(--primary); transition: color 0.3s ease; }
.included-card:hover .included-icon { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.included-card:hover .included-icon svg { color: #fff; }

/* Free trial banner — SVG icon */
.ftb-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ftb-icon svg { width: 22px; height: 22px; color: #fff; }

/* ── Comparison Table ── */
.compare-section { background: var(--bg); }
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}
.compare-table thead tr {
  background: var(--bg-soft);
  border-bottom: 2px solid var(--border);
}
.compare-table thead th {
  padding: 20px 24px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}
.compare-table .compare-feature-col { text-align: left; width: 35%; }
.compare-featured-col {
  background: rgba(79,70,229,0.05);
  border-left: 2px solid rgba(79,70,229,0.2);
  border-right: 2px solid rgba(79,70,229,0.2);
}
thead .compare-featured-col { background: rgba(79,70,229,0.1); }
.compare-price {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}
.compare-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease;
}
.compare-table tbody tr:hover { background: var(--bg-soft); }
.compare-table tbody td {
  padding: 14px 24px;
  color: var(--text-secondary);
  text-align: center;
  vertical-align: middle;
}
.compare-table tbody td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.ct-yes { color: var(--success); font-weight: 700; font-size: 1rem; }
.ct-no  { color: var(--text-muted); font-size: 1rem; }
.compare-cta-row td { padding: 20px 24px; border-bottom: none; }
