/* Functional first: plain, readable, large touch targets. Looks come later. */
:root {
  --bg: #f6f6f4; --card: #ffffff; --ink: #1b1d1f; --muted: #5d636a; --line: #dcdfe3;
  --accent: #b3261e; --accent-ink: #ffffff; --ok: #1f7a4d; --warn: #8a6100; --warn-bg: #fff4d6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141618; --card: #1d2023; --ink: #eceef0; --muted: #a3a9b0; --line: #343a40;
          --accent: #ef6b62; --accent-ink: #141618; --ok: #4cc38a; --warn: #e0b341; --warn-bg: #3a3118; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 120px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 24px 0 8px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stack { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.item .desc { grid-column: 1; color: var(--muted); font-size: 14px; }
.item .price { font-variant-numeric: tabular-nums; }
.item.off { opacity: .55; }
.qty { display: flex; align-items: center; gap: 6px; grid-column: 2; grid-row: 1 / span 2; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
              background: var(--card); color: var(--ink); font-size: 20px; }
.qty span { min-width: 1.5em; text-align: center; font-variant-numeric: tabular-nums; }
button.primary { width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: var(--accent);
                 color: var(--accent-ink); font-size: 18px; font-weight: 650; }
button.primary:disabled { opacity: .5; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
       padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.bar > div { max-width: 640px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.bar .total { font-size: 18px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=tel], input[type=email] { width: 100%; min-height: 46px; padding: 8px 10px; font-size: 17px;
       border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.choice { display: flex; gap: 8px; }
.choice label { flex: 1; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-weight: 500;
                display: flex; gap: 8px; align-items: center; background: var(--card); }
.error { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.big-number { font-size: 72px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.status { font-size: 22px; font-weight: 650; }
.status.ready { color: var(--ok); }
[hidden] { display: none !important; }
a.primary { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px;
            background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 650; text-decoration: none; }
.test-banner { margin: 0; padding: 8px 16px; background: #ffd400; color: #1b1d1f; font-weight: 800; text-align: center; letter-spacing: .04em; }
.closed-banner { margin: 0; padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 700; text-align: center; }
/* Logo (v2, with Sky Bar): 240px source shown at 120px (sharp on phone screens), 8 KB. On dark
   backgrounds its black lettering needs a white badge behind it. */
.brand { margin: 0 0 8px; line-height: 0; }
.logo { display: block; width: 120px; height: auto; }
.logo[width="84"] { width: 84px; }
@media (prefers-color-scheme: dark) { .logo { background: #fff; border-radius: 14px; padding: 6px; } }
