/* loyalty.artesiancorp.com. Styled after artesiancorp.com/artesian-app-loyalty-rewards:
   dark ground, Montserrat, gold accents, the app hero and the venue logo strip. */
:root {
  --ground: #070B14;
  --ground-2: #0C1424;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-line: rgba(255, 255, 255, 0.10);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.72);
  --gold-1: #F6D27A;
  --gold-2: #D9A441;
  --gold-3: #A87623;
  --navy: #0B2545;
  --bad: #FF8A7A;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(40, 90, 150, 0.35) 0%, rgba(7, 11, 20, 0) 70%),
    var(--ground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.hidden { display: none !important; }

.top { padding: calc(20px + env(safe-area-inset-top)) 16px 0; text-align: center; }
.logo { width: 170px; height: auto; }

.hero { text-align: center; padding: 34px 16px 26px; }
.kicker {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
}
h1 {
  margin: 16px auto 0; max-width: 520px;
  font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase;
}
.venue { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--muted); }
.venue img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }

.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px calc(36px + env(safe-area-inset-bottom)); }
.panel {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px;
  padding: 22px 20px; backdrop-filter: blur(6px);
}
.panel + .panel { margin-top: 14px; }
.panel.cta { border-color: rgba(217, 164, 65, 0.55); box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.15), 0 18px 40px rgba(0, 0, 0, 0.35); }
.panel.slim { padding: 16px 20px; }
h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
h3 { margin: 0 0 18px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); text-align: center; }
p { margin: 0; line-height: 1.55; color: var(--muted); font-size: 15px; }
.center { text-align: center; }

.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.prize { text-align: center; }
.prize .img {
  aspect-ratio: 1; border-radius: 14px; background: #fff center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--gold-2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.prize span { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text); }

label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
input[type=tel] {
  width: 100%; font: inherit; font-size: 18px; font-weight: 600; padding: 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.95); color: #111;
}
input[type=tel]:focus { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.btn {
  display: block; width: 100%; margin-top: 16px; padding: 16px; border: 0; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn.gold { color: var(--navy); background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%); box-shadow: 0 8px 20px rgba(217, 164, 65, 0.3); }
.btn.ghost { color: var(--text); background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); font-size: 14px; padding: 13px; margin-top: 10px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.fine { margin-top: 12px; font-size: 12px; }
.error { margin-top: 12px; color: var(--bad); font-size: 14px; font-weight: 600; display: none; }

.pitch { margin-top: 34px; text-align: center; }
.pitch > img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.gold-banner {
  margin: -6px auto 0; display: inline-block; padding: 8px 14px;
  font-size: clamp(15px, 5.4vw, 24px); white-space: nowrap; font-weight: 900; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.sub-banner {
  margin: 8px auto 0; display: table; padding: 5px 10px; background: #fff; color: var(--navy);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
}
.badges { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.badges img { height: 48px; width: auto; display: block; }

.venues { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--panel-line); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 28px; }
.logos img { height: 34px; width: auto; max-width: 120px; object-fit: contain; opacity: 0.9; }
.logos img[alt="Fig'n'Fox"], .logos img[alt="The Gatsby"] { height: 52px; }

.spinner {
  width: 24px; height: 24px; margin: 22px auto 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: var(--gold-2);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Get-the-app page (index.html) */
.home { text-align: center; padding: 24px 16px calc(36px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
.home h1 { font-size: 30px; }
.home .lead { margin: 12px auto 0; max-width: 360px; }

/* ---- Scan to Win page: every colour below comes from the promo's theme ---- */
:root { --accent: #D9A441; }
body.scan { background: var(--ground); }
body.scan[data-button=gold][data-effect=plain] {
  background: radial-gradient(90% 50% at 50% 0%, rgba(40, 90, 150, 0.35) 0%, rgba(7, 11, 20, 0) 70%), var(--ground);
}
body.scan[data-bar=off] .accent-bar { display: none; }
body.scan.previewing { padding-top: 28px; }
.stw-top { text-align: center; padding: calc(34px + env(safe-area-inset-top)) 16px 0; }
.stw-logo { width: 170px; height: auto; }
.stw-logo.venue-logo { width: auto; height: 60px; max-width: 250px; object-fit: contain; }
.accent-bar { width: 66px; height: 7px; margin: 16px auto 0; background: var(--accent); }

.headline {
  position: relative; isolation: isolate; display: inline-block;
  margin: 26px auto 0; font-size: clamp(34px, 11vw, 48px); line-height: 1; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--text);
}
body[data-effect=echo] .headline::after {
  content: attr(data-text); position: absolute; left: 0; right: 0; top: 0.3em; z-index: -1;
  color: transparent; -webkit-text-stroke: 1.5px var(--text); opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 72%);
  mask-image: linear-gradient(to bottom, transparent 40%, #000 72%);
}
body[data-effect=gold] .headline {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo-name {
  margin-top: 18px; font-size: 14px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}

.ticker {
  overflow: hidden; margin: 0 0 22px; padding: 20px 0; border: 1px solid var(--panel-line);
  border-radius: 4px; background: var(--panel);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; white-space: nowrap; animation: marquee 16s linear infinite; }
.ticker-track span { font-size: 22px; font-weight: 800; text-transform: uppercase; color: var(--text); }
.ticker-track span::after { content: "•"; margin: 0 28px; font-size: 16px; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.tagline {
  margin: 0 auto 24px; max-width: 360px; text-align: center; font-size: 16px; font-weight: 700;
  text-transform: uppercase; line-height: 1.35; color: var(--text);
}
.cta-title { color: var(--accent); text-align: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--panel-line); }
.panel.cta { border-color: var(--panel-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }

/* Button styles: gold (Artesian), accent (venue colour), white */
.btn.primary { color: var(--navy); background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%); }
body[data-button=accent] .btn.primary { background: var(--accent); color: #111; }
body[data-button=white] .btn.primary { background: #fff; color: #000; font-weight: 700; }
body:not([data-button=gold]) .gold-banner { background: var(--accent); color: #111; text-shadow: none; }
input[type=tel]:focus { outline-color: var(--accent); }

.footer-text { margin-top: 26px; text-align: center; font-size: 14px; font-weight: 800; text-transform: uppercase; color: var(--text); }
.terms { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.terms a { color: var(--text); }
.artesian-small { display: block; width: 120px; margin: 30px auto 0; opacity: 0.55; }
.preview-ribbon {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding: 6px; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: #FFD24D; color: #111;
}

/* Inside the dashboard's phone preview: no desktop scrollbar (phones overlay theirs). */
html.embedded { scrollbar-width: none; }
html.embedded::-webkit-scrollbar { display: none; }

/* ---- Sign-up forms (join.html) ---- */
.intro { margin: 0 auto 22px; max-width: 420px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.55; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.form-field input:not([type=checkbox]), .form-field select {
  width: 100%; font: inherit; font-size: 16px; font-weight: 500; padding: 13px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.95); color: #111;
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-field.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-field.checkbox label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.form-field.checkbox .help, .form-field.checkbox .field-error { flex-basis: 100%; }
.form-field input[type=checkbox], .consent input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.form-field .help { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--bad); }
.field-error:empty { display: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; font-size: 14px; color: var(--text); line-height: 1.45; }
.consent a { color: var(--text); }
body.join .badges { margin-top: 18px; }

/* Banner image (theme.bannerImageUrl): event artwork across the top. */
.banner { display: block; width: calc(100% - 32px); max-width: 520px; margin: 22px auto 0; border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35); }
.banner.hidden + .hero, .banner + .hero { padding-top: 26px; }
