:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09070f;
  color: #f8f6ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(133, 75, 255, 0.34), transparent 43%),
    linear-gradient(180deg, #0d0917 0%, #08070d 100%);
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkout-card {
  overflow: hidden;
  border: 1px solid rgba(195, 166, 255, 0.16);
  border-radius: 24px;
  background: rgba(19, 15, 29, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.state-view {
  padding: 30px 24px 26px;
}

.state-view[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: #aa7bff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin: 14px 0 0;
  color: #b8b0c8;
  font-size: 15px;
  line-height: 1.55;
}

.contact-line {
  margin: 12px 0 0;
  color: #b8b0c8;
  font-size: 14px;
  line-height: 1.5;
}

.contact-line a {
  color: #c39cff;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(195, 156, 255, 0.5);
  text-underline-offset: 3px;
}

.offer-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 18px;
}

.offer-button {
  width: 100%;
  min-height: 76px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #30283f;
  border-radius: 16px;
  background: #16111f;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.offer-button:hover {
  border-color: #65479a;
  transform: translateY(-1px);
}

.offer-button[aria-checked="true"] {
  border-color: #9a63ff;
  background: linear-gradient(135deg, rgba(127, 69, 236, 0.25), rgba(78, 43, 142, 0.2));
  box-shadow: inset 0 0 0 1px rgba(169, 119, 255, 0.12);
}

.offer-name,
.offer-price {
  display: block;
  font-weight: 760;
}

.offer-caption {
  display: block;
  margin-top: 5px;
  color: #978da8;
  font-size: 12px;
}

.offer-price-wrap {
  flex: 0 0 auto;
  text-align: right;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 760;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, #985dff 0%, #6d35da 100%);
  color: white;
  box-shadow: 0 12px 34px rgba(115, 56, 220, 0.28);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.secondary-button {
  margin-top: 12px;
  border: 1px solid #3b304c;
  background: #17121f;
  color: #eae4f6;
}

.link-button {
  margin-top: 22px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.muted,
.status-line {
  margin: 14px 0 0;
  color: #8f869e;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.loader {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  display: block;
  border: 3px solid #342744;
  border-top-color: #a66dff;
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.success-mark,
.error-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 850;
}

.success-mark {
  background: rgba(71, 201, 138, 0.16);
  color: #69dfa5;
}

.error-mark {
  background: rgba(255, 93, 125, 0.14);
  color: #ff7893;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 12px;
  }

  .state-view {
    padding: 24px 18px 20px;
  }

  .checkout-card {
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(28px, 9vw, 34px);
  }

  .offer-list {
    margin-top: 22px;
  }

  .offer-button {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
