/* ShopFlow theme: ONE look for the website, the shop screens (check-in, wall), the staff/owner pages and the doc viewer.
   White, high contrast, in the shop's own colours (royal blue sign, barber-pole red). Loaded before each surface's
   stylesheet, which only sets sizes and layout. Light only, on purpose (DECISIONS #27). Hand-written, no build step. */
@font-face {
  font-family: "Inter"; src: url("../vendor/inter-latin-wght.8e433c0592f7.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --soft: #f3f5fb; --soft-2: #e8ecf7;
  --fg: #0a1024; --muted: #4a5470; --line: #d5dbe8; --line-strong: #aeb8cf;
  --accent: #1c3dd6; --accent-2: #3b5bff; --accent-ink: #12299a; --accent-soft: #e9eeff; --accent-fg: #ffffff;
  --red: #d0102b; --red-soft: #ffe9ec; --gold: #f5b301;
  --ok: #077a3c; --ok-soft: #e2f6ea; --bad: #c0182b; --bad-soft: #fde9eb;
  --hero: #0a1238;
  --grad: linear-gradient(135deg, #3352f5 0%, #1c3dd6 50%, #1530b0 100%);
  --grad-soft: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  --radius: 16px; --radius-sm: 10px; --tap: 48px;
  --shadow-sm: 0 1px 2px rgba(10,16,36,.06), 0 1px 3px rgba(10,16,36,.05);
  --shadow: 0 8px 24px rgba(10,16,36,.08), 0 2px 6px rgba(10,16,36,.05);
  --shadow-lg: 0 22px 50px rgba(18,41,154,.20), 0 6px 14px rgba(10,16,36,.08);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* names older stylesheets use */
  --panel: var(--surface); --panel-2: var(--soft);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.015em; color: var(--fg); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }

/* Barber-pole stripe (kept for optional use; removed from every page 2026-11-05 at the shop's request, DECISIONS #54). */
.pole { height: 6px; background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #fff 12px 20px, var(--accent) 20px 32px, #fff 32px 40px);
  background-size: 56.57px 100%; animation: sf-pole 2.4s linear infinite; }

/* Buttons: shared look. Surfaces set the size. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--fg); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--grad); border-color: transparent; color: var(--accent-fg); box-shadow: 0 6px 18px rgba(28,61,214,.32); }
.btn.primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(28,61,214,.40); filter: saturate(1.1) brightness(1.04); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn:disabled, .btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Tags and chips */
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 11px; font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-ink); }
.tag.red { background: var(--red-soft); color: var(--red); } .tag.ok { background: var(--ok-soft); color: var(--ok); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #18b85a; display: inline-block; box-shadow: 0 0 0 0 rgba(24,184,90,.6);
  animation: sf-live 1.8s ease-out infinite; }

/* Evaluation access / demo notices (showcase only): one style everywhere */
.eval-bar { background: #fff4d6; color: #5a3b00; border-bottom: 1px solid #f0d58a; text-align: center; font-size: 13px; padding: 7px 12px; line-height: 1.4; }
.eval-bar b { color: #7a4a00; } .eval-bar a { color: #12299a; font-weight: 800; margin-left: 6px; }
.showcase, .showcase-bar { background: #fff4d6; color: #5a3b00; border-bottom: 1px solid #f0d58a; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }

/* Motion. Entrances are short and only run once per element; the kiosk list refresh never re-animates old rows. */
@keyframes sf-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sf-pop { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes sf-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes sf-pole { to { background-position: 56.57px 0; } }
@keyframes sf-live { 0% { box-shadow: 0 0 0 0 rgba(24,184,90,.55); } 100% { box-shadow: 0 0 0 10px rgba(24,184,90,0); } }
@keyframes sf-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(28,61,214,.30); } 50% { box-shadow: 0 0 0 12px rgba(28,61,214,0); } }
@keyframes sf-new { 0% { background: #fff3c4; } 100% { background: transparent; } }
@keyframes sf-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sf-confetti { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.rise { animation: sf-rise .55s var(--ease) both; }
.stagger > * { animation: sf-rise .5s var(--ease) both; }
.stagger > :nth-child(2) { animation-delay: .05s; } .stagger > :nth-child(3) { animation-delay: .1s; }
.stagger > :nth-child(4) { animation-delay: .15s; } .stagger > :nth-child(5) { animation-delay: .2s; }
.stagger > :nth-child(6) { animation-delay: .25s; } .stagger > :nth-child(7) { animation-delay: .3s; }
.stagger > :nth-child(n+8) { animation-delay: .35s; }
/* Scroll reveal (site.js adds .js to <html> and .in when visible; without JS everything simply shows) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Spotlight: rotating promotions (services, products, offers) on the shop screens and the website. */
.spotlight { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grad-soft); border: 1px solid var(--line);
  box-shadow: var(--shadow); min-height: 220px; }
.spotlight .slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 26px 30px;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.spotlight .slide.has-img { grid-template-columns: 40% minmax(0, 1fr) auto; padding-left: 0; padding-top: 0; padding-bottom: 0; }
.spotlight .slide.on { opacity: 1; visibility: visible; }
.spotlight .slide.on .s-body > * { animation: sf-slide .6s var(--ease) both; }
.spotlight .slide.on .s-body > :nth-child(2) { animation-delay: .08s; } .spotlight .slide.on .s-body > :nth-child(3) { animation-delay: .16s; }
.spotlight .slide.on .s-body > :nth-child(4) { animation-delay: .24s; }
.spotlight .slide.on .s-img img { animation: sf-zoom 9s linear both; }
@keyframes sf-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.spotlight .s-img { align-self: stretch; overflow: hidden; }
.spotlight .s-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight .s-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spotlight .s-title { font-weight: 850; font-size: 1.6em; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.spotlight .s-text { color: var(--muted); margin: 0; font-size: .82em; line-height: 1.35; }
.spotlight .s-price { font-weight: 900; font-size: 1.7em; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.spotlight .s-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .62em; font-weight: 700; color: var(--muted);
  text-align: center; max-width: 150px; }
.spotlight .s-qr svg { width: 128px; height: 128px; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.spotlight .s-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--soft-2); }
.spotlight .s-progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.spotlight .s-progress i.run { animation: sf-progress var(--dur, 9s) linear both; }
.spotlight .s-dots { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 6px; }
.spotlight .s-dots b { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: width .3s var(--ease), background .3s; }
.spotlight .s-dots b.on { width: 22px; border-radius: 4px; background: var(--accent); }
