/* ============================================================
   PRICING PAGE — Toggle, Compare Table, FAQ
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────── */
.pricing-hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}
.pricing-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}
.pricing-hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BILLING TOGGLE ──────────────────────────────────────── */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}
.billing-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  font-family: var(--font-sans);
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.billing-btn.active {
  background: var(--bg-overlay);
  color: var(--text-primary);
}
.billing-save {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  margin-left: calc(var(--space-1) * -1);
}

/* ── PRICING SECTION ─────────────────────────────────────── */
.pricing-page-section {
  padding: var(--space-6) 0 var(--space-24);
}
.pricing-price-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}
.pricing-annual-note {
  display: none;
  font-size: var(--text-xs);
  color: var(--accent);
  margin-top: 2px;
}
.billing-annual .pricing-annual-note { display: block; }

/* Price transition */
.pricing-price-val {
  display: inline-block;
  transition: opacity var(--transition-fast);
}

/* ── COMPARISON TABLE ────────────────────────────────────── */
.compare-section {
  padding: var(--space-24) 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-12);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  width: 220px;
  background: var(--bg-raised);
}
.compare-table thead th {
  background: var(--bg-surface);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
}
.compare-table thead th.col-featured {
  background: rgba(16,185,129,0.06);
  color: var(--accent-light);
  border-left: 1px solid rgba(16,185,129,0.2);
  border-right: 1px solid rgba(16,185,129,0.2);
}
.compare-table td.col-featured {
  background: rgba(16,185,129,0.03);
  border-left: 1px solid rgba(16,185,129,0.1);
  border-right: 1px solid rgba(16,185,129,0.1);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--bg-surface); }
.compare-table tbody tr:hover td.col-featured { background: rgba(16,185,129,0.05); }

.compare-section-row td {
  background: var(--bg-surface) !important;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-top: 1px solid var(--border-light);
}
.compare-check { color: var(--accent); font-size: 15px; }
.compare-dash  { color: var(--text-disabled); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section { padding: var(--space-24) 0; }
.faq-list {
  max-width: 720px;
  margin: var(--space-12) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item.open { border-color: var(--border-light); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--text-primary); }
.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-hero { padding: var(--space-12) 0 var(--space-8); }
  .billing-toggle { flex-wrap: wrap; justify-content: center; }
  .compare-table th:first-child,
  .compare-table td:first-child { width: 140px; font-size: var(--text-xs); }
}
