.pricing-page {
  --pricing-bg: #0e1014;
  --pricing-surface: #15171b;
  --pricing-surface-raised: #202328;
  --pricing-line: rgba(255, 255, 255, 0.12);
  --pricing-muted: #a0a4ad;
  --pricing-text: #f4f5f7;
  --pricing-soft: #d1d4db;
  --pricing-plus: #8db7ff;
  --pricing-pro: #e7bd77;
  --pricing-ultra: #c9a5ff;
  background: var(--pricing-bg);
  color: var(--pricing-text);
  font-family: var(--font-main);
}

.pricing-page .page-shell {
  background: #0e1014;
}

.pricing-page .site-header {
  background: rgba(11, 12, 15, 0.76);
}

.pricing-page .site-header.scrolled {
  background: rgba(11, 12, 15, 0.94);
  box-shadow: 0 1px 0 var(--pricing-line);
}

.pricing-main {
  overflow: hidden;
}

.pricing-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.pricing-footer a:focus-visible {
  outline: 2px solid var(--pricing-plus);
  outline-offset: 4px;
}

.pricing-section {
  position: relative;
  padding: 108px 0;
}

.pricing-section--plans {
  background: #0e1014;
}

.pricing-section--plans .section-heading {
  max-width: none;
}

.pricing-section--benefits {
  background: #0e1014;
  scroll-margin-top: 96px;
}

.pricing-section--paygo {
  background: #0e1014;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  color: var(--pricing-text);
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--pricing-muted);
  font-size: 16px;
  line-height: 1.8;
}

.duration-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin: 26px auto 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.duration-switch__button {
  min-width: 72px;
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #8e949f;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.duration-switch__button:hover {
  color: #f4f5f7;
}

.duration-switch__button.is-active {
  background: #f3f4f6;
  color: #111318;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

.duration-switch__button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--pricing-plus);
  outline-offset: 2px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 610px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--pricing-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #292b30 0%, #17191d 62%, #111216 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--plan-accent);
  content: '';
  filter: blur(80px);
  opacity: 0.1;
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.plan-card--plus { --plan-accent: var(--pricing-plus); }
.plan-card--pro { --plan-accent: var(--pricing-pro); }
.plan-card--ultra { --plan-accent: var(--pricing-ultra); }

.plan-card--featured {
  border-color: rgba(231, 189, 119, 0.58);
  box-shadow: 0 25px 80px rgba(231, 189, 119, 0.08);
}

.paygo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-card h3 {
  margin: 0;
  color: var(--pricing-text);
  font-family: var(--font-code);
  font-size: 40px;
  letter-spacing: -0.05em;
}

.plan-card__prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
}

.plan-price {
  display: none;
  align-items: baseline;
  gap: 10px;
}

.plan-price.is-active {
  display: flex;
}

.plan-price span {
  color: #858b96;
  font-size: 12px;
}

.plan-price strong {
  color: var(--pricing-text);
  font-family: var(--font-code);
  font-size: 42px;
  letter-spacing: -0.03em;
}

.plan-card__divider {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-card__includes {
  margin-top: 22px;
}

.plan-card__includes-title {
  margin: 0;
  color: #aeb4bf;
  font-size: 15px;
  font-weight: 700;
}

.plan-card__benefits {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card__benefits li {
  position: relative;
  padding-left: 21px;
  color: #d9dce2;
  font-size: 13px;
  line-height: 1.45;
}

.plan-card__benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--plan-accent);
  content: '✓';
  font-family: var(--font-code);
  font-weight: 800;
}

.plan-card__unavailable {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: #45484e;
  color: #aeb2b9;
  cursor: not-allowed;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
}

.plan-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.plan-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: transparent;
  color: #d6d9df;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.plan-card__more:hover {
  border-color: var(--plan-accent);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.plan-card__more span {
  color: var(--plan-accent);
  font-family: var(--font-code);
  font-size: 16px;
}

.benefit-table-shell {
  padding: 8px;
  border: 1px solid var(--pricing-line);
  border-radius: 20px;
  background: #17191e;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
}

.benefit-table-scroll {
  overflow-x: auto;
  border-radius: 14px;
}

.benefit-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--pricing-soft);
  font-size: 13px;
}

