:root {
  color-scheme: light;
  --ink: #1d1530;
  --muted: #665f74;
  --surface: #fff;
  --soft: #f4efff;
  --brand: #5b2bd9;
  --brand-dark: #24104f;
  --accent: #f4b942;
  --line: #ded6ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(160deg, #fff 0%, #faf8ff 55%, #f2ebff 100%);
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: .8rem;
  font-size: .8rem;
  letter-spacing: -.03em;
  box-shadow: 0 .5rem 1.5rem #5b2bd933;
}

.secure-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 7rem);
  display: grid;
  align-content: center;
  gap: 2.5rem;
  padding: 3rem 0 5rem;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--brand);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
p { text-wrap: pretty; }

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 13vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.lead {
  max-width: 36rem;
  margin: 1.35rem 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.primary-action {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.2rem;
  border-radius: .9rem;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 .75rem 1.8rem #5b2bd92e;
}

.primary-action:focus-visible,
.brand:focus-visible {
  outline: .2rem solid var(--accent);
  outline-offset: .2rem;
}

.ticket-preview {
  width: min(100%, 24rem);
  justify-self: center;
  padding: 1rem;
  border: 1px solid #ffffffb3;
  border-radius: 1.5rem;
  background: #ffffffc9;
  box-shadow: 0 2rem 5rem #2b155026;
  backdrop-filter: blur(1rem);
  transform: rotate(1.5deg);
}

.ticket-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  font-weight: 800;
}

.status-pill {
  padding: .35rem .55rem;
  color: #276044;
  background: #dff7ea;
  border-radius: 999px;
}

.ticket-art {
  display: grid;
  min-height: 16rem;
  margin: 1rem 0;
  place-items: center;
  overflow: hidden;
  border-radius: 1rem;
  background: radial-gradient(circle at 72% 24%, #f4b942 0 8%, transparent 8.5%), linear-gradient(135deg, #24104f, #6f3fe6 64%, #9b78f0);
}

.ticket-symbol {
  color: #ffffff1f;
  font-size: 9rem;
  font-weight: 950;
  letter-spacing: -.14em;
  transform: translateX(-.3rem);
}

.ticket-caption {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.steps, .events, .ticket-section { padding: 5rem 0; }

h2 {
  max-width: 16ch;
  margin: 0 0 2rem;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.steps ol {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.steps li > span {
  display: grid;
  flex: 0 0 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: var(--brand-dark);
  border-radius: .65rem;
  font-size: .8rem;
  font-weight: 800;
}

.steps strong { font-size: 1.05rem; }

.steps li p {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.empty-state {
  padding: 1.4rem;
  border: 1px dashed #bdb0d3;
  border-radius: 1rem;
  background: #ffffffa6;
}

.empty-state p { margin: .45rem 0 0; color: var(--muted); line-height: 1.5; }

.event-grid { display: grid; gap: 1rem; }

.event-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.event-card:hover { transform: translateY(-.2rem); box-shadow: 0 1rem 2rem #2b155014; }
.event-card h3, .ticket-option h3 { margin: .8rem 0 .4rem; font-size: 1.35rem; }
.event-card p { margin: 0 0 1rem; color: var(--muted); }
.event-modality { color: var(--brand); font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.event-page { padding-top: 2rem; }
.back-link { color: var(--muted); font-size: .88rem; font-weight: 700; text-decoration: none; }
.event-hero { display: grid; gap: 2rem; padding: 3rem 0 4rem; }
.event-hero h1 { max-width: 14ch; margin-top: .8rem; }
.event-facts { margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; }
.event-facts div + div { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.event-facts dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-facts dd { margin: .35rem 0 0; font-weight: 750; line-height: 1.45; }
.ticket-list { display: grid; gap: .8rem; }
.ticket-option { display: grid; gap: 1.2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.ticket-option h3 { margin-top: 0; }
.ticket-option p { margin: 0 0 .65rem; color: var(--muted); }
.ticket-option small { color: var(--muted); }
.ticket-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ticket-buy > strong { font-size: 1.2rem; white-space: nowrap; }
.disabled-action { padding: .8rem 1rem; border-radius: .9rem; color: var(--muted); background: #eeeaf3; font-weight: 800; }

.checkout-page { min-height: 100vh; }
.checkout-shell { display: grid; min-height: calc(100vh - 4.5rem); padding-block: 2rem 5rem; place-items: center; }
.checkout-card { width: min(100%, 36rem); padding: clamp(1.25rem, 5vw, 2.25rem); border: 1px solid var(--line); border-radius: 1.5rem; background: #fff; box-shadow: 0 2rem 5rem #2b155019; }
.checkout-card h1 { font-size: clamp(2.2rem, 10vw, 4rem); }
.order-summary { margin: 1.5rem 0; padding: 1rem; border-radius: 1rem; background: var(--soft); }
.order-summary div { display: flex; justify-content: space-between; gap: 1rem; }
.order-summary div + div { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #d9ceee; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; font-weight: 800; text-align: right; }
.integration-notice { margin: 1.2rem 0; padding: 1rem; border-left: .25rem solid var(--accent); background: #fff9e9; }
.integration-notice p { margin: .35rem 0 0; color: var(--muted); line-height: 1.5; }
.button-reset { width: 100%; border: 0; font: inherit; }
.button-reset:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }

footer {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.offline-page {
  display: grid;
  min-height: 100vh;
  padding: 1rem;
  place-items: center;
}

.offline-card {
  width: min(100%, 30rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 2rem 5rem #2b155019;
}

.offline-card .eyebrow { margin-top: 1.5rem; }
.offline-card h1 { font-size: clamp(2.1rem, 10vw, 3.8rem); }
.offline-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }

@media (min-width: 48rem) {
  .site-header, main, footer { width: min(100% - 4rem, 72rem); }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); align-items: center; }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .event-hero { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); align-items: start; }
  .ticket-option { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .steps li { min-height: 10rem; }
  footer { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
