/**
 * Fintradax — Pricing Page Styles
 * /pricing dedicated page
 */

/* ============================================
   PRICING HERO
   ============================================ */
.pricing-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.pricing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(74, 158, 255, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(74, 158, 255, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.pricing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin: 0 auto;
}

.pricing-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.pricing-hero-lead {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 48px;
}

.pricing-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.ph-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ph-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
}

.ph-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.ph-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* ============================================
   PRICING PLANS
   ============================================ */
.pricing-plans {
  padding: 40px 0 var(--section-pad);
}

.pricing-plans .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.pricing-plans .pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
}

.pricing-plans .pricing-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.pricing-plans .pricing-featured {
  border-color: rgba(74, 158, 255, 0.25);
  background: var(--bg-featured);
}

.pricing-plans .pricing-featured:hover {
  border-color: rgba(74, 158, 255, 0.4);
}

.pricing-plans .pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 4px;
}

.pricing-card-top {
  margin-bottom: 24px;
}

.pricing-card-top h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.pricing-plans .pricing-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.pricing-plans .pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-plans .pricing-currency {
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  align-self: flex-start;
  margin-top: 8px;
}

.pricing-plans .pricing-value {
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-plans .pricing-period {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  margin-left: 6px;
}

.pricing-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-plans .pricing-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 28px;
}

.pricing-card-features {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  flex: 1;
}

.features-label {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-card-features ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-card-features li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.pricing-overage {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.pricing-overage strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   FEATURE COMPARISON TABLE
   ============================================ */
.pricing-compare {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table thead th {
  padding: 20px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
}

.compare-table .feature-col {
  text-align: left;
  width: 40%;
}

.compare-table .plan-col {
  width: 20%;
}

.compare-table .plan-featured {
  color: var(--accent);
}

.group-row td {
  padding: 16px 24px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  background: rgba(74, 158, 255, 0.03);
}

.compare-table tbody tr:not(.group-row) td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.feature-name {
  color: var(--text-secondary);
}

.plan-val {
  text-align: center;
}

.check-icon {
  color: var(--accent);
}

.dash-icon {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 16px;
}

.soon-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.text-val {
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   UNIT ECONOMICS / COST BREAKDOWN
   ============================================ */
.pricing-economics {
  padding: var(--section-pad) 0;
}

.econ-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

.econ-left h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.econ-left p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.econ-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.econ-card h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.econ-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.econ-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.econ-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.econ-line small {
  font-size: 11px;
  color: var(--text-muted);
}

.econ-line:last-child {
  border-bottom: none;
}

.econ-total {
  font-weight: 500;
  color: var(--text-primary);
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border-light);
  border-bottom: none;
}

.econ-total span:last-child {
  color: var(--accent);
  font-size: 16px;
}

.econ-margin {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.econ-margin strong {
  color: var(--accent);
}

/* Competitor row */
.competitor-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.competitor-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.35s var(--ease-out);
}

.competitor-card:first-child {
  border-color: rgba(74, 158, 255, 0.25);
  background: var(--bg-featured);
}

.competitor-label {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.competitor-price {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.competitor-card:first-child .competitor-price {
  color: var(--accent);
}

.competitor-price small {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
}

.competitor-detail {
  font-size: 13px;
  color: var(--text-muted);
}

.competitor-vs {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   FAQ
   ============================================ */
.pricing-faq {
  padding: var(--section-pad) 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.3s var(--ease-out);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition:
    transform 0.35s var(--ease-out),
    color 0.3s var(--ease-out);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s var(--ease-out),
    padding 0.4s var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   PRICING PAGE CTA
   ============================================ */
.pricing-page-cta {
  padding: var(--section-pad) 0;
}

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

/* Mobile defaults */
@media (max-width: 767px) {
  .pricing-hero {
    padding: 130px 0 60px;
  }

  .pricing-hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .ph-stat-divider {
    width: 40px;
    height: 1px;
  }

  .pricing-plans .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-plans .pricing-card {
    padding: 32px 24px 28px;
  }

  .pricing-plans .pricing-value {
    font-size: 44px;
  }

  .econ-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .competitor-row {
    flex-direction: column;
  }

  .competitor-vs {
    justify-content: center;
  }

  .faq-question {
    font-size: 15px;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .pricing-plans .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-plans .pricing-featured {
    order: -1;
    grid-column: 1 / -1;
  }

  .pricing-hero-stats {
    flex-direction: row;
  }

  .ph-stat-divider {
    width: 1px;
    height: 40px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .pricing-plans .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-plans .pricing-featured {
    order: 0;
    grid-column: auto;
  }

  .econ-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  /* Excluded features */
  .pricing-card-features li.excluded {
    opacity: 0.35;
  }

  .pricing-card-features li.excluded svg {
    color: var(--text-muted);
  }
}
