/* ==========================================================================
   Hero — "One POS, every way to sell" (scoped to .hx)
   Three scenes: Smart POS / QR Menu / Online Store. Accent colour follows the
   active scene via [data-scene] on the section. Loaded after responsive.css.
   ========================================================================== */

.hx {
  --hx-yellow: #ffc700;
  --hx-yellow-2: #ffdd3c;
  --hx-yellow-deep: #f5a300;
  --hx-ink: #1a1400;
  --hx-a1: #2f5bff;
  --hx-a2: #06d6e8;
  padding-top: calc(var(--navbar-height) + 3rem);
  padding-bottom: 4rem;
  isolation: isolate;
}
.hx[data-scene="qr"]    { --hx-a1: #f59e0b; --hx-a2: #ffc700; }
.hx[data-scene="store"] { --hx-a1: #8b5cf6; --hx-a2: #ec4899; }

/* ---------- Background ---------- */
.hx-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text-primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text-primary) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, #000 30%, transparent 75%);
}
.hx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  transition: background 1s ease;
  animation: hx-drift 18s ease-in-out infinite alternate;
}
.hx-orb-a { width: 520px; height: 520px; top: -160px; left: -140px; background: color-mix(in srgb, var(--hx-a1) 55%, transparent); }
.hx-orb-b { width: 460px; height: 460px; top: 8%; right: -160px; background: color-mix(in srgb, var(--hx-a2) 45%, transparent); animation-delay: -6s; }
.hx-orb-c { width: 320px; height: 320px; bottom: -80px; left: 38%; background: color-mix(in srgb, var(--hx-yellow) 35%, transparent); animation-delay: -12s; }
[data-theme="dark"] .hx-orb { opacity: 0.3; }
@keyframes hx-drift {
  to { transform: translate(40px, 30px) scale(1.08); }
}

.hx-content { position: relative; z-index: 3; }

/* ---------- Eyebrow ---------- */
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass);
  box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(12px);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.hx-wow {
  flex-shrink: 0;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--hx-yellow-2), var(--hx-yellow));
  color: var(--hx-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  animation: hx-wobble 2.8s ease-in-out infinite;
}
@keyframes hx-wobble {
  0%, 80%, 100% { transform: rotate(0) scale(1); }
  85% { transform: rotate(-6deg) scale(1.08); }
  90% { transform: rotate(5deg) scale(1.08); }
  95% { transform: rotate(-3deg) scale(1.04); }
}
.hx-eyebrow-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Title with scene-synced rotating line ---------- */
/* Single-line headline: sized so the longest variant ("Your POS, on every
   table.") still fits the column at every width */
