/* SPRED Tix. Mobile-first. Brand tokens match spredsolutions.com. */
:root {
  --bg: #08090c; --bg-2: #0d1017; --bg-3: #121723; --line: #1e2533; --line-2: #2a3345;
  --ink: #f5f5f4; --muted: #8d93a3; --muted-2: #b4b9c5;
  --accent: #006af8; --accent-2: #3d8bff; --ok: #5fe39a; --err: #ff6b6b; --warn: #ffc36b;
  --head: "Space Grotesk", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px; --gut: clamp(16px, 4vw, 32px); --r: 14px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 620px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.warn { color: var(--warn); }
.accent { color: var(--accent-2); }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }

/* Header / footer */
.top { border-bottom: 1px solid var(--line); background: rgba(8, 9, 12, .85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }
.brand-mark { font: 700 19px/1 var(--head); letter-spacing: .01em; }
.brand-mark b { color: var(--accent-2); font-weight: 700; }
.brand-name { font: 600 18px/1.1 var(--head); }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--muted-2); text-decoration: none; font-size: 15px; padding: 10px 0; }
.top nav .nav-org { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; }
@media (max-width: 420px) { .top nav { gap: 12px; } .top nav a { font-size: 14px; } }
.top nav a:hover { color: #fff; }
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; font-size: 14px; color: var(--muted-2); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--muted-2); }
.foot-pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.foot-pay-label { color: var(--muted); font-size: 13px; margin: 0 4px 0 0 !important; }
.pay-icons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-icons img { height: 26px; width: auto; border-radius: 4px; }
/* Google Pay's official file includes its required clear space; size the pill itself to match the other marks */
.pay-icons img[src*="googlepay"] { height: 48px; margin: -11px -5px; }
@media (max-width: 600px) { .foot-pay { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* Buttons and notices */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--ink); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, border-color .15s; }
.btn:hover { border-color: var(--accent-2); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1a7bff; }
.btn.block { display: flex; width: 100%; }
.btn.big { min-height: 54px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.notice { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; text-align: left; }
.notice.ok { border-color: rgba(95, 227, 154, .45); background: rgba(95, 227, 154, .07); }
.notice.err { border-color: rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .08); }
.tag { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .06em; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted-2); }
.tag.err { color: var(--err); border-color: var(--err); }

/* Listing */
.hero { position: relative; padding: clamp(40px, 9vw, 96px) 0 clamp(28px, 5vw, 48px); overflow: hidden;
  background: radial-gradient(900px 400px at 85% -10%, rgba(0, 106, 248, .28), transparent 65%); }
.hero.has-banner { background: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero.has-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 12, .2), var(--bg)); }
.hero .wrap { position: relative; z-index: 1; }
/* Same film as spredevents.com, running behind the hero and the upcoming events */
.stage { position: relative; isolation: isolate; padding-bottom: 40px; }
.hero.has-video { background: none; padding-top: clamp(72px, 14vw, 160px); padding-bottom: clamp(40px, 7vw, 72px); overflow: visible; }
.hero-video { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); will-change: opacity; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-video::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8, 9, 12, .9) 0%, rgba(8, 9, 12, .62) 45%, rgba(8, 9, 12, .35) 100%),
  linear-gradient(180deg, rgba(8, 9, 12, .55) 0%, transparent 18%, rgba(8, 9, 12, .45) 55%, rgba(8, 9, 12, .8) 85%, var(--bg) 100%), rgba(0, 40, 110, .18); }
@media (max-width: 1024px) { .hero-video::after { background: linear-gradient(180deg, rgba(8, 9, 12, .6) 0%, rgba(8, 9, 12, .7) 40%, rgba(8, 9, 12, .82) 80%, var(--bg) 100%), rgba(0, 40, 110, .18); } }
.stage .card { background: rgba(13, 16, 23, .82); backdrop-filter: blur(6px); }
.stage .empty { background: rgba(13, 16, 23, .7); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } .hero-video { background: var(--bg) url(/assets/hero-poster.jpg) center 30% / cover; } }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; max-width: 820px; }
@media (min-width: 720px) { .filters { grid-template-columns: 1fr auto auto auto; } }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--ink); font: 400 16px/1.3 var(--body); }
input::placeholder { color: #6c7282; }
input:focus, select:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px rgba(61, 139, 255, .25); }
input[readonly] { opacity: .8; }
select { appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238d93a3' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.list { margin-top: 12px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-3); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font: 700 64px/1 var(--head); color: var(--line-2);
  background: radial-gradient(400px 200px at 70% 0, rgba(0, 106, 248, .25), transparent 70%), var(--bg-3); }
