:root {
  --text: #fefdff;
  --primary: #bb00d9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050308;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.subscription-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 4, 11, 0.86), rgba(8, 4, 11, 0.96)),
    #050308;
}

.subscription-hero {
  position: relative;
  min-height: 226px;
  padding: 30px 0 72px;
  overflow: visible;
  background: #24122b;
  z-index: 10;
  isolation: isolate;
}

.subscription-band,
.pricing-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  background-image: url("./features-pattern.svg");
  background-position: top center;
  background-repeat: repeat;
  background-size: 940px auto;
  opacity: 0.92;
  filter: blur(0.6px);
  z-index: 0;
  pointer-events: none;
}

.subscription-band {
  bottom: 0;
}

.glass-nav,
.nav-menu-panel {
  position: relative;
  z-index: 2;
}

.glass-nav {
  width: min(1240px, calc(100vw - 48px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background:
    linear-gradient(90deg, rgba(60, 59, 59, 0.08), rgba(60, 59, 59, 0.08)),
    linear-gradient(160deg, rgba(241, 152, 255, 0.08), rgba(246, 187, 255, 0.08));
}

.subscription-page.is-menu-open .glass-nav {
  z-index: 6;
}

.icon-button,
.lang-button,
.pill-button,
.outline-pill,
.nav-menu-link,
.nav-install-card,
.switch-tab,
.plan-upgrade,
.buy-plan {
  border: 0;
  background: transparent;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button img {
  width: 40px;
  height: 40px;
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-logo {
  width: 45px;
  height: 60px;
  transform: scale(2.18);
  transform-origin: center;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #fefdff;
  font-size: 16px;
}

.lang-button img {
  width: 20px;
  height: 20px;
}

.pill-button {
  min-width: 82px;
  height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 500;
}

.pill-button-light {
  background: #f6f6f6;
  color: #bb00d9;
  border: 1px solid #e9e8ea;
}

.pill-button-primary {
  background: #bb00d9;
  color: #fff;
  border: 1px solid #bb00d9;
}

.nav-menu-panel {
  position: absolute;
  top: 112px;
  left: max(24px, calc(50% - 632px + 12px));
  width: min(790px, calc(100vw - 48px));
  height: 456px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 40px 30px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(31, 18, 48, 0.97), rgba(24, 13, 35, 0.98)),
    rgba(27, 17, 40, 0.98);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -18px, 0);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.75, 0.2, 1),
    visibility 0s linear 240ms;
  will-change: transform, opacity;
}

.subscription-page.is-menu-open .nav-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.nav-menu-panel::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 30px;
  height: 20px;
  background: rgba(31, 18, 48, 0.98);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.nav-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 78px;
}

.nav-menu-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.nav-menu-column-right {
  gap: 28px;
}

.nav-menu-link {
  display: inline-block;
  padding: 0;
  color: #fefdff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.65px;
  text-align: left;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.nav-menu-link:hover {
  opacity: 0.82;
}

.nav-install-row {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-top: 24px;
}

.nav-install-card {
  width: 345px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border: 2px solid rgba(105, 102, 105, 0.9);
  border-radius: 18px;
  background: #020202;
  color: #fefdff;
  text-align: left;
}

.nav-install-card img {
  width: 38px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-install-card span:last-child {
  max-width: 200px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.42px;
}

.page-title {
  position: relative;
  z-index: 2;
  margin: 52px 0 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 51px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.overview-sheet {
  background: #fff;
  color: #201728;
  min-height: 667px;
  padding: 56px 58px 90px;
}

.overview-copy {
  max-width: 1270px;
  margin: 0 auto;
}

.overview-block + .overview-block {
  margin-top: 26px;
}

.overview-block h2 {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.overview-block p {
  margin: 0;
  max-width: 1210px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(57, 48, 66, 0.76);
}

.overview-cta {
  max-width: 1270px;
  margin: 12px auto 0;
  display: flex;
  justify-content: flex-end;
}

.outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  height: 42px;
  border-radius: 999px;
  padding: 0 24px;
  border: 1.5px solid #c68bff;
  color: #2b1a31;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
}

.pricing-shell {
  position: relative;
  background: #24122b;
  padding: 10px 0 0;
  overflow: hidden;
}

.pricing-band {
  bottom: 230px;
}

.pricing-content {
  position: relative;
  z-index: 1;
  padding-bottom: 64px;
}

.pricing-content .store-row,
.pricing-content .footer-row {
  position: relative;
  z-index: 1;
}

.pricing-header {
  text-align: center;
  padding-top: 4px;
}

.pricing-header h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 38px;
  font-weight: 700;
}

.pricing-header p {
  margin: 12px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.pricing-switch {
  width: 175px;
  height: 46px;
  margin: 24px auto 0;
  padding: 5px;
  border-radius: 13px;
  background: rgba(119, 110, 128, 0.72);
  display: flex;
  gap: 6px;
}

.switch-tab {
  flex: 1;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Inter", sans-serif;
  font-size: 12px;
}

.switch-tab.is-active {
  background: #fff;
  color: #23172a;
}

.pricing-card {
  width: min(938px, calc(100vw - 48px));
  margin: 26px auto 0;
  padding: 28px 26px 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(230, 238, 255, 0.98), rgba(247, 236, 249, 0.98)),
    #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.pricing-card::before,
.pricing-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(191, 205, 255, 0.28);
}

.pricing-card::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
}

.pricing-card::after {
  width: 380px;
  height: 380px;
  right: -140px;
  bottom: -140px;
}

.plan-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.plan-column {
  display: flex;
  flex-direction: column;
}

.plan-summary {
  height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #23172a;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.premium-summary {
  background: rgba(255, 234, 248, 0.9);
}

.premium-gem {
  color: #cf1dff;
  margin-right: 6px;
}

.plan-upgrade,
.buy-plan {
  margin-top: 14px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a200d6, #d01bff);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.plan-body {
  margin-top: 12px;
  min-height: 433px;
  padding: 16px 14px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  position: relative;
  z-index: 1;
}

.plan-body h3 {
  margin: 0 0 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #2d1f33;
}

.plan-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-body li {
  position: relative;
  padding-left: 24px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #221829;
}

.plan-body li + li {
  margin-top: 14px;
}

.plan-body li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  box-sizing: border-box;
}

