.pricing-page {
  position: relative;
  display: grid;
  gap: 30px;
  padding-top: 26px;
  padding-bottom: 50px;
  color: var(--ink);
}

.pricing-page::before {
  content: "";
  position: absolute;
  inset: -26px 0 0;
  z-index: -1;
  border-radius: 30px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(75, 91, 255, 0.22),
      transparent 42%
    ),
    linear-gradient(180deg, rgba(8, 10, 28, 0.9), rgba(3, 7, 18, 0.92));
  pointer-events: none;
}

.pricing-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 8px 0 24px;
  text-align: center;
}

.pricing-kicker {
  display: none;
}

.pricing-title {
  margin: 0;
  color: #f8fbff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.pricing-note {
  max-width: 720px;
  margin: 0;
  color: rgba(230, 235, 255, 0.64);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.65;
}

.pricing-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  align-items: center;
  width: min(390px, 100%);
  margin-top: 8px;
  padding: 4px;
  border: 1px solid rgba(132, 146, 255, 0.18);
  border-radius: 18px;
  background: rgba(8, 14, 34, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.pricing-toggle-button {
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(235, 239, 255, 0.7);
  font-size: 16px;
  font-weight: 820;
}

.pricing-toggle-button.active {
  background: linear-gradient(135deg, #6d60ff, #8f64ff);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(113, 91, 255, 0.28);
}

.pricing-grid {
  width: min(1180px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 24px;
  border: 1px solid rgba(130, 145, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(28, 34, 64, 0.86), rgba(16, 21, 42, 0.88)),
    rgba(14, 18, 36, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.28);
}

.pricing-card.highlight {
  border-color: rgba(126, 90, 255, 0.72);
  background:
    linear-gradient(160deg, rgba(35, 34, 88, 0.9), rgba(21, 24, 54, 0.92)),
    rgba(17, 20, 42, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(126, 90, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 54px rgba(55, 42, 140, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -20px;
  right: 32px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7467ff, #8e72ff);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(112, 93, 255, 0.36);
}

.pricing-card-name {
  color: #eef2ff;
  font-size: 20px;
  font-weight: 880;
  line-height: 1.2;
}

.pricing-price-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.pricing-currency {
  margin-bottom: 10px;
  color: rgba(240, 244, 255, 0.84);
  font-size: 0;
  font-weight: 820;
}

.pricing-currency::before {
  content: "¥";
  font-size: 24px;
}

.pricing-price {
  color: #fff;
  font-size: 60px;
  line-height: 0.86;
  font-weight: 920;
  letter-spacing: 0;
}

.pricing-subtitle,
.pricing-validity {
  color: rgba(225, 231, 255, 0.58);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.55;
}

.pricing-subtitle {
  margin-top: 12px;
}

.pricing-divider {
  height: 1px;
  margin: 20px 0 16px;
  background: rgba(255, 255, 255, 0.08);
}

.pricing-points {
  color: #f6f8ff;
  font-size: 26px;
  font-weight: 880;
  line-height: 1.2;
}

.pricing-validity {
  margin-top: 8px;
}

.pricing-feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.pricing-feature-list li {
  display: flex;
  gap: 13px;
  align-items: center;
  color: rgba(232, 236, 255, 0.82);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.45;
}

.pricing-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(130, 114, 255, 0.7);
  border-radius: 999px;
  color: #8d7cff;
}

.pricing-check .icon {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

.pricing-cta {
  margin-top: auto;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: transparent;
  color: #f6f8ff;
  font-size: 18px;
  font-weight: 880;
}

.pricing-cta.primary,
.pricing-card:not(:first-child) .pricing-cta {
  border-color: rgba(150, 132, 255, 0.42);
  background: linear-gradient(135deg, #7166ff, #8b4dff);
  box-shadow: 0 14px 30px rgba(113, 91, 255, 0.28);
}

.pricing-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6px;
  padding: 28px 34px;
  border: 1px solid rgba(130, 145, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(24, 30, 56, 0.76), rgba(12, 17, 34, 0.82)),
    rgba(11, 16, 34, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.26);
}

.pricing-benefit-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 0 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-benefit-card:first-child {
  padding-left: 0;
}

.pricing-benefit-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.pricing-benefit-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(133, 120, 255, 0.24);
  color: #d3ccff;
}

.pricing-benefit-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

.pricing-benefit-card strong {
  color: #f4f7ff;
  font-size: 20px;
  font-weight: 880;
  line-height: 1.2;
}

.pricing-benefit-card p {
  margin: 8px 0 0;
  color: rgba(225, 231, 255, 0.58);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.45;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 20px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.page-footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.page-footer-brand-name {
  display: block;
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
}

.page-footer-brand-main {
  background: linear-gradient(135deg, #f7fbff 0%, #83d7ff 52%, #c7b7ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-footer-brand-ai {
  display: inline-block;
  margin-left: 0.5px;
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-weight: 880;
  background: linear-gradient(135deg, #ff9a44 0%, #b35cff 48%, #4b7dff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-footer-brand span {
  color: rgba(224, 230, 255, 0.56);
  font-size: 12px;
  line-height: 1.6;
}

.page-footer-tagline-mobile {
  display: none;
}

.page-footer-copy {
  color: rgba(224, 230, 255, 0.56);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }

  .pricing-benefit-card:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .pricing-benefit-card:nth-child(2n + 1) {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .page.page-pricing {
    padding-bottom: max(28px, calc(18px + env(safe-area-inset-bottom)));
  }

  .pricing-page {
    gap: 18px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pricing-page::before {
    inset: -18px 0 0;
    border-radius: 22px;
  }

  .pricing-hero {
    gap: 10px;
    padding: 0 0 14px;
  }

  .pricing-title {
    font-size: 32px;
    line-height: 1.16;
  }

  .pricing-note {
    max-width: 21em;
    font-size: 14px;
  }

  .pricing-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(236px, 100%);
    padding: 4px;
  }

  .pricing-toggle-button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pricing-card {
    min-height: 0;
    padding: 18px 10px 12px;
    border-radius: 14px;
  }

  .pricing-badge {
    top: -11px;
    right: 10px;
    min-height: 24px;
    padding: 0 9px;
    font-size: 10px;
  }

  .pricing-card-name {
    font-size: 14px;
  }

  .pricing-price-row {
    margin-top: 12px;
  }

  .pricing-price {
    font-size: 32px;
  }

  .pricing-subtitle,
  .pricing-validity,
  .pricing-feature-list li {
    font-size: 11px;
  }

  .pricing-divider {
    margin: 12px 0 10px;
  }

  .pricing-points {
    font-size: 15px;
  }

  .pricing-feature-list {
    gap: 7px;
    margin: 12px 0 14px;
  }

  .pricing-check {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    border-width: 1.5px;
  }

  .pricing-cta {
    min-height: 38px;
    border-radius: 12px;
    font-size: 11px;
  }

  .pricing-benefits {
    width: min(430px, calc(100vw - 18px));
    justify-self: center;
    grid-template-columns: repeat(2, minmax(0, 196px));
    justify-content: center;
    gap: 22px 18px;
    overflow-x: visible;
    padding: 18px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .pricing-benefit-card,
  .pricing-benefit-card:first-child,
  .pricing-benefit-card:last-child,
  .pricing-benefit-card:nth-child(2n),
  .pricing-benefit-card:nth-child(2n + 1) {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    justify-content: start;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .pricing-benefit-card:nth-child(2n) {
    border-right: 0;
  }

  .pricing-benefit-icon {
    width: 36px;
    height: 36px;
  }

  .pricing-benefit-icon .icon {
    width: 19px;
    height: 19px;
  }

  .pricing-benefit-card strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .pricing-benefit-card p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .page.page-pricing .page-footer {
    margin-top: 8px;
    padding-top: 12px;
  }

  .page-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    box-sizing: border-box;
    width: min(100%, calc(100vw - 28px));
    gap: 12px;
    margin: 16px auto 0;
    padding: 14px 15px 13px;
    border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
    border-radius: 18px;
    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.075),
        rgba(255, 255, 255, 0.018) 42%,
        rgba(139, 92, 246, 0.075)
      ),
      color-mix(in srgb, var(--panel-strong) 50%, transparent);
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }

  .page-footer-brand {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    width: auto;
    min-width: 0;
  }

  .page-footer-brand img {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .page-footer-brand > div {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .page-footer-brand-name {
    font-size: 15px;
    line-height: 1.05;
  }

  .page-footer-brand > div > span {
    max-width: 22em;
    font-size: 12px;
    line-height: 1.45;
  }

  .page-footer-tagline-desktop {
    display: none;
  }

  .page-footer-tagline-mobile {
    display: inline;
  }

  .page-footer-copy {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    width: auto;
    margin-top: 0;
    margin-bottom: 4px;
    padding-left: 0;
    text-align: right;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
  }
}
