.purchase-order-card {
  min-height: clamp(500px, 66svh, 680px);
  align-items: end;
  isolation: isolate;
  cursor: default;
  background: #08000e;
}

.purchase-page {
  min-height: var(--page-stage-min);
  display: grid;
  align-items: center;
  padding-top: clamp(34px, 4.6svh, 48px);
  padding-bottom: clamp(34px, 4.6svh, 48px);
}

.purchase-cashier {
  width: 100%;
}

.purchase-order-card::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(21, 0, 36, 0.74) 34%, rgba(197, 51, 227, 0.2) 72%, rgba(255, 110, 230, 0.32) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 44%, rgba(255, 255, 255, 0.06) 100%),
    repeating-linear-gradient(112deg, transparent 0 12px, rgba(255, 255, 255, 0.018) 12px 13px, transparent 13px 26px);
  opacity: 1;
}

.purchase-order-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(185, 23, 228, 0.22), transparent 34%),
    linear-gradient(250deg, rgba(255, 116, 214, 0.28), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.82;
}

.purchase-order-card > * {
  z-index: 2;
}

.purchase-order-card:hover,
.purchase-order-card:focus-visible {
  border-color: rgba(255, 166, 233, 0.62);
  box-shadow:
    0 34px 108px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 166, 233, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.purchase-hero-copy {
  max-width: min(600px, 100%);
  display: grid;
  justify-items: start;
  gap: clamp(8px, 1.2vw, 12px);
  align-self: end;
  justify-self: start;
  padding-top: clamp(170px, 22vh, 260px);
}

.purchase-title {
  max-width: 720px;
  color: #fff;
  font-family: var(--font-cjk);
  font-size: clamp(42px, 4.9vw, 68px);
  font-weight: 760;
  line-height: 1.04;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.58);
}

@media (min-width: 641px) {
  .purchase-title {
    white-space: nowrap;
  }
}

.purchase-order-card .purchase-lead {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.14vw, 18px);
  font-weight: 640;
  line-height: 1.55;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.62);
}

.purchase-price-line {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 720;
  line-height: 1.35;
}

.purchase-card-actions {
  position: absolute;
  right: clamp(24px, 3.2vw, 48px);
  bottom: clamp(24px, 3.2vw, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-secondary,
.plan-select {
  min-width: 92px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.plan-secondary {
  color: #050505;
  background: rgba(255, 255, 255, 0.92);
}

.plan-secondary:hover,
.plan-secondary:focus-visible {
  background: #fff;
}

.plan-select {
  grid-area: auto;
  justify-self: auto;
  min-width: 74px;
  min-height: 40px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
}

.plan-select:hover,
.plan-select:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.purchase-preview-strip {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
}

.purchase-preview-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.purchase-preview-card:nth-child(1) {
  inset: 0 0 0 20%;
  opacity: 0.54;
}

.purchase-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% top;
  border: 0;
  border-radius: 0;
  background: #050505;
}

.purchase-preview-card figcaption {
  display: none;
}

.learn-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--fg);
  background: transparent;
}

.learn-modal:not([open]) {
  display: none;
}

.learn-modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.learn-modal-shell {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  max-height: inherit;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(245, 245, 240, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(29, 0, 42, 0.94), rgba(105, 36, 103, 0.82)),
    #050505;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: auto;
}

.learn-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.learn-modal-head span {
  color: rgba(245, 245, 240, 0.68);
  font-size: 12px;
  font-weight: 760;
}

.learn-product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: end;
}

.learn-product-copy {
  display: grid;
  gap: 14px;
}

.learn-product-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 760;
  line-height: 1.04;
}

.learn-product-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 560;
  line-height: 1.7;
}

.learn-feature-list {
  display: grid;
  gap: 10px;
}

.learn-feature-list section {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.learn-feature-list span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 720;
}

.learn-feature-list strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 1.18vw, 17px);
  font-weight: 650;
  line-height: 1.55;
}

.learn-buy-action {
  justify-self: start;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .purchase-order-card {
    min-height: clamp(540px, 70svh, 650px);
    padding: clamp(22px, 5vw, 34px);
  }

  .purchase-hero-copy {
    padding-top: clamp(210px, 32vh, 290px);
  }

  .purchase-card-actions {
    position: static;
    justify-self: start;
    margin-top: 22px;
    flex-wrap: wrap;
  }

  .purchase-preview-card:nth-child(1) {
    inset: 0;
    opacity: 0.46;
  }
}

@media (max-width: 640px) {
  .purchase-order-card {
    min-height: clamp(560px, 72svh, 640px);
  }

  .purchase-page {
    padding-top: 58px;
    padding-bottom: 24px;
  }

  .purchase-title {
    font-size: clamp(36px, 12.6vw, 56px);
    line-height: 1.05;
  }

  .purchase-order-card .purchase-lead {
    font-size: 13px;
  }

  .purchase-price-line {
    font-size: 12px;
  }

  .learn-product-page {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .learn-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
}
