/* ==========================================================================
   SERVIRIS — Home page
   Design tokens mirror serviris.com (Inter 900 display, slate ink, sky/emerald
   accents, soft tinted panels, 999px pills, ease .32/.72/0/1).
   ========================================================================== */

/* Until Inter arrives, text is drawn in Arial (or its look-alikes) scaled to Inter's width and line metrics,
   so the swap doesn't move anything (values measured from the font files: tools/build-fonts.py). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); font-weight: 100 649;
  size-adjust: 106.83%; ascent-override: 90.68%; descent-override: 22.58%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); font-weight: 650 1000;
  size-adjust: 104.16%; ascent-override: 93%; descent-override: 23.16%; line-gap-override: 0%; }
/* Cyrillic (Bulgarian): Arial's Cyrillic is wider relative to Inter than its Latin, so its own scale (declared last: wins for U+0400–04FF) */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); font-weight: 100 649; unicode-range: U+0400-04FF;
  size-adjust: 101.2%; ascent-override: 95.73%; descent-override: 23.83%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); font-weight: 650 1000; unicode-range: U+0400-04FF;
  size-adjust: 98.9%; ascent-override: 97.96%; descent-override: 24.39%; line-gap-override: 0%; }
:root {
  --ink: #0f172a;
  --brand: #0d0d0d;
  --text: #334155;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: #dbe7f3;
  --line-soft: #eef3f8;
  --bg: #f8fafc;
  --panel: #ffffff;

  --blue: #3da9fc;
  --sky: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;

  --em: #10b981;
  --em-600: #059669;
  --em-700: #047857;
  --em-50: #ecfdf5;
  --em-200: #a7f3d0;

  --am: #f59e0b;
  --am-700: #b45309;
  --am-50: #fffbeb;
  --am-200: #fde68a;

  --rose: #f43f5e;
  --rose-700: #be123c;
  --rose-50: #fff1f2;
  --rose-200: #fecdd3;

  --ind: #6366f1;
  --ind-700: #4338ca;
  --ind-50: #eef2ff;
  --ind-200: #c7d2fe;

  --vio: #8b5cf6;
  --vio-700: #6d28d9;
  --vio-50: #f5f3ff;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, .06);
  --shadow: 0 24px 70px rgba(15, 23, 42, .08);
  --shadow-lift: 0 30px 80px rgba(15, 23, 42, .14);

  --wrap: 1320px;
  --gutter: 24px;
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
/* no blue/grey box flashing on taps (mobile browsers); keyboard focus keeps its :focus-visible rings */
html, a, button, summary, label, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky-700); outline-offset: 3px; border-radius: 10px; }