.hx-title {
  font-size: clamp(1.45rem, 6.1vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  white-space: nowrap;
  margin-bottom: 1rem;
}
@media (min-width: 992px) {
  .hx-title { font-size: clamp(1.7rem, 2.75vw, 3rem); }
}
/* Rotating words sit on the same line as "Your POS," (all variants stacked
   in one grid cell, so the line width never jumps between words) */
.hx-rot {
  display: inline-grid;
}
.hx-rot-item {
  grid-area: 1 / 1;
  justify-self: start;
  text-align: left;
  background: linear-gradient(120deg, var(--hx-a1), var(--hx-a2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(-0.4em);
  filter: blur(6px);
  /* Leaving line fades out fast; the incoming one waits for it */
  transition: opacity 0.25s ease, transform 0.3s ease, filter 0.25s;
  padding-bottom: 0.08em;
}
.hx-rot-item.is-active {
  opacity: 1;
  transform: none;
  filter: none;
  animation: hx-rot-in 0.6s var(--ease-out-quart) 0.2s both;
}
@keyframes hx-rot-in {
  from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.hx-lead {
  font-size: clamp(0.95rem, 1.9vh, 1.12rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 0;
}
.hx-lead strong { color: var(--text-primary); font-weight: 700; }

/* ---------- "Use it on your own domain" card ---------- */
.hx-domaincard {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 540px;
  margin-top: 1.1rem;
  padding: 0.6rem 0.75rem 0.6rem 0.6rem;
  border-radius: 16px;
  background:
    linear-gradient(120deg, color-mix(in srgb, #10b981 10%, var(--bg-surface)), color-mix(in srgb, #06b6d4 10%, var(--bg-surface))) padding-box,
    linear-gradient(120deg, #10b981, #06b6d4, #2f5bff) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 14px 30px -18px rgba(16, 185, 129, 0.7);
}
/* light sweep across the card */
.hx-domaincard::after {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 35%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: hx-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.hx-dc-ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px -8px rgba(6, 182, 212, 0.8);
}
.hx-dc-ic i { animation: hx-spin-globe 6s linear infinite; }
@keyframes hx-spin-globe { to { transform: rotateY(360deg); } }
.hx-dc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; text-align: left; }
.hx-dc-body strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.hx-dc-url {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-dc-url i { color: var(--color-success); font-size: 0.7rem; margin-right: 0.2rem; }
.hx-dc-url b {
  display: inline-block;
  color: #0e9f6e;
  font-weight: 700;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
[data-theme="dark"] .hx-dc-url b { color: #34d399; }
.hx-dc-url b.is-out { opacity: 0; transform: translateY(-6px); }
.hx-dc-ok {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-success) 16%, transparent);
  color: var(--color-success);
  font-size: 0.74rem;
  font-weight: 800;
}
.hx-dc-ok i { animation: hx-blink 1.6s ease-in-out infinite; }

/* ---------- Public store URL claimer ---------- */
.hx-urlwrap {
  max-width: 540px;
  margin-top: 1.25rem;
}
.hx-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 16px;
  text-decoration: none;
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(120deg, var(--hx-yellow), var(--hx-a1), var(--hx-a2)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--hx-a1) 70%, transparent);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.hx-url:hover { transform: translateY(-2px); }
.hx-url-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
}
.hx-url-lock { color: var(--color-success); font-size: 0.75rem; margin-right: 0.5rem; }
/* Scene tag (POS / QR / Store) — takes the active scene's accent */
.hx-url-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.6rem;
  padding: 0.3rem 0.6rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--hx-a1), var(--hx-a2));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: hx-tag-pop 0.45s var(--ease-out-quart);
}
.hx[data-scene="qr"] .hx-url-tag { color: var(--hx-ink); }
.hx-url-tag i { font-size: 0.7rem; }
@keyframes hx-tag-pop { from { transform: scale(0.7); opacity: 0; } }
/* Custom-domain state: hide "stores.ziaf.net/" and recolour the tag green */
.hx-url.is-domain .hx-url-base { display: none; }
.hx-url.is-domain .hx-url-tag { background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; }
.hx-url.is-domain .hx-url-slug::before { content: none; }
.hx-domain-badge {
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-success);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
}
.hx-winurl-store { display: inline-grid; }
.hx-checks .hx-domain i { color: #06b6d4; }
.hx-url-hint {
  margin: 0.45rem 0 0 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hx-url-hint.is-in { opacity: 1; transform: none; }
.hx-url-hint::before {
  content: "\f0eb"; /* lightbulb */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.4rem;
  color: var(--hx-yellow-deep);
}
.hx-url-base { color: var(--text-muted); }
.hx-url-slug { color: var(--text-primary); font-weight: 700; }
.hx-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--hx-yellow-deep);
  animation: blink-caret 0.9s step-end infinite;
}
.hx-url-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  background: var(--hx-ink);
  color: var(--hx-yellow);
  font-size: 0.8rem;
  font-weight: 700;
}
[data-theme="dark"] .hx-url-btn { background: var(--hx-yellow); color: var(--hx-ink); }

/* ---------- CTAs ---------- */
.hx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.hx-btn-primary,
.hx-btn-ghost {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.hx-btn-primary {
  padding: 0.45rem 0.45rem 0.45rem 1.5rem;
  background: linear-gradient(135deg, var(--hx-yellow-2) 0%, var(--hx-yellow) 55%, var(--hx-yellow-deep) 100%);
  color: var(--hx-ink) !important;
  border: 0;
  box-shadow: 0 14px 30px -10px rgba(245, 163, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hx-btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: hx-shine 3.2s ease-in-out infinite;
}
.hx-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(245, 163, 0, 0.75); }
.hx-btn-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hx-ink);
  color: var(--hx-yellow);
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}
.hx-btn-primary:hover .hx-btn-icon { transform: translateX(3px) rotate(-30deg); }
.hx-btn-ghost {
  padding: 0.45rem 1.3rem 0.45rem 0.45rem;
  background: var(--bg-glass-strong);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}
