.pricing-hero {
  border-bottom: var(--border-thin);
}

.pricing-hero__layout {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.pricing-hero__copy {
  position: relative;
  z-index: 2;
}

.pricing-hero__copy .badge {
  margin-bottom: 22px;
}

.pricing-hero__copy h1 {
  max-width: 680px;
  margin-bottom: 22px;
}

.pricing-hero__copy .lead {
  margin-bottom: 28px;
}

.pricing-hero__trust {
  max-width: 620px;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.pricing-hero__device {
  position: relative;
  min-height: 510px;
}

.pricing-hero__color {
  position: absolute;
  border: var(--border-strong);
  border-radius: var(--radius-md);
}

.pricing-hero__color--orange {
  top: 48px;
  right: 42px;
  width: 76%;
  height: 76%;
  background: var(--color-orange);
  transform: rotate(4deg);
}

.pricing-hero__color--pink {
  right: 82px;
  bottom: 28px;
  width: 72%;
  height: 72%;
  background: var(--color-pink);
  transform: rotate(-5deg);
}

.pricing-reply {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  width: min(100%, 570px);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  transform: translateY(-50%) rotate(-1deg);
}

.pricing-reply__head,
.pricing-reply__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.pricing-reply__head {
  border-bottom: var(--border-strong);
  padding: 16px 18px;
  background: var(--color-panel);
}

.pricing-reply__row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  border-bottom: var(--border-thin);
  padding: 20px 18px;
}

.pricing-reply__row span {
  font-family: var(--font-mono);
  font-size: 12px;
}

.pricing-reply__row strong {
  justify-self: end;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
}

.pricing-reply__row.is-active {
  background: var(--color-lime);
}

.pricing-reply__foot {
  justify-content: flex-start;
  padding: 16px 18px;
}

.pricing-summary {
  border-bottom: var(--border-thin);
  background: var(--color-panel);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.pricing-tabs .tab-list {
  margin-bottom: 8px;
}

.plan-card__summary {
  min-height: 88px;
  margin-bottom: 18px;
  color: var(--color-muted);
}

.plan-card--pack {
  border-top: 8px solid var(--color-pink);
}

.billing-notes,
.choice-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.billing-notes article,
.choice-guide article {
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  padding: 22px;
}

.billing-notes h3,
.choice-guide h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.billing-notes p,
.choice-guide p {
  color: var(--color-muted);
}

.billing-notes .mono-label {
  margin-bottom: 12px;
  color: var(--color-ink);
}

.pack-callout {
  margin-top: 22px;
}

.pricing-included {
  border-block: var(--border-strong);
  background: var(--color-panel);
}

.included-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}

.included-ledger__item {
  position: relative;
  min-height: 260px;
  padding: 28px;
}

.included-ledger__item:nth-child(even) {
  border-left: var(--border-thin);
}

.included-ledger__item:nth-child(n + 3) {
  border-top: var(--border-thin);
}

.included-ledger__item::before {
  position: absolute;
  top: 30px;
  right: 28px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--color-orange);
  content: "";
}

.included-ledger__item:nth-child(4n + 2)::before {
  background: var(--color-lime);
}

.included-ledger__item:nth-child(4n + 3)::before {
  background: var(--color-red);
}

.included-ledger__item:nth-child(4n + 4)::before {
  background: var(--color-pink);
}

.included-ledger__code {
  display: block;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.included-ledger h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.included-ledger p {
  color: var(--color-muted);
}

.pricing-compare {
  min-width: 720px;
}

.pricing-payment {
  border-block: var(--border-strong);
  background: var(--color-accent);
  color: var(--color-canvas);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 86px);
}

.payment-layout h2,
.payment-layout h3 {
  color: var(--color-canvas);
}

.payment-layout__intro .lead {
  color: var(--color-line);
}

.payment-path {
  border: var(--border-strong);
  border-color: var(--color-canvas);
  border-radius: var(--radius-md);
}

.payment-path__step {
  display: grid;
  grid-template-columns: 100px minmax(150px, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 22px;
  padding: 22px;
}

.payment-path__step + .payment-path__step {
  border-top: var(--border-thin);
}

.payment-path__mark {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--color-lime);
  color: var(--color-black);
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.payment-path h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.payment-path p {
  color: var(--color-line);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  border-top: var(--border-thin);
  padding-top: 24px;
}

.payment-methods__label {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.payment-method {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  color: var(--color-canvas);
  font-weight: 700;
}

.pricing-refund {
  background: var(--color-panel);
}

.refund-panel {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  overflow: hidden;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}

.refund-panel__stamp {
  display: flex;
  min-height: 410px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-right: var(--border-strong);
  background: var(--color-orange);
  padding: 28px;
  text-align: center;
}

.refund-panel__stamp span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.refund-panel__stamp strong {
  margin-block: 16px;
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 88px);
  font-weight: 900;
  line-height: 1;
}

.refund-panel__copy {
  align-self: center;
  padding: clamp(28px, 5vw, 56px);
}

.refund-panel__copy h2 {
  margin-bottom: 18px;
}

.refund-panel__copy p {
  color: var(--color-muted);
}

.refund-panel__copy .button-row {
  margin-top: 26px;
}

@media (max-width: 980px) {
  .pricing-hero__layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .pricing-hero__device {
    min-height: 450px;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-path__step {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .payment-path__step p {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  .pricing-hero__layout {
    gap: 36px;
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .pricing-hero__device {
    min-height: 390px;
  }

  .pricing-hero__color--orange {
    right: 20px;
  }

  .pricing-hero__color--pink {
    right: 44px;
  }

  .included-ledger {
    grid-template-columns: 1fr;
  }

  .included-ledger__item:nth-child(even) {
    border-left: 0;
  }

  .included-ledger__item:nth-child(n + 2) {
    border-top: var(--border-thin);
  }

  .included-ledger__item {
    min-height: auto;
  }

  .refund-panel {
    grid-template-columns: 1fr;
  }

  .refund-panel__stamp {
    min-height: 260px;
    border-right: 0;
    border-bottom: var(--border-strong);
  }
}

@media (max-width: 640px) {
  .pricing-compare {
    min-width: 100%;
    table-layout: fixed;
  }

  .pricing-compare th,
  .pricing-compare td {
    overflow-wrap: anywhere;
    padding-inline: 8px;
  }

  .pricing-hero__device {
    min-height: 330px;
  }

  .pricing-hero__color {
    display: none;
  }

  .pricing-reply {
    right: auto;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
  }

  .pricing-reply__row {
    padding: 16px 14px;
  }

  .pricing-reply__row strong {
    font-size: 18px;
  }

  .pricing-reply__head,
  .pricing-reply__foot {
    padding-inline: 14px;
  }

  .billing-notes,
  .choice-guide {
    grid-template-columns: 1fr;
  }

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

  .payment-path__step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-path__mark {
    justify-self: start;
  }

  .payment-path__step p {
    grid-column: auto;
  }

  .payment-methods__label {
    width: 100%;
    margin-right: 0;
  }

  .refund-panel__copy {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-hero__color,
  .pricing-reply {
    transform: none;
  }

  .pricing-reply {
    top: 0;
  }
}