.purchase-main { padding-top: 36px; }
.intro { text-align: center; }
.eyebrow { margin-bottom: 8px; font-size: 13px; letter-spacing: 2px; color: var(--ink-3); }
.intro h1 { font: 600 clamp(26px, 4.5vw, 34px)/1.35 var(--serif); letter-spacing: 1px; }
.subtitle { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.pill { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; }
h2 { font-size: 20px; font-weight: 600; margin: 12px 0 16px; }
.prototype-note { margin-top: 24px; font-size: 13px; color: var(--ink-3); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: min(820px, 100%); margin-top: 32px; }
.plan { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.family { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price strong { font-size: 36px; font-weight: 600; letter-spacing: -.5px; }
.price span { font-size: 14px; color: var(--ink-3); }
.plan ul { flex: 1; margin: 18px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; line-height: 2.2; color: var(--ink-2); }
.plan li::before { content: '✓'; margin-right: 10px; color: var(--brand); font-weight: 600; }
.plan .primary { width: 100%; }
.service-rules { width: min(820px, 100%); margin-top: 20px; padding: 20px 24px; background: var(--surface-2); border-radius: var(--radius); }
.service-rules h2 { font-size: 15px; margin: 0 0 8px; }
.service-rules p { font-size: 13px; line-height: 1.9; color: var(--ink-2); }

/* Checkout, order and account cards */
.checkout { width: min(600px, 100%); margin-top: 28px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.order-heading { display: flex; align-items: center; justify-content: space-between; }
.order-heading h2 { margin: 10px 0 16px; }
.checkout dl { margin: 0; padding-top: 6px; border-top: 1px solid var(--line); }
.checkout dl > div { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0; font-size: 14px; }
.checkout dt { color: var(--ink-3); }
.checkout dd { margin: 0; text-align: right; }
.payment-method { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-2); }
.alipay-word { color: #1677ff; font-size: 16px; font-weight: 600; white-space: nowrap; }
.checkout-rules { margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--ink-3); }
.total { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.total strong { font-size: 30px; font-weight: 600; }
.pay-button { width: 100%; background: #1677ff; }
.pay-button:hover { background: #1265d9; }
.payment-status { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--ink-3); text-align: center; }
#result-status, #account-status { font-size: 15px; color: var(--ink-2); }
#order-detail { margin: 8px 0 20px; font-size: 13px; color: var(--ink-3); word-break: break-all; }
.checkout > p:last-child { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* Account */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 8px !important; padding: 0 !important; border: 0 !important; }
.stats > div { display: block !important; margin: 0 !important; padding: 14px 12px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; }
.stats dt { font-size: 13px; }
.stats dd { margin-top: 4px; font-size: 22px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.stats > div:first-child { background: var(--brand-soft); }
.stats > div:first-child dd { color: var(--brand); }
#account-content h2 { margin: 28px 0 8px; font-size: 16px; }
.records { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.records li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.records li:last-child { border-bottom: 0; }
.records .when { flex-shrink: 0; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.records .what { flex: 1; min-width: 0; }
.records a { color: var(--brand); font-weight: 500; white-space: nowrap; }
.badge { padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.plus { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.minus { color: var(--ink-2); font-variant-numeric: tabular-nums; }
#account-button { width: 100%; margin-top: 24px; }
#account-button.secondary { background: var(--surface); color: var(--ink-2); }

@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .purchase-main { padding-top: 28px; }
  .checkout { padding: 22px 18px; }
  .checkout dl > div { font-size: 13px; }
  .payment-method { gap: 10px; }
  .service-rules { padding: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .records li { flex-wrap: wrap; row-gap: 2px; }
  .records .when { width: 100%; }
}
