:root {
  --ground: #0C1726;
  --raised: #111F33;
  --raised-2: #16283F;
  --line: #22385A;
  --text: #E8EEF7;
  --muted: #A8B7CD;
  --dim: #6E8099;
  --orange: #F26430;
  --orange-deep: #D9521F;
  --teal: #38D9C9;
  --yellow: #FFC850;
  --danger: #FF8A7A;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(60rem 30rem at 110% -10%, rgba(242, 100, 48, .16), transparent 60%),
    radial-gradient(40rem 26rem at -20% 20%, rgba(56, 217, 201, .09), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--teal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.demo-strip {
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--teal));
  color: #0C1726;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
}

.top {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img { display: block; height: 29px; width: auto; }
.top-tag {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  display: grid;
  gap: 28px;
}
@media (min-width: 880px) {
  .wrap { grid-template-columns: 1fr 440px; align-items: start; gap: 48px; padding-top: 40px; }
  .hero { position: sticky; top: 32px; }
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 68px);
  line-height: 1;
  letter-spacing: -.03em;
}
.lede { margin: 18px 0 0; color: var(--muted); max-width: 34em; }
.facts { margin: 24px 0 0; display: grid; gap: 10px; }
.facts div { display: flex; gap: 12px; }
.facts dt {
  width: 64px; flex: none;
  font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); padding-top: 3px;
}
.facts dd { margin: 0; }

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
@media (min-width: 480px) { .card { padding: 26px 24px; } }
.card h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.card h2 + * { margin-top: 0; }
.card h2:not(:first-child) { margin-top: 26px; }

.tiers { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.tier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--raised-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--dim);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tier:has(input:checked) { border-color: var(--orange); background: rgba(242, 100, 48, .08); }
.tier:has(input:checked)::before { border-color: var(--orange); box-shadow: inset 0 0 0 4px var(--raised-2), inset 0 0 0 9px var(--orange); }
.tier:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.tier-body { flex: 1; display: grid; }
.tier-name { font-family: var(--display); font-weight: 600; font-size: 17px; }
.tier-desc { color: var(--muted); font-size: 14px; }
.tier-price { font-family: var(--display); font-weight: 600; white-space: nowrap; }

.qty-row { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.label { font-size: 14px; color: var(--muted); }
.stepper {
  display: flex; align-items: center;
  background: var(--raised-2);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.step {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  font-family: var(--display);
  transition: background-color .15s ease;
}
.step:hover:not(:disabled) { background: var(--line); }
.step:disabled { color: var(--dim); cursor: default; }
.step:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
#qty { min-width: 32px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 17px; }

.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--raised-2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(56, 217, 201, .18); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 13px; color: var(--dim); }

.summary {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: grid; gap: 6px;
}
.line { display: flex; justify-content: space-between; color: var(--muted); }
.line.total { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 19px; margin-top: 4px; }

.error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 138, 122, .1);
  border: 1px solid rgba(255, 138, 122, .35);
  color: var(--danger);
  font-size: 14px;
}

.pay {
  position: relative;
  margin-top: 20px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.pay:hover { background: var(--orange-deep); }
.pay:active { transform: translateY(1px); }
.pay:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.pay .spinner { display: none; }
.pay.busy { pointer-events: none; }
.pay.busy .pay-text { visibility: hidden; }
.pay.busy .spinner {
  display: block;
  position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.secure { margin: 12px 0 0; font-size: 13px; color: var(--dim); text-align: center; }

.foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.foot p { margin: 0 0 4px; }

/* return page */
.result { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
.state { text-align: center; padding: 40px 0; }
.state h1 { font-size: clamp(30px, 7vw, 40px); }
.state p { color: var(--muted); }
.big-spinner {
  width: 40px; height: 40px; margin: 0 auto 20px;
  border: 3px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%; animation: spin .8s linear infinite;
}
.tick {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(56, 217, 201, .14);
  display: grid; place-items: center;
}
.tick svg { width: 28px; height: 28px; stroke: var(--teal); }
.ticket {
  margin-top: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.ticket-head {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(242, 100, 48, .22), rgba(56, 217, 201, .1));
  border-bottom: 1px dashed var(--line);
}
.ticket-head .eyebrow { margin-bottom: 4px; }
.ticket-head h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -.01em; }
.ticket-body { padding: 18px 20px 22px; display: grid; gap: 18px; }
@media (min-width: 440px) { .ticket-body { grid-template-columns: 1fr auto; align-items: center; } }
.ticket dl { margin: 0; display: grid; gap: 8px; }
.ticket dl div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.ticket dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.ticket dd { margin: 0; font-family: var(--display); font-weight: 500; overflow-wrap: anywhere; }
.ticket .ticket-ids { padding: 14px 20px 18px; border-top: 1px dashed var(--line); gap: 12px; }
.ticket .ticket-ids div { grid-template-columns: none; gap: 3px; }
.ticket-ids dd { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (min-width: 440px) { .ticket .ticket-ids { grid-template-columns: 1fr 1fr; } }
.qr { background: #fff; border-radius: 10px; padding: 10px; justify-self: center; }
.qr svg, .qr img { display: block; width: 148px; height: 148px; }
.paid-with { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.back {
  display: inline-block; margin-top: 22px;
  font-family: var(--display); font-weight: 600;
  color: var(--text); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 18px;
}
.back:hover { border-color: var(--orange); }
