/* QR Queue — light green theme.
   One stylesheet for the marketing page and the app screens so the product feels like
   one thing. No framework: the whole UI is a handful of primitives (card, chip, button,
   panel) and hand-written utilities would only duplicate that. */

:root {
  --g-25: #f6fdf9;
  --g-50: #eefaf3;
  --g-100: #ddf5e8;
  --g-200: #c2ecd7;
  --g-300: #9fe0c1;
  --g-400: #6bd0a4;
  --g-500: #37b986;
  --g-600: #17996b;
  --g-700: #0e7a54;
  --g-800: #0b5c41;
  --ink: #0a2a1e;
  --ink-soft: #33574a;
  --muted: #5b7a6e;
  --line: rgba(10, 42, 30, 0.12);
  --line-strong: rgba(10, 42, 30, 0.22);
  --white: #ffffff;
  --amber: #f0b429;
  --danger: #b3261e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 42, 30, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 42, 30, 0.12);
  --max: 72rem;
}

* { box-sizing: border-box; }

/*
  The site is light-mode only, and this line is what enforces that.

  There is no dark stylesheet anywhere — no prefers-color-scheme block, no
  color-scheme declaration. What happens on a phone with dark mode on is the
  *browser's* auto-dark: Chrome on Android and some Samsung/Edge builds apply a
  forced inversion to pages that never declare a scheme, then leave elements that
  already have an explicit background alone. The result is not a designed dark
  theme; it is a half-inverted page — dark body behind light-keeping cards, with
  text that was written for white backgrounds now sitting on charcoal. That is the
  screenshot: headings legible, everything else muddy, and the "企喺度等" gradient
  ghosting because its transparent fill was clipped against a dark canvas.

  `only light` tells the browser the page has made its choice, so auto-dark is
  skipped. `light` alone would still let the UA darken in some builds; `only` is the
  keyword that forbids it. Kept on html so it inherits to every element, including
  the form controls and scrollbars that have their own scheme.
*/
html {
  scroll-behavior: smooth;
  color-scheme: only light;
}

body {
  margin: 0;
  background: var(--g-25);
  color: var(--ink);
  font-family: "Inter", "Noto Sans TC", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Sans", "Noto Sans Thai", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--g-700); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 48rem; }

/* ---------------------------------------------------------------- header --- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 253, 249, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
  height: auto;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

/* The header lockup is a single artwork, drawn at 261×72. On the public pages it
   is displayed at exactly that size, so every stroke and the tagline land on the
   pixel grid the artwork was designed for.

   Height is fixed rather than fluid: the artwork is a composed lockup with specific
   type sizes, and letting it grow would make the tagline compete with the wordmark.
   Inner page headers override this to 48px (see .app-head below). */
.brand-logo {
  display: block;
  height: 72px;
  width: auto;
  flex: none;
}

/* Inner pages (staff board) put the lockup in a working header next to a page
   title and buttons, not in a tall marketing bar. At 72px the artwork is 261px
   wide, which on a phone takes a whole row and pushes the actions onto a second
   line — a 236px header on a 390px screen. 48px keeps the wordmark and tagline
   legible (174x48) while leaving room beside it.

   Scoped to .app-head on purpose: the public pages (home, member) use .site-head
   and keep the full 72px lockup, because there the logo is the point. */
.app-head .brand-logo {
  height: 48px;
}

/* Screen-reader-only text. Uses the standard clip technique rather than
   display:none, so the text stays in the accessibility tree. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover { color: var(--g-700); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.5rem; }

/* language switcher */
.lang {
  position: relative;
  flex: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.lang-btn:hover { border-color: var(--g-500); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 11rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.3rem;
  display: none;
  z-index: 90;
}

.lang-menu.is-open { display: block; }

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}

.lang-menu button:hover { background: var(--g-50); }
.lang-menu button[aria-current="true"] { background: var(--g-100); font-weight: 700; }

/* ---------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--g-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 153, 107, 0.28);
}

.btn-primary:hover { background: var(--g-700); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover { border-color: var(--g-500); background: #fff; }

.btn-soft {
  background: var(--g-100);
  color: var(--g-800);
  border-color: var(--g-200);
}

.btn-soft:hover { background: var(--g-200); }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 5.5rem 0 5rem;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Old unused hero photo removed — homepage no longer uses .hero-media. */
  background-image: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 46, 32, 0.94) 0%, rgba(9, 61, 42, 0.86) 42%, rgba(12, 82, 57, 0.5) 72%, rgba(12, 82, 57, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 40, 28, 0.35) 0%, transparent 35%);
}

.hero-inner { max-width: 44rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--g-300);
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero h1 em { font-style: normal; color: var(--g-300); }

.hero-sub {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; align-items: center; }

.hero-note { margin: 1rem 0 0; font-size: 0.79rem; color: rgba(255, 255, 255, 0.6); }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 2.6rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof div { min-width: 7rem; }
.hero-proof strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-proof span { font-size: 0.76rem; color: rgba(255, 255, 255, 0.62); }

/* --------------------------------------------------------------- sections --- */

section { padding: 4.5rem 0; }

.section-head { max-width: 44rem; }
.section-head h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.97rem; }

