/* Shared styles for the Stimpill app pages (signup, dashboard, staff
   scanner, customer join + card). Same black/orange as aithjonusta.is. */
:root {
  --black: #14100C; --raised: #1D1712; --panel: #251D16;
  --white: #F5F0E7; --soft: #BDB2A2; --dim: #8F8475;
  --orange: #EA7A32; --orange-deep: #C25E1E; --glow: rgba(234,122,50,.14);
  --line: rgba(245,240,231,.12); --line-strong: rgba(245,240,231,.24);
  --ok: #5BB974; --bad: #E5534B;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font-body);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--orange); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--white); }
.brand .ai { color: var(--orange); }
h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; margin: 28px 0 10px; letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 12px; }
.muted { color: var(--soft); }
.small { font-size: .88rem; }
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 16px 0; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
label .muted { font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; color: var(--white); background: var(--black);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--orange); }
.btn { font: 600 1rem var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 10px; border: 1px solid var(--orange); background: var(--orange);
  color: var(--black); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn.block { width: 100%; }
.btn.big { padding: 18px 22px; font-size: 1.15rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 0; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.error { color: #FFB4A8; background: rgba(229,83,75,.12); border: 1px solid rgba(229,83,75,.4); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.success { color: #BFF0CB; background: rgba(91,185,116,.12); border: 1px solid rgba(91,185,116,.4); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.stat { background: var(--panel); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.stat span { color: var(--soft); font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--soft); font-weight: 600; }
.qr svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 10px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; font-weight: 700; }
.swatch[aria-pressed="true"] { border-color: var(--white); }
footer { color: var(--dim); font-size: .82rem; padding: 32px 0; }

/* Preview / customer card */
.card { border-radius: 18px; padding: 18px; background: var(--card-bg, #3B2A20); color: var(--card-fg, #F3E6D3); box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; min-width: 0; overflow-wrap: anywhere; }
.card-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-logo { display: block; max-height: 36px; max-width: 120px; object-fit: contain; }
.card-count { flex: none; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; text-align: right; }
.card-count b { display: block; font-size: 1.3rem; letter-spacing: 0; opacity: 1; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0; }
.dot { aspect-ratio: 1; border-radius: 50%; border: 2px solid currentColor; opacity: .55; }
.dot.on { background: radial-gradient(circle, var(--card-bg, #3B2A20) 0 22%, currentColor 24%); opacity: 1; }
.card-reward { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.card-reward b { display: block; font-size: 1rem; text-transform: none; letter-spacing: 0; opacity: 1; }

/* Public demo (/s/demo): makes it obvious the page is what a business's customers see. */
.demo-bar { position: sticky; top: 0; z-index: 10; background: var(--orange, #EA7A32); color: #14100C; text-align: center;
  padding: 10px 16px; font-weight: 600; font-size: .95rem; line-height: 1.35; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.demo-bar a { color: #14100C; font-weight: 800; }
