/* ───────────────────────────────────────────────────────────────────────────
   que — design system.  "Sophisticated Playful": soft, modern, trustworthy.
   Palette:  Charcoal #171e19 · Sage #b7c6c2 · Red #ca0013 · Cream #eeebe3 · White
   Type:     Nunito (loaded per-page).  Red is reserved for actions + "your turn".
   Radius:   40px containers · 24px cards · 16px small.   Never pure black.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --charcoal: #171e19;
  --sage: #b7c6c2;
  --red: #ca0013;
  --cream: #eeebe3;
  --white: #ffffff;

  --text: #171e19;
  --muted: #6f7a74;              /* charcoal-derived, readable on cream */
  --line: rgba(183, 198, 194, 0.55);  /* sage @ ~55% for borders */
  --line-soft: rgba(183, 198, 194, 0.28);

  --r-lg: 40px;
  --r-md: 24px;
  --r-sm: 16px;
  --r-xs: 12px;

  --shadow: 0 20px 50px -12px rgba(23, 30, 25, 0.10);
  --shadow-sm: 0 8px 24px -10px rgba(23, 30, 25, 0.14);
  --shadow-red: 0 16px 34px -10px rgba(202, 0, 19, 0.38);

  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font: 16px/1.55 var(--font);
  min-height: 100vh;
  background-color: var(--cream);
  /* Two soft sage/charcoal light-leaks for atmosphere + a faint grain. */
  background-image:
    radial-gradient(60% 55% at 100% 0%, rgba(183, 198, 194, 0.45), transparent 60%),
    radial-gradient(70% 60% at -10% 100%, rgba(183, 198, 194, 0.30), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 18px 72px;
}
.wrap.wide { max-width: 980px; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 16px 0;
}

/* ── Type ──────────────────────────────────────────────────────────────── */
h1 { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 4px; }
h2 { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.01em; margin: 0 0 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* Tiny uppercase eyebrow label — the signature detail. */
label,
.label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 16px 0 7px;
}

