/* Eventory website buying flow (event, program, sign-in, pay). Same tokens as home.html and the policy pages.
   Cached for a year by nginx: rename the file (shop.v2.css) when it changes. */
:root {
  --bg: #F6F5FB;
  --surface: #FFFFFF;
  --ink: #17152B;
  --muted: #5D5A72;
  --line: #E4E1F0;
  --accent: #5B4DE0;
  --accent-ink: #FFFFFF;
  --accent-soft: #ECE9FF;
  --ok: #157F4A;
  --ok-soft: #E3F5EA;
  --warn: #9A5B00;
  --warn-soft: #FFF2DB;
  --bad: #B42318;
  --bad-soft: #FDECEA;
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E1A;
    --surface: #181629;
    --ink: #F4F3FA;
    --muted: #A9A6BF;
    --line: #2A2742;
    --accent: #8F84FF;
    --accent-ink: #0F0E1A;
    --accent-soft: #221F3D;
    --ok: #5FD394;
    --ok-soft: #12291D;
    --warn: #F2B95A;
    --warn-soft: #2C2210;
    --bad: #FF8A80;
    --bad-soft: #2E1514;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { display: block; max-width: 100%; }

.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__in { max-width: 1040px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.who { margin-left: auto; font-size: 14px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.who__name { color: var(--ink); font-weight: 600; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 32px 16px 64px; }
.narrow { max-width: 520px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h2 { font-size: 20px; margin: 0; }
p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input {
  min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}
.field input:focus { border-color: var(--accent); outline: none; }

.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.alert--bad { background: var(--bad-soft); color: var(--bad); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); }
.meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.desc { white-space: pre-line; }

.tickets { display: flex; flex-direction: column; gap: 12px; }
.ticket { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.ticket:first-child { border-top: 0; }
.ticket__info { flex: 1; min-width: 0; }
.ticket__name { font-weight: 700; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.qty button[disabled] { opacity: .4; cursor: not-allowed; }
.qty output { min-width: 20px; text-align: center; font-weight: 700; }

.lines { width: 100%; border-collapse: collapse; font-size: 15px; }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; }
.lines tr.total td { font-weight: 800; font-size: 18px; border-bottom: 0; padding-top: 14px; }
.timer { font-variant-numeric: tabular-nums; }
.qr { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.qr figure { margin: 0; padding: 12px; background: #FFFFFF; border-radius: 16px; text-align: center; color: #17152B; }
.qr svg { width: 100%; height: auto; }
.qr figcaption { font-size: 13px; font-weight: 700; margin-top: 6px; word-break: break-all; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__in { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

.skeleton { height: 18px; border-radius: 8px; background: var(--line); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .btn { transition: none; } }
