:root {
  color-scheme: dark;
  --background: #090b13;
  --surface: rgba(24, 28, 43, 0.78);
  --surface-strong: rgba(34, 39, 60, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8ff;
  --muted: #adb4c8;
  --accent: #8e9cff;
  --accent-strong: #6979ff;
  --danger: #ff9b9b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 121, 255, 0.26), transparent 32rem),
    radial-gradient(circle at 100% 34%, rgba(188, 105, 255, 0.14), transparent 30rem),
    var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: #bdc5ff; }

.checkout {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(40px, env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; font-weight: 800; letter-spacing: .2em; }
.brand__mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #7180ff, #a16eff); font-size: 18px; letter-spacing: 0; }
.card { border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(155deg, var(--surface-strong), var(--surface)); box-shadow: 0 24px 80px rgba(0, 0, 0, .28); backdrop-filter: blur(24px); }
.hero { padding: clamp(26px, 6vw, 54px); text-align: center; }
.eyebrow { margin: 0 0 12px; color: #bdc5ff; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 9vw, 72px); line-height: 1; letter-spacing: -.045em; }
.hero__copy { max-width: 650px; margin: 20px auto 0; color: var(--muted); line-height: 1.65; }
.layout { display: grid; gap: 16px; margin-top: 16px; }
.panel { padding: 22px; }
h2 { margin: 0 0 16px; font-size: 22px; }
.loading { display: flex; align-items: center; gap: 10px; min-height: 90px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plans { display: grid; gap: 10px; }
.plan { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; color: var(--text); text-align: left; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); cursor: pointer; }
.plan:hover, .plan:focus-visible { border-color: rgba(142, 156, 255, .72); outline: none; }
.plan[aria-pressed="true"] { border-color: var(--accent); background: rgba(105, 121, 255, .16); }
.plan__radio { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; }
.plan[aria-pressed="true"] .plan__radio { border: 6px solid var(--accent); background: white; }
.plan__title { display: block; font-weight: 800; }
.plan__description { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.plan__price { font-weight: 850; white-space: nowrap; }
.account, .status, .email p, .legal-note { color: var(--muted); line-height: 1.55; }
.email { margin-top: 16px; }
.email label { display: block; font-weight: 750; }
.email p { margin: 5px 0 9px; font-size: 13px; }
.email input { width: 100%; min-height: 48px; padding: 0 14px; color: var(--text); border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); }
.email input:focus { border-color: var(--accent); outline: 3px solid rgba(142,156,255,.18); }
.pay { width: 100%; min-height: 52px; margin-top: 18px; color: white; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--accent-strong), #9b68f5); font-weight: 850; cursor: pointer; box-shadow: 0 14px 38px rgba(105,121,255,.28); }
.pay:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.error { min-height: 1.4em; color: var(--danger); line-height: 1.5; }
.status { min-height: 1.4em; }
.legal-note { margin-bottom: 0; font-size: 12px; }
.features { margin-top: 16px; padding: 22px; }
.features ul { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.5; }
.features p { margin: 16px 0 0; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; padding: 24px 10px 0; font-size: 13px; }

@media (min-width: 760px) {
  .layout { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .panel { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