/* ── Form controls ─────────────────────────────────────────────────────── */
input, select, textarea {
  font: inherit;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input::placeholder { color: #a9b1ac; font-weight: 600; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(202, 0, 19, 0.12);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
button {
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  padding: 13px 22px;
  width: auto;
  box-shadow: var(--shadow-red);
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}
button:hover { transform: translateY(-2px); filter: saturate(1.08); }
button:active { transform: translateY(0); }
button:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
  box-shadow: none; filter: grayscale(0.3);
}
button.block { width: 100%; }

/* Secondary — white pill, sage outline. */
button.ghost {
  background: var(--white);
  color: var(--charcoal);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
button.ghost:hover { border-color: var(--charcoal); filter: none; }

/* Positive/complete — solid charcoal (keeps red exclusively for "act now"). */
button.ok {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
/* Caution — cream pill, charcoal text. */
button.warn {
  background: var(--cream);
  color: var(--charcoal);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
button.danger { background: var(--red); color: var(--white); }
button.small { padding: 8px 15px; font-size: 0.82rem; }

/* ── Pills / status chips ──────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
  border: 1.5px solid var(--line); color: var(--muted); background: var(--white);
}
.pill.open { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.pill.closed { color: var(--muted); background: var(--cream); }
.pill.self { color: var(--red); border-color: rgba(202, 0, 19, 0.4); background: rgba(202, 0, 19, 0.06); }
.pill.staff { color: var(--charcoal); border-color: var(--charcoal); }

/* ── Big number (customer ticket) ──────────────────────────────────────── */
.big-number {
  font-size: clamp(4.5rem, 26vw, 6.5rem);
  font-weight: 900; line-height: 0.92;
  letter-spacing: -0.04em; color: var(--charcoal);
}
.status-line { font-size: 1.35rem; font-weight: 900; margin: 8px 0; letter-spacing: -0.01em; }
.status-line.next { color: var(--red); }
.status-line.almost { color: var(--charcoal); }
.status-line.serving { color: var(--red); }

/* ── Stat trio ─────────────────────────────────────────────────────────── */
.stat { text-align: center; flex: 1; }
.stat .n { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.02em; }
.stat .l {
  font-size: 0.64rem; color: var(--sage); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 800;
}

/* ── Inline messages ───────────────────────────────────────────────────── */
.err { color: var(--red); font-size: 0.9rem; font-weight: 700; min-height: 1.2em; margin-top: 8px; }
.note { color: var(--muted); font-size: 0.85rem; }

/* ── Queue entry rows (dashboard) ──────────────────────────────────────── */
.entry {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md); background: var(--white); margin: 10px 0;
  box-shadow: var(--shadow-sm);
}
.entry .tn { font-size: 1.4rem; font-weight: 900; min-width: 62px; flex: none; letter-spacing: -0.02em; }
/* Waiting-line rows: name + single muted meta line, both truncate — never wrap. */
.entry .grow { min-width: 0; }
.entry .ename { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .emeta { color: var(--muted); font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-actions { display: flex; gap: 8px; flex: none; }
/* Setup-list rows (Stations/Services) carry up to 3 action buttons. On narrow
   phones (no dashboard breakpoint < 900px) the buttons crushed the name; let the
   row wrap so actions drop to their own line instead of overlapping the label. */
#counters-list .entry, #services .entry { flex-wrap: wrap; }
#counters-list .entry > .grow, #services .entry > .grow { min-width: 8rem; flex-basis: 40%; }
#counters-list .entry > .row, #services .entry > .row { margin-left: auto; }
/* History: "served by <station>" chip tucked in the top-right corner. */
.served-by {
  align-self: flex-start; flex: none; margin-left: auto;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; color: var(--muted);
  background: var(--cream); border: 1.5px solid var(--line-soft); border-radius: 999px;
  padding: 4px 11px; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entry.state-serving { border-color: var(--red); box-shadow: 0 0 0 3px rgba(202, 0, 19, 0.10); }
.entry.state-served,
.entry.state-skipped,
.entry.state-no_show,
.entry.state-cancelled { opacity: 0.48; box-shadow: none; }

/* ── Service option (join page) ────────────────────────────────────────── */
.service-option {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md); background: var(--white); margin: 10px 0;
  cursor: pointer; font-weight: 800;
  transition: transform 0.12s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.service-option:hover { transform: translateY(-1px); border-color: var(--sage); box-shadow: var(--shadow-sm); }
.service-option.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(202, 0, 19, 0.12), var(--shadow-sm);
}
.service-option .so-dur { color: var(--muted); font-weight: 700; font-size: 0.9rem; }

/* ── QR ────────────────────────────────────────────────────────────────── */
.qr img {
  width: 200px; height: 200px; background: var(--white);
  padding: 12px; border-radius: var(--r-md); border: 1.5px solid var(--line-soft);
}

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 6px; margin-bottom: 18px;
  padding: 6px; background: var(--cream); border-radius: 999px;
}
.tabs button {
  flex: 1; background: transparent; color: var(--muted); box-shadow: none;
  border-radius: 999px; padding: 11px;
}
.tabs button:not(.ghost) { background: var(--charcoal); color: var(--white); }
.tabs button:hover { transform: none; }

.hidden { display: none !important; }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--charcoal); color: var(--white);
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow);
  z-index: 120; font-weight: 700; font-size: 0.9rem;   /* above modal + tabbar */
}

/* ── Stations (dashboard) ──────────────────────────────────────────────── */
/* Single scrolling line rather than a wrapping block when stations are many. */
.chip-row { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-btn {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--muted); font-weight: 800; font-size: 0.8rem;
  cursor: pointer; box-shadow: none; flex: none; white-space: nowrap;
}
.chip-btn:hover { transform: none; border-color: var(--sage); }
.chip-btn.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* Compact one-line rows — scale cleanly to many stations (was tall cards). */
.stations-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0 0; }
.station-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--white); border: 1.5px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 11px 13px; box-shadow: var(--shadow-sm);
}
.station-row.serving { border-color: var(--red); box-shadow: 0 0 0 2px rgba(202, 0, 19, 0.08); }
.station-row .st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); flex: none; }
.station-row.serving .st-dot { background: var(--red); }
.station-row .st-main { flex: 1; min-width: 0; }
.station-row .st-name { font-weight: 900; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-row .st-sub { font-size: 0.85rem; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-row .st-sub .st-now { color: var(--red); font-weight: 900; }
.station-row button { flex: none; }

/* ── Dashboard section views + floating bottom navigation ──────────────── */
.view { display: none; }
.view.active { display: block; animation: view-in 0.25s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dash { padding-bottom: 120px; }   /* clearance for the fixed tab bar */
.dash-head { margin-bottom: 6px; }

.tabbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 60; width: min(96vw, 470px);
  display: flex; align-items: center;
  background: var(--charcoal); border-radius: 999px;
  padding: 8px 6px; box-shadow: var(--shadow);
}
.tabbar .tab {
  flex: 1 1 0; min-width: 0; overflow: hidden;
  background: transparent; box-shadow: none; color: var(--sage);
  border: none; border-radius: 16px; padding: 6px 1px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.5rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
}
.tabbar .tab svg { width: 20px; height: 20px; flex: none; }
.tabbar .tab:hover { transform: none; color: var(--cream); }
.tabbar .tab.active { color: var(--white); }

/* Reserved center gap so tabs never sit under the floating action button. */
.tabbar .fab-slot { flex: 0 0 58px; }

/* Floating center action button — out of flow, cut out of the bar (design spec). */
.tabbar .fab {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 56px; height: 56px; padding: 0;
  border-radius: 50%; background: var(--red); color: var(--white);
  border: 4px solid var(--cream); box-shadow: var(--shadow-red);
  display: flex; align-items: center; justify-content: center;
}
/* Lift straight up on hover — keep the centering translate intact (was a bug:
   a stray translateY(-2px) dropped translateX(-50%) and shoved the FAB sideways). */
.tabbar .fab:hover { transform: translate(-50%, calc(-50% - 3px)); }
.tabbar .fab svg { width: 26px; height: 26px; }

/* ── Queue view: two-column grid on wider screens ──────────────────────── */
/* Mobile: single stacked column. ≥900px: operating stations (primary) beside
   the waiting line. minmax(0,…) lets the inner grids shrink instead of
   overflowing the track. */
.queue-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
  /* Waiting line (row-based, needs width) gets the wider track; the compact
     station cards flow fine in the narrower one. */
  .queue-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
  .queue-grid .card { margin: 0; }
}

/* ── Desktop section nav (segmented) — replaces the floating bar ≥900px ─── */
.viewnav { display: none; }
@media (min-width: 900px) {
  .viewnav {
    display: inline-flex; gap: 4px; margin: 4px 0 18px;
    background: var(--cream); border-radius: 999px; padding: 5px;
    border: 1px solid var(--line-soft);
  }
  .viewnav button {
    background: transparent; color: var(--muted); box-shadow: none;
    border-radius: 999px; padding: 9px 18px; font-size: 0.85rem;
  }
  .viewnav button:hover { transform: none; color: var(--charcoal); }
  .viewnav button.active { background: var(--charcoal); color: var(--white); }
  .tabbar { display: none; }          /* the floating bar is mobile-only */
  .dash { padding-bottom: 40px; }     /* no fixed bar to clear */
}
.btn-walkin { display: none; }        /* header add-button; desktop only */
@media (min-width: 900px) { .btn-walkin { display: inline-flex; } }

/* ── Modal (progressive disclosure: walk-in, etc.) ─────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(23, 30, 25, 0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow);
  width: min(440px, 100%); max-height: 90vh; overflow: auto; padding: 24px;
  transform: translateY(14px); transition: transform 0.2s ease;
}
.modal-backdrop.open .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.modal-head h2 { margin: 0; }
.modal-close {
  flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--charcoal); border: 1.5px solid var(--line); box-shadow: none;
  font-size: 1.2rem; line-height: 1;
}
.modal-close:hover { border-color: var(--charcoal); transform: none; }
@media (prefers-reduced-motion: reduce) {
  .modal, .modal-backdrop { transition: none; }
}

/* ── Terms & Privacy consent modal (signup) ────────────────────────────── */
/* Column layout so the buttons stay put while the terms body scrolls. */
.terms-modal { display: flex; flex-direction: column; padding: 0; width: min(520px, 100%); overflow: hidden; }
.terms-modal .modal-head { margin: 0; padding: 22px 24px 14px; border-bottom: 1.5px solid var(--line-soft); }
.terms-body { overflow: auto; padding: 18px 24px; }
.terms-body h3 { margin: 18px 0 6px; font-size: 1rem; }
.terms-body h3:first-child { margin-top: 0; }
.terms-body p { color: var(--text); font-size: 0.92rem; line-height: 1.55; margin: 0 0 8px; }
.terms-body ul { margin: 6px 0 0; padding-left: 18px; }
.terms-body li { color: var(--text); font-size: 0.92rem; line-height: 1.5; margin: 4px 0; }
.terms-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.terms-links a { font-weight: 800; }
.terms-foot {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  padding: 14px 24px; border-top: 1.5px solid var(--line-soft);
}
.terms-foot .foot-note { margin-right: auto; }

/* Consent row on the signup form. */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.consent label { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.4; text-transform: none; letter-spacing: normal; }

/* A button that reads as a text link (reuses <button> for behaviour, resets its chrome). */
.linklike {
  background: none; border: none; box-shadow: none; padding: 0; width: auto;
  color: var(--red); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline;
}
.linklike:hover { transform: none; filter: none; }

/* ── Branded loading overlay (three bobbing figures + wordmark) ─────────── */
.que-loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  opacity: 1; transition: opacity 0.45s ease;
}
.que-loader.hide { opacity: 0; pointer-events: none; }
.que-loader svg { width: min(78vw, 320px); height: auto; display: block; }
@keyframes que-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.que-loader .bob-1 { animation: que-bob 2s ease-in-out infinite; }
.que-loader .bob-2 { animation: que-bob 2s ease-in-out infinite 0.15s; }
.que-loader .bob-3 { animation: que-bob 2s ease-in-out infinite 0.3s; }

