.buy-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.buy-banner {
  margin: 0 0 2rem;
  padding: 0.9rem 1.25rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 0.95rem;
  text-align: center;
}
.buy-banner a { font-weight: 600; }

.buy-hero {
  text-align: center;
  margin: 1.5rem 0 3rem;
}
.buy-hero h1 {
  font-size: 2.3rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.buy-hero p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin: 0 0 3rem;
}

.plan {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-highlight {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 40%);
  transform: translateY(-8px);
  box-shadow: 0 14px 30px -16px rgba(194, 102, 11, 0.35);
}

.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.plan-price {
  margin: 0 0 0.25rem;
  line-height: 1;
}
.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.plan-price .per {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-left: 0.35rem;
}
.plan-highlight .plan-price .amount { color: var(--accent); }

.plan-cadence {
  margin: 0.25rem 0 1.5rem;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.plan-cta {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.plan-cta:hover { border-bottom-color: var(--border-strong); }
.plan-cta[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.plan-cta-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-features li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--fg);
  border-top: 1px dashed var(--border);
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.9rem;
  height: 0.45rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.buy-notes {
  max-width: var(--text-width);
  margin: 0 auto;
}
.buy-notes h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.buy-notes dl {
  margin: 0;
}
.buy-notes dt {
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
  color: var(--fg);
}
.buy-notes dd {
  margin: 0 0 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.buy-notes code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .plan-highlight {
    transform: none;
    order: -1;
  }
}
