.pricing-page {
  overflow-x: clip;
  color: #152238;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.pricing-page .page-shell {
  overflow: visible;
}

.pricing-page main {
  display: block;
}

.pricing-page .hero-wrap {
  width: 100%;
  margin: 0;
  padding: 86px clamp(18px, 4.6vw, 88px) 56px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 58%, #f6f8fb 100%);
}

.pricing-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(330px, 0.58fr);
  gap: clamp(34px, 5vw, 104px);
  align-items: center;
  max-width: 1760px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  overflow: visible;
  position: relative;
}

.pricing-page .hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 700;
}

.pricing-page .hero-copy {
  max-width: 560px;
  margin-left: auto;
}

.pricing-page .hero-subtitle {
  max-width: 100%;
  margin: 0;
  color: #506783;
  font-size: clamp(17px, 1.22vw, 21px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-page .hero-note {
  width: min(100%, 460px);
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid #3f6df6;
  color: #36537d;
  background: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.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;
}

.pricing-plans {
  width: 100%;
  margin: 0;
  padding: 48px clamp(18px, 4.6vw, 88px) 76px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #111827 0%, #182238 46%, #f6f8fb 46%, #f6f8fb 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid #dfe7f2;
}

.pricing-plans-shell {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
}

.pricing-plans-intro {
  width: min(100%, 1040px);
  margin: 0 0 34px;
  color: #fff;
}

.pricing-plans-intro span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-plans-intro p {
  max-width: 880px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}

.pricing-plans-intro h1 {
  max-width: 860px;
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 760;
}

.pricing-intro-note {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 650 !important;
}

.pricing-plans-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 30px);
  align-items: start;
}

.price-card {
  height: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(222, 231, 242, 0.9);
  border-radius: 8px;
  padding: clamp(24px, 2.3vw, 42px);
  box-shadow: 0 24px 70px rgba(8, 18, 32, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #3f6df6 0%, #8ab3ff 54%, #d9e6ff 100%);
  opacity: 0.78;
}

.price-card.featured {
  border-color: rgba(169, 193, 255, 0.92);
  box-shadow: 0 30px 88px rgba(27, 63, 165, 0.2);
}

.price-card.featured::before {
  height: 5px;
  background: linear-gradient(90deg, #264ddb 0%, #3f6df6 42%, #9fc0ff 100%);
}

.package-card {
  min-height: 0;
}

.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;
  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: 22px 0 18px;
  border-bottom: 1px solid #e9eff7;
  margin-top: 8px;
  min-height: 108px;
  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;
  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: 8px;
  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);
}

.card-btn.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid #cfdcf1;
}

.billing-options {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  flex: 1;
}

.billing-options.plan-comparison {
  display: block;
  flex: none;
  padding: 16px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: visible;
}

.matrix-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
  border-bottom: 1px solid #e3ebf6;
}

.matrix-topline span {
  color: #8094b2;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-topline strong {
  color: var(--brand);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.plan-matrix {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.matrix-header-row,
.matrix-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) repeat(2, minmax(94px, 0.82fr));
  gap: 8px;
  align-items: stretch;
}

.matrix-header-row {
  padding: 0 2px 2px;
}

.matrix-feature-label,
.matrix-period {
  color: #8094b2;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.matrix-period {
  padding: 9px 10px;
  border: 1px solid #dfe7f2;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  overflow-wrap: anywhere;
}

.matrix-period.is-yearly {
  border-color: #cfeadb;
  background: #f4fbf7;
}

.period-name,
.period-note {
  display: block;
}

.period-name {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.period-note {
  margin-top: 4px;
  color: #8aa0ba;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.matrix-row {
  padding: 8px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 53, 84, 0.04);
}

.matrix-feature,
.matrix-value {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.matrix-feature {
  color: var(--text);
  font-weight: 800;
  gap: 7px;
  position: relative;
  overflow: visible;
}

.matrix-feature-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.matrix-feature-star {
  position: relative;
  z-index: 4;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff7db;
  box-shadow: inset 0 0 0 1px #f0cf6f;
  color: #b77900;
  font-size: 12px;
  line-height: 1;
  cursor: help;
}

.matrix-feature-star::before,
.matrix-feature-star::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.matrix-feature-star::before {
  content: "";
  bottom: calc(100% + 2px);
  border: 6px solid transparent;
  border-top-color: #111827;
}

.matrix-feature-star::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 13px);
  padding: 7px 9px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

