/* PRICING PAGE STYLES */

/* ==================== PRICING HERO ==================== */
.pricing-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f3ff 100%);
}

.pricing-hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pricing-hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin: 16px 0;
  color: #061844;
}

.pricing-hero-content .lead {
  font-size: 18px;
  color: #334E7B;
  margin: 16px 0 40px;
  line-height: 1.6;
}

/* ==================== BILLING TOGGLE ==================== */
.billing-toggle {
  display: flex;
  justify-content: center;
  margin: 40px 0 0;
}

.toggle-group {
  display: inline-flex;
  background: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  gap: 8px;
}

.toggle-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #334E7B;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.toggle-btn:hover {
  background: #f5f7ff;
}

.toggle-btn.active {
  background: #0052CC;
  color: white;
}

.toggle-btn .badge-small {
  display: inline-block;
  background: #FFF5E6;
  color: #CC7700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 700;
}

.toggle-btn.active .badge-small {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ==================== PRICING CARDS SECTION ==================== */
.pricing-cards-section {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

/* ==================== PRICING CARD ==================== */
.pricing-card {
  background: white;
  border: 1px solid #E8ECF1;
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: #0052CC;
  box-shadow: 0 20px 40px rgba(0, 82, 204, 0.1);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: #0052CC;
  background: linear-gradient(135deg, #F7F9FF 0%, #EEF2FF 100%);
  box-shadow: 0 20px 40px rgba(0, 82, 204, 0.15);
  transform: scale(1.02);
}

/* Ribbon for featured card */
.pricing-card.featured .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0052CC, #0066FF);
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 16px rgba(0, 82, 204, 0.25);
}

/* HEADER */
.pricing-header {
  margin-bottom: 32px;
}

.plan-badge {
  display: inline-block;
  background: #F0F3FF;
  color: #0052CC;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.plan-badge.featured-badge {
  background: #E6F0FF;
  color: #0052CC;
}

.pricing-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: #061844;
  margin: 12px 0 8px;
}

.plan-description {
  font-size: 14px;
  color: #667085;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* PRICING */
.pricing-price {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E8ECF1;
}

.price-amount {
  display: block;
  font-size: 48px;
  font-weight: 900;
  color: #061844;
  line-height: 1;
  margin-bottom: 8px;
}

.price-period {
  display: block;
  font-size: 14px;
  color: #667085;
  font-weight: 600;
}

.price-period small {
  display: block;
  font-size: 12px;
  color: #98A2B3;
  font-weight: 400;
  margin-top: 4px;
}

/* FEATURES */
.pricing-features {
  flex: 1;
  margin-bottom: 32px;
}

.pricing-features h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #667085;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  margin-top: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334E7B;
  line-height: 1.5;
}

.feature-list .check {
  display: inline-block;
  color: #0052CC;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.feature-list .x {
  display: inline-block;
  color: #D0D5DD;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.feature-list.limited li {
  color: #98A2B3;
}

.feature-list.limited .x {
  color: #98A2B3;
}

/* ACTIONS */
.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.pricing-actions .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
}

.pricing-actions small {
  display: block;
  font-size: 12px;
  color: #98A2B3;
  margin: 0;
}

/* ==================== ADD-ONS SECTION ==================== */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.addon-card {
  background: white;
  border: 1px solid #E8ECF1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.addon-card:hover {
  border-color: #0052CC;
  box-shadow: 0 12px 24px rgba(0, 82, 204, 0.08);
  transform: translateY(-2px);
}

.addon-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.addon-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #061844;
  margin: 12px 0;
}

.addon-price {
  font-size: 20px;
  font-weight: 700;
  color: #0052CC;
  margin: 12px 0;
}

.addon-price span {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
}

.addon-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
  font-size: 13px;
  color: #667085;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addon-features li:before {
  content: "•";
  color: #0052CC;
  font-weight: 700;
  margin-right: 8px;
}

.addon-card .btn {
  width: 100%;
  margin-top: 16px;
}

