@font-face { font-family: Barlow; font-weight: 500; src: url(/fonts/barlow-500.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 600; src: url(/fonts/barlow-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; src: url(/fonts/cond-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; src: url(/fonts/cond-700.woff2) format('woff2'); font-display: swap; }

/* Stage-console palette shared with Pistamix: indigo-slate that doesn't glare in a dark room. */
:root {
  --bg: #161927;
  --panel: #1f2338;
  --raised: #282d46;
  --line: #343a58;
  --text: #eef0f8;
  --muted: #a3a9c6;
  --faint: #747b9c;
  --mic: #b18cff;
  --mic-ink: #1b1233;
  --amber: #ffb547;
  --ok: #5ee08f;
  --no: #ff8a9a;
  --cond: 'Barlow Semi Condensed', Barlow, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.45 Barlow, -apple-system, system-ui, sans-serif;
}
a { color: var(--mic); }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; margin: 0; line-height: 1; }
[hidden] { display: none !important; }

main.narrow { max-width: 560px; margin: 0 auto; padding: 48px 16px; }
main.narrow h1 { font-size: 40px; margin-bottom: 14px; }

.btn {
  font: 700 18px var(--cond);
  letter-spacing: 0.2px;
  border: 1.5px solid var(--line);
  background: var(--raised);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--faint); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { background: var(--mic); color: var(--mic-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--raised); }
.btn.sm { font-size: 15px; padding: 6px 10px; border-radius: 9px; }
.btn.danger { color: var(--no); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

input, select {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
input:focus { border-color: var(--mic); }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line); position: relative; margin: 0; padding: 0; border: 0; flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; top: 3px; left: 3px; background: var(--muted); transition: transform 120ms, background 120ms; }
.switch input:checked { background: color-mix(in srgb, var(--mic) 55%, var(--line)); }
.switch input:checked::after { transform: translateX(16px); background: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); max-width: calc(100vw - 32px); z-index: 50;
}
.toast.error { border-color: var(--no); }

/* Pistamix at the top; MexCanTech (its emblem on a navy tile, as drawn) in the credit line. */
.brandbar { max-width: var(--wrap, 980px); margin: 0 auto; padding: 18px 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand .word { font: 700 19px var(--cond); letter-spacing: 0.1px; }
.brand .product { font: 600 19px var(--cond); color: var(--muted); padding-left: 10px; border-left: 1.5px solid var(--line); }
.credit { color: var(--faint); font-size: 14px; margin: 0; }
.credit a { color: var(--muted); white-space: nowrap; }
.credit .heart { color: #f0473c; }
.credit .mct img { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 4px; background: #040e25; }

/* Ads (home page only here; the guests' page has its own copy): labelled, last, never over anything. */
.ad { margin: 64px auto 0; max-width: 728px; text-align: center; }
.ad-label { display: block; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ad-box { min-height: 90px; }
.ad-preview { height: 90px; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--faint); }

.qr { background: #fff; border-radius: 10px; display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