.date-chip { position: absolute; left: 12px; top: 12px; background: rgba(8, 9, 12, .82); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px;
  font: 500 11px/1.1 var(--mono); letter-spacing: .1em; text-align: center; backdrop-filter: blur(6px); }
.date-chip b { display: block; font: 700 20px/1 var(--head); letter-spacing: 0; }
.card-body { padding: 16px 16px 18px; }
.card-body h2 { font-size: 20px; margin-bottom: 8px; }
.card-body p { margin: 0 0 4px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px !important; }
.empty { text-align: center; padding: 56px 0; border: 1px dashed var(--line-2); border-radius: var(--r); }
@media (hover: hover) {
  .card:hover { border-color: var(--line-2); transform: translateY(-3px); }
  .card:hover .card-img img { transform: scale(1.04); }
}

/* Event page */
.event-hero { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 0; }
.event-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r); }
.event-grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 960px) { .event-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 48px; } .buy { position: sticky; top: 84px; } }
.facts { display: grid; gap: 14px; margin: 22px 0 26px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; }
.prose { color: var(--muted-2); max-width: 68ch; }
.prose h2 { color: var(--ink); margin-top: 1.6em; font-size: 20px; }
.prose li { margin-bottom: 6px; }
.terms { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.terms summary { cursor: pointer; font-weight: 600; }
.buy { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); padding: 20px; }
.types { list-style: none; padding: 0; margin: 0 0 16px; }
.type { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.type:first-child { padding-top: 0; }
.type p { margin: 0; }
.type-name { font-weight: 600; }
.type-price { font: 600 17px/1.3 var(--head); margin-top: 4px !important; }
.type.off { opacity: .6; }
.qty select { width: 86px; }
.total { display: flex; justify-content: space-between; font-size: 17px; margin: 4px 0 14px; }
.final { color: var(--warn); text-align: center; margin: 12px 0 0; font-weight: 500; }

/* Checkout */
.checkout { padding-top: 24px; }
.back { margin-bottom: 18px; font-size: 15px; }
.back a { text-decoration: none; color: var(--muted-2); }
.summary { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--bg-2); margin-bottom: 22px; }
.summary ul { list-style: none; margin: 12px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.summary li, .summary-total { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { margin: 0; font-size: 18px; }
.form fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.form legend { font: 600 19px/1.2 var(--head); margin-bottom: 6px; padding: 0; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 500; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
fieldset > .hint { margin: 0 0 14px; }
.error { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.has-error input, .has-error select { border-color: var(--err); }
.phone { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 8px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg-2); }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-size: 15px; color: var(--muted-2); }
.check .error { grid-column: 2; }
.check.has-error { border-color: var(--err); }
.check.optional { background: transparent; border-style: dashed; }
.cf-turnstile { margin: 0 0 16px; min-height: 65px; }
.pay { padding-top: 48px; }
.pay-amount { font: 700 40px/1.1 var(--head); margin: 10px 0 6px; }

/* Tickets */
.pending { padding-top: 64px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent-2); margin: 0 auto 24px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tickets { padding-top: 24px; }
.tickets-head { margin: 8px 0 22px; }
.tickets-head h1 { font-size: clamp(28px, 6vw, 40px); }
.tickets-head p { margin: 0 0 4px; }
.ticket-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.ticket { background: #fff; color: #0b0d12; border-radius: 18px; padding: 18px 18px 16px; text-align: center; position: relative; }
.ticket-top { display: flex; justify-content: space-between; font-size: 14px; }
.ticket-top .muted { color: #5b6170; }
.ticket-type { font-weight: 700; }
.ticket-holder { font: 600 18px/1.2 var(--head); margin: 8px 0 0; }
.qr { width: min(260px, 78vw); margin: 10px auto 6px; }
.qr svg { width: 100%; height: auto; display: block; }
.code { font: 600 24px/1 var(--mono); letter-spacing: .14em; margin: 4px 0 8px; }
.ticket-meta { font-size: 13px; color: #5b6170; margin: 0; }
.ticket.used, .ticket.void { opacity: .55; }
.ticket .tag { margin-top: 10px; color: #0b0d12; border-color: #c9ccd3; }
.order-meta { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.order-meta div { display: flex; justify-content: space-between; gap: 12px; }
.order-meta dt { color: var(--muted); }
.order-meta dd { margin: 0; text-align: right; }
.order-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.order-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--bg-2); }
.order-list .past { opacity: .6; }
.legal { padding-top: 32px; }
.legal h1 { margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .spinner { border-top-color: var(--line-2); }
}
@media print {
  .top, .foot, .notice, .order-meta { display: none; }
  body { background: #fff; }
  .ticket { break-inside: avoid; border: 1px solid #ccc; }
}