.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.page-glow {
  position: absolute; inset: 0 0 auto; height: 1100px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(800px 480px at 12% -4%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(700px 460px at 92% 8%, rgba(16, 185, 129, .11), transparent 62%),
    linear-gradient(180deg, #fff, var(--bg) 900px);
}
.page-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 520px at 50% 10%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 520px at 50% 10%, #000 20%, transparent 75%);
}

/* ---------- chips & buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 800; line-height: 1.25;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  white-space: nowrap;
}
.chip .ic { font-size: 15px; }
.chip-sky { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-700); }
.chip-em { background: var(--em-50); border-color: var(--em-200); color: var(--em-700); }
.chip-indigo { background: var(--ind-50); border-color: var(--ind-200); color: var(--ind-700); }
.chip-line { background: rgba(255, 255, 255, .7); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px;
  font-weight: 800; font-size: 15px; line-height: 1.2; letter-spacing: -.005em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .ic { font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(15, 23, 42, .22), inset 0 1px rgba(255, 255, 255, .12); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14, 165, 233, .22), 0 10px 26px rgba(15, 23, 42, .22); }
.btn-sky { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; box-shadow: 0 10px 26px rgba(2, 132, 199, .28), inset 0 1px rgba(255, 255, 255, .18); }
.btn-sky:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(2, 132, 199, .36), inset 0 1px rgba(255, 255, 255, .18); }
.btn.is-down:hover .ic:last-child { transform: translateY(3px); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { border-color: var(--sky-200); transform: translateY(-2px); }
.btn-ghost .ic { color: var(--sky-600); }
.btn-sm { padding: 10px 15px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 16px 22px; font-size: 16px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.8s var(--ease) 2s infinite;
}
.btn-light.btn-shine::after { background: linear-gradient(115deg, transparent 30%, rgba(14, 165, 233, .18) 50%, transparent 70%); }
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }

/* ---------- nav (mirrors serviris.com) ---------- */
.nav-shell { position: sticky; top: 16px; z-index: 50; padding-inline: var(--gutter); margin-top: 16px; }
.nav {
  position: relative;
  width: min(var(--wrap), 100%); min-height: 74px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(22px) saturate(1.12); -webkit-backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 16px 44px rgba(15, 23, 42, .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; filter: drop-shadow(0 6px 12px rgba(33, 150, 243, .22)); }

/* ---- the logo (partials/logo-mark, partials/logo-word) ---------------------------------------------------
   Every mark on the page "writes" itself when it scrolls into view (class lm-go, set by the layout script):
   the blue tile pops in solid, an invisible pen carves the S into it, the three menu lines write in and a
   light crosses it. On hover (lm-hov) the pen un-writes the S back into the blue and writes it again.
   Without scripts or with reduced motion the mark is simply drawn. */
.lm { display: block; width: 100%; height: 100%; overflow: visible; }
.lm-body, .lm-sfill { fill: #2196f3; }
.lm-sfill { opacity: 0; }
.lm-pen { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.lm-l { fill: #fff; transform-box: fill-box; transform-origin: left center; }
.lm-tile { transform-box: fill-box; transform-origin: 50% 55%; }
.lm-shine { transform: translateX(-60px) skewX(-18deg); opacity: 0; }
.js .lm-anim:not(.lm-go) .lm-tile, .js .lm-anim:not(.lm-go) .lm-lines { opacity: 0; }
/* entrance */
.lm-go:not(.lm-done) .lm-tile { animation: lmPop .75s cubic-bezier(.2, .9, .25, 1.15) .05s both; }
.lm-go:not(.lm-done) .lm-sfill { animation: lmSOut .25s ease 1.6s both; }
.lm-go:not(.lm-done) .lm-pen { animation: lmPen 1.05s cubic-bezier(.65, 0, .35, 1) .5s both; }
.lm-go:not(.lm-done) .lm-l { animation: lmLine .5s cubic-bezier(.3, .7, .2, 1) 1.45s both; }
.lm-go:not(.lm-done) .lm-l:nth-child(2) { animation-delay: 1.59s; }
.lm-go:not(.lm-done) .lm-l:nth-child(3) { animation-delay: 1.73s; }
.lm-go:not(.lm-done) .lm-shine { animation: lmShine 1.1s cubic-bezier(.4, 0, .2, 1) 2.15s both; }
/* hover: un-write, then write again */
.lm-hov .lm-tile { animation: lmTileHov 1.5s cubic-bezier(.45, 0, .2, 1) both; }
.lm-hov .lm-sfill { animation: lmSHov 1.5s linear both; }
.lm-hov .lm-pen { animation: lmPenHov 1.5s both; }
.lm-hov .lm-l { animation: lmLineHov 1.5s cubic-bezier(.45, 0, .2, 1) both; }
.lm-hov .lm-l:nth-child(2) { animation-delay: .05s; }
.lm-hov .lm-l:nth-child(3) { animation-delay: .1s; }
.lm-hov .lm-shine { animation: lmShine 1s cubic-bezier(.4, 0, .2, 1) 1.15s both; }
@keyframes lmPop { 0% { opacity: 0; transform: scale(.55) rotate(-10deg); } 60% { opacity: 1; transform: scale(1.06) rotate(1.5deg); } 100% { opacity: 1; transform: none; } }
@keyframes lmPen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lmSOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes lmLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lmShine { 0% { opacity: 1; transform: translateX(-60px) skewX(-18deg); } 100% { opacity: 1; transform: translateX(150px) skewX(-18deg); } }
@keyframes lmTileHov { 0%, 100% { transform: none; } 42% { transform: scale(.93) rotate(-4deg); } }
@keyframes lmSHov { 0%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lmPenHov { 0% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.6, 0, .85, .45); } 42% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.2, .65, .3, 1); } 100% { stroke-dashoffset: 0; } }
@keyframes lmLineHov { 0% { transform: none; } 26%, 58% { transform: scaleX(0); } 84%, 100% { transform: none; } }
/* watermark variant (final call to action): the same mark in the card's own tint */
.lm-ghost .lm-body, .lm-ghost .lm-sfill { fill: currentColor; }
.lm-ghost .lm-l { fill: #0f172a; }
.lm-ghost .lm-shine { display: none; }
.lw { display: block; height: 13.5px; width: auto; overflow: visible; }
.lw-d { fill: #030e2d; }
.lw-b { fill: #2196f3; }
.brand-word .lw { animation: lwIn .7s cubic-bezier(.2, .8, .2, 1) .9s both; }
@keyframes lwIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lm *, .brand-word .lw { animation: none !important; }
}
.brand-text { display: grid; line-height: 1; gap: 4px; }
.brand-word { font-family: "Arial Black", "Inter", sans-serif; font-weight: 900; font-size: 17.5px; color: var(--brand); letter-spacing: 0; line-height: 1; }
.brand-word b { color: var(--blue); font-weight: 900; }
.brand-by { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-size: 10px; color: var(--muted); font-weight: 600; transition: opacity .2s; }
.brand-by:hover { opacity: .65; }
.brand-word { transition: opacity .2s; }
.brand-word:hover { opacity: .8; }
.brand-by img { height: 9px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 16px; }
.nav-links > a, .nav-dd-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px; border-radius: 11px;
  font-size: 13.5px; font-weight: 650; color: #334155; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .25s;
}
.nav-links > a, .nav-dd-btn { position: relative; }
.nav-links > a::after, .nav-dd-btn::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px;
  background: linear-gradient(90deg, #38bdf8, #10b981); transform: scaleX(0); opacity: 0; transition: transform .45s var(--spring), opacity .2s; }
.nav-links > a:hover, .nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { background: #f1f5f9; color: var(--ink); }
.nav-links > a.is-a, .nav-links > a[aria-current]:not(.is-off), .nav-dd-btn.is-a:not(.is-off) { color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .05), 0 6px 16px -6px rgba(15, 23, 42, .16); }
.nav-links > a.is-a::after, .nav-links > a[aria-current]:not(.is-off)::after, .nav-dd-btn.is-a:not(.is-off)::after { transform: scaleX(1); opacity: 1; }
.nav-dd-btn.is-a:not(.is-off) .ic { color: var(--sky-600); }
.nav-dd { position: relative; }
.nav-dd-btn .ic { font-size: 14px; color: var(--soft); transition: transform .3s var(--ease); }
.nav-dd:hover .nav-dd-btn .ic, .nav-dd.open .nav-dd-btn .ic { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; left: -10px; top: calc(100% + 14px); width: 392px; z-index: 5;
  display: grid; gap: 1px; padding: 6px; border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08); background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 34px -10px rgba(15, 23, 42, .16), 0 36px 70px -28px rgba(15, 23, 42, .14);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.985); transform-origin: 28px 0;
  transition: opacity .18s, transform .28s var(--ease), visibility 0s .28s;
}
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dd:hover .nav-dd-panel, .nav-dd:has(.nav-dd-panel :focus-visible) .nav-dd-panel, .nav-dd.open .nav-dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .28s var(--ease), visibility 0s; }
.dd-cap { padding: 8px 10px 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
/* every item has its own colour: soft tile at rest, gradient tile + lift on hover */
.nav-dd-panel > a { --c: #475569; --cb: #f1f5f9; --cl: #e2e8f0; --g: linear-gradient(135deg, #94a3b8, #334155);
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 10px; border-radius: 13px; transition: background-color .25s; }
.nav-dd-panel > .dd-sky { --c: #0284c7; --cb: #e0f2fe; --cl: #bae6fd; --g: linear-gradient(135deg, #38bdf8, #0369a1); }
.nav-dd-panel > .dd-ind { --c: #4f46e5; --cb: #eef2ff; --cl: #c7d2fe; --g: linear-gradient(135deg, #818cf8, #4338ca); }
.nav-dd-panel > .dd-am { --c: #d97706; --cb: #fef3c7; --cl: #fde68a; --g: linear-gradient(135deg, #fbbf24, #c2410c); }
.nav-dd-panel > .dd-rose { --c: #e11d48; --cb: #ffe4e6; --cl: #fecdd3; --g: linear-gradient(135deg, #fb7185, #be123c); }
.nav-dd-panel > .dd-em { --c: #059669; --cb: #d1fae5; --cl: #a7f3d0; --g: linear-gradient(135deg, #34d399, #047857); }
.nav-dd-panel > .dd-slate { --c: #334155; --cb: #f1f5f9; --cl: #e2e8f0; --g: linear-gradient(135deg, #64748b, #0f172a); }
.nav-dd-panel > a:hover, .nav-dd-panel > a:focus-visible, .nav-dd-panel > a[aria-current] { background: color-mix(in srgb, var(--cb) 45%, #fff); }
.dd-ic { position: relative; width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; overflow: hidden; font-size: 18px;
  color: var(--c, #475569); background: var(--cb, #f1f5f9); border: 1px solid var(--cl, #e2e8f0);
  transition: transform .5s var(--spring), color .25s, border-color .25s, box-shadow .35s; }
.dd-ic::before { content: ""; position: absolute; inset: 0; background: var(--g); opacity: 0; transition: opacity .3s; }
.dd-ic .ic { position: relative; transition: transform .5s var(--spring); }
.dd-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.nav-dd-panel > a:hover .dd-ic, .nav-dd-panel > a:focus-visible .dd-ic, .nav-dd-panel > a[aria-current] .dd-ic { color: #fff; border-color: transparent; transform: translateY(-1px) scale(1.06);
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--c) 70%, transparent); }
.nav-dd-panel > a:hover .dd-ic::before, .nav-dd-panel > a:focus-visible .dd-ic::before, .nav-dd-panel > a[aria-current] .dd-ic::before { opacity: 1; }
.nav-dd-panel > a:hover .dd-ic .ic { transform: rotate(-8deg) scale(1.06); }
/* a chevron slides in on hover (items without a price) */
.nav-dd-panel > a { position: relative; }
.nav-dd-panel > a:not(.dd-all):not(:has(.dd-pr))::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid var(--c); border-right: 2px solid var(--c); border-radius: 1px;
  opacity: 0; transform: translateX(-8px) rotate(45deg); transition: opacity .25s, transform .45s var(--spring); }
.nav-dd-panel > a:not(.dd-all):not(:has(.dd-pr)):hover::after, .nav-dd-panel > a:not(.dd-all):not(:has(.dd-pr)):focus-visible::after { opacity: 1; transform: translateX(0) rotate(45deg); }
/* staggered entrance when the panel opens */
.nav-dd-panel > * { opacity: 0; translate: 0 6px; transition: opacity .3s, translate .5s var(--spring), background-color .25s; }
.nav-dd-panel > :nth-child(2) { --i: 1; } .nav-dd-panel > :nth-child(3) { --i: 2; } .nav-dd-panel > :nth-child(4) { --i: 3; } .nav-dd-panel > :nth-child(5) { --i: 4; }
.nav-dd-panel > :nth-child(6) { --i: 5; } .nav-dd-panel > :nth-child(7) { --i: 6; } .nav-dd-panel > :nth-child(8) { --i: 7; }
.nav-dd:hover .nav-dd-panel > *, .nav-dd:has(.nav-dd-panel :focus-visible) .nav-dd-panel > *, .nav-dd.open .nav-dd-panel > * { opacity: 1; translate: 0 0; transition-delay: calc(var(--i, 0) * 32ms + 30ms), calc(var(--i, 0) * 32ms + 30ms), 0s; }
/* a thin colour line on top of the panel */
.nav-dd-panel::after { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #38bdf8 25%, #818cf8 50%, #10b981 75%, transparent); opacity: .85; }
@media (prefers-reduced-motion: reduce) { .nav-dd-panel > * { translate: none; transition: opacity .2s; } .dd-ic, .dd-ic .ic { transition: color .2s; transform: none !important; } }
.nav-dd-panel b { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-dd-panel small { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-pr { flex: none; padding: 4px 9px; border-radius: 99px; background: var(--cb); font-style: normal; font-size: 12px; font-weight: 750; color: var(--c); font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s; }
.dd-pr i { font-style: normal; font-weight: 600; opacity: .7; }
.nav-dd-panel > a:hover .dd-pr { background: var(--c); color: #fff; }
.nav-dd-panel > .dd-all { gap: 6px; margin-top: 5px; padding: 11px 10px 8px; border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; font-size: 13px; font-weight: 650; color: var(--ink); }
.nav-dd-panel > .dd-all .ic { font-size: 14px; color: var(--muted); transition: transform .3s var(--spring), color .2s; }
.nav-dd-panel > .dd-all:hover { background: none; color: var(--sky-700); }
.nav-dd-panel > .dd-all:hover .ic { transform: translateX(3px); color: var(--sky-700); }
.nav-dd-sol .nav-dd-panel { left: 50%; width: 576px; margin-left: -288px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2px; transform-origin: 50% 0; }
.nav-dd-sol .dd-cap { grid-column: 1 / -1; }
.dd-soon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; padding: 12px 6px 4px; border-top: 1px solid var(--line-soft); }
.dd-soon > span { grid-column: 1 / -1; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-left: 4px; }
.dd-soon a { display: flex; justify-content: center; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; padding: 6px 4px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.dd-soon a:hover { border-color: var(--sky-200); color: var(--sky-700); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-academy {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 16px;
  background: #f2f9ff; border: 1px solid #d6ecff; color: #0b6fb3; font-size: 13.5px; font-weight: 800; white-space: nowrap;
  transition: border-color .2s, transform .25s var(--ease);
}
.nav-academy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(186, 230, 253, .9) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5.5s var(--ease) 1.5s infinite; }
.nav-academy:hover { border-color: var(--sky-200); transform: translateY(-1px); }
.nav-academy .ic { font-size: 17px; }
.nav-auth { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 16px; background: rgba(248, 250, 252, .78); border: 1px solid #e2e8f0; }
.nav-login, .nav-register { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 12px; font-size: 13.5px; font-weight: 800; white-space: nowrap; transition: background-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s; }
.nav-login { color: #475569; }
.nav-login:hover { background: #fff; color: var(--ink); }
.nav-register { background: var(--ink); color: #fff; box-shadow: 0 14px 28px rgba(15, 23, 42, .14); }
.nav-register:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(14, 165, 233, .22); }
.nav-login .ic, .nav-register .ic { font-size: 16px; }

.nav-lang { position: absolute; right: 22px; top: 50%; translate: 0 -50%; display: none; }
.nav-lang-btn { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; background: transparent; border: 0; transition: background-color .2s, transform .25s var(--ease); }
.nav-lang-btn:hover, .nav-lang.open .nav-lang-btn { background: rgba(255, 255, 255, .8); }
.nav-lang-btn img { width: 22px; height: 22px; border-radius: 99px; box-shadow: 0 1px 3px rgba(15, 23, 42, .2); transition: transform .25s var(--ease); }
.nav-lang-btn:hover img { transform: scale(1.06); }
.nav-lang-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 200px; display: grid; gap: 2px; padding: 8px; border-radius: 18px;
  border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.nav-lang.open .nav-lang-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease), visibility 0s; }
.nav-lang-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--text); }
.nav-lang-panel a:hover, .nav-lang-panel a.is-a { background: var(--sky-50); color: var(--sky-700); }
.nav-lang-panel img { width: 20px; height: 20px; border-radius: 99px; }
@media (min-width: 1500px) { .nav-lang { display: block; } }
/* phones and tablets: the flag next to the menu button opens the language modal (.lang-modal, the cookie dialog's frame) */
.nav-lang-m { display: none; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  transition: background-color .2s, transform .25s var(--ease); }
.nav-lang-m img { width: 22px; height: 22px; border-radius: 99px; box-shadow: 0 1px 3px rgba(15, 23, 42, .2); }
.nav-lang-m:active { transform: scale(.96); }
.nav-lang-m:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
html.lg-lock { overflow: hidden; }
.ck-hic.lang-hic { background: var(--sky-50); color: var(--sky-600); box-shadow: inset 0 0 0 1px var(--sky-200); }
.lang-modal .ck-head { align-items: center; }
.lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); }
.lang-row { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 10px 12px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--line-soft);
  font-size: 14.5px; font-weight: 750; color: var(--ink); transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.lang-row img { width: 26px; height: 26px; flex: none; border-radius: 99px; box-shadow: 0 1px 3px rgba(15, 23, 42, .18); }
.lang-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-row .ic { flex: none; font-size: 18px; color: var(--sky-600); }
.lang-row:hover { background: #f1f5f9; }
.lang-row:active { transform: scale(.98); }
.lang-row.is-a { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-700); }
.lang-row:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (max-width: 340px) { .lang-list { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1101px) and (max-width: 1499px) {
  .nav-shell { display: flex; align-items: center; gap: 10px; width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; padding-inline: 0; }
  .nav { flex: 1; min-width: 0; }
  .nav-lang { display: block; position: relative; right: auto; top: auto; translate: none; flex: none; }
  .nav-academy { padding: 0 11px; }
}

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; position: relative; flex: none; }
/* menu button: Tabler "menu-deep" (stepped lines, like the logo's menu lines) that turns into "x" */
.nav-burger svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .3s var(--ease), transform .45s cubic-bezier(.34, 1.4, .64, 1); }
.nav-burger .nb-open path { transition: transform .35s var(--ease); }
.nav-burger:hover .nb-open path:nth-child(2) { transform: translateX(-3px); }
.nav-burger:hover .nb-open path:nth-child(3) { transform: translateX(-6px); }
.nav-burger .nb-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.nav-burger[aria-expanded="true"] .nb-open { opacity: 0; transform: rotate(90deg) scale(.5); }
.nav-burger[aria-expanded="true"] .nb-close { opacity: 1; transform: none; }
.nav-sheet {
  width: min(var(--wrap), 100%); margin: 8px auto 0; padding: 8px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow); display: grid; gap: 2px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: sheetIn .35s var(--ease);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet > a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.nav-sheet > a .ic { font-size: 19px; color: var(--sky-600); }
.nav-sheet > a:hover { background: var(--line-soft); }
.sheet-sol { margin: 4px 0 2px; padding: 10px 4px 6px; border-top: 1px solid var(--line-soft); }
.sheet-sol small { display: block; padding: 0 8px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.sheet-sol div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sheet-sol a { display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: #fff; font-size: 14px; font-weight: 750; color: var(--ink); white-space: nowrap; transition: background-color .2s; }
.sheet-sol a .ic { flex: none; font-size: 18px; color: var(--sky-600); }
.sheet-sol a:hover, .sheet-sol a[aria-current] { background: var(--line-soft); }
.sheet-row { display: flex; gap: 8px; padding: 8px 4px 4px; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.sheet-row > a { flex: 1; justify-content: center; }
.sheet-login { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 800; color: #475569; background: #fff; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } }
.nav-sheet.is-out { animation: sheetOut .2s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
@keyframes sheetOut { to { opacity: 0; transform: translateY(-6px); } }

/* ---------- chapter rail ---------- */
.rail {
  position: fixed; right: 22px; top: 50%; z-index: 40; transform: translateY(-50%);
  display: none; flex-direction: column; gap: 6px; align-items: flex-end;
}
.rail a { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.rail a::after {
  content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--soft); opacity: .55;
  transition: height .4s var(--ease), background-color .3s, opacity .3s;
}
.rail span {
  font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .3s var(--ease);
  pointer-events: none;
}
.rail a:hover span { opacity: 1; transform: none; }
body.in-gallery .rail { opacity: 0; pointer-events: none; }
.rail { transition: opacity .4s; }
.rail a.is-a::after { height: 22px; background: linear-gradient(var(--blue), var(--em)); opacity: 1; }
.rail a:not(.is-a) span { opacity: 0; }
.rail a:not(.is-a):hover span { opacity: 1; transform: none; }
@media (min-width: 1500px) { .rail { display: flex; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s),
  box-shadow .6s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease); }   /* hover shadows/borders of revealed cards stay smooth */
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   HERO v5 — full height, the real product: menu → notifications → panel
   ========================================================================== */
:root {
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);
  --e-soft: cubic-bezier(.45, 0, .2, 1);
}
.hero5 {
  position: relative; isolation: isolate; overflow-x: clip;
  min-height: calc(100svh - 106px); display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 0;
}
.h5-bg { position: absolute; inset: -140px 0 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
  background:
    radial-gradient(640px 480px at 76% 46%, rgba(61, 169, 252, .16), transparent 70%),
    radial-gradient(520px 420px at 92% 80%, rgba(16, 185, 129, .1), transparent 70%); }
/* hero copy: a CSS entrance that starts with the first paint (no waiting for JS) and never from fully
   transparent, so the headline counts as painted at once (Largest Contentful Paint) */
.hero5 .in-seq { animation: h5in 1s var(--e-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes h5in { from { opacity: .3; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.h5-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.h5-copy { display: grid; justify-items: start; }
.h5-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 650; color: var(--muted); }
.h5-eyebrow .eb-m { display: none; }
@media (max-width: 700px) { .h5-eyebrow .eb-d { display: none; } .h5-eyebrow .eb-m { display: inline; } }
.h5-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--em); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.h5-title { margin-top: 22px; font-size: clamp(33px, 3.25vw, 45px); line-height: 1.1; font-weight: 900; letter-spacing: -.032em; color: var(--ink); text-wrap: balance; }
/* the second line of the title changes with the demo's chapter: the phrases share one grid cell, so the line
   always takes the height of the longest one (nothing below moves) and they cross-fade */
.h5-rot { display: grid; }
.h5-ph { grid-area: 1 / 1; opacity: 0; transform: translateY(.22em); filter: blur(5px); transition: opacity .7s ease, transform .9s var(--e-out), filter .7s ease; }
.h5-ph.on { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .h5-ph { transition: none; transform: none; filter: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h5-grad { display: block; margin-top: .06em; text-wrap: balance; background: linear-gradient(92deg, #0369a1 0%, #0284c7 50%, #047857 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .07em; }   /* darker stops: ≥4.5:1 on the hero background, easy to read */
.h5-sub { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 32em; text-wrap: balance; }   /* even lines: never one word alone on the last line */
.h5-inc { display: grid; gap: 12px; margin-top: 26px; }
.h5-inc li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; font-weight: 650; color: var(--text); }
.h5-inc .ic { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 99px; background: var(--em-50); color: var(--em-600); stroke-width: 3; }
.h5-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.h5-primary { padding: 15px 26px; border-radius: 15px; font-size: 16.5px; }
/* secondary call to action: a quiet outlined button, same height as the primary one */
.h5-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 20px 14px 22px; border-radius: 15px;
  font-size: 16.5px; font-weight: 750; line-height: 1.2; color: var(--sky-700); background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .25s var(--ease); }
.h5-link .ic { font-size: 18px; transition: transform .5s var(--e-out); }
.h5-link:hover { background: var(--sky-50); border-color: var(--sky-200); box-shadow: 0 8px 22px -10px rgba(2, 132, 199, .35); }
.h5-link:hover .ic { transform: translateX(3px); }
.h5-link:active { transform: translateY(1px); }
.h5-terms { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--soft); }

/* visual: fixed natural composition scaled to the column */
.h5-visual { position: relative; }
.h5-fit { position: relative; width: 100%; aspect-ratio: 720 / 664; max-height: 770px; }   /* the space main.js (fitC) will give the mockup, reserved from the first paint */
@media (min-width: 1101px) { .h5-fit { max-height: min(770px, max(440px, calc(100vh - 170px))); } }
.js .c5:not([style*="scale"]) { visibility: hidden; }   /* until main.js has scaled it */
.h5-visual, .h5-fit { min-width: 0; }   /* the reserved aspect ratio must never widen the grid column */
.c5 { position: absolute; left: 50%; top: 0; width: 720px; height: 664px; transform-origin: top center; transition: opacity .45s ease; }
.c5.x-fade { opacity: 0; }
.h5-pause { position: absolute; right: 4px; bottom: -6px; z-index: 6; width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); color: var(--text); font-size: 13px; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
.h5-pause .ic { grid-area: 1 / 1; stroke-width: 2.2; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--e-out); }
.h5-pause[data-state="pause"] .ic:nth-child(1), .h5-pause[data-state="play"] .ic:nth-child(2), .h5-pause[data-state="replay"] .ic:nth-child(3) { opacity: 1; transform: none; }

/* ---------- browser: incoming orders ---------- */
.c5-browser { position: absolute; left: 150px; top: 92px; width: 570px; height: 440px; border-radius: 18px; overflow: hidden; background: #f8fafc; border: 1px solid var(--line); box-shadow: 0 40px 80px rgba(15, 23, 42, .12), 0 10px 24px rgba(15, 23, 42, .05); display: flex; flex-direction: column; }
.b5-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line-soft); flex: none; }
.b5-url { flex: 1; display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 7px; background: #f8fafc; border: 1px solid var(--line); font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.b5-url .ic { color: var(--em-600); font-size: 11px; }
.b5-url b { color: var(--ink); font-weight: 700; }
.b5-body { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 8px; }
.b5-side { width: 128px; flex: none; display: flex; flex-direction: column; gap: 7px; }
.b5-logo, .b5-nav, .b5-top, .o5 { background: #fff; border: 1px solid var(--line); }
.b5-logo { height: 34px; border-radius: 11px; display: flex; align-items: center; gap: 6px; padding: 0 9px; }
.b5-logo img { width: 18px; height: 18px; }
.b5-logo .lm { width: 18px; height: 18px; flex: none; }
.b5-logo b { font-family: "Arial Black", "Inter", sans-serif; font-size: 10.5px; color: var(--brand); }
.b5-logo i { font-style: normal; color: var(--blue); }
.b5-nav { flex: 1; border-radius: 11px; padding: 5px; display: flex; flex-direction: column; gap: 1px; }
.b5-nav small { font-size: 8.5px; color: var(--soft); padding: 5px 7px 1px; }
.b5-nav span { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 8px; border: 1px solid transparent; font-size: 10px; color: #334155; white-space: nowrap; }
.b5-nav .ic { font-size: 12px; color: #475569; }
.b5-nav span.is-a { background: #f8fafc; border-color: var(--line); font-weight: 700; color: var(--ink); }
.b5-req em { margin-left: auto; min-width: 15px; height: 15px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 8.5px; font-weight: 800; background: var(--rose); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s var(--spring); }

.b5-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.b5-top { height: 34px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.b5-top b { font-size: 11.5px; font-weight: 800; }
.b5-top > span { display: flex; align-items: center; gap: 10px; color: #475569; font-size: 12px; }
.b5-top img { width: 13px; height: 13px; border-radius: 99px; }
.b5-bell { position: relative; display: grid; }
.b5-bell i { position: absolute; top: -2px; right: -2px; width: 6px; height: 6px; border-radius: 99px; background: var(--rose); opacity: 0; transition: opacity .3s; }
.c5.x-s-new .b5-bell i { opacity: 1; }
.c5.x-s-new .b5-bell .ic { animation: ring 1.4s ease-in-out; transform-origin: 50% 10%; }
.b5-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; }
.b5-head > span:first-child { display: grid; line-height: 1.3; }
.b5-head b { font-size: 11.5px; font-weight: 800; }
.b5-head small { font-size: 9px; color: var(--muted); }
.b5-ring { width: 26px; height: 26px; border-radius: 99px; border: 2px solid var(--em); display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: var(--em-700); }
.c5.x-s-new .b5-ring { animation: ringPulse .9s ease-out; }
.b5-tabs { display: flex; gap: 4px; }
.b5-tabs i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 9px; font-weight: 600; color: #475569; white-space: nowrap; }
.b5-tabs i.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.b5-tabs em { font-style: normal; font-size: 8px; padding: 0 5px; border-radius: 99px; background: var(--line-soft); color: var(--ink); }
.b5-tabs i.on em { background: rgba(255, 255, 255, .18); color: #fff; }
.b5-list { position: relative; display: grid; gap: 9px; padding-top: 6px; }
.o5 { position: relative; display: grid; gap: 3px; padding: 11px 11px 8px; border-radius: 11px; transition: border-color .6s var(--e-soft), box-shadow .6s var(--e-soft); }
.o5-top { position: absolute; left: 8px; top: -8px; display: flex; align-items: center; gap: 4px; }
.o5-top > b, .o5-top > small, .o5-st i { display: inline-flex; align-items: center; gap: 3px; height: 15px; padding: 0 6px; border-radius: 99px; font-size: 8px; font-style: normal; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.o5-top > b { color: var(--ink); font-weight: 800; }
.o5-top .ic { font-size: 8px; }
.o5-st { display: inline-grid; }
.o5-st i { grid-area: 1 / 1; font-weight: 800; transition: opacity .45s var(--e-soft), transform .5s var(--e-out); }
.st-n { background: var(--am-50) !important; border-color: var(--am-200) !important; color: var(--am-700) !important; }
.st-p { background: var(--sky-50) !important; border-color: var(--sky-200) !important; color: var(--sky-700) !important; }
.st-r { background: var(--vio-50) !important; border-color: #ddd6fe !important; color: var(--vio-700) !important; }
.st-done { background: var(--em-50) !important; border-color: var(--em-200) !important; color: var(--em-700) !important; }
.o5-new .st-p, .o5-new .st-r { opacity: 0; transform: translateY(4px); }
.c5.x-s-prep .o5-new .st-n, .c5.x-s-ready .o5-new .st-n, .c5.x-s-ready .o5-new .st-p { opacity: 0; transform: translateY(-4px); }
.c5.x-s-prep .o5-new .st-p, .c5.x-s-ready .o5-new .st-r { opacity: 1; transform: none; }
.o5-mid { display: flex; align-items: center; gap: 8px; }
.o5-mid > span { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.o5-mid b { font-size: 11px; font-weight: 700; }
.o5-mid small { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o5-mid em { font-style: normal; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.o5-by { display: flex; align-items: center; gap: 4px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line-soft); font-size: 9px; color: var(--muted); }
.o5-by .ic { color: var(--em-600); font-size: 10px; }
.o5-by b { margin-left: auto; color: var(--em-700); font-weight: 800; }
/* the new order slides in */
.o5-new { margin-top: -96px; opacity: 0; transform: translateY(-12px) scale(.98); transition: margin .9s var(--e-io), opacity .7s var(--e-soft), transform .9s var(--e-out), border-color .6s, box-shadow .6s; }
.c5.x-s-new .o5-new { margin-top: 0; opacity: 1; transform: none; border-color: var(--em-200); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12), 0 12px 26px rgba(16, 185, 129, .12); }
.c5.x-s-ready .o5-new { border-color: #ddd6fe; box-shadow: 0 0 0 3px rgba(139, 92, 246, .1), 0 12px 26px rgba(139, 92, 246, .1); }

/* ---------- phone: the real menu ---------- */
.c5-phone { position: absolute; left: 0; top: 156px; z-index: 3; width: 250px; height: 504px; padding: 8px; border-radius: 42px;
  background: linear-gradient(160deg, #334155, #0f172a 40%, #1e293b);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 44px 80px rgba(15, 23, 42, .26), 0 12px 24px rgba(15, 23, 42, .12); }
.p5-island { position: absolute; z-index: 5; left: 50%; top: 17px; width: 76px; height: 22px; translate: -50% 0; border-radius: 20px; background: #05080f; }
.p5-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f8fafc; }
.p5-scroll { position: absolute; left: 0; right: 0; top: 0; padding-top: 34px; will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; transition: transform 1.5s cubic-bezier(.42, 0, .2, 1); }
.p5-scroll img { display: block; width: 100%; height: auto; }
.p5-status { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 34px; padding: 2px 18px 0 26px; }
.p5-status.ios-sb b { font-size: 11.5px; }
.p5-status.ios-sb svg { width: 46px; height: 9px; }
.p5-dock { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; height: 40px; display: flex; align-items: center; justify-content: space-evenly; border-radius: 99px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(219, 231, 243, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); color: var(--ink); font-size: 17px; }
.p5-cart { position: relative; display: grid; }
.p5-badge { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--em); color: #fff; font-style: normal; font-size: 9px; font-weight: 900; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--spring); }
.p5-badge b { grid-area: 1 / 1; opacity: 0; }
.c5.x-c1 .p5-badge, .c5.x-c2 .p5-badge, .c5.x-c3 .p5-badge { opacity: 1; transform: none; }
.c5.x-c1 .p5-badge b:nth-child(1), .c5.x-c2 .p5-badge b:nth-child(2), .c5.x-c3 .p5-badge b:nth-child(3) { opacity: 1; }
.c5.x-bump .p5-cart .ic { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-8deg); } }
.p5-toast { position: absolute; left: 50%; bottom: 62px; z-index: 2; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 7px 11px 7px 8px; border-radius: 99px; background: var(--ink); color: #fff; white-space: nowrap; font-size: 10px; box-shadow: 0 10px 22px rgba(15, 23, 42, .25); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--e-soft), transform .45s var(--e-out); }
.p5-toast .ic { width: 16px; height: 16px; padding: 3px; border-radius: 99px; background: var(--em); stroke-width: 3; }
.p5-toast small { color: #94a3b8; font-weight: 600; }
.p5-tt { display: inline-grid; font-weight: 800; }
.p5-tt b { grid-area: 1 / 1; opacity: 0; }
.c5.x-c1 .p5-tt b:nth-child(1), .c5.x-c2 .p5-tt b:nth-child(2), .c5.x-c3 .p5-tt b:nth-child(3) { opacity: 1; }
.c5.x-toast .p5-toast { opacity: 1; transform: none; }
.p5-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 16px 16px; border-radius: 26px 26px 34px 34px; background: #fff; box-shadow: 0 -18px 40px rgba(15, 23, 42, .18); transform: translateY(105%); transition: transform .9s var(--e-out); }
.c5.x-sheet .p5-sheet { transform: none; }
.p5-sheet { z-index: 5; }
.p5-grab { display: block; width: 34px; height: 4px; margin: 0 auto 10px; border-radius: 99px; background: #e2e8f0; }
.p5-sh-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.p5-sh-h b { font-size: 13px; font-weight: 800; line-height: 1.25; }
.p5-sh-h small { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; background: var(--sky-50); color: var(--sky-700); font-size: 9.5px; font-weight: 800; }
.p5-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: var(--text); }
.p5-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.p5-total { display: flex; justify-content: space-between; padding: 9px 0 10px; font-size: 12.5px; font-weight: 800; }
.p5-send { position: relative; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; overflow: hidden; transition: transform .2s var(--e-out), background-color .5s var(--e-soft); }
.p5-send span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity .4s var(--e-soft), transform .5s var(--e-out); }
.p5-send .s2 { opacity: 0; transform: translateY(100%); }
.c5.x-press .p5-send { transform: scale(.95); }
.c5.x-sent .p5-send { background: var(--em); }
.c5.x-sent .p5-send .s1 { opacity: 0; transform: translateY(-100%); }
.c5.x-sent .p5-send .s2 { opacity: 1; transform: none; }
.c5.x-sent .p5-send .ic { stroke-width: 2.8; }


.h5-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 24px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset, 0 18px 44px rgba(15, 23, 42, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
@media (min-width: 1001px) { .h5-grid { flex: 0 1 auto; } }   /* the hero no longer stretches on tall screens: the stats stay right under the buttons */
.hs { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 24px; transition: background-color .5s cubic-bezier(.45, 0, .2, 1); }
.hs + .hs::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, var(--line), transparent); }
.hs:hover { background: rgba(240, 249, 255, .7); }
.m-sky { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-600); }
.m-ind { background: var(--ind-50); border-color: var(--ind-200); color: var(--ind-700); }
.m-am { background: var(--am-50); border-color: var(--am-200); color: var(--am-700); }
.m-em { background: var(--em-50); border-color: var(--em-200); color: var(--em-600); }
.m-rose { background: var(--rose-50); border-color: var(--rose-200); color: var(--rose-700); }
.hs-ic { width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center; font-size: 22px; border: 1px solid; transition: transform .6s var(--spring); }
.hs:hover .hs-ic { transform: rotate(-6deg) scale(1.08); }
.hs-t { display: grid; gap: 3px; min-width: 0; }
.hs-n { font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(92deg, var(--ink) 30%, #0369a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs small { font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--muted); }

/* ---------- chapter switches + cursor ---------- */
.c5-chap { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(15, 23, 42, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ch { display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 8px; border-radius: 14px; text-align: left; border: 1px solid transparent; transition: background-color .5s var(--e-soft), border-color .5s var(--e-soft), box-shadow .5s var(--e-soft); }
.ch:hover { background: rgba(248, 250, 252, .9); }
.ch.is-cur { background: #fff; border-color: var(--line); box-shadow: 0 6px 16px rgba(15, 23, 42, .06); }
.ch-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 16px; border: 1px solid; filter: grayscale(1); opacity: .55; transition: filter .5s, opacity .5s; }
.ch.is-on .ch-ic { filter: none; opacity: 1; }
.ch-t { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.ch-t b { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.ch-t small { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chsw { position: relative; width: 32px; height: 19px; flex: none; border-radius: 99px; background: #cbd5e1; transition: background-color .45s var(--e-soft); }
.chsw i { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .5s var(--spring); }
.ch.is-on .chsw { background: var(--em); }
.ch.is-on .chsw i { transform: translateX(13px); }
.c5-cur { position: absolute; left: 0; top: 0; z-index: 9; width: 26px; height: 26px; pointer-events: none; opacity: 0; transition: transform 1s var(--e-io), opacity .4s var(--e-soft); filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .25)); }
.c5-cur svg { width: 26px; height: 26px; }
.c5-cur i { position: absolute; left: 3px; top: 1px; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 99px; background: rgba(16, 185, 129, .35); transform: scale(0); opacity: 0; }
.c5-cur.on { opacity: 1; }
.c5-cur.click svg { animation: curPress .3s var(--e-out); }
.c5-cur.click i { animation: curRip .7s var(--e-out); }
@keyframes curPress { 50% { transform: scale(.82); } }
@keyframes curRip { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- panel: dashboard ↔ orders ---------- */
.b5-main { display: grid; grid-template-rows: 34px minmax(0, 1fr); gap: 8px; }
.b5-dash, .b5-orders { grid-area: 2 / 1; min-height: 0; transition: opacity .7s var(--e-soft), transform .9s var(--e-out); }
.b5-orders { display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(12px); pointer-events: none; }
.c5.x-on-orders .b5-orders { opacity: 1; transform: none; }
.c5.x-on-orders .b5-dash { opacity: 0; transform: translateY(-10px); }
.b5-title { display: inline-grid; }
.b5-title b { grid-area: 1 / 1; transition: opacity .4s var(--e-soft); }
.b5-title .tt-o { opacity: 0; }
.c5.x-on-orders .b5-title .tt-o { opacity: 1; }
.c5.x-on-orders .b5-title .tt-d { opacity: 0; }
.b5-nav span:first-child { transition: background-color .4s, border-color .4s; }
.c5:not(.x-on-orders) .b5-nav span:first-child { background: #f8fafc; border-color: var(--line); font-weight: 700; color: var(--ink); }
.c5:not(.x-on-orders) .b5-nav span.is-a { background: none; border-color: transparent; font-weight: 400; color: #334155; }
.d5-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d5-stats > span { display: grid; gap: 2px; padding: 9px 10px; border-radius: 11px; background: #fff; border: 1px solid var(--line); }
.d5-stats i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; border: 1px solid; margin-bottom: 4px; }
.d5-stats small { font-size: 9px; color: var(--muted); font-weight: 600; }
.d5-stats b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.d5-scans { transition: color .3s; }
.d5-scans.tick { color: var(--em-600); }
.d5-card { margin-top: 8px; padding: 11px 12px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; gap: 9px; }
.d5-h { display: flex; justify-content: space-between; align-items: center; }
.d5-h b { font-size: 11px; font-weight: 800; }
.d5-h small { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; color: var(--em-700); }
.d5-live { width: 6px; height: 6px; border-radius: 99px; background: var(--em); animation: blink 1.4s ease-in-out infinite; }
.d5-row { display: flex; align-items: center; gap: 9px; font-size: 10.5px; }
.d5-th { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: var(--text); flex: none; }
.d5-row b { width: 120px; font-weight: 700; }
.d5-row em { flex: 1; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.d5-row u { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--em)); transform-origin: left; transform: scaleX(.15); transition: transform 1.6s var(--e-io); }
.c5.x-on-menu .d5-row u { transform: none; }
.c5.x-on-menu .d5-row.r2 u { transition-delay: .2s; }
.c5.x-on-menu .d5-row.r3 u { transition-delay: .4s; }
.c5.x-on-menu .d5-row.r4 u { transition-delay: .6s; }

/* ---------- phone: dock buttons appear when a feature is switched on ---------- */
.p5-cart, .p5-call { display: none; place-items: center; }
.c5.x-on-orders .p5-cart, .c5.x-on-notif .p5-call { display: grid; animation: dockIn .6s var(--spring) both; }
@keyframes dockIn { from { opacity: 0; transform: scale(.4); } }
.p5-call { color: var(--vio-700); }
.p5-svc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 10px 14px 16px; border-radius: 26px 26px 34px 34px; background: #fff; box-shadow: 0 -18px 40px rgba(15, 23, 42, .18); transform: translateY(105%); transition: transform .9s var(--e-out); }
.c5.x-svc .p5-svc { transform: none; }
.p5-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sv { position: relative; overflow: hidden; height: 66px; padding: 9px; border-radius: 15px; display: grid; align-content: space-between; font-size: 10.5px; font-weight: 800; line-height: 1.2; border: 1px solid; transition: transform .25s var(--e-out); }
.sv .ic { font-size: 18px; }
.c5.x-svc-tap .sv-call { transform: scale(.94); }
.sv-rip { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 99px; background: rgba(139, 92, 246, .35); transform: scale(0); opacity: 0; }
.c5.x-svc-tap .sv-rip { animation: rip2 .9s ease-out; }
@keyframes rip2 { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
.p5-svc-ok { display: flex; align-items: center; justify-content: center; gap: 6px; height: 0; margin-top: 0; overflow: hidden; border-radius: 12px; background: var(--vio-50); color: var(--vio-700); font-size: 11px; font-weight: 800; opacity: 0; transition: height .6s var(--e-io), margin .6s var(--e-io), opacity .5s var(--e-soft); }
.c5.x-svc-ok .p5-svc-ok { height: 36px; margin-top: 9px; opacity: 1; }
.p5-svc-ok .ic { stroke-width: 2.8; }


/* phone veils: "menu off" frost + a light veil behind bottom sheets */
.p5-off { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(248, 250, 252, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); transition: filter .9s var(--e-soft), visibility 0s .9s; }
.p5-off span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); font-size: 11px; font-weight: 800; color: var(--muted); }
.p5-off .ic { font-size: 15px; color: var(--sky-600); }
.c5.x-on-menu .p5-off { filter: opacity(0); visibility: hidden; }   /* filter, not opacity: same fade, and the label keeps its real contrast */
.p5-veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(15, 23, 42, .1)); opacity: 0; transition: opacity .8s var(--e-soft); }
.c5.x-sheet .p5-veil, .c5.x-svc .p5-veil { opacity: 1; }

/* choreography: alone in the centre for the menu, slides left when the panel joins */
.c5-phone { transform: translate3d(235px, 0, 0); transition: transform 1.4s cubic-bezier(.65, 0, .25, 1); }
.c5.x-on-orders .c5-phone { transform: none; }
.c5-browser { opacity: 0; transform: translate3d(-48px, 10px, 0) scale(.965); transform-origin: left center; transition: opacity 1s var(--e-soft) .3s, transform 1.4s cubic-bezier(.65, 0, .25, 1) .15s; }
.c5.x-on-orders .c5-browser { opacity: 1; transform: none; }

/* notifications: colored so nobody misses them */
.n5[data-n="0"] { background: linear-gradient(135deg, #7c3aed, #6366f1); border-color: rgba(255, 255, 255, .25); box-shadow: 0 18px 40px rgba(99, 102, 241, .38); }
.n5[data-n="1"] { background: linear-gradient(135deg, #059669, #10b981); border-color: rgba(255, 255, 255, .25); box-shadow: 0 18px 40px rgba(16, 185, 129, .38); }
.n5[data-n] > span > b { color: #fff; }
.n5[data-n] > span > small { color: rgba(255, 255, 255, .85); }
.n5[data-n] .n5-h b { color: rgba(255, 255, 255, .75) !important; }
.n5[data-n] .n5-h small { color: rgba(255, 255, 255, .7); }
.n5 img { box-shadow: none; }
.n5::after { content: ""; position: absolute; inset: -2px; border-radius: 22px; border: 2px solid currentColor; opacity: 0; pointer-events: none; }
.n5[data-n="0"] { color: #8b5cf6; }
.n5[data-n="1"] { color: #10b981; }
.n5.on[data-pos="0"]::after { animation: notePulse 1.6s var(--e-out) .35s 2; }
@keyframes notePulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }

/* ---------- notifications (iOS style) ---------- */
.c5-notes { position: absolute; left: 392px; top: 540px; z-index: 4; width: 320px; height: 100px; }
.n5 { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 10px; padding: 11px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16), 0 0 0 .5px rgba(15, 23, 42, .06);
  opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .7s var(--e-soft), transform .9s var(--e-out); }
.n5 img { width: 32px; height: 32px; padding: 4px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.n5 .lm { width: 32px; height: 32px; flex: none; }
/* on the coloured notifications the mark turns white; its S and lines take the notification's colour (as app icons do on tinted banners) */
.n5[data-n] .lm .lm-body, .n5[data-n] .lm .lm-sfill { fill: #fff; }
.n5[data-n] .lm .lm-l { fill: currentColor; }
.n5[data-n] .lm { filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .18)); }
.n5 > span { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.n5-h { display: flex; justify-content: space-between; margin-bottom: 1px; }
.n5-h b { font-size: 9.5px !important; font-weight: 700 !important; letter-spacing: .04em; color: var(--muted) !important; }
.n5-h small { font-size: 9.5px; color: var(--soft); }
.n5 > span > b { font-size: 12px; font-weight: 800; color: var(--ink); }
.n5 > span > small { font-size: 10.5px; color: var(--muted); }
.n5 { transform-origin: top center; }
.n5.on { opacity: var(--o, 1); transform: translateY(var(--y, 0px)) scale(var(--s, 1)); }
.n5 > * { transition: opacity .5s; }
.n5.on:not([data-pos="0"]) > * { opacity: 0; }

/* labels */
.c5-tag { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(15, 23, 42, .06); font-size: 11px; font-weight: 750; color: var(--text); }
.c5-tag i { width: 6px; height: 6px; border-radius: 99px; background: var(--em); }

.h5-bottom { position: relative; padding-top: 28px; }
.h5-next { position: absolute; left: 50%; bottom: -20px; translate: -50% 0; width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); color: var(--muted); font-size: 17px; }
.h5-next .ic { animation: nudge 2.4s var(--e-io) infinite; }

@media (max-width: 1240px) { .h5-grid { gap: 32px; } }
@media (max-width: 1100px) {
  .hero5 { min-height: 0; padding-top: 40px; }
  .h5-grid { grid-template-columns: 1fr; gap: 44px; }
  .h5-copy { justify-items: center; text-align: center; }
  .h5-grad { margin-inline: auto; }
  .h5-sub { margin-inline: auto; }
  .h5-inc { text-align: left; }
  .h5-cta { justify-content: center; }
  .h5-visual { width: min(720px, 100%); margin-inline: auto; }
  .h5-bottom { padding-top: 40px; }
}
@media (max-width: 700px) {
  .hero5 { padding-top: 28px; }
  .h5-eyebrow { font-size: 13px; }
  .h5-title { margin-top: 14px; font-size: clamp(22px, 6.9vw, 42px); }
  .h5-sub { font-size: 15px; margin-top: 14px; }
  .h5-inc { margin-top: 18px; gap: 8px; }
  .h5-inc li { font-size: 13.5px; }
  .h5-cta { flex-direction: column; gap: 14px; width: 100%; margin-top: 26px; }
  .h5-primary, .h5-link { width: 100%; }
  .h5-terms { font-size: 12.5px; }
  /* phone-first composition: the phone, with the notifications landing on top */
  .c5 { width: 360px; height: 640px; }
  .c5-browser { display: none; }
  .c5-chap { gap: 4px; padding: 5px; }
  .ch { flex-direction: column; gap: 6px; padding: 8px 4px; text-align: center; }
  .ch-t small { display: none; }
  .ch-ic { display: none; }
  .c5-phone { left: 55px; top: 106px; transform: none !important; }
  .c5-notes { left: 14px; top: 156px; width: 332px; }
  .h5-pause { bottom: 0; }
      }
@media (max-width: 1100px) {
  .h5-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs:nth-child(3)::before { display: none; }
  .hs:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 520px) {
  .hs { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .hs-ic { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
  .hs-n { font-size: 24px; }
  .hs small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero5 .in-seq { animation: none; }
  .p5-scroll { transition: none; }
}

/* ==========================================================================
   DEVICES (fixed natural size, scaled by JS to fit)
   ========================================================================== */
.stage-fit { position: relative; width: 100%; transition: height .5s var(--ease); }
.stage-fit .device { position: absolute; left: 50%; top: 0; transform-origin: top center; }

.device { flex: none; }
.phone {
  width: 300px; height: 612px; padding: 9px; border-radius: 48px;
  background: linear-gradient(160deg, #334155, #0f172a 40%, #1e293b);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px rgba(15, 23, 42, .22), 0 12px 24px rgba(15, 23, 42, .12);
}
.phone .screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone.dark .screen { background: #0b1220; color: #e2e8f0; }
.phone-island { position: absolute; z-index: 6; left: 50%; top: 18px; width: 90px; height: 26px; translate: -50% 0; border-radius: 20px; background: #05080f; }

.tablet {
  width: 620px; height: 412px; padding: 12px; border-radius: 30px;
  background: linear-gradient(160deg, #334155, #0f172a 40%, #1e293b);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px rgba(15, 23, 42, .22);
}
.tablet .screen { position: relative; height: 100%; border-radius: 19px; overflow: hidden; background: #f1f5f9; display: flex; flex-direction: column; }

.browser {
  width: 660px; height: 480px; border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(15, 23, 42, .14), 0 10px 24px rgba(15, 23, 42, .06);
  display: flex; flex-direction: column;
}

/* app header (customer menu) */
.app-head { display: flex; align-items: center; gap: 9px; padding: 52px 14px 11px; border-bottom: 1px solid var(--line-soft); flex: none; }
.app-avatar {
  width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--sky), var(--em));
  box-shadow: 0 6px 14px rgba(14, 165, 233, .3);
}
.app-venue { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.app-venue b { font-size: 14px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-venue small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 700; }
.app-venue small .ic { color: var(--sky-600); }
.app-lang {
  display: inline-flex; align-items: center; padding: 4px 8px 4px 4px; border-radius: 99px;
  border: 1px solid var(--line); font-size: 11px; font-weight: 800; color: var(--text); flex: none;
}
.app-lang img { width: 18px; height: 18px; border-radius: 99px; }
.app-head.dark { border-color: rgba(255, 255, 255, .07); }
.app-head.dark .app-venue small { color: #94a3b8; }
.app-avatar.staff { background: linear-gradient(135deg, var(--ind), var(--vio)); box-shadow: 0 6px 14px rgba(99, 102, 241, .35); }
.app-lang.staff { position: relative; width: 34px; height: 34px; justify-content: center; padding: 0; border-color: rgba(255, 255, 255, .12); color: #e2e8f0; font-size: 16px; }
.app-lang.staff em { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--rose); color: #fff; font-style: normal; font-size: 10px; display: grid; place-items: center; border: 2px solid #0b1220; }
.online { width: 7px; height: 7px; border-radius: 99px; background: var(--em); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); display: inline-block; }

.scenes { position: relative; flex: 1; min-height: 0; }
.scene {
  position: absolute; inset: 0; padding: 12px 14px;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.985);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s;
}
.scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .08s, transform .6s var(--ease) .08s, visibility 0s; }

.sec-title { font-size: 13px; font-weight: 900; color: var(--ink); margin: 2px 2px 10px; letter-spacing: -.005em; }
.phone.dark .sec-title { color: #f8fafc; }
.sc-badge {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: 14px; font-size: 11.5px; font-weight: 800;
  background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-200);
}
.sc-badge .ic { font-size: 15px; }
.sc-badge.dark { background: rgba(99, 102, 241, .12); color: #c7d2fe; border-color: rgba(129, 140, 248, .25); }
.tint-emerald .sc-badge { background: var(--em-50); color: var(--em-700); border-color: var(--em-200); }

/* tabs & items */
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--line-soft); margin-bottom: 10px; }
.tab { position: relative; z-index: 1; flex: 1; text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 6px 2px; border-radius: 10px; white-space: nowrap; }
.tab.is-a { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 20px) / 4); border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.tabs.mini .tab { font-size: 10.5px; }

.items { display: grid; gap: 7px; }
.item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 15px;
  background: #fff; border: 1px solid var(--line-soft); box-shadow: 0 4px 12px rgba(15, 23, 42, .035);
}
.thumb { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.t-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: var(--am-700); }
.t-emerald { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--em-700); }
.t-sky { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: var(--sky-700); }
.t-rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: var(--rose-700); }
.t-violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: var(--vio-700); }
.it-body { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.it-body b { font-size: 12.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-body small { font-size: 10.5px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-size: 12.5px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* hero phone */
.hero-menu { padding: 10px 12px; display: grid; gap: 9px; }
.hm-cover {
  position: relative; overflow: hidden; border-radius: 18px; padding: 14px; height: 92px;
  background:
    radial-gradient(120px 80px at 85% 20%, rgba(255, 255, 255, .35), transparent 70%),
    linear-gradient(135deg, #0ea5e9, #0369a1 55%, #0f766e);
  color: #fff; display: grid; align-content: end;
}
.hm-cover::after {
  content: ""; position: absolute; right: -12px; bottom: -22px; width: 130px; height: 70px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 0 22px rgba(255, 255, 255, .05);
}
.hm-cover-title { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.hm-cover-sub { font-size: 11px; opacity: .85; font-weight: 600; }
.hero-menu .tabs { margin: 0; }
.hero-menu .items { gap: 6px; }
.al { display: flex !important; gap: 4px; margin-top: 2px; }
.al-dot { width: 14px; height: 14px; border-radius: 5px; display: block; }
.a-milk { background: #e0f2fe; box-shadow: inset 0 0 0 1px #bae6fd; }
.a-grain { background: #fef3c7; box-shadow: inset 0 0 0 1px #fde68a; }
.a-none { width: 30px; background: var(--line-soft); }
.tagline { display: inline-flex !important; align-items: center; gap: 4px; color: var(--em-700) !important; font-weight: 800 !important; }
.tagline.am { color: var(--am-700) !important; }
.hp-price { position: relative; display: inline-grid; }
.hp-price > span { grid-area: 1 / 1; transition: opacity .4s, transform .5s var(--ease); text-align: right; }
.hp-new { opacity: 0; transform: translateY(8px); color: var(--em-700); }
.hero-phone.price-up .hp-old { opacity: 0; transform: translateY(-8px); }
.hero-phone.price-up .hp-new { opacity: 1; transform: none; }
.hero-phone.price-up .hp-price { animation: flash 1.2s var(--ease); border-radius: 6px; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .15); } 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); background: transparent; } }
[data-hero-i18n] { transition: opacity .3s, filter .3s; }
.swap-out { opacity: 0 !important; filter: blur(4px); }
.hm-service { display: flex; gap: 6px; margin-top: 2px; }
.hm-service button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 13px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; cursor: default;
}
.hm-service button.alt { flex: none; width: 40px; background: var(--em-50); color: var(--em-700); border: 1px solid var(--em-200); font-size: 16px; }
.hm-service .ic { font-size: 16px; }

/* ==========================================================================
   KNOT
   ========================================================================== */
.knot { position: relative; height: 320vh; margin-top: 8px; --night: 1; }
/* light divider between the hero and the knot */
.knot-divider { position: relative; z-index: 2; width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin: 72px auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent); }
.knot-divider span { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(15, 23, 42, .05); font-size: 12.5px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.knot-divider img { width: 24px; height: 24px; padding: 3px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.knot-divider .lm { width: 22px; height: 22px; flex: none; }
.knot-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  background: transparent;
  color: var(--ink);
}
.knot-pin::before, .knot-pin::after { -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 70%, transparent); }
.knot-pin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--night);
  background:
    radial-gradient(640px 300px at 50% 52%, rgba(244, 63, 94, .08), transparent 70%),
    radial-gradient(500px 300px at 10% 0%, rgba(245, 158, 11, .06), transparent 70%);
}
.knot-pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--night));
  background:
    radial-gradient(700px 320px at 50% 50%, rgba(14, 165, 233, .12), transparent 70%),
    radial-gradient(600px 300px at 90% 100%, rgba(16, 185, 129, .1), transparent 70%);
}
.knot-inner { position: relative; z-index: 1; display: grid; gap: clamp(10px, 2.2vh, 22px); padding-top: calc(var(--nav-h) + 8px); padding-bottom: 18px; }
.knot-head { display: grid; justify-items: center; text-align: center; gap: 14px; }
.kc-chip { display: inline-grid; justify-items: center; }
.kc-chip > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; transition: opacity .5s, transform .6s var(--ease); }
.kc-chip .ic { font-size: 15px; }
.kcc-b { opacity: 0; transform: translateY(6px); }
.knot.is-day .kcc-a { opacity: 0; transform: translateY(-6px); }
.knot.is-day .kcc-b { opacity: 1; transform: none; }
.knot-clock { background: var(--rose-50); border-color: var(--rose-200); color: var(--rose-700); transition: all .6s var(--ease); }
.knot-clock b { font-variant-numeric: tabular-nums; font-weight: 900; }
.knot-title { position: relative; display: grid; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; font-weight: 900; letter-spacing: -.025em; text-wrap: balance; max-width: 16em; }
.kt, .ks { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s; }
.kt-b, .ks-b { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.knot-sub { display: grid; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36em; transition: color .6s; }

.knot-stage { position: relative; height: clamp(110px, 21vh, 210px); }
.rope { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rope path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rope-shadow { stroke: rgba(15, 23, 42, .12); stroke-width: 12; transform: translateY(5px); filter: blur(3px); }
.rope-main { stroke-width: 7; }
.rope-hi { stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; transform: translateY(-1.6px); }
.rope-nodes circle { fill: #fff; stroke: var(--em); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--spring); }
.rope-nodes circle.on { transform: scale(1); }
.knot-pull {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%;
  border-radius: 20px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(14, 165, 233, .1), 0 18px 40px rgba(15, 23, 42, .14);
  transform: scale(var(--pull, 0)); opacity: var(--pull, 0);
}
.knot-pull img { width: 46px; height: 46px; }
.knot-pull .lm { width: 46px; height: 46px; }
.knot-pull::after {
  content: ""; position: absolute; inset: -14px; border-radius: 26px; border: 2px solid rgba(61, 169, 252, .6);
  animation: pullRing 1.8s ease-out infinite;
}
@keyframes pullRing { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.35); } }

.knot-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* two faces stacked in the same cell: the card never changes size */
.kcard {
  position: relative; display: grid; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--rose-200); box-shadow: 0 8px 22px rgba(244, 63, 94, .06);
  transition: border-color .8s var(--e-soft, ease), box-shadow .8s var(--e-soft, ease);
  animation: jitter 2.6s ease-in-out infinite; animation-play-state: var(--jit, paused);
}
.kcard:nth-child(2) { animation-delay: -.6s; }
.kcard:nth-child(3) { animation-delay: -1.1s; }
.kcard:nth-child(4) { animation-delay: -1.7s; }
.kcard:nth-child(5) { animation-delay: -.3s; }
.kcard:nth-child(6) { animation-delay: -2s; }
@keyframes jitter { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(1px, -1px) rotate(-.3deg); } 75% { transform: translate(-1px, 1px) rotate(.3deg); } }
.kc-face { grid-area: 1 / 1; display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; transition: opacity .7s cubic-bezier(.45, 0, .2, 1), transform .9s cubic-bezier(.22, 1, .36, 1), filter .7s; }
.kc-f { opacity: 0; transform: translateY(14px); filter: blur(4px); background: linear-gradient(180deg, #fff, var(--em-50)); }
.kcard.fixed { border-color: var(--em-200); box-shadow: 0 14px 34px rgba(16, 185, 129, .12); animation: none; }
.kcard.fixed .kc-p { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
.kcard.fixed .kc-f { opacity: 1; transform: none; filter: none; }
.kc-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 19px; }
.kc-p .kc-ic { background: var(--rose-50); color: var(--rose); }
.kc-f .kc-ic { background: #fff; color: var(--em-600); border: 1px solid var(--em-200); }
.kc-txt { flex: 1; display: grid; gap: 4px; line-height: 1.35; min-width: 0; }
.kc-txt b { font-size: 15px; font-weight: 800; color: var(--ink); }
.kc-txt small { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.45; }
.kc-f .kc-txt b { color: var(--em-700); }
.kc-ok { width: 22px; height: 22px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--em); color: #fff; font-size: 13px; transform: scale(0); transition: transform .6s var(--spring) .25s; }
.kc-ok .ic { stroke-width: 3; }
.kcard.fixed .kc-ok { transform: none; }

/* live narration under the rope */
.knot-narr { display: grid; justify-items: center; gap: 10px; margin-top: -6px; }
.kn-line { display: grid; min-height: 28px; }
.kn-t { grid-area: 1 / 1; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-align: center; transition: opacity .45s cubic-bezier(.45, 0, .2, 1), transform .6s cubic-bezier(.22, 1, .36, 1), filter .45s; }
.kn-t.out { opacity: 0; transform: translateY(8px); filter: blur(5px); }
.kn-t em { font-style: normal; background: linear-gradient(90deg, #0369a1, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kn-prog { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.kn-bar { width: 180px; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.kn-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--em)); transform-origin: left; transform: scaleX(var(--kp, 0)); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.kn-count b { color: var(--ink); font-variant-numeric: tabular-nums; }

.knot-foot { position: relative; height: 40px; margin-top: 44px; display: grid; place-items: center; }
.knot-hint, .knot-done { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; transition: opacity .4s, transform .5s var(--ease); }
.knot-hint { color: var(--muted); }
.knot-hint .ic { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.knot-done { padding: 9px 16px; border-radius: 99px; background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; }
.knot.is-untied .knot-done { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.knot.is-untied .knot-hint, .knot.is-day .knot-hint { opacity: 0; }

/* day state (after untie) */
.knot.is-day .knot-pin { color: var(--ink); }
.knot.is-day .kt-a, .knot.is-day .ks-a { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.knot.is-day .kt-b, .knot.is-day .ks-b { opacity: 1; transform: none; filter: none; }
.knot.is-day .knot-sub { color: var(--muted); }
.knot.is-day .knot-clock { background: var(--em-50); border-color: var(--em-200); color: var(--em-700); }
.knot.is-day .rope-shadow { stroke: rgba(15, 23, 42, .12); }
.knot.is-day .knot-pull { box-shadow: 0 0 0 8px rgba(14, 165, 233, .1), 0 18px 40px rgba(15, 23, 42, .14); }

/* ==========================================================================
   FEATURE ACTS — Apple-style "highlights" galleries
   One card per feature; the current card plays its scene, a frosted control
   pill shows progress (dot → filling pill) with play / pause / replay.
   ========================================================================== */
.act { padding: 112px 0 0; }
.act-guest { padding-top: 120px; }
.tint-sky { --t: var(--sky-600); --t-700: var(--sky-700); --t-50: var(--sky-50); --t-200: var(--sky-200); --t-grad: linear-gradient(90deg, var(--blue), var(--sky)); }
.tint-indigo { --t: var(--ind); --t-700: var(--ind-700); --t-50: var(--ind-50); --t-200: var(--ind-200); --t-grad: linear-gradient(90deg, var(--ind), var(--vio)); }
.tint-emerald { --t: var(--em-600); --t-700: var(--em-700); --t-50: var(--em-50); --t-200: var(--em-200); --t-grad: linear-gradient(90deg, var(--em), #14b8a6); }
.demo h2, .pricing h2, .faq h2 {
  font-size: clamp(32px, 3.9vw, 50px); line-height: 1.03; font-weight: 900; letter-spacing: -.025em; text-wrap: balance;
}
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 33em; }
@keyframes fill { to { transform: scaleX(1); } }

/* header: big headline left, supporting copy right (Apple section header) */
.act-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.act-head .chips { margin-bottom: 20px; }
.chip-t { background: var(--t-50); border-color: var(--t-200); color: var(--t-700); }
.act-head h2 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.01; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.act-head-r { display: grid; gap: 14px; justify-items: start; padding-bottom: 8px; }
.act-head-r .lead { font-size: 17.5px; }
.act-link { display: inline-flex; align-items: center; gap: 4px; font-size: 15.5px; font-weight: 800; color: var(--t-700); }
.act-link .ic { font-size: 17px; transition: transform .3s var(--ease); }
.act-link:hover .ic { transform: translateX(3px); }

/* track: full-bleed, snapping, next card peeks in */
.hl { position: relative; --pad: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.hl-track {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px calc(var(--pad) + var(--peek, 0px)) 64px var(--pad); scroll-padding-inline: var(--pad);
  outline: none;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-track:focus-visible { outline: 2px solid var(--t); outline-offset: -2px; }
.hl.is-animating .hl-track { scroll-snap-type: none; }

.hl-card {
  position: relative; flex: 0 0 calc(100% - var(--peek, 0px)); height: 600px; scroll-snap-align: start;
  display: grid; grid-template-columns: 440px minmax(0, 1fr);
  border-radius: 32px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(640px 460px at 78% 54%, color-mix(in srgb, var(--t) 13%, transparent), transparent 66%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--t-50) 70%, #fff));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset, 0 18px 50px rgba(15, 23, 42, .06);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hl-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--t) 22%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(520px 380px at 74% 52%, #000, transparent 75%); -webkit-mask-image: radial-gradient(520px 380px at 74% 52%, #000, transparent 75%);
  opacity: .55;
}
.hl-card:not(.is-current) { opacity: .45; transform: scale(.985); }
.hl-card:not(.is-current):hover { opacity: .7; cursor: pointer; }

/* caption */
.hl-cap { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 56px 8px 56px 56px; }
.hl-icon {
  width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 26px;
  font-size: 27px; color: var(--t); background: #fff; border: 1px solid var(--t-200);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--t) 20%, transparent), inset 0 -2px 0 color-mix(in srgb, var(--t) 8%, transparent);
}
.hl-icon .ic { stroke-width: 1.8; }
.hl-k { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hl-k b { color: var(--t-700); font-weight: 900; }
.hl-cap p { font-size: 31px; line-height: 1.16; font-weight: 800; letter-spacing: -.022em; color: #8a94a6; text-wrap: pretty; }
.hl-cap p b { color: var(--ink); font-weight: 900; }
.hl-pts { display: grid; gap: 12px; margin-top: 30px; }
.hl-pts li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 650; color: var(--text); line-height: 1.35; }
.hl-pi { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 17px; color: var(--t); background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 10px rgba(15, 23, 42, .04); }
.hl-card.is-current .hl-cap > * { animation: capIn .8s var(--ease) both; }
.hl-card.is-current .hl-cap > :nth-child(2) { animation-delay: .06s; }
.hl-card.is-current .hl-cap > :nth-child(3) { animation-delay: .12s; }
.hl-card.is-current .hl-pts li { animation: capIn .7s var(--ease) both; }
.hl-card.is-current .hl-pts li:nth-child(1) { animation-delay: .28s; }
.hl-card.is-current .hl-pts li:nth-child(2) { animation-delay: .36s; }
.hl-card.is-current .hl-pts li:nth-child(3) { animation-delay: .44s; }
@keyframes capIn { from { opacity: 0; transform: translateY(18px); } }

/* media */
.hl-media { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 32px 48px 32px 16px; }
.hl-media .stage-fit { width: 100%; }
.hl-card .scene { opacity: 1; visibility: visible; transform: none; transition: none; }
.hl-card.is-current .device { animation: devIn .9s var(--ease) both; }
@keyframes devIn { from { opacity: .4; translate: 0 14px; } }
.hl-card.is-current .pt-cycle > :nth-child(1) { animation: cyc 5.4s both; }
.hl-card.is-current .pt-cycle > :nth-child(2) { animation: cyc 5.4s 1.8s both; }
.hl-card.is-current .pt-cycle > :nth-child(3) { animation: cyc3 5.4s 3.6s both; }

/* control pill (Apple measured: 56px, blur, 8px dots, 48px active pill) */
.hl-ctrl {
  position: sticky; bottom: 22px; z-index: 8; display: flex; justify-content: center; align-items: center; gap: 14px;
  margin-top: -32px; padding-right: var(--peek, 0px); pointer-events: none;
  opacity: 0; transform: translateY(12px); transition: opacity .4s ease .2s, transform .5s var(--ease) .2s;
}
.hl.in-view .hl-ctrl { opacity: 1; transform: none; }
.hl-ctrl > * { pointer-events: auto; }
.hl-dots, .hl-play {
  background: rgba(232, 232, 237, .74);
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .1), inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.hl-dots { display: flex; align-items: center; height: 56px; padding: 0 22px; border-radius: 28px; }
.hl-dot { position: relative; width: 8px; height: 8px; margin: 0 6px; border-radius: 99px; background: rgba(0, 0, 0, .38); transition: width .5s var(--ease), background-color .3s; }
.hl-dot::before { content: ""; position: absolute; inset: -16px -6px; }
.hl-dot:hover { background: rgba(0, 0, 0, .55); }
.hl-dot i { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.hl-dot i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, .82); transform-origin: left; transform: scaleX(0); }
.hl-dot.is-current { width: 48px; background: rgba(0, 0, 0, .18); }
.hl.is-playing .hl-dot.is-current i::after { animation: fill var(--dur, 6.2s) linear forwards; }
.hl.is-held .hl-dot.is-current i::after, .hl.is-paused .hl-dot.is-current i::after { animation-play-state: paused; }
.hl:not(.is-playing) .hl-dot.is-current i::after { transform: scaleX(1); }
.hl-play { position: relative; width: 56px; height: 56px; border-radius: 99px; display: grid; place-items: center; color: #1d1d1f; font-size: 22px; transition: transform .2s var(--ease); }
.hl-play:active { transform: scale(.94); }
.hl-play .ic { grid-area: 1 / 1; stroke-width: 2.2; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.hl-play[data-state="pause"] .ic:nth-child(1),
.hl-play[data-state="play"] .ic:nth-child(2),
.hl-play[data-state="replay"] .ic:nth-child(3) { opacity: 1; transform: none; }

/* ---------- guest scenes ---------- */
/* G0 menu */
.sc-menu .tab-ink { animation: none; }
.scene.is-on .tab-ink { animation: tabInk 5.4s var(--ease) both; }
@keyframes tabInk { 0%, 22% { transform: translateX(0); } 30%, 52% { transform: translateX(calc(100% + 4px)); } 60%, 82% { transform: translateX(calc(200% + 8px)); } 90%, 100% { transform: translateX(0); } }
.sc-menu .tab { background: none !important; box-shadow: none !important; }
.scene.is-on .item { animation: itemIn .6s var(--ease) both; }
.scene.is-on .item:nth-child(2) { animation-delay: .08s; }
.scene.is-on .item:nth-child(3) { animation-delay: .16s; }
.scene.is-on .item:nth-child(4) { animation-delay: .24s; }
.scene.is-on .item:nth-child(5) { animation-delay: .32s; }
@keyframes itemIn { from { opacity: 0; transform: translateY(12px); } }
.scene.is-on.sc-menu .items { animation: reshuffle 5.4s var(--ease) both; }
@keyframes reshuffle { 0%, 26% { transform: none; opacity: 1; } 29% { transform: translateY(6px); opacity: .35; } 33%, 56% { transform: none; opacity: 1; } 59% { transform: translateY(6px); opacity: .35; } 63% { transform: none; opacity: 1; } }
.scene.is-on .sc-badge { animation: badgeIn .7s var(--spring) .9s both; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(12px) scale(.94); } }

/* G1 languages */
.flags-row { display: flex; gap: 6px; margin-bottom: 12px; }
.flag { width: 34px; height: 34px; border-radius: 99px; padding: 2px; border: 2px solid transparent; transition: border-color .3s, transform .4s var(--spring); flex: none; }
.flag img { width: 100%; height: 100%; border-radius: 99px; }
.flag.is-a { border-color: var(--sky); transform: scale(1.12); }
.flag.more { display: grid; place-items: center; font-size: 10px; font-weight: 900; color: var(--muted); background: var(--line-soft); }
[data-i18n] { transition: opacity .3s, filter .3s; }

/* G2 allergens */
.dish { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: 0 10px 26px rgba(15, 23, 42, .06); background: #fff; }
.dish-img { position: relative; height: 118px; display: grid; place-items: center; font-size: 54px; color: rgba(180, 83, 9, .55); background: radial-gradient(circle at 30% 30%, #fef9c3, #fde68a 60%, #fcd34d); }
.dish-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 900; }
.dish-tag .ic { font-size: 13px; }
.dish-tag.chef { background: rgba(255, 255, 255, .92); color: var(--am-700); box-shadow: 0 4px 10px rgba(180, 83, 9, .15); }
.dish-body { padding: 12px 13px 14px; display: grid; gap: 6px; }
.dish-row { display: flex; justify-content: space-between; align-items: center; }
.dish-row b { font-size: 15px; font-weight: 900; }
.dish-body > small { font-size: 11px; color: var(--muted); font-weight: 600; }
.dish-tags { display: flex; gap: 5px; }
.tg { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; }
.tg .ic { font-size: 12px; }
.tg-em { background: var(--em-50); color: var(--em-700); }
.tg-rose { background: var(--rose-50); color: var(--rose-700); }
.dish-h { font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-top: 4px; }
.allergens { display: flex; gap: 6px; flex-wrap: wrap; }
.alg { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 11px; font-size: 11px; font-weight: 800; background: var(--am-50); color: var(--am-700); border: 1px solid var(--am-200); }
.alg .ic { font-size: 14px; }
.filter-pill { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 15px; border: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.filter-pill .ic { color: var(--am-700); font-size: 16px; }
.filter-pill .sw { margin-left: auto; }
.scene.is-on .dish-tag { animation: pop .6s var(--spring) .5s both; }
.scene.is-on .tg { animation: pop .5s var(--spring) both; }
.scene.is-on .tg:nth-child(1) { animation-delay: .8s; }
.scene.is-on .tg:nth-child(2) { animation-delay: .95s; }
.scene.is-on .alg { animation: pop .55s var(--spring) both; }
.scene.is-on .alg:nth-child(1) { animation-delay: 1.4s; }
.scene.is-on .alg:nth-child(2) { animation-delay: 1.65s; }
.scene.is-on .alg:nth-child(3) { animation-delay: 1.9s; }
.scene.is-on .filter-pill { animation: badgeIn .6s var(--spring) 2.5s both; }
.scene.is-on .filter-pill .sw i { animation: knob .5s var(--ease) 3.1s both; }
.scene.is-on .filter-pill .sw { animation: swBg .5s ease 3.1s both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* switches */
.sw { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #cbd5e1; flex: none; transition: background-color .3s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .35s var(--spring); }
.sw.on { background: var(--em); }
.sw.on i { transform: translateX(14px); }
@keyframes knob { from { transform: translateX(0); } }
@keyframes swBg { from { background: #cbd5e1; } }

/* G3 ordering */
.sc-order .item { padding-right: 10px; }
.add { position: relative; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--line-soft); color: var(--ink); font-size: 16px; flex: none; }
.add .ic { stroke-width: 2.6; }
.add em { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: var(--sky-600); color: #fff; font-style: normal; font-weight: 900; font-size: 13px; opacity: 1; }
.scene.is-on .add em { animation: qty .4s var(--spring) both; }
.scene.is-on .a1 em { animation-delay: 1s; }
.scene.is-on .a2 em { animation-delay: 1.6s; }
.scene.is-on .a3 em { animation-delay: 2.2s; }
@keyframes qty { from { opacity: 0; transform: scale(.4); } }
.tap {
  position: absolute; z-index: 5; width: 26px; height: 26px; border-radius: 99px; pointer-events: none;
  background: rgba(15, 23, 42, .18); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
  opacity: 0;
}
.sc-order .tap { right: 16px; top: 46px; }
.scene.is-on.sc-order .tap { animation: tapOrder 5.4s var(--ease) both; }
@keyframes tapOrder {
  0%, 10% { opacity: 0; transform: translate(-30px, 40px); }
  16% { opacity: 1; transform: translate(0, 0); }
  18% { transform: translate(0, 0) scale(.8); }
  21% { transform: translate(0, 0) scale(1); }
  27% { transform: translate(0, 55px); }
  29% { transform: translate(0, 55px) scale(.8); }
  32% { transform: translate(0, 55px) scale(1); }
  38% { transform: translate(0, 110px); }
  40% { transform: translate(0, 110px) scale(.8); }
  43% { opacity: 1; transform: translate(0, 110px) scale(1); }
  52% { opacity: 1; transform: translate(-6px, 330px); }
  54% { transform: translate(-6px, 330px) scale(.8); }
  58% { opacity: 1; transform: translate(-6px, 330px) scale(1); }
  64%, 100% { opacity: 0; transform: translate(-6px, 330px); }
}
.cart {
  position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: 17px; background: var(--ink); color: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, .3);
}
.cart-n { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; }
.cart-n .ic { font-size: 17px; }
.cn, .cart-sum { position: relative; display: inline-grid; }
.cn i, .cart-sum i { grid-area: 1 / 1; font-style: normal; opacity: 0; }
.cn i:last-child, .cart-sum i:last-child { opacity: 1; }
.cart-sum { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cart-send { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--em); font-size: 12px; font-weight: 900; }
.scene.is-on .cart { animation: cartIn .6s var(--spring) 1.05s both; }
@keyframes cartIn { from { opacity: 0; transform: translateY(70px); } }
.scene.is-on .cn i:nth-child(1), .scene.is-on .cart-sum i:nth-child(1) { animation: n1 5.4s steps(1) both; }
.scene.is-on .cn i:nth-child(2), .scene.is-on .cart-sum i:nth-child(2) { animation: n2 5.4s steps(1) both; }
.scene.is-on .cn i:nth-child(3), .scene.is-on .cart-sum i:nth-child(3) { animation: n3 5.4s steps(1) both; }
@keyframes n1 { 0% { opacity: 0; } 18% { opacity: 1; } 29% { opacity: 0; } }
@keyframes n2 { 0% { opacity: 0; } 29% { opacity: 1; } 40% { opacity: 0; } }
@keyframes n3 { 0% { opacity: 0; } 40% { opacity: 1; } }
.scene.is-on .cart-send { animation: press 5.4s var(--ease) both; }
@keyframes press { 0%, 52% { transform: none; } 54% { transform: scale(.92); } 58% { transform: none; } }
.sent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
}
.sent b { font-size: 16px; font-weight: 900; }
.sent small { font-size: 12px; color: var(--muted); font-weight: 700; }
.sent-ic { width: 64px; height: 64px; border-radius: 99px; display: grid; place-items: center; font-size: 32px; background: var(--em); color: #fff; box-shadow: 0 0 0 10px var(--em-50), 0 14px 30px rgba(16, 185, 129, .35); }
.sent-ic .ic { stroke-width: 2.8; }
.scene.is-on .sent { animation: sentIn 5.4s var(--ease) both; }
.scene.is-on .sent-ic { animation: sentPop 5.4s var(--spring) both; }
@keyframes sentIn { 0%, 59% { opacity: 0; visibility: hidden; } 64%, 100% { opacity: 1; visibility: visible; } }
@keyframes sentPop { 0%, 61% { transform: scale(.3); } 70%, 100% { transform: none; } }

/* G4 service */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.svc {
  position: relative; overflow: hidden; height: 104px; border-radius: 20px; padding: 12px;
  display: grid; align-content: space-between; font-size: 13px; font-weight: 900; line-height: 1.2;
  border: 1px solid;
}
.svc .ic { font-size: 26px; }
.s-sky { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-700); }
.s-em { background: var(--em-50); border-color: var(--em-200); color: var(--em-700); }
.s-vio { background: var(--vio-50); border-color: #ddd6fe; color: var(--vio-700); }
.s-am { background: var(--am-50); border-color: var(--am-200); color: var(--am-700); }
.ripple { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 99px; background: rgba(16, 185, 129, .35); transform: scale(0); opacity: 0; }
.scene.is-on .is-tap { animation: press2 5.4s var(--ease) both; }
@keyframes press2 { 0%, 20% { transform: none; } 23% { transform: scale(.94); } 28% { transform: none; } }
.scene.is-on .ripple { animation: rip 5.4s ease-out both; }
@keyframes rip { 0%, 21% { transform: scale(0); opacity: 0; } 22% { opacity: 1; } 40%, 100% { transform: scale(5); opacity: 0; } }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; margin-top: 12px;
  background: #fff; border: 1px solid var(--em-200); box-shadow: 0 14px 30px rgba(16, 185, 129, .16);
}
.toast > .ic { font-size: 20px; color: var(--em-600); flex: none; }
.toast b { display: block; font-size: 12.5px; font-weight: 900; }
.toast small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.scene.is-on .sc-service .toast, .scene.is-on.sc-service .toast { animation: toastIn .6s var(--spring) 1.6s both; }
.scene.is-on .toast .bell { animation: ring 1.6s ease-in-out 2s 2; transform-origin: 50% 10%; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.95); } }

/* G5 points */
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: 20px; background: repeating-linear-gradient(45deg, #f8fafc 0 8px, #f1f5f9 8px 16px); border: 1px solid var(--line-soft); }
.pt { position: relative; height: 62px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 2px; color: var(--soft); font-size: 20px; }
.pt small { font-size: 10px; font-weight: 900; color: var(--muted); }
.pt::after { content: ""; position: absolute; inset: -4px; border-radius: 17px; border: 2px solid var(--sky); opacity: 0; }
.scene.is-on .p1 { animation: ptOn 5.4s both; }
.scene.is-on .p2 { animation: ptOn 5.4s 1.8s both; }
.scene.is-on .p3 { animation: ptOn 5.4s 3.6s both; }
.scene.is-on .p1::after { animation: ptRing 5.4s both; }
.scene.is-on .p2::after { animation: ptRing 5.4s 1.8s both; }
.scene.is-on .p3::after { animation: ptRing 5.4s 3.6s both; }
@keyframes ptOn { 0% { color: var(--soft); } 4%, 30% { color: var(--sky-600); background: var(--sky-50); } 36%, 100% { color: var(--soft); background: #fff; } }
@keyframes ptRing { 0% { opacity: 0; transform: scale(1.2); } 5%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; } }
.pt-req { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--sky-200); box-shadow: 0 12px 26px rgba(14, 165, 233, .12); }
.pr-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); font-size: 18px; }
.pr-txt small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.pr-cycle, .pt-cycle { display: inline-grid; }
.pr-cycle > *, .pt-cycle > * { grid-area: 1 / 1; opacity: 0; }
.pr-cycle > :first-child, .pt-cycle > :first-child { opacity: 1; }
.pr-cycle b { font-size: 14px; font-weight: 900; }
.scene.is-on .pr-cycle > :nth-child(1) { animation: cyc 5.4s both; }
.scene.is-on .pr-cycle > :nth-child(2) { animation: cyc 5.4s 1.8s both; }
.scene.is-on .pr-cycle > :nth-child(3) { animation: cyc3 5.4s 3.6s both; }
@keyframes cyc { 0% { opacity: 0; transform: translateY(6px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes cyc3 { 0% { opacity: 0; transform: translateY(6px); } 4%, 100% { opacity: 1; transform: none; } }

/* G6 private */
.cat { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 15px; border: 1px solid var(--line-soft); margin-bottom: 7px; background: #fff; }
.cat b { font-size: 12.5px; font-weight: 800; flex: 1; }
.cat > small { font-size: 11px; font-weight: 800; color: var(--soft); }
.cat.vip { display: block; padding: 10px; border-color: #ddd6fe; background: linear-gradient(180deg, var(--vio-50), #fff); box-shadow: 0 14px 30px rgba(139, 92, 246, .12); }
.vip-head { display: flex; align-items: center; gap: 10px; }
.vip-head .thumb { position: relative; }
.vip-head .thumb .ic { grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--spring); }
.vip-head .lk { opacity: 0; }
.vip-badge { font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 99px; background: var(--vio-700); color: #fff; }
.vip-list { display: grid; gap: 5px; margin-top: 9px; }
.vip-list li { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid #ede9fe; }
.vip-list li span:last-child { font-weight: 900; font-variant-numeric: tabular-nums; }
.scene.is-on .vip-head .lk { animation: lk 5.4s both; }
.scene.is-on .vip-head .lko { animation: lko 5.4s var(--spring) both; }
@keyframes lk { 0%, 20% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: scale(.5) rotate(-20deg); } }
@keyframes lko { 0%, 22% { opacity: 0; transform: scale(.5); } 30%, 100% { opacity: 1; transform: none; } }
.scene.is-on .vip-list li { animation: itemIn .5s var(--ease) both; }
.scene.is-on .vip-list li:nth-child(1) { animation-delay: 1.6s; }
.scene.is-on .vip-list li:nth-child(2) { animation-delay: 1.8s; }
.scene.is-on .vip-list li:nth-child(3) { animation-delay: 2s; }

/* ---------- team scenes ---------- */
.phone.dark .item, .phone.dark .po-row { background: #111a2e; border-color: rgba(255, 255, 255, .06); }
.tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tables span { height: 44px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: #111a2e; border: 1px solid rgba(255, 255, 255, .07); color: #cbd5e1; }
.tables .busy { color: #fbbf24; border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.tables .pick { transition: all .3s; }
.scene.is-on .tables .pick { animation: pick 5.4s var(--ease) both; }
@keyframes pick { 0%, 14% { background: #111a2e; color: #cbd5e1; } 18%, 100% { background: var(--ind); color: #fff; border-color: var(--ind); box-shadow: 0 0 0 4px rgba(99, 102, 241, .25); } }
.pda-order { margin-top: 12px; padding: 10px; border-radius: 18px; background: #0f1a30; border: 1px solid rgba(129, 140, 248, .2); display: grid; gap: 6px; }
.po-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 2px; }
.po-head b { font-size: 13px; font-weight: 900; color: #f8fafc; }
.po-head small { font-size: 10.5px; color: #94a3b8; font-weight: 700; }
.po-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; padding: 8px 9px; border-radius: 11px; font-size: 11.5px; }
.po-row span:first-child { color: #a5b4fc; font-weight: 900; }
.po-row b { font-weight: 800; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-row span:last-child { font-weight: 800; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.po-send { display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border-radius: 12px; background: var(--ind); color: #fff; font-weight: 900; font-size: 12px; margin-top: 2px; }
.scene.is-on .pda-order { animation: badgeIn .6s var(--spring) 1.1s both; }
.scene.is-on .po-row.r1 { animation: itemIn .5s var(--ease) 1.6s both; }
.scene.is-on .po-row.r2 { animation: itemIn .5s var(--ease) 2.1s both; }
.scene.is-on .po-row.r3 { animation: itemIn .5s var(--ease) 2.6s both; }
.scene.is-on .po-send { animation: sendOk 5.4s var(--ease) both; }
@keyframes sendOk { 0%, 64% { background: var(--ind); } 66% { transform: scale(.95); } 70%, 100% { background: var(--em); transform: none; } }
.sc-pda .tap { left: 205px; top: 40px; }
.scene.is-on.sc-pda .tap { animation: tapPda 5.4s var(--ease) both; }
@keyframes tapPda { 0%, 6% { opacity: 0; transform: translate(30px, 30px); } 12% { opacity: 1; transform: none; } 15% { transform: scale(.8); } 19% { opacity: 1; transform: none; } 24% { opacity: 0; } 56% { opacity: 0; transform: translate(-90px, 405px); } 62% { opacity: 1; transform: translate(-90px, 405px); } 65% { transform: translate(-90px, 405px) scale(.8); } 70% { opacity: 1; transform: translate(-90px, 405px); } 76%, 100% { opacity: 0; transform: translate(-90px, 405px); } }

.cam { position: relative; height: 230px; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1e293b, #020617); }
.cam-qr { width: 120px; height: 120px; padding: 8px; border-radius: 12px; background: #fff; }
.cam-qr svg { width: 100%; height: 100%; display: block; }
.cam i { position: absolute; width: 34px; height: 34px; border: 3px solid #a5b4fc; }
.cam .c1 { left: 52px; top: 37px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.cam .c2 { right: 52px; top: 37px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.cam .c3 { left: 52px; bottom: 37px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.cam .c4 { right: 52px; bottom: 37px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.laser { position: absolute; left: 60px; right: 60px; top: 50px; height: 2px; background: #818cf8; box-shadow: 0 0 14px 3px rgba(129, 140, 248, .8); opacity: 0; }
.scene.is-on .laser { animation: laser 1.3s ease-in-out .2s 2 alternate both; }
@keyframes laser { from { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: translateY(130px); } }
.scene.is-on .cam i { animation: lock 5.4s var(--ease) both; }
@keyframes lock { 0%, 48% { border-color: #a5b4fc; } 52%, 100% { border-color: var(--em); } }
.basket { margin-top: 12px; padding: 10px; border-radius: 18px; background: #0f1a30; border: 1px solid rgba(16, 185, 129, .3); display: grid; gap: 6px; }
.po-row.tot b { color: #fff; }
.po-row.tot span:last-child { color: var(--em); font-weight: 900; }
.scene.is-on .basket { animation: sheetUp .7s var(--spring) 2.8s both; }
@keyframes sheetUp { from { opacity: 0; transform: translateY(60px); } }

.lock { display: grid; justify-items: center; gap: 2px; padding: 8px 0 14px; color: #e2e8f0; }
.lock-ic { font-size: 16px; color: #94a3b8; }
.lock-time { font-size: 58px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lock-date { font-size: 12px; font-weight: 700; color: #94a3b8; }
.notes { display: grid; gap: 7px; }
.note { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 18px; background: rgba(30, 41, 59, .85); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(10px); }
.n-ic { width: 32px; height: 32px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: none; }
.n-ic img { width: 24px; height: 24px; }
.note b { display: block; font-size: 11.5px; font-weight: 900; color: #f8fafc; }
.note small { display: block; font-size: 10.5px; color: #94a3b8; font-weight: 600; }
.note > span:not(.n-ic) { flex: 1; min-width: 0; }
.note em { font-style: normal; font-size: 10px; color: #64748b; font-weight: 700; align-self: flex-start; }
.scene.is-on .note { animation: noteIn .6s var(--spring) both; }
.scene.is-on .n1 { animation-delay: .6s; }
.scene.is-on .n2 { animation-delay: 1.6s; }
.scene.is-on .n3 { animation-delay: 2.6s; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-30px) scale(.9); } }

.rq { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #0f1a30; border: 1px solid rgba(16, 185, 129, .35); }
.rq-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(16, 185, 129, .15); color: var(--em); font-size: 18px; }
.rq b { display: block; font-size: 13px; font-weight: 900; color: #fff; }
.rq small { font-size: 10.5px; color: #94a3b8; font-weight: 700; }
.route-line { display: block; width: 240px; height: 96px; margin: 0 auto; overflow: visible; }
.route-line path { fill: none; stroke: rgba(148, 163, 184, .25); stroke-width: 2; stroke-dasharray: 4 5; }
.route-line path:first-child { stroke: rgba(16, 185, 129, .55); stroke-dasharray: none; }
.route-dot { fill: var(--em); offset-path: path("M120 0 C120 40, 40 40, 40 80 L40 120"); offset-distance: 0%; opacity: 0; filter: drop-shadow(0 0 6px rgba(16, 185, 129, .9)); }
.scene.is-on .route-dot { animation: travel 5.4s var(--ease) both; }
@keyframes travel { 0%, 10% { offset-distance: 0%; opacity: 0; } 14% { opacity: 1; } 36% { offset-distance: 100%; opacity: 1; } 40%, 100% { offset-distance: 100%; opacity: 0; } }
.staff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.st { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; background: #111a2e; border: 1px solid rgba(255, 255, 255, .06); text-align: center; transition: all .3s; }
.st i { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; background: #1e293b; color: #cbd5e1; margin-bottom: 3px; }
.st b { font-size: 11.5px; font-weight: 900; color: #e2e8f0; }
.st small { font-size: 10px; color: #94a3b8; font-weight: 700; }
.scene.is-on .st.s-a { animation: stOn 5.4s var(--ease) both; }
.scene.is-on .st.s-a i { animation: stAv 5.4s var(--ease) both; }
.scene.is-on .st:not(.s-a) { animation: stDim 5.4s var(--ease) both; }
@keyframes stOn { 0%, 34% { border-color: rgba(255, 255, 255, .06); } 40%, 100% { border-color: var(--em); background: rgba(16, 185, 129, .1); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); } }
@keyframes stAv { 0%, 34% { background: #1e293b; color: #cbd5e1; } 40%, 100% { background: var(--em); color: #fff; } }
@keyframes stDim { 0%, 34% { opacity: 1; } 40%, 100% { opacity: .45; } }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; padding: 4px; border-radius: 13px; background: #111a2e; border: 1px solid rgba(255, 255, 255, .06); }
.seg span { position: relative; z-index: 1; text-align: center; font-size: 11px; font-weight: 800; color: #94a3b8; padding: 7px 0; }
.seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--ind); transform: translateX(100%); }
.seg .on { color: #fff; }
.scene.is-on .seg i { animation: segMove 5.4s var(--ease) both; }
@keyframes segMove { 0%, 55% { transform: translateX(0); } 62%, 100% { transform: translateX(100%); } }
.scene.is-on .seg span:first-child { animation: segTxtA 5.4s both; }
.scene.is-on .seg span.on { animation: segTxtB 5.4s both; }
@keyframes segTxtA { 0%, 55% { color: #fff; } 62%, 100% { color: #94a3b8; } }
@keyframes segTxtB { 0%, 55% { color: #94a3b8; } 62%, 100% { color: #fff; } }

/* kitchen tablet */
.kds-head { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; background: #0f172a; color: #fff; flex: none; }
.kds-title { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.kds-title .ic { color: #fbbf24; font-size: 18px; }
.kds-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: #6ee7b7; padding: 3px 8px; border-radius: 99px; background: rgba(16, 185, 129, .15); }
.kds-live i { width: 6px; height: 6px; border-radius: 99px; background: var(--em); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.kds-clock { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; color: #cbd5e1; }
.tablet .scene { padding: 12px; }
.kcols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 100%; }
.kcol { border-radius: 14px; background: #e2e8f0; padding: 8px; }
.kcol h5 { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 900; color: var(--text); text-transform: uppercase; letter-spacing: .06em; margin: 2px 4px 8px; }
.kcol h5 em { font-style: normal; font-size: 10px; padding: 1px 7px; border-radius: 99px; background: #fff; display: inline-grid; }
.kcol h5 em b { grid-area: 1 / 1; font-weight: 900; }
.kcol h5 em b + b { opacity: 0; }
.scene.is-on .kc-n b:nth-child(1) { animation: kcOut 5.4s steps(1) both; }
.scene.is-on .kc-n b:nth-child(2) { animation: kcIn 5.4s steps(1) both; }
.scene.is-on .kc-p b:nth-child(1) { animation: kcOut 5.4s steps(1) both; }
.scene.is-on .kc-p b:nth-child(2) { animation: kcMid 5.4s steps(1) both; }
.scene.is-on .kc-p b:nth-child(3) { animation: kcLate 5.4s steps(1) both; }
.scene.is-on .kc-r b:nth-child(1) { animation: kcOutLate 5.4s steps(1) both; }
.scene.is-on .kc-r b:nth-child(2) { animation: kcLate 5.4s steps(1) both; }
@keyframes kcOut { 0% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes kcIn { 0% { opacity: 0; } 36%, 100% { opacity: 1; } }
@keyframes kcMid { 0% { opacity: 0; } 36% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes kcLate { 0% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes kcOutLate { 0% { opacity: 1; } 66%, 100% { opacity: 0; } }
.tk { border-radius: 12px; background: #fff; padding: 9px 10px; box-shadow: 0 4px 10px rgba(15, 23, 42, .06); border-left: 4px solid var(--sky); }
.tk + .tk { margin-top: 8px; }
.tk-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tk-h b { font-size: 13px; font-weight: 900; }
.tk-h span { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.tk-h .tm { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--sky-700); background: var(--sky-50); padding: 1px 6px; border-radius: 6px; }
.tk-h .tm.warn { color: var(--am-700); background: var(--am-50); }
.tk p { font-size: 11.5px; font-weight: 700; color: var(--text); line-height: 1.5; }
.tk.done { border-left-color: var(--em); opacity: .75; }
.kcol:nth-child(2) .tk { border-left-color: var(--am); }
.tk.mover { position: absolute; left: 8px; top: 134px; width: calc((100% - 20px) / 3 - 16px); z-index: 3; box-shadow: 0 14px 30px rgba(15, 23, 42, .16); border-left-color: var(--sky); }
.tk-st { display: inline-grid; margin-top: 6px; }
.tk-st i { grid-area: 1 / 1; font-style: normal; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 99px; opacity: 0; justify-self: start; white-space: nowrap; }
.tk-st .s1 { background: var(--sky-50); color: var(--sky-700); opacity: 1; }
.tk-st .s2 { background: var(--am-50); color: var(--am-700); }
.tk-st .s3 { background: var(--em-50); color: var(--em-700); }
.scene.is-on .tk.mover { animation: kdsMove 5.4s var(--ease) both; }
@keyframes kdsMove {
  0% { opacity: 0; transform: translateY(-20px); }
  8%, 26% { opacity: 1; transform: none; border-left-color: var(--sky); }
  36%, 56% { transform: translateX(calc(100% + 26px)); border-left-color: var(--am); }
  66%, 100% { transform: translateX(calc(200% + 52px)); border-left-color: var(--em); }
}
.scene.is-on .tk-st .s1 { animation: st1 5.4s both; }
.scene.is-on .tk-st .s2 { animation: st2 5.4s both; }
.scene.is-on .tk-st .s3 { animation: st3 5.4s both; }
@keyframes st1 { 0%, 30% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes st2 { 0%, 30% { opacity: 0; } 32%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes st3 { 0%, 60% { opacity: 0; } 62%, 100% { opacity: 1; } }
.sc-kds .tap { left: 70px; top: 180px; }
.scene.is-on.sc-kds .tap { animation: tapKds 5.4s var(--ease) both; }
@keyframes tapKds { 0%, 20% { opacity: 0; } 24% { opacity: 1; transform: none; } 27% { transform: scale(.8); } 30% { opacity: 1; transform: none; } 34% { opacity: 0; } 46% { opacity: 0; transform: translateX(194px); } 50% { opacity: 1; transform: translateX(194px); } 53% { transform: translateX(194px) scale(.8); } 56% { opacity: 1; transform: translateX(194px); } 60%, 100% { opacity: 0; transform: translateX(194px); } }
.kds-toast { position: absolute; right: 18px; bottom: 16px; margin: 0; z-index: 4; }
.scene.is-on .kds-toast { animation: toastIn .6s var(--spring) 3.8s both; }

.sc-station { display: grid; grid-template-columns: 200px 90px 1fr; align-items: center; gap: 6px; padding: 18px !important; }
.ord { border-radius: 16px; background: #fff; padding: 12px; display: grid; gap: 7px; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.oi { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 11px; font-size: 12px; font-weight: 800; }
.oi .ic { font-size: 16px; }
.oi.f1, .oi.f2, .land.f1, .land.f2 { background: var(--am-50); color: var(--am-700); }
.oi.d1, .oi.d2, .land.d1, .land.d2 { background: var(--sky-50); color: var(--sky-700); }
.st-arrows { width: 90px; height: 200px; overflow: visible; }
.st-arrows path { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 5 6; }
.scene.is-on .st-arrows path { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.posts { display: grid; gap: 14px; }
.post { border-radius: 16px; background: #0f172a; padding: 10px; min-height: 120px; }
.post-h { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 13px; font-weight: 900; margin-bottom: 8px; }
.post.kitchen .post-h .ic { color: #fbbf24; }
.post.bar .post-h .ic { color: #7dd3fc; }
.slot { display: grid; gap: 6px; }
.land { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 800; font-style: normal; }
.land .ic { font-size: 15px; }
.scene.is-on .oi { animation: leave 5.4s var(--ease) both; }
.scene.is-on .oi.f1 { animation-delay: .6s; }
.scene.is-on .oi.d1 { animation-delay: 1.1s; }
.scene.is-on .oi.f2 { animation-delay: 1.6s; }
.scene.is-on .oi.d2 { animation-delay: 2.1s; }
@keyframes leave { 0%, 8% { opacity: 1; transform: none; } 16%, 100% { opacity: .25; transform: translateX(14px); } }
.scene.is-on .land { animation: land 5.4s var(--spring) both; }
.scene.is-on .land.f1 { animation-delay: .6s; }
.scene.is-on .land.d1 { animation-delay: 1.1s; }
.scene.is-on .land.f2 { animation-delay: 1.6s; }
.scene.is-on .land.d2 { animation-delay: 2.1s; }
@keyframes land { 0%, 12% { opacity: 0; transform: translateX(-60px) scale(.8); } 20%, 100% { opacity: 1; transform: none; } }

/* ---------- admin (mirrors app.serviris.com) ---------- */
.bw-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: #fff; flex: none; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 99px; background: #e2e8f0; }
.dots i:nth-child(1) { background: #fda4af; }
.dots i:nth-child(2) { background: #fde68a; }
.dots i:nth-child(3) { background: #a7f3d0; }
.bw-url { flex: 1; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9px; background: #f8fafc; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--muted); overflow: hidden; white-space: nowrap; }
.bw-url .ic { color: var(--em-600); font-size: 12px; }
.bw-url span { color: var(--ink); }

.adm { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 10px; background: #f8fafc; }
.adm-side { width: 166px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.adm-logo, .adm-nav, .adm-foot, .adm-top { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.adm-logo { height: 40px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 11px; }
.adm-logo img { width: 22px; height: 22px; }
.adm-logo b { font-family: "Arial Black", "Inter", sans-serif; font-size: 12.5px; font-weight: 900; color: var(--brand); }
.adm-logo i { font-style: normal; color: var(--blue); }
.adm-nav { position: relative; flex: 1; min-height: 0; padding: 6px; overflow: hidden; }
.adm-pg { position: absolute; inset: 6px; display: flex; flex-direction: column; gap: 1px; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.adm-pg.p2 { opacity: 0; transform: translateX(14px); pointer-events: none; }
.adm-p2 .adm-pg.p1 { opacity: 0; transform: translateX(-14px); }
.adm-p2 .adm-pg.p2 { opacity: 1; transform: none; }
.adm-pg em { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; padding: 3px 8px; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.adm-pg em .ic { font-size: 12px; }
.adm-nav small { font-size: 9.5px; font-weight: 600; color: var(--soft); padding: 5px 8px 1px; }
.adm-nav span, .adm-foot { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 9px; border: 1px solid transparent; font-size: 11.5px; font-weight: 500; color: #334155; white-space: nowrap; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.adm-nav .ic, .adm-foot .ic { font-size: 14px; color: #475569; }
.adm-nav span.is-a { background: #f8fafc; border-color: var(--line); color: var(--ink); font-weight: 700; box-shadow: 0 2px 6px rgba(15, 23, 42, .04); }
.adm-foot { flex: none; padding: 9px 10px; border: 1px solid var(--line); }
.adm-foot.is-a { border-color: var(--em-200); background: var(--em-50); color: var(--em-700); font-weight: 700; }
.adm-foot.is-a .ic { color: var(--em-600); }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-top { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.adm-top b { font-size: 13px; font-weight: 800; transition: opacity .2s; }
.adm-top b.swap-out { opacity: 0; }
.adm-top span { display: flex; align-items: center; gap: 12px; color: #475569; font-size: 14px; }
.adm-top img { width: 16px; height: 16px; border-radius: 99px; }
.adm-main .scenes { flex: 1; }
.browser .scene { padding: 2px; }
.adm-h { font-size: 12.5px; font-weight: 800; margin: 2px 2px 8px; color: var(--ink); }
.adm-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.adm-row .adm-h { margin: 0 2px; }
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; white-space: nowrap; transition: transform .2s, background-color .3s; }
.adm-btn.pressed { transform: scale(.94); background: var(--em-600); }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--em-600); margin-left: 2px; animation: caret 1s steps(1) infinite; vertical-align: middle; }
@keyframes caret { 50% { opacity: 0; } }

/* Y0 domains */
.dom { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.dom-head { display: flex; align-items: center; gap: 9px; font-size: 13px; min-width: 0; }
.dom-head b { font-weight: 700; white-space: nowrap; }
.dom-head em { margin-left: 8px; font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-200); white-space: nowrap; }
.dom-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: #f8fafc; border: 1px solid var(--line); color: #475569; font-size: 16px; }
.dom-ic.sky { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-600); }
.dom-badges { display: flex; gap: 5px; }
.dom-badges i { font-style: normal; font-size: 9.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--em-50); color: var(--em-700); border: 1px solid var(--em-200); }
.dom-svc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; border: 1px solid var(--line-soft); }
.ds-txt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.ds-txt b { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-txt small { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-svc em { font-style: normal; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--sky-600); white-space: nowrap; }
.svc4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.svc4 span { display: grid; gap: 6px; justify-items: start; padding: 10px; border-radius: 13px; border: 1px solid #fed7aa; background: #fff7ed; font-size: 11.5px; font-weight: 700; color: var(--text); }
.svc4 .ic { font-size: 17px; color: var(--am-700); }
.svc4 i { font-style: normal; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; border: 1px solid #fdba74; color: #c2410c; background: #fff; }
.svc4 .s-menu { background: var(--sky-50); border-color: var(--sky-200); }
.svc4 .s-menu .ic { color: var(--sky-600); }
.svc4 .s-menu i { color: var(--em-700); border-color: var(--em-200); background: var(--em-50); }
.scene.is-on .dom-badges, .scene.is-on .dom-svc { animation: itemIn .5s var(--ease) 1.5s both; }
.scene.is-on .svc4 span { animation: itemIn .5s var(--ease) both; }
.scene.is-on .svc4 span:nth-child(1) { animation-delay: 1.9s; }
.scene.is-on .svc4 span:nth-child(2) { animation-delay: 2.02s; }
.scene.is-on .svc4 span:nth-child(3) { animation-delay: 2.14s; }
.scene.is-on .svc4 span:nth-child(4) { animation-delay: 2.26s; }

/* Y1 dashboard */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: grid; gap: 1px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.st-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; border: 1px solid; margin-bottom: 7px; }
.c-sky { background: var(--sky-50); color: var(--sky-600); border-color: var(--sky-200); }
.c-pink { background: #fdf4ff; color: #c026d3; border-color: #f5d0fe; }
.c-am { background: var(--am-50); color: var(--am-700); border-color: var(--am-200); }
.c-em { background: var(--em-50); color: var(--em-600); border-color: var(--em-200); }
.stat small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.stat b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.health { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.hl-head { display: flex; align-items: center; gap: 10px; }
.hl-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 16px; }
.hl-head > span:not(.hl-ic) { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.hl-head b { font-size: 12px; font-weight: 800; }
.hl-head small { font-size: 10px; color: var(--muted); }
.hl-head em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--em-600); font-variant-numeric: tabular-nums; }
.hl-head em i { width: 7px; height: 7px; border-radius: 99px; background: var(--em); }
.hl-bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.hl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f43f5e, #fb923c 55%, #f59e0b); }
.hl-ok { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: var(--em-50); border: 1px solid var(--em-200); color: var(--em-700); }
.hl-ok > .ic { font-size: 18px; }
.hl-ok span { display: grid; line-height: 1.35; }
.hl-ok b { font-size: 11.5px; font-weight: 800; }
.hl-ok small { font-size: 10px; }
.scene.is-on .stat { animation: itemIn .5s var(--ease) both; }
.scene.is-on .stat:nth-child(2) { animation-delay: .08s; }
.scene.is-on .stat:nth-child(3) { animation-delay: .16s; }
.scene.is-on .stat:nth-child(4) { animation-delay: .24s; }
.scene.is-on .hl-bar i { animation: grow 1.5s var(--ease) .6s both; }
.scene.is-on .hl-ok { animation: badgeIn .6s var(--spring) 2.2s both; }

/* Y2 products */
.plist { display: grid; gap: 10px; }
.plist li { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 10px 8px; border-radius: 13px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.on-b { position: absolute; left: 10px; top: -7px; font-style: normal; font-size: 9px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--em-50); color: var(--em-700); border: 1px solid var(--em-200); }
.plist .thumb { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
.plist b { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: #f8fafc; color: #475569; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s, border-color .3s; }
.kb { color: var(--soft); font-size: 14px; }
.scene.is-on .pl-edit { animation: rowFocus 5.4s var(--ease) both; }
@keyframes rowFocus { 0%, 8% { border-color: var(--line); box-shadow: none; } 12%, 62% { border-color: var(--em-200); box-shadow: 0 0 0 3px rgba(16, 185, 129, .1); } 70%, 100% { border-color: var(--line); box-shadow: none; } }
.sc-prod.done .pl-edit em { background: var(--em-50); color: var(--em-700); border-color: var(--em-200); animation: flash 1.2s var(--ease); }
.pop { position: absolute; right: 8px; top: 214px; z-index: 3; width: 214px; display: grid; gap: 7px; padding: 11px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(15, 23, 42, .16); opacity: 0; }
.pop label { font-size: 10px; font-weight: 700; color: var(--muted); }
.pop-in { display: flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--em); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pop-in > span { margin-left: auto; color: var(--muted); }
.scene.is-on .pop { animation: popIn 5.4s var(--spring) both; }
@keyframes popIn { 0%, 8% { opacity: 0; transform: translateY(-6px) scale(.96); } 14%, 56% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; transform: translateY(-4px) scale(.97); } }
.price-toast { position: absolute; left: 2px; right: 2px; bottom: 2px; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--spring); }
.price-toast .timer { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-prod.done .price-toast { opacity: 1; transform: none; }

/* Y3 tags & allergens */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pills i, .lc-chips i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: #475569; }
.pills .ic { font-size: 13px; }
.p-am { background: var(--am-50) !important; border-color: var(--am-200) !important; color: var(--am-700) !important; }
.p-sky { background: var(--sky-50) !important; border-color: var(--sky-200) !important; color: var(--sky-700) !important; }
.p-rose { background: var(--rose-50) !important; border-color: var(--rose-200) !important; color: var(--rose-700) !important; }
.p-em { background: var(--em-50) !important; border-color: var(--em-200) !important; color: var(--em-700) !important; }
.p-ind { background: var(--ind-50) !important; border-color: var(--ind-200) !important; color: var(--ind-700) !important; }
.p-vio { background: var(--vio-50) !important; border-color: #ddd6fe !important; color: var(--vio-700) !important; }
.scene.is-on .pills i { animation: pop .45s var(--spring) both; }
.scene.is-on .pills i:nth-child(2) { animation-delay: .08s; }
.scene.is-on .pills i:nth-child(3) { animation-delay: .16s; }
.scene.is-on .pills i:nth-child(4) { animation-delay: .24s; }
.scene.is-on .pills i:nth-child(5) { animation-delay: .32s; }
.scene.is-on .pills i:nth-child(6) { animation-delay: .4s; }
.scene.is-on .pills i:nth-child(7) { animation-delay: .48s; }
.scene.is-on .pills.grey i { animation-delay: .9s; }
.link-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--em-200); box-shadow: 0 12px 26px rgba(16, 185, 129, .1); }
.lc-txt { flex: 1; min-width: 0; display: grid; gap: 5px; }
.lc-txt b { font-size: 12.5px; font-weight: 800; }
.lc-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.lc-chips i { font-size: 9.5px; padding: 2px 8px; }
.lc-ok { color: var(--em-600); font-size: 20px; }
.scene.is-on .link-card { animation: badgeIn .6s var(--spring) 2.2s both; }

/* Y4 orders */
.o-count { position: relative; width: 30px; height: 30px; border-radius: 99px; border: 2px solid var(--em); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: var(--em-700); }
.o-count i, .otabs em b { grid-area: 1 / 1; font-style: normal; }
.o-count i:last-child, .otabs em b:last-child { opacity: 0; }
.scene.is-on .o-count i:first-child, .scene.is-on .otabs em b:first-child { animation: fadeOut .3s 1.5s both; }
.scene.is-on .o-count i:last-child, .scene.is-on .otabs em b:last-child { animation: fadeIn .3s 1.5s both; }
.scene.is-on .o-count { animation: ringPulse .8s ease-out 1.5s; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes ringPulse { from { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); } to { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }
.otabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.otabs > i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 10.5px; font-weight: 700; color: #475569; }
.otabs > i.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.otabs em { font-style: normal; display: inline-grid; font-size: 9.5px; padding: 0 6px; border-radius: 99px; background: var(--line-soft); color: var(--ink); }
.olist { display: grid; gap: 7px; }
.oc { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; row-gap: 3px; padding: 9px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line); }
.oc-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.oc-top b { font-weight: 800; }
.oc-top i { font-style: normal; font-size: 9.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; border: 1px solid; }
.oc-top small { color: var(--soft); font-weight: 600; }
.st-new { background: var(--am-50); color: var(--am-700); border-color: var(--am-200) !important; }
.st-prep { background: var(--sky-50); color: var(--sky-700); border-color: var(--sky-200) !important; }
.st-ready { background: var(--vio-50); color: var(--vio-700); border-color: #ddd6fe !important; }
.oc-mid { display: grid; line-height: 1.3; }
.oc-mid b { font-size: 12px; font-weight: 700; }
.oc-mid small { font-size: 10px; color: var(--muted); }
.oc > em { font-style: normal; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.o-new { border-color: var(--em-200); box-shadow: 0 10px 24px rgba(16, 185, 129, .14); }
.scene.is-on .o-new { animation: newOrder .7s var(--spring) 1.4s both; }
@keyframes newOrder { from { opacity: 0; transform: translateY(-14px) scale(.97); margin-bottom: -64px; } }

/* Y5 QR */
.sc-qr .qr-wrap { display: flex; gap: 16px; align-items: flex-start; }
.qr-card { display: grid; justify-items: center; gap: 8px; padding: 12px 14px 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.qr-k { justify-self: start; font-size: 10.5px; font-weight: 800; color: var(--ink); }
.qr-svg { display: block; width: 160px; height: 160px; color: var(--qc, #0f172a); transition: color .5s var(--ease); }
.qr-svg svg { width: 100%; height: 100%; display: block; }
.qr-svg rect, .qr-svg path, .qr-svg circle { fill: currentColor; }
.qr-opts { flex: 1; min-width: 0; display: grid; gap: 7px; align-content: start; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.qr-opts label { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.sh-row, .sw-row, .dl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-row i, .dl-row span { font-style: normal; padding: 6px 9px; border-radius: 10px; border: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: #475569; transition: border-color .3s, background-color .3s, color .3s; }
.sh-row i.is-a, .dl-row span:first-child { border-color: var(--em-200); background: var(--em-50); color: var(--em-700); }
.sw-row i { width: 26px; height: 26px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); transition: transform .3s var(--spring), box-shadow .3s; }
.sw-row i.is-a { transform: scale(1.1); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.adm-btn.dl { justify-self: start; margin-top: 4px; background: var(--em-600); }

/* Y6 settings */
.set-card { padding: 11px 12px; margin-bottom: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.set-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.set-h .ic { font-size: 15px; color: var(--em-600); }
.langs, .radio { display: flex; flex-wrap: wrap; gap: 6px; }
.langs i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 4px; border-radius: 99px; border: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--muted); }
.langs img { width: 16px; height: 16px; border-radius: 99px; }
.langs i.on, .langs .l3, .langs .l4 { border-color: var(--em-200); background: var(--em-50); color: var(--em-700); }
.langs .more { padding: 4px 9px; }
.scene.is-on .langs .l3 { animation: langOn .4s ease 1s both; }
.scene.is-on .langs .l4 { animation: langOn .4s ease 1.6s both; }
@keyframes langOn { from { border-color: var(--line); background: #fff; color: var(--muted); } }
.cur-line { display: flex; align-items: center; gap: 8px; }
.cur-line > b { margin-left: auto; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; transition: opacity .25s, filter .25s; }
.segm { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--line-soft); }
.segm i { font-style: normal; min-width: 30px; text-align: center; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; color: var(--muted); transition: background-color .3s, color .3s, box-shadow .3s; }
.segm i.is-a { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .1); }
.radio i { font-style: normal; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--muted); }
.radio i::before { content: ""; width: 10px; height: 10px; border-radius: 99px; border: 2px solid #cbd5e1; box-sizing: border-box; }
.radio i.on { border-color: var(--em-200); background: var(--em-50); color: var(--em-700); }
.radio i.on::before { border: 3px solid var(--em); }

/* ==========================================================================
   FEATURES — one clean card per feature, grouped by role (tabs)
   ========================================================================== */
.features { padding: 96px 0 0; }
.fx-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 30px; }
.features h2 { font-size: clamp(32px, 3.9vw, 50px); line-height: 1.03; font-weight: 900; letter-spacing: -.025em; text-wrap: balance; }
.fx-head .lead { text-align: center; }

.ftabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-top: 6px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.ftabs button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 13px; font-size: 14.5px; font-weight: 800; color: var(--muted); white-space: nowrap; transition: color .3s; }
.ftabs button .ic { font-size: 18px; }
.ftabs button em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: 11.5px; font-weight: 900; background: var(--line-soft); color: var(--muted); transition: background-color .3s, color .3s; }
.ftabs button[aria-selected="true"] { color: #fff; }
.ftabs button[aria-selected="true"] em { background: rgba(255, 255, 255, .16); color: #fff; }
.ftabs-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 13px; background: var(--ink); box-shadow: 0 10px 22px rgba(15, 23, 42, .2); transition: transform .5s var(--ease), width .5s var(--ease); }

.fpanel {
  --t: var(--sky-600); --t-700: var(--sky-700); --t-50: var(--sky-50); --t-200: var(--sky-200);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.fpanel[hidden] { display: none; }
.fdots { display: none; }
.fpanel.tint-indigo { --t: var(--ind); --t-700: var(--ind-700); --t-50: var(--ind-50); --t-200: var(--ind-200); }
.fpanel.tint-emerald { --t: var(--em-600); --t-700: var(--em-700); --t-50: var(--em-50); --t-200: var(--em-200); }
.fc {
  display: grid; grid-template-rows: auto auto 1fr; gap: 6px;
  padding: 12px 12px 20px; border-radius: 26px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.fc:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(15, 23, 42, .09); border-color: var(--t-200); }
.fc h3 { margin: 12px 10px 0; font-size: 17px; font-weight: 850; letter-spacing: -.01em; line-height: 1.3; }
.fc p { margin: 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.fpanel.enter .fc { animation: fcIn .6s var(--ease) both; }
.fpanel.enter .fc:nth-child(2) { animation-delay: .05s; }
.fpanel.enter .fc:nth-child(3) { animation-delay: .1s; }
.fpanel.enter .fc:nth-child(4) { animation-delay: .15s; }
.fpanel.enter .fc:nth-child(5) { animation-delay: .2s; }
.fpanel.enter .fc:nth-child(6) { animation-delay: .25s; }
@keyframes fcIn { from { opacity: 0; transform: translateY(14px); } }

.fc-art {
  position: relative; overflow: hidden; height: 168px; border-radius: 18px;
  display: grid; place-items: center; align-content: center; gap: 10px;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(255, 255, 255, .9), transparent 70%),
    var(--t-50);
  border: 1px solid color-mix(in srgb, var(--t-200) 60%, transparent);
}
.fc-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--t) 18%, transparent) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
  opacity: .7;
}
.fc-art > * { position: relative; }
.features:not(.in-view) .fc-art *, .features:not(.in-view) .fc-art *::before, .features:not(.in-view) .fc-art *::after { animation-play-state: paused !important; }
.mini { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15, 23, 42, .06); }

/* g-cat: endless menu */
.gc-win { width: 210px; height: 124px; overflow: hidden; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.gc-list { display: block; animation: gcScroll 7s linear infinite; }
.gc-row { display: flex; align-items: center; gap: 9px; height: 36px; margin-bottom: 7px; padding: 0 9px 0 5px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.gc-row .thumb { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; font-style: normal; }
.gc-row b { flex: 1; height: 6px; border-radius: 99px; background: var(--line-soft); }
.gc-row em { font-style: normal; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes gcScroll { to { transform: translateY(-129px); } }

/* g-lang */
.gl-flags { display: flex; gap: 6px; }
.gl-flags img { width: 26px; height: 26px; border-radius: 99px; box-shadow: 0 0 0 2px #fff; opacity: .55; animation: glFlag 10s infinite; }
.gl-flags img:nth-child(2), .gl-words i:nth-child(2) { animation-delay: 2s; }
.gl-flags img:nth-child(3), .gl-words i:nth-child(3) { animation-delay: 4s; }
.gl-flags img:nth-child(4), .gl-words i:nth-child(4) { animation-delay: 6s; }
.gl-flags img:nth-child(5), .gl-words i:nth-child(5) { animation-delay: 8s; }
@keyframes glFlag { 0%, 20%, 100% { opacity: .55; transform: none; box-shadow: 0 0 0 2px #fff; } 2%, 18% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sky); } }
.gl-words { display: grid; height: 40px; }
.gl-words i { grid-area: 1 / 1; font-style: normal; font-size: 26px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); opacity: 0; animation: glWord 10s infinite; }
@keyframes glWord { 0% { opacity: 0; transform: translateY(12px); filter: blur(4px); } 3%, 18% { opacity: 1; transform: none; filter: none; } 21%, 100% { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }

/* g-alg */
.ga-dish { display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15, 23, 42, .06); }
.ga-dish .thumb { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; font-style: normal; }
.ga-dish b { font-size: 13px; font-weight: 800; }
.ga-dish em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--em-50); color: var(--em-700); border: 1px solid var(--em-200); }
.ga-chips { display: flex; gap: 6px; }
.ga-chips i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11px; font-weight: 800; padding: 6px 9px; border-radius: 11px; background: var(--am-50); color: var(--am-700); border: 1px solid var(--am-200); animation: gaPop 6s var(--spring) infinite; }
.ga-chips i:nth-child(2) { animation-delay: .25s; }
.ga-chips i:nth-child(3) { animation-delay: .5s; }
.ga-chips .ic { font-size: 14px; }
@keyframes gaPop { 0%, 6% { opacity: 0; transform: scale(.6); } 14%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: scale(.85); } }

/* g-order */
.go-item { display: flex; align-items: center; gap: 9px; width: 214px; padding: 7px 7px 7px 7px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.go-item .thumb { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; font-style: normal; }
.go-item b { flex: 1; font-size: 12px; font-weight: 800; }
.go-add { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--sky-600); color: #fff; font-size: 15px; animation: goTap 6s infinite; }
.go-add .ic { stroke-width: 2.6; }
@keyframes goTap { 0%, 8%, 12%, 24%, 28%, 40%, 44%, 100% { transform: none; } 10%, 26%, 42% { transform: scale(.82); } }
.go-cart { position: relative; display: flex; align-items: center; gap: 8px; width: 214px; height: 42px; padding: 0 6px 0 12px; border-radius: 14px; background: var(--ink); color: #fff; overflow: hidden; }
.go-cart > .ic { font-size: 16px; }
.go-n, .go-sum { display: inline-grid; font-weight: 900; font-variant-numeric: tabular-nums; }
.go-n { font-size: 12.5px; }
.go-sum { font-size: 12.5px; }
.go-n i, .go-sum i { grid-area: 1 / 1; font-style: normal; opacity: 0; }
.go-n i:nth-child(1), .go-sum i:nth-child(1) { animation: goS1 6s steps(1) infinite; }
.go-n i:nth-child(2), .go-sum i:nth-child(2) { animation: goS2 6s steps(1) infinite; }
.go-n i:nth-child(3), .go-sum i:nth-child(3) { animation: goS3 6s steps(1) infinite; }
@keyframes goS1 { 0%, 10% { opacity: 0; } 11%, 26% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes goS2 { 0%, 26% { opacity: 0; } 27%, 42% { opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes goS3 { 0%, 42% { opacity: 0; } 43%, 100% { opacity: 1; } }
.go-send { margin-left: auto; height: 30px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; background: var(--em); font-size: 11px; font-weight: 900; }
.go-ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--em); font-size: 12.5px; font-weight: 900; opacity: 0; animation: goOk 6s var(--ease) infinite; }
.go-ok .ic { stroke-width: 2.8; }
@keyframes goOk { 0%, 56% { opacity: 0; transform: translateY(100%); } 62%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }

/* g-svc */
.g-svc { grid-auto-flow: column; gap: 14px; }
.gs-btn { padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; font-weight: 800; color: var(--text); }
.gs-btn.on { animation: gsTap 3s var(--ease) infinite; }
@keyframes gsTap { 0%, 10%, 100% { transform: none; background: #fff; color: var(--text); border-color: var(--line); } 14% { transform: scale(.92); } 20%, 70% { transform: none; background: var(--em-50); color: var(--em-700); border-color: var(--em-200); } }
.gs-bell { position: relative; width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 26px rgba(15, 23, 42, .1); color: var(--am-700); font-size: 28px; }
.gs-bell .ic { animation: ring 3s ease-in-out infinite; transform-origin: 50% 12%; }
.gs-bell > i { position: absolute; inset: -2px; border-radius: 24px; border: 2px solid var(--am); opacity: 0; animation: gsRip 3s ease-out infinite; }
.gs-bell > i + i { animation-delay: .5s; }
@keyframes gsRip { 0%, 18% { opacity: 0; transform: scale(1); } 22% { opacity: .7; } 60%, 100% { opacity: 0; transform: scale(1.6); } }

/* g-vip */
.gv-card { width: 220px; display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid #ddd6fe; box-shadow: 0 10px 24px rgba(139, 92, 246, .12); }
.gv-head { display: flex; align-items: center; gap: 9px; }
.gv-head b { flex: 1; font-size: 12.5px; font-weight: 900; }
.gv-head em { font-style: normal; font-size: 9.5px; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: var(--vio-700); color: #fff; }
.gv-lock { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--vio-50); color: var(--vio-700); font-size: 16px; }
.gv-lock .ic { grid-area: 1 / 1; }
.gv-lock .a { animation: gvA 6s infinite; }
.gv-lock .b { animation: gvB 6s var(--spring) infinite; }
@keyframes gvA { 0%, 20%, 92%, 100% { opacity: 1; transform: none; } 26%, 86% { opacity: 0; transform: scale(.5) rotate(-20deg); } }
@keyframes gvB { 0%, 22%, 90%, 100% { opacity: 0; transform: scale(.5); } 30%, 84% { opacity: 1; transform: none; } }
.gv-rows { display: grid; gap: 5px; overflow: hidden; animation: gvRows 6s var(--ease) infinite; }
.gv-rows i { display: flex; justify-content: space-between; font-style: normal; font-size: 11px; font-weight: 700; padding: 6px 9px; border-radius: 9px; background: var(--vio-50); }
.gv-rows i span:last-child { font-weight: 900; }
@keyframes gvRows { 0%, 26%, 94%, 100% { max-height: 0; opacity: 0; } 36%, 86% { max-height: 80px; opacity: 1; } }

/* g-pda */
.gp-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; }
.gp-grid i { height: 44px; border-radius: 13px; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 900; background: #fff; border: 1px solid var(--line); color: var(--text); }
.gp-grid .h1, .gp-grid .h2, .gp-grid .h3 { animation: gpOn 6s var(--ease) infinite; }
.gp-grid .h2 { animation-delay: 2s; }
.gp-grid .h3 { animation-delay: 4s; }
@keyframes gpOn { 0%, 2%, 33%, 100% { background: #fff; color: var(--text); border-color: var(--line); box-shadow: none; transform: none; } 6%, 28% { background: var(--ind); color: #fff; border-color: var(--ind); box-shadow: 0 0 0 4px rgba(99, 102, 241, .2); transform: scale(1.06); } }

/* g-scan */
.gsc-frame { position: relative; width: 104px; height: 104px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.gsc-frame .qr-svg { width: 84px; height: 84px; }
.gsc-frame > i { position: absolute; width: 18px; height: 18px; border: 3px solid var(--ind); }
.gsc-frame .c1 { left: -8px; top: -8px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.gsc-frame .c2 { right: -8px; top: -8px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.gsc-frame .c3 { left: -8px; bottom: -8px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.gsc-frame .c4 { right: -8px; bottom: -8px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.gsc-laser { position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: var(--ind); box-shadow: 0 0 12px 3px rgba(99, 102, 241, .6); animation: gscLaser 4s ease-in-out infinite; }
@keyframes gscLaser { 0%, 100% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(86px); opacity: 1; } 55%, 90% { opacity: 0; } }
.gsc-ok { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--em-50); color: var(--em-700); border: 1px solid var(--em-200); animation: gscOk 4s var(--spring) infinite; }
@keyframes gscOk { 0%, 48% { opacity: 0; transform: translateY(6px) scale(.9); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* g-push */
.g-push { gap: 7px; }
.gpu-n { display: flex; align-items: center; gap: 9px; width: 220px; padding: 7px 10px 7px 7px; border-radius: 14px; background: rgba(15, 23, 42, .92); color: #fff; box-shadow: 0 10px 22px rgba(15, 23, 42, .18); animation: gpuIn 6s var(--spring) infinite; }
.gpu-n.n2 { animation-delay: .7s; }
.gpu-n.n3 { animation-delay: 1.4s; }
.gpu-n img { width: 26px; height: 26px; padding: 3px; border-radius: 8px; background: #fff; }
.gpu-n span { display: grid; line-height: 1.25; }
.gpu-n b { font-size: 11px; font-weight: 800; }
.gpu-n small { font-size: 10px; color: #94a3b8; }
@keyframes gpuIn { 0%, 4% { opacity: 0; transform: translateY(-14px) scale(.95); } 12%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(6px); } }

/* g-route */
.g-route { gap: 0; }
.gr-req { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--em-200); color: var(--em-700); font-size: 11px; font-weight: 800; box-shadow: 0 8px 18px rgba(16, 185, 129, .12); }
.gr-lines { width: 200px; height: 50px; overflow: visible; }
.gr-lines path { fill: none; stroke: color-mix(in srgb, var(--ind) 30%, transparent); stroke-width: 2; stroke-dasharray: 3 4; }
.gr-lines path:first-of-type { stroke: var(--em); stroke-dasharray: none; }
.gr-dot { fill: var(--em); offset-path: path("M100 0 C100 25, 30 22, 30 50"); animation: grDot 3s var(--ease) infinite; filter: drop-shadow(0 0 4px rgba(16, 185, 129, .8)); }
@keyframes grDot { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 50% { offset-distance: 100%; opacity: 1; } 60%, 100% { offset-distance: 100%; opacity: 0; } }
.gr-people { display: grid; grid-template-columns: repeat(3, 34px); justify-content: space-between; width: 174px; }
.gr-people i { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.gr-people .on { animation: grOn 3s var(--ease) infinite; }
@keyframes grOn { 0%, 44%, 100% { background: #fff; color: var(--muted); border-color: var(--line); box-shadow: none; } 52%, 88% { background: var(--em); color: #fff; border-color: var(--em); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); } }

/* g-kds */
.gk-cols { position: relative; display: grid; grid-template-columns: repeat(3, 70px); gap: 8px; height: 112px; }
.gk-cols > i { border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-style: normal; padding: 7px 6px; }
.gk-cols > i b { display: block; font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gk-tk { position: absolute; left: 5px; top: 34px; width: 60px; display: grid; padding: 7px 8px; border-radius: 10px; background: #fff; border-left: 4px solid var(--sky); box-shadow: 0 8px 18px rgba(15, 23, 42, .12); animation: gkMove 6s var(--ease) infinite; }
.gk-tk b { font-size: 12px; font-weight: 900; }
.gk-tk small { font-size: 10px; color: var(--muted); font-weight: 700; }
@keyframes gkMove { 0% { opacity: 0; transform: translateY(-10px); } 8%, 28% { opacity: 1; transform: none; border-left-color: var(--sky); } 38%, 58% { transform: translateX(78px); border-left-color: var(--am); } 68%, 88% { opacity: 1; transform: translateX(156px); border-left-color: var(--em); } 96%, 100% { opacity: 0; transform: translateX(156px); } }

/* g-station */
.g-station { grid-template-columns: auto auto; gap: 34px; }
.gst-src { display: grid; justify-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 18px rgba(15, 23, 42, .06); }
.gst-src b { font-size: 11px; font-weight: 900; }
.gst-src i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.gst-src .f, .gst-fly.f { background: var(--am-50); color: var(--am-700); }
.gst-src .d, .gst-fly.d { background: var(--sky-50); color: var(--sky-700); }
.gst-src i { animation: gstFade 4s infinite; }
.gst-src .d { animation-delay: .4s; }
@keyframes gstFade { 0%, 10%, 90%, 100% { opacity: 1; } 18%, 80% { opacity: .25; } }
.gst-dst { display: grid; gap: 10px; }
.gst-dst span { display: inline-flex; align-items: center; gap: 6px; width: 104px; height: 40px; padding: 0 10px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; }
.gst-dst .k .ic { color: #fbbf24; }
.gst-dst .b .ic { color: #7dd3fc; }
.gst-fly { position: absolute; left: calc(50% - 74px); top: calc(50% - 18px); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; opacity: 0; box-shadow: 0 6px 14px rgba(15, 23, 42, .15); }
.gst-fly.f { animation: gstF 4s var(--ease) infinite; }
.gst-fly.d { animation: gstD 4s var(--ease) .4s infinite; }
@keyframes gstF { 0%, 8% { opacity: 0; transform: translate(0, -2px); } 14% { opacity: 1; } 42% { opacity: 1; transform: translate(118px, -25px) scale(.9); } 50%, 100% { opacity: 0; transform: translate(118px, -25px) scale(.6); } }
@keyframes gstD { 0%, 8% { opacity: 0; transform: translate(0, 18px); } 14% { opacity: 1; } 42% { opacity: 1; transform: translate(118px, 27px) scale(.9); } 50%, 100% { opacity: 0; transform: translate(118px, 27px) scale(.6); } }

/* g-link */
.gln-url { display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--em); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; }
.gln-url .ic { color: var(--em-600); font-size: 15px; flex: none; }
.gln-url b { color: var(--ink); font-weight: 900; overflow: hidden; text-overflow: clip; animation: glnType 6s steps(16) infinite; }
@keyframes glnType { 0% { clip-path: inset(0 100% 0 0); } 40%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.gln-ok { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 900; background: var(--em); color: #fff; animation: gscOkL 6s var(--spring) infinite; }
.gln-ok .ic { stroke-width: 2.8; }
@keyframes gscOkL { 0%, 42% { opacity: 0; transform: scale(.7); } 50%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* g-price */
.gpr-val { display: inline-grid; padding: 10px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.gpr-val i { grid-area: 1 / 1; font-style: normal; font-size: 38px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: center; }
.gpr-val i:first-child { animation: gprOut 5s var(--ease) infinite; }
.gpr-val i:last-child { color: var(--em-700); animation: gprIn 5s var(--ease) infinite; }
@keyframes gprOut { 0%, 30%, 96%, 100% { opacity: 1; transform: none; } 38%, 88% { opacity: 0; transform: translateY(-16px); } }
@keyframes gprIn { 0%, 32%, 92%, 100% { opacity: 0; transform: translateY(16px); } 40%, 86% { opacity: 1; transform: none; } }
.gpr-ok { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--em-50); color: var(--em-700); border: 1px solid var(--em-200); animation: gprOk 5s var(--spring) infinite; }
@keyframes gprOk { 0%, 40% { opacity: 0; transform: translateY(6px) scale(.9); } 48%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* g-orders */
.gor-list { display: grid; width: 226px; }
.gor-row { display: flex; align-items: center; gap: 8px; height: 38px; margin-bottom: 7px; padding: 0 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; }
.gor-row b { font-weight: 900; }
.gor-row i { font-style: normal; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.gor-row .n { background: var(--am-50); color: var(--am-700); border: 1px solid var(--am-200); }
.gor-row .p { background: var(--sky-50); color: var(--sky-700); border: 1px solid var(--sky-200); }
.gor-row em { margin-left: auto; font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; }
.gor-row.new { border-color: var(--em-200); box-shadow: 0 8px 18px rgba(16, 185, 129, .14); animation: gorNew 5s var(--spring) infinite; }
@keyframes gorNew { 0%, 10% { opacity: 0; transform: translateY(-12px) scale(.96); margin-top: -45px; } 22%, 88% { opacity: 1; transform: none; margin-top: 0; } 100% { opacity: 0; transform: none; margin-top: 0; } }

/* g-health */
.gh-card { width: 232px; display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(15, 23, 42, .07); }
.gh-top { display: flex; justify-content: space-between; font-size: 12px; }
.gh-top b { font-weight: 800; }
.gh-top em { font-style: normal; font-weight: 900; color: var(--em-600); }
.gh-bar { height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.gh-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f43f5e, #fb923c 55%, #f59e0b); animation: ghFill 5s var(--ease) infinite; }
@keyframes ghFill { 0%, 6% { width: 0; } 50%, 92% { width: 100%; } 100% { width: 100%; opacity: 0; } }
.gh-ok { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 10px; background: var(--em-50); color: var(--em-700); font-size: 10.5px; font-weight: 800; animation: gprOk 5s var(--spring) .3s infinite; }
.gh-ok .ic { font-size: 15px; }

/* g-qr */
.g-qr { grid-auto-flow: column; gap: 14px; }
.gq-card { padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.gq-card .qr-svg { width: 104px; height: 104px; animation: gqColor 8s steps(1) infinite; }
@keyframes gqColor { 0% { color: #0f172a; } 25% { color: #0284c7; } 50% { color: #047857; } 75% { color: #be123c; } }
.gq-sw { display: grid; gap: 7px; }
.gq-sw i { width: 22px; height: 22px; border-radius: 8px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); animation: gqSw 8s steps(1) infinite; }
.gq-sw i:nth-child(1) { background: #0f172a; }
.gq-sw i:nth-child(2) { background: #0284c7; animation-delay: 2s; }
.gq-sw i:nth-child(3) { background: #047857; animation-delay: 4s; }
.gq-sw i:nth-child(4) { background: #be123c; animation-delay: 6s; }
@keyframes gqSw { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--em); transform: scale(1.1); } 25%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); transform: none; } }

/* g-acad */
.gac-card { width: 232px; display: grid; gap: 8px; }
.gac-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.gac-row > i { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--sky-600); font-size: 15px; }
.gac-row > span { flex: 1; display: grid; gap: 6px; }
.gac-row b { font-size: 11.5px; font-weight: 800; }
.gac-row em { height: 5px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.gac-row u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--em)); animation: gacFill 5s var(--ease) infinite; }
.gac-row + .gac-row u { animation-delay: .8s; }
@keyframes gacFill { 0% { width: 0; } 60%, 92% { width: 100%; } 100% { width: 100%; opacity: 0; } }

@media (max-width: 1100px) {
  .fpanel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .features { padding-top: 64px; }
  .features h2 { font-size: clamp(29px, 8vw, 40px); }
  .fx-head { margin-bottom: 20px; }
  .ftabs { width: 100%; }
  .ftabs button { flex: 1; justify-content: center; padding: 0 6px; gap: 5px; font-size: 12.5px; }
  .ftabs button .ic, .ftabs button em { display: none; }
  .fpanel {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
  }
  .fpanel::-webkit-scrollbar { display: none; }
  .fc { scroll-snap-align: start; }
  .fdots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .fdots[hidden] { display: none; }
  .fdots i { width: 6px; height: 6px; border-radius: 99px; background: #cbd5e1; transition: width .35s var(--ease), background-color .3s; }
  .fdots i.on { width: 20px; background: var(--ink); }
  .fc:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-art *, .fc-art *::before, .fc-art *::after { animation: none !important; }
  .gl-words i:first-child, .go-n i:last-child, .go-sum i:last-child { opacity: 1; }
  .go-ok, .gv-lock .b, .gst-fly, .gpr-val i:first-child, .gsc-laser { display: none; }
}

/* iOS status bar (hero phone + demo phone), so the dynamic island never covers content */
.ios-sb { display: flex; align-items: center; justify-content: space-between; background: #fff; color: #0f172a; }
.ios-sb b { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; font-family: -apple-system, "SF Pro Text", Inter, sans-serif; }
.ios-sb svg { width: 52px; height: 10px; fill: currentColor; }

/* "and more" chips */
/* "and more": the features a demo can't show, as quiet tiles */
.tm { margin-top: 28px; padding: 26px; border-radius: 28px; background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid var(--line); }
.tm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 18px; padding: 0 4px; }
.tm-head h3 { font-size: 20px; font-weight: 850; letter-spacing: -.015em; color: var(--ink); }
.tm-head p { font-size: 14px; color: var(--muted); }
.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tm-grid li { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 16px 16px 16px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line-soft);
  transition: border-color .35s, box-shadow .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1); }
.tm-grid li:hover { border-color: var(--line); box-shadow: 0 14px 30px rgba(15, 23, 42, .07); transform: translateY(-2px); }
.tm-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; border: 1px solid; font-size: 19px; }
.tm-t { display: grid; gap: 3px; min-width: 0; }
.tm-t b { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.tm-t small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.tm-grid em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; color: var(--ind-700); background: var(--ind-50); border: 1px solid var(--ind-200); padding: 2px 8px; border-radius: 99px; }
.tm-pro .tm-t { padding-right: 84px; }
.tm-soon { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 14px 4px 0; border-top: 1px dashed var(--line); }
.tm-k { margin-right: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tm-soon > span:not(.tm-k) { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.tm-soon .ic { font-size: 15px; color: var(--soft); }
@media (max-width: 1100px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tm { margin-top: 20px; padding: 18px 14px; border-radius: 24px; }
  .tm-head { margin-bottom: 14px; }
  .tm-head h3 { font-size: 18px; }
  .tm-head p { font-size: 13px; }
  .tm-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tm-grid li { padding: 13px 12px; gap: 11px; }
  .tm-ic { width: 36px; height: 36px; font-size: 17px; border-radius: 12px; }
  .tm-t b { font-size: 14.5px; }
  .tm-t small { font-size: 12.5px; }
  .tm-pro .tm-t { padding-right: 0; }
  .tm-grid em { position: static; justify-self: start; margin-top: 5px; }
}

/* ==========================================================================
   Replica · public menu (menu.serviris.com), authored at 390px like the app
   ========================================================================== */
.mn { --mn-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: absolute; left: 0; top: 0; width: 390px; height: var(--mh, 780px); transform: scale(var(--s, .68)); transform-origin: 0 0; overflow: hidden;
  background: #f8fafc; color: #1e293b; font-family: var(--mn-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-align: left; }
.mn button { font: inherit; color: inherit; cursor: default; }
.mn .ic { width: 1em; height: 1em; stroke-width: 2; }
.mn-scroll { position: absolute; left: 0; right: 0; top: 0; padding: 82px 10px 120px; transform: translate3d(0, calc(var(--y, 0) * -1px), 0); transition: transform .8s cubic-bezier(.42, 0, .2, 1); will-change: transform; }
.mn-cat { position: relative; height: 196px; border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); background: #0f172a; margin-bottom: 20px; }
.mn-cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mn-cat-bg::after { content: ""; position: absolute; inset: 0; background: #0f172aa4; }
.mn-cat-in { position: relative; padding: 30px 24px; color: #fff; }
.mn-cat h2 { font-size: 25px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.mn-cat i { display: block; width: 40px; height: 3px; margin: 12px 0 14px; border-radius: 3px; background: #10b981; }
.mn-cat p { font-size: 14.5px; line-height: 20px; color: rgba(255, 255, 255, .88); }
.mn-item { display: grid; grid-template-rows: 1fr; margin-bottom: 20px; transition: grid-template-rows .55s cubic-bezier(.32, .72, 0, 1), margin .55s cubic-bezier(.32, .72, 0, 1), opacity .3s; }
.mn-item > div { min-height: 0; }
.mn-item.is-out { grid-template-rows: 0fr; margin-bottom: 0; opacity: 0; }
.mn-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .5s, border-color .5s; }
.mn-card.is-hl { border-color: #6ee7b7; box-shadow: 0 0 0 4px rgba(16, 185, 129, .16), 0 10px 24px rgba(16, 185, 129, .12); }
.mn-c-top { display: flex; gap: 12px; }
.mn-c-txt { flex: 1; min-width: 0; }
.mn-card h3 { font-size: 14px; line-height: 20px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-desc { margin-top: 4px; font-size: 12px; line-height: 16px; height: 32px; color: #64748b; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mn-price { margin-top: 8px; min-height: 38px; display: flex; align-items: center; justify-content: space-between; }
.mn-p { position: relative; font-size: 14px; line-height: 20px; font-weight: 600; color: #0f172a; transition: color .4s; }
.mn-pkg { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1; font-weight: 500; color: #334155; transition: color .4s; }
.mn-pkg .ic { font-size: 13px; }
.mn-p.is-new, .mn-pkg.is-new { color: #059669; }
.mn-p.flip { animation: mnFlip .7s cubic-bezier(.22, 1, .36, 1); }
@keyframes mnFlip { 0% { opacity: 0; transform: translateY(10px); } }
.mn-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.mn-tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid; border-radius: 99px; padding: 4px 12px; font-size: 11px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.mn-tag .ic { font-size: 14px; }
.mn-img { width: 80px; height: 80px; flex: none; border-radius: 16px; overflow: hidden; background: #e2e8f0; }
.mn-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-btns { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mn-al, .mn-add { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 99px; font-size: 12px !important; line-height: 18px; font-weight: 600; white-space: nowrap; }
.mn-al { border: 1px solid #cbd5e1; background: #fff; color: #334155 !important; }
.mn-al.is-none { opacity: 0; }
.mn-al .ic, .mn-add .ic { font-size: 14px; margin-right: 6px; }
.mn-add { position: relative; background: #0f172a; color: #fff !important; overflow: hidden; transition: background-color .3s; }
.mn-add > span { display: inline-flex; align-items: center; transition: opacity .25s, transform .35s cubic-bezier(.22, 1, .36, 1); }
.mn-add .a2 { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(8px); }
.mn-add.is-added { background: #10b981; box-shadow: 0 6px 16px rgba(16, 185, 129, .3); }
.mn-add.is-added .a1 { opacity: 0; transform: translateY(-8px); }
.mn-add.is-added .a2 { opacity: 1; transform: none; }
.mn-alo { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); opacity: 0; pointer-events: none; transition: opacity .34s cubic-bezier(.16, 1, .3, 1); }
.mn-alo.on { opacity: 1; pointer-events: auto; }
.mn-alx { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 99px; background: rgba(15, 23, 42, .05); color: #475569; font-size: 14px; }
.mn-alc { display: grid; justify-items: center; gap: 10px; transform: translateY(8px) scale(.985); opacity: 0; transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .24s; }
.mn-alo.on .mn-alc { transform: none; opacity: 1; }
.mn-al-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; background: rgba(15, 23, 42, .06); color: #334155; font-size: 18px; }
.mn-alc b { font-size: 13px; font-weight: 500; color: #1e293b; }
.mn-al-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mn-al-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 99px; border: 1.5px solid #cbd5e1; background: rgba(255, 255, 255, .6); font-size: 13px; color: #334155; }
.mn-al-pill .ic { font-size: 14px; }
.mn-alo.on .mn-al-pill { animation: mnScale .3s cubic-bezier(.4, 0, .2, 1) backwards; }
.mn-alo.on .mn-al-pill:nth-child(2) { animation-delay: .05s; }
.mn-alo.on .mn-al-pill:nth-child(3) { animation-delay: .1s; }
@keyframes mnScale { from { opacity: 0; transform: scale(.85); } }

/* floating header (.sr-nav at 390px) */
.mn-nav { position: absolute; z-index: 10; left: 10px; right: 10px; top: 10px; height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px;
  border: 1px solid #dbe7f3; background: rgba(255, 255, 255, .94); box-shadow: 0 16px 44px rgba(15, 23, 42, .06); backdrop-filter: blur(22px) saturate(1.12); -webkit-backdrop-filter: blur(22px) saturate(1.12); }
.mn-logo { position: relative; width: 36px; height: 36px; flex: none; border-radius: 12px; overflow: hidden; background: #0f172a; color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 850; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.mn-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.mn-logo b { font-weight: 850; letter-spacing: 0; }
.mn-logo b span { color: #38bdf8; }
.mn-logo.is-custom img { opacity: 0; }
.mn-name { flex: 1; min-width: 0; font-size: 19px; line-height: 1.3; font-weight: 900; letter-spacing: -.025em; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.mn[data-bell="1"][data-flag="1"] .mn-acts { gap: 2px; }
/* the gap above the floating header never shows a sliver of the scrolled page under the status bar */
.mn::before { content: ""; position: absolute; z-index: 9; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(#f8fafc 50%, rgba(248, 250, 252, 0)); pointer-events: none; }
.mn-ib { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; color: #475569; font-size: 20px; border: 1px solid transparent; }
.mn-flag img { width: 24px; height: 24px; border: 1px solid #e2e8f0; border-radius: 99px; object-fit: cover; display: block; }
.mn-login { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 18px; }

/* bottom dock */
.mn-dock { position: absolute; z-index: 10; left: 10px; right: 10px; bottom: 14px; }
.mn-dock-in { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 16px; border-radius: 99px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(219, 231, 243, .9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 6px 24px rgba(0, 0, 0, .05); color: #334155; }
.mn-db { position: relative; }
.mn-dock button { display: grid; place-items: center; padding: 4px 10px; border-radius: 99px; font-size: 16px; line-height: 24px; height: 32px; }
.mn-dock button .ic { font-size: 16px; }
.mn-fdot { position: absolute; top: 0; right: 0; width: 6px; height: 6px; border-radius: 99px; background: #10b981; opacity: 0; transition: opacity .3s; }
.mn-fdot.on { opacity: 1; }
.mn-badge { position: absolute; left: 50%; top: -20px; translate: -50% 0; display: flex; align-items: center; justify-content: center; min-width: 48px; padding: 4px 8px; border-radius: 8px;
  background: linear-gradient(to bottom right, #0f172a, #334155); color: #fff; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); opacity: 0; transition: opacity .3s; }
.mn-badge.show { opacity: 1; }
.mn-badge.bump { animation: mnBump .35s cubic-bezier(.4, 0, .2, 1); }
@keyframes mnBump { 50% { transform: scale(1.12); } }

/* phone toast */
.mn-toast { position: absolute; z-index: 12; left: 50%; top: 84px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: #0f172a; color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 30px rgba(15, 23, 42, .25); opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.mn-toast .ic { color: #34d399; font-size: 16px; }
.mn-toast.on { opacity: 1; transform: none; }

/* modals (.menu-modal at 390px) */
.mn-modal { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(15, 23, 42, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  visibility: hidden; transition: background-color .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease, visibility 0s .3s; }
.mn-modal.on { visibility: inherit; background: rgba(15, 23, 42, .34); backdrop-filter: blur(8px) saturate(1.08); -webkit-backdrop-filter: blur(8px) saturate(1.08); transition: background-color .42s ease, backdrop-filter .42s ease, -webkit-backdrop-filter .42s ease, visibility 0s; }
.mn-mp { width: 100%; max-width: 384px; max-height: calc(100% - 20px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(0, 0, 0, .12);
  opacity: 0; transform: translate3d(0, 10px, 0) scale(.985); transition: opacity .3s, transform .3s cubic-bezier(.22, 1, .36, 1); }
.mn-modal.on .mn-mp { opacity: 1; transform: none; transition: opacity .42s, transform .42s cubic-bezier(.22, 1, .36, 1); }
.mn-mh { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border-bottom: 1px solid #f1f5f9; }
.mn-mh-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mn-mh-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #f1f5f9; color: #475569; font-size: 18px; }
.mn-mh h3 { font-size: 15px; line-height: 1.2; font-weight: 800; color: #0f172a; }
.mn-mh p { margin-top: 2px; font-size: 12px; line-height: 1.35; color: #94a3b8; }
.mn-mx { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #94a3b8; font-size: 18px; }
.mn-mb { flex: 1; min-height: 0; overflow: hidden; padding: 14px; }
.mn-mf { flex: none; border-top: 1px solid #f1f5f9; padding: 14px; background: #fff; }
.mn-langs { display: flex; flex-direction: column; gap: 4px; }
.mn-lo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: #fff; transition: background-color .18s, border-color .18s, box-shadow .18s; }
.mn-lo.is-a { border-color: #e2e8f0; background: #f8fafc; box-shadow: 0 0 0 1px rgba(15, 23, 42, .05); }
.mn-lf { width: 28px; height: 28px; flex: none; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 99px; }
.mn-lf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-lt { flex: 1; min-width: 0; }
.mn-lt b { display: block; font-size: 13px; line-height: 19px; font-weight: 500; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-lt small { display: block; font-size: 12px; line-height: 17px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-lo .ic { font-size: 16px; color: #cbd5e1; flex: none; }
.mn-lo.is-a .ic { color: #10b981; }
/* filters */
.mn-fs + .mn-fs { margin-top: 22px; }
.mn-fh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: #1e293b; }
.mn-fh span { font-size: 12.5px; font-weight: 500; color: #64748b; }
.mn-fin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mn-fin label { display: grid; gap: 6px; font-size: 12px; color: #64748b; }
.mn-fin span { height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 13px; color: #94a3b8; }
.mn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 99px; border: 1.5px solid; font-size: 13px; font-weight: 500; white-space: nowrap; transition: box-shadow .25s, transform .3s; }
.mn-chip .ic { font-size: 14px; }
.mn-chip.pr { border-color: #cbd5e1; color: #334155; font-weight: 600; font-size: 12px; }
.mn-chip.cat { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.mn-chip.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; transform: scale(1.03); }
.mn-mf2 { display: flex; gap: 10px; }
.mn-btn { flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 99px; font-size: 12.5px; font-weight: 840; padding: 0 12px; white-space: nowrap; }
.mn-btn.ghost { border: 1px solid #e2e8f0; color: #334155; }
.mn-btn.dark { background: #0f172a; color: #fff; }
.mn-btn .ic { font-size: 16px; }
/* checkout */
.mn-co-sp { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 13px; color: #334155; }
.mn-co-sp .ic { color: #64748b; font-size: 16px; }
.mn-co-sp span { color: #94a3b8; }
.mn-co-k { margin: 16px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.mn-co-row { display: flex; justify-content: space-between; font-size: 13px; line-height: 26px; color: #334155; }
.mn-co-row b { font-weight: 500; color: #475569; }
.mn-co-tot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid #f1f5f9; font-size: 14px; color: #0f172a; }
.mn-co-tot b { font-size: 15px; font-weight: 800; }
.mn-co-l { margin: 16px 0 8px; font-size: 13px; color: #334155; }
.mn-co-ta { height: 56px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 13px; color: #94a3b8; }
.mn-pay { display: grid; gap: 8px; }
.mn-pay span { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 13px; color: #334155; }
.mn-pay i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; font-size: 15px; font-style: normal; }
.mn-pay .is-a { border: 1.5px solid #0f172a; }
.mn-pay .is-a i { background: #0f172a; border-color: #0f172a; color: #fff; }
.mn-pay .is-a .ic:last-child { margin-left: auto; color: #10b981; font-size: 16px; }
.mn-co-info { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #94a3b8; }
.mn-confirm { width: 100%; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; background: #0f172a; color: #fff !important; font-size: 13px; font-weight: 800; }
/* service requests */
.mn-req { display: grid; gap: 8px; }
.mn-req span { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; font-size: 13px; color: #334155; transition: background-color .3s, border-color .3s; }
.mn-req i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: 15px; }
.mn-req .ic:last-child { margin-left: auto; color: #cbd5e1; font-size: 15px; }
.mn-req .is-sent { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.mn-req .is-sent i { background: #10b981; border-color: #10b981; color: #fff; }
/* switching language: a soft wave over the text */
.mn [data-k] { transition: opacity .2s, filter .2s; transition-delay: calc(var(--i, 0) * 45ms); }
.mn.xl [data-k] { opacity: 0; filter: blur(3px); }

/* ==========================================================================
   Replica · staff panel (app.serviris.com) below the lg breakpoint
   ========================================================================== */
.ap { --ap-font: ui-sans-serif, system-ui, sans-serif;
  position: absolute; left: 0; top: 0; width: var(--aw, 780px); height: var(--ah, 520px); transform: scale(var(--s, .8)); transform-origin: 0 0; overflow: hidden;
  padding: 20px 20px 0; background: #f8fafc; color: #0f172a; font-family: var(--ap-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-align: left; }
.ap .ic { width: 1em; height: 1em; }
.ap-top { position: relative; z-index: 3; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 12px; margin-bottom: 20px; border-radius: 16px; background: rgba(255, 255, 255, .9); border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ap-burger { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 99px; color: #64748b; font-size: 18px; }
.ap-top .ap-ttl { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.ap-ics { display: flex; gap: 8px; }
.ap-ics > span { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #64748b; font-size: 20px; }
.ap-ics i { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #f43f5e; color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; transform: scale(0); transition: transform .4s var(--spring); }
.ap-ics i.on { transform: none; }
.ap-fl img { width: 24px; height: 24px; border-radius: 99px; border: 1px solid #e2e8f0; display: block; }
.ap-views { position: relative; }
.ap-v { position: absolute; left: 0; right: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.ap-v.on { position: relative; opacity: 1; visibility: inherit; transition: opacity .45s .05s, visibility 0s; }
.ap-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 6px 4px 0; margin-bottom: 18px; }
.ap-h h2 { font-size: 15px; font-weight: 700; }
.ap-h p { margin-top: 2px; font-size: 12.5px; color: #94a3b8; }
.ap-hr { display: flex; gap: 8px; }
.ap-ring { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 99px; border: 2.5px solid #10b981; font-size: 11.5px; font-weight: 700; color: #047857; }
.ap-rf { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 99px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; font-size: 15px; }
.ap-add { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 12px; background: #1e293b; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ap-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow: hidden; white-space: nowrap; }
.ap-tabs span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid #e2e8f0; background: #fff; font-size: 13px; color: #475569; flex: none; }
.ap-tabs i { min-width: 20px; height: 18px; padding: 0 5px; border-radius: 99px; background: #f1f5f9; font-size: 11px; font-weight: 700; font-style: normal; line-height: 18px; text-align: center; color: #475569; transition: background-color .3s; }
.ap-tabs .is-on { background: #0f172a; border-color: #0f172a; color: #fff; font-weight: 600; }
.ap-tabs .is-on i { background: rgba(255, 255, 255, .18); color: #fff; }
.ap-tabs i.bump { animation: mnBump .4s; background: #fde68a; }
.ap-tools { display: flex; justify-content: flex-end; gap: 8px; margin: -4px 0 16px; }
.ap-tools > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #94a3b8; font-size: 14px; }
.ap-tools .pg { width: auto; padding: 0 10px; font-size: 12px; color: #334155; }
.ap-list { display: grid; gap: 22px; }
.ap-o, .ap-p, .ap-a { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ap-o { padding: 18px 20px 12px; }
.ap-ob, .ap-pb { position: absolute; left: 14px; top: 0; translate: 0 -50%; display: flex; gap: 6px; }
.ap-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; border: 1px solid #e2e8f0; background: #fff; font-size: 11.5px; font-weight: 600; color: #334155; }
.ap-chip em { font-style: normal; color: #94a3b8; }
.ap-chip .ic { font-size: 11px; color: #94a3b8; }
.ap-st { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px; border: 1px solid; font-size: 11.5px; font-weight: 700; }
.ap-st.pending { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.ap-st.prep { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }
.ap-st.done { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ap-or { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ap-ot { min-width: 0; display: grid; }
.ap-ot b { font-size: 14px; font-weight: 600; color: #1e293b; }
.ap-ot small { margin-top: 2px; font-size: 12.5px; color: #94a3b8; }
.ap-oa { display: flex; align-items: center; gap: 12px; flex: none; }
.ap-pay { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; background: #fff7ed; color: #f97316; font-size: 15px; }
.ap-oa b { font-size: 15px; font-weight: 700; }
.ap-oa > .ic { font-size: 18px; color: #cbd5e1; }
.ap-os { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 12px; color: #94a3b8; }
.ap-os span { display: inline-flex; align-items: center; gap: 5px; }
.ap-os .ic { font-size: 13px; color: #10b981; }
.ap-os b { font-size: 13px; font-weight: 600; color: #047857; }
.ap-o.is-new { animation: apNew .9s cubic-bezier(.22, 1, .36, 1) both; border-color: #a5b4fc; box-shadow: 0 0 0 4px rgba(99, 102, 241, .14), 0 14px 30px rgba(99, 102, 241, .14); transition: border-color 1.2s 2.4s, box-shadow 1.2s 2.4s; }
.ap-o.is-new.calm { border-color: #e2e8f0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
@keyframes apNew { from { opacity: 0; transform: translateY(-16px) scale(.98); } }
.ap-wrap-new { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.32, .72, 0, 1); }
.ap-wrap-new > div { min-height: 0; overflow: hidden; padding-top: 12px; margin-top: -12px; }
.ap-wrap-new:not(.on) > div { visibility: hidden; }
.ap-wrap-new { margin-bottom: -22px; transition: grid-template-rows .6s cubic-bezier(.32, .72, 0, 1), margin .6s cubic-bezier(.32, .72, 0, 1); }
.ap-wrap-new.on { margin-bottom: 0; }
.ap-wrap-new.on { grid-template-rows: 1fr; }
/* products */
.ap-p { display: flex; align-items: center; gap: 14px; height: 70px; padding: 0 16px 0 18px; transition: border-color .5s, box-shadow .5s; }
.ap-p.is-hl { border-color: #fcd34d; box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); }
.ap-on { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; font-size: 11.5px; font-weight: 700; }
.ap-pb i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: #fff; border: 1px solid #a7f3d0; color: #059669; font-size: 12px; }
.ap-th { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; background: #e2e8f0; }
.ap-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-p > b { flex: 1; font-size: 14px; font-weight: 500; color: #1e293b; }
.ap-pp { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 12px; color: #475569; font-variant-numeric: tabular-nums; transition: background-color .4s, border-color .4s, color .4s; }
.ap-pp .ic { font-size: 13px; color: #64748b; }
.ap-pp.is-new { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.ap-dots { width: 28px; height: 28px; display: grid; place-items: center; color: #94a3b8; font-size: 16px; }
/* allergens page */
.ap-a { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 16px; transition: border-color .5s, box-shadow .5s, background-color .5s; }
.ap-apill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 99px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 14px; color: #334155; transition: background-color .4s, border-color .4s, color .4s; }
.ap-apill .ic { font-size: 15px; }
.ap-a.is-hl { border-color: #6ee7b7; box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.ap-a.is-hl .ap-apill { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.ap-a em { margin-left: auto; margin-right: 10px; font-style: normal; font-size: 12px; font-weight: 600; color: #059669; opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .5s var(--e-out); }
.ap-a.is-hl em { opacity: 1; transform: none; }
/* price drawer */
.ap-dr { position: absolute; inset: 0; z-index: 5; visibility: hidden; transition: visibility 0s .4s; }
.ap-dr.on { visibility: inherit; transition: none; }
.ap-dr-bd { position: absolute; inset: 0; background: rgba(15, 23, 42, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background-color .4s, backdrop-filter .4s, -webkit-backdrop-filter .4s; }
.ap-dr.on .ap-dr-bd { background: rgba(15, 23, 42, .3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ap-dr-p { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(15, 23, 42, .15);
  transform: translateX(104%); transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.ap-dr.on .ap-dr-p { transform: none; }
.ap-dr-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #f1f5f9; }
.ap-dr-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #f1f5f9; color: #475569; font-size: 18px; }
.ap-dr-h div { flex: 1; min-width: 0; display: grid; }
.ap-dr-h b { font-size: 15px; font-weight: 700; }
.ap-dr-h small { font-size: 12px; line-height: 1.35; color: #64748b; }
.ap-dr-x { color: #94a3b8; font-size: 18px; }
.ap-dr-b { flex: 1; min-height: 0; overflow: hidden; padding: 20px; display: grid; align-content: start; gap: 16px; }
.ap-sec { display: grid; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid #e2e8f0; }
.ap-sec > b { font-size: 13.5px; font-weight: 700; }
.ap-sec > small { margin-top: -4px; font-size: 11.5px; color: #94a3b8; }
.ap-sec label { margin-top: 6px; font-size: 12.5px; color: #475569; }
.ap-in { position: relative; height: 42px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 13.5px; color: #0f172a; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.ap-in.ph { color: #94a3b8; }
.ap-in.focus { border-color: #0f172a; background: #fff; box-shadow: 0 0 0 3px rgba(15, 23, 42, .08); }
.ap-in.sel [data-ap-val] { background: rgba(14, 165, 233, .25); }
.ap-caret { width: 1.5px; height: 18px; margin-left: 1px; background: #0f172a; opacity: 0; }
.ap-in.focus .ap-caret { animation: apCaret 1s steps(1) infinite; }
@keyframes apCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.ap-dr-f { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid #f1f5f9; }
.ap-btn { flex: 1; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 13.5px; font-weight: 600; color: #334155; }
.ap-btn.dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.ap-toast { position: absolute; z-index: 6; left: 50%; top: 26px; translate: -50% 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
  font-size: 13.5px; font-weight: 600; color: #0f172a; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.ap-toast .ic { color: #10b981; font-size: 18px; }
.ap-toast.on { opacity: 1; transform: none; }
/* the panel on a phone (mobile layout of the app) */
.ap.is-narrow { padding: 10px 10px 0; }
.ap.is-narrow .ap-top { height: 54px; margin-bottom: 14px; }
.ap.is-narrow .ap-top .ap-ttl { font-size: 15px; font-weight: 600; }
.ap.is-narrow .ap-ics > span { width: 38px; }
.ap.is-narrow .ap-ics > span:first-child { display: none; }
.ap.is-narrow .ap-h p { display: none; }
.ap.is-narrow .ap-tools { display: none; }
.ap.is-narrow .ap-list { gap: 20px; }
.ap.is-narrow .ap-o { padding: 18px 16px 12px; }
.ap.is-narrow .ap-dr-p { width: 100%; }
.ap.is-narrow .ap-add { padding: 0 12px; }
.ap.is-narrow .ap-add span { display: none; }

/* ==========================================================================
   PRODUCT TRAILERS — one demo per plan, chaptered, on replicas of the real app
   (light "studio" player · subtitles under the stage · soft chapter transitions)
   ========================================================================== */
.tv { padding: 104px 0 0; }
.tv-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 30px; }
.tv-head h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; font-weight: 900; letter-spacing: -.03em; }
.tv-grad { background: linear-gradient(92deg, #0284c7, #6366f1 55%, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tv-head .lead { text-align: center; max-width: 40em; }
.tv-head .chip .ic { font-size: 15px; }

/* category colours, tuned for a light background (≥ 4.5:1 for the small labels) */
.tv-player { --c-guest: #0369a1; --c-settings: #b45309; --c-panel: #6d28d9; --g-guest: #0ea5e9; --g-settings: #f59e0b; --g-panel: #8b5cf6;
  --cc: var(--c-guest); --gc: var(--g-guest);
  position: relative; padding: 12px; border-radius: 34px; color: var(--ink); isolation: isolate;
  background: linear-gradient(180deg, #ffffff, #f6f9fc); border: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset, 0 30px 80px rgba(15, 23, 42, .08); }
.tv-player[data-cat="settings"] { --cc: var(--c-settings); --gc: var(--g-settings); }
.tv-player[data-cat="panel"] { --cc: var(--c-panel); --gc: var(--g-panel); }

/* top: demo switch · legend · persistent CTA */
.tv-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 66px; padding: 0 2px 12px; }
.tv-switch { position: relative; display: inline-flex; padding: 4px; border-radius: 18px; background: #f1f5f9; border: 1px solid var(--line-soft); transition: opacity .5s var(--e-soft); }
.tv-switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 14px; color: #475569; text-align: left; transition: color .45s var(--e-soft); }
.tvs-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #fff; border: 1px solid var(--line-soft); font-size: 17px; color: var(--muted); transition: background-color .45s, color .45s, border-color .45s; }
.tvs-t { display: grid; line-height: 1.2; }
.tvs-t b { font-size: 14px; font-weight: 800; color: inherit; white-space: nowrap; }
.tvs-t small { font-size: 11.5px; font-weight: 650; color: #475569; }
.tv-switch button[aria-selected="true"] { color: var(--ink); }
.tv-switch button[aria-selected="true"] .tvs-ic { background: linear-gradient(135deg, #0ea5e9, #6366f1); border-color: transparent; color: #fff; }
.tvs-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .08), 0 0 0 1px rgba(15, 23, 42, .04);
  transition: transform .55s cubic-bezier(.2, 0, 0, 1), width .55s cubic-bezier(.2, 0, 0, 1); }
.tv-player[data-state="poster"] .tv-switch { opacity: 0; pointer-events: none; }
.tv-top { position: relative; }
/* the legend is centred on the player, not on the space left between the switch and the CTA */
.tv-legend { position: absolute; left: 50%; top: calc(50% - 6px); translate: -50% -50%; white-space: nowrap; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tv-legend li { display: inline-flex; align-items: center; gap: 7px; }
.tv-legend i { width: 16px; height: 4px; border-radius: 4px; background: var(--d); }
.tv-legend [data-c="guest"] { --d: var(--g-guest); }
.tv-legend [data-c="settings"] { --d: var(--g-settings); }
.tv-legend [data-c="panel"] { --d: var(--g-panel); }
.tv-mini { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16); opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none; transition: opacity .5s var(--e-soft), transform .6s var(--e-out), visibility 0s .5s; }
.tv-mini.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .5s var(--e-soft), transform .6s var(--e-out), visibility 0s; }
.tv-mini .ic { font-size: 15px; }

/* stage: the two devices, centred */
.tv-stage { --sh: clamp(380px, calc(100vh - 372px), 612px); --sh: clamp(380px, calc(100svh - 372px), 612px); --dh: calc(var(--sh) - 68px); position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 56px; height: var(--sh); padding: 0 36px 52px; border-radius: 24px; overflow: clip;
  background: #fbfcfe; border: 1px solid var(--line-soft); }
.tv-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tv-glow::before { content: ""; position: absolute; left: 50%; top: 46%; width: 1100px; height: 620px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gc) 13%, transparent), transparent); transition: background 1s var(--e-soft); }
.tv-glow::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000, transparent); mask-image: radial-gradient(75% 75% at 50% 45%, #000, transparent); }

/* devices */
.tv-dev { position: relative; flex: none; transform-origin: 50% 100%; filter: saturate(1) blur(0px); transition: opacity .6s var(--e-soft), transform .8s var(--e-out), filter .6s var(--e-soft); }
.tv-player[data-dev="phone"] .tv-panel, .tv-player[data-dev="panel"] .tv-phone { opacity: .72; transform: scale(.975); filter: saturate(.8) blur(0px); }
.tv-label { position: absolute; left: 50%; bottom: -28px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; font-weight: 750; color: #1e293b; }
.tv-label .ic { font-size: 14px; color: var(--cc); }
.tv-phone { --pw: calc(var(--dh) * .4894); height: var(--dh); width: var(--pw); padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .165);
  background: linear-gradient(160deg, #475569, #1e293b 40%, #334155); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 40px 80px rgba(15, 23, 42, .24), 0 12px 24px rgba(15, 23, 42, .1); }
.tvp-island { position: absolute; z-index: 40; left: 50%; top: 17px; width: 80px; height: 23px; translate: -50% 0; border-radius: 20px; background: #05080f; }
/* the phone's chrome scales with the phone (its size follows the screen height) */
.tv-phone, .tv-panel { container-type: inline-size; }
@supports (width: 1cqw) {
  .tvp-island { top: 6.1cqw; width: 28.8cqw; height: 8.3cqw; }
  .tvp-screen { border-radius: 13.7cqw; }
  .tvp-sb { height: 12.2cqw; padding: .7cqw 7.6cqw 0 9.8cqw; }
  .tvp-sb.ios-sb b { font-size: 4.5cqw; }
  .tvp-sb.ios-sb svg { width: 18.4cqw; height: 3.6cqw; }
}
.tvp-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #f8fafc; display: flex; flex-direction: column; }
.tvp-sb { position: relative; z-index: 35; flex: none; height: 34px; padding: 2px 22px 0 28px; background: #f8fafc; transition: background-color .4s, color .4s; }
.tv-player.is-cam .tvp-sb { background: #000; color: #fff; }
.tvp-vp { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tv-panel { flex: 0 1 min(744px, calc((var(--dh) - 36px) * 1.444)); min-width: 0; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px rgba(15, 23, 42, .14), 0 10px 24px rgba(15, 23, 42, .05); }
.tvb-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; border-bottom: 1px solid #eef3f8; border-radius: 16px 16px 0 0; background: #fff; }
.tvb-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tvb-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 7px; background: #f8fafc; border: 1px solid #dbe7f3; font-size: 11px; font-weight: 600; color: #64748b; white-space: nowrap; overflow: hidden; }
.tvb-url b { font-weight: 600; color: #334155; }
.tvb-url .ic { color: #059669; font-size: 11px; flex: none; }
.tvb-screen { position: relative; aspect-ratio: 780 / 540; overflow: hidden; border-radius: 0 0 16px 16px; background: #f8fafc; }
.tvb-vp { position: absolute; inset: 0; overflow: hidden; }

/* soft chapter transition: devices blur out, the chapter card, devices come back */
.tv-dev { will-change: opacity, transform; }
.tv-stage.is-out .tv-dev { opacity: 0 !important; transform: scale(.965) translateY(10px) !important; filter: saturate(.9) blur(10px) !important; transition: opacity .42s var(--e-soft), transform .5s var(--e-soft), filter .42s var(--e-soft) !important; }
.tv-card { position: absolute; inset: 0; z-index: 48; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s var(--e-soft), visibility 0s .3s; }
.tv-card.on { opacity: 1; visibility: visible; transition: opacity .35s var(--e-soft), visibility 0s; }
.tvk-in { display: grid; justify-items: center; gap: 10px; text-align: center; }
.tvk-n { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cc); }
.tvk-t { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.04; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.tvk-c { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px; background: color-mix(in srgb, var(--gc) 12%, #fff); color: var(--cc); font-size: 12.5px; font-weight: 800; }
.tvk-c::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--gc); }
.tvk-line { width: 120px; height: 3px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gc), transparent); transform-origin: left; transform: scaleX(0); }
.tv-card.on .tvk-n { animation: tvkIn .55s var(--e-out) both; }
.tv-card.on .tvk-t { animation: tvkIn .65s var(--e-out) .05s both; }
.tv-card.on .tvk-c { animation: tvkIn .65s var(--e-out) .12s both; }
.tv-card.on .tvk-line { animation: tvkLine .9s var(--e-out) .1s both; }
@keyframes tvkIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes tvkLine { to { transform: scaleX(1); } }

/* subtitles under the stage */
.tv-sub { display: grid; place-items: center; min-height: 112px; padding: 16px 20px 6px; text-align: center; }
.tvc-in { display: grid; justify-items: center; gap: 6px; }
.tvc-k { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 99px; background: color-mix(in srgb, var(--gc) 11%, #fff); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cc); transition: color .5s, background-color .5s; }
.tvc-k i { width: 7px; height: 7px; border-radius: 99px; background: var(--gc); }
.tvc-h { font-size: 26px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.tvc-p { font-size: 15.5px; line-height: 1.45; color: var(--muted); text-wrap: balance; }
.tvc-p { min-height: 1.45em; }
.tvc-in.swap > * { animation: tvIn .6s var(--e-out) both; }
.tvc-in.swap > :nth-child(2) { animation-delay: .05s; }
.tvc-in.swap > :nth-child(3) { animation-delay: .1s; }
@keyframes tvIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

/* hands-on / paused hint: shown in place of the subtitle's chapter label, never over the stage */
.tvc-hint { display: none; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 12.5px; white-space: nowrap; }
.tvc-hint .ic { font-size: 15px; }
.tv-player.is-hands .tvc-tap, .tv-player.is-paused .tvc-wait { display: inline-flex; }
.tv-player.is-hands .tvc-k > i, .tv-player.is-hands [data-tv-k], .tv-player.is-paused .tvc-k > i, .tv-player.is-paused [data-tv-k] { display: none; }
.tv-player.is-paused .tvc-k { background: #f1f5f9; color: var(--text); }

/* the waiter's phone */
.tv-push { position: absolute; z-index: 50; right: 22px; top: 16px; width: 340px; display: grid; gap: 8px; pointer-events: none; }
.tv-player[data-dev="panel"] .tv-push { right: auto; left: 22px; }
.tv-push { transition: opacity .4s var(--e-soft), filter .4s var(--e-soft); }
.tv-stage.is-out .tv-push { opacity: 0; filter: blur(6px); }
.tv-player[data-dev="panel"] .tvq-k { justify-self: start; }
.tvq-k { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; font-weight: 750; color: var(--muted);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06); opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--e-out); }
.tvq-k .ic { font-size: 14px; color: var(--c-panel); }
.tv-push.has .tvq-k { opacity: 1; transform: none; }
.tvq-n { display: flex; gap: 11px; padding: 11px 13px; border-radius: 20px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 24px 50px rgba(15, 23, 42, .16), 0 0 0 1px rgba(139, 92, 246, .12); animation: tvPush .8s var(--e-out) both; }
.tv-instant .tvq-n { animation: none; }
@keyframes tvPush { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
.tvq-n img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.tvq-n .lm { width: 34px; height: 34px; flex: none; }
.tvq-n > span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tvq-h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #64748b; }
.tvq-h small { font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.tvq-n b { font-size: 13.5px; font-weight: 800; color: #0f172a; }
.tvq-n em { font-style: normal; font-size: 12.5px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the discreet hint: a ring hugging the real control, with a soft halo that breathes 3 times then holds */
.tv-arm { position: absolute; z-index: 45; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--e-soft); }
.tv-arm.on { opacity: 1; }
.tv-arm i { position: absolute; left: 0; top: 0; width: var(--w, 40px); height: var(--h, 40px); border-radius: var(--r, 12px); border: 2px solid var(--gc); animation: tvHalo 1.8s ease-in-out 3 forwards; }
@keyframes tvHalo { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gc) 16%, transparent), 0 0 18px color-mix(in srgb, var(--gc) 22%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--gc) 26%, transparent), 0 0 26px color-mix(in srgb, var(--gc) 40%, transparent); } }

/* the finger (phones) / cursor (panel) */
.tv-ptr { position: absolute; z-index: 46; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: transform .55s cubic-bezier(.65, 0, .35, 1), opacity .3s; }
.tv-ptr.on { opacity: 1; }
.tvt-touch { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 99px; background: rgba(15, 23, 42, .2); border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 6px 16px rgba(15, 23, 42, .28); }
.tvt-arrow { position: absolute; left: -4px; top: -3px; width: 26px; height: 26px; filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .3)); display: none; }
.tv-ptr.arrow .tvt-touch { display: none; }
.tv-ptr.arrow .tvt-arrow { display: block; }
.tv-ptr.tap .tvt-touch { animation: tvTap .42s var(--e-out); }
.tv-ptr.tap .tvt-arrow { animation: curPress .3s var(--e-out); }
.tv-ptr.ghost .tvt-touch { animation: tvGhost 1.1s var(--e-out); }
@keyframes tvTap { 40% { transform: scale(.7); background: rgba(15, 23, 42, .3); } }
@keyframes tvGhost { 0% { transform: scale(.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 55% { transform: scale(.8); } 100% { transform: scale(1); opacity: 0; } }
.tv-rip { position: absolute; z-index: 46; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 99px; pointer-events: none; border: 2px solid color-mix(in srgb, var(--gc) 70%, #fff); background: color-mix(in srgb, var(--gc) 16%, transparent); animation: tvRip .6s var(--e-out) forwards; }
@keyframes tvRip { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.tv-press { animation: tvPress .34s var(--e-out); }
@keyframes tvPress { 40% { transform: scale(.93); } }
.tv-fly { position: absolute; z-index: 44; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; pointer-events: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .3); white-space: nowrap; }
.tv-fly .ic { font-size: 14px; color: #a5b4fc; }

/* poster: choose a demo */
.tv-poster { position: absolute; inset: 0; z-index: 60; display: grid; align-content: center; justify-items: center; gap: 22px; padding: 30px;
  background: rgba(248, 250, 252, .72); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); transition: opacity .6s var(--e-soft), visibility 0s; }
.tv-player:not([data-state="poster"]) .tv-poster { opacity: 0; visibility: hidden; transition: opacity .5s var(--e-soft), visibility 0s .5s; }
.tvx-q { font-size: 15px; font-weight: 750; color: var(--text); }
.tvx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 370px)); gap: 18px; }
.tvx { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-radius: 26px; text-align: left; color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(15, 23, 42, .1); transition: transform .5s var(--e-out), border-color .4s, box-shadow .4s; }
.tvx:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 30px 60px rgba(15, 23, 42, .14); }
.tvx-pro { background: linear-gradient(180deg, #f5f7ff, #fff 55%); border-color: #c7d2fe; }
.tvx-k { display: flex; width: 100%; justify-content: space-between; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #475569; }
.tvx-k em { font-style: normal; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.tvx-badge { position: absolute; right: 20px; top: -12px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; background: linear-gradient(90deg, #4f46e5, #0369a1); color: #fff; font-size: 11.5px; font-weight: 800; }
.tvx-badge .ic { font-size: 13px; }
.tvx-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--sky-50); color: var(--sky-600); font-size: 24px; margin-top: 4px; border: 1px solid var(--sky-100); }
.tvx-pro .tvx-ic { background: var(--ind-50); color: var(--ind); border-color: var(--ind-200); }
.tvx > b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.tvx > small { font-size: 14px; color: #475569; text-wrap: balance; }
.tvx-ch { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.tvx-ch span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 650; color: var(--text); }
.tvx-ch i { width: 6px; height: 6px; border-radius: 99px; background: var(--d, #94a3b8); }
.tvx-f { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.tvx-pr { font-size: 20px; font-weight: 900; color: var(--ink); }
.tvx-pr small { font-size: 13px; font-weight: 650; color: #475569; }
.tv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tvx-go { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px;
  font-size: 15px; font-weight: 750; color: var(--sky-700); background: var(--sky-50); border: 1px solid var(--sky-200);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.tvx:hover .tvx-go { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.tvx-go .ic { font-size: 16px; transition: transform .4s var(--spring); }
.tvx:hover .tvx-go .ic { transform: translateX(2px); }

/* end card */
.tv-end { position: absolute; inset: 0; z-index: 58; display: grid; place-items: center; padding: 24px; background: rgba(248, 250, 252, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--e-soft), visibility 0s .6s; }
.tv-player[data-state="end"] .tv-end { opacity: 1; visibility: visible; transition: opacity .6s var(--e-soft), visibility 0s; }
.tve-card { width: min(100%, 540px); display: grid; justify-items: center; gap: 14px; padding: 32px 30px 24px; border-radius: 30px; background: #fff; color: var(--ink); text-align: center; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(15, 23, 42, .16); }
.tv-player[data-state="end"] .tve-card > * { animation: capIn .7s var(--e-out) both; }
.tv-player[data-state="end"] .tve-card > :nth-child(2) { animation-delay: .06s; }
.tv-player[data-state="end"] .tve-card > :nth-child(3) { animation-delay: .12s; }
.tv-player[data-state="end"] .tve-card > :nth-child(4) { animation-delay: .18s; }
.tv-player[data-state="end"] .tve-card > :nth-child(5) { animation-delay: .24s; }
.tv-player[data-state="end"] .tve-card > :nth-child(6) { animation-delay: .3s; }
.tve-ic { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; font-size: 29px; color: #fff; background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #10b981); box-shadow: 0 14px 30px rgba(14, 165, 233, .3); }
.tve-t { font-size: 25px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.tve-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 470px; }
.tve-list li { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px 4px 8px; border-radius: 99px; background: var(--em-50); border: 1px solid var(--em-200); color: var(--em-700); font-size: 13px; font-weight: 700; }
.tve-list .ic { color: var(--em); stroke-width: 2.6; }
.tve-pr { display: grid; gap: 2px; }
.tve-pr b { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.tve-pr b small { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.tve-pr span { font-size: 13.5px; color: var(--muted); text-wrap: balance; }
.tve-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
.tve-other { display: inline-block; max-width: 100%; min-height: 40px; padding: 8px 4px; font-size: 14.5px; line-height: 1.4; font-weight: 750; color: var(--sky-700); text-align: center; text-wrap: balance; }
.tve-other .ic { vertical-align: -3px; }
.tve-other .ic { font-size: 16px; }
.tve-again { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tve-again:hover { color: var(--ink); }

/* bottom bar: play · chapters timeline · time */
.tv-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 16px; padding: 6px 8px 2px; }
.tv-play { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: #fff; font-size: 18px; box-shadow: 0 10px 22px rgba(15, 23, 42, .2); transition: transform .35s var(--spring), box-shadow .4s; }
.tv-play:hover { transform: scale(1.06); }
.tv-play .ic { grid-area: 1 / 1; stroke-width: 2.2; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--e-out); }
.tv-play[data-state="play"] .ic:nth-child(1), .tv-play[data-state="pause"] .ic:nth-child(2), .tv-play[data-state="replay"] .ic:nth-child(3) { opacity: 1; transform: none; }
.tv-play.nudge { animation: tvNudge 1.6s ease-in-out 2; }
@keyframes tvNudge { 50% { box-shadow: 0 0 0 7px rgba(15, 23, 42, .12), 0 10px 22px rgba(15, 23, 42, .2); } }
.tv-tl { position: relative; padding-top: 4px; outline: none; border-radius: 8px; touch-action: pan-y; }
.tv-tl:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sky-700); }
.tvt-segs { display: flex; gap: 4px; }
.tvt-seg { position: relative; flex: var(--g, 1) 1 0; min-width: 0; display: grid; gap: 9px; padding: 12px 0 6px; text-align: left; cursor: pointer; }
.tvt-track { position: relative; height: 6px; border-radius: 6px; background: #e2e8f0; overflow: hidden; transition: height .25s var(--e-out); }
.tvt-seg:hover .tvt-track, .tv-tl.drag .tvt-track { height: 8px; }
.tvt-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tvt-ticks { position: absolute; left: 0; right: 0; top: 4px; height: 3px; display: flex; }
.tvt-ticks i { height: 100%; border-radius: 3px; background: var(--d); }
.tvt-lab { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: color .35s; }
.tvt-lab em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.tvt-lab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvt-seg.is-on .tvt-lab { color: var(--ink); }
.tvt-seg.is-on .tvt-lab em { color: var(--cc); }
.tvt-seg:hover .tvt-lab { color: var(--ink); }
.tvt-tip { position: absolute; bottom: calc(100% + 6px); left: 0; translate: -50% 0; display: grid; gap: 2px; width: max-content; max-width: 260px; padding: 9px 12px; border-radius: 12px; background: var(--ink); color: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .25); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .25s var(--e-out); }
.tvt-tip.on { opacity: 1; transform: none; }
.tvt-tip b { font-size: 13px; font-weight: 800; }
.tvt-tip span { font-size: 12px; color: rgba(226, 232, 240, .8); }
.tv-time { padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tv-time b { color: var(--ink); }
.tv-chbtn { display: none; }
/* poster: only the choice, no empty player chrome around it */
.tv-player[data-state="poster"] .tv-top, .tv-player[data-state="poster"] .tv-bar, .tv-player[data-state="poster"] .tv-sub { display: none; }
.tv-player[data-state="poster"] .tv-sub, .tv-player[data-state="poster"] .tv-time { visibility: hidden; }
@media (min-width: 901px) {
  .tv-player[data-state="end"] .tv-sub { display: none; }
  .tv-player[data-state="end"] .tv-stage { height: calc(var(--sh) + 112px); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .tv-player[data-state="end"] .tv-stage { height: calc(var(--sh) + 100px); }
  .tve-ic { display: none; }
  .tve-card { gap: 10px; padding: 22px 26px 16px; }
}
/* the owner's phone gets a status bar too (narrow panel only) */
.tvb-sb { display: none; }
.tv-sheet { display: none; }

/* instant mode (seeking): no transitions anywhere inside the stage */
.tv-instant .tv-stage *, .tv-instant .tv-stage *::before, .tv-instant .tv-stage *::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }

/* ==========================================================================
   Replica additions · camera scan, cart, settings, dashboard, QR, order detail
   ========================================================================== */
/* features switched off/on from Settings (the menu reacts) */
.mn .mn-add { transition: opacity .45s, transform .6s var(--spring), background-color .3s; }
.mn[data-cart="0"] .mn-add { opacity: 0; transform: scale(.7); visibility: hidden; }
.mn [data-mn-cartw] { transition: opacity .45s, transform .6s var(--spring); }
.mn[data-cart="0"] [data-mn-cartw] { opacity: 0; transform: scale(.5); }
.mn-hx { display: grid; place-items: center; overflow: hidden; transition: width .5s var(--e-out), opacity .4s, margin .5s var(--e-out); width: 40px; }
.mn[data-bell="0"] [data-mn-bell], .mn[data-flag="0"] [data-mn-flag] { width: 0; opacity: 0; margin-left: -8px; }
.mn-hx.mn-pop { animation: mnHx .7s var(--spring); }
@keyframes mnHx { 30% { transform: scale(1.3); } }
.mn[data-orders="1"] [data-mn-share], .mn:not([data-orders="1"]) [data-mn-order] { display: none; }
.ap:not(.is-pro) [data-pro] .as-rd { display: none; }
.ap:not(.is-pro) [data-pro] .as-t { opacity: .55; }
.ap.is-pro .as-lock { display: none; }
/* the camera: the guest scans the table's QR */
.mn-cam { position: absolute; inset: 0; z-index: 30; background: #000; overflow: hidden; transition: transform .7s cubic-bezier(.32, .72, 0, 1), opacity .5s; }
.mn-cam.off { transform: translateY(-100%); }
.mn-cam-feed { position: absolute; inset: -20px; background: center / cover; filter: blur(7px) brightness(.55) saturate(1.1); transform: scale(1.1); }
.mn-cam-ui { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 18px 24px; color: #fff; font-size: 22px; opacity: .9; }
.mn-tent { position: absolute; left: 50%; top: 41%; width: 236px; translate: -50% -50%; padding: 18px 18px 14px; border-radius: 24px; background: #fff; text-align: center; transform: rotate(-2deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .6); }
.mn-qrw { position: relative; display: block; width: 200px; height: 200px; margin: 0 auto; }
.mn-qrw svg { display: block; width: 100%; height: 100%; }
.mn-tent b { display: block; margin-top: 12px; font-size: 16px; font-weight: 800; color: #0f172a; }
.mn-tent small { font-size: 12.5px; color: #64748b; }
.mn-brk { position: absolute; inset: -46px; transition: inset .55s cubic-bezier(.22, 1, .36, 1), opacity .3s; opacity: .85; }
.mn-brk i { position: absolute; width: 36px; height: 36px; border: 4px solid #facc15; }
.mn-brk i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.mn-brk i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.mn-brk i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.mn-brk i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.mn-cam.lock .mn-brk { inset: -12px; opacity: 1; }
.mn-pill { position: absolute; left: 50%; bottom: 172px; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 99px; background: #facc15; color: #111; font-size: 15px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(14px) scale(.95); transition: opacity .35s, transform .5s cubic-bezier(.22, 1, .36, 1); }
.mn-pill i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; background: rgba(0, 0, 0, .12); font-size: 17px; font-style: normal; }
.mn-cam.pill .mn-pill { opacity: 1; transform: none; }
.mn-shut { position: absolute; left: 50%; bottom: 42px; width: 72px; height: 72px; translate: -50% 0; border-radius: 99px; border: 4px solid #fff; }
.mn-shut::after { content: ""; position: absolute; inset: 5px; border-radius: inherit; background: #fff; }
.mn-modes { position: absolute; left: 0; right: 0; bottom: 128px; display: flex; justify-content: center; gap: 22px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.mn-modes b { color: #facc15; }
/* cart modal */
.mn-ci { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.mn-ci img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.mn-ci > span:not(.mn-qty) { flex: 1; min-width: 0; display: grid; }
.mn-ci b { font-size: 13.5px; font-weight: 600; color: #0f172a; }
.mn-ci small { font-size: 12.5px; color: #64748b; }
.mn-qty { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 4px; border-radius: 99px; border: 1px solid #e2e8f0; font-size: 13px; font-weight: 700; color: #0f172a; }
.mn-qty i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; background: #f8fafc; font-style: normal; color: #475569; font-size: 14px; }
.mn-ctot { display: flex; justify-content: space-between; padding-top: 14px; font-size: 14px; color: #0f172a; }
.mn-ctot b { font-size: 16px; font-weight: 800; }
/* panel · settings */
.ap-v[data-v] { height: calc(var(--ah, 520px) - 96px); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px); mask-image: linear-gradient(to bottom, transparent, #000 14px); }
.ap.is-narrow .ap-v[data-v] { height: calc(var(--ah, 760px) - 78px); }
.ap-pane { position: relative; padding-top: 10px; transform: translate3d(0, calc(var(--py, 0) * -1px), 0); transition: transform .8s cubic-bezier(.42, 0, .2, 1); }
.as-card { margin-bottom: 18px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.as-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #f1f5f9; }
.as-hic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #f1f5f9; color: #475569; font-size: 17px; }
.as-head > div { flex: 1; min-width: 0; display: grid; }
.as-head b { font-size: 14.5px; font-weight: 700; }
.as-head small { font-size: 12px; color: #94a3b8; }
.as-save { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 12.5px; font-weight: 600; color: #334155; transition: background-color .3s, color .3s, border-color .3s; }
.as-save.dirty { background: #0f172a; border-color: #0f172a; color: #fff; }
.as-body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.as-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px solid transparent; transition: background-color .35s, border-color .35s, box-shadow .35s; }
.as-row.box { border-color: #e2e8f0; background: #f8fafc; }
[data-as-card="langs"] .as-row.box:not(.is-on) { border-color: transparent; background: transparent; }
.as-row.is-on { background: #f8fafc; border-color: #e2e8f0; box-shadow: 0 0 0 1px rgba(15, 23, 42, .03); }
.as-flag { width: 26px; height: 26px; border-radius: 99px; overflow: hidden; border: 1px solid #e2e8f0; flex: none; }
.as-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-fic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 99px; background: #fff; border: 1px solid #eef2f7; font-size: 17px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.as-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.as-t b { font-size: 13.5px; font-weight: 600; color: #1e293b; }
.as-t small { font-size: 12px; color: #94a3b8; line-height: 1.4; }
.as-def { height: 22px; padding: 0 8px; display: grid; place-items: center; border-radius: 6px; border: 1px solid #e2e8f0; font-size: 11px; font-weight: 700; color: #94a3b8; }
.as-def.on { background: #10b981; border-color: #10b981; color: #fff; }
.as-rd { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 99px; border: 1.5px solid #cbd5e1; background: #fff; transition: border-color .3s, background-color .3s; }
.as-rd .ic { width: 12px; height: 12px; stroke-width: 3.2; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--spring); }
.is-on > .as-rd { background: #10b981; border-color: #10b981; }
.is-on > .as-rd .ic { opacity: 1; transform: none; }
.as-lock { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: #eef2ff; color: #4f46e5; font-size: 11px; font-weight: 700; white-space: nowrap; }
.as-lock .ic { font-size: 12px; }
.as-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.32, .72, 0, 1); }
.as-sub > div { min-height: 0; overflow: hidden; display: grid; gap: 8px; padding-left: 28px; }
.as-sub.on { grid-template-rows: 1fr; }
.as-sub p { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #64748b; }
.as-sub .as-row { min-height: 50px; padding: 8px 12px; }
.as-sub .as-fic { width: 32px; height: 32px; font-size: 15px; }
/* panel · dashboard */
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ad-stat { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; }
.ad-stat i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-size: 16px; font-style: normal; margin-bottom: 6px; }
.ad-stat small { font-size: 12px; color: #64748b; }
.ad-stat b { font-size: 22px; font-weight: 800; color: #0f172a; }
.ad-health { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; display: grid; gap: 14px; }
.ad-hh { display: flex; align-items: center; gap: 12px; }
.ad-hic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #0f172a; color: #fff; font-size: 17px; }
.ad-hh > div { flex: 1; display: grid; }
.ad-hh b { font-size: 14px; font-weight: 700; }
.ad-hh small { font-size: 12px; color: #64748b; }
.ad-pc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #b45309; transition: color .5s; }
.ad-pc::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.ad-bar { height: 8px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.ad-bar i { display: block; height: 100%; width: var(--hp, 92%); border-radius: inherit; background: linear-gradient(90deg, #ef4444, #f97316 60%, #f59e0b); transition: width 1.2s cubic-bezier(.22, 1, .36, 1), background .8s; }
.ad-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
.ad-box .ic { font-size: 17px; flex: none; }
.ad-box > span:not(.ad-fix) { flex: 1; display: grid; }
.ad-box b { font-size: 13px; font-weight: 700; }
.ad-box small { font-size: 12px; opacity: .85; }
.ad-fix { height: 32px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: #0f172a; color: #fff; font-size: 12.5px; font-weight: 700; }
.ad-health.ok .ad-pc { color: #059669; }
.ad-health.ok .ad-bar i { background: linear-gradient(90deg, #10b981, #34d399); }
.ad-health.ok .ad-box { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.ad-health.ok .ad-fix { display: none; }
/* panel · QR code */
.aq { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.aq-prev { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
.aq-prev > b { justify-self: start; font-size: 14px; font-weight: 700; }
.aq-ghost { position: absolute; inset: 0; margin: auto; width: 196px; height: 196px; pointer-events: none; }
.ap.is-narrow .aq-ghost { width: 156px; height: 156px; }
.aq-frame { position: relative; width: 220px; height: 220px; display: grid; place-items: center; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.aq-prev small { font-size: 11.5px; color: #64748b; }
.aq-opts { display: grid; align-content: start; gap: 14px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
.aq-opts label { font-size: 12.5px; font-weight: 600; color: #475569; }
.aq-g { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-b { height: 34px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 12.5px; font-weight: 600; color: #334155; transition: background-color .3s, color .3s, border-color .3s; }
.aq-b.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.aq-sw { width: 30px; height: 30px; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; transition: box-shadow .3s; }
.aq-sw.is-on { box-shadow: 0 0 0 2px #0f172a; }
/* panel · order detail */
.ao-p { width: 400px; }
.ao-info { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #f8fafc; border: 1px solid #eef2f7; }
.ao-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #64748b; }
.ao-r > span { display: inline-flex; align-items: center; gap: 6px; }
.ao-r b { font-weight: 600; color: #0f172a; }
.ao-pay { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid #fdba74; background: #fff7ed; color: #c2410c; font-size: 12.5px; font-weight: 700; transition: background-color .4s, border-color .4s, color .4s; }
.ao-pay.paid { border-color: #6ee7b7; background: #ecfdf5; color: #047857; }
.ao-k { margin: 6px 0 -4px; font-size: 12.5px; font-weight: 600; color: #64748b; }
.ao-items { border-radius: 14px; border: 1px solid #eef2f7; padding: 0 14px; }
.ao-items div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; color: #334155; border-bottom: 1px solid #f1f5f9; }
.ao-items div:last-child { border-bottom: 0; font-weight: 700; color: #0f172a; }
.ao-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ao-acts span { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid #e2e8f0; font-size: 12.5px; font-weight: 600; color: #334155; transition: background-color .3s, color .3s, border-color .3s; }
.ao-acts span.cancel { border-color: #fecdd3; color: #e11d48; }
.ao-acts span.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.ao-acts .ic { font-size: 14px; }
.ao-k2 { font-size: 12px; font-weight: 600; color: #94a3b8; }
.ap-st.ready { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ap-wave[hidden] { display: none; }
.ap-wave { position: absolute; left: 118px; top: 50%; translate: 0 -50%; display: flex; gap: 3px; align-items: center; height: 18px; }
.ap-wave i { width: 3px; border-radius: 3px; background: #6366f1; animation: apWave .9s ease-in-out 3 both; }
.ap-wave i:nth-child(2) { animation-delay: .12s; } .ap-wave i:nth-child(3) { animation-delay: .24s; }
@keyframes apWave { 0%, 100% { height: 4px; } 50% { height: 16px; } }

.mn-qrbox { position: absolute; inset: 0; display: block; }
.mn-qrbox svg { display: block; width: 100%; height: 100%; }
.aq-frame svg { display: block; width: 196px; height: 196px; }

/* the panel in its narrow (phone) layout */
.ap.is-narrow .aq { grid-template-columns: 1fr; }
.ap.is-narrow .aq-frame { width: 176px; height: 176px; }
.ap.is-narrow .aq-frame svg { width: 156px; height: 156px; }
.ap.is-narrow .ad-stats { grid-template-columns: 1fr 1fr; }
.ap.is-narrow .as-def:not(.on) { display: none; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1240px) {
  .tv-stage { gap: 40px; padding: 0 26px 36px; }
  .tv-legend { display: none; }
}
@media (max-width: 1100px) {
  .tv-stage { --sh: clamp(380px, calc(100vh - 372px), 560px); gap: 28px; padding: 0 20px 36px; }
  .tvt-lab span { display: none; }
  .tvt-lab em { font-size: 12px; }
}
@media (max-width: 900px) {
  .tv { padding-top: 72px; }
  .tv-head { margin-bottom: 20px; gap: 10px; }
  .tv-head h2 { font-size: clamp(28px, 7.6vw, 40px); }
  .tv-player { padding: 8px; border-radius: 28px; }
  .tv-top { grid-template-columns: 1fr; padding: 0 0 8px; min-height: 0; }
  .tv-switch { width: 100%; }
  .tv-switch button { flex: 1; min-width: 0; padding: 0 8px 0 5px; gap: 7px; height: 48px; }
  .tvs-ic { width: 30px; height: 30px; font-size: 15px; }
  .tvs-t b { font-size: 12.5px; white-space: normal; line-height: 1.15; }
  .tvs-t small { font-size: 11px; }
  .tv-mini { display: none; }
  .tv-player[data-state="poster"] .tv-top { display: none; }
  /* one device at a time: the guest's phone, or the owner's phone (the panel in its mobile layout) */
  .tv-stage { --dh: clamp(340px, calc(100vh - 384px), 470px); --dh: clamp(340px, calc(100svh - 384px), 470px); display: grid; place-items: center; height: auto; padding: 16px 12px 14px; border-radius: 20px; }
  .tv-phone, .tv-panel { grid-area: 1 / 1; }
  .tv-phone, .tv-panel { --pw: calc(var(--dh) * .4894); height: var(--dh); }
  .tvb-sb { display: flex; position: absolute; z-index: 10; left: 0; right: 0; top: 0; height: 12.2cqw; padding: .7cqw 7.6cqw 0 9.8cqw; background: #f8fafc; }
  .tvb-sb.ios-sb b { font-size: 4.5cqw; }
  .tvb-sb.ios-sb svg { width: 18.4cqw; height: 3.6cqw; }
  .tv-label { display: none; }
  .tv-panel { flex: none; width: var(--pw); padding: 0; border-radius: calc(var(--pw) * .165); border: 0; background: linear-gradient(160deg, #475569, #1e293b 40%, #334155); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 30px 60px rgba(15, 23, 42, .24); }
  .tvb-bar { display: none; }
  .tvb-screen { position: absolute; inset: 3.2cqw; aspect-ratio: auto; border-radius: 13.7cqw; padding-top: 12.2cqw; }
  .tvb-screen::before { content: ""; position: absolute; left: 50%; top: 2.9cqw; width: 28.8cqw; height: 8.3cqw; translate: -50% 0; border-radius: 20px; background: #05080f; z-index: 9; }
  .tvb-vp { top: 12.2cqw; }
  .tv-player[data-dev="phone"] .tv-panel, .tv-player[data-dev="panel"] .tv-phone { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(var(--dx, 16px)) scale(.97); filter: saturate(1) blur(6px); transition: opacity .4s var(--e-soft), transform .6s var(--e-out), filter .4s, visibility 0s .4s; }
  .tv-player[data-dev="panel"] .tv-phone { --dx: -16px; }
  .tv-player[data-dev="panel"] .tv-panel, .tv-player[data-dev="phone"] .tv-phone { transition: opacity .5s var(--e-soft) .1s, transform .7s var(--e-out) .1s, filter .5s .1s, visibility 0s; }
  .tv-sub { min-height: 134px; padding: 14px 8px 4px; align-items: start; }
  .tvc-hint { font-size: 12px; }
  .tve-other { font-size: 14px; }
  /* the end card grows the stage instead of being clipped by it */
  .tv-player[data-state="end"] .tv-end { position: relative; inset: auto; grid-area: 1 / 1; align-self: stretch; justify-self: stretch; margin: -16px -12px -14px; padding: 16px 10px; border-radius: 20px; }
  .tv-player[data-state="end"] .tv-sub { visibility: hidden; }
  .tv-player[data-state="end"] .tv-stage { min-height: calc(var(--dh) + 30px); }
  .tvc-h { font-size: 21px; }
  .tvc-p { font-size: 14px; }
  .tv-push, .tv-player[data-dev="panel"] .tv-push { left: 50%; right: auto; top: auto; bottom: 12px; width: min(calc(100% - 20px), 380px); translate: -50% 0; }
  .tvq-n { padding: 9px 11px; border-radius: 18px; }
  .tvq-n:not(:last-child) { display: none; }
  .tvq-k { display: none; }
  .tvk-t { font-size: 30px; }
  .tv-player:not([data-state="poster"]) .tv-poster { display: none; }
  .tv-poster { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; padding: 14px 2px; align-content: start; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tv-player[data-state="poster"] .tv-stage { padding: 8px; }
  .tv-player[data-state="poster"] .tv-dev, .tv-player[data-state="poster"] .tv-sub { display: none; }
  .tvx-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; }
  .tvx { min-width: 0; }
  .ap.is-narrow .ap-toast { top: auto; bottom: 16px; }
  .tvx { padding: 18px; gap: 8px; }
  .tvx > b { font-size: 20px; }
  .tvx-ic { width: 42px; height: 42px; font-size: 21px; border-radius: 14px; }
  /* chapters as one swipeable row, so both cards fit higher on the screen */
  .tvx-ch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 36px); margin: 2px -18px 4px; padding: 0 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 24px), transparent); }
  .tvx-ch::-webkit-scrollbar { display: none; }
  .tvx-ch span { flex: none; }
  .tv-end { padding: 10px; }
  .tve-card { padding: 20px 14px 14px; gap: 10px; }
  .tve-ic { display: none; }
  .tve-t { font-size: 20px; }
  /* a compact two-column checklist, so the card fits the stage */
  .tve-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; width: 100%; max-width: 340px; text-align: left; }
  .tve-list li { align-items: flex-start; min-height: 0; padding: 0; background: none; border: 0; font-size: 12.5px; line-height: 1.3; }
  .tve-list .ic { margin-top: 1px; }
  .tve-again { min-height: 36px; }
  .tve-pr b { font-size: 26px; }
  .tve-cta { flex-direction: column; gap: 4px; }
  .tv-bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 6px 4px 2px; }
  .tv-time { display: none; }
  .tv-chbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; background: #f1f5f9; border: 1px solid var(--line-soft); color: var(--ink); font-size: 18px; }
  .tvt-seg { padding-bottom: 12px; }
  .tv-sheet { display: grid; gap: 6px; margin: 10px 2px 2px; }
  .tv-sheet[hidden] { display: none; }
  .tv-sheet button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-align: left; }
  .tv-sheet button.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  .tv-sheet em { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; background: var(--d); color: #fff; font-style: normal; font-size: 12px; font-weight: 900; flex: none; }
  .tv-sheet b { flex: 1; font-size: 14px; font-weight: 750; }
  .tv-sheet small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .tv-stage { --dh: clamp(420px, calc(100vh - 384px), 594px); --dh: clamp(420px, calc(100svh - 384px), 594px); }
}
@media (max-width: 600px) {
  .tvt-lab { display: none; }
  .tvt-seg { padding-top: 19px; }
}
@media (max-width: 360px) {
  .tvs-t small { display: none; }
  .tv-sub { min-height: 146px; }
  .tvc-h { font-size: 19px; }
}
/* short screens: the whole player stays within one screen */
@media (min-width: 901px) and (max-height: 820px) {
  .tv-sub { min-height: 100px; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-arm i { animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gc) 20%, transparent); }
  .tv-ptr, .mn-scroll, .ap-pane { transition: none; }
  .tvc-in.swap > *, .tv-card.on * { animation: none; }
  .tv-stage.is-out .tv-dev { filter: saturate(1) blur(0px) !important; transform: none !important; }
}
/* while a demo plays on screen, the page's sticky CTA steps aside (the player has its own) */
body.tv-in .sticky-cta { transform: translateY(130%) !important; opacity: 0 !important; pointer-events: none !important; }

/* ==========================================================================
   DEMO — live embedded menu
   ========================================================================== */
.demo { padding: 112px 0 0; }
.demo-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center;
  padding: 56px 64px; border-radius: 32px; border: 1px solid var(--sky-200);
  background:
    radial-gradient(520px 360px at 82% 50%, rgba(14, 165, 233, .16), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(16, 185, 129, .08), transparent 70%),
    linear-gradient(135deg, #f0f9ff, #fff 60%);
  box-shadow: var(--shadow);
}
.demo-copy { display: grid; gap: 18px; justify-items: start; }
.live-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--em); box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: livePulse 1.8s ease-out infinite; flex: none; }
@keyframes livePulse { to { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }
.venues { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; padding: 5px 15px 5px 5px; border-radius: 99px;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line); font-size: 14px; font-weight: 750; color: var(--muted); white-space: nowrap;
  transition: color .45s cubic-bezier(.45, 0, .2, 1), border-color .45s, background-color .45s;
}
.vn-ic { width: 32px; height: 32px; border-radius: 99px; flex: none; display: grid; place-items: center; font-size: 16px; background: var(--sky-50); color: var(--sky-600);
  transition: background-color .45s, color .45s cubic-bezier(.45, 0, .2, 1), box-shadow .6s cubic-bezier(.22, 1, .36, 1), transform .6s var(--spring); }
.vn-ic .ic { font-size: 16px; }
.vn-ic { position: relative; isolation: isolate; }
.vn-ic .ic { position: relative; z-index: 1; }
/* the active gradient fades in as a layer (a gradient can't be transitioned), in step with the icon turning white */
.vn-ic::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: linear-gradient(135deg, #0ea5e9, #10b981); opacity: 0; transition: opacity .4s cubic-bezier(.45, 0, .2, 1) .12s; }
.vn.is-a .vn-ic::before { opacity: 1; transition: opacity .35s cubic-bezier(.45, 0, .2, 1) .25s; }
/* the glyph changes colour in step with the gradient (same delay, duration and curve, both ways): a blue glyph
   on a half-faded gradient read as a dark blot for a moment */
.vn-ic .ic { color: var(--sky-600); transition: color .4s cubic-bezier(.45, 0, .2, 1) .12s; }
.vn.is-a .vn-ic .ic { color: #fff; transition: color .35s cubic-bezier(.45, 0, .2, 1) .25s; }
/* autoplay progress: a soft light that fills the active pill from left to right */
.vn-ink::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 165, 233, .07), rgba(16, 185, 129, .16));
  clip-path: inset(0 calc((1 - var(--vp, 0)) * 100%) 0 0 round 99px); opacity: 0; transition: opacity .4s; }
.venues.is-auto .vn-ink::before { opacity: 1; }
.vn-ink.reset::before { transition: none; opacity: 0; }
.vn:hover { color: var(--ink); background: #fff; border-color: var(--sky-200); }
.vn:hover .vn-ic { transform: scale(1.06); }
.vn.is-a { color: var(--ink); background: transparent; border-color: transparent; transition-delay: .3s; }
.vn.is-a .vn-ic { transition-delay: .25s, .25s, .25s, .25s; color: #fff; box-shadow: 0 6px 14px rgba(14, 165, 233, .35); transform: scale(1.04); }
.vn-ink { position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 99px; pointer-events: none;
  background: #fff; border: 1px solid var(--sky-200); box-shadow: 0 0 0 4px rgba(14, 165, 233, .08), 0 12px 28px rgba(14, 165, 233, .18);
  transition: transform .65s cubic-bezier(.65, 0, .25, 1), width .65s cubic-bezier(.65, 0, .25, 1), height .65s cubic-bezier(.65, 0, .25, 1); }
.venues.no-anim .vn-ink { transition: none; }
.demo-try { display: grid; gap: 10px; margin-top: 6px; }
.demo-try li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; color: var(--text); }
.demo-try li > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--sky-600); background: #fff; border: 1px solid var(--sky-200); }
.demo-alt { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.qr-mini { padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.qr-mini .qr-svg { display: block; width: 84px; height: 84px; transition: opacity .3s, transform .4s var(--ease); }
.qr-mini .qr-svg.swap { opacity: 0; transform: scale(.94); }
.demo-alt-t { display: grid; gap: 2px; }
.demo-alt-t b { font-size: 14.5px; font-weight: 800; }
.demo-alt-t small { font-size: 13px; color: var(--muted); font-weight: 600; }
.demo-alt-t a { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13.5px; font-weight: 800; color: var(--sky-700); }

.demo-device { position: relative; display: grid; justify-items: center; gap: 16px; }
.live-phone { position: relative; width: 320px; height: 656px; }
.live-phone .screen { background: #fff; padding-top: 42px; }
.live-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.live-loading { position: absolute; inset: 42px 0 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.live-phone.is-loading .live-loading { opacity: 1; visibility: visible; transition: opacity .2s; }
.spin { width: 28px; height: 28px; border-radius: 99px; border: 3px solid var(--sky-100); border-top-color: var(--sky-600); animation: spin .9s linear infinite; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 800; color: var(--text); }


/* QR card: scan it, or click it to open the chosen demo */
.demo-qrside { display: grid; justify-items: center; }
.qrc {
  position: relative; width: 100%; max-width: 380px; display: grid; gap: 18px; padding: 22px; border-radius: 30px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 1px 0 #fff inset, 0 30px 70px rgba(15, 23, 42, .1), 0 8px 20px rgba(15, 23, 42, .04);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s cubic-bezier(.22, 1, .36, 1), border-color .4s;
}
.qrc:hover { transform: translateY(-4px); border-color: var(--sky-200); box-shadow: 0 1px 0 #fff inset, 0 40px 80px rgba(14, 165, 233, .16), 0 10px 24px rgba(15, 23, 42, .06); }
.qrc-head { display: flex; align-items: center; gap: 12px; }
.qrc-ic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 22px; color: var(--sky-600); background: var(--sky-50); border: 1px solid var(--sky-200); }
.qrc-ic .ic, .qrc-t b { transition: opacity .35s, transform .5s cubic-bezier(.22, 1, .36, 1), filter .35s; }
.qrc.swap .qrc-ic .ic, .qrc.swap .qrc-t b { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.qrc-t { flex: 1; display: grid; line-height: 1.25; }
.qrc-t small { font-size: 12px; font-weight: 700; color: var(--muted); }
.qrc-t b { font-size: 19px; font-weight: 850; letter-spacing: -.01em; }
.qrc-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--em-50); border: 1px solid var(--em-200); color: var(--em-700); font-size: 11.5px; font-weight: 800; }
.qrc-live i { width: 6px; height: 6px; border-radius: 99px; background: var(--em); animation: livePulse 1.8s ease-out infinite; }

.qrc-code { position: relative; aspect-ratio: 1; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #f8fbff, #fff); border: 1px solid var(--line-soft); overflow: hidden; }
.qrc-svg { position: relative; z-index: 2; display: block; width: 100%; height: 100%; color: var(--ink); transition: opacity .38s cubic-bezier(.45, 0, .2, 1), transform .6s cubic-bezier(.22, 1, .36, 1), filter .38s; }
.qrc-svg svg, .qrc-svg canvas { width: 100% !important; height: 100% !important; display: block; }
/* two layers: the new QR draws underneath, then crossfades over the old one */
.qrl { position: absolute; inset: 0; opacity: 0; transform: scale(.965); filter: blur(5px); transition: opacity .6s cubic-bezier(.45, 0, .2, 1), transform .8s cubic-bezier(.22, 1, .36, 1), filter .6s cubic-bezier(.45, 0, .2, 1); }
.qrl.on { opacity: 1; transform: none; filter: none; }
.qrc:hover .qrc:hover .qrc:hover .qrc:hover .qrc-scan { position: absolute; z-index: 1; opacity: .9; left: 14px; right: 14px; top: 14px; height: 56px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(14, 165, 233, .09) 80%, rgba(14, 165, 233, .22)); border-radius: 4px; animation: qrcScan 3.2s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
@keyframes qrcScan { from { transform: translateY(0); } to { transform: translateY(calc(var(--qh, 300px) - 84px)); } }

.qrc-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: -2px; font-size: 13.5px; font-weight: 650; color: var(--muted); text-align: center; }
.qrc-hint .ic { font-size: 17px; color: var(--sky-600); flex: none; }
.qrc-open { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; border-radius: 15px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 10px 24px rgba(15, 23, 42, .18); transition: background-color .3s, box-shadow .4s; }
.qrc-open .ic { font-size: 16px; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.qrc:hover .qrc-open { background: var(--sky-600); box-shadow: 0 14px 30px rgba(14, 165, 233, .3); }
.qrc:hover .qrc-open .ic { transform: translate(2px, -2px); }
.qrc-url { justify-self: center; margin-top: -4px; font-size: 12px; font-weight: 600; color: var(--soft); transition: opacity .35s; }
.qrc.swap .qrc-url { opacity: 0; }

/* ==========================================================================
   PRICING — two plans, period toggle, cursor light
   ========================================================================== */
/* ---------- How to start: three steps (home, right under the hero) ---------- */
.steps { padding: 96px 0 0; }
.st-head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: 40px; }
.st-head h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.st-grad { background: linear-gradient(92deg, #0369a1, #0ea5e9 50%, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-head .lead { text-align: center; max-width: 34em; }
.st-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; counter-reset: st; }
/* a soft line through the three icons (desktop) */
.st-list::before { content: ""; position: absolute; top: 52px; left: 16%; right: 16%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--sky-200), var(--ind-200), var(--em-200)); }
.st-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 16px; padding: 26px 22px 28px; border-radius: 24px; text-align: center; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -26px rgba(15, 23, 42, .25); }
.st-ic { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; border: 1px solid; font-size: 25px; }
.st-ic i { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; font-style: normal;
  font-size: 12px; font-weight: 850; color: #fff; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
/* the icons arrive one after the other (a soft pop, then the number), then breathe gently; each one does its own
   small gesture: the new account waves in, the menu lines fill, the QR code gets a scan line */
.js .st-card .st-ic { opacity: 0; transform: scale(.6) rotate(-10deg); }
.js .st-card .st-ic i { transform: scale(0); }
.st-card.in .st-ic { animation: stPop .8s var(--spring) calc(var(--d, 0s) + .15s) both, stFloat 4.5s ease-in-out calc(var(--d, 0s) + 1.2s) infinite; }
.st-card.in .st-ic i { animation: stBadge .5s var(--spring) calc(var(--d, 0s) + .55s) both; }
.st-card.in .st-ic .ic { animation: stGesture 1.1s ease-in-out calc(var(--d, 0s) + .7s) both; }
.st-card:hover .st-ic .ic { animation: stGesture .9s ease-in-out both; }
.st-ic .ic { position: relative; }
.st-ic.m-em::after { content: ""; position: absolute; left: 22%; right: 22%; top: 30%; height: 2px; border-radius: 2px; background: currentColor; opacity: 0;
  box-shadow: 0 0 8px currentColor; }
.st-card.in .st-ic.m-em::after { animation: stScan 2.4s ease-in-out calc(var(--d, 0s) + 1.1s) 2; }
@keyframes stPop { 0% { opacity: 0; transform: scale(.6) rotate(-10deg); } 100% { opacity: 1; transform: none; } }
@keyframes stBadge { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes stFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes stGesture { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg) scale(1.08); } 60% { transform: rotate(8deg); } }
@keyframes stScan { 0% { top: 28%; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { top: 70%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .st-card .st-ic, .js .st-card .st-ic i { opacity: 1; transform: none; }
  .st-card.in .st-ic, .st-card.in .st-ic i, .st-card.in .st-ic .ic, .st-card:hover .st-ic .ic, .st-card.in .st-ic.m-em::after { animation: none; }
}
.st-t { display: grid; gap: 6px; }
.st-t b { font-size: 18px; font-weight: 850; letter-spacing: -.01em; color: var(--ink); }
.st-t small { font-size: 15px; line-height: 1.55; color: var(--muted); }
.st-cta { display: grid; justify-items: center; gap: 12px; margin-top: 32px; text-align: center; }
.st-cta p { font-size: 14px; font-weight: 600; color: var(--soft); }
.steps + .pricing { padding-top: 88px; }
@media (max-width: 900px) {
  .steps { padding-top: 64px; }
  .st-head { margin-bottom: 26px; }
  .st-head h2 { font-size: clamp(28px, 7.6vw, 40px); }
  .st-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .st-list::before { top: 30px; bottom: 30px; left: 41px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky-200), var(--ind-200), var(--em-200)); }
  .st-card { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; border-radius: 20px; text-align: left; }
  .st-ic { width: 50px; height: 50px; border-radius: 15px; font-size: 23px; background-clip: padding-box; }
  .st-t b { font-size: 16px; }
  .st-t small { font-size: 14px; }
  .st-cta { margin-top: 22px; }
  .st-cta .btn { width: 100%; }
  .st-cta p { font-size: 12.5px; }
}

.pricing { padding: 112px 0 0; }
.pr-head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: 44px; }
.pr-head h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; font-weight: 900; letter-spacing: -.03em; }
.pr-grad { background: linear-gradient(92deg, #0369a1, #0ea5e9 50%, #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-head .lead { text-align: center; max-width: 36em; }

.pr-toggle { position: relative; display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; margin-top: 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.pr-toggle button { position: relative; z-index: 1; height: 42px; padding: 0 22px; border-radius: 99px; font-size: 14.5px; font-weight: 800; color: var(--muted); white-space: nowrap; transition: color .45s cubic-bezier(.45, 0, .2, 1); }
.pr-toggle button[aria-checked="true"] { color: #fff; }
.pr-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pr-save { font-style: normal; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--em-50); color: var(--em-700); border: 1px solid var(--em-200); transition: background-color .45s, color .45s, border-color .45s; }
.pr-toggle button[aria-checked="true"] .pr-save { background: var(--em); color: #fff; border-color: transparent; }
.pr-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 99px; background: var(--ink); box-shadow: 0 8px 18px rgba(15, 23, 42, .2); transition: transform .65s cubic-bezier(.65, 0, .25, 1); }
.pr-toggle[data-p="m"] .pr-ink { transform: translateX(100%); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.pp {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  padding: 34px 34px 32px; border-radius: 32px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset, 0 24px 60px rgba(15, 23, 42, .07);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s cubic-bezier(.22, 1, .36, 1);
}
/* the cards also carry .reveal, whose transition list (opacity, transform) would drop the shadow: keep all three smooth */
.js .pp.reveal { transition: opacity .8s var(--ease) var(--d, 0s), transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s cubic-bezier(.22, 1, .36, 1); }
.pp:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #fff inset, 0 36px 80px rgba(15, 23, 42, .12); }
.pl-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s cubic-bezier(.45, 0, .2, 1);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(14, 165, 233, .12), transparent 60%); }
.pp:hover .pl-glow { opacity: 1; }

/* the recommended plan: dark, animated border */
.pp-pro { background: #0b1220; color: #e2e8f0; border-color: transparent; box-shadow: 0 34px 80px rgba(15, 23, 42, .28); }
.pp-pro:hover { box-shadow: 0 44px 100px rgba(14, 165, 233, .26); }
.pp-pro .pl-glow { background: radial-gradient(460px circle at var(--mx) var(--my), rgba(61, 169, 252, .22), transparent 60%); }
.pl-border { position: absolute; inset: 0; z-index: -2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), #3da9fc, #10b981, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .08) 60%, #0ea5e9, #3da9fc);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rot 7s linear infinite; }
.pp-pro::before { content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(520px 320px at 100% 0%, rgba(61, 169, 252, .2), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgba(16, 185, 129, .14), transparent 70%); }
.pl-badge { position: absolute; top: 0; right: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 8px; border-radius: 0 0 14px 14px; font-size: 12px; font-weight: 800; color: #0b1220;
  background: linear-gradient(90deg, #7dd3fc, #6ee7b7); box-shadow: 0 8px 20px rgba(110, 231, 183, .3); }
.pl-badge .ic { font-size: 14px; }

.pl-head { display: flex; align-items: center; gap: 14px; }
.pl-head b { display: block; font-size: 20px; font-weight: 850; letter-spacing: -.01em; color: var(--ink); line-height: 1.25; }
.pl-head small { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pp-pro .pl-head b { color: #fff; }
.pp-pro .pl-head small { color: #94a3b8; }
.pl-ic { width: 48px; height: 48px; border-radius: 15px; flex: none; display: grid; place-items: center; font-size: 24px; border: 1px solid; }
.m-pro { background: rgba(61, 169, 252, .14); border-color: rgba(125, 211, 252, .35); color: #7dd3fc; }
.pl-for { margin-top: 18px; min-height: 3em; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pp-pro .pl-for { color: #94a3b8; }

.pl-price { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px; }
.pl-amt { display: inline-flex; align-items: flex-start; font-size: 76px; font-weight: 900; letter-spacing: -.045em; line-height: .9; font-variant-numeric: tabular-nums; color: var(--ink); }
.pp-pro .pl-amt { color: #fff; }
.pl-amt small { font-size: 32px; margin: 6px 0 0 4px; letter-spacing: 0; }
.pl-amt.cur-first small { margin: 6px 4px 0 0; }   /* English: €99 */
.pl-amt [data-price] { display: inline-block; transition: filter .3s; }
.pl-amt.is-counting [data-price] { filter: blur(.4px); }
.pl-per { display: grid; gap: 2px; min-width: 0; padding-bottom: 6px; }   /* min-width: the yearly line may wrap beside a wide price */
.pl-per b { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.pl-per small { font-size: 13px; font-weight: 700; color: var(--em-700); }
.pp-pro .pl-per b { color: #fff; }
.pp-pro .pl-per small { color: #6ee7b7; }
.pl-per > * { transition: opacity .3s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.pl-per.swap > * { opacity: 0; transform: translateY(5px); }

.pl-delta { display: inline-flex; align-items: center; gap: 8px; line-height: 1.35; align-self: flex-start; margin-top: 16px; padding: 6px 12px 6px 8px; border-radius: 99px; background: rgba(16, 185, 129, .12); border: 1px solid rgba(110, 231, 183, .3); color: #a7f3d0; font-size: 13px; font-weight: 650; }
.pl-delta .ic { width: 20px; height: 20px; padding: 3px; border-radius: 99px; background: var(--em); color: #fff; stroke-width: 2.6; }
.pl-delta .ic { flex: none; }
.pl-delta b { color: #fff; font-weight: 850; font-variant-numeric: tabular-nums; }
.pl-lite { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-700); }
.pl-lite .ic { background: var(--sky-600); }
.pl-lite b { color: var(--ink); }

.pl-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; margin-top: 26px; border-radius: 16px; font-size: 16px; font-weight: 800;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  transition: background-color .35s, border-color .35s, box-shadow .5s cubic-bezier(.22, 1, .36, 1), transform .25s; }
.pl-cta .ic { font-size: 18px; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.pl-cta:hover { border-color: var(--sky-200); box-shadow: 0 12px 26px rgba(14, 165, 233, .16); }
.pl-cta:hover .ic { transform: translateX(4px); }
.pl-cta:active { transform: scale(.985); }
.pp:not(.pp-pro) .pl-delta + .pl-cta, .pp:not(.pp-pro) .pl-cta { margin-top: 26px; }
.pp-pro .pl-cta { position: relative; overflow: hidden; background: linear-gradient(90deg, #0ea5e9, #10b981); color: #fff; border: 0; box-shadow: 0 14px 32px rgba(14, 165, 233, .35); }
.pp-pro .pl-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5.5s cubic-bezier(.65, 0, .35, 1) 2s infinite; }
.pp-pro .pl-cta:hover { box-shadow: 0 18px 40px rgba(16, 185, 129, .4); }

.pl-sep { display: flex; align-items: center; gap: 12px; margin: 28px 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.pl-sep::before, .pl-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pp-pro .pl-sep { color: #64748b; }
.pp-pro .pl-sep::before, .pp-pro .pl-sep::after { background: rgba(255, 255, 255, .1); }
.pl-feats { display: grid; gap: 12px; }
.pl-feats li { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; color: var(--text); }
.pl-feats .ic { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 99px; background: var(--em-50); color: var(--em-600); stroke-width: 3; }
.pp-pro .pl-feats li { color: #e2e8f0; }
.pp-pro .pl-feats .ic { background: rgba(16, 185, 129, .18); color: #6ee7b7; }
.js .pp .pl-feats li { opacity: 0; transform: translateX(-8px); transition: opacity .6s cubic-bezier(.45, 0, .2, 1), transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--n, 0) * 60ms + 250ms); }
.js .pp.in .pl-feats li { opacity: 1; transform: none; }

.pr-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; max-width: 1040px; margin: 34px auto 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pr-strip > span { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.pr-strip > span + span { border-left: 1px solid var(--line); }
.pr-strip .ps-ic { display: inline-flex; font-style: normal; }
.pr-strip .ic { font-size: 18px; color: var(--em-600); }
.pr-strip b { color: var(--ink); font-weight: 800; }
.pr-note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .pricing { padding-top: 76px; }
  .pr-head { margin-bottom: 28px; gap: 12px; }
  .pr-head h2 { font-size: clamp(28px, 7.6vw, 40px); }
  .pr-toggle { width: 100%; max-width: 380px; }
  .pr-toggle button { padding: 0 8px; gap: 6px; font-size: 13.5px; }
  .pr-save { font-size: 10px; padding: 2px 7px; }
  .plans { grid-template-columns: 1fr; gap: 18px; max-width: 520px; }
  .pp { padding: 26px 22px 24px; border-radius: 26px; }
  .pp:hover { transform: none; }
  .pl-badge { right: 20px; font-size: 11px; padding: 6px 11px 7px; }
  .pl-head b { font-size: 18px; }
  .pp-pro .pl-head { margin-top: 14px; }
  .pl-amt { font-size: 64px; }
  .pl-for { min-height: 0; }
  /* phones and tablets: each promise is a small card (icon tile, the bold words, the rest underneath) */
  .pr-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; padding: 0; border: 0; }
  .pr-strip > span { gap: 12px; padding: 12px 12px 12px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px -18px rgba(15, 23, 42, .2); font-size: 13px; line-height: 1.3; }
  .pr-strip > span + span { border-left: 1px solid var(--line); }
  .pr-strip > span:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
  .pr-strip .ps-ic { flex: none; width: 38px; height: 38px; place-items: center; display: grid; border-radius: 12px; background: var(--em-50); box-shadow: inset 0 0 0 1px var(--em-200); }
  .pr-strip .ic { font-size: 19px; }
  .pr-strip .ps-t { min-width: 0; }
  .pr-strip .ps-t b { display: block; font-size: 14px; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pp .pl-feats li { opacity: 1; transform: none; }
  .pl-border, .pp-pro .pl-cta::after { animation: none; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 96px 0 0; }
.faq-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 32px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
details { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 23, 42, .03); transition: border-color .3s, box-shadow .3s; }
details[open] { border-color: var(--sky-200); box-shadow: var(--shadow-soft); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-size: 16px; font-weight: 800; line-height: 1.4; }
.fq-ic { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--sky-600); font-size: 17px; transition: background-color .3s, color .3s; }
.fq-t { flex: 1; }
details[open] .fq-ic { background: var(--ink); border-color: var(--ink); color: #fff; }
/* while closing, the summary already looks closed (the height is still animating) */
details.is-closing { border-color: var(--line); box-shadow: 0 6px 18px rgba(15, 23, 42, .03); }
details.is-closing .fq-ic { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-600); }
details > div { padding-left: 68px !important; }
summary::-webkit-details-marker { display: none; }
summary i { position: relative; width: 28px; height: 28px; border-radius: 99px; background: var(--line-soft); flex: none; transition: background-color .3s, transform .4s var(--ease); }
summary i::before, summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--ink); }
summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
details[open] summary i { background: var(--sky-100); transform: rotate(180deg); }
details[open] summary i::after { transform: rotate(0); }
details.is-closing summary i { background: var(--line-soft); transform: none; }
details.is-closing summary i::after { transform: rotate(90deg); }
details > div { padding: 0 20px 18px; }
details p { font-size: 15px; color: var(--muted); line-height: 1.65; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ==========================================================================
   FINAL CTA + FOOTER
   ========================================================================== */
.final { padding: 96px 0 0; }
.final-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 56px; border-radius: 32px; background: #0f172a; color: #fff;
  box-shadow: 0 40px 90px rgba(15, 23, 42, .3);
}
.final-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 0% 0%, rgba(61, 169, 252, .22), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(16, 185, 129, .18), transparent 70%); }
.final-thread { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 120px; z-index: -1; }
.final-thread .ft-line { fill: none; stroke: url(#ftGrad); stroke-opacity: .5; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1500; stroke-dashoffset: 1500; }
.final-card.in .final-thread .ft-line { animation: drawLong 2.4s var(--ease) .3s forwards; }
/* light pulses travelling along the thread, after it has drawn itself */
.final-thread .ft-pulse { fill: none; stroke: #7dd3fc; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 110 1800; stroke-dashoffset: 110; opacity: 0; filter: drop-shadow(0 0 6px rgba(56, 189, 248, .9)); }
.final-thread .ft-pulse.p2 { stroke: #6ee7b7; filter: drop-shadow(0 0 6px rgba(16, 185, 129, .9)); }
.final-card.in .final-thread .ft-pulse { animation: ftPulse 7s cubic-bezier(.45, 0, .55, 1) 2.6s infinite; }
.final-card.in .final-thread .ft-pulse.p2 { animation-delay: 6.1s; }
@keyframes ftPulse { 0% { stroke-dashoffset: 110; opacity: 0; } 10%, 80% { opacity: .9; } 100% { stroke-dashoffset: -1300; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .final-thread .ft-pulse { display: none; } }
@keyframes drawLong { to { stroke-dashoffset: 0; } }
.final-mark { position: absolute; right: 48px; bottom: 64px; z-index: -1; font-family: "Arial Black", "Inter", sans-serif; font-weight: 900; font-size: 150px; line-height: .78; color: rgba(255, 255, 255, .04); letter-spacing: -.04em; pointer-events: none; }
.final-mark { width: 118px; height: 118px; }   /* the logo mark as a watermark: one flat shape (S and lines already cut out) */
.final-mark { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity 1.4s var(--ease) .4s, transform 1.4s var(--ease) .4s; }
.final-card.in .final-mark { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .final-mark { opacity: 1; transform: none; transition: none; } }
.final-copy { display: grid; gap: 16px; }
.final-k { font-size: 14px; font-weight: 800; color: #7dd3fc; }
.final h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; font-weight: 900; letter-spacing: -.025em; text-wrap: balance; max-width: 15em; }
.final-copy > p:not(.final-k) { font-size: 17px; color: #cbd5e1; max-width: 34em; }
.risk { display: flex; flex-wrap: wrap; gap: 8px; }
.risk li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800;
  padding: 6px 11px; border-radius: 999px; border: 1px solid;
}
.risk .ic { font-size: 15px; stroke-width: 2.4; }
.risk.dark { margin-top: 18px; }
/* solid (the same tint over the card's #0f172a): the animated line passes behind the chips, not through them */
.risk.dark li { position: relative; z-index: 1; color: #a7f3d0; background: #0f2733; border-color: rgba(16, 185, 129, .3); }
.final-actions { display: grid; gap: 14px; justify-items: stretch; }
.final-call { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; background: #182235; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: background-color .25s, border-color .25s, transform .45s var(--spring); }
.final-call:hover { background: #1d2a40; border-color: rgba(125, 211, 252, .35); transform: translateY(-1px); }
.final-call .ic { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, #38bdf8, #0284c7); color: #fff; stroke-width: 2.2;
  box-shadow: 0 8px 18px -6px rgba(56, 189, 248, .55); }
.final-call:hover .ic { animation: callRing .7s ease-in-out; }
@keyframes callRing { 0%, 100% { transform: none; } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.final-call span { display: grid; gap: 2px; font-size: 12.5px; color: #cbd5e1; font-weight: 600; line-height: 1.3; }
.final-call b { font-size: 16px; color: #fff; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .final-call:hover .ic { animation: none; } }
.final-soon { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; font-weight: 700; color: #94a3b8; }
.final-soon i { position: relative; z-index: 1; font-style: normal; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: #1d2537; color: #e2e8f0; font-weight: 800; }
.final-soon .ic { color: #7dd3fc; }

.footer { margin-top: 96px; padding-bottom: 34px; }
.foot-card {
  position: relative; overflow: hidden; padding: 36px 36px 22px; border-radius: 30px; border: 1px solid var(--line);
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(14, 165, 233, .08), transparent 70%),
    radial-gradient(560px 300px at 100% 100%, rgba(16, 185, 129, .09), transparent 70%),
    #fff;
  box-shadow: var(--shadow-soft);
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-logos { display: flex; align-items: center; gap: 14px; }
.foot-logos .brand-word .lw { height: 15px; animation: none; }
.foot-sep { width: 1px; height: 28px; background: var(--line); }
.foot-unibox img { height: 18px; width: auto; opacity: .85; transition: opacity .2s; }
.foot-unibox:hover img { opacity: 1; }
.foot-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.foot-brand p:not(.foot-k) { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 25em; }
.foot-col { display: grid; gap: 6px; align-content: start; }
.foot-col h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.fh-ic { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--sky-600); font-size: 15px; }
.foot-col a { padding: 3px 0; font-size: 14px; font-weight: 600; color: var(--text); transition: color .2s; }
.foot-col a:hover { color: var(--sky-700); }
.foot-contact a { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.foot-contact .ic { color: var(--sky-600); font-size: 16px; margin-top: 2px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.sticky-cta { display: none; }
.only-mob { display: none; }
@media (max-width: 900px) { .only-mob { display: inline; } .only-desk { display: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .nav-links { margin-left: 6px; }
}
@media (min-width: 1101px) and (max-width: 1260px) {
  .nav-links { gap: 4px; }
  .nav-links > a, .nav-dd-btn { padding: 0 8px; font-size: 13px; }
  .nav-login { font-size: 0; gap: 0; padding: 0 12px; }
  .nav-login .ic { font-size: 18px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .fl-1 { left: -10%; top: 30%; }
}

@media (max-width: 1100px) {
  .hl { --peek: 56px; }
  .hl-card { grid-template-columns: 360px minmax(0, 1fr); }
  .hl-cap { padding-left: 40px; }
  .hl-cap p { font-size: 25px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-lang-m { display: grid; }
  .hero-grid { gap: 24px; }
  .fl-2 { right: -1%; }
  .fl-3 { left: -2%; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; --nav-h: 66px; }
  .nav-shell { top: 10px; margin-top: 10px; }
  .nav { min-height: 62px; padding: 8px 8px 8px 10px; border-radius: 18px; gap: 8px; }
  .nav-actions .nav-academy, .nav-auth .nav-login { display: none; }
  .nav-auth { padding: 0; border: 0; background: none; }
  .nav-register { display: none; }   /* phones: the header keeps logo + menu; sign-up stays in the hero and the sticky bar */
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-mark img { width: 30px; height: 30px; }
  .brand-word { font-size: 16px; }

  .hero { padding: 32px 0 10px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { gap: 18px; }
  .hero-title { font-size: clamp(38px, 10.4vw, 56px); }
  .hero-sub { font-size: 16.5px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-visual { min-height: 0; margin-top: 8px; }
  .hero-orbit { width: min(380px, 100vw); height: min(380px, 100vw); }
  .hero-copy .chip { white-space: normal; }
  .float { font-size: 11.5px; padding: 8px 10px 8px 8px; border-radius: 15px; }
  .f-ic { width: 30px; height: 30px; font-size: 16px; border-radius: 10px; }
  .fl-1 { left: 0; top: 34%; }
  .fl-2 { display: none; }
  .fl-3 { left: 0; bottom: 32%; }
  .fl-4 { right: -4px; bottom: -2%; }
  .proof-strip { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; }
  .proof-strip li { padding: 14px; border-radius: 16px; }
  .proof-strip b { font-size: 24px; }
  .proof-strip li > span { font-size: 12px; }

  .knot { height: 300vh; }
  .knot-inner { gap: 12px; padding-top: calc(var(--nav-h) + 14px); }
  .knot-title { font-size: clamp(27px, 7.6vw, 40px); }
  .knot-sub { font-size: 14.5px; }
  .knot-stage { height: clamp(90px, 15vh, 140px); }
  .knot-cards { grid-template-columns: 1fr 1fr; gap: 7px; }
  .kc-ic { width: 30px; height: 30px; font-size: 16px; border-radius: 10px; }
  .kcard { border-radius: 14px; }
  .kc-face { flex-direction: column; gap: 8px; padding: 11px; }
  .kc-txt b { font-size: 13px; }
  .kc-txt small { display: none; }
  .knot-sub { display: none; }
  .kc-face { flex-direction: row; align-items: center; gap: 9px; padding: 10px; }
  .kc-ok { width: 18px; height: 18px; font-size: 11px; top: 6px; right: 6px; }
  .kc-f .kc-txt { padding-right: 12px; }
  .kc-ok { position: absolute; top: 11px; right: 11px; }
  .kn-t { font-size: 15px; }
  .kn-bar { width: 120px; }
  .knot-narr { gap: 6px; }
  .knot-foot { height: 34px; margin-top: 30px; }
  .knot-hint, .knot-done { font-size: 13px; }

  .act { padding-top: 76px; }
  .act-guest { padding-top: 76px; }
  .act-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
  .act-head .chips { margin-bottom: 14px; }
  .act-head .chip-line { display: none; }
  .act-head h2 { font-size: clamp(32px, 9vw, 44px); }
  .act-head-r { padding: 0; }
  .lead, .act-head-r .lead { font-size: 15.5px; }
  .demo h2, .pricing h2, .faq h2 { font-size: clamp(29px, 8vw, 40px); }
  .hl { --peek: 40px; }
  .hl-track { gap: 12px; }
  .hl-card { height: 560px; grid-template-columns: 290px minmax(0, 1fr); border-radius: 28px; }
  .hl-card:not(.is-current) { transform: none; }
  .hl-cap { padding: 36px 0 36px 32px; }
  .hl-icon { width: 46px; height: 46px; border-radius: 15px; font-size: 23px; margin-bottom: 18px; }
  .hl-cap p { font-size: 22px; line-height: 1.2; }
  .hl-pts { margin-top: 22px; gap: 10px; }
  .hl-pts li { font-size: 14px; gap: 10px; }
  .hl-pi { width: 28px; height: 28px; font-size: 15px; }
  .hl-media { padding: 24px 20px 24px 12px; }
  .hl-ctrl { bottom: 16px; gap: 10px; }
  .hl-dots { height: 48px; padding: 0 14px; border-radius: 24px; }
  .hl-dot { margin: 0 5px; }
  .hl-dot.is-current { width: 32px; }
  .hl-play { width: 48px; height: 48px; font-size: 20px; }

  .demo { padding-top: 76px; }
  .demo-panel { grid-template-columns: 1fr; padding: 28px 18px; gap: 26px; border-radius: 26px; }
  .venues { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 2px 18px 6px; width: calc(100% + 36px); }
  .venues::-webkit-scrollbar { display: none; }
  .vn { padding: 4px 12px 4px 4px; font-size: 13px; flex: none; gap: 7px; }
  .vn-ic { width: 28px; height: 28px; }
  .venues { position: relative; }
  .demo-try { display: none; }
  .qrc { max-width: 340px; padding: 18px; }
  .qrc-hint { display: none; }

  .faq { padding-top: 64px; }
  .faq-grid { grid-template-columns: 1fr; }
  summary { font-size: 15px; padding: 16px; }
  details > div { padding: 0 16px 16px !important; }

  .final { padding-top: 64px; }
  .final-card { grid-template-columns: 1fr; padding: 32px 20px; border-radius: 26px; gap: 24px; }
  .final-mark { width: 66px; height: 66px; right: 18px; top: 18px; bottom: auto; }   /* phones: the top corner, clear of the chips */

  .footer { margin-top: 56px; padding-bottom: 100px; }
  .foot-card { padding: 26px 20px 18px; border-radius: 26px; }
  /* phones: brand; Product and Company side by side (same length, no hole under either); Solutions and Contact full
     width (each venue name on one line), the groups divided by hairlines */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-brand, .foot-sol, .foot-contact { grid-column: 1 / -1; }
  .foot-prod { order: 1; } .foot-co { order: 2; } .foot-sol { order: 3; } .foot-contact { order: 4; }
  .foot-prod, .foot-co, .foot-sol, .foot-contact { padding-top: 20px; border-top: 1px solid var(--line-soft); }
  .foot-col { gap: 2px; }
  .foot-col h3 { margin-bottom: 6px; }
  .foot-bottom { flex-direction: column; }

  .sticky-cta {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border-radius: 18px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .sticky-cta.is-on { transform: none; }
  .sticky-cta b { display: block; font-size: 14px; font-weight: 900; }
  .sticky-cta small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
}


@media (max-width: 700px) {
  .hl { --peek: 26px; }
  .hl-card { height: auto; grid-template-columns: 1fr; grid-template-rows: auto 470px; align-content: start; border-radius: 26px; }
  .hl-card:not(.is-current) { opacity: .6; }
  .hl-cap { padding: 24px 22px 0; justify-content: flex-start; min-height: 196px; }
  .hl-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 22px; margin-bottom: 14px; }
  .hl-k { margin-bottom: 8px; }
  .hl-cap p { font-size: 20px; line-height: 1.22; }
  .hl-pts { display: none; }
  .hl-media { padding: 14px 16px 18px; }
}
@media (max-width: 700px) and (max-height: 760px) {
  .hl-card { grid-template-rows: auto 410px; }
  .hl-cap { min-height: 180px; padding-top: 20px; }
  .hl-icon { width: 38px; height: 38px; font-size: 19px; margin-bottom: 10px; }
}

/* mobile device sizes: keep mockups legible instead of shrinking desktop frames */
@media (max-width: 900px) {
  .browser { width: 360px; height: 520px; }
  .adm { padding: 8px; }
  .adm-side { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .svc4 { grid-template-columns: 1fr 1fr; }
  .dom-svc em { display: none; }
  .pop { top: 222px; right: 4px; }
  .sc-qr .qr-wrap { gap: 8px; }
  .qr-svg { width: 118px; height: 118px; }
  .qr-card { padding: 10px; }
  .qr-opts { padding: 10px; }
  .cur-line { flex-wrap: wrap; }
  .adm-btn.dl { justify-self: stretch; white-space: normal; height: auto; padding: 6px 8px; text-align: center; }
  .tablet { width: 400px; height: 440px; }
  .sc-station { grid-template-columns: 1fr 30px 1fr; gap: 4px; padding: 12px !important; }
  .st-arrows { width: 30px; }
  .sc-kds .tap { display: none; }
  .kcol { padding: 6px; }
  .kcol h5 { font-size: 9px; letter-spacing: .03em; margin-inline: 2px; }
  .tk { padding: 8px; }
  .tk-h { flex-wrap: wrap; gap: 4px 6px; }
  .tk.mover { top: 150px; }
  .kds-toast { left: 12px; right: 12px; bottom: 14px; }
  .tk p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kcol h5 { white-space: nowrap; }
}

@media (max-width: 900px) and (max-height: 700px) {
  .knot-sub { display: none; }
  .knot-stage { height: 80px; }
}

@media (max-width: 340px) {
  .nav-register .ic { display: none; }
  .nav-register { padding: 0 11px; }
  .brand-word { font-size: 14.5px; }
  .brand { gap: 8px; }
}

@media (max-width: 380px) {
  .brand-by { display: none; }
  .nav-register { padding: 0 11px; font-size: 13px; }
}

@media (min-width: 901px) and (max-height: 800px) {
  .knot-stage { height: 90px; }
}

@media (min-width: 901px) and (max-height: 760px) {
  .knot-sub { font-size: 15px; }
  .knot-stage { height: 110px; }
}

/* ==========================================================================
   REDUCED MOTION — show final states, no loops
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .knot { height: auto; }
  .knot-pin { position: relative; height: auto; min-height: 0; padding: 40px 0; }
  .float { animation: none; }
}

/* ---------- back to top: a ring that fills with the scroll, like a loader ---------- */
/* no backdrop-filter and no CSS rotation on the SVG: both made the ring rasterize (pixelated edges) */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 26px rgba(15, 23, 42, .14);
  opacity: 0; visibility: hidden; translate: 0 14px;
  transition: opacity .3s, translate .5s var(--spring), visibility 0s .5s, box-shadow .3s, bottom .45s var(--e-out); }
.to-top.on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s, translate .5s var(--spring), visibility 0s, box-shadow .3s, bottom .45s var(--e-out); }
.to-top:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 30px rgba(14, 165, 233, .24); }
.to-top:focus-visible { outline: 3px solid var(--sky-200); outline-offset: 3px; }
.tt-ring { position: absolute; inset: 0; width: 100%; height: 100%; shape-rendering: geometricPrecision; }
.tt-track { fill: none; stroke: #eef2f6; stroke-width: 2.5; }
.tt-bar { fill: none; stroke: url(#ttGrad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .12s linear; }
.to-top .tt-glow { position: absolute; inset: 0; border-radius: inherit; }
.to-top.done .tt-glow { animation: ttGlow 1.2s var(--e-out); }
.to-top .ic { position: relative; font-size: 18px; stroke-width: 2.2; transition: transform .4s var(--spring); }
.to-top:hover .ic { transform: translateY(-2px); }
.to-top.go .ic { animation: ttFly .85s cubic-bezier(.5, 0, .2, 1); }
@keyframes ttFly { 0% { transform: none; opacity: 1; } 38% { transform: translateY(-20px); opacity: 0; } 39% { transform: translateY(16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ttGlow { from { box-shadow: 0 0 0 0 rgba(16, 185, 129, .4); } to { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); } }
@media (max-width: 900px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } .to-top .ic { font-size: 17px; } .sticky-cta.is-on ~ .to-top { bottom: 100px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.on { transition: opacity .2s, visibility 0s; translate: none; } .to-top.go .ic, .to-top.done .tt-glow { animation: none; } }

/* ==========================================================================
   COOKIE CONSENT (js/track.js) · banner + preferences dialog
   Accept and reject carry the same weight (Greek DPA / EDPB guidance).
   ========================================================================== */
.ck-banner { position: fixed; left: 20px; bottom: 20px; z-index: 150; width: min(540px, calc(100% - 40px)); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px;
  padding: 20px 20px 0; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .96); border: 1px solid rgba(219, 231, 243, .9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px -12px rgba(15, 23, 42, .12), 0 36px 80px -28px rgba(15, 23, 42, .38);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: 30% 100%; transition: opacity .25s ease, transform .3s cubic-bezier(.4, 0, 1, 1); }
.ck-banner[hidden] { display: none; }
.ck-banner.on { opacity: 1; transform: none; transition: opacity .35s ease, transform .7s var(--e-out); }
.ck-ic { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 99px; color: #b45309; font-size: 23px;
  background: radial-gradient(circle at 30% 25%, #fff 0, #fffbeb 45%, #fde68a 100%); box-shadow: inset 0 0 0 1px #fcd34d, 0 8px 18px -8px rgba(217, 119, 6, .55); }
.ck-banner.on .ck-ic .ic { animation: ckNibble 1s cubic-bezier(.34, 1.56, .64, 1) .35s both; }
@keyframes ckNibble { 0% { transform: rotate(-24deg) scale(.6); opacity: 0; } 60% { transform: rotate(8deg) scale(1.08); opacity: 1; } 100% { transform: none; } }
.ck-copy b { display: block; margin-top: 2px; font-size: 16px; font-weight: 850; letter-spacing: -.015em; color: var(--ink); }
.ck-copy p { margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ck-copy a, .ck-more a { color: var(--sky-700); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sky-700) 40%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ck-copy a:hover, .ck-more a:hover { text-decoration-color: currentColor; }
/* the actions sit in their own band: settings on the left; reject and accept the same size, side by side */
.ck-acts { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px -20px 0; padding: 12px 14px 14px 12px; border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(248, 250, 252, .7), rgba(248, 250, 252, .95)); }
.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .5); transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.ck-btn .ic { font-size: 17px; }
.ck-btn:hover { background: #1e293b; transform: translateY(-1px); }
.ck-btn:active { transform: translateY(0) scale(.98); }
.ck-btn.ck-quiet { margin-right: auto; padding: 0 12px; background: none; color: #475569; box-shadow: none; }   /* 4.5:1+ on the band */
.ck-btn.ck-quiet:hover { background: #eef2f7; color: var(--ink); transform: none; }
.ck-acts .ck-ghost, .ck-acts .ck-prime { min-width: 118px; }
.ck-btn.ck-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #cbd5e1, 0 1px 2px rgba(15, 23, 42, .05); }
.ck-btn.ck-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 6px 14px -8px rgba(15, 23, 42, .35); }
.ck-btn.ck-prime { background: linear-gradient(180deg, #1e293b, var(--ink)); box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .6), inset 0 1px rgba(255, 255, 255, .12); }
.ck-btn.ck-prime:hover { background: linear-gradient(180deg, #273449, #111827); }
.ck-btn:focus-visible, .ck-x:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
html.ck-on .sticky-cta { transform: translateY(160%) !important; }
html.ck-on .to-top { opacity: 0 !important; pointer-events: none; }

html.ck-lock { overflow: hidden; }
html.ck-lock.has-sb { scrollbar-gutter: stable; }  /* only where a classic scrollbar exists */
.ck-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 24px 16px; }
.ck-modal[hidden] { display: none; }
.ck-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s ease; }
.ck-panel { position: relative; width: min(470px, 100%); max-height: min(86vh, 680px); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 40px 90px -20px rgba(15, 23, 42, .45);
  opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .22s ease, transform .3s cubic-bezier(.4, 0, .6, 1); }
.ck-modal.on .ck-overlay { opacity: 1; transition-duration: .35s; }
.ck-modal.on .ck-panel { opacity: 1; transform: none; transition: opacity .28s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.ck-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line-soft); }
.ck-hic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #ecfdf5; color: #059669; font-size: 20px; box-shadow: inset 0 0 0 1px #bbf7d0; }
.ck-head > div { flex: 1; min-width: 0; }
.ck-head h2 { font-size: 17px; font-weight: 850; letter-spacing: -.01em; color: var(--ink); }
.ck-head p { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.ck-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: #64748b; font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s; }
.ck-x:hover { background: #f1f5f9; color: var(--ink); }
.ck-body { display: grid; gap: 8px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; }
.ck-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; background: #f8fafc;
  border: 1px solid var(--line-soft); cursor: pointer; transition: background-color .2s, border-color .2s; }
.ck-row:hover { background: #f1f5f9; }
.ck-row.is-locked { cursor: default; }
.ck-ric { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: #475569; font-size: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.ck-rt { display: grid; gap: 2px; min-width: 0; }
.ck-rt b { font-size: 14.5px; font-weight: 750; color: var(--ink); }
.ck-rt small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ck-row em { font-style: normal; font-size: 12px; font-weight: 750; color: #059669; white-space: nowrap; }
.ck-sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 99px; background: #cbd5e1; cursor: pointer;
  transition: background-color .25s ease; }
.ck-sw::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .35s var(--spring); }
.ck-sw:checked { background: var(--em); }
.ck-sw:checked::before { transform: translateX(18px); }
.ck-sw:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
.ck-more { padding: 4px 4px 0; font-size: 12.5px; color: var(--muted); }
.ck-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.ck-foot .ck-dark { margin-left: auto; }
.foot-ck { padding: 3px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; transition: color .2s; }
.foot-ck:hover { color: var(--sky-700); }
@media (max-width: 640px) {
  .ck-banner { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 18px 16px 0; border-radius: 22px; gap: 4px 12px; }
  .ck-ic { width: 40px; height: 40px; font-size: 20px; }
  .ck-acts { display: grid; grid-template-columns: auto 1fr 1fr; margin: 14px -16px 0; padding: 10px 10px 12px; }
  .ck-acts .ck-ghost, .ck-acts .ck-prime { min-width: 0; }
  .ck-btn { padding: 0 14px; }
  .ck-modal { place-items: end center; padding: 0; }
  .ck-panel { width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; opacity: 1; transform: translateY(100%); transition: transform .32s cubic-bezier(.4, 0, 1, 1); }
  .ck-modal.on .ck-panel { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
  .ck-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .ck-foot .ck-btn { flex: 1; }
}
@media (max-width: 379px) {
  .ck-acts { grid-template-columns: 1fr 1fr; }
  .ck-acts .ck-quiet { grid-column: 1 / -1; order: 3; margin: 0; height: 34px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-banner, .ck-banner.on, .ck-overlay, .ck-panel, .ck-modal.on .ck-overlay, .ck-modal.on .ck-panel { transition: none; }
  .ck-banner.on .ck-ic .ic { animation: none; }
  .ck-sw::before { transition: none; }
}

/* Long words: German compounds ("Nutzungsbedingungen") break with a hyphen instead of running off a phone screen;
   in every language a word longer than its box wraps rather than overflows. Buttons and the nav never hyphenate. */
html:lang(de) { -webkit-hyphens: auto; hyphens: auto; }
h1, h2, h3, h4, p, li, summary, dd, dt, blockquote { overflow-wrap: break-word; }
.btn, button, .nav, .nav-sheet, .chip, .ck-btn { -webkit-hyphens: manual; hyphens: manual; }
/* the smallest phones (≤360px): longer labels (French, German) keep fitting in the buttons */
@media (max-width: 360px) {
  .btn-lg { padding-inline: 16px; font-size: 15px; }
  .btn-sm { padding-inline: 11px; font-size: 13.5px; }
  .pr-toggle button { padding-inline: 9px; font-size: 13.5px; gap: 5px; }
  .pl-amt { font-size: 56px; }
  .pl-price { gap: 10px; }
  .pr-save { padding-inline: 6px; }
}
/* the sticky bar's button keeps its size; the text beside it wraps instead */
.sticky-cta .btn { flex: none; }
/* the venue chips bleed to the panel's edges, never past the screen */
.demo-panel { overflow-x: clip; }