.matrix-feature-star:hover::before,
.matrix-feature-star:hover::after,
.matrix-feature-star:focus-visible::before,
.matrix-feature-star:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.matrix-feature-star:focus-visible {
  outline: 2px solid #3f6df6;
  outline-offset: 2px;
}

.matrix-value {
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f7faff;
  color: #36537d;
  font-weight: 700;
  text-align: center;
}

.matrix-value.is-yearly {
  background: #effaf4;
  color: #214f3b;
}

.value-main,
.value-note {
  display: block;
}

.value-main {
  max-width: 100%;
}

.value-note {
  color: #8aa0ba;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.matrix-value.is-missing {
  border-color: #f1d4d4;
  background: #fff6f6;
  color: #8d3030;
}

.matrix-value.is-missing .value-note {
  color: #b15b5b;
}

.matrix-value.is-limited {
  border-color: #f2dfc3;
  background: #fff8ed;
  color: #7a4b16;
}

.matrix-value.is-limited .value-note {
  color: #a46c25;
}

.matrix-value.has-extra {
  border-color: #cbe9d7;
  background: #ecfbf3;
  color: #1d6546;
}

.matrix-value.has-extra .value-note {
  color: #188158;
}

.plan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border-top: 0;
}

.plan-actions .card-btn {
  width: 100%;
}

.billing-option {
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.billing-option.is-complete {
  border-color: #cdebdc;
  background: #f4fbf7;
}

.option-head {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6eef8;
}

.billing-option.is-complete .option-head {
  border-bottom-color: #d7eee1;
}

.option-kicker {
  color: #8094b2;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.option-head strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.feature-pairs {
  margin: 16px 0 18px;
  display: grid;
  gap: 0;
}

.feature-pairs div {
  display: grid;
  grid-template-columns: minmax(92px, 0.78fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e9eff7;
}

.billing-option.is-complete .feature-pairs div {
  border-bottom-color: #dcefe5;
}

.feature-pairs div:last-child {
  border-bottom: 0;
}

.feature-pairs dt,
.feature-pairs dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.42;
}

.feature-pairs dt {
  color: #8094b2;
  font-weight: 800;
}

.feature-pairs dd {
  color: #36537d;
  font-weight: 600;
}

.muted-value {
  color: #9aaac0;
}

.billing-option .card-btn {
  margin-top: auto;
}

.custom-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 48%, rgba(242, 247, 255, 0.98) 100%);
  border-color: rgba(197, 213, 238, 0.95);
}

.custom-card::before {
  background: linear-gradient(90deg, #111827 0%, #3f6df6 52%, #9fc0ff 100%);
}

.custom-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.custom-lead {
  max-width: 620px;
  margin: 14px 0 0;
  color: #506783;
  font-size: 16px;
  line-height: 1.58;
  font-weight: 500;
}

.custom-price-panel {
  margin: 30px 0 20px;
  padding: 22px 24px;
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 53, 84, 0.06);
}

.custom-price-panel span {
  display: block;
  color: #8094b2;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-price-panel strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(40px, 4vw, 58px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
}

.custom-price-panel small {
  display: block;
  max-width: 460px;
  margin-top: 10px;
  color: #617794;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.custom-card-main .card-btn {
  width: min(100%, 280px);
  margin-top: auto;
}

.custom-card-includes {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(22px, 2vw, 32px);
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.custom-list-head {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4edf7;
}

.custom-list-head span {
  color: #8094b2;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-list-head strong {
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  font-weight: 700;
}

.custom-card-includes .feature-list,
.custom-feature-list {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.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: 8px;
  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;
  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;
}

.plan-matrix .check {
  width: 25px;
  height: 25px;
  margin: 0 auto;
  background: #e7f0ff;
}

.dash {
  display: inline-flex;
  justify-content: center;
  width: 25px;
  color: #a6b5c8;
  font-weight: 700;
}

.faq-wrap {
  padding: 92px 64px 0;
}

.faq-wrap .section-head {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  text-align: center;
}

.faq-wrap .section-head h2 {
  width: 100%;
  text-align: center;
}

.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;
}

