/*
 * QR code page — PAPANGUE-3570
 *
 * Single-purpose page shown to a customer standing in a shop, on a phone, often
 * in a hurry. Everything below serves one goal: the QR code must be big, sharp
 * and readable by a hand scanner on the first try.
 *
 * `--brand-bg` / `--brand-fg` are set by app.js from the hostname (see SITES in
 * app.js). The values declared here are only a safety net: on an unrecognised
 * domain the badge stays hidden altogether.
 */

:root {
  --brand-bg: #101a25;
  --brand-fg: #ffffff;
  --ink: #101a25;
  --muted: #5b6875;
  --page: #f5f7f9;
  --card: #ffffff;
  --border: #e0e6eb;
}

/*
 * Forced light rendering. A dark-mode inversion would darken the QR's quiet zone
 * and make it unscannable, so this page opts out of the viewer's colour scheme.
 */
html {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 24px 20px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  text-align: center;
}

/*
 * Brand badge: the coloured block of each site's logo, with its wordmark in it.
 * Casing comes from app.js and must not be touched here — "kleeky" is lowercase
 * in its own logo.
 */
.brand {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--brand-bg);
  color: var(--brand-fg);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.25;
}

/*
 * The QR keeps a white background of its own, independent of the card, because
 * the 4-module quiet zone drawn by app.js is only useful if it stays white.
 */
.qr {
  margin: 0 auto;
  padding: 12px;
  width: min(280px, 100%);
  border-radius: 12px;
  background: #ffffff;
}

.qr svg {
  display: block;
  width: 100%;
  height: auto;
}

/* The order number in plain text: a fallback when the scanner won't cooperate. */
.code {
  margin: 16px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hint strong {
  color: var(--ink);
}

.tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.error {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

[hidden] {
  display: none !important;
}
