@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #f4f4ef;
  --card: #ffffff;
  --ink: #111111;
  --muted: #5f5f58;
  --line: #e0e0d8;
  --accent: #4a6b00;
  --accent-ink: #ffffff;
  --accent-soft: #eef6cf;
  --lime: #d4f74a;
  --warn-bg: #fff4dc;
  --warn-line: #f0d58e;
  --error: #b3261e;
  --radius: 14px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
/* Dark colours: follow the device unless the visitor picked light or dark (theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101010;
    --card: #1a1a1a;
    --ink: #f4f4ef;
    --muted: #a3a39b;
    --line: #2c2c2c;
    --accent: #d4f74a;
    --accent-ink: #1f2606;
    --accent-soft: #2a3010;
    --warn-bg: #2c2810;
    --warn-line: #5a5220;
    --error: #ff8a80;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101010;
  --card: #1a1a1a;
  --ink: #f4f4ef;
  --muted: #a3a39b;
  --line: #2c2c2c;
  --accent: #d4f74a;
  --accent-ink: #1f2606;
  --accent-soft: #2a3010;
  --warn-bg: #2c2810;
  --warn-line: #5a5220;
  --error: #ff8a80;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.narrow { max-width: 520px; padding-top: 12vh; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.logo {
  font-family: var(--font);
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 10px 10px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 10px 10px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 100% / 10px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 70% 70% / 6px 6px no-repeat;
}

h1, h2 {
  font-family: var(--font);
  letter-spacing: -0.02em; line-height: 1.1;
}
h1 { font-size: clamp(32px, 7vw, 48px); font-weight: 700; margin: 0 0 12px; }
h2 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.card.center { text-align: center; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .grow { flex: 1 1 240px; min-width: 0; }

input[type="text"], input[type="url"], input[type="time"], select {
  width: 100%; padding: 13px 14px;
  font: inherit; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="time"], select { min-height: 48px; }
h3 { font-size: 17px; }
input[type="color"] {
  width: 48px; height: 48px; padding: 3px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}

.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; min-height: 48px;
  font: 600 16px/1 var(--font);
  color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
}
.btn.ghost, button.ghost {
  color: var(--ink); background: transparent; border: 1px solid var(--line);
}
button:disabled { opacity: 0.6; cursor: wait; }

.error { color: var(--error); margin: 10px 0 0; min-height: 1em; }
.hidden { display: none !important; }

.result { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.result > div { min-width: 0; }
@media (max-width: 560px) {
  .result { grid-template-columns: minmax(0, 1fr); }
  .result .qr-box { max-width: 260px; margin: 0 auto; }
}

.qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; aspect-ratio: 1; display: grid; place-items: center;
}
.qr-box svg { width: 100%; height: auto; display: block; }

.linkline {
  display: flex; gap: 8px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 6px 6px 12px; margin: 6px 0 14px;
  min-width: 0; max-width: 100%;
}
.notice { min-width: 0; }
.linkline code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 14px var(--mono);
}
.linkline button { min-height: 44px; padding: 8px 14px; font-size: 14px; }

.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 10px; padding: 14px; margin: 16px 0;
}
.notice strong { display: block; margin-bottom: 4px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.list li:first-child { border-top: 0; }
.list .target { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stat-big {
  font-family: var(--font);
  font-size: 44px; font-weight: 700; line-height: 1;
}
.bars {
  display: flex; align-items: flex-end; gap: 3px; height: 120px;
  margin: 16px 0 6px; border-bottom: 1px solid var(--line);
}
.bars div {
  flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px;
}
.bars div.zero { background: var(--line); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 560px) { .split { grid-template-columns: minmax(0, 1fr); } }

.meter { display: grid; grid-template-columns: 90px 1fr 40px; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
.meter .track { height: 8px; background: var(--accent-soft); border-radius: 4px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--accent); }
.meter .n { text-align: right; color: var(--muted); }

footer.site { margin-top: 40px; font-size: 14px; color: var(--muted); }

/* ---- Signed-in header ---- */
.nav { display: flex; align-items: center; gap: 12px; }
.badge {
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--accent); background: var(--accent-soft);
}
.badge.premium { color: var(--accent-ink); background: var(--accent); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 600; object-fit: cover;
}
.menu-pop {
  position: absolute; right: 0; top: 46px; z-index: 10; min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.menu-pop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-pop a:hover { background: var(--bg); }
.menu-email { padding: 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }

/* ---- Usage ---- */
.usage { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
@media (max-width: 560px) { .usage { grid-template-columns: minmax(0,1fr); } }
.usage-item .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.usage-item .track { height: 8px; background: var(--accent-soft); border-radius: 4px; overflow: hidden; }
.usage-item .fill { height: 100%; background: var(--accent); }
.usage-item .fill.full { background: var(--error); }

/* ---- Code list ---- */
.code-item {
  display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.code-item:first-child { border-top: 0; }
.code-thumb { width: 64px; height: 64px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.code-thumb svg { width: 100%; height: 100%; display: block; }
.code-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-sub { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-scans { text-align: right; font-size: 14px; color: var(--muted); }
.code-scans strong { display: block; font-size: 20px; color: var(--ink); }
.empty { text-align: center; padding: 18px 0 6px; color: var(--muted); }

/* ---- Analytics picker ---- */
.choices { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.choice {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 500;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choices.locked .choice { cursor: not-allowed; opacity: .75; }

/* ---- Locked stats ---- */
.locked-body { position: relative; min-height: 150px; overflow: hidden; }
.locked-body .ghosted { filter: blur(6px); opacity: .35; pointer-events: none; user-select: none; }
.locked-body .lock-msg {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 8px; padding: 8px;
}

/* ---- Buttons ---- */
.btn.danger, button.danger { background: transparent; color: var(--error); border: 1px solid var(--line); }
.btn.small, button.small { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.btn.block { width: 100%; }

/* ---- Landing ---- */
.hero { padding: 28px 0 8px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
@media (max-width: 640px) { .features { grid-template-columns: minmax(0,1fr); } }
.feature h3, .feature .h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0,1fr); } }
.plans.single { grid-template-columns: minmax(0,1fr); max-width: 560px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-family: var(--font); font-size: 30px; font-weight: 700; margin: 4px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: 15px; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* ---- Light / dark switch ---- */
.theme-toggle {
  width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
}
.theme-toggle:hover { background: var(--card); }
.theme-toggle svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Homepage sections ---- */
.section { margin-top: 48px; }
.section h2 { margin-bottom: 8px; }
.section > .lede { margin-top: 0; }
.new-tag {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px;
  border-radius: 999px; font: 600 13px/1.4 var(--font);
  color: var(--accent); background: var(--accent-soft);
}
.uses { margin: 12px 0 0; padding-left: 20px; }
.uses li { margin: 6px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.logo, .badge { white-space: nowrap; }
@media (max-width: 440px) { .nav .badge { display: none; } }

/* ---- Button codes: guest page ---- */
.wrap.guest { max-width: 480px; padding-top: 40px; }
.guest-place { margin: 0 0 4px; color: var(--muted); font-weight: 600; }
.guest h1 { font-size: clamp(28px, 8vw, 38px); }
.tap-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.tap-list .tap {
  min-height: 64px; justify-content: flex-start; text-align: left; padding: 16px 20px;
  font-size: 18px; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px;
}
.tap-list .tap:active { background: var(--accent-soft); }
.guest-check {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); margin: 18px 0 14px;
}
.guest-check svg { width: 32px; height: 32px; }
.guest .btn.ghost { margin-top: 10px; }
.guest-foot { margin-top: 40px; }

/* ---- Button codes: owner pages ---- */
.mode-switch { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin: 6px 0 16px; }
@media (max-width: 560px) { .mode-switch { grid-template-columns: minmax(0,1fr); } }
.mode-switch label {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer; font-weight: 400;
  border: 1px solid var(--line); border-radius: 10px; margin: 0;
}
.mode-switch label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mode-switch input { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.mode-switch strong { display: block; }
.mode-switch span span { color: var(--muted); font-size: 14px; }
.opt-row { display: flex; gap: 8px; margin-bottom: 8px; }
.opt-row input { flex: 1; min-width: 0; }
.opt-row button { width: 48px; min-height: 48px; padding: 0; flex: none; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; margin: 4px 0; cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.hours { display: flex; align-items: center; gap: 10px; }
.hours input { flex: 1; min-width: 0; }
.tag-button { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); vertical-align: 1px; }
.req {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.req:first-child { border-top: 0; }
.req-place { font-family: var(--font); font-weight: 700; font-size: 22px; line-height: 1.15; }
.req-what { font-weight: 600; font-size: 17px; margin-top: 2px; }
.req-note { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: var(--bg); font-size: 15px; }
.req-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.req-meta.old { color: var(--error); font-weight: 600; }
.req-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.paused-list .row { justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.paused-list .row:first-child { border-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

code, .mono { font-family: var(--mono); }

/* ---- Homepage visuals ---- */
.wrap.wide { max-width: 1040px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lime); color: #111111; margin-bottom: 14px;
}
.icon-tile svg { width: 22px; height: 22px; }

.hero-art { position: relative; height: 490px; max-width: 470px; width: 100%; margin: 0 auto; }
.art-qr {
  position: absolute; left: 0; top: 10px; width: 62%;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.art-qr-img { background: #fff; border-radius: 10px; padding: 10px; border: 1px solid var(--line); }
.art-qr-img svg { width: 100%; height: auto; display: block; }
.art-link { font-size: 12px; margin-top: 12px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-dest { font-size: 13px; margin-top: 4px; color: var(--muted); }
.art-old { text-decoration: line-through; }
.art-dest strong { color: var(--ink); }
.art-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 12px; }
.art-bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.art-phone {
  position: absolute; right: 0; top: 70px; width: 46%; min-height: 300px;
  background: #111111; color: #f4f4ef; border: 6px solid #2a2a2a; border-radius: 30px; padding: 26px 14px 16px;
  box-shadow: 0 24px 50px rgba(0,0,0,.25);
}
.art-notch { position: absolute; top: 8px; left: 50%; width: 52px; height: 6px; margin-left: -26px; border-radius: 6px; background: #2a2a2a; }
.art-place { font-size: 11px; color: #a3a39b; font-weight: 600; }
.art-h { font-weight: 700; font-size: 17px; line-height: 1.15; margin: 2px 0 12px; }
.art-btn { border: 1.5px solid #f4f4ef; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.art-btn.on { background: #d4f74a; border-color: #d4f74a; color: #111111; }
.art-toast {
  position: absolute; left: 6%; bottom: 0; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,.14); font-size: 14px; line-height: 1.3; max-width: 88%;
}
.art-bell { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #d4f74a; color: #111111; }
.art-bell svg { width: 20px; height: 20px; }
.art-done { margin-left: 6px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) {
  .hero-art { height: 440px; }
  .art-phone { min-height: 260px; top: 60px; }
  .art-h { font-size: 15px; }
}

.steps { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; top: 20px; right: 20px;
  font: 700 14px/1 var(--mono); color: var(--muted);
}
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps li > span:last-child { color: var(--muted); font-size: 15px; }

/* ---- Usability ---- */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.top-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.top-link:hover { background: var(--card); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.empty-stats { text-align: center; padding: 28px 22px; }
.empty-stats h2 { margin-bottom: 6px; }
.empty-stats p { margin: 0 auto; max-width: 30em; color: var(--muted); }
.notice.success { background: var(--accent-soft); border-color: var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.center { text-align: center; }
.theme-toggle, .top-link { flex: none; }

/* ---- Launch offer: balanced two-column card ---- */
.plans.single { max-width: none; }
.launch-offer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 36px;
}
.launch-offer h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.launch-offer .launch-intro p { margin: 0 0 22px; max-width: 30em; }
.launch-offer .launch-intro .new-tag { display: inline-block; }
.launch-offer ul { margin: 0; }
@media (max-width: 760px) {
  .launch-offer { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; }
  .launch-offer .btn { width: 100%; }
}

/* ---- Owner dashboard ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 0; }
@media (max-width: 720px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-head h2 { margin: 0; font-size: 18px; }
.chart-total { font-size: 26px; font-weight: 700; }
.mini-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin: 14px 0 6px; border-bottom: 1px solid var(--line); }
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline-offset: 0; }
.bar-slot .bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.bar-slot .bar.zero { height: 2px !important; background: var(--line); border-radius: 0; }
.bar-slot:hover .bar, .bar-slot:focus .bar { opacity: .75; }
.bar-slot:hover::after, .bar-slot:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; pointer-events: none; z-index: 2;
}
.bar-slot:first-child:hover::after, .bar-slot:first-child:focus::after { left: 0; transform: none; }
.bar-slot:last-child:hover::after, .bar-slot:last-child:focus::after { left: auto; right: 0; transform: none; }
.table-toggle { margin-top: 10px; font-size: 14px; }
.table-toggle summary { cursor: pointer; color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.chart-card { margin-bottom: 0; }
.chart-grid + .split { margin-top: 20px; }

/* ---- Owner dashboard: funnel and reports ---- */
.funnel-row { margin: 10px 0 12px; }
.funnel-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.funnel-row .track { height: 10px; background: var(--accent-soft); border-radius: 4px; overflow: hidden; }
.funnel-row .fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.attention { border-color: var(--warn-line); background: var(--warn-bg); }
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--warn-line); }
.report-row:first-child { border-top: 0; }
.report-main { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .report-row { grid-template-columns: minmax(0, 1fr); } .report-row .req-actions { flex-direction: row; } }

/* ---- Public site: navigation and footer ---- */
header.site { gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
.site-nav a:hover { background: var(--card); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-menu summary {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
}
.nav-menu summary svg { width: 20px; height: 20px; }
.nav-menu .menu-pop { min-width: 240px; }
.nav-menu .menu-label { padding: 8px 12px 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 861px) { .nav-menu { display: none; } }
@media (max-width: 860px) { .site-nav { display: none; } }
@media (max-width: 420px) {
  header.site { gap: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .top-link { padding: 0 12px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo-mark { width: 22px; height: 22px; }
}
@media (max-width: 350px) { .header-actions .top-link { display: none; } }

footer.site-footer {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-cols h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0; }
.footer-cols a { display: inline-block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { margin: 8px 0 0; max-width: 22em; }
.footer-brand .logo { font-size: 18px; }
.footer-brand .logo-mark { width: 20px; height: 20px; }

/* ---- Public site: content pages ---- */
.page-hero { padding: 20px 0 8px; }
.page-hero .lede { margin-bottom: 22px; }
.eyebrow { display: inline-block; font: 600 13px/1 var(--mono); color: var(--accent); margin-bottom: 14px; letter-spacing: .02em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose .table-wrap { margin: 8px 0 18px; }
.prose .table-wrap table { font-size: 15px; }
.prose .table-wrap td:first-child { font-weight: 600; }
.split-page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 820px) { .split-page { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 18px 0; color: var(--ink); }
.cta-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--ink); color: var(--bg); border-radius: 20px; padding: 32px; margin-top: 56px;
}
.cta-band h2 { margin: 0 0 6px; color: var(--bg); font-size: 26px; }
.cta-band p { margin: 0; color: color-mix(in srgb, var(--bg) 75%, transparent); }
.cta-band .btn { background: var(--lime); color: #111111; }
.cta-band .btn.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
@media (max-width: 680px) { .cta-band { grid-template-columns: minmax(0, 1fr); padding: 24px; } .cta-band .cta-row .btn { flex: 1 1 auto; } }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 8px; }
.tile-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .tile-grid, .tile-grid.two { grid-template-columns: minmax(0, 1fr); } }
.tile-grid .card { margin: 0; }
.tile-grid h3 { margin: 0 0 4px; }
.tile-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.link-card { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.link-card:hover { border-color: var(--accent); }
.link-card strong { display: block; margin-bottom: 4px; }
.link-card span { color: var(--muted); font-size: 14px; }
.yes { color: var(--accent); font-weight: 600; }
.figure { margin: 18px 0 22px; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.example-tag { display: inline-block; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; margin-bottom: 10px; }

/* Static scene used on use-case pages: a guest phone and the staff screen. */
.scene { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.scene .art-phone { position: static; width: 100%; min-height: 0; }
.scene-staff { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.scene-staff .req { padding: 12px 0; }
.scene-staff .req-place { font-size: 18px; }
.scene-staff .req-what { font-size: 15px; }
.scene-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fake-btn { display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) { .scene { grid-template-columns: minmax(0, 1fr); } .scene .art-phone { max-width: 260px; } }

/* Example analytics card on the tracking page. */
.mock-stats .bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin: 12px 0 6px; }
.mock-stats .bars div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; }

/* ---- Homepage: instant QR maker ---- */
.maker {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 28px; row-gap: 14px; align-items: start; padding: 28px;
  grid-template-areas: "form qr" "actions qr";
}
.maker-form { grid-area: form; }
.maker-actions { grid-area: actions; }
.maker .qr-col { grid-area: qr; }
@media (max-width: 680px) {
  .maker { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "qr" "actions"; padding: 20px; }
  .maker .qr-col { max-width: 220px; }
}
.maker h2 { margin: 0 0 6px; }
.maker .qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; aspect-ratio: 1; display: grid; place-items: center; }
.maker .qr-box svg { width: 100%; height: auto; }
.maker .qr-empty { color: #777; font-size: 14px; text-align: center; padding: 0 12px; }
@media (max-width: 680px) { .maker .qr-col { width: 100%; margin: 0 auto; } }
.maker-note { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.maker-note strong { display: block; margin-bottom: 2px; }
.static-vs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-top: 14px; font-size: 14px; }
.static-vs > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.static-vs strong { display: block; }
@media (max-width: 480px) { .static-vs { grid-template-columns: minmax(0,1fr); } }

/* ---- Demo page ---- */
.demo-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.demo-label { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.demo-phone {
  background: #111111; color: #f4f4ef; border: 8px solid #2a2a2a; border-radius: 36px; padding: 34px 18px 22px;
  min-height: 560px; position: relative; box-shadow: 0 24px 50px rgba(0,0,0,.18); max-width: 340px; margin: 0 auto;
}
.demo-phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 70px; height: 7px; margin-left: -35px; border-radius: 7px; background: #2a2a2a; }
.demo-phone .guest-place { color: #a3a39b; }
.demo-phone h3 { font-size: 26px; line-height: 1.1; margin: 4px 0 16px; letter-spacing: -0.02em; }
.demo-phone .tap {
  display: block; width: 100%; text-align: left; margin: 0 0 10px; padding: 16px; min-height: 56px; border-radius: 12px;
  font: 600 17px/1.2 var(--font); color: #f4f4ef; background: transparent; border: 1.5px solid #f4f4ef; cursor: pointer;
}
.demo-phone .tap:active, .demo-phone .tap:hover { background: #2a3010; }
.demo-phone label { color: #f4f4ef; font-size: 14px; margin-top: 14px; }
.demo-phone input[type="text"] { background: #1a1a1a; color: #f4f4ef; border-color: #3a3a3a; }
.demo-phone .done-view { text-align: center; padding-top: 30px; }
.demo-phone .done-view .check { width: 56px; height: 56px; border-radius: 50%; background: #d4f74a; color: #111; display: grid; place-items: center; margin: 0 auto 14px; }
.demo-phone .done-view p { color: #c9c9c1; }
.demo-phone .linkish { background: none; border: 0; color: #d4f74a; text-decoration: underline; padding: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.demo-phone .muted { color: #a3a39b; }
.demo-places { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.demo-places button { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 999px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.demo-places button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo-staff .card-head { margin-bottom: 4px; }
.demo-toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin-bottom: 14px;
  background: #1f2a33; color: #fff; font-size: 14px; line-height: 1.35; box-shadow: 0 10px 24px rgba(0,0,0,.15);
  animation: toast-in .25s ease-out;
}
.demo-toast .art-bell { flex: none; }
@keyframes toast-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .demo-toast { animation: none; } }
.demo-log { font-size: 14px; color: var(--muted); margin: 10px 0 0; padding-left: 18px; }
.demo-log li { margin: 4px 0; }
.demo-staff .req { animation: toast-in .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .demo-staff .req { animation: none; } }

/* ---- Forms on public pages ---- */
textarea {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; min-height: 110px; resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="email"] { width: 100%; padding: 13px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.field { margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