.plan-body li.is-available::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(-45deg);
}

.plan-body li.is-unavailable {
  color: #402630;
}

.plan-body li.is-unavailable::before {
  border-color: #fe4868;
}

.plan-body li.is-unavailable::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 3px;
  width: 8px;
  border-top: 1.5px solid #fe4868;
  transform: rotate(45deg);
  box-shadow: 0 0 0 0 #fe4868, 0 0 0 0 #fe4868;
}

.buy-plan {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 18px;
  height: 42px;
}

.subscription-footer {
  position: relative;
  z-index: 1;
  background: #24122b;
  padding: 34px 0 34px;
  pointer-events: auto;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
}

.store-badge {
  width: 171px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #5f5d5d;
  border-radius: 8px;
  background: #0c0c0e;
  color: #fff;
  text-decoration: none;
}

.store-badge img {
  width: 32px;
  height: 38px;
  object-fit: contain;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge small {
  font-size: 12px;
  opacity: 0.78;
}

.store-badge strong {
  font-size: 12px;
  font-weight: 500;
}

.footer-row {
  max-width: 1410px;
  margin: 34px auto 0;
  padding: 0 100px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-mark {
  position: relative;
  width: 72px;
  height: 86px;
  flex: 0 0 auto;
  overflow: hidden;
}

.footer-brand img {
  position: absolute;
  top: -18px;
  left: -11px;
  width: 94px;
  height: 125px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  padding-top: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 3;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: -0.5px;
  text-decoration: none;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .glass-nav,
  .nav-menu-panel {
    width: calc(100vw - 24px);
  }

  .page-title {
    font-size: 40px;
  }

  .overview-sheet {
    padding: 42px 28px 60px;
  }

  .pricing-card {
    padding: 22px 18px 20px;
  }

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

  .plan-body {
    min-height: auto;
  }

  .nav-menu-panel {
    top: 92px;
    left: clamp(16px, 4vw, 28px);
    right: clamp(16px, 4vw, 28px);
    width: auto;
    height: auto;
    padding: 24px;
    border-radius: 26px;
  }

  .nav-menu-panel::before {
    left: 48px;
  }

  .nav-menu-grid {
    column-gap: 32px;
  }

  .nav-menu-column,
  .nav-menu-column-right {
    gap: 16px;
  }

  .nav-menu-link {
    font-size: 18px;
  }

  .nav-install-row {
    gap: 12px;
    margin-top: 18px;
  }

  .nav-install-card {
    width: 100%;
    min-height: 60px;
    padding: 10px 14px;
  }

  .nav-install-card img {
    width: 34px;
    height: 36px;
  }

  .nav-install-card span:last-child {
    max-width: none;
    font-size: 14px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 0 clamp(16px, 4vw, 28px) 0;
  }

  .footer-brand {
    gap: 14px;
  }

  .footer-brand-mark {
    width: 62px;
    height: 76px;
  }

  .footer-brand img {
    top: -16px;
    left: -10px;
    width: 84px;
    height: 112px;
  }

  .footer-brand p {
    padding-top: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 24px;
  }

  .footer-links a {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .subscription-hero {
    min-height: 190px;
    padding-top: 20px;
    padding-bottom: 50px;
  }

  .subscription-band,
  .pricing-band {
    background-size: 700px auto;
  }

  .glass-nav {
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    gap: 10px;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-button {
    display: none;
  }

  .pill-button {
    min-width: 68px;
    height: 34px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .page-title {
    margin-top: 38px;
    font-size: 28px;
  }

  .nav-menu-panel {
    top: 86px;
    padding: 20px;
    border-radius: 28px;
  }

  .nav-menu-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu-link {
    font-size: 18px;
  }

  .nav-install-row {
    flex-direction: column;
  }

  .overview-sheet {
    padding: 30px 18px 38px;
  }

  .overview-block h2 {
    font-size: 20px;
  }

  .pricing-shell {
    padding-top: 20px;
  }

  .pricing-header h2 {
    font-size: 30px;
  }

  .pricing-switch {
    width: 160px;
  }

  .outline-pill,
  .store-badge {
    width: min(240px, 100%);
  }

  .overview-cta {
    justify-content: flex-start;
  }

  .store-row {
    flex-direction: column;
    align-items: center;
  }
}
