:root {
  --bg: #f1f0fa; --surface: #fbfaff; --ink: #171526; --muted: #66627a;
  --brand: #5b45e0; --brand-dark: #29204f; --brand-pale: #e7e2ff;
  --mint: #47c7a1; --amber: #b86d18; --danger: #b43d56; --line: rgba(41,32,79,.16);
  --sans: "IBM Plex Sans", system-ui, sans-serif; --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--ink); font-family: var(--sans); background:
  radial-gradient(circle at 12% 8%, rgba(91,69,224,.12), transparent 27rem),
  linear-gradient(rgba(91,69,224,.035) 1px, transparent 1px) 0 0/28px 28px,
  linear-gradient(90deg, rgba(91,69,224,.035) 1px, transparent 1px) 0 0/28px 28px, var(--bg); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--brand-dark); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.checkout-header { display: flex; width: min(1120px, calc(100% - 40px)); min-height: 88px; margin: auto; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: white; border-radius: 10px 4px 10px 4px; background: var(--brand); font: 600 18px var(--serif); transform: rotate(-2deg); }
.brand strong { display: block; color: var(--brand-dark); font-size: 16px; letter-spacing: -.02em; }
.brand small, .secure-note, .eyebrow, .environment-badge, .transaction-reference, .order-summary span, .request-id { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.secure-note { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; }
.secure-note svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.checkout-shell { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(520px,1.35fr); width: min(1060px, calc(100% - 40px)); min-height: 690px; margin: 10px auto 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px 22px 22px 5px; background: var(--surface); box-shadow: 0 28px 80px rgba(41,32,79,.16); }
.trust-panel { position: relative; min-width: 0; padding: 44px 38px; overflow: hidden; color: rgba(255,255,255,.78); background: var(--brand-dark); }
.trust-panel::after { content: ""; position: absolute; right: -68px; bottom: -68px; width: 190px; height: 190px; border: 1px solid rgba(231,226,255,.2); border-radius: 50%; box-shadow: 0 0 0 28px rgba(231,226,255,.04),0 0 0 56px rgba(231,226,255,.025); }
.eyebrow { margin: 0; color: var(--brand); font-size: 9px; font-weight: 600; }
.trust-panel .eyebrow { color: #bfb4ff; }
.trust-panel h2 { margin: 18px 0 38px; color: white; font: 500 34px/1.07 var(--serif); letter-spacing: -.035em; }
.trust-panel ol { position: relative; margin: 0; padding: 0; list-style: none; }
.trust-panel ol::before { content: ""; position: absolute; top: 18px; bottom: 36px; left: 17px; width: 1px; background: rgba(255,255,255,.2); }
.trust-panel li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; min-height: 84px; opacity: .46; }
.trust-panel li>span { display: grid; z-index: 1; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: var(--brand-dark); font: 9px var(--mono); }
.trust-panel li strong,.trust-panel li small { display: block; }
.trust-panel li strong { color: white; font-size: 13px; }
.trust-panel li small { margin-top: 5px; font-size: 10px; line-height: 1.45; }
.trust-panel li.is-current,.trust-panel li.is-complete { opacity: 1; }
.trust-panel li.is-current>span { color: var(--brand-dark); border-color: var(--mint); background: var(--mint); box-shadow: 0 0 0 5px rgba(71,199,161,.15); }
.trust-panel li.is-complete>span { color: var(--brand-dark); background: var(--brand-pale); }
.scope-note { position: absolute; z-index: 1; right: 34px; bottom: 34px; left: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.scope-note strong { color: #bfb4ff; font: 500 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.scope-note p { margin: 8px 0 0; font-size: 10px; line-height: 1.55; }
.payment-sheet { --gutter: 50px; display: flex; min-width: 0; padding: 40px var(--gutter) 26px; flex-direction: column; }
.payment-sheet>* { min-width: 0; }
.environment-row { display: flex; min-height: 25px; gap: 12px; align-items: center; justify-content: space-between; }
.environment-badge { display: inline-flex; min-height: 24px; padding: 0 9px; align-items: center; color: var(--brand-dark); border: 1px solid var(--brand); border-radius: 99px; background: var(--brand-pale); font-size: 8px; font-weight: 600; }
.environment-badge.is-sandbox { color: #70410d; border-color: #cf8c35; background: #fff0d5; }
.environment-badge.is-production { color: #195746; border-color: #47a98a; background: #dff8ef; }
.environment-badge.is-loading { color: var(--muted); border-color: var(--line); background: transparent; }
.environment-badge.is-unavailable { color: #81253a; border-color: #d27084; background: #fde8ed; }
.transaction-reference { max-width: 190px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.sheet-heading { margin: 31px 0 27px; }
.sheet-heading h1,.message-panel h2 { margin: 8px 0 0; color: var(--brand-dark); font: 500 clamp(36px,5vw,53px)/.98 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.sheet-heading>p:last-child { max-width: 520px; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.order-summary { display: flex; gap: 24px; margin-bottom: 24px; padding: 16px 0; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px dashed rgba(41,32,79,.25); }
.order-summary div { min-width: 0; }
.order-summary span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; }
.order-summary strong { display: block; overflow: hidden; color: var(--brand-dark); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.order-total { text-align: right; }
.order-total strong { font: 500 21px var(--serif); }
.status-panel { display: flex; gap: 17px; min-height: 92px; padding: 18px 20px; align-items: center; border: 1px solid var(--line); background: rgba(231,226,255,.27); }
.status-panel strong { display: block; font-size: 13px; }
.status-panel p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.loader { display: flex; width: 34px; height: 34px; padding: 7px; gap: 3px; align-items: end; border: 1px solid var(--line); }
.loader i { width: 5px; background: var(--brand); animation: pulse .9s ease-in-out infinite alternate; }
.loader i:nth-child(1){height:8px}.loader i:nth-child(2){height:16px;animation-delay:.16s}.loader i:nth-child(3){height:12px;animation-delay:.32s}
@keyframes pulse { to { height: 20px; opacity: .4; } }
.checkout-frame { min-height: 380px; overflow: hidden; border: 1px solid var(--line); background: white; }
.paddle-checkout { min-height: 380px; }
.message-panel { position: relative; padding: 28px 28px 30px 75px; border: 1px solid rgba(180,61,86,.32); background: #fff7f9; }
.message-panel .message-mark { position: absolute; top: 29px; left: 27px; display: grid; width: 31px; height: 31px; place-items: center; color: white; border-radius: 50%; background: var(--danger); font: 700 14px var(--mono); }
.message-panel h2 { font-size: 28px; line-height: 1.08; }
.message-panel>div>p:not(.eyebrow):not(.request-id),.message-panel>p:last-of-type { color: var(--muted); font-size: 13px; line-height: 1.6; }
.message-panel.is-complete { border-color: rgba(71,199,161,.45); background: #f2fbf8; }
.message-panel.is-complete .message-mark { background: #299474; }
.request-id { color: var(--muted); font-size: 8px; }
.message-actions { display: flex; gap: 12px; margin-top: 21px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 40px; padding: 0 17px; align-items: center; justify-content: center; color: white; border: 1px solid var(--brand-dark); border-radius: 7px; background: var(--brand-dark); font: 600 11px var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand); border-color: var(--brand); }
.button-secondary { color: var(--brand-dark); background: transparent; }
.text-link { color: var(--brand); font-size: 11px; text-underline-offset: 3px; }
.sheet-footer { display: flex; gap: 20px; margin-top: auto; padding-top: 28px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.sheet-footer p { max-width: 320px; margin: 0; }
.sheet-footer nav { display: flex; gap: 14px; }
@media (max-width:780px) {
  .checkout-header { min-height: 72px; }
  .secure-note { font-size: 0; }
  .checkout-shell { grid-template-columns: 1fr; width: min(620px,calc(100% - 24px)); margin-top: 4px; border-radius: 12px; }
  .trust-panel { padding: 18px 22px; }
  .trust-panel>.eyebrow,.trust-panel>h2,.scope-note { display: none; }
  .trust-panel ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .trust-panel ol::before { top: 14px; right: 16%; bottom: auto; left: 16%; width: auto; height: 1px; }
  .trust-panel li { display: flex; min-height: 29px; justify-content: center; }
  .trust-panel li>span { width: 29px; height: 29px; }
  .trust-panel li div { display: none; }
  .payment-sheet { --gutter: 24px; padding: 28px var(--gutter) 22px; }
  .sheet-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width:430px) {
  .checkout-header { width: calc(100% - 28px); }
  .checkout-shell { width: 100%; margin: 0; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .payment-sheet { --gutter: 18px; padding: 27px var(--gutter) 22px; }
  .environment-row { align-items: flex-start; flex-direction: column; }
  .sheet-heading h1 { font-size: 36px; }
  .order-summary { align-items: flex-start; flex-direction: column; }
  .order-total { text-align: left; }
  .message-panel { padding: 72px 21px 23px; }
  .message-panel .message-mark { top: 24px; left: 21px; }
}
@media (max-width:360px) { .checkout-frame { margin-inline: calc(-1 * var(--gutter)); border-right: 0; border-left: 0; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