/* ═══════════════════════════════════════════════════════════════════════
   Landing page ("/") — "Kinetic Orange" brutalist framework, remapped to
   que's palette: CHARCOAL is the dark field, CREAM is the page, RED stays a
   reserved accent (indices, arrows, hover, CTAs). Everything is scoped under
   `body.brutal` so the brutalist type / sharp borders / ::selection never
   leak into the app pages (dashboard, ticket, join, login stay soft).
   Fonts (Archivo Black + Space Mono + Inter) load only on index.html.
   ═══════════════════════════════════════════════════════════════════════ */
body.brutal {
  background-image: none;             /* brutalism = flat fields, no light-leaks */
  background-color: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;                 /* skewed + marquee sections must never scroll the page */
}
.brutal ::selection { background: var(--charcoal); color: var(--red); }
/* Smooth anchor jumps; sections clear the fixed nav when targeted. */
:root:has(body.brutal) { scroll-behavior: smooth; }
.brutal [id] { scroll-margin-top: 84px; }
/* Keyboard focus stays visible even though the mouse cursor is hidden. */
.brutal a:focus-visible, .brutal button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.brutal .display {
  font-family: "Archivo Black", Impact, system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; font-weight: 400;
}
.brutal .mono {
  font-family: "Space Mono", ui-monospace, monospace; letter-spacing: -0.02em;
}

