.pricing-hero {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  background:
    radial-gradient(circle at top, var(--bg), var(--clear)),
    linear-gradient(180deg, var(--wash-light), var(--wash), var(--bg));
}

.pricing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--dot) 1px, var(--clear) 1px);
  background-size: var(--space-2) var(--space-2);
  mask-image: linear-gradient(var(--text), var(--clear));
}

.pricing-hero-inner {
  max-width: var(--reading-width);
  text-align: center;
}

.pricing-hero h1 {
  margin-inline: auto;
}

.pricing-hero .lead {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.pricing-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
}

.pricing-facts span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--space-5);
  padding-inline: var(--space-2);
  border: var(--line) solid var(--border);
  border-radius: var(--pill);
  background: var(--bg);
  box-shadow: var(--notice-shadow);
  color: var(--muted);
  font-size: var(--small-size);
}

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

.pricing-hero-actions {
  justify-content: center;
  margin-top: var(--space-4);
}

.pricing-kicker {
  margin-bottom: var(--space-1);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: var(--small-size);
  font-weight: var(--semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.billing-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.billing-intro > div {
  max-width: var(--reading-width);
}

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

.billing-intro .badge {
  flex-shrink: 0;
}

.plan-summary {
  min-height: calc(var(--space-10) + var(--space-2));
  color: var(--muted);
  font-size: var(--nav-size);
}

.comparison-note {
  margin-top: var(--space-1);
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--small-size);
}

.monthly-rule {
  margin-top: var(--space-5);
}

.included-list {
  border-top: var(--line) solid var(--border);
}

.included-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: var(--line) solid var(--border);
}

.included-item:nth-child(even) {
  background: linear-gradient(90deg, var(--clear), var(--bg), var(--clear));
}

.included-item svg {
  width: var(--space-4);
  height: var(--space-4);
  margin-top: var(--space-1);
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.included-item h3 {
  font-size: var(--large);
  margin-bottom: var(--space-1);
}

.included-item p {
  max-width: var(--reading-width);
  margin-bottom: 0;
  color: var(--muted);
}

.pricing-table td,
.pricing-table th {
  min-width: 7.5em;
  white-space: normal;
}

.comparison-guidance {
  max-width: var(--reading-width);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--line) solid var(--border);
}

.comparison-guidance p {
  color: var(--muted);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-8);
}

.payment-methods {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--space-6);
  padding-inline: var(--space-3);
  border: var(--line) solid var(--border);
  border-radius: var(--pill);
  background: var(--bg);
  box-shadow: var(--soft-shadow);
  font-weight: var(--semibold);
}

.payment-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: payment-step;
}

.payment-steps li {
  position: relative;
  padding-left: var(--space-6);
  padding-bottom: var(--space-4);
  counter-increment: payment-step;
}

.payment-steps li::before {
  content: counter(payment-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--space-4);
  height: var(--space-4);
  border-radius: var(--round);
  background: var(--wash);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: var(--small-size);
  font-weight: var(--semibold);
}

.payment-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: var(--space-4);
  bottom: 0;
  left: calc(var(--space-2) - var(--line));
  width: var(--line);
  background: var(--border);
}

.payment-steps h3 {
  font-size: var(--large);
  margin-bottom: var(--space-1);
}

.payment-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.payment-note {
  margin-top: var(--space-5);
}

.refund-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
  border: var(--line) solid var(--edge-warm);
  border-radius: var(--soft);
  background: linear-gradient(130deg, var(--wash-light), var(--bg));
  box-shadow: var(--soft-shadow);
}

.refund-mark {
  display: grid;
  place-items: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--round);
  background: var(--bg);
  color: var(--accent-dark);
  box-shadow: var(--notice-shadow);
}

.refund-mark svg {
  width: var(--space-4);
  height: var(--space-4);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refund-panel h2 {
  margin-bottom: var(--space-2);
}

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

.refund-panel p:last-child {
  margin-bottom: 0;
}

.pricing-end {
  padding-top: 0;
  padding-bottom: var(--space-10);
}

@media (max-width: 768px) {
  .pricing-hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .billing-intro {
    flex-direction: column;
    gap: var(--space-2);
  }

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

  .payment-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .refund-panel {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }
}

@media (max-width: 640px) {
  .pricing-hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

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

  .pricing-facts span {
    justify-content: center;
    padding-inline: var(--space-1);
    text-align: center;
  }

  .pricing-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .included-item {
    gap: var(--space-2);
  }

  .included-item svg {
    width: var(--space-3);
    height: var(--space-3);
  }

  .payment-steps li {
    padding-left: var(--space-5);
  }

  .refund-mark {
    width: var(--space-6);
    height: var(--space-6);
  }

  .pricing-end {
    padding-bottom: var(--space-6);
  }
}

@media (max-width: 360px) {
  .pricing-facts {
    grid-template-columns: 1fr;
  }

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