.benefit-table th,
.benefit-table td {
  padding: 17px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  vertical-align: middle;
}

.benefit-table thead th {
  height: 72px;
  background: #1d2026;
  color: #f6f7f9;
  font-size: 13px;
  font-weight: 800;
}

.benefit-table thead th:first-child,
.benefit-table tbody th {
  width: 25%;
  text-align: left;
}

.benefit-table tbody th {
  color: #e8eaee;
  font-weight: 500;
}

.benefit-table tbody tr:last-child th,
.benefit-table tbody tr:last-child td {
  border-bottom: 0;
}

.benefit-table tbody tr:hover th,
.benefit-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.benefit-table__tier {
  position: relative;
}

.benefit-table__tier--plus { color: var(--pricing-plus) !important; }
.benefit-table__tier--pro { color: var(--pricing-pro) !important; }
.benefit-table__tier--ultra { color: var(--pricing-ultra) !important; }

.benefit-table__tier span {
  display: block;
  margin-top: 5px;
  color: #8f7447;
  font-size: 10px;
  font-weight: 500;
}

.benefit-table td.is-muted {
  color: #777c87;
}

.benefit-table td.is-positive {
  color: #d7e5ff;
  font-weight: 700;
}

.benefit-table__double {
  color: #f2c14e;
  font-weight: 800;
  white-space: nowrap;
}

.benefit-table__note {
  margin: 14px 12px 4px;
  color: #777d88;
  font-size: 12px;
  line-height: 1.6;
}

.paygo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.paygo-card {
  position: relative;
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--pricing-line);
  border-radius: 16px;
  background: linear-gradient(145deg, #1a1c21, #121418);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.paygo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
}

.paygo-card__head {
  margin-top: 12px;
  padding-right: 52px;
  color: #e3e6eb;
  font-size: 26px;
  font-weight: 700;
}

.paygo-card__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 0;
  background: transparent;
  color: var(--pricing-pro);
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  animation: paygo-breathe 2.2s ease-in-out infinite;
}

.paygo-card > strong {
  display: block;
  margin-top: 0;
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 18px;
  letter-spacing: -0.05em;
}

@keyframes paygo-breathe {
  0%,
  100% {
    font-size: 13px;
  }

  50% {
    font-size: 17px;
  }
}

.invite-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 42px;
  padding: 28px 32px;
  border: 1px solid rgba(141, 183, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(141, 183, 255, 0.1), rgba(255, 255, 255, 0.025));
}

.invite-callout__icon {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(141, 183, 255, 0.42);
  border-radius: 18px;
  color: var(--pricing-plus);
  font-family: var(--font-code);
  font-size: 20px;
  font-weight: 800;
}

.invite-callout h3 {
  margin: 0;
  color: #f5f6f8;
  font-size: clamp(20px, 3vw, 28px);
}

.invite-callout p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--pricing-muted);
  font-size: 14px;
  line-height: 1.8;
}

.pricing-footer {
  width: 100%;
  max-width: none;
  min-height: 112px;
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--pricing-line);
  background: #08090b;
}

.pricing-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.pricing-footer .footer-col {
  width: auto;
}

.pricing-footer .footer-company {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.pricing-footer span,
.pricing-footer a {
  color: #9da2ac;
  font-size: 12px;
}

.pricing-footer a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .plan-grid,
  .paygo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-card:last-child {
    grid-column: 1 / -1;
  }

  .pricing-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 868px) {
  .pricing-container {
    width: min(100% - 32px, 620px);
  }

  .pricing-section {
    padding: 76px 0;
  }

  .pricing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .pricing-footer .footer-links {
    justify-content: flex-start;
  }

  .duration-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin: 26px auto 0;
  }

  .duration-switch__button {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
  }
}

@media (max-width: 620px) {
  .plan-grid,
  .paygo-grid {
    grid-template-columns: 1fr;
  }

  .plan-card:last-child {
    grid-column: auto;
  }

  .plan-card {
    min-height: auto;
    padding: 24px;
  }

  .benefit-table-shell {
    padding: 5px;
  }

  .benefit-table th,
  .benefit-table td {
    padding: 14px 11px;
  }

  .invite-callout {
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }

  .invite-callout__icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 16px;
  }
}