.hx-btn-ghost:hover { transform: translateY(-3px); border-color: var(--hx-a1); }
.hx-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding-left: 2px;
  background: linear-gradient(135deg, var(--hx-a1), var(--hx-a2));
  color: #fff;
  font-size: 0.72rem;
  animation: hx-pulse 2.2s infinite;
}
@keyframes hx-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes hx-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hx-a1) 45%, transparent); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Scene tabs ---------- */
.hx-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 540px;
  margin-top: 1.5rem;
}
.hx-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}
.hx-tab:hover { transform: translateY(-2px); }
.hx-tab-ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background var(--transition-base), color var(--transition-base);
}
.hx-tab-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hx-tab-txt strong { font-size: 0.85rem; color: var(--text-primary); white-space: nowrap; }
.hx-tab-txt small { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-tab.is-active {
  border-color: color-mix(in srgb, var(--hx-a1) 45%, transparent);
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--hx-a1) 80%, transparent);
}
.hx-tab.is-active .hx-tab-ic {
  background: linear-gradient(135deg, var(--hx-a1), var(--hx-a2));
  color: #fff;
}
.hx-tab-bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--hx-a1), var(--hx-a2));
}
.hx-tab.is-active .hx-tab-bar { width: 100%; }
.hx-tab.is-running .hx-tab-bar { animation: hx-tabfill var(--hx-scene-ms, 5s) linear forwards; }
@keyframes hx-tabfill { from { width: 0; } to { width: 100%; } }

.hx-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.hx-checks i { color: var(--color-success); margin-right: 0.3rem; }
/* "All-in-One" highlight — its own full-width row above the checks */
.hx-checks .hx-allin {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 540px;
  margin-bottom: 0.25rem;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(90deg, #2f5bff, #ffc700, #ec4899) border-box;
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
}
.hx-checks .hx-allin b { color: var(--text-primary); font-weight: 800; }
.hx-allin-ic {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffdd3c, #f5a300);
  animation: hx-wobble 3.2s ease-in-out infinite;
}
.hx-checks .hx-allin-ic i { margin: 0; color: var(--hx-ink); font-size: 0.75rem; }

/* ==========================================================================
   Stage + scenes
   ========================================================================== */
.hx-stage {
  position: relative;
  z-index: 2;
  height: clamp(420px, 64vh, 580px);
  text-align: left; /* mockups ignore the mobile hero's centred text */
}
.hx-sync {
  position: absolute;
  top: -3.1rem; /* sits clearly above the mockups instead of touching them */
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-success);
  white-space: nowrap;
}
.hx-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-out-quart), transform 0.7s var(--ease-out-quart), filter 0.6s, visibility 0.6s;
  pointer-events: none;
}
.hx-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  pointer-events: auto;
}
/* Floating parts slide in a beat after their scene */
.hx-scene .hx-float,
.hx-scene .hx-qrcard,
.hx-scene .hx-code {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.25s, transform 0.6s var(--ease-out-quart) 0.25s;
}
.hx-scene.is-active .hx-float,
.hx-scene.is-active .hx-qrcard,
.hx-scene.is-active .hx-code {
  opacity: 1;
  transform: none;
}

/* ---- Shared browser window ---- */
.hx-window {
  position: absolute;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 50px 100px -40px rgba(15, 23, 42, 0.5), 0 0 0 8px color-mix(in srgb, var(--bg-surface) 55%, transparent);
}
.hx-winbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-color);
}
.hx-winbar > span:not(.hx-winurl) { width: 10px; height: 10px; border-radius: 50%; }
.hx-winbar > span:nth-child(1) { background: #ff5f57; }
.hx-winbar > span:nth-child(2) { background: #febc2e; }
.hx-winbar > span:nth-child(3) { background: #28c840; }
.hx-winurl {
  margin-left: 0.7rem;
  padding: 0.22rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-winurl i { color: var(--color-success); font-size: 0.6rem; margin-right: 0.25rem; }
.hx-winurl b { color: var(--text-primary); }

/* ---- Floating info cards ---- */
.hx-float {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.45);
}
.hx-float > span:not(.hx-float-ic) { display: flex; flex-direction: column; line-height: 1.2; }
.hx-float small { font-size: 0.7rem; color: var(--text-muted); }
.hx-float strong { font-size: 0.95rem; color: var(--text-primary); }
.hx-float-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.hx-up { font-style: normal; font-size: 0.68rem; font-weight: 700; color: var(--color-success); }

/* ---- Scene 1: POS ---- */
.hx-scene-pos .hx-window { top: 6%; left: 4%; right: 0; }
/* HTML-built POS checkout (always dark, like the real ZIAF Expert Checkout) */
.hx-pos {
  --pos-bg: #0b1024;
  --pos-panel: #121a36;
  --pos-tile: #182246;
  --pos-line: rgba(255, 255, 255, 0.08);
  --pos-text: #e6ebff;
  --pos-muted: #8b95bf;
  height: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.55rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 91, 255, 0.25), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.2), transparent 45%),
    var(--pos-bg);
  color: var(--pos-text);
  font-size: 0.62rem;
  line-height: 1.25;
  overflow: hidden;
}
.hx-pos-top { display: flex; gap: 0.35rem; flex-wrap: nowrap; overflow: hidden; }
.hx-pos-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pos-line);
  color: var(--pos-muted);
  font-weight: 600;
  white-space: nowrap;
}
.hx-pos-off { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }
.hx-pos-dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 6px #fbbf24; animation: hx-blink 1.4s ease-in-out infinite; }
.hx-pos-orders { margin-left: auto; color: #9db4ff; }
.hx-pos-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr); /* fit the window height instead of growing past it */
  gap: 0.5rem;
}
.hx-pos-menu { min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.hx-pos-search {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pos-line);
  color: var(--pos-muted);
}
.hx-pos-search i { margin-right: 0.3rem; }
.hx-pos-cats { display: flex; gap: 0.3rem; white-space: nowrap; overflow: hidden; }
.hx-pos-cats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--pos-line);
  color: var(--pos-muted);
  font-weight: 600;
}
.hx-pos-cats span.on { background: rgba(255, 255, 255, 0.12); color: var(--pos-text); }
.hx-veg, .hx-nonveg { width: 6px; height: 6px; border-radius: 1px; display: inline-block; }
.hx-veg { background: #22c55e; }
.hx-nonveg { background: #ef4444; }
.hx-pos-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.35rem;
}
.hx-pos-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 9px;
  background: var(--pos-tile);
  border: 1px solid var(--pos-line);
  text-align: center;
}
.hx-pos-item b { font-weight: 700; color: var(--pos-text); font-size: 0.62rem; }
.hx-pos-item em {
  font-style: normal;
  font-weight: 800;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #6d5cf6);
  color: #fff;
  font-size: 0.6rem;
}
/* the tile that gets "tapped" when the scene opens */
.hx-scene.is-active .hx-pos-item.is-tap { animation: hx-pos-tap 0.5s ease 1.1s; }
@keyframes hx-pos-tap {
  40% { transform: scale(0.92); box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 199, 0, 0); }
}

