.pricing-page .page-shell {
  overflow: visible;
}

.pricing-page main {
  display: block;
}

.pricing-page .hero-wrap {
  padding: 82px 64px 0;
}

.pricing-page .hero {
  max-width: 1540px;
  min-height: 0;
  margin: 0 auto;
  padding: 74px 54px 56px;
  border-radius: 42px 42px 0 0;
  background: linear-gradient(180deg, #f7f9fc 0%, #f3f7fb 100%);
  box-shadow: 0 22px 58px rgba(31, 53, 84, 0.10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 16% 18%, rgba(63, 109, 246, 0.10), transparent 16%),
    radial-gradient(circle at 83% 18%, rgba(63, 109, 246, 0.09), transparent 18%);
  pointer-events: none;
}

.pricing-page .hero > * {
  position: relative;
  z-index: 1;
}

.pricing-page .hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.pricing-page .hero-subtitle {
  max-width: 780px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pricing-page .hero-note {
  margin-top: 18px;
  color: #36537d;
  font-size: 14px;
  font-weight: 600;
}

.billing-wrap {
  padding: 28px 64px 0;
}

.billing-inner {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.billing-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dfe7f2;
  box-shadow: 0 6px 16px rgba(31, 53, 84, 0.05);
  flex-wrap: wrap;
  justify-content: center;
}

.toggle-btn {
  border: 0;
  background: transparent;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  color: #617794;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn.active {
  background: #eaf1ff;
  color: var(--brand);
}

.save-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ecfbf3;
  color: #21a26a;
  font-size: 11px;
  font-weight: 800;
}

.cards-wrap {
  padding: 34px 64px 0;
}

.cards-grid {
  max-width: 1540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: #fff;
  border: 1px solid #dfe7f2;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 16px 34px rgba(31, 53, 84, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border-color: #d6e3ff;
  box-shadow: 0 24px 56px rgba(63, 109, 246, 0.12);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 0 10px;
  height: 28px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.plan-name {
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8094b2;
  margin: 0 0 14px;
}

.plan-title {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.plan-sub {
  margin: 12px 0 0;
  color: #617794;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  min-height: 70px;
}

.trial-pill {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 0 12px;
  height: 32px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #dce8fb;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.price-block {
  padding: 24px 0 18px;
  border-bottom: 1px solid #e9eff7;
  margin-top: 8px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.price-main {
  color: var(--text);
  font-size: 48px;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.custom-price {
  font-size: clamp(38px, 4vw, 50px);
}

.price-unit {
  font-size: 17px;
  color: #617794;
  font-weight: 600;
  margin-bottom: 7px;
}

.billing-copy {
  margin-top: 10px;
  color: #617794;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  min-height: 39px;
}

.cta-stack {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-top: 20px;
}

.card-btn {
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}

.card-btn.primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(63, 109, 246, 0.18);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: #36537d;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.feature-list li::before {
  content: "✓";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.feature-list a,
.compare-table a {
  color: var(--brand);
  font-weight: 800;
}

.price-foot {
  margin-top: auto;
  padding-top: 22px;
  color: #8aa0ba;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.compare-wrap {
  padding: 92px 64px 0;
}

.compare-shell {
  max-width: 1540px;
  margin: 0 auto;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 3vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.section-head p {
  margin: 14px auto 0;
  max-width: 640px;
  color: #617794;
  font-size: 17px;
  line-height: 1.52;
  font-weight: 500;
}

.compare-card {
  border: 1px solid #dfe7f2;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 53, 84, 0.07);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table thead th {
  background: #f8fbff;
  color: #8094b2;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid #e9eff7;
}

.compare-table tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid #e9eff7;
  font-size: 14px;
  line-height: 1.45;
  color: #36537d;
  font-weight: 500;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  width: 34%;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.dash {
  color: #a6b5c8;
  font-weight: 700;
}

.faq-wrap {
  padding: 92px 64px 0;
}

.faq-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.faq-card {
  border: 1px solid #dfe7f2;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7f9fc 0%, #f4f7fb 100%);
  padding: 24px;
}

.faq-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.faq-card p {
  margin: 0;
  color: #617794;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

.cta-wrap {
  padding: 92px 64px 0;
}

.cta-section {
  max-width: 1480px;
  margin: 0 auto;
  padding: 72px 48px;
  border-radius: 36px;
  background: linear-gradient(180deg, #1f3554 0%, #233d61 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.06), transparent 16%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.07), transparent 18%);
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  max-width: 920px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.cta-section p {
  max-width: 720px;
  margin: 18px auto 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.52;
  font-weight: 500;
}

.pricing-page .hero-cta {
  height: 56px;
  padding: 0 18px 0 24px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 18px 34px rgba(53, 107, 255, 0.22);
}

.pricing-page .arrow-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  font-size: 24px;
  transform: translateY(-1px);
}

@media (min-width: 1101px) {
  .price-card .plan-title {
    min-height: 70px;
    display: flex;
    align-items: flex-start;
  }

  .price-card .plan-sub {
    min-height: 72px;
  }

  .price-card .trial-pill {
    margin-top: 0;
  }

  .price-card .price-block {
    min-height: 148px;
  }
}

@media (max-width: 1100px) {
  .pricing-page .hero-wrap,
  .billing-wrap,
  .cards-wrap,
  .compare-wrap,
  .faq-wrap,
  .cta-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pricing-page .hero {
    padding: 58px 24px 46px;
    border-radius: 28px 28px 0 0;
  }

  .cards-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .compare-card {
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .pricing-page .hero h1 {
    font-size: clamp(34px, 9vw, 50px);
  }

  .billing-toggle {
    width: 100%;
  }

  .toggle-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .plan-sub,
  .price-block {
    min-height: auto;
  }

  .price-card {
    padding: 22px;
    border-radius: 24px;
  }

  .price-main {
    font-size: 40px;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tbody tr {
    border-bottom: 1px solid #e9eff7;
  }

  .compare-table tbody td {
    padding: 12px 16px;
    border-bottom: 0;
  }

  .compare-table tbody td:first-child {
    padding-top: 18px;
  }

  .compare-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
    color: #8094b2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 56px 24px;
    border-radius: 28px;
  }
}
