:root {
  --bg: #0f0a1f;
  --card: #ffffff;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --brand: #6d28d9;
  --brand-2: #0ea5a4;
  --border: #e6e6ef;
  --error: #dc2626;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 40px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hero */
.hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a5e, #0ea5a4);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card */
.card {
  background: var(--card);
  margin: -28px 16px 0 16px;
  border-radius: var(--radius);
  padding: 24px 20px 28px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  position: relative;
}

.title {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.intro {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Products */
.products {
  border: 0;
  padding: 0;
  margin: 0 0 8px 0;
  display: grid;
  gap: 12px;
}

.section-heading {
  margin: 4px 0 -2px 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bundle {
  border: 1.5px solid #d8d2f7;
  background: #fbf9ff;
  border-radius: 12px;
  padding: 12px;
}

.bundle__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.bundle__name {
  font-size: 0.98rem;
  font-weight: 800;
}

.bundle__price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand);
}

.bundle__desc {
  margin: 4px 0 10px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.bundle__btn {
  border: 0;
  background: #ede9fe;
  color: #4c1d95;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.bundle__btn:hover {
  background: #ddd6fe;
}

.product {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.product:hover {
  border-color: #c9c2f0;
}

.product--selected {
  border-color: var(--brand);
  background: #f6f2ff;
}

.product input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.product__body {
  flex: 1 1 auto;
  min-width: 0;
}

.product__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.product__name {
  font-weight: 700;
  font-size: 1rem;
}

.product__price {
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}

.product__desc {
  margin: 2px 0 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Email field */
.field {
  display: block;
  margin: 18px 0 4px 0;
}

.field__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
}

.field input:focus {
  border-color: var(--brand);
}

/* Error */
.error {
  color: var(--error);
  font-size: 0.875rem;
  margin: 10px 0 0 0;
}

/* Button */
.pay-btn {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
}

.pay-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.pay-btn__spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

.pay-btn--loading .pay-btn__spinner {
  display: inline-block;
}

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

.reassure {
  margin: 14px 0 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