.hx-pos-co {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--pos-panel);
  border: 1px solid var(--pos-line);
}
.hx-pos-co-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.58rem;
  color: #c7d2fe;
}
.hx-pos-co-head span {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 180, 255, 0.4);
  color: #9db4ff;
  font-size: 0.52rem;
}
.hx-pos-types, .hx-pos-pay { display: flex; gap: 0.25rem; }
.hx-pos-types span, .hx-pos-pay span {
  flex: 1;
  text-align: center;
  padding: 0.25rem 0.2rem;
  border-radius: 6px;
  border: 1px solid var(--pos-line);
  color: var(--pos-muted);
  font-weight: 700;
  white-space: nowrap;
}
.hx-pos-types span.on { background: #2f5bff; border-color: #2f5bff; color: #fff; }
.hx-pos-pay span.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.hx-pos-pay i { margin-right: 0.15rem; }
.hx-pos-lines { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.2rem; overflow: hidden; }
.hx-pos-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.hx-pos-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-pos-line i { font-style: normal; color: var(--pos-muted); }
.hx-pos-line b { font-weight: 700; }
/* new line slides in right when the tapped tile lands in the cart */
.hx-pos-new { opacity: 0; }
.hx-scene.is-active .hx-pos-new { animation: hx-pos-line-in 0.45s var(--ease-out-quart) 1.3s forwards; }
@keyframes hx-pos-line-in {
  from { opacity: 0; transform: translateX(10px); background: rgba(255, 199, 0, 0.25); }
  to   { opacity: 1; transform: none; background: rgba(255, 199, 0, 0.1); }
}
.hx-pos-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(47, 91, 255, 0.25), rgba(139, 92, 246, 0.25));
}
.hx-pos-total small { color: #c7d2fe; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.hx-pos-total strong { font-size: 0.95rem; font-weight: 800; color: #fff; white-space: nowrap; }
.hx-pos-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.hx-pos-btns span {
  padding: 0.35rem 0.2rem;
  border-radius: 7px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.hx-pos-btns .kot { background: #4f46e5; }
.hx-pos-btns .done { background: #16a34a; }
@media (max-width: 575.98px) {
  .hx-pos-orders { display: none; }
  .hx-pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-pos-grid .hx-pos-item:nth-child(n+7) { display: none; }
  .hx-pos-pay span:nth-child(3), .hx-pos-types span:nth-child(3) { display: none; }
  .hx-pos-btns i, .hx-pos-pay i { display: none; }
  .hx-pos-btns span { font-size: 0.54rem; padding-inline: 0.1rem; }
  .hx-pos-total small { display: none; }
}
/* POS window leaves room at the bottom so the floating cards don't cover
   the checkout buttons */
.hx-scene-pos .hx-window { bottom: 19%; }
.hx-float-sales  { left: -2%; bottom: 0; animation: hx-bob 5s ease-in-out infinite; }
.hx-float-branch { right: -3%; top: 0; animation: hx-bob 5s ease-in-out infinite -2.5s; }
@keyframes hx-bob { 50% { translate: 0 -8px; } }

/* ---- Scene 2: QR Menu ---- */
.hx-qrcard {
  position: absolute;
  z-index: 4;
  left: 2%;
  top: 22%;
  width: 46%;
  max-width: 230px;
  padding: 1.1rem;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.5);
  text-align: center;
  rotate: -4deg;
}
.hx-qrcard strong { display: block; margin-top: 0.7rem; font-size: 1rem; color: var(--text-primary); }
.hx-qrcard small { font-size: 0.72rem; color: var(--text-muted); }
.hx-qrbox {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: #14110a;
  font-size: clamp(5rem, 9vw, 7.5rem);
  overflow: hidden;
}
.hx-scanline {
  position: absolute;
  left: 8%; right: 8%;
  top: 10%;
  height: 3px;
  border-radius: 3px;
  background: var(--hx-yellow);
  box-shadow: 0 0 14px 4px rgba(255, 199, 0, 0.75);
  animation: hx-scan 1.8s ease-in-out infinite alternate;
}
@keyframes hx-scan { to { top: 88%; } }
.hx-corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--hx-yellow-deep); }
.hx-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.hx-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.hx-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.hx-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.hx-phone {
  position: absolute;
  z-index: 3;
  right: 6%;
  top: 2%;
  bottom: 17%; /* leaves room for the "QR Menu · For every outlet" banner below */
  aspect-ratio: 9 / 18.5;
  max-width: 58%;
  padding: 10px;
  border-radius: 38px;
  background: #0f1220;
  box-shadow: 0 50px 90px -35px rgba(15, 23, 42, 0.6), inset 0 0 0 2px #2a2f45;
}
.hx-notch {
  position: absolute;
  top: 16px; left: 50%;
  width: 70px; height: 18px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #0f1220;
  z-index: 2;
}
.hx-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--bg-surface);
  padding: 2.4rem 0.8rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hx-phone-url {
  align-self: center;
  max-width: 100%;
  margin-top: -0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-alt);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-phone-url i { color: var(--color-success); font-size: 0.5rem; margin-right: 0.2rem; }
