/* Till Up — the shared design system for every page except the till (till.css).
   Tokens first; each school's accent is set per page on :root. */
:root {
  --navy: #0b1f3a;
  --navy-2: #13294a;
  --mint: #2dd4bf;
  --accent: #0f766e;
  --on-accent: #ffffff;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #16202e;
  --muted: #5f6b7d;
  --line: #e5eaf1;
  --line-strong: #d3dbe6;
  --soft: #f7f9fc;
  --green: #15803d;  --green-bg: #e5f7eb;
  --red: #b91c1c;    --red-bg: #fdecec;
  --amber: #9a5b06;  --amber-bg: #fdf2d7;
  --blue-bg: #e8f0fd;
  --green-btn: #15803d;
  --red-btn: #b91c1c;
  --link: var(--accent);
  --ring: color-mix(in srgb, var(--accent) 22%, transparent);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 16px -6px rgba(16, 24, 40, 0.12);
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1420;
    --card: #151e2d;
    --text: #e7ecf4;
    --muted: #93a1b5;
    --line: #26344a;
    --line-strong: #324259;
    --soft: #1a2536;
    --green: #4ade80;  --green-bg: #11301f;
    --red: #f87171;    --red-bg: #3a1919;
    --amber: #fbbf24;  --amber-bg: #38290d;
    --blue-bg: #152a4d;
    --green-btn: #16a34a;
    --red-btn: #dc2626;
    --link: color-mix(in srgb, var(--accent) 52%, #dcebff);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 18px -8px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
  background: var(--bg); color: var(--text);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.07); position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: 1500px; margin: 0 auto; padding: 8px clamp(16px, 2.5vw, 48px); display: flex; align-items: center; gap: 8px 22px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: #fff; flex: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; border-radius: 7px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.brand .wordmark > span { color: var(--mint); }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; }
.nav a { color: #b9c5d6; padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 -2px 0 var(--mint); }
.nav a.nav-till { border: 1px solid #33496d; margin-left: 8px; color: #d9e2ee; }
.nav a.nav-till:hover { border-color: #4a6188; background: rgba(255, 255, 255, 0.06); }
.nav-auth { margin-left: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.nav-user, .nav-link-light { color: #dbe3ee; font-size: 14px; font-weight: 600; }
.nav-link-light:hover { color: #fff; }
.nav-link-light.on { color: var(--mint); }
.topbar .btn-ghost { color: #dbe3ee; border-color: #33496d; }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
@media (max-width: 760px) {
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 10px; font-size: 13px; }
}

.masq-bar { background: linear-gradient(90deg, #b45309, #d97706); color: #fff; }
.masq-inner { max-width: 1500px; margin: 0 auto; padding: 8px clamp(16px, 2.5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.masq-bar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }

.schoolbar { background: var(--navy-2); color: #dbe3ee; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.schoolbar-inner { max-width: 1500px; margin: 0 auto; padding: 9px clamp(16px, 2.5vw, 48px); display: flex; align-items: center; gap: 10px; font-size: 14.5px; flex-wrap: wrap; }
.school-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.schoolbar .muted { color: #8fa0b8; }

/* ---------- layout ---------- */
.container { max-width: 1500px; margin: 0 auto; padding: 30px clamp(16px, 2.5vw, 48px) 64px; }
.container.narrow { max-width: 960px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head > div:first-child { flex: 1 1 300px; min-width: 0; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
h1 { font-size: 27px; margin: 0 0 6px; letter-spacing: -0.55px; font-weight: 750; }
h2 { font-size: 17px; margin: 28px 0 12px; letter-spacing: -0.2px; font-weight: 700; }
h3 { font-size: 15.5px; margin: 0 0 10px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.card > :first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.stack > * + * { margin-top: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.stat .num { font-size: 29px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.stat .hint { color: var(--muted); font-size: 13px; margin-top: 3px; }
a.card.stat { display: block; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.card.stat:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-1px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-1); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap th { background: var(--soft); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.table-wrap tbody tr { transition: background 0.1s; }
.table-wrap tbody tr:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.dim td { color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: var(--on-accent);
  border: 1px solid color-mix(in srgb, var(--accent) 85%, #000); padding: 10px 17px; border-radius: 10px; font-size: 14px; font-weight: 650;
  cursor: pointer; min-height: 42px; line-height: 1.2; white-space: nowrap; font-family: inherit; letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-1); transition: filter 0.12s, transform 0.08s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring), var(--shadow-1); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-outline { background: var(--card); color: var(--link); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); box-shadow: var(--shadow-1); }
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 7%, var(--card)); filter: none; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--soft); color: var(--text); filter: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 34px; border-radius: 8px; }
.btn-red { background: var(--red-btn); border-color: color-mix(in srgb, var(--red-btn) 80%, #000); color: #fff; }
.btn-green { background: var(--green-btn); border-color: color-mix(in srgb, var(--green-btn) 80%, #000); color: #fff; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--link); cursor: pointer; padding: 0; font: inherit; font-weight: 600; }

input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); color: var(--text); width: 100%; min-height: 42px; transition: border-color 0.12s, box-shadow 0.12s; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--accent); width: 16px; height: 16px; }
input[type="color"] { padding: 3px; width: 64px; cursor: pointer; }
label { display: block; font-size: 13px; font-weight: 650; margin: 13px 0 5px; color: var(--muted); }
label.check { display: flex; gap: 9px; align-items: center; font-weight: 550; color: var(--text); font-size: 14px; cursor: pointer; }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 140px; }
.inline-form { display: inline; }
.help { color: var(--muted); font-size: 13px; margin: 5px 0 0; line-height: 1.45; }
.money-in { position: relative; }
.money-in::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money-in input { padding-left: 25px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 650; cursor: pointer; user-select: none; background: var(--card); color: var(--text); transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s; }
.chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong)); text-decoration: none; }
.chip input { display: none; }
.chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); }
.chip.static { cursor: default; }

.choice { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.choice label { margin: 0; display: block; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: 16px 18px; cursor: pointer; color: var(--text); font-weight: 400; font-size: 14px; background: var(--card); line-height: 1.5; transition: border-color 0.12s, box-shadow 0.12s; }
.choice label strong { display: block; font-size: 15.5px; margin-bottom: 4px; letter-spacing: -0.1px; }
.choice label:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.choice label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.choice input { float: right; margin-top: 3px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--muted); letter-spacing: 0.01em; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-blue { background: var(--blue-bg); color: var(--link); }

.alert { padding: 13px 16px; border-radius: var(--r-md); margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; }
.alert-ok { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.alert-err { background: var(--red-bg); color: var(--red); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.alert-info { background: var(--blue-bg); color: var(--text); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.mt { margin-top: 16px; }
.mt0 { margin-top: 0; }
.nowrap { white-space: nowrap; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.93em; }
.neg { color: var(--red); }
.pos { color: var(--green); }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: clamp(32px, 5.5vw, 64px); margin-bottom: 30px;
  background: radial-gradient(640px 420px at 88% -15%, rgba(45, 212, 191, 0.22), transparent 70%),
              radial-gradient(520px 420px at -8% 115%, rgba(59, 130, 246, 0.14), transparent 70%),
              linear-gradient(135deg, var(--navy) 0%, #0e3a37 100%); }
.hero h1 { color: #fff; font-size: clamp(29px, 4vw, 44px); letter-spacing: -1.2px; max-width: 780px; line-height: 1.12; }
.hero p { color: #c3cfdf; max-width: 660px; font-size: 17px; line-height: 1.6; }
.hero .btn { background: var(--mint); color: #042f2e; border-color: transparent; font-weight: 750; padding: 12px 22px; }
.hero .btn-outline { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.feature { transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.feature h3 { margin-top: 0; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.55; }
.f-ico { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--link); }
.f-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- auth & onboarding ---------- */
.auth-wrap { max-width: 440px; margin: 36px auto; }
.auth-wrap .card { padding: 28px; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.steps span { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.steps span.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.steps span.done { color: var(--green); background: var(--green-bg); border-color: transparent; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: none; }
.checklist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--muted); border: 1.5px solid var(--line-strong); }
.checklist li.done .tick { background: var(--green); color: #fff; border-color: var(--green); }
.checklist li.done { color: var(--muted); }

/* ---------- menu ---------- */
.cat-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 7px; }
.menu-cat { margin-bottom: 26px; }
.menu-cat h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; }
.product-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.product-card { display: block; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cat, var(--accent)); border-radius: var(--r-md); padding: 13px 15px; color: var(--text); box-shadow: var(--shadow-1); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.product-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--cat, var(--accent)) 55%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.product-card .price { font-weight: 750; font-variant-numeric: tabular-nums; }
.product-card.off { opacity: 0.55; }

/* ---------- ordering (family) ---------- */
.order-menu .item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-menu .item:last-child { border-bottom: none; }
.order-menu .item .info { flex: 1; min-width: 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--soft); color: var(--text); font-size: 18px; font-weight: 800; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.qty button:hover { background: color-mix(in srgb, var(--accent) 10%, var(--soft)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong)); }
.qty input { width: 52px !important; text-align: center; min-height: 38px; padding: 4px; font-weight: 650; }
.sticky-total { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 14px 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.student-tile { display: flex; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--on-accent); display: grid; place-items: center; font-weight: 750; flex: none; font-size: 15px; letter-spacing: 0.02em; box-shadow: var(--shadow-1); }
.balance { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }

.mapping td select { min-width: 180px; }
.preview td { font-size: 13px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qr { background: #fff; padding: 10px; border-radius: var(--r-md); display: inline-block; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.qr img { display: block; width: 200px; height: 200px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); background: var(--soft); }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 34px 20px 52px; }
pre.email { white-space: pre-wrap; font-family: inherit; font-size: 13px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; margin: 10px 0 0; line-height: 1.55; }
details summary { cursor: pointer; font-weight: 650; }
details summary:hover { color: var(--link); }

@media print {
  .topbar, .schoolbar, .footer, .no-print, .masq-bar { display: none !important; }
  body { background: #fff; }
  .card, .table-wrap { border: none; box-shadow: none; }
}

/* ---------- landing: energy ---------- */
.hero > :not(.hero-icons) { position: relative; z-index: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { animation: rise 0.6s 0.05s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.hero h1 { animation: rise 0.7s 0.14s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.hero > p { animation: rise 0.7s 0.26s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.hero .cta-row { animation: rise 0.7s 0.38s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.hero .hero-pills { animation: rise 0.7s 0.5s cubic-bezier(0.22, 0.9, 0.32, 1) both; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint); background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.3); }

/* A marker-pen swipe under the key phrase, painted after the headline lands. */
.hl { padding: 0 0.1em; border-radius: 5px;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.32), rgba(45, 212, 191, 0.32)) no-repeat 0 72% / 0% 38%;
  animation: paint 0.7s 0.85s ease-out forwards; }
@keyframes paint { to { background-size: 100% 38%; } }

.hero-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 24px 0 0; }
.hero-pills li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: #dce7f2;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); padding: 7px 14px; border-radius: 999px; }
.hero-pills .tick { color: var(--mint); font-weight: 800; }

/* Floating white stencil canteen icons. */
.hero-icons { position: absolute; inset: 0; pointer-events: none; }
.hero-icons span, .fees-art span, .cta-band .deco span { position: absolute; display: block; color: #fff; width: var(--s, 44px); height: var(--s, 44px);
  animation: floaty var(--t, 8s) ease-in-out var(--dl, 0s) infinite; }
.hero-icons svg, .fees-art svg, .cta-band .deco svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; transform: rotate(var(--r, 0deg)); }
@keyframes floaty { 50% { transform: translateY(-13px); } }
.hero-icons span { opacity: 0.38; }
.hero-icons span:nth-child(1) { top: 16%; right: 6%;  --s: 40px; --t: 7s;   --r: -8deg; }
.hero-icons span:nth-child(2) { top: 58%; right: 4%;  --s: 54px; --t: 9s;   --dl: 1.2s; --r: 6deg; }
.hero-icons span:nth-child(3) { bottom: 9%; right: 15%; --s: 46px; --t: 8s; --dl: 0.6s; --r: 10deg; }
.hero-icons span:nth-child(4) { top: 8%; right: 22%;  --s: 32px; --t: 6.5s; --dl: 1.8s; --r: -10deg; }
.hero-icons span:nth-child(5) { top: 34%; right: 11%; --s: 62px; --t: 10s;  --dl: 0.3s; }
.hero-icons span:nth-child(6) { bottom: 32%; right: 25%; --s: 36px; --t: 7.5s; --dl: 2.2s; --r: 8deg; }
.hero-icons span:nth-child(7) { top: 10%; right: 34%; --s: 30px; --t: 8.5s; --dl: 1s;   --r: -6deg; }
.hero-icons span:nth-child(8) { bottom: 7%; right: 34%; --s: 40px; --t: 9.5s; --dl: 1.5s; --r: 14deg; }
.hero-icons span:nth-child(9) { top: 66%; right: 20%; --s: 38px; --t: 7.2s; --dl: 2.6s; --r: -5deg; }
@media (max-width: 980px) {
  .hero-icons span { opacity: 0.3; }
  .hero-icons span:nth-child(n+5) { display: none; }
}

/* Scroll reveal: html gets .reveal-ready only when site.js can observe, so
   content is never hidden without JavaScript. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.6s cubic-bezier(0.22, 0.9, 0.32, 1) var(--d, 0s); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }

.land-h { text-align: center; font-size: 26px; letter-spacing: -0.6px; margin: 58px 0 8px; }
.land-sub { text-align: center; color: var(--muted); margin: 0 auto 26px; max-width: 580px; }
.aud .f-ico { width: 46px; height: 46px; border-radius: 13px; }
.aud .f-ico svg { width: 24px; height: 24px; }

/* ---------- fees band ---------- */
.fees { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; padding: 30px; margin-top: 52px; }
.fees h2 { font-size: 25px; letter-spacing: -0.5px; }
.fees > div > p { color: var(--muted); line-height: 1.6; }
.fee-points { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.fee-points li { display: flex; gap: 10px; align-items: baseline; font-weight: 650; font-size: 14.5px; }
.fee-points li::before { content: "✓"; color: var(--green); font-weight: 800; }
.fees-art { position: relative; border-radius: 16px; min-height: 260px; overflow: hidden; align-self: stretch;
  background: radial-gradient(420px 300px at 85% -10%, rgba(45, 212, 191, 0.24), transparent 70%),
              linear-gradient(135deg, var(--navy) 0%, #0e3a37 100%); }
.fees-art span { opacity: 0.55; }
.fees-art span:nth-child(1) { top: 50%; left: 50%; margin: -47px 0 0 -47px; --s: 94px; --t: 9s; }
.fees-art span:nth-child(2) { top: 10%; right: 10%; --s: 42px; --t: 7s; --dl: 1s; --r: 8deg; }
.fees-art span:nth-child(3) { bottom: 9%; left: 9%; --s: 46px; --t: 8s; --dl: 2s; --r: -8deg; }
@media (max-width: 860px) { .fees { grid-template-columns: 1fr; } .fees-art { min-height: 180px; } }

/* ---------- closing call to action ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; border-radius: 22px; padding: 56px 24px 60px; margin-top: 52px; color: #fff;
  background: radial-gradient(640px 420px at 85% -15%, rgba(45, 212, 191, 0.22), transparent 70%),
              linear-gradient(135deg, var(--navy) 0%, #0e3a37 100%); }
.cta-band > :not(.deco) { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -0.8px; }
.cta-band p { color: #c3cfdf; margin: 0 auto 24px; font-size: 16px; max-width: 520px; }
.cta-band .row { justify-content: center; }
.cta-band .btn { background: var(--mint); color: #042f2e; border-color: transparent; font-weight: 750; padding: 12px 22px; }
.cta-band .btn-outline { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.cta-band .deco span { opacity: 0.3; }
.cta-band .deco span:nth-child(1) { top: 28%; left: 6%; --s: 46px; --t: 8s; --r: -8deg; }
.cta-band .deco span:nth-child(2) { top: 38%; right: 6%; --s: 42px; --t: 9s; --dl: 1.4s; --r: 8deg; }
@media (max-width: 700px) { .cta-band .deco { display: none; } }

/* Top-up payment page */
.pay-sum { margin: 6px 0 18px; }
.pay-sum td { padding: 9px 0; }
.pay-total td { font-weight: 800; font-size: 16px; border-bottom: 0; }
#card-container { min-height: 90px; margin-bottom: 4px; }
#google-pay-button { height: 48px; margin-bottom: 10px; }
.apple-pay-button { display: block; width: 100%; height: 48px; margin-bottom: 10px; border: 0; border-radius: var(--r-md);
  -webkit-appearance: -apple-pay-button; -apple-pay-button-type: plain; -apple-pay-button-style: black; cursor: pointer; }
.pay-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- setup wizard ---------- */
.wiz-wrap { max-width: 720px; margin: 0 auto; }
.auth-wrap.wide { max-width: 480px; }
.wizard { list-style: none; display: flex; align-items: center; padding: 0; margin: 0 0 22px; }
.wizard .ws { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.wizard .ws:last-child { flex: 0 0 auto; }
.wizard .ws::after { content: ""; flex: 1; height: 2px; margin: 0 10px; border-radius: 2px;
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 0 / 0% 100%, var(--line-strong); }
.wizard .ws:last-child::after { display: none; }
.wizard .ws.done::after { animation: fillbar 0.6s ease-out both; }
@keyframes fillbar { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.wizard .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800;
  border: 2px solid var(--line-strong); background: var(--card); color: var(--muted); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.wizard .ws.on .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); animation: pulse 1.6s ease-out 2; }
.wizard .ws.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.wizard a.n:hover { text-decoration: none; transform: scale(1.08); }
.wizard .t { white-space: nowrap; }
.wizard .ws.on .t { color: var(--text); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 600px) {
  .wizard .ws:not(.on) .t { display: none; }
  .wizard .ws { gap: 7px; }
  .wizard .ws::after { margin: 0 6px; }
}

/* The setup card slides in, then its contents follow one after another. */
.wiz-card { animation: rise 0.5s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.wiz-card.d2 { animation-delay: 0.12s; }
.wiz-card > * { animation: rise 0.5s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.wiz-card > :nth-child(1) { animation-delay: 0.08s; }
.wiz-card > :nth-child(2) { animation-delay: 0.14s; }
.wiz-card > :nth-child(3) { animation-delay: 0.2s; }
.wiz-card > :nth-child(4) { animation-delay: 0.26s; }
.wiz-card > :nth-child(5) { animation-delay: 0.32s; }
.wiz-card > :nth-child(n+6) { animation-delay: 0.38s; }
.wiz-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--link); }
.wiz-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wiz-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn-lg { padding: 12px 22px; font-size: 15px; min-height: 46px; border-radius: 12px; }
.btn .arr { display: inline-block; transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(4px); }
.center { text-align: center; }
.colour-pick { flex: 0 0 auto !important; min-width: 0 !important; }
.code-in { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 30px; font-weight: 700; letter-spacing: 0.45em; text-align: center; padding-left: 0.45em; min-height: 62px; }
.choice-big label { padding: 20px; }
.choice label:has(input:checked) { background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* A toggle switch in place of a bare checkbox. */
.switch { position: relative; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s cubic-bezier(0.22, 0.9, 0.32, 1); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--ring); }

/* Numbered how-to on the till step. */
.how { list-style: none; counter-reset: h; padding: 0; margin: 18px 0 0; display: grid; gap: 18px; }
.how li { display: flex; gap: 14px; align-items: flex-start; }
.how li::before { counter-increment: h; content: counter(h); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--link); }
.how strong { display: block; font-size: 15px; }
.how .help { margin-top: 3px; }
.till-url { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.till-url .qr img { width: 150px; height: 150px; }

/* ---------- menu page ---------- */
.menu-add .form-row > .grow { flex: 2 1 220px; }
.menu-add .form-row > .narrow { flex: 1 1 130px; }
.cat-nav { position: sticky; top: 62px; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; margin: 0 -16px 18px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav .chip { flex: none; gap: 8px; }
.cat-nav .chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.cat-nav .chip .cnt { opacity: 0.65; font-weight: 600; }
.cat-nav .chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); }
.cat-nav .chip.on .dot { background: var(--on-accent); }
.cat-nav .static-link { margin-left: auto; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.menu-cat { scroll-margin-top: 124px; }
.menu-cat h2 .cnt { color: var(--muted); font-size: 13px; font-weight: 500; }
.product-card { padding: 0; overflow: hidden; }
.product-card .p-main { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 13px 15px 6px; color: var(--text); font-weight: 700; }
.product-card .p-main:hover { text-decoration: none; color: var(--link); }
.product-card .p-name { min-width: 0; overflow-wrap: anywhere; }
.product-card .p-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 15px 12px; }
.product-card.off .p-name { text-decoration: line-through; }
.product-card.p-removed { padding: 13px 15px; }
.empty-state { text-align: center; padding: 40px 22px; }
.empty-state .wiz-ico { margin: 0 auto 14px; }
.cat-manage summary { padding: 0; font-size: 17px; }
.cat-rows { margin-top: 14px; }
.cat-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-row:last-child { border-bottom: none; }
.cat-row .ord { display: flex; gap: 2px; flex: none; }
.cat-row .grow { flex: 1 1 200px; min-width: 0; }
.cat-row form.row { flex-wrap: nowrap; }
.cat-row input[type="color"] { flex: none; }
@media (max-width: 600px) { .cat-row form.row { flex-wrap: wrap; } }
