/* The font files are variable fonts: one file per family and style covers every weight used.
   (The per-weight copies in fonts/ are byte-identical, so the page loads each style once.) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/fonts/CormorantGaramond-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url(/fonts/CormorantGaramond-600-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/Inter-400-normal.woff2) format('woff2');
}

:root {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --line: #2a2a2f;
  --ink: #f4efe6;
  --muted: #a7a197;
  --accent: #e0244a;
  --accent-2: #ff4d6d;
  --blue: #3d7bff;
  --ok: #3ddc97;
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 600px at 8% -8%, rgba(224, 36, 74, 0.28), transparent 60%),
    radial-gradient(800px 520px at 96% 38%, rgba(61, 123, 255, 0.16), transparent 60%);
  background-repeat: no-repeat;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.demo-bar {
  background: repeating-linear-gradient(135deg, #2b0d14 0 12px, #33101a 12px 24px);
  color: #ffb3c1;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-bottom: 1px solid #4a1422;
}
.demo-bar[hidden] { display: none; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark svg { width: 22px; height: 22px; fill: var(--accent); filter: drop-shadow(0 0 10px rgba(224, 36, 74, 0.6)); }
.mark span { font: italic 600 30px/1 var(--serif); letter-spacing: 0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 600 15px/1 var(--sans); padding: 12px 18px; border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { border-color: #46464e; }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 30px -8px rgba(224, 36, 74, 0.7);
}
.btn.primary:hover { box-shadow: 0 10px 38px -6px rgba(224, 36, 74, 0.85); }
.btn.big { width: 100%; padding: 17px 20px; font-size: 17px; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: 14px var(--sans); padding: 8px 0; }
.linkbtn[hidden] { display: none; }

.hero {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 36px 24px 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start;
}
.hero-copy, .card { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--accent-2); margin: 24px 0 14px; font-weight: 600; }
h1 { font: 600 clamp(44px, 6.2vw, 78px)/0.98 var(--serif); margin: 0 0 22px; letter-spacing: -0.01em; }
h1 em { color: var(--accent-2); font-style: italic; }
.lede { font-size: 18px; color: #d8d2c7; max-width: 30em; margin: 0 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: #e6e0d5; }
.ticks li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--accent-2);
}

.card {
  background: linear-gradient(180deg, rgba(27, 27, 30, 0.92), rgba(20, 20, 22, 0.96));
  border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.event { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed #34343a; }
.event h2 { font: 600 32px/1.05 var(--serif); margin: 4px 0; }
.event-when { margin: 0; font-size: 13px; color: var(--accent-2); font-weight: 600; letter-spacing: 0.04em; }
.event-where { margin: 0; color: var(--muted); font-size: 14px; }
.price { text-align: right; }
.price span { font: 600 44px/1 var(--serif); }
.price small { display: block; color: var(--muted); font-size: 12px; }

.stock { display: flex; align-items: center; gap: 9px; margin: 16px 0 6px; font-weight: 600; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 1.8s infinite; }
.stock.low .dot { background: #ffb020; }
.stock.out .dot { background: #666; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

form { display: grid; gap: 14px; margin-top: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input[type="email"], input:not([type]) {
  background: #0f0f11; border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 14px 14px; font: 16px var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #5f5b55; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 36, 74, 0.25); }
.check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: #cfc9be; font-size: 13.5px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.err { color: #ff8fa3; min-height: 1em; margin: 0; font-size: 14px; }
.methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.methods span { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: #cfc9be; background: #121214; }
.secure { margin: 0; text-align: center; color: var(--muted); font-size: 12.5px; }

.state { display: grid; gap: 14px; text-align: center; justify-items: center; }
.state[hidden] { display: none; }
.state h2 { font: 600 34px/1.05 var(--serif); margin: 0; }
.muted { color: var(--muted); margin: 0; max-width: 28em; }
.fine { color: #8a857c; font-size: 12.5px; margin: 0; max-width: 32em; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #26262b; margin: 0; }
.pill.ok { background: rgba(61, 220, 151, 0.12); color: var(--ok); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #2c2c31; border-top-color: var(--accent-2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.qr { width: min(260px, 70vw); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 0 0 1px #2a2a2f, 0 20px 60px -20px rgba(224, 36, 74, 0.6); animation: pop 0.35s ease-out; }
.qr svg { width: 100%; height: 100%; display: block; }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qr-cap { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.linkrow { display: flex; gap: 8px; align-items: center; width: 100%; background: #0f0f11; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; }
.linkrow code { flex: 1; font-size: 12.5px; overflow-wrap: anywhere; text-align: left; color: #d8d2c7; }
.steps-mini { text-align: left; color: #cfc9be; font-size: 14px; margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; }

.section-title { font: 600 clamp(30px, 4vw, 44px)/1.05 var(--serif); margin: 0 0 20px; }
.how, .guarantee, .faq, .contact { max-width: 1120px; margin: 0 auto; padding: 56px 24px; border-top: 1px solid #1d1d21; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step span { font: italic 600 40px/1 var(--serif); color: var(--accent-2); }
.step h3 { margin: 10px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
.guarantee { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.g-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--accent-2); border: 1px solid #4a1422; background: radial-gradient(circle, rgba(224, 36, 74, 0.25), transparent 70%); }
.guarantee p { color: #d8d2c7; max-width: 46em; margin: 0 0 14px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p, details ul { color: var(--muted); margin: 10px 0 0; }
details li { margin: 4px 0; }
.contact { text-align: center; }
.contact p { color: var(--muted); margin-left: auto; margin-right: auto; }
.foot { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; gap: 12px; color: #6f6a62; font-size: 13px; border-top: 1px solid #1d1d21; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f1f23; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 9; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
  .steps { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* quantity picker */
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #0f0f11; }
.qty-btn { width: 42px; height: 42px; border: 0; background: none; color: var(--ink); font: 600 20px/1 var(--sans); cursor: pointer; border-radius: 999px; }
.qty-btn:disabled { color: #4a4740; cursor: default; }
.qty output { min-width: 28px; text-align: center; font: 600 18px var(--sans); }
.qty-note { font-size: 12.5px; color: var(--muted); }

/* tickets */
.tickets { display: grid; gap: 16px; width: 100%; }
.ticket { display: grid; gap: 10px; justify-items: center; background: #0f0f11; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.ticket-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.ticket-event { margin: -6px 0 0; font: 600 20px/1.1 var(--serif); }
.ticket .btn.primary { width: 100%; }
.pill.warn { background: rgba(255, 176, 32, 0.12); color: #ffc35c; text-transform: none; letter-spacing: 0; }

/* your tickets */
.tickets-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; background: linear-gradient(90deg, #3a0e1a, #1d1230); border-bottom: 1px solid #4a1422; text-decoration: none; font-weight: 600; }
.tickets-banner[hidden] { display: none; }
.tb-star { color: var(--accent-2); }
.tb-go { font-size: 13px; border: 1px solid #5a2030; border-radius: 999px; padding: 4px 10px; }
.tickets-view { max-width: 640px; margin: 0 auto; padding: 24px 20px 64px; }
.tickets-view[hidden], #shop[hidden] { display: none; }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tv-title { font-size: clamp(36px, 8vw, 52px); margin: 8px 0; }
.tv-note { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: #d8d2c7; font-size: 14px; }
.tv-list { display: grid; gap: 18px; margin: 18px 0; }
.order-card { padding: 22px; }

/* partnership + face value */
.partner { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.facevalue { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* about + trader */
.about { max-width: 1120px; margin: 0 auto; padding: 48px 24px; border-top: 1px solid #1d1d21; }
.about p { color: #d8d2c7; max-width: 46em; }
.trader { display: grid; gap: 8px; margin: 16px 0 0; }
.trader div { display: flex; gap: 10px; font-size: 14px; }
.trader div[hidden], [hidden] { display: none !important; }
.trader dt { color: var(--muted); min-width: 70px; margin: 0; }
.trader dd { margin: 0; color: #e6e0d5; }
.foot a { color: var(--muted); }

/* legal + admin pages */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.legal h1 { font: 600 clamp(34px,6vw,52px)/1.05 var(--serif); }
.legal h2 { font: 600 24px var(--serif); margin: 28px 0 8px; }
.legal p, .legal li { color: #d8d2c7; }
.admin label { display: block; margin-bottom: 10px; }
.admin input, .admin textarea { width: 100%; background: #0f0f11; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 12px; font: 15px var(--sans); }
.admin textarea { font-family: ui-monospace, monospace; font-size: 13px; margin-bottom: 10px; }
.kv { width: 100%; border-collapse: collapse; margin: 12px 0; }
.kv td { padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv td:first-child { color: var(--muted); width: 40%; }

.value-line { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: #e6e0d5; padding: 10px 12px; border-radius: 12px; background: rgba(224, 36, 74, 0.10); border: 1px solid #4a1422; }

/* ---------- phones: the buy card on the first screen, 44px+ tap targets ---------- */
.help-order { display: flex; width: 100%; justify-content: flex-start; margin: 8px 0; min-height: 48px; }
summary { padding: 10px 0; margin: -10px 0; }
details[open] summary { margin-bottom: 0; }
.foot a { display: inline-block; padding: 12px 4px; margin: -12px 0; }
.ticket .btn.primary { min-height: 54px; font-size: 17px; }
.ticket .qr { width: min(100%, 360px); }
.btn { min-height: 44px; }
.btn.small { min-height: 40px; }

@media (max-width: 860px) {
  .top { padding: 12px 16px; }
  .mark span { font-size: 26px; }
  .hero { padding: 4px 16px 40px; gap: 0; }
  /* headline, then the card, then the selling copy */
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; margin: 2px 0 6px; }
  .hero h1 { order: 2; font-size: clamp(34px, 10vw, 44px); margin: 0 0 12px; }
  .hero .card { order: 3; }
  .hero .lede { order: 4; margin: 28px 0 16px; font-size: 17px; }
  .hero .ticks { order: 5; }
  .card { padding: 18px; border-radius: 20px; }
  .event { padding-bottom: 12px; }
  .event h2 { font-size: 28px; }
  .price span { font-size: 38px; }
  .value-line { margin-top: 10px; font-size: 13.5px; padding: 8px 10px; }
  .stock { margin: 12px 0 0; }
  form { gap: 12px; margin-top: 10px; }
  .qty-btn { width: 52px; height: 52px; font-size: 24px; }
  .qty output { min-width: 36px; font-size: 20px; }
  .check { grid-template-columns: 24px 1fr; }
  .check input { width: 22px; height: 22px; }
  .partner { margin: 0; order: 1; } /* below the Pay button on phones, so Pay fits the first screen */
  .methods, .secure { order: 2; }
  .how, .guarantee, .faq, .contact, .about { padding: 40px 16px; }
  .foot { padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); }
  .tickets-view { padding: 16px 12px calc(48px + env(safe-area-inset-bottom)); }
  .order-card { padding: 16px 12px; }
  .ticket { padding: 14px 12px; }
  .ticket .qr { width: 100%; padding: 8px; }
  .legal { padding: 24px 18px calc(56px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }
}
