/* WNY studio identity — onyx #121212, ivory #F2F0EB, champagne #C9B18A, stone #8E8A82.
   Jost for the wordmark and numbers, IBM Plex Sans Arabic for text. Square pixels, hairlines, nothing decorative. */
:root {
  --onyx: #121212;
  --ink: #0b0b0b;
  --char: #1a1a1a;
  --char-2: #222222;
  --ivory: #f2f0eb;
  --champ: #c9b18a;
  --stone: #8e8a82;
  --bg: var(--onyx);
  --surface: var(--char);
  --text: var(--ivory);
  --muted: var(--stone);
  --line: rgba(201, 177, 138, 0.24);
  --ar: 'IBM Plex Sans Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif;
  --lat: 'Jost', 'IBM Plex Sans Arabic', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--ar);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 13px 20px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  background: var(--char-2);
  color: var(--text);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--champ); color: var(--onyx); }
.btn-primary:hover { background: #d3bf9d; }
.btn-dark { background: var(--onyx); color: var(--ivory); }
.btn-ivory { background: var(--ivory); color: var(--onyx); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-xl { width: 100%; padding: 17px 20px; font-size: 18px; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 6px; }

/* ---------- the pager drawing ---------- */
.pager { width: 100%; height: auto; display: block; overflow: visible; }
.pager .led { fill: var(--champ); opacity: 0.18; }
.pager.is-waiting .led { animation: led-breathe 2.6s ease-in-out infinite; }
.pager.is-waiting .led:nth-child(2) { animation-delay: 0.35s; }
.pager.is-waiting .led:nth-child(3) { animation-delay: 1.05s; }
.pager.is-waiting .led:nth-child(4) { animation-delay: 0.7s; }
.pager.is-ready .led { opacity: 1; }
.pager.is-ringing .led { animation: led-blink 0.5s steps(1) infinite; }
.pager.is-ringing .led:nth-child(even) { animation-delay: 0.25s; }
.pager .pg-num { fill: var(--champ); font: 300 84px var(--lat); }
.pager .pg-label { fill: var(--stone); font: 500 14px var(--ar); }
.pager .pg-brand { fill: var(--stone); font: 400 12px var(--lat); letter-spacing: 0.5em; }
.pager.is-ready .pg-num { fill: var(--ivory); }
.pager.is-ready .pg-label { fill: var(--champ); }
@keyframes led-breathe { 0%, 100% { opacity: 0.18; } 50% { opacity: 1; } }
@keyframes led-blink { 0% { fill: var(--champ); opacity: 1; } 50% { fill: var(--ivory); opacity: 1; } }
@keyframes buzz {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  10% { transform: translate(-5px, 1px) rotate(-2deg); }
  20% { transform: translate(5px, -1px) rotate(2deg); }
  30% { transform: translate(-5px, 0) rotate(-1.5deg); }
  40% { transform: translate(5px, 1px) rotate(1.5deg); }
  50% { transform: translate(0, 0) rotate(0); }
}

/* ---------- customer page ---------- */
.cust { min-height: 100dvh; }
#app.cust-app { max-width: 440px; margin: 0 auto; padding: 18px 20px 30px; display: flex; flex-direction: column; gap: 16px; }
.c-trybar { border: 1px solid var(--line); background: rgba(201, 177, 138, 0.07); color: #e6dccb; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.c-head { text-align: center; padding-top: 8px; }
.c-store { font-size: 26px; font-weight: 500; line-height: 1.35; }
.c-by { color: var(--stone); font-size: 13px; }
.c-by b { color: var(--champ); font-weight: 600; }
.c-pager { width: min(76vw, 300px); margin: 6px auto 0; }
.c-ticket { display: flex; justify-content: space-between; align-items: center; background: var(--ivory); color: var(--onyx); border-radius: 6px; padding: 12px 22px; position: relative; }
.c-ticket::before, .c-ticket::after { content: ''; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--onyx); transform: translateY(-50%); }
.c-ticket::before { right: -8px; }
.c-ticket::after { left: -8px; }
.c-ticket span { font-weight: 500; color: #6d675e; font-size: 15px; }
.c-ticket b { font-family: var(--lat); font-weight: 300; font-size: 46px; line-height: 1.1; direction: ltr; }
.c-status { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 500; font-size: 17px; }
.c-status i { width: 10px; height: 10px; background: var(--champ); animation: sq 1.6s steps(1) infinite; }
.c-status.s-ready i { animation: none; }
.c-status.s-done i, .c-status.s-cancelled i { background: var(--stone); animation: none; }
@keyframes sq { 50% { opacity: 0.25; } }
.c-eta { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.c-eta-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--stone); font-size: 14px; }
.c-eta-row b { font-family: var(--lat); font-weight: 300; font-size: 30px; color: var(--ivory); direction: ltr; }
.c-bar { height: 3px; background: rgba(242, 240, 235, 0.1); margin-top: 10px; }
.c-bar i { display: block; height: 100%; width: 0; background: var(--champ); transition: width 1s linear; }
.c-actions { display: grid; gap: 8px; }
.c-hint { margin: 0; text-align: center; color: var(--stone); font-size: 14px; }
.c-on { border: 1px solid var(--line); background: rgba(201, 177, 138, 0.07); border-radius: 6px; padding: 16px; }
.c-on-title { font-weight: 600; font-size: 17px; color: var(--champ); }
.c-tips { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 8px; color: #d9d3c8; font-size: 15px; }
.c-tips li { display: flex; gap: 10px; align-items: flex-start; }
.c-tips li::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--champ); margin-top: 11px; }
.c-end { border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.c-end h2 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.c-end p { margin: 0 0 12px; color: #d3cdc2; font-weight: 300; }
.c-end-cta { border-inline-start: 2px solid var(--champ); padding: 2px 12px; }
.c-end .btn-xl { margin-bottom: 10px; }
.c-end-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-foot { text-align: center; color: var(--stone); font-size: 12px; margin-top: 6px; }
.c-fail { min-height: 80dvh; display: grid; place-content: center; text-align: center; gap: 12px; }
.c-fail h1 { font-size: 20px; margin: 0; font-weight: 500; }

/* full-screen ring */
.ready {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--onyx);
  animation: ready-flash 1s steps(1) infinite;
}
@keyframes ready-flash { 0% { background: var(--champ); } 50% { background: var(--ivory); } }
.ready-inner { width: min(100%, 420px); display: grid; gap: 4px; justify-items: center; }
.ready-pager { width: min(54vw, 220px); animation: buzz 0.6s infinite; margin-bottom: 8px; }
.ready-eyebrow { font-family: var(--lat); font-weight: 400; font-size: 13px; letter-spacing: 0.4em; }
.ready h1 { margin: 0; font-size: 46px; line-height: 1.2; font-weight: 500; }
.ready-num { font-family: var(--lat); font-weight: 300; font-size: 104px; line-height: 1; direction: ltr; }
.ready p { margin: 0 0 18px; font-size: 20px; font-weight: 500; }
.ready .ready-sub { font-size: 14px; font-weight: 400; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .ready { animation: none; background: var(--champ); }
  .ready-pager { animation: none; }
}

/* ---------- cashier (ivory theme, like the identity board) ---------- */
.kas {
  --bg: #f2f0eb;
  --surface: #ffffff;
  --text: #121212;
  --muted: #6d675e;
  --line: rgba(18, 18, 18, 0.14);
  color-scheme: light;
  min-height: 100dvh;
}
#app.kas-app { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; }
.k-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.k-brand { display: flex; align-items: center; gap: 10px; }
.k-brand img { width: 38px; height: 38px; }
.k-brand b { display: block; font-weight: 600; font-size: 22px; line-height: 1.2; }
.k-brand small { display: block; color: var(--muted); font-size: 13px; line-height: 1.2; }
.k-store { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 9px 14px; font-weight: 500; cursor: pointer; color: var(--text); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-new { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; margin-bottom: 16px; }
.k-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-opts label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
.k-opts input, .k-opts select, .k-field input {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.k-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.k-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 44px 10px; background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; }
.k-empty .sq { display: block; width: 14px; height: 14px; background: var(--champ); margin: 0 auto 14px; }
.k-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
.k-card.is-ready { border-color: var(--champ); box-shadow: 0 0 0 1px var(--champ); }
.k-card-top { display: flex; justify-content: space-between; align-items: center; }
.k-num { font-family: var(--lat); font-weight: 300; font-size: 44px; line-height: 1; direction: ltr; }
.k-time { color: var(--muted); font-size: 13px; }
.k-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.k-steps li { display: flex; gap: 10px; align-items: center; }
.k-steps li::before { content: ''; flex: none; width: 9px; height: 9px; border: 1.5px solid var(--stone); }
.k-steps li.wait { color: var(--muted); }
.k-steps li.on { font-weight: 500; }
.k-steps li.on::before { background: var(--onyx); border-color: var(--onyx); }
.k-btns { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; }
.k-btns .btn { padding: 12px 8px; font-size: 15px; }
.kas .btn-ghost { color: var(--text); }
.k-dlg { border: 0; border-radius: 10px; padding: 24px; width: min(92vw, 440px); background: var(--surface); color: var(--text); }
.k-dlg::backdrop { background: rgba(10, 10, 10, 0.6); }
.k-dlg h2 { margin: 0 0 4px; font-weight: 500; }
.k-muted { color: var(--muted); margin: 0 0 12px; }
.k-field { display: grid; gap: 6px; font-weight: 500; margin-bottom: 14px; }
.k-dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-dlg-btns .btn:only-child { grid-column: 1 / -1; }
.k-qr { text-align: center; }
.k-qr-store { font-weight: 500; font-size: 18px; }
.k-qr-num { font-family: var(--lat); font-weight: 300; font-size: 68px; line-height: 1.1; direction: ltr; }
.k-qr-code { width: min(70vw, 300px); margin: 10px auto; background: var(--ivory); padding: 12px; }
.k-qr-code svg { width: 100%; height: auto; display: block; }
.k-qr-help { color: var(--muted); margin: 4px 0 16px; }
.toast {
  position: fixed;
  inset-inline: 16px;
  bottom: 18px;
  margin: 0 auto;
  max-width: 520px;
  background: var(--onyx);
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: 13px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 80;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok { border-color: var(--champ); }
.toast.warn { border-color: var(--stone); color: #d9d3c8; }
.toast.bad { border-color: #b4574f; }

/* ---------- landing ---------- */
.land { min-height: 100dvh; }
.l-wrap { position: relative; max-width: 980px; margin: 0 auto; padding: 20px 20px 44px; }
.px-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 460px;
  pointer-events: none;
  background-image: linear-gradient(0deg, var(--onyx) 0 3px, transparent 3px), linear-gradient(90deg, rgba(242, 240, 235, 0.075) 0 2px, transparent 2px);
  background-size: 6px 11px, 6px 11px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, transparent 100%);
}
.l-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.l-brand { display: grid; gap: 4px; }
.l-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 24px; }
.l-logo img { width: 34px; height: 34px; }
.l-by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--stone); text-decoration: none; }
.l-by img { width: 16px; height: auto; }
.l-by .wm { color: var(--ivory); font-size: 14px; }
.l-pill { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--champ); border-radius: 4px; color: var(--champ); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.l-hero { position: relative; display: grid; gap: 28px; align-items: center; padding: 40px 0 8px; }
.l-eyebrow { font-family: var(--lat); font-weight: 400; font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--champ); margin-bottom: 10px; direction: ltr; text-align: right; }
.l-hero h1 { font-size: clamp(40px, 9.5vw, 66px); line-height: 1.2; margin: 0; font-weight: 500; }
.l-hero h1 em { font-style: normal; color: var(--champ); }
.l-hero p { font-size: 18px; color: #d3cdc2; margin: 16px 0 0; font-weight: 300; }
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.l-chips span { border: 1px solid var(--line); padding: 5px 14px; border-radius: 3px; font-size: 14px; font-weight: 500; }
.l-cta { display: grid; gap: 10px; max-width: 440px; }
.l-cta small { color: var(--stone); text-align: center; }
.l-art { width: min(72vw, 320px); margin: 0 auto; }
.l-section { margin-top: 56px; }
.l-section h2, .l-cashier h2 { font-size: 30px; line-height: 1.3; margin: 0 0 18px; font-weight: 500; }
.l-steps { display: grid; gap: 12px; }
.l-step { border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.l-step b { font-family: var(--lat); font-weight: 300; font-size: 34px; line-height: 1; color: var(--champ); }
.l-step h3 { margin: 0 0 2px; font-size: 18px; font-weight: 500; }
.l-step p { margin: 0; color: var(--stone); font-weight: 300; }
.l-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.l-card { border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.l-card::before { content: ''; display: block; width: 10px; height: 10px; background: var(--champ); margin-bottom: 14px; }
.l-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.l-card p { margin: 0; color: var(--stone); font-size: 14px; font-weight: 300; }

.l-cashier { margin-top: 56px; background: var(--char); border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px; display: grid; gap: 26px; }
.l-cashier p { margin: 0 0 16px; color: #d3cdc2; font-size: 17px; font-weight: 300; }
.l-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.l-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.l-points b { flex: none; font-family: var(--lat); font-weight: 300; font-size: 22px; line-height: 1.3; color: var(--champ); width: 28px; }
.l-cashier small { display: block; margin-top: 12px; color: var(--stone); text-align: center; }

.k-mock { background: #f2f0eb; color: #121212; border-radius: 8px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); pointer-events: none; user-select: none; }
.mk-new { background: #121212; color: #f2f0eb; text-align: center; padding: 12px; border-radius: 4px; font-weight: 500; font-size: 17px; }
.mk-card { background: #fff; border: 1px solid rgba(18, 18, 18, 0.14); border-radius: 6px; padding: 10px 12px; display: grid; gap: 8px; }
.mk-card.mk-ready { border-color: #c9b18a; box-shadow: 0 0 0 1px #c9b18a; }
.mk-top { display: flex; justify-content: space-between; align-items: center; }
.mk-num { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 32px; direction: ltr; line-height: 1; }
.mk-time { font-size: 12px; color: #6d675e; }
.mk-step { font-size: 13px; color: #6d675e; display: flex; gap: 8px; align-items: center; }
.mk-step::before { content: ''; width: 8px; height: 8px; border: 1.5px solid #8e8a82; flex: none; }
.mk-step.on { color: #121212; font-weight: 500; }
.mk-step.on::before { background: #121212; border-color: #121212; }
.mk-btns { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; }
.mk-btns span { text-align: center; padding: 8px 4px; border-radius: 4px; font-size: 13px; font-weight: 500; border: 1px solid rgba(18, 18, 18, 0.14); }
.mk-btns .go { background: #c9b18a; border-color: #c9b18a; }

.l-studio { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 14px; text-align: center; }
.l-studio-mark { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ivory); }
.l-studio-mark img { width: 56px; height: auto; }
.l-studio p { margin: 0; color: var(--stone); font-weight: 300; max-width: 420px; }
.l-studio-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.l-foot { margin-top: 36px; text-align: center; color: var(--stone); font-size: 13px; }

@media (min-width: 820px) {
  .l-hero { grid-template-columns: 1.2fr 0.8fr; }
  .l-steps { grid-template-columns: repeat(3, 1fr); }
  .l-step { grid-template-columns: 1fr; }
  .l-grid { grid-template-columns: repeat(4, 1fr); }
  .l-cashier { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 34px; gap: 40px; }
  .l-cashier .btn-xl { width: auto; padding-inline: 30px; }
  .l-cashier small { text-align: right; }
}

/* ---------- WNY studio wordmark and signature ---------- */
.wm { font-family: var(--lat); font-weight: 300; letter-spacing: 0.28em; direction: ltr; unicode-bidi: isolate; }
.wm i { font-style: normal; font-size: 0.6em; letter-spacing: 0.08em; color: var(--stone); margin-inline-start: 0.6em; }
.wny { display: grid; justify-items: center; gap: 4px; margin-top: 12px; }
.wny-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--muted); font-size: 12px; }
.wny-brand img { width: 20px; height: auto; }
.wny-brand .wm { color: var(--text); font-size: 15px; }
.wny-contact { display: flex; gap: 8px; font-family: var(--lat); font-size: 13px; color: var(--muted); direction: ltr; }
.wny-contact a { color: var(--muted); text-decoration: none; }
.k-foot { margin-top: 36px; }
.l-studio .wm { font-size: 34px; }
.l-studio .wm i { font-size: 17px; }

/* ---------- link maker (for the owner) ---------- */
.lm-out { border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: grid; gap: 10px; }
.lm-out textarea { width: 100%; min-height: 200px; font: inherit; font-size: 15px; background: var(--char); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 12px; resize: vertical; }
.lm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lm-field { display: grid; gap: 6px; font-weight: 500; margin-bottom: 12px; }
.lm-field input, .lm-field select { font: inherit; font-size: 16px; padding: 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--char); color: var(--text); }
.lm-link { direction: ltr; text-align: left; font-family: var(--lat); font-size: 13px; color: var(--muted); word-break: break-all; }