/* ==================== COMPARISON TABLE ==================== */
.comparison-table-wrap {
  margin-top: 60px;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table thead {
  background: linear-gradient(135deg, #F7F9FF 0%, #EEF2FF 100%);
  border-bottom: 2px solid #E8ECF1;
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 700;
  color: #061844;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table th.feature-col {
  width: 25%;
}

.comparison-table th.plan-col {
  width: 18.75%;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid #E8ECF1;
  font-size: 13px;
  color: #667085;
}

.comparison-table tbody tr:hover {
  background: #F8F9FF;
}

.comparison-table td.feature-name {
  font-weight: 600;
  color: #061844;
  background: #F8F9FF;
}

.comparison-table td.check-cell {
  color: #0052CC;
  font-weight: 700;
  text-align: center;
}

.comparison-table td.x-cell {
  color: #D0D5DD;
  text-align: center;
  font-weight: 600;
}

/* ==================== VALUE SECTION ==================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.value-card {
  background: white;
  border: 1px solid #E8ECF1;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: #0052CC;
  box-shadow: 0 12px 24px rgba(0, 82, 204, 0.08);
  background: linear-gradient(135deg, #F8F9FF 0%, #F0F3FF 100%);
}

.value-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #061844;
  margin: 0 0 12px 0;
}

.value-card p {
  font-size: 14px;
  color: #667085;
  line-height: 1.6;
  margin: 0;
}

/* ==================== FAQ ==================== */
.faq {
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq details {
  border-bottom: 1px solid #E8ECF1;
  padding: 20px 0;
  cursor: pointer;
}

.faq details:first-child {
  border-top: 1px solid #E8ECF1;
}

.faq summary {
  font-size: 16px;
  font-weight: 600;
  color: #061844;
  list-style: none;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "▶";
  display: inline-block;
  width: 20px;
  margin-right: 12px;
  color: #0052CC;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq details[open] summary::before {
  transform: rotate(90deg);
}

.faq details[open] summary {
  color: #0052CC;
}

.faq p {
  margin: 16px 0 0 32px;
  font-size: 14px;
  color: #667085;
  line-height: 1.6;
}

.faq p strong {
  color: #061844;
}

/* ==================== TRUST SECTION ==================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.trust-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 32px 24px;
  color: white;
}

.trust-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.trust-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* ==================== ROI SECTION ==================== */
.pricing-roi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.roi-content {
  max-width: 500px;
}

.roi-content .eyebrow {
  color: #0052CC;
}

.roi-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: #061844;
  margin: 16px 0;
  line-height: 1.3;
}

.roi-content p {
  font-size: 16px;
  color: #667085;
  margin: 16px 0 24px;
  line-height: 1.6;
}

.roi-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.metric-item {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #E8ECF1;
}

.metric-number {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: #0052CC;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  display: block;
  font-size: 13px;
  color: #667085;
  font-weight: 600;
}

/* ==================== CTA SECTION ==================== */
.cta-pricing {
  text-align: center;
  padding: 80px 0;
}

.cta-pricing h2 {
  font-size: 40px;
  font-weight: 900;
  color: white;
  margin: 0 0 12px 0;
}

.cta-pricing p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 14px 32px;
  font-size: 15px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid .pricing-card:nth-child(4) {
    grid-column: 1 / 3;
    justify-self: center;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pricing-hero-content h1 {
    font-size: 32px;
  }

  .pricing-hero-content .lead {
    font-size: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-grid .pricing-card:nth-child(4) {
    grid-column: auto;
    transform: scale(1);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-roi {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .roi-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .metric-number {
    font-size: 28px;
  }

  .metric-label {
    font-size: 11px;
  }

  .toggle-group {
    flex-wrap: wrap;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .comparison-table th.plan-col,
  .comparison-table td {
    padding: 12px 8px;
    font-size: 12px;
  }

  .comparison-table th.feature-col {
    width: 40%;
  }

  .comparison-table th.plan-col {
    width: 15%;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .price-amount {
    font-size: 36px;
  }

  .value-grid,
  .addons-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pricing-hero-content h1 {
    font-size: 24px;
  }

  .pricing-hero {
    padding: 48px 0;
  }

  .pricing-cards-section {
    padding: 48px 0;
  }

  .pricing-grid {
    gap: 24px;
    margin-top: 40px;
  }

  .price-amount {
    font-size: 28px;
  }

  .pricing-card h3 {
    font-size: 20px;
  }

  .roi-content h2 {
    font-size: 24px;
  }

  .cta-pricing h2 {
    font-size: 24px;
  }

  .cta-pricing p {
    font-size: 14px;
  }

  .roi-metrics {
    grid-template-columns: 1fr;
  }
}