.hx-menu-head { display: flex; align-items: center; gap: 0.55rem; }
.hx-menu-head > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.hx-menu-head strong { font-size: 0.85rem; color: var(--text-primary); }
.hx-menu-head small { font-size: 0.65rem; color: var(--text-muted); }
.hx-logo {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
}
.hx-chips { display: flex; gap: 0.35rem; }
.hx-chips span {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-alt);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hx-chips span.on { background: var(--hx-yellow); color: var(--hx-ink); }
.hx-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: var(--bg-surface-alt);
}
.hx-item-ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.hx-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.hx-item-txt strong { font-size: 0.72rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-item-txt small { font-size: 0.65rem; color: var(--text-muted); }
.hx-add {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--hx-ink);
  color: var(--hx-yellow);
  font-size: 0.6rem;
}
.hx-item-extra { display: none; }
.hx-add-pulse, .hx-add-target { position: relative; }
.hx-cart {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 14px;
  background: var(--hx-ink);
  color: #fff;
  font-size: 0.68rem;
}
.hx-cart strong { color: var(--hx-yellow); }
.hx-cart-btn {
  padding: 0.45rem;
  border-radius: 10px;
  background: var(--hx-yellow);
  color: var(--hx-ink);
  font-weight: 800;
  text-align: center;
}