/* ── Floating pill nav ─────────────────────────────────────────────────── */
.brutal .bnav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
}
.brutal .bnav .logo { font-size: 1.4rem; color: var(--charcoal); }
.brutal .bnav .logo span { color: var(--red); }
.brutal .pill-nav {
  display: flex; gap: 2px; background: var(--charcoal); border-radius: 999px;
  padding: 5px; box-shadow: 0 8px 22px -8px rgba(23, 30, 25, 0.5);  /* nav depth is the one allowed shadow */
}
.brutal .pill-nav a {
  font-size: 12px; text-transform: uppercase; color: var(--white); font-weight: 700;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.brutal .pill-nav a:hover { background: var(--white); color: var(--charcoal); }
.brutal .nav-cta {
  font-family: "Space Mono", ui-monospace, monospace; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em;
  background: var(--red); color: var(--white); border-radius: 999px;
  padding: 13px 22px; box-shadow: none;   /* ≥44px tall — comfortable touch target */
  transition: transform 0.15s ease, filter 0.18s ease;
}
.brutal .nav-cta:hover { transform: scale(1.04); filter: none; }
.brutal .nav-cta { display: inline-flex; align-items: center; gap: 7px; }
.brutal .nav-cta .caret { transition: transform 0.2s ease; }
.brutal .nav-cta-wrap.open .nav-cta .caret { transform: rotate(180deg); }

/* Desktop "Start for Free" dropdown */
.brutal .nav-cta-wrap { position: relative; }
.brutal .nav-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px; z-index: 90;
  background: var(--charcoal); border: 2px solid var(--white); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 14px 32px -12px rgba(23, 30, 25, 0.6);
}
.brutal .nav-cta-wrap.open .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.brutal .nd-item {
  font-family: "Space Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em; color: var(--white); text-decoration: none;
  padding: 12px 14px; transition: background 0.15s ease, color 0.15s ease;
}
.brutal .nd-item:hover { background: var(--white); color: var(--charcoal); text-decoration: none; }
.brutal .nd-primary { color: var(--red); }
.brutal .nd-primary:hover { background: var(--red); color: var(--white); }

