/* =========================================================
   Pricing page – design enhancements
   ========================================================= */

/* === PAGE HEADER ============================================== */

.page-header {
  position: relative;
  padding: 180px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% -10%, rgba(0, 212, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 110%, rgba(11, 35, 58, 0.04) 0%, transparent 60%);
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-950);
}

/* === INTERVAL TOGGLE ========================================== */

.pricing-interval-toggle {
  display: inline-flex;
  background: var(--slate-100);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 3rem;
}

.pricing-interval-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-interval-btn.active {
  background: white;
  color: var(--navy-900);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pricing-save-badge {
  background: var(--cyan-500);
  color: var(--navy-950);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* === PRICING CARDS ============================================ */

.pricing-section-page {
  padding-bottom: 5rem;
}

.pricing-grid {
  align-items: stretch;
}

/* All cards – cleaner baseline */
.pricing-card {
  border-radius: 18px;
  border: 1.5px solid var(--slate-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: white;
}

.pricing-card:not(.popular):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  border-color: var(--slate-300);
}

.pricing-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.pricing-amount {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-950);
}

/* === POPULAR CARD: INVERTED DARK ============================== */

.pricing-card.popular {
  background: var(--navy-950);
  border: 1.5px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.07), 0 24px 48px rgba(11, 35, 58, 0.35);
  transform: translateY(-6px) scale(1.01);
  position: relative;
  z-index: 1;
}

.pricing-card.popular:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12), 0 32px 60px rgba(11, 35, 58, 0.4);
  border-color: rgba(0, 212, 255, 0.4);
}

/* Remove the old ::before badge text */
.pricing-card.popular::before {
  content: 'Most Popular';
  background: var(--cyan-500);
  color: var(--navy-950);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.pricing-card.popular .pricing-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.popular .pricing-card-name {
  color: white;
}

.pricing-card.popular .pricing-card-description {
  color: rgba(255, 255, 255, 0.55);
}

.pricing-card.popular .pricing-amount {
  color: white;
}

.pricing-card.popular .pricing-amount sup {
  color: var(--cyan-400);
}

.pricing-card.popular .pricing-period {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-card.popular .pricing-yearly-note {
  color: rgba(255, 255, 255, 0.45) !important;
}

.pricing-card.popular .pricing-card-features li {
  color: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.pricing-card.popular .pricing-card-features li::before {
  background: var(--cyan-400);
}

.pricing-card.popular .pricing-card-features li.disabled {
  color: rgba(255, 255, 255, 0.28);
}

.pricing-card.popular .pricing-card-features li.disabled::before {
  background: rgba(255, 255, 255, 0.2);
}

/* Primary button on dark card */
.pricing-card.popular .btn-primary {
  background: var(--cyan-500);
  color: var(--navy-950);
  border-color: var(--cyan-500);
  font-weight: 700;
}

.pricing-card.popular .btn-primary:hover {
  background: var(--cyan-300);
  border-color: var(--cyan-300);
}

/* === COMPARISON TABLE ========================================= */

.comparison-section {
  padding: 5rem 0 4rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
}

.comparison-table {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
}

.comparison-table thead th {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: white;
  padding: 1.125rem 1rem;
}

.comparison-table thead th.comparison-plan-popular {
  background: var(--navy-950);
  color: white;
}

.comparison-table thead .comparison-popular-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-top: 3px;
  opacity: 0.85;
}

.comparison-table tbody td.comparison-plan-popular {
  background: rgba(11, 35, 58, 0.035);
}

.comparison-table tbody tr:hover td.comparison-plan-popular {
  background: rgba(11, 35, 58, 0.06);
}

/* Group header rows */
.comparison-table .comparison-group-header td {
  background: var(--slate-100);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  padding: 0.75rem 1rem;
}

/* === PRICING FAQ – ACCORDION ================================== */

.pricing-faq-section {
  padding: 5rem 0 4rem;
  background: white;
  border-top: 1px solid var(--slate-100);
}

.pricing-faq-section .section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-faq-list {
  margin-top: 2.5rem;
}

/* details/summary accordion */
details.pricing-faq-item {
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  margin-bottom: 0.625rem;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

details.pricing-faq-item[open] {
  border-color: var(--slate-300);
}

details.pricing-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
  user-select: none;
  gap: 1rem;
  transition: background 0.15s ease;
}

details.pricing-faq-item summary::-webkit-details-marker { display: none; }

details.pricing-faq-item summary:hover {
  background: var(--slate-50);
}

details.pricing-faq-item[open] summary {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
}

/* Chevron icon */
details.pricing-faq-item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--slate-400);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.22s ease, background 0.15s ease;
}

details.pricing-faq-item[open] summary::after {
  transform: rotate(180deg);
  background: var(--navy-700);
}

details.pricing-faq-item .faq-body {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.65;
}

details.pricing-faq-item .faq-body p {
  margin: 0;
  max-width: 68ch;
}

/* Fallback: if the page still uses div-based FAQ */
.pricing-faq-item:not(details) {
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.625rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.pricing-faq-item:not(details):hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.pricing-faq-item:not(details) h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pricing-faq-item:not(details) p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.65;
}

/* === RESPONSIVE =============================================== */

@media (max-width: 900px) {
  .pricing-card.popular {
    transform: none;
  }
}