.alt { background: var(--g-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--g-800); color: #fff; }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: rgba(255, 255, 255, 0.66); }
.dark .eyebrow { color: var(--g-300); }

/* cards */
.grid { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0.55rem 0 0; font-size: 0.89rem; color: var(--muted); }

.card-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g-600);
  margin: 0 0 0.55rem;
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  background: var(--g-100);
  color: var(--g-700);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.dark .card h3 { color: #fff; }
.dark .card p { color: rgba(255, 255, 255, 0.66); }

.dark .card-icon { background: rgba(255, 255, 255, 0.1); color: var(--g-300); }

/* pain list */
.pain-list { display: grid; gap: 0.9rem; margin-top: 2.2rem; }
.pain {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}

.pain-mark {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #fdecea;
  color: var(--danger);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.pain h3 { margin: 0; font-size: 0.96rem; font-weight: 700; }
.pain p { margin: 0.3rem 0 0; font-size: 0.87rem; color: var(--muted); }

/* steps */
.steps { display: grid; gap: 1rem; margin-top: 2.4rem; counter-reset: step; }
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.step-num {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--g-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
}

.step h3 { margin: 0; font-size: 0.98rem; font-weight: 700; }
.step p { margin: 0.3rem 0 0; font-size: 0.87rem; color: var(--muted); }

/* stats */
.stats { display: grid; gap: 1.4rem; margin-top: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stat { padding-left: 1rem; border-left: 3px solid var(--g-400); }
.stat strong { display: block; font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); font-weight: 600; }
.stat small { display: block; margin-top: 0.2rem; font-size: 0.74rem; color: rgba(255, 255, 255, 0.45); }

/* industries */
.ind {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.ind-who {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-600);
  margin: 0 0 0.45rem;
}

.ind h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.ind p { margin: 0.55rem 0 0; font-size: 0.86rem; color: var(--muted); }
.ind-quote {
  margin: 0.8rem 0 0;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--g-400);
  background: var(--g-50);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* pricing */
/* `stretch`, not `start`: every card in a row must be the same height so the CTAs
   line up on one baseline. With `start` each card stopped at its own content, and
   a card with four bullets ended shorter than one with five. `.tier` is a column
   flex with `ul { flex: 1 }`, which pushes the button to the bottom once the cards
   share a height. */
.price-grid { display: grid; gap: 1rem; margin-top: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: stretch; }
.tier {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.tier-hot {
  border-color: var(--g-500);
  box-shadow: 0 12px 34px rgba(23, 153, 107, 0.16);
}

.tier-badge {
  position: absolute;
  top: -0.65rem;
  left: 1.3rem;
  background: var(--g-600);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.tier h3 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.tier-price { margin: 0.5rem 0 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.tier-price small { display: block; margin-top: 0.1rem; font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
/* Card internals: the bullet list absorbs the leftover space so the CTA sits on a
   common baseline across the row. `align-items: stretch` on the grid already makes
   the cards equal height on a wide screen; this is what puts the buttons at the
   same spot inside them.

   `min-height` on the list, not on the card: a card with three bullets and one with
   four must reserve the same list height, otherwise the shorter list floats its
   button up. Sized for four bullets at the current font size. */
.tier ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.83rem;
  flex: 1;
  min-height: 7.2rem;
}
.tier li { display: flex; gap: 0.45rem; margin-top: 0.42rem; color: var(--muted); }
.tier li::before { content: "✓"; color: var(--g-600); font-weight: 800; flex: none; }
.tier .btn { margin-top: 1.2rem; width: 100%; }

.price-note { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--muted); }

/* faq */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--g-600); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0.65rem 0 0; font-size: 0.88rem; color: var(--muted); max-width: 46rem; }

/* forms */
.field { margin-top: 0.85rem; }
.field label { display: block; font-size: 0.76rem; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.62rem 0.8rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--g-500);
  box-shadow: 0 0 0 3px rgba(55, 185, 134, 0.18);
}

.field-hint { margin: 0.3rem 0 0; font-size: 0.73rem; color: var(--muted); }
.field-row { display: grid; gap: 0 0.85rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 32rem) { .field-row { grid-template-columns: 1fr; } }

.plan-pick { display: grid; gap: 0.55rem; margin: 0 0 1.2rem; padding: 0; border: 0; }
.plan-pick legend { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0.5rem; }
.plan-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  background: var(--white);
}
.plan-opt:hover { border-color: var(--g-500); }
.plan-opt.is-on { border-color: var(--g-600); background: var(--g-50); box-shadow: 0 0 0 3px rgba(55, 185, 134, 0.14); }
.plan-opt input { accent-color: var(--g-600); width: 1rem; height: 1rem; flex: none; }
.plan-opt-name { flex: 1; font-weight: 700; font-size: 0.88rem; }
.plan-opt-note { display: block; font-weight: 500; font-size: 0.71rem; color: var(--muted); }
.plan-opt-price { font-weight: 800; font-size: 0.85rem; }
.plan-opt-price .plan-opt-note { text-align: right; }