/* ---- Scene 3: Online Store ---- */
.hx-store { top: 4%; left: 6%; right: 0; bottom: 21%; }
.hx-store-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: calc(100% - 38px);
}
.hx-store-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, #8b5cf6 18%, transparent), color-mix(in srgb, #ec4899 14%, transparent));
}
.hx-store-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.hx-store-banner strong { font-size: 1rem; color: var(--text-primary); }
.hx-store-banner small { font-size: 0.7rem; color: var(--text-muted); }
.hx-logo-lg { width: 42px; height: 42px; border-radius: 12px; font-size: 0.85rem; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.hx-open {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 25%, transparent);
}
.hx-store-cart {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
}
.hx-store-cart b {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: #ec4899;
  color: #fff;
  font-size: 0.6rem;
  animation: hx-badge 3s ease-in-out infinite;
}
@keyframes hx-badge { 0%, 85%, 100% { transform: scale(1); } 90% { transform: scale(1.35); } }
.hx-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.hx-product {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem;
  border-radius: 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-glass);
}
.hx-product-img {
  aspect-ratio: 16 / 10;
  margin-bottom: 0.35rem;
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.hx-product strong { font-size: 0.72rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-product small { font-size: 0.66rem; color: var(--text-muted); }
.hx-product-add {
  margin-top: 0.3rem;
  padding: 0.25rem;
  border-radius: 7px;
  background: var(--text-primary);
  color: var(--bg-surface);
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}
.hx-checkout {
  margin-top: auto;
  padding: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(120deg, #8b5cf6, #ec4899);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

/* Code-style config card */
.hx-code {
  position: absolute;
  z-index: 5;
  left: -3%;
  bottom: 0;
  width: min(300px, 52%);
  border-radius: 14px;
  overflow: hidden;
  background: #0d1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}
.hx-code-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #151a30;
}
.hx-code-bar span { width: 8px; height: 8px; border-radius: 50%; background: #3a4060; }
.hx-code-bar em { margin-left: auto; font-style: normal; font-size: 0.65rem; color: #7c86a3; font-family: ui-monospace, Consolas, monospace; }
.hx-code pre {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: #c9d1e8;
  white-space: pre;
  overflow: hidden;
}
.hx-code .k { color: #7ea0ff; }
.hx-code .s { color: #ffd43b; }
.hx-code .s b { font-weight: 700; color: #ffe680; }
.hx-code .b { color: #34d399; }
.hx-code-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: hx-blink 1.2s ease-in-out infinite;
}
@keyframes hx-blink { 50% { opacity: 0.3; } }

/* ---- Live order toast ---- */
.hx-toast {
  position: absolute;
  z-index: 9;
  right: -2%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 300px;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.5);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out-quart);
}
.hx-toast.is-in { opacity: 1; transform: none; }
/* Keep the toast clear of each scene's key button */
.hx[data-scene="qr"] .hx-toast { right: auto; left: 0; bottom: auto; top: 4%; }

/* ==========================================================================
   Scene micro-interactions — replay each time a scene becomes active
   ========================================================================== */
.hx-stage { transition: transform 0.25s ease-out; }

/* Value swaps (cart 2→3 items, badge 3→4, Add→Added) */
.hx-swap { display: inline-grid; }
.hx-swap > .a, .hx-swap > .b { grid-area: 1 / 1; }
.hx-swap > .b { opacity: 0; }
.hx-scene.is-active .hx-swap > .a { animation: hx-swap-out 0.3s var(--d, 1.35s) forwards; }
.hx-scene.is-active .hx-swap > .b { animation: hx-swap-in 0.35s var(--d, 1.35s) forwards; }
@keyframes hx-swap-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes hx-swap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hx-cart > .hx-swap { display: grid; }

/* Hand cursor that glides in and taps the target */
.hx-tap {
  position: absolute;
  right: -16px;
  bottom: -20px;
  z-index: 4;
  font-size: 1.15rem;
  color: #111827;
  filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  opacity: 0;
  pointer-events: none;
}
.hx-tap i { color: inherit; }
.hx-scene.is-active .hx-tap { animation: hx-tap-move 1.5s ease 0.2s both; }
@keyframes hx-tap-move {
  0%   { opacity: 0; transform: translate(46px, 40px); }
  25%  { opacity: 1; }
  65%  { transform: translate(0, 0) scale(1); }
  72%  { transform: translate(0, 0) scale(0.82); }
  80%  { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0; }
}
/* The tapped button "presses" right when the cursor lands */
.hx-scene.is-active .hx-add-pulse,
.hx-scene.is-active .hx-add-target { animation: hx-press 0.4s ease 1.15s; }
@keyframes hx-press {
  40% { transform: scale(0.86); }
  100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 199, 0, 0); }
}
.hx-add-target .b i { font-size: 0.55rem; }
.hx-product-add.hx-swap { display: grid; justify-items: center; }
.hx-scene.is-active .hx-add-target { background: var(--color-success); transition: background 0.3s ease 1.35s; }

/* QR card: "Scanned" confirmation */
.hx-qr-ok {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translate(-50%, 8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  box-shadow: 0 8px 18px -6px rgba(16, 185, 129, 0.7);
}
.hx-scene.is-active .hx-qr-ok { animation: hx-ok 0.45s var(--ease-out-quart) 0.9s forwards; }
@keyframes hx-ok { to { opacity: 1; transform: translate(-50%, 0); } }

/* POS: sales sparkline draws itself */
.hx-float-sales { align-items: center; }
.hx-spark {
  width: 74px;
  height: 28px;
  margin-left: 0.25rem;
  fill: none;
  stroke: var(--color-success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.hx-scene.is-active .hx-spark { animation: hx-draw 1.1s ease 0.5s forwards; }
@keyframes hx-draw { to { stroke-dashoffset: 0; } }

/* Store: WhatsApp share card */
.hx-float-share { right: -3%; top: 30%; }

/* Live sync pill: ping + floating "+1 order" */
.hx-sync.is-ping { animation: hx-ping 0.6s ease; }
@keyframes hx-ping { 40% { transform: translateX(-50%) scale(1.08); } }
.hx-plus {
  position: absolute;
  right: -0.5rem;
  top: -0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  pointer-events: none;
  animation: hx-plus-up 1.2s ease forwards;
}
@keyframes hx-plus-up {
  0% { opacity: 0; transform: translateY(6px); }
  20% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-22px); }
}

/* ---- "QR Menu · For every outlet" banner (QR scene) ---- */
.hx-qrbanner {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 0;
  width: min(470px, 96%);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-primary);
  background:
    linear-gradient(var(--bg-glass-strong), var(--bg-glass-strong)) padding-box,
    linear-gradient(120deg, var(--hx-yellow), color-mix(in srgb, var(--hx-yellow) 15%, transparent) 40%, color-mix(in srgb, #2f5bff 25%, transparent) 70%, #2f5bff) border-box;
  border: 1.5px solid transparent;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(245, 163, 0, 0.6);
  transition: box-shadow var(--transition-fast);
}
.hx-qrbanner:hover { color: var(--text-primary); box-shadow: 0 22px 44px -16px rgba(245, 163, 0, 0.8); }
.hx-scene .hx-qrbanner { opacity: 0; translate: 0 16px; transition: opacity 0.5s ease 0.35s, translate 0.6s var(--ease-out-quart) 0.35s; }
.hx-scene.is-active .hx-qrbanner { opacity: 1; translate: 0 0; }
.hx-qrbanner-code {
  position: relative;
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  overflow: hidden;
  background: #14110a;
  color: var(--hx-yellow);
  font-size: 1.7rem;
  box-shadow: inset 0 0 0 1px rgba(255, 199, 0, 0.3);
}
.hx-qrbanner-scan {
  position: absolute;
  left: 6px; right: 6px; top: 8px;
  height: 2px;
  border-radius: 2px;
  background: #ffe066;
  box-shadow: 0 0 10px 3px rgba(255, 199, 0, 0.7);
  animation: hx-scan-mini 2s ease-in-out infinite alternate;
}
@keyframes hx-scan-mini { to { top: calc(100% - 10px); } }
.hx-qrbanner-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.hx-qrbanner-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
}
.hx-qrbanner-tag {
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--hx-yellow-2), var(--hx-yellow));
  color: var(--hx-ink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hx-qrbanner-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-qrbanner-sub i { font-size: 0.55rem; margin: 0 0.15rem; color: var(--hx-yellow-deep); vertical-align: middle; }
.hx-qrbanner-outlets { display: flex; flex-shrink: 0; }
.hx-qrbanner-outlets span {
  width: 30px; height: 30px;
  margin-left: -8px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem;
  color: #fff;
  border: 2px solid var(--bg-surface);
  transition: transform var(--transition-fast);
}
.hx-qrbanner-outlets span:nth-child(1) { background: #ff6b3d; margin-left: 0; }
.hx-qrbanner-outlets span:nth-child(2) { background: #8b5cf6; }
.hx-qrbanner-outlets span:nth-child(3) { background: #ec4899; }
.hx-qrbanner-outlets span:nth-child(4) { background: #06b6d4; }
.hx-qrbanner:hover .hx-qrbanner-outlets span { transform: translateY(-3px); }
.hx-qrbanner:hover .hx-qrbanner-outlets span:nth-child(2) { transition-delay: 0.04s; }
.hx-qrbanner:hover .hx-qrbanner-outlets span:nth-child(3) { transition-delay: 0.08s; }
.hx-qrbanner:hover .hx-qrbanner-outlets span:nth-child(4) { transition-delay: 0.12s; }
.hx-qrbanner-go { flex-shrink: 0; font-size: 0.75rem; color: var(--text-muted); transition: transform var(--transition-fast), color var(--transition-fast); }
.hx-qrbanner:hover .hx-qrbanner-go { color: var(--hx-yellow-deep); transform: translateX(3px); }
.hx[data-scene="store"] .hx-toast { bottom: 0; }
.hx-toast-ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--hx-a1), var(--hx-a2));
  color: #fff;
  font-size: 0.85rem;
}
.hx-toast-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.hx-toast-txt small { font-size: 0.64rem; font-weight: 700; color: var(--color-success); text-transform: uppercase; letter-spacing: 0.04em; }
.hx-toast-txt strong { font-size: 0.76rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-toast-amt { flex-shrink: 0; font-size: 0.78rem; font-weight: 800; color: var(--text-primary); }

/* ==========================================================================
   Fit to screen (desktop) + responsive
   ========================================================================== */
@media (min-width: 992px) and (min-height: 600px) {
  .hx {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--navbar-height) + 1rem);
    padding-bottom: clamp(2rem, 5vh, 4rem);
  }
  .hx > .container-xl { width: 100%; }
  .hx-eyebrow { margin-bottom: clamp(0.7rem, 2vh, 1.25rem); }
  .hx-domaincard { margin-top: clamp(0.7rem, 1.8vh, 1.1rem); }
  .hx-urlwrap { margin-top: clamp(0.8rem, 2vh, 1.25rem); }
  .hx-cta  { margin-top: clamp(0.8rem, 2vh, 1.25rem); }
  .hx-tabs { margin-top: clamp(0.9rem, 2.4vh, 1.5rem); }
}
@media (min-width: 992px) and (max-height: 820px) {
  /* Short screens: keep the All-in-One row, drop the small checks */
  .hx-checks li:not(.hx-allin) { display: none; }
}

@media (max-width: 991.98px) {
  .hx { padding-top: calc(var(--navbar-height) + 2rem); }
  .hx-lead, .hx-urlwrap, .hx-tabs, .hx-domaincard { margin-inline: auto; }
  .hx-url-hint { margin-left: 0; }
  .hx-cta, .hx-checks { justify-content: center; }
  .hx-checks .hx-allin { justify-content: center; margin-inline: auto; }
  .hx-stage { margin-top: 1.5rem; }
  .hx-sync { top: -2.4rem; }
  .hx-stage { height: 480px; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 575.98px) {
  .hx-eyebrow-text { font-size: 0.76rem; }
  .hx-cta { flex-direction: column; align-items: stretch; }
  .hx-btn-primary { justify-content: space-between; }
  .hx-btn-ghost { justify-content: center; }
  .hx-url-btn { padding: 0.55rem 0.7rem; font-size: 0.72rem; }
  .hx-url-base, .hx-url-lock { display: none; }
  .hx-url-tag b { display: none; }
  .hx-dc-ok { font-size: 0; gap: 0; padding: 0.4rem; }
  .hx-dc-ok i { font-size: 0.85rem; }
  .hx-dc-body strong { font-size: 0.95rem; }
  .hx-url-tag { margin-right: 0.35rem; }
  .hx-url-slug::before { content: "…/"; color: var(--text-muted); font-weight: 400; }
  .hx-tabs { gap: 0.4rem; }
  .hx-tab { flex-direction: column; text-align: center; padding: 0.6rem 0.3rem; gap: 0.35rem; }
  .hx-tab-txt small { display: none; }
  .hx-stage { height: 420px; }
  .hx-float-branch, .hx-code { display: none; }
  .hx-qrcard { width: 44%; padding: 0.7rem; }
  .hx-phone { right: 2%; }
  /* Shorter phone on mobile: show 2 menu items so the cart stays visible */
  .hx-chips, .hx-phone-screen > .hx-item:nth-child(6) { display: none; }
  .hx-qrbanner { gap: 0.6rem; }
  .hx-qrbanner-outlets { display: none; }
  .hx-qrbanner-title { font-size: 0.88rem; }
  .hx-float-share { top: auto; bottom: 10%; right: 0; }
  .hx-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-product:nth-child(3), .hx-checkout { display: none; }
  .hx-product-img { aspect-ratio: 2 / 1; }
  .hx-store { bottom: 8%; }
  /* Toast sits just below the mockup on phones so it never covers it */
  .hx-stage { margin-bottom: 4.5rem; }
  .hx[data-scene] .hx-toast { top: auto; bottom: -4.25rem; right: 0; left: 0; margin-inline: auto; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-orb, .hx-wow, .hx-play, .hx-btn-primary::before, .hx-scanline,
  .hx-store-cart b, .hx-code-dot, .hx-float, .hx-qrbanner-scan, .hx-tap { animation: none; }
}

/* Darker yellow on the light page, so the QR headline stays readable */
:root:not([data-theme="dark"]) .hx[data-scene="qr"] .hx-rot-item { background-image: linear-gradient(120deg, #b45309, #d97706); }

/* The "+1 order" bubble rises from above the pill instead of covering its text */
.hx-sync .hx-plus { top: -1.5rem; }

/* Phones: shorter hero, so the mockup comes up sooner. The All-in-One row says
   what the paragraph says. The top line wraps instead of being cut off. */
@media (max-width: 575.98px) {
  .hx-lead, .hx-url-hint { display: none; }
  .hx-eyebrow { border-radius: 18px; }
  .hx-eyebrow-text { white-space: normal; line-height: 1.25; text-align: left; }
}
