.pricing-page {
  background: #f5f7fc;
  color: #0f1a33;
}

.pricing-main {
  padding: 24px 0 34px;
  display: grid;
  gap: 18px;
}

.pricing-hero {
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f2f6ff 100%);
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-copy {
  display: grid;
  gap: 10px;
}

.pricing-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
  max-width: 900px;
}

.pricing-hero p {
  margin: 0;
  max-width: 850px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.billing-row h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.billing-row p {
  margin: 0;
  font-size: 0.9rem;
}

.billing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-toggle {
  background: #eef3ff;
  border: 1px solid #d8e1f3;
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}

.billing-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3d4f72;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 14px;
  cursor: pointer;
}

.billing-btn span {
  margin-left: 6px;
  font-size: 0.75rem;
  color: #2b53d0;
}

.billing-btn.active {
  background: linear-gradient(140deg, #2355f5, #1d43c6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(35, 85, 245, 0.28);
}

.billing-btn.active span {
  color: #dce7ff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #dce4f3;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  min-height: 100%;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14, 33, 72, 0.1);
  border-color: #c7d7f7;
}

.plan-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.plan-price-note {
  margin: -2px 0 2px;
  color: #617399;
  font-size: 0.82rem;
}

.plan-subtitle {
  margin: 0;
  color: #586a8d;
  font-size: 0.9rem;
}

.plan-card .price {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1a33;
}

.plan-card .price span {
  margin-left: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #5a6b8f;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #405579;
  flex: 1 1 auto;
}

.plan-card .btn {
  margin-top: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plan-card.featured {
  border: 1px solid #b8cbf9;
  box-shadow: 0 14px 30px rgba(27, 71, 194, 0.12);
  background: linear-gradient(155deg, #ffffff 0%, #edf3ff 100%);
}

.plan-card-enterprise {
  background: linear-gradient(155deg, #fdfefe 0%, #f3f7ff 100%);
}

.plan-tag {
  margin: 0;
  width: max-content;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1140c4;
  background: #dce7ff;
}

.plan-card.is-current {
  border-color: #67b28b;
  box-shadow: 0 10px 24px rgba(41, 143, 85, 0.16);
}

.compare-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.section-head p {
  margin: 4px 0 0;
  color: #5d7196;
}

.compare-table-wrap th,
.compare-table-wrap td {
  border-bottom: 1px solid #e2e8f6;
  padding: 12px;
  text-align: left;
  font-size: 0.92rem;
}

.compare-table-wrap th {
  color: #3a4f73;
  font-weight: 700;
  background: #f6f9ff;
}

.faq-section .faq-list {
  display: grid;
  gap: 8px;
}

.faq-section details {
  border: 1px solid #dfe6f4;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px 12px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: #1d2f54;
}

.faq-section details p {
  margin: 8px 0 2px;
  color: #4d6187;
}

.bottom-cta {
  background: linear-gradient(140deg, #0f1e3f 0%, #1b2f5b 100%);
}

.bottom-cta h3,
.bottom-cta p {
  margin: 0;
  color: #e8efff;
}

.bottom-cta .hero-actions {
  margin-top: 10px;
}

.bottom-cta .btn-ghost {
  border-color: #415b91;
  color: #f2f6ff;
  background: transparent;
}

.pricing-hero-side {
  position: relative;
  display: grid;
  gap: 12px;
}

.pricing-stat-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(178, 196, 235, 0.75);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(20, 45, 94, 0.08);
  backdrop-filter: blur(18px);
}

.pricing-stat-card.accent {
  background: linear-gradient(150deg, #17367d 0%, #2952c8 100%);
  border-color: rgba(51, 95, 224, 0.72);
  color: #f5f8ff;
}

.pricing-stat-card.accent .stat-label,
.pricing-stat-card.accent small {
  color: rgba(236, 242, 255, 0.84);
}

.pricing-stat-card strong {
  font-size: 1.42rem;
  line-height: 1.1;
}

.pricing-stat-card small {
  color: #65779d;
  font-size: 0.84rem;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #49618e;
}

.pricing-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-meta-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f4a81;
  font-size: 0.8rem;
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.price.is-flashing {
  animation: pricePulse 320ms ease;
}

@keyframes pricePulse {
  0% {
    opacity: 0.55;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .pricing-main {
    gap: 12px;
  }

  .compare-table-wrap .table-wrap {
    overflow-x: auto;
  }

  .compare-table-wrap table {
    min-width: 680px;
  }
}
