.pricing-page {
  --pricing-deep: #24105e;
  --pricing-purple: #6c3dff;
  --pricing-soft: #f3efff;
  --pricing-pale: #fbfaff;
  --pricing-green: #13795b;
  background: #fff;
}

.pricing-shell {
  width: var(--page);
  margin: 0 auto;
}

.pricing-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 92px;
  background:
    linear-gradient(rgba(108, 61, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 61, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 78% 30%, rgba(124, 77, 255, 0.2), transparent 29%),
    #fbfaff;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.pricing-hero::after {
  content: "¥";
  position: absolute;
  right: -20px;
  bottom: -180px;
  color: rgba(108, 61, 255, 0.045);
  font-size: 520px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.pricing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: 90px;
  align-items: center;
}

.pricing-hero h1 {
  max-width: 850px;
  margin: 18px 0 26px;
  font-size: clamp(48px, 5.7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.pricing-hero h1 em {
  color: var(--pricing-purple);
  font-style: normal;
}

.pricing-lead {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.pricing-guide {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(108, 61, 255, 0.2);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 20px 20px 0 rgba(108, 61, 255, 0.09);
}

.pricing-guide > p {
  margin: 0 0 26px;
  color: var(--pricing-purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pricing-guide ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-guide li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.pricing-guide li > span {
  color: var(--pricing-purple);
  font-size: 13px;
  font-weight: 900;
}

.pricing-guide strong,
.pricing-guide small {
  display: block;
}

.pricing-guide strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.pricing-guide small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pricing-summary {
  color: #fff;
  background: var(--pricing-deep);
}

.pricing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pricing-summary-grid > div {
  padding: 30px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.pricing-summary-grid > div:first-child {
  padding-left: 0;
}

.pricing-summary-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.pricing-summary strong,
.pricing-summary span {
  display: block;
}

.pricing-summary strong {
  margin-bottom: 7px;
  font-size: 17px;
}

.pricing-summary span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

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

.pricing-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 50px;
}

.pricing-section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.pricing-section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.pricing-plan {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px 24px 26px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pricing-plan:hover {
  z-index: 2;
  border-color: rgba(108, 61, 255, 0.45);
  box-shadow: 0 28px 70px rgba(36, 16, 94, 0.12);
  transform: translateY(-6px);
}

.pricing-plan.recommended {
  border: 2px solid var(--pricing-purple);
  background: linear-gradient(180deg, var(--pricing-pale), #fff 42%);
  box-shadow: 0 24px 60px rgba(108, 61, 255, 0.13);
}

.pricing-plan.enterprise {
  color: #fff;
  border-color: var(--pricing-deep);
  background: var(--pricing-deep);
}

.recommendation {
  position: absolute;
  top: -29px;
  right: -2px;
  left: -2px;
  height: 29px;
  padding: 7px 14px;
  color: #fff;
  background: var(--pricing-purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.plan-top > span,
.addons article > div:first-child > span {
  color: var(--pricing-purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.enterprise .plan-top > span {
  color: #c9baff;
}

.plan-top h3 {
  margin: 11px 0 10px;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.plan-top p {
  min-height: 77px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.enterprise .plan-top p,
.enterprise .plan-price span,
.enterprise dl dt {
  color: rgba(255, 255, 255, 0.64);
}

.plan-price {
  display: flex;
  min-height: 60px;
  align-items: baseline;
  gap: 5px;
  margin: 25px 0 4px;
  color: var(--pricing-deep);
}

.enterprise .plan-price {
  color: #fff;
}

.plan-price b {
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.plan-price span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.plan-price.custom {
  align-items: center;
}

.plan-price.custom b {
  font-size: 27px;
}

.annual-offer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  color: #4c22d7;
  background: var(--pricing-soft);
  font-size: 10px;
}

.annual-offer strong {
  font-size: 11px;
}

.enterprise .annual-offer {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pricing-plan dl {
  margin: 12px 0 18px;
}

.pricing-plan dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
}

.enterprise dl > div {
  border-color: rgba(255, 255, 255, 0.16);
}

.pricing-plan dt {
  color: var(--muted);
}

.pricing-plan dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.pricing-plan ul {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 0;
  color: #4d4756;
  font-size: 11px;
  line-height: 1.45;
  list-style: none;
}

.enterprise ul {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-plan li {
  position: relative;
  padding-left: 17px;
}

.pricing-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pricing-purple);
  font-weight: 900;
}

.enterprise li::before {
  color: #c9baff;
}

.founder-banner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  margin-top: 48px;
  padding: 28px 32px;
  color: #fff;
  background: linear-gradient(110deg, var(--pricing-deep), var(--pricing-purple));
}

.founder-banner small,
.founder-banner strong {
  display: block;
}

.founder-banner small {
  margin-bottom: 7px;
  color: #c9baff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.founder-banner strong {
  font-size: 21px;
}

.founder-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: 12px;
}

.founder-banner a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 900;
}

.founder-banner a span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--pricing-purple);
  background: #fff;
}

.addons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.addons article {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--pricing-pale);
}

.addons h3 {
  margin: 7px 0 8px;
  font-size: 19px;
}

.addons p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.addon-price {
  flex: 0 0 auto;
  color: var(--pricing-deep);
  text-align: right;
}

.addon-price b,
.addon-price small {
  display: block;
  white-space: nowrap;
}

.addon-price b {
  font-size: 27px;
  letter-spacing: -0.04em;
}

.addon-price small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.scale-note {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.matrix-section {
  background: var(--paper);
}

.matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(36, 16, 94, 0.06);
  scrollbar-color: var(--pricing-purple) var(--pricing-soft);
}

.pricing-matrix {
  width: 100%;
  min-width: 760px;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
  font-size: 12px;
}

.pricing-matrix th,
.pricing-matrix td {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
  text-align: center;
}

.pricing-matrix tr > :last-child {
  border-right: 0;
}

.pricing-matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.pricing-matrix thead th {
  position: sticky;
  top: 76px;
  z-index: 2;
  padding: 18px 14px;
  color: #fff;
  background: var(--pricing-deep);
  font-size: 13px;
}

.pricing-matrix thead th:first-child {
  width: 32%;
  text-align: left;
}

.pricing-matrix thead .pro-col {
  background: var(--pricing-purple);
}

.pricing-matrix tbody th:not([colspan]) {
  color: #3f3948;
  background: #faf9fc;
  font-weight: 700;
  text-align: left;
}

.pricing-matrix tbody td {
  color: #514a5b;
  font-weight: 750;
}

.pricing-matrix tbody td.pro-col {
  background: var(--pricing-pale);
}

.pricing-matrix .group th {
  padding: 13px 14px;
  color: #4c22d7;
  background: var(--pricing-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
}

.pricing-matrix td:not(:empty) {
  color: var(--pricing-deep);
}

.delivery-section {
  background: #fff;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.delivery-grid > article {
  padding: 42px;
  border: 1px solid var(--line);
}

.delivery-grid h3 {
  margin: 0 0 30px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.delivery-flow {
  background: var(--pricing-deep);
  color: #fff;
}

.delivery-flow ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery-flow li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.delivery-flow li > span {
  color: #c9baff;
  font-size: 11px;
  font-weight: 900;
}

.delivery-flow strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.delivery-flow p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.65;
}

.billing-terms {
  background: var(--pricing-pale);
}

.billing-terms dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin: 0;
}

.billing-terms dl > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.billing-terms dt {
  margin-bottom: 5px;
  color: var(--pricing-deep);
  font-size: 12px;
  font-weight: 900;
}

.billing-terms dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.pricing-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
  background: var(--pricing-soft);
}

.pricing-cta::before,
.pricing-cta::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(108, 61, 255, 0.16);
  border-radius: 50%;
}

.pricing-cta::before {
  top: -250px;
  left: -120px;
}

.pricing-cta::after {
  right: -170px;
  bottom: -270px;
}

.pricing-cta .pricing-shell {
  position: relative;
  z-index: 1;
}

.pricing-cta h2 {
  margin: 12px 0 22px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.pricing-cta p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.pricing-cta .button {
  margin: 0 auto;
}

.pricing-cta small {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1100px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr 340px;
    gap: 48px;
  }

  .pricing-plans {
    grid-template-columns: 1fr 1fr;
    gap: 38px 12px;
  }

  .plan-top p {
    min-height: 0;
  }

  .pricing-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-summary-grid > div:nth-child(2) {
    border-right: 0;
  }

  .pricing-summary-grid > div:nth-child(3),
  .pricing-summary-grid > div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .addons article {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .addon-price {
    text-align: left;
  }
}

@media (max-width: 800px) {
  .pricing-hero {
    padding: 78px 0 70px;
  }

  .pricing-hero-grid,
  .pricing-section-head,
  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero-grid {
    gap: 50px;
  }

  .pricing-hero h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

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

  .pricing-section-head {
    gap: 22px;
    margin-bottom: 42px;
  }

  .founder-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .founder-banner a {
    justify-content: space-between;
  }

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

  .billing-terms dl {
    grid-template-columns: 1fr;
  }

  .pricing-matrix thead th {
    top: 0;
  }
}

@media (max-width: 560px) {
  .pricing-hero {
    padding-top: 64px;
  }

  .pricing-hero::after {
    right: -90px;
    bottom: -50px;
    font-size: 300px;
  }

  .pricing-lead {
    font-size: 16px;
  }

  .pricing-guide {
    padding: 24px;
    box-shadow: 12px 12px 0 rgba(108, 61, 255, 0.09);
  }

  .pricing-summary-grid,
  .pricing-plans {
    grid-template-columns: 1fr;
  }

  .pricing-summary-grid > div,
  .pricing-summary-grid > div:first-child,
  .pricing-summary-grid > div:last-child {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
  }

  .pricing-summary-grid > div:first-child {
    border-top: 0;
  }

  .pricing-plans {
    gap: 42px;
  }

  .pricing-plan {
    padding: 28px 22px 24px;
  }

  .founder-banner,
  .addons article,
  .delivery-grid > article {
    padding: 28px 24px;
  }

  .pricing-cta {
    padding: 88px 0;
  }
}

@media print {
  .site-header,
  .site-footer,
  .pricing-cta,
  .hero-actions {
    display: none !important;
  }

  .pricing-hero,
  .pricing-section {
    padding: 36px 0;
  }

  .pricing-plan,
  .matrix-scroll,
  .delivery-grid > article {
    break-inside: avoid;
    box-shadow: none;
  }

  .pricing-matrix thead th {
    position: static;
  }
}