.form-msg { margin: 0.85rem 0 0; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.83rem; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--g-100); color: var(--g-800); border: 1px solid var(--g-300); }
.form-msg.err { background: #fdecea; color: #8c1d18; border: 1px solid #f5c6c2; }

.divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.05rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.72rem 1rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.89rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.google-btn:hover { border-color: var(--g-500); }

/* signup layout */
.signup-grid { display: grid; gap: 2rem; margin-top: 2.4rem; }
@media (min-width: 56rem) { .signup-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.aside-card h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.aside-card ol { margin: 1rem 0 0; padding-left: 1.1rem; font-size: 0.87rem; color: var(--muted); }
.aside-card li { margin-top: 0.55rem; }
.aside-card li strong { color: var(--ink); }
.aside-card .fine { margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--muted); }

/* final cta */
.final-cta { text-align: center; }
.final-cta h2 { margin: 0.5rem 0 0; font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.final-cta p { margin: 0.9rem auto 0; max-width: 32rem; color: var(--muted); }
.final-cta .hero-cta { justify-content: center; }

/* footer */
.site-foot { background: var(--g-800); color: rgba(255, 255, 255, 0.62); font-size: 0.84rem; }
.foot-grid { display: grid; gap: 2rem; padding: 3rem 0 2.2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.foot-grid h4 { margin: 0 0 0.75rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--g-300); font-weight: 800; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.foot-grid a { color: rgba(255, 255, 255, 0.66); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-brand { color: #fff; font-weight: 800; font-size: 1.05rem; margin: 0 0 0.45rem; }
.foot-brand-sub { color: rgba(255, 255, 255, 0.45); font-size: 0.78rem; margin: 0 0 0.85rem; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; font-size: 0.75rem; }

/* --------------------------------------------------------------- app shell --- */

.app-body { background: var(--g-50); }
.app-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.app-head-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.app-head h1 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.app-head .sub { font-size: 0.76rem; color: var(--muted); }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.panel-title { margin: 0 0 0.75rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.ticket {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: var(--white);
}

.ticket + .ticket { margin-top: 0.5rem; }
.ticket-no { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; min-width: 4rem; }
.ticket-meta { flex: 1; font-size: 0.76rem; color: var(--muted); }
  .ticket-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* Service colour picker: a small swatch that reads as part of the row, not a form
   control competing with the action buttons. */
.svc-color-wrap {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex: none;
  overflow: hidden;
}

.svc-color-wrap:hover { border-color: var(--g-500); }

.svc-color {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Strip the browser's default chrome so only the colour shows. */
.svc-color::-webkit-color-swatch-wrapper { padding: 0; }
.svc-color::-webkit-color-swatch { border: 0; border-radius: 6px; }
.svc-color::-moz-color-swatch { border: 0; border-radius: 6px; }

/* --------------------------------------------------- service counters list --- */

/* One counter, as a card: a coloured left rule, its prefix and name on one line, and
   the ten palette swatches underneath. Stacking the swatches below the name keeps
   every row the same height regardless of how long the service name is. */
.svc-row {
  border: 1px solid var(--line);
  border-left: 4px solid var(--g-600);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.svc-row + .svc-row { margin-top: 0.55rem; }

.svc-row-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.svc-prefix {
  font-size: 1.05rem;
  font-weight: 800;
  min-width: 1.6rem;
  letter-spacing: -0.01em;
}

.svc-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: auto;
}

.svc-palette,
.svc-new-palette {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.svc-new-palette { margin-top: 0.7rem; }

/* --- bookings --- */

.booking-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.booking-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--g-600, #475569);
}

.booking-date input {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Two columns on a wide panel, one on a phone. The note spans both columns because
   it is the only free-text field and would be cramped at half width. */
.booking-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.6rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.booking-field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--g-600, #475569);
}

.booking-field input,
.booking-field select {
  padding: 0.44rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  background: #fff;
  min-width: 0;
}

.booking-field input:focus,
.booking-field select:focus {
  outline: 2px solid var(--g-400, #60a5fa);
  outline-offset: 1px;
}

.booking-wide { grid-column: 1 / -1; }

.booking-form > button {
  grid-column: 1 / -1;
  justify-self: start;
}

/* --- the day's bookings --- */

.booking-list { margin-top: 1rem; display: grid; gap: 0.5rem; }

.booking-empty {
  margin: 0;
  padding: 1.1rem 0.9rem;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted, #94a3b8);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 10px;
}

.booking-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  /* The left edge carries the counter's colour, matching the service rows above so
     the two panels read as one list. */
  border-left: 3px solid var(--g-300, #cbd5e1);
}

/* Arrived and cancelled are visually settled: dimmed, so the eye lands on what is
   still upcoming rather than on what is already done. */
.booking-row.is-arrived { opacity: 0.62; }
.booking-row.is-cancelled,
.booking-row.is-no_show { opacity: 0.5; }

.booking-time {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--g-800, #0f172a);
}

.booking-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.booking-who strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--g-800, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-who span {
  font-size: 0.74rem;
  color: var(--g-600, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-actions {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.booking-actions button {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  cursor: pointer;
  padding: 0.34rem 0.6rem;
  border-radius: 7px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--g-600, #475569);
}

.booking-actions button:hover { background: rgba(15, 23, 42, 0.04); }

.booking-actions button.act-arrive {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #047857;
}

.booking-actions button.act-cancel {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

@media (max-width: 34rem) {
  .booking-row { grid-template-columns: auto 1fr; row-gap: 0.4rem; }
  .booking-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* --- voice wording, per counter --- */

.voice-block {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.voice-title {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--g-600, #475569);
}

.voice-title span {
  font-weight: 600;
  color: var(--muted, #94a3b8);
}

.voice-pair {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.voice-lang {
  flex: none;
  width: 3.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--g-600, #475569);
}

/* Both halves are phrases, not codes, so they need more room than the prefix input. */
.voice-in {
  flex: 1;
  min-width: 6rem;
  padding: 0.34rem 0.5rem;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}

.voice-in:focus {
  outline: 2px solid var(--g-400, #60a5fa);
  outline-offset: 1px;
}

.voice-more { margin-top: 0.5rem; }

.voice-more summary {
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--g-600, #475569);
  padding: 0.2rem 0;
}

.voice-more summary:hover { color: var(--g-700, #334155); }

/* The two-line preview under the language label: "before" then "after", in the
   order they are spoken, so a merchant reading the row left-to-right hears it. */
.voice-pair .voice-in:first-of-type { flex: 0 0 5.5rem; }

/* The swatch is the whole control: a filled circle that grows a ring when chosen.
   No label text, because the colour itself is the label, and ten labels would wrap. */
.svc-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.svc-swatch:hover { transform: scale(1.15); }

.svc-swatch.is-on {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--ink);
}

.svc-swatch:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Add-service form: name and prefix on one line, wrapping on narrow screens. */
.svc-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.svc-form-name {
  flex: 2 1 10rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
}

.svc-form-prefix {
  flex: 0 0 5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ==========================================================================
   Service selection menu — the platform's four offerings.

   Sits between the hero and the three-step explainer. Cards rather than a list
   because each entry has to carry a name in two languages, a one-line description
   and a state (live / coming soon), and a list row cannot hold that without wrapping
   into an unreadable block.

   The whole card is the link, which is what makes it usable on a phone: a 12rem
   target instead of a 3rem one.
   ========================================================================== */

.svc-menu {
  padding: 3.4rem 0 1rem;
}

/* The section no longer opens with a heading, so the demo panel takes the top slot.
   The grid keeps its own spacing below the panel; nothing here depends on the
   removed .svc-menu-head. */
.svc-demo {
  margin-top: 0;
}

.svc-menu-grid {
  display: grid;
  gap: 0.9rem;
  /* Space between the panel above and the four buttons below. Larger than the old
     2.2rem because the panel is a taller neighbour than a heading was. */
  margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.svc-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.svc-card:hover {
  border-color: var(--h-blue-1, #3b82f6);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.14);
  transform: translateY(-2px);
}

.svc-card:focus-visible {
  outline: 2px solid var(--h-blue-1, #3b82f6);
  outline-offset: 3px;
}

/* The live service gets a tinted background and a coloured edge, so the one a visitor
   can actually use right now is not visually equal to the three they cannot. */
.svc-card-primary {
  border-color: var(--h-blue-1, #3b82f6);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.07), #fff 62%);
}

/* Planned entries stay readable but recede: no hover lift, and a "coming soon" tag
   in place of the arrow. */
.svc-card[aria-disabled="true"] {
  cursor: default;
  background: rgba(255, 255, 255, 0.6);
}

.svc-card[aria-disabled="true"]:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.svc-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--h-blue-4, #2563eb);
}

.svc-card[aria-disabled="true"] .svc-card-icon {
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted, #64748b);
}

.svc-card-body {
  display: block;
  min-width: 0;
  flex: 1;
}

.svc-card-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink, #0f172a);
  line-height: 1.25;
}

/*
  The service name takes its own scene colour; the word 系統 stays ink.

  Four services read as four separate products, so each name is tinted with the
  hue that service already uses everywhere else on the page — the same blue /
  violet / orange / teal that the demo scenes, the price tabs and the scene
  palettes are built on. Keeping 系統 in black is what makes the label read as
  "排隊叫號 系統" (a named product) rather than as one long coloured word: the
  colour identifies which system, the plain tail says what it is.

  Colours are the mid-tone of each family rather than the lighter UI accent, so
  they hold up as text at 16px on white.
*/
.svc-cat-queue    { color: #2563eb; }  /* blue   — same as --h-blue-4 */
.svc-cat-booking  { color: #6d28d9; }  /* violet — same as --h-accent-2 for booking */
.svc-cat-takeaway { color: #c2410c; }  /* orange — same as --h-accent-2 for takeaway */
.svc-cat-member   { color: #0f766e; }  /* teal   — same as --h-accent-2 for member */

/* The Chinese label sits under the English one rather than beside it: side by side
   would wrap on a phone, and this way the pair reads as one name, not two. */
.svc-card-zh {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--h-blue-4, #2563eb);
  letter-spacing: 0.02em;
}

/*
  The Chinese sub-label exists for the English interface: it puts 排隊叫號 under
  "Queue" so a Hong Kong shop owner can find the right card at a glance.

  In the Chinese interface it must be hidden. `menu.queue` etc. already translate
  to 排隊叫號, so showing this span as well printed the same word twice — "會員會員"
  on the member card, and the same duplication on all four. The dictionary value is
  correct and shared with other pages, so the fix belongs here, not in the strings.
*/
html[lang^="zh"] .svc-card-zh {
  display: none;
}

.svc-card[aria-disabled="true"] .svc-card-zh {
  color: var(--muted, #64748b);
}

.svc-card-desc {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted, #64748b);
}

.svc-card-go {
  flex: none;
  align-self: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--h-blue-4, #2563eb);
}

.svc-card-tag {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted, #64748b);
}

@media (max-width: 40rem) {
  .svc-menu { padding: 2.6rem 0 0.8rem; }
  .svc-menu-grid { gap: 0.7rem; margin-top: 1.7rem; }
}

/* Inline note shown when a "coming soon" card is tapped. Reuses the form message
   colours so an informational state looks the same everywhere on the site. */
.svc-menu-note {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--h-accent-2, #1d4ed8);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
}

/* ------------------------------------------------------- board ticket rows --- */

/*
  One ticket on the staff board.

  The layout is a two-row card rather than a single flex line. English action labels
  ("Serve", "Recall", "Skip") are noticeably wider than their Chinese equivalents, and
  in a one-line row they squeezed the text column until the row read as a wall of
  buttons. Actions now sit on their own line, full width, which also gives each one a
  comfortable tap target on the tablet a counter actually uses.
*/
.board-row {
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.75rem 0.85rem;
}

.board-row + .board-row { margin-top: 0.6rem; }

/* A called ticket gets a faint tint so the eye lands on it first. */
.board-row[data-status="called"] {
  background: linear-gradient(180deg, rgba(55, 185, 134, 0.06), #fff 70%);
}

.board-row-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.board-no {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  min-width: 3.6rem;
  flex: none;
}

.board-detail { flex: 1; min-width: 0; }

.board-service {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.board-pax {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.board-note {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  /* A long note wraps instead of widening the card. */
  overflow-wrap: anywhere;
}

.board-badges {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.board-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

/* The primary action takes the remaining width on a narrow screen, so "Serve" is
   always the easiest thing to hit; the secondary actions share the rest. */
.board-actions .btn {
  flex: 1 1 auto;
  min-width: 4.5rem;
}

@media (min-width: 30rem) {
  .board-actions .btn { flex: 0 0 auto; min-width: 5.25rem; }
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--g-100);
  color: var(--g-800);
}

.badge-warn { background: #fdf3d7; color: #7a5200; }
.badge-live { background: var(--g-600); color: #fff; }

/* big display screen */
.display-body {
  background: var(--g-800);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.display-head { text-align: center; }
.display-head .shop { font-size: 1.1rem; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.display-head .label { margin-top: 0.3rem; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--g-300); font-weight: 800; }

.display-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.display-now { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.display-numbers { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; }
.display-number {
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--g-300);
}
.display-empty { font-size: clamp(4rem, 12vw, 8rem); color: rgba(255, 255, 255, 0.18); font-weight: 800; }
.display-waiting { margin-top: 1rem; font-size: 1.1rem; color: rgba(255, 255, 255, 0.7); }
.display-waiting strong { font-size: 1.8rem; color: #fff; font-weight: 800; }

/* phone page */
.phone-wrap { max-width: 28rem; margin: 0 auto; padding: 1.25rem; }
.phone-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow-md);
}

.hero-number {
  text-align: center;
  padding: 0.5rem 0 0.8rem;
}
.hero-number .cap { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.hero-number .big { font-size: 3.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.hero-number .sub { font-size: 0.78rem; color: var(--muted); }

.state-bar { border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; font-size: 0.85rem; font-weight: 700; text-align: center; }.state-called { background: var(--g-100); color: var(--g-800); border: 1px solid var(--g-300); }
.state-waiting { background: var(--g-50); color: var(--ink-soft); border: 1px solid var(--line); }
.state-dead { background: #fdecea; color: #8c1d18; border: 1px solid #f5c6c2; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mt1 { margin-top: 0.5rem; }
.mt2 { margin-top: 1rem; }
.mt3 { margin-top: 1.5rem; }
.small { font-size: 0.78rem; }
.tiny { font-size: 0.7rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th, .table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

@media (max-width: 52rem) {
  .nav a:not(.btn) { display: none; }
  .nav { display: none; }
  .hero { padding: 2.4rem 0 2.6rem; }
  .site-head-inner { gap: 0.5rem; }
  .lang, .nav-actions { flex-shrink: 0; }
  .wrap { padding: 0 1rem; }
}
@media (max-width: 26rem) {
  .lang-btn { padding: 0.35rem 0.55rem; }
  .btn-sm { padding: 0.4rem 0.7rem; }
}

/* ========================================================================
   Flyer homepage + electronic-ticket pass
   Builds on the existing light-green theme; overrides the dark photo hero.
   ======================================================================== */

.hero {
  color: var(--ink);
  padding: 3.25rem 0 3.1rem;
  background:
    radial-gradient(1100px 460px at 82% -10%, rgba(157, 224, 193, 0.5), transparent 62%),
    radial-gradient(800px 380px at 0% 100%, rgba(221, 245, 232, 0.8), transparent 55%),
    var(--g-25);
}
.hero-media,
.hero-scrim { display: none; }
.hero-inner { max-width: none; }
.hero-layout {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}
.hero h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(2.15rem, 5.6vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--g-700); }
.hero-sub {
  margin: 1.15rem 0 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.hero-chips li {
  border: 1px solid var(--g-200);
  background: var(--white);
  color: var(--g-800);
}
.hero-cta { margin-top: 1.7rem; }
.hero-note {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.hero-proof { display: none; }

.eyebrow-ink {
  color: var(--g-600);
}

.contrast-fig {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 22rem;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--g-100);
}
.contrast-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.contrast-fig figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}
.contrast-tag {
  background: rgba(10, 42, 30, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.contrast-tag.is-new { background: rgba(14, 122, 84, 0.92); }

@media (min-width: 64rem) {
  .hero-layout { grid-template-columns: 1.12fr 1fr; gap: 2.4rem; }
  .hero-layout > div:first-child { padding-top: 1.4rem; }
}

/* ---- four scenarios ---- */
.scene-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.3rem;
  grid-template-columns: 1fr;
}
.scene {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.scene-num {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--g-600);
  margin: 0 0 0.55rem;
}
.scene h3 { margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.scene p { margin: 0.55rem 0 0; font-size: 0.92rem; color: var(--muted); }
.scene-foot {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--g-50);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

@media (min-width: 48rem) {
  .scene-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- three steps ---- */
.how-row {
  display: grid;
  gap: 1rem;
  margin-top: 2.3rem;
  grid-template-columns: 1fr;
  counter-reset: howstep;
}
.how-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.how-step h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.how-step p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.how-num {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  background: var(--g-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}
@media (min-width: 56rem) {
  .how-row { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

/* ---- product shots ---- */
.shots-row {
  display: grid;
  gap: 2rem;
  margin-top: 2.3rem;
  justify-items: center;
  grid-template-columns: 1fr;
}
.device {
  width: min(100%, 22rem);
  text-align: center;
}
.device figcaption {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.device-frame {
  background: #1a1f1d;
  border-radius: 28px;
  padding: 0.55rem;
  box-shadow: var(--shadow-lg);
}
.device-frame img,
.device-frame iframe {
  display: block;
  width: 100%;
  border-radius: 22px;
  background: #e7f3ec;
}
@media (min-width: 52rem) {
  .shots-row { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ---- free plan ---- */
.free-panel {
  margin-top: 2.2rem;
  background: var(--white);
  border: 1px solid var(--g-200);
  border-radius: 22px;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.free-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
.free-item h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.free-item p { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--muted); }
.free-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-600);
  margin: 0 0 0.35rem;
}
@media (min-width: 52rem) {
  .free-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.upgrade-soft {
  margin-top: 1.5rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius);
  background: var(--g-50);
  border: 1px dashed var(--g-200);
}
.upgrade-soft h3 { margin: 0; font-size: 0.98rem; font-weight: 800; }
.upgrade-soft p { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--muted); }

.plan-free-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  background: var(--g-50);
  border: 1px solid var(--g-200);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}
.plan-free-callout strong { font-size: 1rem; }
.plan-free-callout p { margin: 0; font-size: 0.84rem; color: var(--muted); }

/* ---- electronic ticket pass ---- */
.ticket-body {
  min-height: 100vh;
  background:
    radial-gradient(700px 340px at 50% -8%, #d4f0e2, transparent 60%),
    #e6f2eb;
}
.ticket-body .phone-wrap {
  max-width: 26.5rem;
  padding: 1.4rem 1.05rem 2rem;
}

.pass {
  position: relative;
  background: #fffaf3;
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 50px rgba(10, 42, 30, 0.13);
  overflow: hidden;
}
.pass-edge {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(10, 42, 30, 0.08);
  border-radius: 22px;
  pointer-events: none;
  z-index: 3;
  transition: border-color 0.25s ease, border-width 0.25s ease;
}
.pass.is-called .pass-edge,
.pass.is-served .pass-edge {
  border-width: 4px;
  border-color: var(--g-800);
}
.pass.is-dead .pass-edge { border-color: #c07a74; }

.pass-stub {
  padding: 1.15rem 1.3rem 0.35rem;
}
.pass-shop {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pass-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem 0.6rem;
}
.pass-label {
  display: block;
  margin: 0 0 0.18rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Inter", "Noto Sans TC", sans-serif;
}
.pass-value {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.pass-hero {
  padding: 0.35rem 1.1rem 0.3rem;
  text-align: center;
}
.pass-headline {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-700);
  min-height: 1em;
}
.pass.is-called .pass-headline {
  color: var(--g-800);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.pass-number {
  margin: 0;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  font-size: clamp(5.1rem, 24vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pass-status {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.pass-track { padding: 0.7rem 1.3rem 0.35rem; }
.pass-rail {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #efe6d6;
  overflow: visible;
}
.pass-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--g-400), var(--g-700));
  transition: width 0.45s ease;
}
.pass-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--g-700);
  box-shadow: 0 0 0 4px #fffaf3, 0 2px 6px rgba(10, 42, 30, 0.2);
  transition: left 0.45s ease;
}
.no-motion .pass-fill,
.no-motion .pass-marker { transition: none !important; }
.pass-track-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.pass-track-labels strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.pass-cells {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 0.85rem 0.7rem 0.4rem;
  border: 1px solid rgba(10, 42, 30, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}
.pass-cell {
  padding: 0.65rem 0.55rem 0.7rem;
  text-align: center;
}
.pass-cell + .pass-cell { border-left: 1px solid rgba(10, 42, 30, 0.08); }
.pass-cell .pass-label { letter-spacing: 0.12em; }
.pass-cell .pass-value {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.pass-perf {
  position: relative;
  height: 28px;
  margin: 0.35rem 0 0;
}
.pass-perf::before,
.pass-perf::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: #e6f2eb;
  box-shadow: inset 0 1px 2px rgba(10, 42, 30, 0.08);
  z-index: 2;
}
.pass-perf::before { left: -11px; }
.pass-perf::after { right: -11px; }
.pass-perf-line {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 50%;
  border-top: 1.5px dashed rgba(10, 42, 30, 0.22);
}

.pass-actions {
  padding: 0.15rem 1.15rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.return-chip {
  appearance: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--g-800);
  background: transparent;
  border: 1px solid var(--g-300);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  cursor: pointer;
}
.return-chip:hover { background: var(--g-50); }
.return-chip.is-on {
  background: var(--g-100);
  border-color: var(--g-600);
  color: var(--g-800);
}
.return-chip[disabled] { opacity: 0.45; cursor: not-allowed; }
.return-note {
  margin: 0.15rem 1.2rem 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--g-800);
  min-height: 1.1em;
}

.pass-foot {
  margin: 0.85rem 1.2rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.ticket-powered {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.pass-actions[hidden],
.return-note[hidden] { display: none !important; }

.pass-cell .pass-value { font-size: 0.74rem; }

@media (max-width: 28rem) {
  .pass-meta { grid-template-columns: 1fr 1fr; }
  .pass-meta .pass-field:last-child { grid-column: 1 / -1; }
}

/* ========================================================================
   Homepage — QRQ-inspired layout, scoped to body.home
   App screens (ticket, dashboard, take, display, signin) keep the green theme.
   ======================================================================== */

.home {
  --home-bg: #ffffff;
  --home-muted: rgb(247, 248, 250);
  --home-ink: #111111;
  --home-soft: #525252;
  --home-faint: #737373;
  --home-accent: #379cfa;
  --home-accent-hover: #2e8ce6;
  --home-line: rgba(17, 17, 17, 0.08);
  --home-max: 1200px;
  background: var(--home-bg);
  color: var(--home-ink);
}
.home a { color: var(--home-ink); }
.home .wrap { max-width: var(--home-max); }
.home .narrow { max-width: 42rem; }

.home .site-head {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--home-line);
}
.home .nav a { color: #404040; }
.home .nav a:hover { color: var(--home-ink); }
.home .lang-btn {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.14);
  color: var(--home-ink);
}
.home .btn-primary {
  background: var(--home-accent);
  color: #fff;
  box-shadow: none;
}
.home .btn-primary:hover { background: var(--home-accent-hover); }
.home .btn-ghost {
  background: #fff;
  color: var(--home-ink);
  border-color: rgba(17, 17, 17, 0.16);
}
.home .btn-ghost:hover { border-color: rgba(17, 17, 17, 0.35); background: #fff; }
.home .btn-cta { padding: 0.85rem 1.7rem; font-size: 0.95rem; font-weight: 600; }

/* ---- opening typography, centered like QRQ ---- */
.flyer { padding: 4.5rem 0 0; }
.flyer-title {
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111;
}
.flyer-intro {
  margin: 1.05rem auto 0;
  max-width: 52rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #525252;
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .flyer-title { font-size: 58px; }
}

/* ---- how-it-works: video + QR ---- */
.explainer-sec { padding: 4rem 0 3.5rem; }
.explainer-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 0;
}
.explainer-media {
  position: relative;
  flex: 1;
}
.explainer-slide {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 24px;
  margin: 0 0 1.5rem;
}
.explainer-slide:last-of-type { margin-bottom: 0; }
.explainer-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e7eb;
}
.explainer-frame img,
.explainer-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.explainer-frame video { z-index: 1; }
.explainer-frame.has-video .explainer-poster,
.explainer-frame.has-video .explainer-ph { display: none; }
.explainer-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 2.4rem 1.5rem 1.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  text-wrap: pretty;
}
.explainer-ph {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 4;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(17, 17, 17, 0.55);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  pointer-events: none;
}
.explainer-pills {
  display: none;
}

.explainer-qr {
  position: relative;
  overflow: hidden;
  display: none;
  background: var(--home-muted);
  border-radius: 24px;
  min-height: 16rem;
}
.explainer-qr-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.explainer-qr-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
}
.explainer-qr-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.explainer-qr-inner p { margin: 0; color: var(--home-faint); font-size: 0.9rem; }
.qr-frame {
  margin: 1.1rem 0 0.7rem;
  background: #fff;
  border-radius: 18px;
  padding: 0.7rem;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.08);
}
.qr-frame svg { width: 180px; height: 180px; }
.explainer-qr-note { margin-top: 0.35rem; }
.explainer-qr-note a {
  color: var(--home-soft);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (min-width: 768px) {
  .explainer-row {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0;
  }
  .explainer-media {
    background: #e5e7eb;
    aspect-ratio: 4 / 3;
    border-radius: 24px 8px 8px 8px;
    overflow: hidden;
  }
  .explainer-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .explainer-slide.is-on {
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }
  .explainer-frame {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
  }
  .explainer-slide figcaption { font-size: 1.5rem; padding: 3rem 1.5rem 1.5rem; }
  .explainer-pills {
    display: flex;
    gap: 0.25rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 1rem;
  }
  .explainer-pill {
    flex: 1;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
    cursor: pointer;
  }
  .explainer-pill span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: inherit;
  }
  .explainer-qr {
    display: block;
    flex: 1;
    align-self: stretch;
    border-radius: 8px 24px 8px 8px;
  }
}

/* ---- three feature cards ---- */
.feature-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}
.feature-card {
  flex: 1;
  background: var(--home-muted);
  border-radius: 24px;
  padding: 2rem 1.5rem 3.5rem;
}
.feature-icon {
  display: block;
  color: #525252;
  margin-bottom: 1.15rem;
}
.feature-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}
.feature-card p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #525252;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .feature-row { flex-direction: row; gap: 0.5rem; margin-top: 0.5rem; }
  .feature-card-a { border-radius: 8px 8px 8px 24px; }
  .feature-card-b { border-radius: 8px; }
  .feature-card-c { border-radius: 8px 8px 24px 8px; }
}

.explainer-mobile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  margin-top: 2rem;
  background: var(--home-muted);
  border-radius: 24px;
  padding: 3rem 1.5rem;
}
.explainer-mobile-cta h2 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.explainer-mobile-cta p { margin: 0 0 0.4rem; color: var(--home-faint); }
@media (min-width: 768px) {
  .explainer-mobile-cta { display: none; }
}

.flyer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 0.9rem;
  margin-top: 2.8rem;
  text-align: center;
}
.flyer-note {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--home-faint);
}

/* ---- ideogram / media slots: never stretch ---- */
.gallery { padding: 1rem 0 4.5rem; }
.media-slot {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--home-muted);
  margin: 0;
}
.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.media-16x9 { aspect-ratio: 16 / 9; }
.media-1x1 { aspect-ratio: 1 / 1; }
.gallery-squares {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  grid-template-columns: 1fr;
}
.slot-label {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(17, 17, 17, 0.55);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  width: max-content;
  max-width: calc(100% - 1.6rem);
}
@media (min-width: 768px) {
  .gallery-squares { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---- homepage FAQ / signup / footer, still scoped ---- */
.home #faq { padding: 3rem 0 4.5rem; }
.home #faq h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}
.home .faq details { border-color: var(--home-line); }
.home .faq summary { color: #111; }
.home .faq p { color: var(--home-soft); }

/*
  The alternating band, as a veil rather than a slab.

  It used to paint --home-muted (rgb(247 248 250)) opaque. Because the page wash
  lives on body, an opaque section cuts it off dead: the gradient stops at the
  section's top edge and restarts on the other side, which reads as a hard band
  with the blue missing in the middle of the page — the two places the gradient
  seemed to have disappeared.

  A translucent white keeps the band distinguishable from its neighbours while
  letting the wash show through, so the page stays one continuous colour from the
  header to the footer. The tint is white, not the old grey, so it lightens the
  band instead of greying it out.
*/
.home .alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}
.home .section-head h2 {
  color: #111;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.home .section-head p { color: var(--home-soft); }
.home .plan-free-callout {
  background: #fff;
  border-color: var(--home-line);
}
.home .aside-card { box-shadow: none; border-color: var(--home-line); }
.home .field input,
.home .field textarea {
  border-color: rgba(17, 17, 17, 0.16);
}

.home .site-foot {
  background: #111;
  color: rgba(255, 255, 255, 0.62);
}
.home .foot-grid h4 { color: rgba(255, 255, 255, 0.45); }
.home .foot-grid a { color: rgba(255, 255, 255, 0.7); }
.home .foot-grid a:hover { color: #fff; }
.home .foot-brand { color: #fff; }
.home .foot-brand-sub { color: rgba(255, 255, 255, 0.45); }
.home .foot-bottom { border-top-color: rgba(255, 255, 255, 0.12); }

@media (max-width: 52rem) {
  .home .flyer { padding-top: 3rem; }
  .home .explainer-sec { padding-top: 2.6rem; }
}

/* ========================================================================
   Customer ticket — clean QRQ-like screen, scoped to .ticket-body
   No paper, perforation, grain, or ticket-stock shadow.
   ======================================================================== */

.ticket-body {
  min-height: 100vh;
  margin: 0;
  color: #16332a;
  background: linear-gradient(180deg, #e6f3ec 0%, #f4f1ea 52%, #fffaf3 100%);
}
.ticket-body .qq-wrap {
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.6rem 1.35rem 2.4rem;
  text-align: center;
}
.ticket-body .qq-top { margin: 0 0 1.6rem; }
.ticket-body .qq-shop {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16332a;
}
.ticket-body .qq-meta {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #6b7f76;
  font-weight: 500;
}
.ticket-body .qq-dot { margin: 0 0.25rem; opacity: 0.6; }

.ticket-body .qq-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c746b;
}
.ticket-body .qq-number {
  margin: 0.1rem 0 0;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  font-size: clamp(5.2rem, 26vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: #102921;
}
.ticket-body .qq-status {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d5a4f;
}

.ticket-body .qq-ring-wrap {
  position: relative;
  width: min(72vw, 16.5rem);
  margin: 1.6rem auto 0;
}
.ticket-body .qq-ring {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.ticket-body .qq-ring-track,
.ticket-body .qq-ring-arc {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.ticket-body .qq-ring-track { stroke: rgba(22, 51, 42, 0.1); }
.ticket-body .qq-ring-arc {
  stroke: #379cfa;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
  transition: stroke-dashoffset 0.45s ease, stroke 0.35s ease;
}
.ticket-body .qq-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ticket-body .qq-ring-kicker,
.ticket-body .qq-ring-unit {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5c746b;
}
.ticket-body .qq-ring-count {
  display: block;
  margin: 0.1rem 0;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #102921;
}
.ticket-body .qq-ring-count.is-words {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  max-width: 7.5rem;
  line-height: 1.25;
}

.ticket-body .qq-interval,
.ticket-body .qq-eta {
  margin: 0.85rem auto 0;
  max-width: 20rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2c4a40;
  line-height: 1.45;
}
.ticket-body .qq-interval { margin-top: 1.25rem; color: #5c746b; font-weight: 500; font-size: 0.92rem; }
.ticket-body .qq-calling-line {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #7a8f86;
}
.ticket-body .qq-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}
.ticket-body .qq-actions[hidden] { display: none !important; }
.ticket-body .qq-chip {
  appearance: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a655b;
  background: transparent;
  border: 1px solid rgba(22, 51, 42, 0.18);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
}
.ticket-body .qq-chip:hover { background: rgba(255, 255, 255, 0.55); }
.ticket-body .qq-chip.is-on {
  border-color: #379cfa;
  color: #1d5f9a;
  background: rgba(55, 156, 250, 0.08);
}
.ticket-body .return-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d5f9a;
}
.ticket-body .return-note[hidden] { display: none !important; }
.ticket-body .qq-foot {
  margin: 1.4rem 0 0;
  font-size: 0.75rem;
  color: #7a8f86;
}
.ticket-body .ticket-powered {
  margin: 0.7rem 0 0;
  font-size: 0.7rem;
  color: #9aa89f;
}

/* Almost-called: 1 ticket ahead — strong glow (static + pulse) */
.ticket-body.is-almost {
  background: linear-gradient(180deg, #c8e8ff 0%, #e6f4ef 48%, #fffaf3 100%);
}
.ticket-body.is-almost .qq-ring-wrap {
  filter: drop-shadow(0 0 22px rgba(31, 138, 240, 0.75));
  animation: qq-almost-glow 1.35s ease-in-out infinite;
}
.ticket-body.is-almost .qq-ring-wrap::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 156, 250, 0.42) 0%, rgba(55, 156, 250, 0.12) 52%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.ticket-body.is-almost .qq-ring,
.ticket-body.is-almost .qq-ring-label { position: relative; z-index: 1; }
.ticket-body.is-almost .qq-ring-arc { stroke: #1f8af0; stroke-width: 12; }
.ticket-body.is-almost .qq-status { color: #0d6fd0; font-weight: 800; }
@keyframes qq-almost-glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(31, 138, 240, 0.65)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 36px rgba(31, 138, 240, 0.95)); transform: scale(1.04); }
}

/* Called: full-screen deep green, arc at zero */
.ticket-body.is-called {
  background: #043525;
  color: #f4fff8;
}
.ticket-body.is-called .qq-shop,
.ticket-body.is-called .qq-number,
.ticket-body.is-called .qq-kicker,
.ticket-body.is-called .qq-status,
.ticket-body.is-called .qq-ring-count,
.ticket-body.is-called .qq-foot,
.ticket-body.is-called .ticket-powered { color: #f4fff8; }
.ticket-body.is-called .qq-meta,
.ticket-body.is-called .qq-ring-kicker,
.ticket-body.is-called .qq-ring-unit,
.ticket-body.is-called .qq-calling-line { color: rgba(244, 255, 248, 0.7); }
.ticket-body.is-called .qq-kicker {
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: #c8f5dc;
}
.ticket-body.is-called .qq-number { color: #fff; }
.ticket-body.is-called .qq-status { color: #d9f8e8; }
.ticket-body.is-called .qq-ring-track { stroke: rgba(255, 255, 255, 0.18); }
.ticket-body.is-called .qq-ring-arc { stroke: rgba(255, 255, 255, 0.0); }
.ticket-body.is-called .qq-ring-count.is-words { color: #fff; font-size: 1.35rem; }
.ticket-body.is-served { background: linear-gradient(180deg, #e6f3ec 0%, #fffaf3 100%); }
.ticket-body.is-dead { background: #f7ecea; }

.ticket-body [hidden] { display: none !important; }


/* Dreamy waiting-page atmosphere — soft moving washes, no paper / grain. */
.ticket-body {
  position: relative;
  overflow-x: hidden;
}
.ticket-body::before,
.ticket-body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(72px);
  opacity: 0.7;
  animation: qq-dream 22s ease-in-out infinite alternate;
}
.ticket-body::before {
  width: 70vmax;
  height: 70vmax;
  top: -22%;
  left: -18%;
  background: radial-gradient(circle, rgba(176, 216, 201, 0.85) 0%, rgba(176, 216, 201, 0) 70%);
}
.ticket-body::after {
  width: 62vmax;
  height: 62vmax;
  right: -16%;
  bottom: -24%;
  background: radial-gradient(circle, rgba(240, 220, 180, 0.7) 0%, rgba(255, 250, 243, 0) 72%);
  animation-name: qq-dream-2;
  animation-duration: 26s;
}
.ticket-body .qq-wrap {
  position: relative;
  z-index: 1;
}
@keyframes qq-dream {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, 10%, 0) scale(1.14); }
}
@keyframes qq-dream-2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-9%, -8%, 0) scale(1.12); }
}
.ticket-body.is-called::before,
.ticket-body.is-called::after {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .ticket-body::before,
  .ticket-body::after {
    animation: none;
  }
}