/* Hamburger button (mobile) — 3 bars morph to an X */
.brutal .nav-burger {
  display: none; width: 46px; height: 46px; padding: 0; position: relative;
  background: transparent; border: 2px solid var(--charcoal); border-radius: 12px; box-shadow: none;
}
.brutal .nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--charcoal); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.18s ease, top 0.25s ease;
}
.brutal .nav-burger span:nth-child(1) { top: 15px; }
.brutal .nav-burger span:nth-child(2) { top: 21.5px; }
.brutal .nav-burger span:nth-child(3) { top: 28px; }
.brutal .nav-burger.open span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.brutal .nav-burger.open span:nth-child(2) { opacity: 0; }
.brutal .nav-burger.open span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

/* Mobile dropdown sheet + dimmed backdrop */
.brutal .nav-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(23, 30, 25, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.brutal .nav-backdrop.open { opacity: 1; visibility: visible; }
.brutal .nav-sheet {
  position: fixed; top: 66px; left: 12px; right: 12px; z-index: 75;
  background: var(--charcoal); border: 2px solid var(--white); padding: 8px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 18px 40px -14px rgba(23, 30, 25, 0.7);
}
.brutal .nav-sheet.open { opacity: 1; visibility: visible; transform: none; }
.brutal .nav-sheet a {
  font-family: "Space Mono", ui-monospace, monospace; text-transform: uppercase; font-weight: 700;
  letter-spacing: -0.02em; color: var(--white); text-decoration: none; padding: 14px 12px; font-size: 15px;
}
.brutal .nav-sheet a:hover { color: var(--sage); text-decoration: none; }
.brutal .nav-sheet .ns-div { height: 2px; background: rgba(255, 255, 255, 0.2); margin: 6px 0; }
.brutal .nav-sheet .ns-signup { color: var(--red); }
.brutal .nav-sheet .ns-signup:hover { color: var(--red); filter: brightness(1.2); }

/* ── Typographic hero ──────────────────────────────────────────────────── */
.brutal .bhero {
  max-width: 1400px; margin: 0 auto; padding: 128px 20px 0;
  min-height: 96vh; display: flex; flex-direction: column; justify-content: center;
}
.brutal .bhero h1 {
  font-size: clamp(2.4rem, 8.6vw, 6.6rem); text-align: center; margin: 0;
}
.brutal .hero-divider { border-top: 2px solid var(--charcoal); margin-top: 44px; }
.brutal .hero-meta {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  padding: 26px 4px 52px;
}
.brutal .meta-left { font-size: 12px; text-transform: uppercase; color: var(--charcoal); line-height: 1.8; }
.brutal .meta-left b { color: var(--red); }

/* Rotating "SCROLL DOWN" indicator (144px, 12s spin) */
.brutal .scroll-ind { width: 144px; height: 144px; position: relative; justify-self: center; }
.brutal .scroll-ind .ring { width: 100%; height: 100%; animation: spin 12s linear infinite; }
.brutal .scroll-ind text { font-family: "Space Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; fill: var(--charcoal); text-transform: uppercase; }
.brutal .scroll-ind .arrow { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 2px-bordered ticket panel (the live mock, relocated into the hero meta row) */
.brutal .ticket-panel {
  justify-self: end; min-width: 236px; border: 2px solid var(--charcoal);
  background: var(--white); padding: 16px 18px 18px;
}
.brutal .tp-pill {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  border: 2px solid var(--red); color: var(--red); padding: 3px 10px; border-radius: 999px;
}
.brutal .tp-num { font-size: 2.9rem; color: var(--charcoal); margin: 8px 0 2px; }
.brutal .tp-status { color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.brutal .tp-sub { color: var(--muted); font-size: 11px; text-transform: uppercase; margin-top: 3px; }
.brutal .tp-stats { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--charcoal); }
.brutal .tp-stats > div { display: flex; flex-direction: column; }
.brutal .tp-stats b { font-family: "Archivo Black", system-ui, sans-serif; font-weight: 400; font-size: 1.15rem; color: var(--charcoal); }
.brutal .tp-stats span { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Skewed dual marquee ───────────────────────────────────────────────── */
.brutal .marquee-sec {
  background: var(--charcoal); transform: skewY(-2deg); overflow: hidden;
  padding: 56px 0; margin: 8px 0 0;
}
.brutal .marquee-sec .inner { transform: skewY(2deg); display: flex; flex-direction: column; gap: 8px; }
.brutal .marquee { display: flex; width: max-content; will-change: transform; }
.brutal .marquee.row1 { animation: marquee 32s linear infinite; }
.brutal .marquee.row2 { animation: marquee-rev 38s linear infinite; }
.brutal .marquee span {
  font-family: "Archivo Black", system-ui, sans-serif; text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 6.5rem); line-height: 1; padding: 0 0.35em; white-space: nowrap;
}
.brutal .marquee.row1 span { color: var(--red); }
.brutal .marquee.row2 span { color: rgba(255, 255, 255, 0.8); }
.brutal .marquee-sec:hover .marquee { animation-play-state: paused; }  /* let a reader catch the words */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── Section shell + "How it works" (light, sharp 3-up) ────────────────── */
.brutal .bsection { max-width: 1200px; margin: 0 auto; padding: 88px 20px; }
.brutal .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--red); margin-bottom: 12px; }
.brutal .bsection h2, .brutal .svc-sec h2 { font-size: clamp(1.9rem, 5.4vw, 3.4rem); margin: 0; color: var(--charcoal); }
.brutal .steps3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--charcoal); margin-top: 40px; }
.brutal .step3 { padding: 30px; border-right: 2px solid var(--charcoal); transition: background 0.2s ease; }
.brutal .step3:last-child { border-right: none; }
.brutal .step3:hover { background: var(--white); }
.brutal .step3 .s3n { font-size: 13px; color: var(--red); font-weight: 700; }
.brutal .step3 h3 { font-size: 1.5rem; color: var(--charcoal); margin: 12px 0 8px; }
.brutal .step3 p { color: var(--muted); font-size: 0.95rem; margin: 0; line-height: 1.5; }

