/* ---------- pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px); border-radius: 24px;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(16, 28, 48, .06);
  transition: border-color .2s ease;
}
.plan-card:hover { border-color: #c9d6ea; }
.plan-card.is-popular { color: var(--ink); border-color: var(--navy); background: var(--navy); }
.plan-card.is-popular:hover { border-color: var(--navy); }
.plan-pop {
  position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px;
  background: #fff; color: var(--navy);
  font-size: 11px; font-weight: 800; letter-spacing: var(--track); text-transform: uppercase;
}
.plan-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.plan-price b { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 4vw, 58px); line-height: 1; letter-spacing: -.02em; }
.plan-price > span { font-size: 18px; font-weight: 800; }
.plan-price > em { font-style: normal; font-size: 15px; color: var(--text-3); }
.plan-vat { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.plan-features { margin: 24px 0 28px; flex: 1; }
.plan-features li { font-weight: 600; font-size: 14.5px; }
.plan-card.is-popular .plan-vat, .plan-card.is-popular .plan-price em { color: rgba(232, 239, 248, .72); }
.plan-card.is-popular .plan-features li { color: #fff; }

.pricing-info { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 24px; align-items: center; }
.pricing-info .muted { line-height: 1.65; }
.pricing-legal ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 20px; }
.pricing-legal a { font-size: 14px; font-weight: 700; color: var(--blue); text-underline-offset: 3px; }
.pricing-legal img { height: 26px; width: auto; max-width: 100%; }

/* ---------- checkout ---------- */
.checkout { max-width: 1120px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }
.checkout-title { margin-top: 14px; font-size: clamp(32px, 3vw, 46px); color: var(--text); }
.steps-mini { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 26px; counter-reset: step; }
.steps-mini li {
  counter-increment: step; display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text-3);
}
.steps-mini li::before {
  content: counter(step); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); font-size: 11px; font-weight: 800;
}
.steps-mini li.done { color: var(--text-2); }
.steps-mini li.done::before { content: "✓"; background: #e9f9ef; color: #1f9d55; }
.steps-mini li.on { color: var(--text); border-color: #c9d6ea; }
.steps-mini li.on::before { background: var(--blue); color: #fff; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-form .section-title { margin: 10px 0 0; }
.checkout-form .section-title:first-of-type { margin-top: 0; }
.checkout-form label small { font-weight: 600; }
.checkout-form input[readonly] { color: var(--text-2); background: #eef1f6; }
.consents { display: flex; flex-direction: column; gap: 12px; }
.consent a { color: var(--blue); font-weight: 700; }

.checkout-summary { position: sticky; top: calc(var(--header-h) + 14px); padding: 24px; }
.order-plan { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--border); }
.order-label { font-size: var(--fs-label); font-weight: 800; letter-spacing: var(--track); text-transform: uppercase; color: var(--text-3); }
.order-plan b { font-size: 20px; }
.order-lines { margin: 16px 0 18px; }
.order-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid #eef1f6; }
.order-lines dt { color: var(--text-2); }
.order-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-lines .order-total { border-bottom: 0; padding-top: 14px; font-size: 16px; }
.order-lines .order-total dt { color: var(--text); font-weight: 800; }
.order-lines .order-total dd { font-size: 20px; font-weight: 800; color: var(--blue); }
#payBtn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; }
.secure-note { margin-top: 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; text-align: center; }
.secure-band { display: block; height: 22px; width: auto; max-width: 100%; margin: 14px auto 0; }

/* ---------- private payment link ---------- */
body[data-state="form"] .status-card,
body:not([data-state="form"]) .link-checkout,
body[data-state="expired"] .state-done,
body[data-state="expired"] .state-invalid,
body:not([data-state="expired"]) .state-expired { display: none; }
.order-desc { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--text-2); }

@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .pricing-info, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; }
}
@media (max-width: 640px) {
  .pricing-legal ul { grid-template-columns: 1fr; }
}