.faq-card p {
  margin: 0;
  color: #617794;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

.cta-wrap {
  width: 100%;
  margin: 92px 0 0;
  padding: 0 clamp(18px, 4.5vw, 88px);
  background: linear-gradient(135deg, #16263e 0%, #223a5e 100%);
}

.cta-section {
  max-width: 1540px;
  margin: 0 auto;
  padding: 70px 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: visible;
}

.cta-section::before {
  content: none;
}

.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;
  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;
  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);
}

.pricing-modal-open {
  overflow: hidden;
}

.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 20, 35, 0.64);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.pricing-modal[hidden] {
  display: none;
}

.pricing-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pricing-modal__panel {
  width: min(100%, 560px);
  padding: 34px;
  border: 1px solid rgba(203, 216, 235, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(6, 19, 38, 0.32);
  color: var(--text);
  position: relative;
  transform: translateY(12px);
  transition: transform 180ms ease;
}

.pricing-modal.is-open .pricing-modal__panel {
  transform: translateY(0);
}

.pricing-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid #dfe7f2;
  border-radius: 50%;
  background: #f7f9fc;
  color: #36537d;
  cursor: pointer;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  top: 18px;
  right: 18px;
}

.pricing-modal__eyebrow {
  margin: 0 48px 12px 0;
  color: var(--brand);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-modal h2 {
  max-width: 420px;
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

.pricing-modal__copy {
  margin: 16px 0 0;
  color: #506783;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

.pricing-modal__benefits {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f8fbff;
  display: grid;
  gap: 10px;
  list-style: none;
}

.pricing-modal__benefits li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #36537d;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 650;
}

.pricing-modal__benefits li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.pricing-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.pricing-modal__actions .card-btn {
  min-height: 52px;
  height: auto;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.2;
}

.pricing-modal__back {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #617794;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

@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: 108px;
  }
}

@media (max-width: 1100px) {
  .billing-wrap,
  .compare-wrap,
  .faq-wrap,
  .cta-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pricing-page .hero-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pricing-page .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-page .hero-copy {
    max-width: 720px;
    margin-left: 0;
  }

  .pricing-page .hero-note {
    width: min(100%, 520px);
  }

  .pricing-plans {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pricing-plans-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .custom-card {
    grid-template-columns: 1fr;
  }

  .compare-card {
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .pricing-page .hero-wrap {
    padding-top: 48px;
    padding-bottom: 34px;
  }

  .pricing-page .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
    overflow-wrap: normal;
  }

  .pricing-page .hero h1 .highlight {
    display: block;
  }

  .pricing-page .hero-subtitle {
    font-size: 15px;
    line-height: 1.55;
  }

  .pricing-page .hero-note {
    padding: 14px 16px;
    font-size: 13px;
  }

  .billing-toggle {
    width: 100%;
  }

  .toggle-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .plan-sub,
  .price-block {
    min-height: auto;
  }

  .billing-options,
  .custom-card-includes .custom-feature-list,
  .custom-feature-list {
    grid-template-columns: 1fr;
  }

  .billing-options.plan-comparison {
    display: block;
  }

  .matrix-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .feature-pairs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .matrix-header-row,
  .matrix-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .matrix-feature-label {
    display: none;
  }

  .matrix-feature {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0 4px 2px;
  }

  .matrix-row {
    padding: 6px;
    border-radius: 8px;
  }

  .matrix-period {
    padding: 8px 6px;
  }

  .matrix-feature,
  .matrix-value {
    min-height: 36px;
    font-size: 12px;
  }

  .matrix-value {
    padding: 6px 4px;
    border-radius: 6px;
  }

  .plan-actions {
    padding: 12px;
    gap: 10px;
  }

  .plan-actions .card-btn {
    min-height: 48px;
    height: auto;
    padding: 9px 8px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
  }

  .price-card {
    padding: 22px;
    border-radius: 8px;
  }

  .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 0;
    border-radius: 0;
  }

  .pricing-modal {
    padding: 16px;
  }

  .pricing-modal__panel {
    padding: 28px 20px 22px;
  }

  .pricing-modal__actions {
    grid-template-columns: 1fr;
  }
}

/* Readability pass for pricing copy and comparison data. */
.pricing-page .hero-subtitle {
  color: #344b68;
  font-size: clamp(19px, 1.35vw, 23px);
  line-height: 1.62;
}

.pricing-page .hero-note {
  color: #243d5f;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 750;
}

.pricing-plans-intro p,
.section-head p,
.cta-section p {
  font-size: 20px;
  line-height: 1.7;
}

.plan-name,
.matrix-topline span,
.custom-price-panel span,
.custom-list-head span,
.compare-table thead th,
.pricing-modal__eyebrow {
  font-size: 13px;
}

.plan-title {
  font-size: clamp(35px, 2.35vw, 42px);
  line-height: 1.12;
}

.plan-sub,
.custom-lead,
.billing-copy,
.custom-price-panel small,
.faq-card p,
.pricing-modal__copy {
  color: #344b68;
  font-size: 18px;
  line-height: 1.68;
}

.plan-sub {
  color: #203652;
  font-size: 20px;
  line-height: 1.72;
  font-weight: 620;
  max-width: 58ch;
}

.price-unit {
  color: #344b68;
  font-size: 20px;
}

.card-btn {
  min-height: 54px;
  height: auto;
  padding: 13px 20px;
  font-size: 17px;
  line-height: 1.2;
}

.billing-options.plan-comparison {
  padding: 20px;
}

.matrix-topline strong {
  font-size: 16px;
  line-height: 1.35;
}

.plan-matrix {
  gap: 10px;
}

.matrix-header-row,
.matrix-row {
  grid-template-columns: minmax(178px, 1.3fr) repeat(2, minmax(118px, 0.85fr));
  gap: 10px;
}

.matrix-feature-label,
.matrix-period {
  font-size: 12px;
  line-height: 1.25;
}

.period-name {
  font-size: 16px;
  line-height: 1.2;
}

.period-note {
  font-size: 12px;
  line-height: 1.25;
}

.matrix-row {
  padding: 10px;
}

.matrix-feature,
.matrix-value {
  min-height: 52px;
  font-size: 16px;
  line-height: 1.42;
}

.matrix-value {
  padding: 8px 10px;
}

.value-note {
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: 0.03em;
}

.feature-list li,
.pricing-modal__benefits li {
  color: #2c4567;
  font-size: 17px;
  line-height: 1.62;
}

.compare-table tbody td {
  color: #2c4567;
  font-size: 17px;
  line-height: 1.62;
}

.faq-card h3 {
  font-size: 24px;
  line-height: 1.25;
}

@media (min-width: 1101px) {
  .price-card .plan-title {
    min-height: 88px;
  }

  .price-card .plan-sub {
    min-height: 50px;
  }

  .price-card .price-block {
    min-height: 142px;
  }
}

@media (max-width: 760px) {
  .pricing-page .hero-subtitle {
    font-size: 17px;
    line-height: 1.62;
  }

  .pricing-page .hero-note {
    font-size: 15px;
  }

  .pricing-plans-intro p,
  .section-head p,
  .cta-section p {
    font-size: 18px;
  }

  .plan-title {
    font-size: clamp(31px, 9vw, 37px);
  }

  .plan-sub,
  .custom-lead,
  .billing-copy,
  .custom-price-panel small,
  .faq-card p,
  .pricing-modal__copy {
    font-size: 17px;
  }

  .plan-sub {
    font-size: 18px;
    line-height: 1.7;
  }

  .matrix-header-row,
  .matrix-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .matrix-feature {
    grid-column: 1 / -1;
  }

  .matrix-period {
    padding: 10px 8px;
  }

  .period-name,
  .matrix-feature,
  .matrix-value {
    font-size: 15px;
    line-height: 1.38;
  }

  .period-note,
  .value-note {
    font-size: 11px;
  }

  .plan-actions {
    padding: 14px 0 0;
  }

  .plan-actions .card-btn {
    min-height: 54px;
    font-size: 16px;
  }

  .compare-table tbody td {
    font-size: 16px;
    line-height: 1.58;
    width: 100%;
  }

  .compare-table tbody td:first-child {
    width: 100%;
  }

  .compare-table tbody td:not(:first-child)::before {
    font-size: 12px;
  }
}
