.pricing-hero {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 32% 0%, var(--color-paper-glow), transparent 38rem),
    linear-gradient(var(--color-honey-soft), var(--color-bg));
}

.pricing-hero::after {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(var(--color-text), transparent 74%);
}

.pricing-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 78px;
  text-align: center;
}

.pricing-hero h1 {
  max-width: 850px;
  margin-top: 22px;
  margin-bottom: 18px;
}

.pricing-hero__lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 18px;
}

.pricing-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-facts li {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-muted);
  box-shadow: var(--shadow-card);
  font-size: 13px;
}

.pricing-facts strong {
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.billing-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.pricing-panel {
  min-width: 0;
}

.pricing-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.35fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-soft);
}

.pricing-intro h3,
.pricing-intro p {
  margin-bottom: 0;
}

.pricing-intro p {
  color: var(--color-muted);
}

.pricing-index {
  display: block;
  margin-bottom: 7px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.plan-card {
  overflow: visible;
}

.plan-card:nth-child(2) .plan-icon {
  background: var(--color-mint);
}

.plan-card:nth-child(3) .plan-icon {
  background: var(--color-mist);
}

.plan-card--capacity {
  border-color: var(--color-honey);
}

.plan-summary {
  min-height: 76px;
  color: var(--color-muted);
}

.plan-limit {
  margin-top: auto;
  padding: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 13px;
}

.plan-limit strong {
  color: var(--color-text);
}

.plan-card .plan-limit + .btn {
  margin-top: 18px;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.included-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.included-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}

.included-card:nth-child(2) .included-icon,
.included-card:nth-child(6) .included-icon {
  background: var(--color-mint);
}

.included-card:nth-child(3) .included-icon {
  background: var(--color-mist);
}

.included-card:nth-child(4) .included-icon {
  background: var(--color-lilac);
}

.included-card:nth-child(5) .included-icon {
  background: var(--color-honey-soft);
}

.included-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--color-apricot);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 900;
}

.included-card h3 {
  font-size: 21px;
}

.included-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.comparison-note {
  margin-top: 22px;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 36px;
}

.payment-copy h2 {
  max-width: 620px;
}

.payment-copy p {
  color: var(--color-muted);
}

.payment-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 28px;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.payment-method {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-weight: 800;
}

.payment-method > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-apricot);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 900;
}

.payment-method:nth-child(2) > span {
  background: var(--color-mint);
}

.payment-method:nth-child(3) > span {
  background: var(--color-mist);
}

.payment-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  counter-reset: payment-step;
  list-style: none;
}

.payment-steps li {
  position: relative;
  min-height: 42px;
  padding-left: 46px;
  counter-increment: payment-step;
}

.payment-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-honey-soft);
  color: var(--color-accent-dark);
  content: counter(payment-step);
  font-family: var(--font-mono);
  font-weight: 800;
}

.payment-steps strong,
.payment-steps span {
  display: block;
}

.payment-steps span {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 13px;
}

.refund-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 44px;
  align-items: center;
  max-width: 920px;
}

.refund-mark {
  display: grid;
  min-height: 230px;
  place-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-honey-soft);
  box-shadow: var(--shadow-panel);
  color: var(--color-accent);
  text-align: center;
}

.refund-mark strong {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 900;
  line-height: 0.9;
}

.refund-mark span {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-weight: 800;
}

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

.refund-copy a:not(.btn) {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.refund-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selection-guide {
  display: grid;
  gap: 18px;
}

.selection-guide article {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.selection-guide h3 {
  font-size: 22px;
}

.selection-guide p {
  color: var(--color-muted);
}

.selection-guide p:last-child {
  margin-bottom: 0;
}

.selection-guide a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-promo {
  max-width: var(--reading-width);
}

.pricing-promo h2 {
  font-size: 28px;
}

.compare-table tbody th {
  background: var(--color-panel);
  font-weight: 800;
}

@media (max-width: 900px) {
  .included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .payment-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .pricing-hero__inner {
    min-height: 0;
    padding-top: 72px;
    padding-bottom: 64px;
  }

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

  .pricing-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .plan-summary {
    min-height: 0;
  }

  .refund-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .refund-mark {
    min-height: 180px;
  }

  .refund-mark strong {
    font-size: 68px;
  }
}

@media (max-width: 640px) {
  .pricing-hero::after {
    display: none;
  }

  .pricing-facts {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-facts li {
    justify-content: center;
    text-align: center;
  }

  .billing-tabs .tab-switcher {
    width: 100%;
  }

  .billing-tabs .tab-switcher [role="tab"] {
    flex: 1 0 auto;
  }

  .pricing-intro {
    padding: 18px;
  }

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

  .included-card {
    padding: 20px;
  }

  .payment-panel {
    padding: 20px;
  }

  .refund-actions {
    flex-direction: column;
  }

  .refund-actions .btn {
    width: 100%;
  }

  .selection-guide article {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .included-card {
    transform: none;
    transition: none;
  }
}