:root {
  --bg: #0b0710;
  --bg-soft: #15101c;
  --card: #1c1428;
  --card-hover: #251a35;
  --border: #2d2240;
  --text: #f5f0fa;
  --text-dim: #a89bbf;
  --accent: #ff2d87;
  --accent-soft: #ff2d8722;
  --accent-glow: #ff2d8755;
  --gold: #ffc857;
  --radius: 18px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, #ffc85715, transparent 50%),
    var(--bg);
  background-attachment: fixed;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

header.hero {
  text-align: center;
  margin-bottom: 64px;
}

.brand {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, #d9c7ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

@media (max-width: 720px) {
  .tiers { grid-template-columns: 1fr; gap: 16px; }
  .wrap { padding: 32px 16px 56px; }
  header.hero { margin-bottom: 36px; }
  h1 { font-size: 30px; line-height: 1.1; margin-bottom: 14px; }
  .lede { font-size: 15px; }
  .brand { margin-bottom: 16px; font-size: 12px; }

  .tier { padding: 22px 20px; border-radius: 18px; }
  .tier h2 { font-size: 19px; }
  .tier .tagline { font-size: 13px; margin-bottom: 16px; min-height: 0; }
  .tier ul { margin-bottom: 18px; }
  .tier li { padding: 7px 0; font-size: 14px; }
  .price { font-size: 34px; margin: 8px 0 2px; }
  .price small { font-size: 14px; }
  .tier-badge { font-size: 10px; padding: 3px 10px; top: -8px; right: 18px; }
  .cta { padding: 13px 18px; font-size: 15px; border-radius: 12px; }

  .footnote { font-size: 13px; padding: 0 8px; }
}

.tier {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tier:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px -20px var(--accent-glow);
}

.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--card) 0%, #1f1530 100%);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

.tier-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.tier h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 4px;
}

.price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
}

.tier .tagline {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
  min-height: 44px;
}

.tier ul {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.tier li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.tier li:first-child { border-top: none; }

.tier li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.tier.featured li::before {
  color: var(--gold);
}

.cta {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px var(--accent-glow);
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.cta.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.footnote {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 580px;
  margin: 0 auto;
}

/* ─── Checkout page ─────────────────────────────────────────── */

.checkout-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.15s ease;
}

.back:hover { color: var(--accent); }

.checkout-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.tier-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.tier-summary .label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tier-summary .tier-name {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.tier-summary .tier-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.tier-summary .tier-price small {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

h2.checkout-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.checkout-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.field input::placeholder { color: #5c4f76; }

.field .hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.field .error {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 600;
}

.field label .muted {
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 20px;
  text-align: center;
  line-height: 1.5;
}

.disclaimer a { color: var(--accent); text-decoration: none; }

/* ─── Success page ──────────────────────────────────────────── */

.success-card { text-align: center; padding: 40px 32px; }

.success-icon {
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.success-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff 0%, #d9c7ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.success-next {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 28px;
  text-align: left;
}

.success-next h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.success-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.success-steps li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}

.success-steps li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 8px;
}

.success-steps a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.success-steps a:hover {
  border-bottom-color: var(--accent);
}

.checkout-ref {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.checkout-ref code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-dim);
  word-break: break-all;
}

@media (max-width: 720px) {
  .checkout-shell { padding: 32px 16px 56px; }
  .checkout-card { padding: 28px 22px; }
  .success-card { padding: 32px 22px; }
  .success-sub { font-size: 15px; }
}