/* ── Vertical service list = the 6 "Why que" benefits (dark) ───────────── */
.brutal .svc-sec { background: var(--charcoal); color: var(--white); padding: 88px 0; }
.brutal .svc-sec .wrap2 { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.brutal .svc-sec .kicker { color: var(--red); }
.brutal .svc-sec h2 { color: var(--white); }
.brutal .svc-list { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 40px; }
.brutal .svc-row { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.brutal .svc-head {
  display: flex; align-items: center; gap: 22px; padding: 26px 14px;
  cursor: pointer; transition: background 0.25s ease;
}
.brutal .svc-head:hover,
.brutal .svc-row.open .svc-head { background: rgba(255, 255, 255, 0.05); }
.brutal .svc-row .idx { font-size: 0.95rem; color: var(--red); font-weight: 700; flex: none; align-self: flex-start; padding-top: 6px; }
.brutal .svc-body { min-width: 0; transition: transform 0.25s ease; }
.brutal .svc-head:hover .svc-body { transform: translateX(12px); }
.brutal .svc-title { font-size: clamp(1.35rem, 5.2vw, 2.7rem); color: var(--white); }
.brutal .svc-desc { color: rgba(238, 235, 227, 0.62); font-size: 0.92rem; max-width: 60ch; margin: 8px 0 0; line-height: 1.5; }
.brutal .svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.brutal .svc-tag { font-size: 10px; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 4px 12px; color: rgba(255, 255, 255, 0.85); }

/* Toggle button — reveals on hover / keyboard focus / open; rotates when open. */
.brutal .svc-toggle {
  margin-left: auto; flex: none; width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%; color: var(--red); box-shadow: none;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease, border-color 0.2s ease;
}
.brutal .svc-head:hover .svc-toggle,
.brutal .svc-toggle:focus-visible,
.brutal .svc-row.open .svc-toggle { opacity: 1; transform: none; }
.brutal .svc-toggle:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: none; filter: none; }
.brutal .svc-toggle svg { transition: transform 0.28s ease; }
.brutal .svc-row.open .svc-toggle svg { transform: rotate(90deg); }

/* Accordion panel — grid-template-rows 0fr→1fr animates to content height with no magic numbers. */
.brutal .svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; contain: layout; }
.brutal .svc-row.open .svc-panel { grid-template-rows: 1fr; }
.brutal .svc-panel-inner { overflow: hidden; min-height: 0; }
.brutal .svc-panel-pad { padding: 2px 14px 30px 52px; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease 0.04s, transform 0.3s ease 0.04s; }
.brutal .svc-row.open .svc-panel-pad { opacity: 1; transform: none; }

/* 16:9 framed visual + caption. */
.brutal .svc-viz {
  aspect-ratio: 16 / 9; width: 100%; max-width: 640px;
  background: var(--cream); border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden;
}
.brutal .svc-cap { margin-top: 12px; font-size: 12px; text-transform: uppercase; color: var(--sage); letter-spacing: 0.02em; }

/* ── Feature mock visuals (on-brand mocks, not screenshots) ────────────── */
.brutal .mock { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: "Space Mono", ui-monospace, monospace; color: var(--charcoal); }
.brutal .mock .m-num { font-family: "Archivo Black", system-ui, sans-serif; letter-spacing: -0.03em; }
/* 01 chairs */
.brutal .mock-chairs { gap: 10px; }
.brutal .m-chair { flex: 1; max-width: 132px; border: 2px solid var(--charcoal); background: var(--white); padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.brutal .m-chair.serving { border-color: var(--red); }
.brutal .m-chair .m-cap { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.brutal .m-chair .m-num { font-size: 1.55rem; }
.brutal .m-chair .m-state { font-size: 9px; text-transform: uppercase; color: var(--muted); }
.brutal .m-chair.serving .m-state { color: var(--red); }
/* 02 push */
.brutal .m-notif { width: 100%; max-width: 340px; background: var(--white); border: 2px solid var(--charcoal); border-radius: 14px; padding: 12px 14px; text-align: left; }
.brutal .m-notif-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.brutal .m-dot { width: 16px; height: 16px; border-radius: 5px; background: var(--red); flex: none; }
.brutal .m-app { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.brutal .m-time { font-size: 10px; color: var(--muted); margin-left: auto; }
.brutal .m-notif-title { font-family: "Archivo Black", system-ui, sans-serif; font-size: 1rem; letter-spacing: -0.02em; }
.brutal .m-notif-body { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* 03 walk-in */
.brutal .mock-walkin { flex-direction: column; gap: 12px; width: 100%; max-width: 380px; }
.brutal .m-addbtn { align-self: flex-start; background: var(--charcoal); color: var(--white); font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; }
.brutal .m-entry { display: flex; align-items: center; gap: 12px; width: 100%; border: 2px solid var(--red); background: var(--white); padding: 10px 14px; }
.brutal .m-entry .m-num { font-size: 1.2rem; }
.brutal .m-entry .m-who { font-size: 12px; color: var(--muted); }
.brutal .m-entry .m-badge { margin-left: auto; font-size: 10px; text-transform: uppercase; border: 1px solid var(--charcoal); border-radius: 999px; padding: 3px 10px; }
/* 04 tv */
.brutal .mock-tv { flex-direction: column; gap: 6px; }
.brutal .m-tv-label { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.brutal .m-tv-now { font-family: "Archivo Black", system-ui, sans-serif; font-size: 3rem; line-height: 1; color: var(--red); letter-spacing: -0.03em; }
.brutal .m-tv-next { font-size: 12px; text-transform: uppercase; }
/* 05 permanent */
.brutal .mock-perm { flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.brutal .m-line { display: flex; align-items: center; gap: 12px; border: 2px solid var(--charcoal); background: var(--white); padding: 8px 12px; }
.brutal .m-line .m-num { font-size: 1.1rem; }
.brutal .m-line .m-tag { margin-left: auto; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.brutal .m-line.done { opacity: 0.5; }
.brutal .m-line.serving { border-color: var(--red); }
.brutal .m-line.serving .m-tag { color: var(--red); }
.brutal .m-line.you { background: var(--cream); }
.brutal .m-line.you .m-tag { color: var(--charcoal); font-weight: 700; }
/* 06 setup */
.brutal .mock-setup { gap: 18px; }
.brutal .m-qr { width: 92px; height: 92px; flex: none; }
.brutal .m-setup-txt { text-align: left; }
.brutal .m-live { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--red); }
.brutal .m-url { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Giant CTA + footer ────────────────────────────────────────────────── */
/* Skip rendering this tall bottom block until it nears the viewport. Kept off
   .svc-sec on purpose — its rows use an IntersectionObserver reveal that
   content-visibility can suppress. */
.brutal .bcta { max-width: 1400px; margin: 0 auto; text-align: center; padding: 110px 20px 90px;
  content-visibility: auto; contain-intrinsic-size: auto 620px; }
.brutal .bcta h2 { font-size: clamp(2.4rem, 11vw, 8.5rem); color: var(--charcoal); margin: 0; }
.brutal .bcta p { max-width: 52ch; margin: 22px auto 34px; color: var(--muted); font-size: 13px; text-transform: uppercase; line-height: 1.7; }
.brutal .big-btn {
  font-family: "Space Mono", ui-monospace, monospace; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.02em;
  background: var(--charcoal); color: var(--white); border-radius: 999px;
  padding: 22px 44px; box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.brutal .big-btn:hover { transform: scale(1.08); box-shadow: 0 0 46px rgba(202, 0, 19, 0.55); }
.brutal .bfooter {
  border-top: 2px solid var(--charcoal); max-width: 1400px; margin: 0 auto;
  padding: 28px 20px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12px; text-transform: uppercase; color: var(--charcoal);
}
.brutal .bfooter .footer-links { display: flex; gap: 20px; }
.brutal .bfooter a { color: var(--charcoal); text-decoration: none; }
.brutal .bfooter a:hover { color: var(--red); }

/* ── Scroll reveal (progressive enhancement — JS adds `.reveal`) ────────── */
.brutal .reveal { transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--d, 0s); }
.brutal .reveal:not(.in-view) { opacity: 0; transform: translateY(20px); }

/* ── Custom cursor (fine-pointer only; JS opts the page in) ─────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); border: 2px solid transparent;
  pointer-events: none; z-index: 200; opacity: 0; transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.cursor-dot.active { opacity: 1; }
.cursor-dot.hover { width: 42px; height: 42px; background: transparent; border-color: var(--red); }
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .svc-row,
body.has-custom-cursor .svc-head,
body.has-custom-cursor .step3 { cursor: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .brutal .pill-nav { display: none; }
  .brutal .nav-cta-wrap { display: none; }
  .brutal .nav-burger { display: flex; align-items: center; justify-content: center; }
  .brutal .bhero { padding-top: 100px; min-height: 88vh; }
  .brutal .hero-meta { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 30px; }
  .brutal .meta-left { line-height: 1.9; }
  .brutal .ticket-panel { justify-self: center; width: 100%; max-width: 340px; }
  .brutal .steps3 { grid-template-columns: 1fr; }
  .brutal .step3 { border-right: none; border-bottom: 2px solid var(--charcoal); }
  .brutal .step3:last-child { border-bottom: none; }
  /* No hover on touch — keep the toggle visible and tighten the panel indent. */
  .brutal .svc-toggle { opacity: 1; transform: none; }
  .brutal .svc-panel-pad { padding-left: 20px; padding-right: 12px; }
  .brutal .marquee-sec { transform: skewY(-1deg); }
  .brutal .marquee-sec .inner { transform: skewY(1deg); }
  /* Tighter vertical rhythm so mobile isn't a scroll marathon. */
  .brutal .bsection { padding: 60px 20px; }
  .brutal .svc-sec { padding: 64px 0; }
  .brutal .bcta { padding: 72px 20px 66px; }
}
@media (max-width: 540px) {
  .brutal .hero-divider { margin-top: 32px; }
  .brutal .hero-meta { padding: 22px 4px 40px; }
  .brutal .bsection h2, .brutal .svc-sec h2 { line-height: 0.95; }
  /* Larger body copy for thumb-distance reading. */
  .brutal .svc-desc, .brutal .step3 p { font-size: 0.98rem; }
  .brutal .bcta p { font-size: 12px; }
  .brutal .bfooter { justify-content: center; text-align: center; }
}
/* The mobile sheet/backdrop belong to the hamburger — never show them on desktop. */
@media (min-width: 861px) {
  .brutal .nav-sheet, .brutal .nav-backdrop { display: none; }
}

/* ── Legal pages (/privacy, /terms) — clean long-form reading ──────────── */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 22px 80px; }
.legal-head { padding-bottom: 22px; border-bottom: 2px solid var(--line); margin-bottom: 26px; }
.legal-logo { font-weight: 900; font-size: 1.6rem; letter-spacing: -0.04em; color: var(--text); text-decoration: none; }
.legal-logo span { color: var(--red); }
.legal-eyebrow { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; margin: 16px 0 4px; }
.legal-meta { color: var(--muted); font-size: 0.85rem; font-weight: 700; margin: 0; }
.legal-note {
  background: rgba(202, 0, 19, 0.06); border: 1.5px solid rgba(202, 0, 19, 0.3);
  border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.88rem; color: var(--charcoal); margin-bottom: 30px;
}
.legal h2 { font-size: 1.15rem; font-weight: 900; margin: 32px 0 10px; letter-spacing: -0.01em; }
.legal h2 .n { color: var(--red); margin-right: 8px; }
.legal p, .legal li { font-size: 0.98rem; line-height: 1.65; color: #2c352f; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { font-weight: 800; }
.legal a { color: var(--red); font-weight: 700; }
.legal-foot {
  margin-top: 44px; padding-top: 20px; border-top: 2px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; font-weight: 700;
}
.legal-foot a { color: var(--charcoal); text-decoration: none; }
.legal-foot a:hover { color: var(--red); }

/* Respect reduced-motion — kills the loader bob, marquees, 12s spin, reveals, and all transitions. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .brutal .reveal:not(.in-view) { opacity: 1; transform: none; }  /* never leave content hidden */
}
