/* App Companion marketing site.
   Look: deep ink backgrounds, very large tight Inter headlines, the brand's magenta → violet → cyan
   gradient for emphasis, pill buttons, hairline borders and scroll-driven motion.

   Breakpoints (max-width, so each one applies at that width and below; use only these):
     1080px  small laptops and tablets in landscape: four-up grids go two-up, tight two-column sections go one
     900px   tablets in portrait: the menu becomes the ☰ panel and two-column sections stack
     640px   phones: one column throughout, full-width buttons, animations scaled to the phone's width
     480px   narrow phones
     380px   the narrowest phones (320–380px)
   Between two of them, use (min-width: <next one up + 1px>) and (max-width: ...). Illustrations sized in container
   units (cqw) also respond to their own width with @container. The landscape hint follows the phone's orientation
   instead ((orientation: portrait) and (max-width: 767px), matched in site.js). */

/* Inter, split by script: the browser only downloads a subset when the page uses its characters. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-var.woff2") format("woff2-variations"), url("../fonts/inter-cyrillic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic-ext-var.woff2") format("woff2-variations"), url("../fonts/inter-cyrillic-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-vietnamese-var.woff2") format("woff2-variations"), url("../fonts/inter-vietnamese-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --ink: #0a0b1e;
  --ink-2: #0f1129;
  --ink-3: #151838;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f5fb;
  --muted: #a4a8c6;
  --dim: #6d7194;
  --paper: #f3f4fa;
  --paper-text: #0d0f24;
  --paper-muted: #5a5e7a;
  --magenta: #ff1fa6;
  --violet: #7a5cff;
  --cyan: #14b4f0;
  --green: #2dd4a7;
  --cta: #6a4dff;
  --cta-hover: #7c62ff;
  --grad: linear-gradient(95deg, #ff2aa6 0%, #a24cff 42%, #4f7bff 68%, #14b4f0 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* components set display; hidden must still win */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* A word longer than its line (long translations, e-mail addresses, URLs) breaks instead of overflowing. */
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(122, 92, 255, 0.45); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.i { width: 1.1em; height: 1.1em; flex: none; fill: 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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cta); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top 0.2s; }
.skip:focus { top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: #c9ccff;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.eyebrow.plain::before { display: none; }
.eyebrow.violet { color: var(--violet); }
.section-title {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
  margin-top: 14px;
}
.lede { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 40rem; }

/* ---- Buttons --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 650; font-size: 16px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn .i { transition: transform 0.25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 30px -10px rgba(106, 77, 255, 0.8); }
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 14px 40px -10px rgba(106, 77, 255, 0.95); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: #fff; }
.btn-light { background: #fff; color: var(--paper-text); }
.btn-light:hover { background: #eceefe; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
/* Phones: a label too long for one line (long translations) wraps inside the button rather than running out
   of it and off the screen. */
.btn { max-width: 100%; }
@media (max-width: 640px) {
  .btn { height: auto; min-height: 52px; padding-block: 8px; white-space: normal; text-align: center; line-height: 1.25; }
  .btn-sm { min-height: 44px; }
}

/* ---- Navigation ---------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 11, 30, 0.92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-logo { flex: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { margin-inline-start: auto; display: flex; align-items: center; gap: 32px; font-weight: 550; font-size: 15.5px; }
.nav-links a { position: relative; color: #e6e8ff; padding: 6px 0; transition: color 0.2s; white-space: nowrap; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active:not(.btn) { color: #fff; }
.nav-links a.btn { padding: 0 20px; color: #fff; }
.nav-toggle { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); place-items: center; cursor: pointer; }
.nav-toggle .i { width: 22px; height: 22px; }

/* Sub-menus of EPOS & Equipment and Online ordering: a drop-down under the item on wide screens, an
   accordion under it in the ☰ panel. site.js opens them (.open) on hover, from the chevron or the keyboard. */
.nav-item { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-sub-toggle { display: grid; place-items: center; width: 26px; height: 26px; margin-inline-end: -8px; padding: 0; border: 0; border-radius: 8px; background: none; color: #e6e8ff; cursor: pointer; }
.nav-sub-toggle:hover, .nav-item.open .nav-sub-toggle { background: rgba(255, 255, 255, 0.07); }
.nav-sub-toggle .i { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.nav-item.open .nav-sub-toggle .i { transform: rotate(180deg); }
.nav-sub { display: none; position: absolute; top: calc(100% + 18px); inset-inline-start: -14px; z-index: 60; min-width: 250px; margin: 0; padding: 8px; border-radius: 16px; background: #10122b; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); }
.nav-sub::before { content: ""; position: absolute; inset: -19px 0 100% 0; } /* bridges the gap, so the pointer can reach the menu */
.nav-item.open .nav-sub { display: block; animation: nav-sub-in 0.2s var(--ease); }
@keyframes nav-sub-in { from { opacity: 0; transform: translateY(-6px); } }
.nav-links .nav-sub a:not(.btn) { display: block; padding: 9px 12px; border-radius: 8px; color: #d3d5ee; font-size: 14.5px; }
.nav-links .nav-sub a::after { display: none; }
.nav-links .nav-sub a:hover, .nav-links .nav-sub a:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-links .nav-sub a[aria-current] { background: rgba(122, 92, 255, 0.28); color: #fff; }
/* In the panel (phones, and .nav-compact below) the whole row opens the item's list, indented under it; the
   item's own link stays underneath for the keyboard and keeps the current-page mark. */
@media (max-width: 900px) {
  .nav-item { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-item > a:not(.btn) { grid-area: 1 / 1; border-bottom: 0; }
  .nav-sub-toggle { grid-area: 1 / 1; z-index: 1; width: auto; height: auto; margin: 0; padding-inline-end: 4px; justify-items: end; border-radius: 0; }
  .nav-sub-toggle:hover, .nav-item.open .nav-sub-toggle { background: none; }
  .nav-sub-toggle .i { width: 20px; height: 20px; }
  .nav-sub { position: static; min-width: 0; margin: -6px 0 12px; padding: 0; padding-inline-start: 14px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .nav-sub::before { display: none; }
  .nav-links .nav-sub a:not(.btn) { padding: 11px 12px; border-bottom: 0; font-size: 16px; white-space: normal; }
}

/* ---- Hero ------------------------------------------------------------------------------ */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 80px)); overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 75vw; height: 75vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122, 92, 255, 0.28), rgba(122, 92, 255, 0) 70%);
}
.hero-bg::after {
  content: ""; position: absolute; left: -15%; top: 30%; width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 31, 166, 0.12), rgba(255, 31, 166, 0) 70%);
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-lines path { fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero-lines .l1 { stroke: url(#lineGrad); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.hero-lines .l2 { stroke: url(#lineGrad); opacity: 0.3; animation: drift 24s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translateY(26px); } }

.hero-head { position: relative; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(3.4rem, 12.4vw, 11.4rem);
  line-height: 0.95; /* tighter and the comma after "business" runs into the line below */
  letter-spacing: -0.06em;
  font-weight: 800;
}
.hero h1 .line { display: block; }
/* The narrowest phones: the size follows the width, so each line ("Your business," / "back in control.") stays on one
   line instead of breaking into four. */
@media (max-width: 380px) { .hero h1 { font-size: 13.4vw; } }
.hero h1 .grad-text { padding-bottom: 0.08em; padding-right: 0.06em; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.hero-foot .lede { font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: #b3b7d4; max-width: 36rem; line-height: 1.5; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }


/* Live demo, tilted like a product shot until it scrolls into view. */
.demo-stage { position: relative; margin-top: clamp(48px, 7vw, 90px); perspective: 1800px; padding-bottom: 28px; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; width: min(1180px, 100%); margin: 0 auto clamp(30px, 4vw, 48px); }
.demo-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 780; }
.demo-switch { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.demo-switch p { font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button { display: inline-flex; align-items: center; gap: 8px; }
.seg .i { width: 17px; height: 17px; }
/* Phones and long translations: the three choices share one row (each as wide as its label needs, labels
   wrap inside their button only if they must) instead of running off the edge; on the narrowest screens the
   icon sits above the label. */
.demo-switch { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .demo-switch, .demo-switch .seg { width: 100%; }
  .demo-switch .seg { display: flex; }
  .demo-switch .seg button { flex: 1 1 auto; justify-content: center; min-width: 0; height: auto; min-height: 42px; padding: 6px 10px; white-space: normal; text-align: center; line-height: 1.2; }
}
@media (max-width: 480px) {
  .demo-switch .seg { border-radius: 22px; }
  .demo-switch .seg button { flex-direction: column; gap: 4px; padding: 8px 4px; border-radius: 17px; font-size: 13.5px; }
}
.device {
  --tilt: 26deg; --scale: 0.9; --lift: 0px;
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
  transform: translateY(var(--lift)) rotateX(var(--tilt)) scale(var(--scale));
  transform-origin: 50% 0%;
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, #2b2e3a, #16171d);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 60px 120px -40px rgba(122, 92, 255, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
  will-change: transform;
}
.device-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #050506; }
/* Tablets in portrait: a 16:9 screen this narrow is too short to show the demo's screens, so it's a little squarer
   (phones get a portrait screen, below). */
@media (min-width: 641px) and (max-width: 900px) { .device-screen { aspect-ratio: 4 / 3; } }
.device-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.device-glare { position: absolute; inset: 0; border-radius: 10px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 38%); transition: opacity 0.4s; }
.device.live .device-glare { opacity: 0; }
.device-cover {
  position: absolute; inset: 14px; border-radius: 10px; z-index: 2;
  display: grid; place-items: center; cursor: pointer; border: 0;
  background: linear-gradient(180deg, rgba(10, 11, 30, 0) 30%, rgba(10, 11, 30, 0.55));
  transition: opacity 0.35s;
}
.device-cover span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: var(--paper-text); font-weight: 700; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.device.live .device-cover { opacity: 0; pointer-events: none; }
.device.choosing .device-cover { background: none; }
.device.choosing .device-cover span { opacity: 0; }
.demo-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: min(1180px, 100%); margin: 18px auto 0; font-size: 14px; color: var(--dim); }
.demo-caption a { color: #d6d9ff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.demo-caption a:hover { color: #fff; }

/* ---- Marquee ------------------------------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
/* Paused under the pointer only where there is one: on touch screens a tap would leave it "hovered" and stopped. */
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee-item { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 750; letter-spacing: -0.04em; white-space: nowrap; }
.marquee-item.outline { color: rgba(214, 217, 255, 0.28); }
.marquee .i { width: 28px; height: 28px; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Manifesto (words light up on scroll) ---------------------------------------------- */
.manifesto { padding: clamp(90px, 14vw, 180px) 0; }
.manifesto p.big {
  margin-top: 22px;
  font-size: clamp(1.9rem, 4.3vw, 3.6rem);
  line-height: 1.12; letter-spacing: -0.035em; font-weight: 680;
  max-width: 22ch;
}
/* Long words wrap (and hyphenate in other languages) rather than run off the edge at any width. */
.manifesto p.big { max-width: none; overflow-wrap: break-word; text-wrap: pretty; }
/* The three points after the paragraph: larger and bolder, each on its own line with a gradient dot that
   lights up with its first word. */
.manifesto-points {
  display: grid; gap: clamp(2px, 0.6vw, 8px); margin-top: clamp(30px, 4.4vw, 56px);
  font-size: clamp(2.2rem, 6.2vw, 5.4rem); line-height: 1.06; letter-spacing: -0.05em; font-weight: 800;
  overflow-wrap: break-word;
}
.manifesto-points li { position: relative; min-width: 0; padding-inline-start: 0.6em; }
.manifesto-points li::before {
  content: ""; position: absolute; inset-inline-start: 0.02em; top: 0.56em; top: calc(0.5lh + 0.03em); width: 0.26em; height: 0.26em;
  border-radius: 50%; background: var(--grad); translate: 0 -50%; transition: opacity 0.35s;
}
.manifesto-points li:has(.w):not(:has(.w.on))::before { opacity: 0.22; }
.reveal-words .w { color: rgba(244, 245, 251, 0.18); transition: color 0.35s; }
.reveal-words .w.on { color: var(--text); }
.reveal-words .w.on.hl { color: var(--wc, var(--violet)); }

/* ---- Light sections ---------------------------------------------------------------- */
.light { background: var(--paper); color: var(--paper-text); color-scheme: light; }
.light .lede, .light .muted { color: var(--paper-muted); }
.light .eyebrow { color: var(--violet); }
.light .eyebrow::before { display: none; }

/* ---- Product: sticky story ------------------------------------------------------------ */
.product { padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 120px); position: relative; overflow: clip; }
.product .arcs { position: absolute; right: -10%; top: 40px; width: 55%; opacity: 0.6; pointer-events: none; }
.story { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 90px); }
.story-visual { position: sticky; top: calc(var(--nav-h) + 6vh); height: min(72vh, 640px); }
.visual-card {
  position: relative; height: 100%; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 20%, #1f2257 0%, #0c0e26 55%, #080918 100%);
  box-shadow: 0 40px 80px -40px rgba(10, 11, 30, 0.7);
  color: var(--text);
}
.visual-count { position: absolute; left: 26px; top: 22px; font-size: 13px; font-weight: 700; color: #fff; z-index: 3; }
.visual-count span { color: var(--dim); }
.visual-note { position: absolute; left: 26px; bottom: 20px; font-size: 12px; color: var(--dim); z-index: 3; }
.visual { position: absolute; inset: 0; display: grid; place-items: center; padding: 60px 34px; opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); pointer-events: none; }
.visual.on { opacity: 1; transform: none; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; inset-inline-start: 21px; top: 0; bottom: 0; width: 1px; background: #d9dbea; }
.step { position: relative; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; padding-inline: 76px 0; }
.step-dot { position: absolute; inset-inline-start: 0; top: 50%; translate: 0 -50%; width: 43px; height: 43px; border-radius: 50%; background: var(--paper); border: 1px solid #d9dbea; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--paper-muted); transition: all 0.35s var(--ease); }
.step.on .step-dot { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 0 0 6px rgba(106, 77, 255, 0.15); }
.step-kicker { font-size: 13px; font-weight: 700; color: var(--violet); }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.1; margin: 6px 0 12px; font-weight: 750; }
.step p { color: var(--paper-muted); max-width: 30rem; }
.step ul { margin-top: 18px; display: grid; gap: 8px; }
.step li { display: flex; gap: 10px; align-items: flex-start; color: #2b2e4a; font-size: 15.5px; }
.step li .i { color: var(--violet); margin-top: 4px; }
.step { opacity: 0.38; transition: opacity 0.4s; }
.step.on { opacity: 1; }
.step-visual-mobile { display: none; }

/* Mini UIs inside the story card (illustrative). */
.mini-phone { width: min(270px, 70%); aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 10px; background: #0b0c14; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 30px 60px -20px rgba(0,0,0,.7); }
.mini-phone .screen { height: 100%; border-radius: 26px; background: #fbfbff; color: #14162e; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; }
.mp-head { padding: 22px 14px 10px; background: linear-gradient(135deg, #ff2aa6, #7a5cff); color: #fff; }
.mp-head strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.mp-head span { opacity: 0.85; font-size: 11px; }
.mp-body { padding: 12px; display: grid; gap: 8px; flex: 1; }
.mp-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 #ececf6, 0 6px 16px -10px rgba(20,22,46,.25); }
.mp-item b { font-weight: 650; }
.mp-item small { display: block; color: #7a7e9a; font-size: 10.5px; }
.mp-item > div, .mp-bar > span:first-child, .mt-line > span:not(.q), .mt-total > span:first-child { min-width: 0; }
.mp-bar { gap: 8px; }
.mp-body { grid-template-columns: minmax(0, 1fr); }
.mp-bar > span:last-child, .mt-line > b, .mt-total > span:last-child { flex: none; white-space: nowrap; }
.mp-add { flex: none; width: 24px; height: 24px; border-radius: 8px; background: #6a4dff; color: #fff; display: grid; place-items: center; font-weight: 700; }
.mp-bar { margin: 0 12px 14px; padding: 12px 14px; border-radius: 14px; background: #14162e; color: #fff; display: flex; justify-content: space-between; font-weight: 650; }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--paper-text); font-weight: 700; font-size: 13px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
.chip-float .i { color: var(--violet); }
.chip-float.green .i { color: #10b981; }

.mini-till { width: min(400px, 92%); border-radius: 18px; background: #0e0e11; border: 1px solid #26262c; padding: 16px; font-size: 13px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.mt-head { display: flex; justify-content: space-between; color: #c9cad6; font-weight: 600; margin-bottom: 10px; }
.mt-head span:last-child { color: #a1a1aa; font-weight: 500; }
.mt-line { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid #1d1d22; }
.mt-line .q { width: 20px; height: 20px; border: 1px solid #3a3a42; border-radius: 5px; display: grid; place-items: center; font-size: 11px; }
.mt-line small { display: block; color: #8b8b96; font-size: 10.5px; text-transform: uppercase; }
.mt-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 750; margin: 12px 0; }
.mt-pay { height: 46px; border-radius: 10px; background: #a594f9; color: #fff; font-weight: 700; display: grid; place-items: center; }

.sms { width: min(360px, 90%); display: grid; gap: 12px; }
.sms-bubble { justify-self: start; max-width: 88%; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #eef0ff; color: #14162e; font-size: 14px; line-height: 1.45; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.sms-bubble a { color: #6a4dff; font-weight: 700; }
.sms-meta { font-size: 11px; color: var(--dim); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pay-chips span { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.paid-toast { justify-self: end; display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #10b981; color: #fff; font-weight: 700; font-size: 14px; }

.portal-wrap { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.portal-wrap img { width: min(380px, 82%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.stat-card { position: absolute; right: 8%; bottom: 16%; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.97); color: var(--paper-text); box-shadow: 0 20px 50px -16px rgba(0,0,0,.6); min-width: 170px; }
.stat-card small { color: var(--paper-muted); font-size: 12px; font-weight: 600; }
.stat-card strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.stat-card em { font-style: normal; color: #10b981; font-weight: 700; font-size: 12px; }

/* ---- Hardware teaser ------------------------------------------------------------------- */
.hardware { padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: clip; }
.hw-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hw-visual { position: relative; aspect-ratio: 1 / 0.82; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 60% at 50% 35%, #2a2470 0%, #12133a 55%, #0a0b1e 100%); border: 1px solid var(--line); }
.hw-visual::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 12%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(6px); }
.hw-visual .hw-poster { position: absolute; inset: 6% 6% 14%; width: 88%; height: 80%; object-fit: contain; z-index: 1; transition: opacity 0.45s, transform 0.6s var(--ease); }
.hw-visual .hw-poster:not([data-poster="single"]) { opacity: 0; }
.hw-visual[data-till="dual"] .hw-poster[data-poster="single"] { opacity: 0; transform: scale(0.97); }
.hw-visual[data-till="dual"] .hw-poster[data-poster="dual"] { opacity: 1; }
.hw-visual.live .hw-poster { opacity: 0 !important; }
.hw-3d { position: absolute; inset: 0 0 60px; z-index: 1; opacity: 0; transition: opacity 0.5s; }
.hw-visual.live .hw-3d { opacity: 1; }
.hw-3d canvas { display: block; touch-action: pan-y; }
.hw-switch { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 3; width: max-content; max-width: calc(100% - 20px); }
.hw-badge:hover { background: rgba(255, 255, 255, 0.14); }
.price-pill { transition: border-color 0.3s, background 0.3s; }
.price-pill.on { border-color: rgba(162, 76, 255, 0.7); background: rgba(122, 92, 255, 0.12); }
.hw-badge { position: absolute; left: 22px; top: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.spec-list { margin: 28px 0 34px; border-top: 1px solid var(--line); }
.spec-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #d9dbf2; }
.spec-list .i { color: var(--cyan); width: 20px; height: 20px; }
.price-pair { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.price-pair:has(+ .price-note) { margin-bottom: 12px; }
.price-note { margin-bottom: 30px; color: var(--dim); font-size: 13.5px; }
.price-pill { padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
button.price-pill { font: inherit; color: inherit; text-align: start; cursor: pointer; }
button.price-pill:hover { border-color: rgba(162, 76, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
button.price-pill.on:hover { border-color: rgba(162, 76, 255, 0.7); background: rgba(122, 92, 255, 0.16); }
.price-pill small { display: block; color: var(--muted); font-size: 13px; }
.price-pill strong { font-size: 22px; letter-spacing: -0.03em; }
.price-pill span { color: var(--muted); font-size: 14px; }

/* ---- Features ------------------------------------------------------------------------- */
.features { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
.features-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--ink); padding: 28px 24px 30px; transition: background 0.3s; }
.feature:hover { background: var(--ink-2); }
/* The grid's hairlines are its background showing between the cells, so a cell still waiting to scroll in would show
   as a grey block. The cell stays put and only its contents fade and rise in. */
.feature.reveal { opacity: 1; transform: none; }
.feature.reveal > * { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: inherit; }
.feature.reveal.in > * { opacity: 1; transform: none; }
.feature .i { width: 26px; height: 26px; color: var(--cyan); margin-bottom: 18px; }
.feature:nth-child(3n + 2) .i { color: var(--magenta); }
.feature:nth-child(3n + 3) .i { color: #a98bff; }
.feature h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.5; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 70px; }
.stat strong { display: block; font-size: min(clamp(2.6rem, 5vw, 4.25rem), 9.4vw); /* two columns on phones: "£8,000+" must fit half the width */ font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat span { display: block; color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---- Pricing ---------------------------------------------------------------------------- */
.pricing { padding: clamp(40px, 6vw, 72px) 0 clamp(90px, 12vw, 150px); }
.pricing .builder:first-child { margin-top: 0; } /* the package builder opens the pricing page */
.fine { margin-top: 18px; color: var(--paper-muted); font-size: 14px; }

/* ---- "Not" section ------------------------------------------------------------------------- */
.not { padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid #e3e5f2; }
.not h2 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 780; }
/* Each phrase starts a new line (the "\A" before it), and the line through it is a background drawn on every line
   it wraps onto (box-decoration-break), so a phrase that wraps on a phone is struck through on each line rather
   than underlined between them. */
.strike {
  color: rgb(110 115 147 / 0.8); /* a little see-through, so the line (drawn behind the text) shows across it */
  background: var(--grad) no-repeat 0 56% / 0% 0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.9s var(--ease);
}
.strike::before { content: "\A"; white-space: pre; }
.strike.on { background-size: 100% 0.08em; }
[dir="rtl"] .strike { background-position-x: 100%; }
.not-claim { margin-top: clamp(40px, 6vw, 70px); font-size: clamp(1.6rem, 3.3vw, 2.6rem); line-height: 1.18; letter-spacing: -0.035em; font-weight: 700; max-width: 26ch; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid #e3e5f2; font-weight: 600; font-size: 15px; }
.chip .i { color: #10b981; }

/* ---- Testimonials ------------------------------------------------------------------------ */
.reviews { padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); overflow: hidden; }
/* The reviews scroll past on their own once initReviews has copied the cards and added .loop. Without it (no
   JavaScript, or reduced motion) the rail is scrolled sideways by hand instead. Each card carries its own
   trailing space (a margin, not the track's gap), so one set of cards is exactly half the track and the loop
   (the marquee keyframes, -50%) joins up without a jump. */
.review-rail { display: flex; overflow-x: auto; scroll-snap-type: inline proximity; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter); margin-top: clamp(36px, 5vw, 56px); padding: 4px var(--gutter) 12px; }
.review-track { display: flex; flex: none; }
.review { width: min(400px, 80vw); flex: none; margin-inline-end: 20px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.review-rail.loop { overflow: hidden; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.review-rail.loop .review-track { animation: marquee var(--review-time, 90s) linear infinite; will-change: transform; }
/* Paused by the button, by keyboard focus, off screen, and under the pointer (only where there is one: on touch
   screens a tap would leave it "hovered" and stopped). */
.review-rail.loop:is(.paused, .off, :focus-visible) .review-track { animation-play-state: paused; }
@media (hover: hover) { .review-rail.loop:hover .review-track { animation-play-state: paused; } }
.review-controls { display: flex; margin-top: 14px; } /* at the start: the chat button floats over the far corner */
.review-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); background: var(--ink-2); cursor: pointer; }
.review-toggle:hover, .review-toggle:focus-visible { border-color: #aa94ff; }
.review-toggle .i { width: 18px; height: 18px; }
.review-toggle[aria-pressed="true"] .i-pause, .review-toggle:not([aria-pressed="true"]) .i-play { display: none; }
.review .stars { display: flex; gap: 3px; color: #fbbf24; }
.review .stars .i { width: 16px; height: 16px; fill: currentColor; }
.review blockquote { color: #d7d9ee; font-size: 15.5px; line-height: 1.6; flex: 1; }
.review figcaption strong { display: block; }
.review figcaption span { color: var(--muted); font-size: 14px; }

/* ---- FAQ --------------------------------------------------------------------------------- */
.faq { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
/* A topic (.faq-topic: its heading, then .faq-cols) splits its questions into two columns of equal length, one on
   phones (no row gap, so they read as one list). Each column is its own element, so opening a question only
   pushes down the questions under it. */
.faq-topic { margin-top: 32px; }
.faq-topic + .faq-topic { margin-top: 48px; }
.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; align-items: start; }
.faq h3 { font-size: 15px; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); color: #fff; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 38rem; }

/* ---- Contact ------------------------------------------------------------------------------- */
.contact { position: relative; padding: clamp(90px, 12vw, 150px) 0; overflow: clip; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; right: -20%; bottom: -30%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 92, 255, 0.25), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.94; letter-spacing: -0.055em; font-weight: 800; margin-top: 16px; }
.contact .lede { margin-top: 22px; }
.ticks { margin-top: 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ticks .i { color: var(--green); }
.direct { margin-top: 36px; display: grid; gap: 10px; }
.direct a { display: inline-flex; align-items: center; gap: 12px; color: #dfe1ff; font-weight: 600; width: fit-content; }
.direct a:hover { color: #fff; }
.direct .i { color: var(--cyan); }
.showroom { display: flex; gap: 12px; margin-top: 8px; max-width: 26rem; color: var(--muted); font-size: 15px; line-height: 1.55; }
.showroom .i { flex: none; margin-top: 3px; }
.showroom strong { color: #dfe1ff; }
.form-card { background: #fff; color: var(--paper-text); border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8); color-scheme: light; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 12px; border: 1px solid #d8dbe8; background: #fff; color: var(--paper-text);
  padding: 12px 14px; font-size: 15.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.15); }
.field .err { color: #dc2626; font-size: 13px; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-foot p { color: var(--paper-muted); font-size: 13.5px; max-width: 18rem; }
.form-foot a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.form-status.ok { background: #ecfdf5; color: #065f46; }
.form-status.error { background: #fef2f2; color: #991b1b; }
.hp { position: absolute; left: -9999px; }

/* ---- Footer ---------------------------------------------------------------------------- */
.footer { padding: clamp(60px, 9vw, 110px) 0 40px; border-top: 1px solid var(--line); overflow: clip; }
.footer-mark { font-size: clamp(2.4rem, 12vw, 12.5rem); line-height: 0.9; letter-spacing: -0.065em; font-weight: 800; white-space: nowrap; padding-bottom: 0.08em; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: clamp(40px, 6vw, 70px); padding-top: 34px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 22rem; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { font-size: 13px; color: var(--dim); font-weight: 650; margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links ul { display: grid; gap: 8px; }
.footer-links a { color: #d3d5ee; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 40px; color: var(--dim); font-size: 13.5px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---- Shared bits for the service sections ---------------------------------------------- */
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.split-head .section-title { max-width: 15ch; }
.svc-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgba(255, 42, 166, 0.28), rgba(79, 123, 255, 0.28)); border: 1px solid rgba(255, 255, 255, 0.12); }
.svc-ic .i { width: 22px; height: 22px; }
.light .svc-ic { color: var(--violet); background: linear-gradient(135deg, #ffe4f4, #e4e8ff); border-color: #e3e5f2; }
.seg label { position: relative; }
.seg label input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg label span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: #c9cbe0; transition: background 0.25s, color 0.25s; }
.seg label input:checked + span { background: #fff; color: #0b0c14; }
.seg label input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.seg.seg-light { background: #e9eaf4; border-color: #dfe1ee; backdrop-filter: none; }
.seg.seg-light button { color: #4a4e6b; }
.seg.seg-light button[aria-pressed="true"] { background: var(--paper-text); color: #fff; }

/* ---- Commission calculator ------------------------------------------------------------- */
.calc { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
.calc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.calc-head .section-title { max-width: 15ch; }
.calc-card { margin-top: 50px; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
.calc-inputs { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: grid; gap: 26px; align-content: start; }
.calc-field { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: baseline; }
.calc-field label { font-weight: 650; color: #dfe1ff; }
.calc-field output { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-field input { grid-column: 1 / -1; }
/* The slider is 28px tall so it's easy to catch with a finger; the 6px track is drawn inside it. */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 1px 0; border-radius: 999px; cursor: pointer; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--violet) var(--p, 50%), rgba(255, 255, 255, 0.14) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--violet) var(--p, 50%), rgba(255, 255, 255, 0.14) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.calc-daily { color: var(--muted); }
.calc-daily strong { color: #fff; }
.calc-who { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-who legend { font-weight: 650; color: #dfe1ff; margin-bottom: 10px; padding: 0; }
.calc-who .seg { display: flex; width: 100%; max-width: 380px; }
.calc-who .seg label { flex: 1; min-width: 0; }
/* Two choices share the pill; a label that doesn't fit (phones, long translations) wraps inside its half. */
.calc-who .seg label span { width: 100%; justify-content: center; padding: 6px 12px; height: auto; min-height: 40px; line-height: 1.2; text-align: center; }
.calc-results { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.calc-period { display: flex; flex-wrap: wrap; gap: 6px; }
.calc-period button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: #c9cbe0; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.calc-period button[aria-pressed="true"] { background: #fff; color: #0b0c14; border-color: #fff; }
.calc-rows { display: grid; }
.calc-rows li { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.calc-name { font-weight: 700; }
.calc-name small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.calc-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.calc-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, #ff8a3d, #ff2aa6); transition: width 0.6s var(--ease); }
.calc-rows b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: end; min-width: 6.5ch; }
.calc-us { border-bottom: 0 !important; }
.calc-us .calc-name { color: #fff; }
.calc-us .calc-bar i { min-width: 6px; background: var(--green); }
.calc-us b { color: var(--green); }
.calc-keep { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.calc-keep strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-keep.calc-keep-low { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; color: #dfe1ff; }
.calc-results .btn { align-self: flex-start; }
.calc-note { margin-top: 18px; color: var(--dim); font-size: 13.5px; max-width: 64rem; }

/* ---- Services grid ------------------------------------------------------------------- */
.services { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 28px; border-radius: 22px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--ink-2), var(--ink)); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s; }
.svc::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 92, 255, 0.35), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.svc:hover::before { opacity: 1; }
a.svc:hover { transform: translateY(-4px); border-color: rgba(162, 76, 255, 0.55); box-shadow: 0 30px 60px -30px rgba(122, 92, 255, 0.6); }
.svc:nth-child(4n + 2) .svc-ic { background: linear-gradient(135deg, rgba(20, 180, 240, 0.3), rgba(122, 92, 255, 0.25)); }
.svc:nth-child(4n + 3) .svc-ic { background: linear-gradient(135deg, rgba(45, 212, 167, 0.28), rgba(20, 180, 240, 0.22)); }
.svc:nth-child(4n + 4) .svc-ic { background: linear-gradient(135deg, rgba(255, 138, 61, 0.3), rgba(255, 42, 166, 0.25)); }
.svc h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; margin-top: 12px; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---- Bespoke website & app ----------------------------------------------------------- */
.bespoke { padding: clamp(90px, 12vw, 150px) 0; overflow: clip; }
.bespoke-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.bespoke-visual { position: relative; padding-bottom: 4%; }
.monitor { width: 86%; }
.monitor-screen { padding: 10px; border-radius: 16px; background: #111216; box-shadow: 0 50px 90px -45px rgba(13, 15, 36, 0.6); }
.monitor-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 7px; }
.monitor-neck { width: 16%; height: 50px; margin: 0 auto; background: linear-gradient(90deg, #c4c7d2, #eef0f6, #bfc2cd); }
.monitor-foot { width: 34%; height: 10px; margin: 0 auto; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, #b4b7c3, #e7e9f1, #b0b3bf); }
.handset { position: absolute; right: 0; bottom: 0; width: 28%; padding: 7px; border-radius: 30px; background: #0f1014; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 70px -25px rgba(13, 15, 36, 0.65); }
.handset-screen { border-radius: 24px; overflow: hidden; background: #f4f4f2; }
.handset-screen img { width: 100%; }
.tick-list { margin-top: 26px; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 16.5px; }
.tick-list .i { color: var(--violet); margin-top: 4px; }
.stores { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores p { width: 100%; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 12px; background: #0b0c14; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { line-height: 1.1; }
.store-badge small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.85; }
.bespoke-price { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: fit-content; max-width: 100%; padding: 18px 22px; border-radius: 20px; background: #fff; border: 1px solid #e3e5f2; box-shadow: 0 30px 60px -45px rgba(13, 15, 36, 0.35); }
.bespoke-price p:not(.bp-vat) { display: grid; gap: 6px; color: var(--paper-muted); font-weight: 600; font-size: 14.5px; }
.bespoke-price strong { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--paper-text); }
.bp-plus { font-size: 28px; font-weight: 300; line-height: 1; color: var(--violet); }
.bp-vat { flex-basis: 100%; font-size: 13.5px; color: var(--paper-muted); }

/* ---- Card machines: the takeaway demo hands each card payment to the terminal --------------- */
.cards { padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid #e3e5f2; }
.pay-demo { position: relative; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 72px 200px; align-items: center; padding: clamp(18px, 3.4vw, 48px); border-radius: 28px; background: radial-gradient(120% 90% at 20% 0%, #1f2257 0%, #0c0e26 60%, #080918 100%); box-shadow: 0 50px 100px -50px rgba(13, 15, 36, 0.6); color: #e4e4e7; overflow: clip; }
/* The till: the demo renders at a till's resolution and is scaled to fit (initPayDemo sets --pd-scale).
   A still of the demo's first screen (the screen's background, set by initPayDemo as the section comes near)
   shows until the demo has drawn itself, then the demo fades in over it (.pd-live). */
.pd-till { padding: clamp(6px, 0.9vw, 12px); border-radius: clamp(12px, 1.6vw, 20px); background: linear-gradient(180deg, #25262e, #0c0c10); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.pd-screen { position: relative; aspect-ratio: 16 / 10; border-radius: clamp(5px, 0.7vw, 9px); overflow: hidden; background: #09090b center / cover no-repeat; }
.pd-screen iframe { position: absolute; left: 0; top: 0; width: 1024px; height: 640px; border: 0; transform-origin: 0 0; transform: scale(var(--pd-scale, 0.5)); opacity: 0; transition: opacity 0.5s ease; }
.pay-demo.pd-live .pd-screen iframe { opacity: 1; }
.pd-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 34%); }
.pd-link { display: flex; justify-content: center; gap: 9px; }
.pd-link span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.pay-demo.sending .pd-link span { animation: link-pulse 0.9s ease-in-out infinite; }
.pay-demo.sending .pd-link span:nth-child(2) { animation-delay: 0.15s; }
.pay-demo.sending .pd-link span:nth-child(3) { animation-delay: 0.3s; }
@keyframes link-pulse { 50% { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); } }
/* The card machine. States on .pay-demo: sending, amount, tap (card on the reader), ok (approved). */
.pd-terminal { position: relative; justify-self: center; width: 188px; padding: 12px 15px 20px; border-radius: 24px 24px 32px 32px; background: linear-gradient(180deg, #2c2f3b, #15161c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.pd-lights { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.pd-lights i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.pay-demo.tap .pd-lights i { animation: pd-light 0.15s forwards; }
.pay-demo.tap .pd-lights i:nth-child(1) { animation-delay: 0.75s; }
.pay-demo.tap .pd-lights i:nth-child(2) { animation-delay: 0.9s; }
.pay-demo.tap .pd-lights i:nth-child(3) { animation-delay: 1.05s; }
.pay-demo.tap .pd-lights i:nth-child(4) { animation-delay: 1.2s; }
.pay-demo.ok .pd-lights i { background: #34d399; box-shadow: 0 0 8px #34d399; }
@keyframes pd-light { to { background: #34d399; box-shadow: 0 0 8px #34d399; } }
.pd-display { position: relative; height: 140px; border-radius: 12px; overflow: hidden; background: #f1f5f9; color: #0f172a; transition: box-shadow 0.4s; }
.pay-demo.amount .pd-display { box-shadow: 0 0 0 2px #7a5cff, 0 0 30px rgba(122, 92, 255, 0.55); }
.pay-demo.ok .pd-display { box-shadow: 0 0 0 2px #10b981, 0 0 30px rgba(16, 185, 129, 0.5); }
.pd-s { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; font-weight: 700; opacity: 0; transition: opacity 0.3s; }
.pd-s-idle { color: #64748b; }
.pay-demo:not(.amount):not(.ok) .pd-s-idle, .pay-demo.amount:not(.ok) .pd-s-amount, .pay-demo.ok .pd-s-ok { opacity: 1; }
.pd-s-amount small { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em; }
.pd-s-amount b { font-size: 28px; letter-spacing: -0.03em; white-space: nowrap; }
.pd-s-amount b.pd-long { font-size: 22px; }
.pd-s-amount span { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 13px; color: #5b3fd6; }
.pd-s-amount span .i { width: 17px; height: 17px; animation: pd-nfc 1.1s ease-in-out infinite; }
@keyframes pd-nfc { 50% { opacity: 0.35; } }
.pd-s-ok { color: #059669; font-size: 18px; }
.pd-s-ok .i { width: 40px; height: 40px; }
.pd-s-ok small { color: #475569; font-size: 13px; font-weight: 600; }
.pay-demo.ok .pd-s-ok .i { animation: pd-pop 0.45s var(--ease); }
@keyframes pd-pop { from { transform: scale(0.4); } }
.pd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pd-keys i { height: 20px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); }
.pd-card { position: absolute; z-index: 1; left: 50%; top: 122px; width: 112px; height: 70px; margin-left: -56px; padding: 10px 11px; border-radius: 9px; display: flex; justify-content: space-between; align-items: flex-start; color: #fff; background: linear-gradient(135deg, #7a5cff, #ff2aa6); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); opacity: 0; transform: translate(120px, -90px) rotate(-20deg); transition: transform 0.7s var(--ease), opacity 0.45s; pointer-events: none; }
.pd-chip { width: 22px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #fde68a, #c99a2e); }
.pd-card .i { width: 22px; height: 22px; }
.pay-demo.tap .pd-card { opacity: 1; transform: translate(30px, 4px) rotate(-9deg); animation: pd-dip 0.5s 0.7s ease-in-out; }
@keyframes pd-dip { 50% { transform: translate(30px, 10px) rotate(-9deg) scale(0.95); } }
.pay-demo-cap { margin-top: 14px; color: var(--paper-muted); font-size: 13px; text-align: center; }
.pay-demo-cap a { color: var(--violet); font-weight: 600; white-space: nowrap; }
.pay-demo-cap a:hover { text-decoration: underline; }
.rates-callout { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 22px; background: #fff; border: 1px solid #e3e5f2; }
.rates-callout h3 { font-size: 22px; letter-spacing: -0.02em; }
@media (max-width: 480px) { .rates-callout { padding: 22px 20px; } .rates-callout .btn { width: 100%; } }
.rates-callout p { color: var(--paper-muted); margin-top: 6px; max-width: 42rem; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 34px; margin-top: 18px; }
.partner-logos img { height: 30px; width: auto; }
.partner-logos img[alt="Apple Pay"], .partner-logos img[alt="Google Pay"] { height: 38px; }
.integrations { margin-top: 48px; text-align: center; }
.integrations > p { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); }
.integrations .partner-logos { justify-content: center; gap: 26px 48px; margin-top: 20px; }
.integrations .partner-logos img { height: 34px; }

/* ---- Digital menu screens ------------------------------------------------------------- */
.screens { padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid var(--line); overflow: clip; }
.tv-wall { --bezel: 9px; --gap: 16px; container-type: inline-size; margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: clamp(14px, 2.4vw, 30px); border-radius: 28px; background: linear-gradient(180deg, #1b1d36, #0d0e21); border: 1px solid var(--line); }
.tv { margin: 0; }
.tv-screen { position: relative; aspect-ratio: 16 / 9; border: var(--bezel) solid #050507; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 30px 50px -25px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tv-screen > img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.22s; }
.tv-screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%); transform: translateY(-100%); }
.tv-wall.flick .tv-screen::after { animation: tv-flick 0.45s ease-out; }
.tv-wall.flick .tv:nth-child(2) .tv-screen::after { animation-delay: 0.07s; }
.tv-wall.flick .tv:nth-child(3) .tv-screen::after { animation-delay: 0.14s; }
@keyframes tv-flick { to { transform: translateY(100%); } }
.pano { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.22s; }
.tv-wall.pano-on .pano { opacity: 1; }
.tv-wall.pano-on .tv-screen > img { opacity: 0; }
.tv:nth-child(2) .pano, .tv:nth-child(2) .tv-screen > img { transition-delay: 0.07s; }
.tv:nth-child(3) .pano, .tv:nth-child(3) .tv-screen > img { transition-delay: 0.14s; }
/* One picture spread over all three screens: each screen shows its own slice, offset by the screens
   before it plus the gaps and bezels between them, so the picture runs on behind the frames. */
.pano-art { position: absolute; top: 0; height: 100%; width: calc(300% + 2 * (var(--gap) + 2 * var(--bezel))); left: calc(var(--i) * -1 * (100% + var(--gap) + 2 * var(--bezel))); }
video.pano-art { object-fit: cover; }
.pa-sky { position: absolute; inset: 0; background: linear-gradient(100deg, #12082b 0%, #4b1a80 22%, #c8336f 48%, #ff8a3d 72%, #ffd166 100%); background-size: 160% 100%; }
.pa-glow { position: absolute; inset: 0; background: radial-gradient(30% 60% at 20% 30%, rgba(255, 255, 255, 0.18), transparent 70%), radial-gradient(25% 50% at 80% 75%, rgba(255, 220, 160, 0.25), transparent 70%); }
.pa-kicker { position: absolute; left: 4%; top: 12%; font-size: 2.2cqw; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: #ffe6a8; }
.pa-big { position: absolute; left: 0; top: 24%; white-space: nowrap; font-size: 10.5cqw; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: #fff; text-shadow: 0 0.6cqw 2cqw rgba(0, 0, 0, 0.35); }
.pa-big span:nth-child(2) { color: #ffd166; }
.pa-deal { position: absolute; right: 5%; bottom: 10%; padding: 0.9cqw 2cqw; border-radius: 999px; background: #fff; color: #12082b; font-size: 2.6cqw; font-weight: 800; }
.pa-deal b { color: #c8336f; }
.pa-streak { position: absolute; top: -20%; bottom: -20%; width: 12%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg); left: -20%; }
.tv-wall.pano-on .pa-sky { animation: pa-sky 8s linear both; }
.tv-wall.pano-on .pa-big { animation: pa-slide 8s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
.tv-wall.pano-on .pa-streak { animation: pa-streak 2.6s ease-in-out 0.4s 3 both; }
.tv-wall.pano-on .pa-deal { animation: pa-pop 0.6s var(--ease) 2.2s both; }
.tv-wall.pano-on .pa-kicker { animation: pa-pop 0.6s var(--ease) 0.3s both; }
@keyframes pa-sky { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes pa-slide { from { transform: translateX(100cqw); } to { transform: translateX(6cqw); } }
@keyframes pa-streak { from { left: -20%; } to { left: 110%; } }
@keyframes pa-pop { from { opacity: 0; transform: translateY(1.5cqw) scale(0.9); } to { opacity: 1; transform: none; } }
.screen-points { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.screen-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.screen-points .i { width: 24px; height: 24px; margin-top: 2px; color: var(--cyan); }
.screen-points strong { display: block; color: #fff; font-size: 17px; }

.smart-tv { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(56px, 7vw, 90px); padding: clamp(22px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(90% 90% at 25% 30%, rgba(122, 92, 255, 0.22), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
.stv-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; background: radial-gradient(60% 55% at 50% 45%, #2a2470 0%, #12133a 60%, #0a0b1e 100%); overflow: hidden; }
.stv-model { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; }
.stv-model.live { opacity: 1; }
.stv-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 780; }
.stv-copy p { margin-top: 14px; color: var(--muted); max-width: 34rem; }
.stv-copy .tick-list li { font-size: 15.5px; color: #dfe1ff; }
.stv-copy .tick-list .i { color: var(--green); }
.stv-copy .btn { margin-top: 26px; }
.hw-visual.live::after { opacity: 0; }
@media (max-width: 900px) { .smart-tv { grid-template-columns: minmax(0, 1fr); } }
.stv-copy .stv-price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.stv-price strong { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }

/* AC Cloud TVs: pick a size. The drawing is to scale: --s is 1 cm (the 43", 96.5 × 55 cm, fills 72% of the
   width), and the TV's real sizes in cm multiply it. --tw / --th (the TV's width and height) are registered so
   they animate, and everything in the drawing follows them. --cx is where the TV's centre sits. */
@property --tw { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --th { syntax: "<length>"; inherits: true; initial-value: 0px; }
.tv-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(56px, 7vw, 90px); padding: clamp(18px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(90% 90% at 80% 35%, rgba(20, 180, 240, 0.16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
.tv-pick:not([data-size="43"]) .tvp-43, .tv-pick[data-size="43"] .tvp-32 { display: none; }
.tvp-prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tvp-prices .price-pill { min-width: 150px; }
.tvp-prices .price-pill strong { display: block; margin-top: 2px; font-size: 26px; }
.stv-copy .tvp-vat { margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.tvd { container-type: inline-size; display: grid; justify-items: center; gap: 12px; padding: clamp(12px, 2vw, 22px); border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(60% 60% at 50% 55%, #2a2470 0%, #12133a 60%, #0a0b1e 100%); }
.tvd-draw {
  --s: calc(72cqw / 96.5); --cx: 56cqw;
  --tw: calc(var(--s) * 72); --th: calc(var(--s) * 42);
  position: relative; width: 100%; aspect-ratio: 100 / 62; color: #8fd8ff;
  background: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 4cqw 4cqw, linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 4cqw 4cqw;
  border-radius: 12px;
  transition: --tw 0.75s var(--ease), --th 0.75s var(--ease);
}
.tv-pick[data-size="43"] .tvd-draw { --tw: calc(var(--s) * 96.5); --th: calc(var(--s) * 55); }
/* Phones: the drawing uses more of the narrower stage. */
@container (max-width: 420px) { .tvd-draw { --s: calc(80cqw / 96.5); --cx: 54cqw; aspect-ratio: 100 / 66; } }
/* The 43" outline stays faintly in view so the 32" can be compared with it. */
.tvd-ghost { position: absolute; bottom: 15cqw; inset-inline-start: calc(var(--cx) - var(--s) * 48.25); width: calc(var(--s) * 96.5); height: calc(var(--s) * 55); border: 1.5px dashed rgba(255, 255, 255, 0.22); border-radius: 1.1cqw; transition: opacity 0.4s; }
.tv-pick[data-size="43"] .tvd-ghost { opacity: 0; }
.tvd-tv { position: absolute; bottom: 15cqw; inset-inline-start: calc(var(--cx) - var(--tw) / 2); width: var(--tw); height: var(--th); padding: 0.75cqw; border-radius: 1.1cqw; background: #050507; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 3cqw 5cqw -2cqw rgba(0, 0, 0, 0.85); }
.tvd-tv img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.4cqw; filter: brightness(0.5) saturate(0.85); }
.tvd-diag { position: absolute; left: 50%; top: 50%; width: calc(hypot(var(--tw), var(--th)) - 5cqw); height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ff2aa6, #a24cff 50%, #14b4f0); translate: -50% -50%; rotate: calc(-1 * atan2(var(--th), var(--tw))); }
.tvd-diag::before, .tvd-diag::after, .tvd-dim::before, .tvd-dim::after { content: ""; position: absolute; width: 10px; height: 10px; background: currentColor; }
.tvd-diag::before { left: -3px; top: 50%; translate: 0 -50%; background: #ff2aa6; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.tvd-diag::after { right: -3px; top: 50%; translate: 0 -50%; background: #14b4f0; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.tvd-dim { position: absolute; }
.tvd-w { bottom: 7cqw; inset-inline-start: calc(var(--cx) - var(--tw) / 2); width: var(--tw); height: 2.6cqw; border-inline: 1.5px solid; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.tvd-h { bottom: 15cqw; inset-inline-start: calc(var(--cx) - var(--tw) / 2 - 6cqw); width: 2.6cqw; height: var(--th); border-block: 1.5px solid; background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.tvd-w::before { left: 0; top: 50%; translate: 0 -50%; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.tvd-w::after { right: 0; top: 50%; translate: 0 -50%; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.tvd-h::before { top: 0; left: 50%; translate: -50% 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tvd-h::after { bottom: 0; left: 50%; translate: -50% 0; clip-path: polygon(50% 100%, 0 0, 100% 0); }
.tvd-label { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; padding: 0.3em 0.7em; border-radius: 999px; border: 1px solid rgba(143, 216, 255, 0.55); background: var(--ink); color: #fff; font-size: clamp(10px, 2.3cqw, 15px); font-weight: 700; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tvd-h .tvd-label { rotate: -90deg; }
.tvd-switch button, .tvd-dl { direction: ltr; unicode-bidi: isolate; } /* 32" keeps its inch mark after the number in RTL */
.tvd-dl { rotate: calc(-1 * atan2(var(--th), var(--tw))); padding: 0.12em 0.6em; border: 0; background: var(--grad); font-size: clamp(14px, 3.8cqw, 26px); font-weight: 800; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.8); }
@supports not (width: hypot(1px, 1px)) {
  .tvd-diag { display: none; }
  .tvd-dl { rotate: none; }
}

/* The TV management system. */
.tv-manage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(56px, 7vw, 90px); padding: clamp(22px, 3.4vw, 48px); border-radius: 28px; border: 1px solid rgba(162, 76, 255, 0.35); background: radial-gradient(80% 120% at 0% 0%, rgba(255, 42, 166, 0.16), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(20, 180, 240, 0.14), transparent 60%), var(--ink-2); }
.tvm-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 780; }
.tvm-copy > p { margin-top: 14px; color: var(--muted); max-width: 34rem; }
.tvm-copy .tvm-price { margin-top: 26px; display: flex; align-items: baseline; gap: 10px; color: #dfe1ff; font-weight: 600; font-size: 18px; }
.tvm-price strong { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.tvm-copy .tvm-extra { margin-top: 10px; font-size: 15px; }
.tvm-side .pl-points { margin-top: 0; }
.tvm-side .btn { margin-top: 26px; }
@media (max-width: 900px) { .tv-pick, .tv-manage { grid-template-columns: minmax(0, 1fr); } }

/* Push to TVs (initTvPush in site.js): a phone recreating the management app's "Push to TVs" flow, beside three
   TVs that receive the promo and play it as one picture (the TV wall's .tv / .pano-art slicing, smaller). States on
   #tv-push: data-step (1-4 the app's steps, 5 "Pushed!") and is-all, is-media, is-up, is-opt, is-file, is-pushing,
   is-got, is-out. Everything scales with --tp-pw, the phone's width; 1em on the screen is about 14.5pt on a phone. */
.tv-push { container-type: inline-size; margin-top: clamp(56px, 7vw, 90px); padding: clamp(18px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(45% 70% at 14% 55%, rgba(47, 124, 246, 0.22), transparent 70%), radial-gradient(60% 70% at 85% 95%, rgba(122, 92, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); overflow: clip;
  /* Wide: the phone on one side, the copy and the TVs on the other. Narrow (below): copy, phone, then the TVs. */
  --tp-pw: clamp(200px, 25cqw, 290px); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "phone ." "phone copy" "phone tvs" "phone ."; gap: 0 clamp(28px, 5cqw, 64px); }
.tp-copy { grid-area: copy; }
.tp-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 780; }
.tp-copy p { margin-top: 14px; color: var(--muted); max-width: 36rem; }
.tp-phone { grid-area: phone; }
.tp-tvs { grid-area: tvs; display: flex; align-items: center; gap: clamp(10px, 1.6cqw, 20px); margin-top: clamp(26px, 3.4cqw, 42px); margin-inline-start: calc(-1 * clamp(10px, 2.4cqw, 34px)); }
.tp-tvs .tp-wall { flex: 1; min-width: 0; }
.tp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tp-svg { width: 1em; height: 1em; flex: none; }

/* Phone. */
.tp-phone { position: relative; width: var(--tp-pw); aspect-ratio: 9 / 19.2; padding: calc(var(--tp-pw) * 0.03); border-radius: calc(var(--tp-pw) * 0.16); background: linear-gradient(150deg, #3a3e5c, #12131f 40%, #0b0c16 70%, #2a2d45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 70px -25px rgba(0, 0, 0, 0.95), -20px 30px 60px -30px rgba(47, 124, 246, 0.5); }
.tp-screen { --bg: #0f0f11; --card: #18181b; --edge: #2a2a2f; --mute: #8e8e98; --blue: #2f7cf6; --ok: #22c55e; --warn: #f5a524; position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--tp-pw) * 0.135); background: var(--bg); color: #f4f4f5; font-family: "Inter", system-ui, sans-serif; font-size: calc(var(--tp-pw) / 25.5); line-height: 1.3; letter-spacing: -0.01em; text-align: left; }
.tp-screen::before { content: ""; position: absolute; top: 1.05em; left: 50%; z-index: 9; width: 7.6em; height: 2.2em; border-radius: 999px; background: #000; transform: translateX(-50%); }
.tp-screen::after { content: ""; position: absolute; bottom: 0.5em; left: 50%; z-index: 9; width: 8.6em; height: 0.28em; border-radius: 999px; background: rgba(255, 255, 255, 0.7); transform: translateX(-50%); }
.tp-status { position: absolute; top: 0; inset-inline: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; height: 4.3em; padding: 0.3em 2.2em 0; font-weight: 650; }
.tp-sys { display: flex; align-items: center; gap: 0.45em; }
.tp-sig { display: flex; align-items: flex-end; gap: 0.12em; height: 0.75em; }
.tp-sig b { width: 0.2em; height: 40%; border-radius: 1px; background: currentColor; }
.tp-sig b:nth-child(2) { height: 60%; } .tp-sig b:nth-child(3) { height: 80%; } .tp-sig b:nth-child(4) { height: 100%; }
.tp-bat { position: relative; width: 1.65em; height: 0.8em; border-radius: 0.25em; border: 1px solid rgba(255, 255, 255, 0.45); }
.tp-bat::before { content: ""; position: absolute; inset: 1.5px; width: 70%; border-radius: 1px; background: currentColor; }

/* The app's steps: a top bar, the four-part progress bar, the step itself and its buttons. */
.tp-app, .tp-done { transition: opacity 0.4s var(--ease); }
.tp-app { position: absolute; inset: 4.3em 0 0; display: flex; flex-direction: column; }
.tv-push.is-out .tp-app, .tv-push.is-out .tp-done { opacity: 0; }
.tp-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5em; padding: 0.35em 1.1em 0.75em; font-size: 0.86em; }
.tp-top strong { font-weight: 700; white-space: nowrap; }
.tp-back { justify-self: start; white-space: nowrap; }
.tp-cancel { justify-self: end; color: #a1a1aa; white-space: nowrap; }
.tv-push[data-step="1"] .tp-back { visibility: hidden; }
.tp-prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35em; padding: 0 1.1em; }
.tp-prog li { min-width: 0; overflow: hidden; font-size: 0.6em; color: #6b6b75; text-align: center; white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.tp-prog li::before { content: ""; display: block; height: 0.32em; margin-bottom: 0.6em; border-radius: 1em; background: #2a2a2f; transition: background 0.3s; }
.tp-prog .done::before { background: var(--ok); }
.tp-prog .on { color: #fff; }
.tp-prog .on::before { background: var(--blue); }
.tp-views { position: relative; flex: 1; overflow: hidden; }
.tp-view { position: absolute; inset: 0; padding: 1.25em 1.1em 0; opacity: 0; transform: translateX(60%); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.tp-view.past { transform: translateX(-30%); }
.tp-view.on { opacity: 1; transform: none; }
.tp-h { font-size: 1.28em; font-weight: 760; letter-spacing: -0.025em; line-height: 1.15; }
.tp-sub { margin-top: 0.3em; font-size: 0.72em; color: var(--mute); }
.tp-label { font-size: 0.58em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
/* Anything the finger taps dips for a moment. */
.tp-pill, .tp-tile, .tp-drop, .tp-btn { transition: transform 0.2s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.tp-press { transform: scale(0.95); }

/* 1. Which TVs? */
.tp-selbar { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin: 1.15em 0 0.8em; font-size: 0.72em; color: var(--mute); white-space: nowrap; }
.tp-selbar b { color: #fff; font-weight: 700; }
.tp-pill { padding: 0.5em 0.95em; border-radius: 999px; border: 1px solid #45454d; color: #fff; font-weight: 650; }
.tv-push.is-all .tp-pill { border-color: var(--blue); background: rgba(47, 124, 246, 0.16); }
.tp-group { margin-bottom: 0.7em; border: 1px solid var(--edge); border-radius: 0.8em; background: var(--card); overflow: hidden; }
.tp-ghead { display: flex; align-items: center; gap: 0.5em; padding: 0.75em 0.85em; background: #1e1e22; font-size: 0.8em; }
.tp-ghead .tp-svg { color: var(--mute); }
.tp-ghead strong { flex: 1; min-width: 0; font-weight: 700; }
.tp-ghead span { font-size: 0.78em; color: var(--mute); white-space: nowrap; }
.tp-tv { display: flex; align-items: center; gap: 0.6em; padding: 0.7em 0.85em; border-top: 1px solid var(--edge); transition: background 0.3s; }
.tp-tv.on { background: rgba(47, 124, 246, 0.09); }
.tp-dot { width: 0.45em; height: 0.45em; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.tp-tv-main { display: grid; flex: 1; min-width: 0; }
.tp-tv-main strong { font-size: 0.8em; font-weight: 650; }
.tp-tv-main small { overflow: hidden; font-size: 0.58em; color: var(--mute); white-space: nowrap; text-overflow: ellipsis; }
.tp-off .tp-dot { background: #55555e; box-shadow: none; }
.tp-off .tp-tv-main strong { color: #74747e; }
.tp-off .tp-tv-main small { color: #5c5c66; }
.tp-off .tp-check { opacity: 0.45; }
.tp-check { display: grid; place-items: center; flex: none; width: 1.15em; height: 1.15em; border: 1.5px solid #55555e; border-radius: 0.3em; color: #fff; transition: background 0.2s, border-color 0.2s; }
.tp-check .tp-svg { width: 0.8em; height: 0.8em; opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.3s var(--ease); }
.tp-tv.on .tp-check { border-color: var(--blue); background: var(--blue); }
.tp-tv.on .tp-check .tp-svg { opacity: 1; transform: none; }

/* 2. What do you want to play? */
.tp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4em; margin-top: 1.15em; }
.tp-tile { display: grid; justify-items: center; align-content: start; gap: 0.25em; min-width: 0; padding: 0.75em 0.2em 0.7em; border: 1px solid var(--edge); border-radius: 0.65em; background: var(--card); text-align: center; }
.tp-tile .tp-svg { width: 1.3em; height: 1.3em; margin-bottom: 0.1em; }
.tp-tile strong { max-width: 100%; overflow: hidden; font-size: 0.68em; font-weight: 700; text-overflow: ellipsis; }
.tp-tile small { font-size: 0.5em; line-height: 1.25; color: var(--mute); overflow-wrap: anywhere; }
.tp-tile.on { border-color: var(--blue); background: #11203d; box-shadow: inset 0 0 0 1px var(--blue); }
.tp-upload { opacity: 0; transform: translateY(0.6em); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.tv-push.is-media .tp-upload { opacity: 1; transform: none; }
.tp-upload .tp-label { margin: 1.3em 0 0.55em; }
.tp-drop { position: relative; display: grid; place-items: center; height: 2.9em; overflow: hidden; border: 1.5px dashed var(--blue); border-radius: 0.6em; background: rgba(47, 124, 246, 0.06); color: #6aa5ff; font-size: 0.72em; font-weight: 600; }
.tp-drop > span { grid-area: 1 / 1; display: none; align-items: center; gap: 0.45em; position: relative; white-space: nowrap; }
.tp-drop b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tv-push:not(.is-up):not(.is-opt) .tp-drop-pick { display: inline-flex; }
.tv-push.is-up .tp-drop-up, .tv-push.is-opt .tp-drop-opt { display: block; }
.tv-push.is-up .tp-drop, .tv-push.is-opt .tp-drop, .tv-push.is-file .tp-drop { border-style: solid; border-color: #3a3a42; background: var(--card); color: #e4e4e7; }
.tv-push.is-file .tp-drop { color: #a1a1aa; }
.tp-drop-bar { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 1%); background: rgba(47, 124, 246, 0.2); opacity: 0; }
.tv-push.is-up .tp-drop-bar { opacity: 1; }
.tv-push.is-opt .tp-drop-bar { width: 40%; opacity: 1; background: linear-gradient(90deg, transparent, rgba(47, 124, 246, 0.28), transparent); animation: tp-sweep 1.1s ease-in-out infinite; }
@keyframes tp-sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.tp-chip, .tp-info { opacity: 0; transform: translateY(0.5em); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.tv-push.is-file .tp-chip, .tv-push.is-file .tp-info { opacity: 1; transform: none; }
.tv-push.is-file .tp-info { transition-delay: 0.15s; }
.tp-chip { display: flex; align-items: center; gap: 0.6em; margin-top: 0.55em; padding: 0.5em 0.7em 0.5em 0.5em; border: 1.5px solid var(--blue); border-radius: 0.65em; background: #0f1a30; }
.tp-thumb { position: relative; display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; overflow: hidden; border-radius: 0.4em; background: #3b1222; }
.tp-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 9% 50%; }
.tp-thumb .tp-svg { position: relative; width: 0.8em; height: 0.8em; padding: 0.15em; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; }
.tp-chip-main { display: grid; flex: 1; min-width: 0; }
.tp-chip-main strong, .tp-sum strong { overflow: hidden; font-size: 0.72em; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.tp-chip-main small, .tp-sum small { font-size: 0.58em; color: var(--mute); }
.tp-tick { width: 0.95em; height: 0.95em; color: #6aa5ff; }
.tp-info { margin-top: 0.55em; padding: 0.7em 0.8em; border: 1px solid #1f3d70; border-radius: 0.65em; background: #0c1630; color: #bccdee; font-size: 0.6em; line-height: 1.45; }

/* 3. When should it show? */
.tp-opts { display: grid; gap: 0.5em; margin-top: 1.15em; }
.tp-opt { display: flex; align-items: flex-start; gap: 0.65em; padding: 0.75em 0.8em; border: 1px solid var(--edge); border-radius: 0.7em; background: var(--card); }
.tp-opt > span { display: grid; gap: 0.1em; min-width: 0; }
.tp-opt strong { font-size: 0.76em; font-weight: 700; }
.tp-opt small { font-size: 0.58em; color: var(--mute); }
.tp-opt .tp-check { width: 1.05em; height: 1.05em; margin-top: 0.05em; }
.tp-radio { flex: none; width: 1.05em; height: 1.05em; margin-top: 0.05em; border: 1.5px solid #55555e; border-radius: 50%; }
.tp-opt.on { border-color: var(--blue); background: #11203d; box-shadow: inset 0 0 0 1px var(--blue); }
.tp-opt.on .tp-radio { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 38%, transparent 44%); }

/* 4. Ready to push? */
.tp-sum { display: grid; gap: 0.15em; margin-top: 0.6em; padding: 0.7em 0.8em; border: 1px solid var(--edge); border-radius: 0.7em; background: var(--card); }
.tp-view .tp-sum:first-of-type { margin-top: 1.15em; }
.tp-sum-h { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; margin-bottom: 0.2em; }
.tp-edit { font-size: 0.62em; font-weight: 600; color: #6aa5ff; }
.tp-sum strong { display: flex; align-items: center; gap: 0.4em; }
.tp-sum strong .tp-svg { width: 1.1em; height: 1.1em; color: #a1a1aa; }
.tp-sum ul { display: grid; gap: 0.3em; }
.tp-sum li { display: flex; align-items: center; gap: 0.5em; font-size: 0.68em; font-weight: 600; }
.tp-ring { flex: none; width: 0.85em; height: 0.85em; border: 1.5px solid var(--ok); border-radius: 50%; background: radial-gradient(circle, var(--ok) 0 30%, transparent 36%); }

/* Footer: the hint and the buttons. */
.tp-foot { margin-top: auto; padding: 0.7em 1.1em 2.1em; border-top: 1px solid #222227; background: var(--bg); }
.tp-hint { min-height: 1.45em; margin-bottom: 0.4em; font-size: 0.62em; color: var(--warn); }
.tp-hint > span { display: none; }
.tv-push[data-step="1"]:not(.is-all) .tp-hint-1, .tv-push[data-step="2"]:not(.is-file) .tp-hint-2 { display: inline; }
.tp-btns { display: flex; gap: 0.5em; }
.tp-btn { display: grid; place-items: center; height: 2.75em; padding: 0 0.8em; border-radius: 0.65em; font-size: 0.78em; font-weight: 650; white-space: nowrap; }
.tp-btn-back { flex: 0 0 36%; background: #232328; }
.tp-btn-next { flex: 1; background: #26262b; color: #66666f; }
.tv-push[data-step="1"].is-all .tp-btn-next, .tv-push[data-step="2"].is-file .tp-btn-next, .tv-push[data-step="3"] .tp-btn-next, .tp-btn-push, .tp-btn-done { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -8px rgba(47, 124, 246, 0.9); }
.tp-btn-push { display: none; flex: 1; }
.tv-push[data-step="1"] .tp-btn-back, .tv-push[data-step="4"] .tp-btn-next { display: none; }
.tv-push[data-step="4"] .tp-btn-push { display: grid; }
.tp-push-a, .tp-push-b { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 0.5em; }
.tp-push-b, .tv-push.is-pushing .tp-push-a { visibility: hidden; }
.tv-push.is-pushing .tp-push-b { visibility: visible; }
.tv-push.is-pushing .tp-btn-push { background: #2563c9; }
.tp-spin { width: 1em; height: 1em; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: tp-spin 0.7s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }

/* 5. Pushed! Each TV ticks "Received" as it confirms. */
.tp-done { position: absolute; inset: 4.3em 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1.2em 6em; background: var(--bg); text-align: center; opacity: 0; visibility: hidden; transform: scale(0.97); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s; }
.tv-push[data-step="5"] .tp-done { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.tv-push[data-step="5"].is-out .tp-done { opacity: 0; }
.tp-ok { display: grid; place-items: center; width: 3.3em; height: 3.3em; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 0.45em rgba(34, 197, 94, 0.14); }
.tp-ok .tp-svg { width: 1.6em; height: 1.6em; }
.tv-push[data-step="5"] .tp-ok { animation: tp-pop 0.55s var(--ease) 0.1s both; }
@keyframes tp-pop { from { transform: scale(0.3); opacity: 0; } }
.tp-done-h { margin-top: 0.75em; font-size: 1.3em; font-weight: 760; letter-spacing: -0.02em; }
.tp-done-sub { margin-top: 0.2em; font-size: 0.68em; color: var(--mute); }
.tp-rcv { align-self: stretch; margin-top: 1.3em; padding: 0.75em 0.85em 0.6em; border: 1px solid var(--edge); border-radius: 0.7em; background: var(--card); text-align: start; transition: border-color 0.4s; }
.tv-push.is-got .tp-rcv { border-color: rgba(34, 197, 94, 0.45); }
.tp-rcv-h { display: grid; margin-bottom: 0.35em; font-size: 0.7em; font-weight: 700; }
.tp-rcv-h > span { grid-area: 1 / 1; transition: opacity 0.3s; }
.tp-rcv-b, .tv-push.is-got .tp-rcv-a { opacity: 0; }
.tv-push.is-got .tp-rcv-a { transition: none; }
.tv-push.is-got .tp-rcv-b { opacity: 1; color: #4ade80; }
.tp-rcv-row { display: flex; align-items: center; gap: 0.55em; padding: 0.35em 0; font-size: 0.64em; }
.tp-rcv-row i { flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--ok); }
.tp-rcv-row span { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tp-rcv-row small { display: grid; flex: none; font-size: 0.92em; color: var(--mute); }
.tp-rcv-row .tp-got { display: none; color: #4ade80; font-weight: 650; }
.tp-rcv-row.got .tp-wait { display: none; }
.tp-rcv-row.got .tp-got { display: grid; animation: tp-pop 0.4s var(--ease); }
.tp-btn-done { margin-top: 1.3em; height: 2.5em; padding: 0 1.7em; border-radius: 0.55em; }

/* A finger tap, placed on whatever is tapped. */
.tp-tap { position: absolute; z-index: 7; left: 50%; top: 50%; width: 3.2em; height: 3.2em; margin: -1.6em 0 0 -1.6em; border-radius: 50%; background: rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); opacity: 0; pointer-events: none; }
.tp-tap.go { animation: tp-tap 0.6s var(--ease); }
@keyframes tp-tap { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.5); } }

/* The push on its way from the phone to the TVs. */
.tp-link { display: flex; gap: clamp(5px, 0.9cqw, 9px); }
.tp-link span { width: clamp(6px, 0.85cqw, 9px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.tv-push.is-pushing .tp-link span { animation: tp-link 0.9s ease-in-out infinite; }
.tv-push.is-pushing .tp-link span:nth-child(2) { animation-delay: 0.15s; }
.tv-push.is-pushing .tp-link span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tp-link { 50% { background: #5b9bff; box-shadow: 0 0 12px #2f7cf6; } }

/* The TVs: menus until the push lands, then the promo across all three (the TV wall's slicing maths). */
.tp-wall { --bezel: clamp(2px, 0.5cqw, 6px); --gap: clamp(6px, 1.4cqw, 16px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: clamp(10px, 2.2cqw, 24px) clamp(10px, 2.2cqw, 24px) clamp(8px, 1.6cqw, 18px); border-radius: clamp(12px, 2cqw, 22px); background: linear-gradient(180deg, #1b1d36, #0d0e21); border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9); }
.tp-wall .tv-screen { border-radius: clamp(4px, 0.7cqw, 8px); transition: box-shadow 0.4s; }
.tp-wall .pano-art { max-width: none; object-fit: cover; }
.tp-wall.pano-on .pano { opacity: 1; }
.tp-wall.pano-on .tv-screen > img { opacity: 0; }
.tp-wall.flick .tv-screen::after, .tp-wall .tv.got .tv-screen::after { animation: tv-flick 0.45s ease-out; }
.tp-wall.flick .tv:nth-child(2) .tv-screen::after { animation-delay: 0.07s; }
.tp-wall.flick .tv:nth-child(3) .tv-screen::after { animation-delay: 0.14s; }
.tp-wall:not(.pano-on) .tv.got .tv-screen { box-shadow: 0 0 0 2px #4ade80, 0 0 22px -4px #22c55e; }
.tp-wall .tv.got .tv-screen > img { animation: tp-flicker 0.55s linear; }
@keyframes tp-flicker { 0%, 30%, 60% { opacity: 0.35; filter: brightness(1.8); } 15%, 45%, 100% { opacity: 1; filter: none; } }
.tp-flag { position: absolute; z-index: 4; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 0.35em; padding: 0.35em 0.75em; border-radius: 999px; border: 1px solid rgba(74, 222, 128, 0.6); background: rgba(5, 22, 14, 0.86); color: #4ade80; font-size: clamp(8px, 1.25cqw, 12.5px); font-weight: 700; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) scale(0.7); pointer-events: none; }
.tp-wall .tv.got .tp-flag { animation: tp-flag 2s var(--ease) both; }
@keyframes tp-flag { 15%, 75% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
.tp-wall figcaption { display: flex; align-items: center; justify-content: center; gap: 0.45em; min-width: 0; margin-top: 0.7em; font-size: clamp(9.5px, 1.3cqw, 13px); font-weight: 600; line-height: 1.2; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.tp-wall figcaption i { flex: none; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.tv-push.tp-rewind *, .tv-push.tp-rewind *::before, .tv-push.tp-rewind *::after { transition: none !important; animation: none !important; }

/* Narrow: the copy, the phone, then the three TVs in a row under it. */
@media (max-width: 900px) {
  .tv-push { --tp-pw: min(250px, 74cqw); grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "copy" "phone" "tvs"; }
  .tp-phone { justify-self: center; margin-top: 28px; }
  .tp-tvs { flex-direction: column; margin: 14px 0 0; }
  .tp-tvs .tp-wall { align-self: stretch; }
  .tp-link { flex-direction: column; }
  .tp-wall figcaption { font-size: clamp(8px, 2.6cqw, 12px); }
  .tp-flag { font-size: clamp(7px, 2.3cqw, 11px); }
}
@media (max-width: 480px) {
  .tp-flag { gap: 0; padding: 0.3em 0.55em; }
  .tp-flag .tp-svg { display: none; }
}

/* ---- Phone line + CCTV -------------------------------------------------------------- */
.phone-line { padding: clamp(90px, 12vw, 150px) 0; }
.pl-grid, .cctv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.pl-points { margin-top: 30px; display: grid; gap: 18px; }
.pl-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--paper-muted); }
.pl-points .i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #e3e5f2; color: var(--violet); }
.pl-points strong { display: block; color: var(--paper-text); font-size: 17px; }
.pl-points.dark li { color: var(--muted); }
.pl-points.dark .i { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--cyan); }
.pl-points.dark strong { color: #fff; }
.pl-plan { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; width: fit-content; max-width: 100%; padding: 18px 22px; border-radius: 20px; background: #fff; border: 1px solid #e3e5f2; box-shadow: 0 30px 60px -45px rgba(13, 15, 36, 0.35); }
.pl-base { display: flex; align-items: baseline; gap: 8px; color: var(--paper-muted); font-weight: 600; }
.pl-base strong { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--paper-text); }
.pl-addons { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-addons li { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #f4f2ff; border: 1px solid #e2dcff; font-size: 14.5px; font-weight: 600; color: #2b2e4a; }
.pl-addons strong { color: var(--violet); }
.pl-vat { flex-basis: 100%; font-size: 13px; color: var(--paper-muted); }
.call-card { justify-self: center; width: min(400px, 100%); padding: 26px; border-radius: 28px; background: var(--ink); color: var(--text); box-shadow: 0 50px 90px -40px rgba(13, 15, 36, 0.7); }
.cc-ring { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(45, 212, 167, 0.14); color: var(--green); font-weight: 700; font-size: 13px; }
.cc-ring .i { animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.cc-name { margin-top: 18px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.cc-num { color: var(--muted); font-size: 14px; }
.cc-last { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.cc-last small { display: block; margin-bottom: 4px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cc-rec { margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 42, 166, 0.08); border: 1px solid rgba(255, 42, 166, 0.25); font-size: 13px; font-weight: 700; }
.cc-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff2a6d; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.cc-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.cc-wave { grid-column: 1 / -1; display: flex; align-items: center; gap: 3px; height: 26px; }
.cc-wave i { flex: 1; height: 30%; border-radius: 2px; background: linear-gradient(#ff2aa6, #7a5cff); animation: wave 1.1s ease-in-out infinite; }
.cc-wave i:nth-child(3n) { animation-delay: 0.2s; }
.cc-wave i:nth-child(3n + 1) { animation-delay: 0.45s; }
.cc-wave i:nth-child(4n) { animation-duration: 0.8s; }
@keyframes wave { 50% { height: 100%; } }
.cc-send { margin-top: 14px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--paper-text); font-weight: 800; }

.cctv { padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid var(--line); overflow: clip; }
.cctv-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.cctv-copy .section-title { font-size: clamp(2.4rem, 4.6vw, 4.1rem); }
.cctv-copy .pl-points { margin-top: 28px; gap: 16px; }
.cctv-copy .cctv-cta { margin-top: 30px; }
/* One column (tablets and phones): the title and intro, then the animation, then the points and the button, the
   same order as the kiosk and kitchen printer sections, so the animation isn't shown before what it's about. From
   1080px down the stage's column would be under 560px wide, where the animation switches to its tall phone layout
   (the container query below), so the section goes to one column there rather than at 900px. */
@media (max-width: 1080px) {
  .cctv-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .cctv-copy { display: contents; }
  .cctv-stage { order: 1; justify-self: center; width: min(100%, 760px); margin-top: 36px; }
  .cctv-copy .pl-points, .cctv-copy .cctv-cta { order: 2; }
  .cctv-copy .cctv-cta { justify-self: start; }
}
@media (max-width: 640px) {
  .cctv-copy .cctv-cta { justify-self: stretch; }
}

/* Till Watch: the till camera on a monitor, and a phone recreating the app (push notification, the Till Watch
   list, then the event's camera view). Sized in container units so it scales as one picture. The monitor and
   phone are screenshots, so they stay left to right; only their places swap in RTL. */
@property --tw-open { syntax: "<number>"; inherits: true; initial-value: 0; }
.cctv-stage { position: relative; container-type: inline-size; }
.tw-art { position: relative; aspect-ratio: 100 / 102; }
.tw-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tw-svg { width: 1em; height: 1em; flex: none; }

/* Monitor with the live till camera. */
.tw-monitor { position: absolute; inset-inline-start: 0; top: 0; width: 84cqw; padding: 1.3cqw; border-radius: clamp(14px, 3cqw, 22px); background: linear-gradient(180deg, #11132b, #07080f); border: 1px solid var(--line-2); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.tw-mon-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0.3cqw 0.5cqw 1.2cqw; font-size: clamp(9px, 1.75cqw, 12.5px); font-weight: 700; color: #dfe1ff; white-space: nowrap; }
.tw-mon-name { display: inline-flex; align-items: center; gap: 0.6em; }
.tw-mon-name .i { width: 1.35em; height: 1.35em; color: var(--cyan); }
.tw-mon-ai { display: inline-flex; align-items: center; gap: 0.55em; padding: 0.4em 0.85em; border-radius: 999px; background: rgba(45, 212, 167, 0.12); color: var(--green); }
.tw-mon-ai i { width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
[data-till="2"] .tw-c1, .tw-c2 { display: none; }
[data-till="2"] .tw-c2 { display: inline; }

/* A camera picture: slightly washed out, with scanlines, vignette and grain. */
.tw-feed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1b1d24; isolation: isolate; }
.tw-feed-main { border-radius: clamp(6px, 1.2cqw, 10px); transition: box-shadow 0.4s; }
.tw-scene { display: block; width: 100%; height: 100%; filter: saturate(0.72) contrast(1.1) brightness(0.97) sepia(0.06); }
/* In RTL the phone sits on the left, so the picture mirrors to keep the till clear of it. */
[dir="rtl"] .tw-scene { transform: scaleX(-1); }
.tw-feed::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 3px), radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.45)), linear-gradient(rgba(30, 70, 90, 0.08), rgba(30, 70, 90, 0.08)); }
.tw-feed::after { content: ""; position: absolute; inset: -40%; z-index: 1; pointer-events: none; opacity: 0.2; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tw-on .tw-feed::after { animation: tw-grain 0.6s steps(3) infinite; }
@keyframes tw-grain { 33% { transform: translate(-5%, 3%); } 66% { transform: translate(4%, -6%); } }
.tw-osd { position: absolute; z-index: 2; font: 600 clamp(7px, 1.45cqw, 11px)/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85); white-space: nowrap; }
.tw-time { top: 5%; left: 3%; font-variant-numeric: tabular-nums; }
.tw-live { top: 4.4%; right: 3%; padding: 0.3em 0.55em; border-radius: 0.35em; background: #e5243f; font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: 0.06em; text-shadow: none; }
.tw-name { bottom: 5%; right: 3%; }
.tw-feed-main { --f-arm: 4deg; transition: --tw-open 0.35s, box-shadow 0.4s; }
.s-live .tw-feed-main { --tw-open: 1; --f-arm: -58deg; box-shadow: 0 0 0 2px #ff3d71, 0 0 26px -4px #ff3d71; }
/* The AI's box around the till and drawer, with the event it saw. */
.tw-zone { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: var(--w); height: var(--h); color: #5ee7ff; border: 1.5px solid currentColor; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 14px -3px currentColor; opacity: 0.85; transition: color 0.3s, opacity 0.3s; }
[dir="rtl"] .tw-zone { left: auto; right: var(--x); }
.s-live .tw-zone { color: #ff3d71; animation: tw-lock 0.45s var(--ease); }
@keyframes tw-lock { from { transform: scale(1.25); opacity: 0.3; } }
.tw-tag { position: absolute; left: -1.5px; bottom: calc(100% + 3px); padding: 0.4em 0.6em; border-radius: 3px; background: currentColor; font: 700 clamp(7.5px, 1.45cqw, 11px)/1 "Inter", sans-serif; white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.tw-tag > span { display: none; color: #fff; }
.s-live .tw-tag { opacity: 1; }
[data-ev="1"] .tw-tag > [data-ev="1"], [data-ev="2"] .tw-tag > [data-ev="2"], [data-ev="3"] .tw-tag > [data-ev="3"], [data-ev="4"] .tw-tag > [data-ev="4"] { display: inline; }

/* Today's tally under the monitor, ticking up as each event happens. */
.tw-sum { position: absolute; inset-inline-start: 3cqw; top: 63cqw; width: 56cqw; padding: 2cqw 2.2cqw 2.2cqw; border-radius: clamp(12px, 2.6cqw, 18px); background: linear-gradient(180deg, rgba(26, 28, 56, 0.92), rgba(11, 12, 27, 0.94)); border: 1px solid var(--line-2); box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.9); font-size: clamp(8px, 1.6cqw, 12px); line-height: 1.3; color: #dfe1ff; }
.tw-sum-h { margin: 0 0 1em; font-weight: 700; }
.tw-sum-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7em; }
.tw-sum-i { display: grid; justify-items: start; gap: 0.4em; min-width: 0; padding: 0.8em; border-radius: 0.9em; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.tw-sum-i .tw-ic { width: 2.3em; height: 2.3em; }
.tw-sum-i .tw-svg { width: 1.15em; height: 1.15em; }
.tw-sum-i b { max-width: 100%; font-size: 1.55em; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; } /* longer currency formats (Arabic "UK£") wrap in the tile */
.tw-sum-i > span:last-child { max-width: 100%; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.tw-sum-i.bump { animation: tw-bump 0.9s var(--ease); }
@keyframes tw-bump { 25% { border-color: rgba(255, 61, 113, 0.85); box-shadow: 0 0 18px -4px #ff3d71; transform: translateY(-3px); } }

/* Phone. 1em on the screen is 15pt on a 390pt-wide phone. */
.tw-phone { --pw: 37; position: absolute; inset-inline-end: 0; top: 22cqw; z-index: 4; width: calc(var(--pw) * 1cqw); aspect-ratio: 9 / 19.2; padding: calc(var(--pw) * 0.03cqw); border-radius: calc(var(--pw) * 0.16cqw); background: linear-gradient(150deg, #3a3e5c, #12131f 40%, #0b0c16 70%, #2a2d45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 70px -25px rgba(0, 0, 0, 0.95), -20px 30px 60px -30px rgba(122, 92, 255, 0.45); }
.tw-screen { --bg: #0b0b0f; --card: #1c1c22; --mute: #8d8d99; --violet: #9b87ff; position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * 0.135cqw); background: var(--bg); color: #f2f2f5; font-family: "Inter", system-ui, sans-serif; font-size: calc(var(--pw) * 1cqw / 26); line-height: 1.3; letter-spacing: -0.01em; }
.tw-screen::before { content: ""; position: absolute; top: 1.15em; left: 50%; z-index: 9; width: 8.2em; height: 2.4em; border-radius: 999px; background: #000; transform: translateX(-50%); }
.tw-screen::after { content: ""; position: absolute; bottom: 0.55em; left: 50%; z-index: 9; width: 9em; height: 0.3em; border-radius: 999px; background: rgba(255, 255, 255, 0.7); transform: translateX(-50%); }
.tw-status { position: absolute; top: 0; inset-inline: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; height: 4.6em; padding: 0.4em 2.3em 0; font-size: 1em; font-weight: 650; }
.tw-sys { display: flex; align-items: center; gap: 0.45em; }
.tw-sig { display: flex; align-items: flex-end; gap: 0.12em; height: 0.75em; }
.tw-sig b { width: 0.2em; height: 40%; border-radius: 1px; background: currentColor; }
.tw-sig b:nth-child(2) { height: 60%; } .tw-sig b:nth-child(3) { height: 80%; } .tw-sig b:nth-child(4) { height: 100%; }
.tw-bat { position: relative; width: 1.65em; height: 0.8em; border-radius: 0.25em; border: 1px solid rgba(255, 255, 255, 0.45); }
.tw-bat::before { content: ""; position: absolute; inset: 1.5px; width: 70%; border-radius: 1px; background: currentColor; }

/* Lock screen and the push notification. */
.tw-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 6.2em; background: radial-gradient(80% 45% at 18% 12%, rgba(255, 42, 166, 0.55), transparent 70%), radial-gradient(90% 55% at 95% 78%, rgba(20, 180, 240, 0.45), transparent 70%), linear-gradient(170deg, #2d1f78, #0d0f2a 75%); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.tw-lock::before, .tw-lock::after { content: ""; position: absolute; bottom: 3.2em; width: 3.3em; height: 3.3em; border-radius: 50%; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); }
.tw-lock::before { left: 3em; }
.tw-lock::after { right: 3em; }
.tw-lock-date { font-size: 1.15em; font-weight: 600; opacity: 0.85; }
.tw-lock-time { font-size: 5.6em; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tw-note { position: absolute; inset-inline: 0.8em; top: 15.5em; display: flex; gap: 0.75em; padding: 0.85em 0.95em; border-radius: 1.45em; background: rgba(38, 36, 62, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; transform: translateY(3em) scale(0.92); transition: opacity 0.4s var(--ease), transform 0.65s var(--ease), visibility 0s 0.65s; }
.tw-note img { width: 2.5em; height: 2.5em; flex: none; border-radius: 0.6em; }
.tw-note-body { display: grid; gap: 0.12em; min-width: 0; flex: 1; font-size: 0.95em; }
.tw-note-head { display: flex; justify-content: space-between; gap: 0.5em; font-size: 0.85em; color: rgba(255, 255, 255, 0.6); }
.tw-note-head span:first-child { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.tw-note strong { font-weight: 650; }
.tw-note-body > span:last-child { color: rgba(255, 255, 255, 0.82); }
.s-note[data-ev="1"] .tw-note[data-ev="1"], .s-note[data-ev="2"] .tw-note[data-ev="2"], .s-note[data-ev="3"] .tw-note[data-ev="3"], .s-note[data-ev="4"] .tw-note[data-ev="4"] { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease), transform 0.65s var(--ease); }
.s-note .tw-phone { animation: tw-buzz 0.12s linear 4; }
@keyframes tw-buzz { 25% { transform: translateX(-2px) rotate(-1deg); } 75% { transform: translateX(2px) rotate(1deg); } }

/* The app: Till Watch list and camera view over a shared tab bar. */
.tw-app { position: absolute; inset: 0; background: var(--bg); opacity: 0; transform: scale(0.94); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); }
.s-app .tw-app { opacity: 1; transform: none; }
.s-app .tw-lock { opacity: 0; transform: scale(1.06); }
.tw-view { position: absolute; inset: 0 0 5.6em; display: flex; flex-direction: column; padding: 4.6em 1.05em 0; background: var(--bg); transition: transform 0.55s var(--ease); }
.tw-camview { transform: translateX(100%); box-shadow: -1em 0 2em rgba(0, 0, 0, 0.5); }
.s-cam .tw-camview { transform: none; }
.s-cam .tw-list { transform: translateX(-25%); }
.tw-top { display: flex; align-items: center; gap: 0.7em; padding: 0.35em 0 0.75em; }
.tw-top .tw-svg { width: 1.45em; height: 1.45em; }
.tw-top strong { font-size: 1.3em; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.tw-chips { display: flex; gap: 0.5em; padding-bottom: 0.5em; }
.tw-chips span { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.45em 0.6em 0.45em 0.8em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--card); font-size: 0.85em; font-weight: 550; white-space: nowrap; }
.tw-chips .tw-svg { color: var(--mute); }
.tw-scroll { display: flex; flex-direction: column; gap: 0.5em; overflow: hidden; flex: 1; }
.tw-day { margin: 0.6em 0 0.05em; font-size: 0.95em; font-weight: 700; color: #fff; }
.tw-row { display: flex; align-items: center; gap: 0.75em; padding: 0.75em 0.7em 0.75em 0.8em; border-radius: 1em; background: var(--card); transition: box-shadow 0.6s, background 0.6s; }
.tw-ic { display: grid; place-items: center; flex: none; width: 2.55em; height: 2.55em; border-radius: 50%; }
.tw-ic .tw-svg { width: 1.25em; height: 1.25em; }
.tw-paid { background: rgba(59, 130, 246, 0.18); color: #6aa8ff; }
.tw-nosale { background: rgba(168, 85, 247, 0.2); color: #c79bff; }
.tw-disc { background: rgba(245, 158, 11, 0.18); color: #fbbf3c; }
.tw-refund { background: rgba(244, 63, 94, 0.18); color: #ff7a93; }
.tw-z { background: rgba(255, 255, 255, 0.09); color: #a9a9b4; }
.tw-row-main { display: grid; flex: 1; min-width: 0; }
.tw-row-main strong { font-weight: 650; }
.tw-meta, .tw-reason { overflow: hidden; font-size: 0.82em; color: var(--mute); white-space: nowrap; text-overflow: ellipsis; }
.tw-row-side { display: grid; justify-items: end; gap: 0.2em; flex: none; }
.tw-row-side b { font-weight: 650; font-variant-numeric: tabular-nums; }
.tw-clip { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.75em; color: var(--mute); white-space: nowrap; }
.tw-clip::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: #34d399; }
.tw-chev { width: 1.05em; height: 1.05em; color: #5d5d68; }
/* The loop's events: hidden until they happen, the newest grows in at the top of Today. */
.tw-slot { display: grid; grid-template-rows: 0fr; margin-bottom: -0.5em; transition: grid-template-rows 0.55s var(--ease), margin 0.55s var(--ease); }
.tw-slot > div { overflow: hidden; min-height: 0; }
.tw-slot.is-past, .tw-slot.is-new.on { grid-template-rows: 1fr; margin-bottom: 0; }
.tw-slot.is-new.on .tw-row { background: #26263a; box-shadow: inset 0 0 0 1px rgba(155, 135, 255, 0.55); }

/* Camera view. */
.tw-feed-phone { margin-inline: -1.05em; }
.tw-feed-phone .tw-osd { font-size: 0.62em; }
.tw-ctrls { display: flex; justify-content: center; gap: 2.2em; padding: 1em 0 0.6em; }
.tw-ctrls span { display: grid; justify-items: center; gap: 0.4em; font-size: 0.75em; color: #d4d4dc; white-space: nowrap; }
.tw-ctrls i { display: grid; place-items: center; width: 3.6em; height: 3.6em; border-radius: 50%; background: var(--card); color: #fff; }
.tw-ctrls .tw-svg { width: 1.5em; height: 1.5em; }
.tw-h { margin: 0.9em 0 0.6em; font-size: 0.78em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.tw-act { display: none; align-items: center; gap: 0.7em; margin-bottom: 0.5em; padding: 0.75em 0.8em; border-radius: 1em; background: var(--card); }
[data-till="1"] .tw-act.tw-old.tw-c1, [data-till="2"] .tw-act.tw-old.tw-c2,
[data-ev="1"] .tw-act[data-ev="1"], [data-ev="2"] .tw-act[data-ev="2"], [data-ev="3"] .tw-act[data-ev="3"], [data-ev="4"] .tw-act[data-ev="4"] { display: flex; }
.tw-act .tw-ic { width: 2.3em; height: 2.3em; background: rgba(244, 63, 94, 0.16); color: #ff6b86; }
.tw-act-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.9em; font-weight: 600; color: #ff7d95; }
.tw-act-time { display: grid; justify-items: end; flex: none; font-size: 0.75em; color: var(--mute); white-space: nowrap; }
.tw-act-time b { font-weight: 600; color: #e6e6ec; font-variant-numeric: tabular-nums; }

.tw-tabs { position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: space-around; padding: 0.6em 0.4em 1.6em; border-top: 1px solid rgba(255, 255, 255, 0.07); background: #111116; }
.tw-tabs span { display: grid; justify-items: center; gap: 0.25em; min-width: 0; font-size: 0.7em; font-weight: 550; color: #9a9aa6; }
.tw-tabs i { display: grid; place-items: center; width: 3.9em; height: 2.2em; border-radius: 999px; }
.tw-tabs .tw-svg { width: 1.75em; height: 1.75em; }
.tw-tabs .on { color: var(--violet); }
.tw-tabs .on i { background: rgba(155, 135, 255, 0.2); }

/* A finger tap: on the notification, then on the new event. */
.tw-tap { position: absolute; z-index: 7; left: 50%; top: 18.4em; width: 3.4em; height: 3.4em; margin: -1.7em 0 0 -1.7em; border-radius: 50%; background: rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); opacity: 0; pointer-events: none; }
.s-tap .tw-tap { animation: tw-tap 0.6s var(--ease); }
.s-tap.s-app .tw-tap { top: 14.3em; left: 45%; }
@keyframes tw-tap { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.5); } }
.tw-rewind *, .tw-rewind *::before, .tw-rewind *::after { transition: none !important; animation: none !important; }

@container (max-width: 560px) {
  .tw-art { aspect-ratio: 100 / 180; }
  .tw-monitor { width: 100cqw; padding: 1.8cqw; }
  .tw-mon-bar { font-size: clamp(9px, 3.2cqw, 12.5px); }
  .tw-osd { font-size: clamp(6.5px, 2.3cqw, 10px); }
  .tw-phone { --pw: 62; top: 46cqw; inset-inline-end: 19cqw; }
  .tw-sum { display: none; }
}

/* ---- Menu design & print: copy beside a folded takeaway menu and two flyers ------------------------- */
.menu-print { padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid #e3e5f2; overflow: clip; }
.mp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.mp-copy .pl-points { margin-top: 28px; }
.mp-copy .mp-cta { margin-top: 32px; }
/* The illustration is a picture, sized in container units so it scales as one; it keeps its layout in RTL. */
.mpv { position: relative; container-type: inline-size; aspect-ratio: 1 / 0.86; direction: ltr; }
.mpv::before { content: ""; position: absolute; inset: 4% 2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 92, 255, 0.22), rgba(255, 42, 166, 0.08) 60%, transparent 76%); }
.mpv-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mpv p, .mpv li { unicode-bidi: plaintext; }
.mpv-flyer { position: absolute; width: 34cqw; aspect-ratio: 1 / 1.41; padding: 3.2cqw; border-radius: 1.2cqw; box-shadow: 0 2cqw 5cqw -1.5cqw rgba(13, 15, 36, 0.45); }
.mpv-flyer-a { left: 7cqw; top: 1cqw; rotate: -9deg; color: #fff; background: radial-gradient(90% 60% at 80% 10%, rgba(255, 209, 102, 0.35), transparent 70%), linear-gradient(160deg, #2a1067 0%, #c8336f 62%, #ff8a3d 100%); }
.mpv-flyer-b { right: 6cqw; top: 3cqw; rotate: 8deg; color: #14162e; background: #fff8ec; }
.mpv-kicker { font-size: 2.2cqw; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #ffd166; }
.mpv-flyer-b .mpv-kicker { color: #c8336f; }
.mpv-big { margin-top: 1.4cqw; font-size: 5.6cqw; font-weight: 900; line-height: 0.98; letter-spacing: -0.04em; }
/* Flyer headlines run longer in translation ("Jetzt mit Lieferservice"): smaller type keeps whole words on the flyer. */
html:not(:lang(en)) .mpv-big { font-size: 3.7cqw; letter-spacing: -0.03em; }
.mpv-deal { display: inline-block; margin-top: 2cqw; padding: 0.5cqw 2.2cqw; border-radius: 999px; background: #fff; color: #c8336f; font-size: 4.6cqw; font-weight: 900; }
.mpv-flyer-b .mpv-qr { margin-top: 2cqw; width: 11cqw; padding: 0; }
.mpv-menu { position: absolute; left: 4cqw; right: 4cqw; bottom: 3cqw; height: 50cqw; display: flex; perspective: 160cqw; filter: drop-shadow(0 3cqw 3cqw rgba(13, 15, 36, 0.3)); }
.mpv-panel { position: relative; flex: 1; min-width: 0; padding: 3.2cqw 2.6cqw; background: #fff8ec; color: #14162e; overflow: hidden; }
.mpv-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.mpv-panel:nth-child(1) { transform-origin: right center; transform: rotateY(22deg); border-radius: 1cqw 0 0 1cqw; }
.mpv-panel:nth-child(1)::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent 40%, rgba(20, 22, 46, 0.16)); }
.mpv-panel:nth-child(2)::after { background: linear-gradient(90deg, rgba(20, 22, 46, 0.1), transparent 14%, transparent 86%, rgba(20, 22, 46, 0.1)); }
.mpv-panel:nth-child(3) { transform-origin: left center; transform: rotateY(-22deg); border-radius: 0 1cqw 1cqw 0; }
.mpv-panel:nth-child(3)::after { background: linear-gradient(270deg, rgba(255, 255, 255, 0.12), transparent 40%, rgba(0, 0, 0, 0.25)); }
.mpv-h { display: inline-block; padding: 0.5cqw 1.6cqw; border-radius: 0.6cqw; background: #14162e; color: #ffd166; font-size: 2.5cqw; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.mpv-items { margin-top: 2.4cqw; display: grid; gap: 2cqw; }
.mpv-items li { display: flex; align-items: center; gap: 1.2cqw; }
.mpv-items i { flex: 1; height: 1.15cqw; border-radius: 1cqw; background: linear-gradient(90deg, #cfc6b4 var(--w, 72%), transparent var(--w, 72%)); }
.mpv-items li:nth-child(2n) i { --w: 88%; }
.mpv-items li:nth-child(3n) i { --w: 60%; }
.mpv-items b { font-size: 2cqw; font-weight: 800; color: #c8336f; font-variant-numeric: tabular-nums; }
.mpv-meal { margin-top: 3cqw; display: flex; justify-content: space-between; align-items: center; gap: 1cqw; padding: 1.3cqw 1.6cqw; border-radius: 1cqw; background: #c8336f; color: #fff; font-size: 2cqw; font-weight: 800; }
/* Translated labels can be long ("Måltidserbjudande"): the label wraps, the price never does. */
.mpv-meal span { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.mpv-meal b { flex: none; white-space: nowrap; }
.mpv-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw; text-align: center; color: #fff; background: radial-gradient(80% 50% at 50% 0%, rgba(255, 42, 166, 0.35), transparent 70%), linear-gradient(170deg, #14162e, #2a1067); }
.mpv-brand { font-size: 4.6cqw; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: #ffd166; }
.mpv-sub { font-size: 1.7cqw; font-weight: 600; opacity: 0.8; }
.mpv-qr { display: block; width: 14cqw; padding: 1cqw; border-radius: 1cqw; background: #fff; }
.mpv-qr svg { width: 100%; height: auto; fill: #14162e; }
.mpv-scan { font-size: 1.7cqw; font-weight: 700; }
@media (max-width: 900px) {
  .mp-grid { grid-template-columns: minmax(0, 1fr); }
  .mpv { justify-self: center; width: min(100%, 560px); } /* tablets: the same size as the kiosk and printer stages */
}

/* Print price estimator (initPrintEstimator in site.js): the choices beside a dark result panel. data-state is
   "none" (no prices, or no scripts: only the call-us line), "loading" or "ready". */
.mpe { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid #e3e5f2; box-shadow: 0 40px 80px -56px rgba(13, 15, 36, 0.45); }
.mpe > :is(.mpe-inputs, .mpe-result, .mpe-loading, .mpe-none) { display: none; }
.mpe[data-state="ready"] > :is(.mpe-inputs, .mpe-result) { display: flex; }
.mpe[data-state="loading"] > .mpe-loading { display: block; }
.mpe[data-state="none"] > .mpe-none { display: flex; }
.mpe:not([data-state="ready"]) { width: fit-content; max-width: 100%; grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
.mpe-loading, .mpe-none { padding: 22px clamp(20px, 3vw, 32px); color: var(--paper-muted); font-weight: 600; }
.mpe-none { align-items: center; gap: 12px; color: var(--paper-text); }
.mpe-none .i { width: 22px; height: 22px; color: var(--violet); }
.mpe-none a { color: var(--violet); font-weight: 750; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

.mpe-inputs { flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 40px); }
.mpe-title { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.mpe-intro { margin-top: 6px; color: var(--paper-muted); font-size: 15px; line-height: 1.5; }
.mpe-label { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--paper-text); }
.mpe button { cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
/* Product type: three equal tabs; long words wrap inside a tab rather than pushing the card wider. */
.mpe-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: #eef0f7; }
.mpe-tabs button { min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: #4a4e6b; font-size: 14px; font-weight: 650; line-height: 1.25; }
.mpe-tabs button:hover { color: var(--paper-text); }
.mpe-tabs button[aria-pressed="true"] { background: #fff; color: var(--paper-text); box-shadow: 0 4px 12px -6px rgba(13, 15, 36, 0.35); }
.mpe-products { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.mpe-prod { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 14px; border-radius: 12px; border: 1px solid #dfe1ee; background: #fff; text-align: start; }
.mpe-prod:hover { border-color: #b9b0f5; }
.mpe-prod[aria-pressed="true"] { border-color: var(--violet); background: #f4f1ff; box-shadow: inset 0 0 0 1px var(--violet); }
.mpe-prod-name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--paper-text); }
/* Size and paper: side by side with a hairline between when they fit, otherwise a line each. */
.mpe-prod-spec { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12.5px; line-height: 1.4; color: var(--paper-muted); }
.mpe-prod-spec bdi + bdi { padding-inline-start: 8px; border-inline-start: 1px solid #d5d8e6; }
.mpe-prod-spec:empty { display: none; }
.mpe-qty { display: flex; flex-wrap: wrap; gap: 6px; }
.mpe-qty button { min-width: 56px; height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid #dfe1ee; background: #fff; color: #2b2e4a; font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mpe-qty button:hover { border-color: #b9b0f5; }
.mpe-qty button[aria-pressed="true"] { background: var(--paper-text); border-color: var(--paper-text); color: #fff; }
.mpe-qty button[data-custom] { border-style: dashed; } /* a number of copies the visitor typed */
/* The quantities past the first few are behind "Show more quantities", as on instantprint's pages. */
.mpe-toggle { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--violet); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* Any other number of copies, priced live. */
.mpe-custom { margin-top: 16px; display: grid; gap: 8px; }
.mpe-custom label { font-size: 14px; font-weight: 650; color: var(--paper-text); }
.mpe-custom-row { display: flex; gap: 8px; }
.mpe-custom input { flex: 1 1 auto; width: 10rem; min-width: 0; height: 40px; padding-inline: 12px; border-radius: 12px; border: 1px solid #dfe1ee; background: #fff; color: var(--paper-text); font: inherit; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mpe-custom input:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-color: var(--violet); }
.mpe-custom button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--paper-text); background: var(--paper-text); color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.mpe-custom button:disabled { opacity: 0.55; cursor: progress; }
.mpe-custom-msg { color: var(--paper-muted); font-size: 13.5px; line-height: 1.45; }
.mpe-custom-msg:empty { display: none; }
.mpe-custom-msg.err { color: #c2264b; }
/* "Need more than 15,000? Call us": under the quantities, for products with no custom amounts. */
.mpe-more { color: var(--paper-muted); font-size: 14px; line-height: 1.5; }
.mpe-more { margin-top: 10px; }
.mpe-more a { color: var(--violet); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.mpe-more span { font-variant-numeric: tabular-nums; }

.mpe-result { flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(24px, 3vw, 40px); color: #fff; background: radial-gradient(90% 60% at 100% 0%, rgba(255, 42, 166, 0.28), transparent 70%), radial-gradient(70% 50% at 0% 100%, rgba(20, 180, 240, 0.18), transparent 70%), linear-gradient(170deg, #14162e, #2a1067); }
.mpe-kicker { font-size: 14px; font-weight: 650; color: #c9ccff; }
.mpe-figure { margin-top: 4px; }
.mpe-price { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mpe-each { margin-top: 6px; font-size: 17px; font-weight: 700; color: #ffd166; }
.mpe-sum { color: #dfe1ff; font-size: 15px; line-height: 1.45; }
.mpe-days { color: #ffd166; font-size: 14px; font-weight: 650; line-height: 1.45; } /* slower delivery for big runs */
.mpe-design { display: inline-flex; margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 14px; font-weight: 650; }
.mpe-add { margin-top: 20px; }
.mpe-note { margin-top: auto; padding-top: 18px; color: #a4a8c6; font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) {
  .mpe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .mpe { border-radius: 22px; }
  .mpe-add { align-self: stretch; }
}

/* ---- Menu design & self-checkout ------------------------------------------------------ */

/* ---- Self-checkout kiosk: copy beside a turntable of the kiosk (initKiosk in site.js) --------------- */
/* Desktop: the copy in one column, the stage beside it. Narrow screens: title, kiosk, benefits, price. */
.kiosk { padding: clamp(90px, 12vw, 150px) 0; overflow: clip; }
.ksk-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-rows: auto auto 1fr;
  grid-template-areas: "head stage" "points stage" "buy stage"; column-gap: clamp(32px, 6vw, 90px);
}
.ksk-head { grid-area: head; }
.ksk-head .section-title { font-size: clamp(2.3rem, 4.3vw, 3.75rem); }
.ksk-head .lede { margin-top: 18px; }
.ksk-points { grid-area: points; }
.ksk-buy { grid-area: buy; align-self: start; margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.ksk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--paper-muted); font-weight: 600; }
.ksk-price strong { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--paper-text); }
.ksk-stage {
  grid-area: stage; align-self: center; position: relative; aspect-ratio: 5 / 6; border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid #e3e5f2; box-shadow: 0 50px 90px -60px rgba(13, 15, 36, 0.45);
  background:
    radial-gradient(48% 40% at 50% 40%, rgba(122, 92, 255, 0.2), transparent 72%),
    radial-gradient(70% 45% at 50% 100%, rgba(255, 42, 166, 0.09), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #eeedfa 100%);
}
/* The poster is framed to match the live model (fit 0.94 in a 5:6 stage), so nothing jumps when it fades in. */
.ksk-poster { position: absolute; inset-block-start: 5.1%; inset-inline-start: 0; width: 100%; height: 89.1%; object-fit: contain; transition: opacity 0.5s; }
.ksk-model { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; }
.ksk-model canvas { display: block; }
.ksk-stage.live .ksk-model { opacity: 1; }
.ksk-stage.live .ksk-poster { opacity: 0; }
/* Two floating notes: an upsell prompt and an order on its way to the kitchen. */
.ksk-note {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: min(62%, 250px);
  padding-block: 9px; padding-inline: 9px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.9); border: 1px solid #e3e5f2;
  box-shadow: 0 24px 40px -24px rgba(13, 15, 36, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; line-height: 1.3; color: var(--paper-text); animation: ksk-float 6s ease-in-out infinite;
}
.ksk-note strong { display: block; font-weight: 700; }
.ksk-note small { display: block; margin-top: 1px; color: var(--paper-muted); font-size: 12.5px; }
.ksk-note .i { width: 36px; height: 36px; padding: 9px; border-radius: 11px; }
.ksk-upsell { inset-block-start: 6%; inset-inline-end: 5%; }
.ksk-upsell .i { background: #f1eeff; color: var(--violet); }
.ksk-sent { inset-block-end: 7%; inset-inline-start: 5%; animation-delay: -3s; }
.ksk-sent .i { background: rgba(45, 212, 167, 0.16); color: #0c9a76; }
@keyframes ksk-float { 50% { translate: 0 -7px; } }
@media (max-width: 900px) {
  .ksk-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "stage" "points" "buy"; }
  .ksk-stage { justify-self: center; width: min(100%, 520px); margin-top: 36px; }
}
/* Phones: a taller stage leaves room above and below the kiosk for the notes (the poster moves to match). */
@media (max-width: 640px) {
  .ksk-stage { aspect-ratio: 3 / 4; }
  .ksk-poster { inset-block-start: 9.4%; height: 80.5%; }
  .ksk-upsell { inset-block-start: 3%; }
  .ksk-sent { inset-block-end: 3%; }
  .ksk-note { font-size: 12.5px; gap: 8px; padding-inline: 7px 11px; }
  .ksk-note small { font-size: 11.5px; }
  .ksk-note .i { width: 30px; height: 30px; padding: 7px; border-radius: 9px; }
  .ksk-buy .btn { width: 100%; }
}
/* Narrow phones: the notes may use more of the stage, so "Sent to the till and kitchen" stays on one line. */
@media (max-width: 480px) {
  .ksk-note { max-width: min(80%, 250px); }
}

/* ---- Kitchen printers ------------------------------------------------------------------ */
/* Dark, between the light card machine and kiosk sections. The stage is drawn in CSS: an order whose lines are
   tagged by station, wireless links fanning out to three printers, and each printer's ticket with only its own
   items. Its resting state is the finished one (every ticket printed); the animation (.play, from initPrinters)
   runs only for visitors who allow motion. */
.kprint { padding: clamp(90px, 12vw, 150px) 0; overflow: clip; }
.kp-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-rows: auto auto 1fr;
  grid-template-areas: "stage head" "stage points" "stage buy"; column-gap: clamp(32px, 6vw, 90px);
}
.kp-head { grid-area: head; }
.kp-head .section-title { font-size: clamp(2.3rem, 4.3vw, 3.75rem); }
.kp-head .lede { margin-top: 18px; }
.kp-points { grid-area: points; }
.kp-buy { grid-area: buy; align-self: start; margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.kp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--muted); font-weight: 600; }
.kp-price strong { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: #fff; }
.kp-stage {
  grid-area: stage; align-self: center; position: relative; border-radius: 28px; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 4vw, 40px) clamp(10px, 2.6vw, 30px) clamp(26px, 4vw, 42px); border: 1px solid var(--line);
  background:
    radial-gradient(55% 40% at 50% 18%, rgba(122, 92, 255, 0.28), transparent 72%),
    radial-gradient(70% 40% at 50% 100%, rgba(20, 180, 240, 0.12), transparent 70%),
    linear-gradient(180deg, #14163a 0%, #0c0d24 100%);
}
.kp-art { font-size: 15px; line-height: 1.35; }
/* Each station's colour, used by its tag, link, printer and ticket. */
.kp-pizza { --c: #ff5cbc; }
.kp-grill { --c: #b296ff; }
.kp-bar { --c: #3cc6f6; }

.kp-order {
  width: min(100%, 300px); margin-inline: auto; padding: 14px 16px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.kp-order-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kp-order-h b { font-weight: 750; color: #fff; }
.kp-new { padding: 2px 9px; border-radius: 999px; background: rgba(45, 212, 167, 0.16); color: var(--green); font-size: 12px; font-weight: 700; }
.kp-lines { display: grid; gap: 8px; padding-block: 11px; }
.kp-lines li { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #e6e7f5; }
.kp-tag {
  flex: none; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.kp-sent { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--green); font-size: 13px; font-weight: 600; }
.kp-sent .i { width: 16px; height: 16px; }

/* The links scale with the stage, so their ends stay over the printers' columns (at 1/6, 1/2 and 5/6). */
.kp-links { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.kp-links path { fill: none; stroke: var(--c); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 0.1 3.2; opacity: 0.5; }
.kp-links .kp-pulse { stroke-width: 2.6; stroke-dasharray: 16 200; stroke-dashoffset: 16; opacity: 0; filter: drop-shadow(0 0 3px var(--c)); }

.kp-printers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kp-printer { display: flex; flex-direction: column; align-items: center; min-width: 0; padding-inline: clamp(4px, 1.2vw, 12px); }
.kp-wifi { width: 22px; height: 22px; margin-block: 2px 8px; color: var(--c); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.kp-body {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; max-width: 144px; height: 56px;
  padding-bottom: 8px; border-radius: 13px 13px 9px 9px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #3d4060 0%, #2a2c45 55%, #1d1f33 100%);
  box-shadow: inset 0 3px 0 var(--c), 0 18px 30px -16px rgba(0, 0, 0, 0.8);
}
.kp-body::after { content: ""; position: absolute; inset-inline: 12%; bottom: 6px; height: 3px; border-radius: 3px; background: #07080f; } /* the paper slot */
.kp-led { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.kp-name { font-size: 13.5px; font-weight: 750; color: #fff; }
/* The ticket comes out of the slot: the paper's box clips it while it prints. */
.kp-paper { width: 88%; max-width: 126px; margin-top: -9px; padding: 0 3px 4px; overflow: hidden; }
.kp-ticket {
  display: grid; gap: 4px; padding: 14px 9px 15px; background: #fbfaf5; color: #15161f; font-size: 12.5px; line-height: 1.3; font-weight: 600;
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.7);
  /* A torn, zigzag bottom edge. */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat, conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 5px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat, conic-gradient(from -45deg at 50% 100%, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 5px repeat-x;
}
.kp-ticket b { padding-bottom: 5px; border-bottom: 1px dashed #b9bacb; font-size: 13.5px; font-weight: 800; }

@media (max-width: 900px) {
  .kp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "stage" "points" "buy"; }
  .kp-stage { justify-self: center; width: min(100%, 560px); margin-top: 36px; }
}
@media (max-width: 640px) {
  .kp-art { font-size: 14px; }
  .kp-name { font-size: 12px; }
  .kp-body { height: 50px; gap: 5px; }
  .kp-led { width: 6px; height: 6px; }
  .kp-paper { width: 92%; }
  .kp-ticket { padding-inline: 7px; font-size: 11.5px; }
  .kp-ticket b { font-size: 12.5px; }
  .kp-buy .btn { width: 100%; }
}

/* The loop (10s): the order comes in line by line, a pulse runs down each link, then each printer prints its
   ticket (the stations a moment apart), everything holds, and fades out to start again. */
@media (prefers-reduced-motion: no-preference) {
  .kp-stage.play .kp-order { animation: kp-order 10s infinite both; }
  .kp-stage.play .kp-lines li { animation: kp-line 10s calc(var(--s) * 0.3s) infinite both; }
  .kp-stage.play .kp-sent { animation: kp-sent 10s infinite both; }
  .kp-stage.play .kp-pulse { animation: kp-pulse 10s calc(var(--s) * 0.25s) infinite both; }
  .kp-stage.play .kp-wifi { animation: kp-wifi 10s calc(var(--s) * 0.25s) infinite both; }
  .kp-stage.play .kp-led { animation: kp-led 10s calc(var(--s) * 0.25s) infinite both; }
  .kp-stage.play .kp-ticket { animation: kp-print 10s calc(var(--s) * 0.25s) infinite both; }
}
@keyframes kp-order {
  0% { opacity: 0; translate: 0 -10px; }
  5%, 90% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
@keyframes kp-line {
  0%, 5% { opacity: 0; translate: -8px 0; }
  10%, 90% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
@keyframes kp-sent {
  0%, 42% { opacity: 0; }
  46%, 90% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes kp-pulse {
  0%, 20% { opacity: 0; stroke-dashoffset: 16; }
  21% { opacity: 1; stroke-dashoffset: 16; }
  31% { opacity: 1; stroke-dashoffset: -100; }
  32%, 100% { opacity: 0; stroke-dashoffset: -100; }
}
@keyframes kp-wifi {
  0%, 30% { opacity: 0.4; scale: 1; }
  33% { opacity: 1; scale: 1.18; }
  38%, 100% { opacity: 1; scale: 1; }
}
@keyframes kp-led {
  0%, 31% { opacity: 0.35; }
  33%, 37%, 41% { opacity: 1; }
  35%, 39% { opacity: 0.35; }
  43%, 100% { opacity: 1; }
}
/* The paper feeds out in steps, like a thermal printer. */
@keyframes kp-print {
  0%, 32% { translate: 0 -102%; opacity: 1; animation-timing-function: steps(7, end); }
  42%, 90% { translate: 0 0; opacity: 1; }
  97%, 100% { translate: 0 0; opacity: 0; }
}

/* ---- Build your own package ----------------------------------------------------------- */
/* Light, like the plans above it: a white question card with pale tiles, and a picked answer gets a violet edge, a
   soft violet ring and a tick. Only the package so far (and its totals, wherever they show) is dark, cut from the
   same cloth as the TV management card: navy, a violet edge, a pink glow top left and a cyan one bottom right.
   (No isolation or transform on .builder: the dock inside is position: fixed and must stack above the page.) */
.builder {
  --b-line: #e3e5f2;
  --b-tile: #fafbff;
  --b-well: #f4f5fb; /* follow-up panels */
  --b-pick: #f5f3ff;
  --b-pick-edge: var(--violet);
  --b-hover-edge: #c9bdff;
  --b-ring: 0 0 0 4px rgba(122, 92, 255, 0.14);
  --b-edge: rgba(162, 76, 255, 0.35);
  /* The dark totals boxes: the TV management card's glows over navy, with a gradient edge. */
  --b-dark-box: radial-gradient(420px 220px at 0% 0%, rgba(255, 42, 166, 0.18), transparent 70%) padding-box, radial-gradient(380px 220px at 100% 100%, rgba(20, 180, 240, 0.15), transparent 70%) padding-box, linear-gradient(var(--ink-2), var(--ink-2)) padding-box, linear-gradient(95deg, rgba(255, 42, 166, 0.75), rgba(162, 76, 255, 0.6) 45%, rgba(20, 180, 240, 0.65)) border-box;
  margin-top: clamp(70px, 9vw, 110px);
}
.builder-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.builder-head .section-title { margin-top: 0; }
/* Focus rings: violet reads on the light cards (5:1 on white), where the site's cyan is too faint. */
.builder :focus-visible { outline-color: var(--cta); }

/* ---- Package builder: one question at a time ------------------------------------------------- */
.wizard { margin-top: clamp(28px, 3.4vw, 40px); padding: clamp(20px, 3vw, 36px); border-radius: 22px; background: #fff; border: 1px solid var(--b-line); box-shadow: 0 30px 60px -45px rgba(13, 15, 36, 0.35); }
.wz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.wz-count { font-size: 13px; font-weight: 700; color: var(--paper-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wz-progress { flex: 1; height: 6px; border-radius: 999px; background: #eceef5; overflow: hidden; }
.wz-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 0.45s var(--ease); }
.wz-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wz-step legend { padding: 0; margin-bottom: 20px; color: var(--paper-text); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1.15; outline: none; }
.wz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.wz-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--b-line); background: var(--b-tile); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease), background 0.2s; }
.wz-opt:hover { border-color: var(--b-hover-edge); background: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(13, 15, 36, 0.35); }
.wz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wz-opt:has(input:focus-visible) { outline: 2px solid var(--cta); outline-offset: 3px; }
.wz-opt.sel { border-color: var(--b-pick-edge); background: var(--b-pick); box-shadow: var(--b-ring); }
.wz-opt.sel::after { content: ""; position: absolute; top: 14px; inset-inline-end: 14px; width: 24px; height: 24px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat, var(--cta); }
.wz-opt .svc-ic { margin-bottom: 6px; }
.wz-opt strong { color: var(--paper-text); font-size: 17px; letter-spacing: -0.01em; }
.wz-opt small, .wz-item small { display: block; color: var(--paper-muted); font-size: 14px; line-height: 1.4; font-weight: 500; }
.wz-price { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--paper-text); }
.wz-item .wz-price { display: block; margin-top: 2px; padding-top: 0; }
.wz-extra { display: grid; gap: 14px; margin-top: 14px; padding: 18px 20px; border-radius: 16px; background: var(--b-well); }
.wz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.wz-row > span, .wz-sub { color: var(--paper-text); font-weight: 650; }
.wz-item strong { display: block; }
.wz-note { display: flex; align-items: flex-start; gap: 10px; color: var(--paper-muted); font-size: 14px; line-height: 1.5; }
.wz-note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--violet); }
.wz-step > .wz-note { margin-top: 16px; padding-inline: 4px; }
/* Phone line minutes: small cards in a row. */
.wz-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wz-chip { position: relative; display: block; cursor: pointer; }
.wz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wz-chip > span { display: grid; align-content: start; gap: 2px; height: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--b-line); background: #fff; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.wz-chip:hover > span { border-color: var(--b-hover-edge); }
.wz-chip strong { color: var(--paper-text); font-size: 15px; letter-spacing: -0.01em; line-height: 1.35; }
.wz-chip em { font-style: normal; font-size: 13.5px; font-weight: 650; color: var(--paper-muted); }
.wz-chip input:checked + span { border-color: var(--b-pick-edge); background: var(--b-pick); box-shadow: var(--b-ring); }
.wz-chip input:checked + span em { color: var(--cta); }
.wz-chip input:focus-visible + span { outline: 2px solid var(--cta); outline-offset: 2px; }
.b-qty { display: flex; align-items: center; gap: 6px; }
.b-qty button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #d8dbe8; background: #fff; color: var(--paper-text); display: grid; place-items: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.b-qty button:not(:disabled):hover { border-color: var(--violet); background: var(--b-pick); }
.b-qty button:disabled { opacity: 0.4; cursor: default; }
.b-qty output { min-width: 2ch; color: var(--paper-text); text-align: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.wz-nav { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--b-line); }
.wz-nav [data-wz="next"], .wz-nav [data-wz="summary"] { margin-inline-start: auto; }
/* Disabled: the violet button faded, so it can't be mistaken for Back. */
.wizard .btn-primary:disabled { background: #c4b8ff; border-color: transparent; color: #fff; box-shadow: none; cursor: not-allowed; }
.wizard .btn-primary:disabled .i { transform: none; }
.wz-back, .wz-restart { background: #eceef6; color: var(--paper-text); }
.wz-back:hover, .wz-restart:hover { background: #e1e4f0; }

/* Totals: "Pay upfront" and "Then each month", big, in a dark box. Used on the summary and in the package panel. */
.b-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; container-type: inline-size; }
.b-totals > div { display: grid; align-content: start; gap: 4px; min-width: 0; }
.b-totals dt { color: var(--muted); font-size: 14.5px; font-weight: 650; }
.b-totals dd { display: grid; gap: 6px; margin: 0; }
/* Sized to the box, so a long total still fits its half: about 10 characters. */
.b-totals b { color: #fff; font-size: clamp(1.35rem, 7.5cqi, 3.1rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.b-totals small { color: var(--muted); font-size: 13.5px; font-weight: 550; line-height: 1.4; }
.b-totals small[data-total-note="deposit"] { color: #7ee8c8; }

/* Summary step: every line can be changed in place. */
.b-intro { margin: -6px 0 18px; color: var(--paper-muted); font-size: 15.5px; }
.b-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 20px; border-top: 1px solid var(--b-line); }
.b-line { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; row-gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--b-line); }
@supports not (grid-template-columns: subgrid) {
  .b-line { grid-template-columns: minmax(0, 1fr) 8rem 8rem 8.5rem; column-gap: 20px; }
}
.b-line-name { grid-column: 1; grid-row: 1; display: grid; gap: 2px; min-width: 0; }
.b-line-name strong { color: var(--paper-text); font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; }
.b-line-name small { color: var(--paper-muted); font-size: 13.5px; font-weight: 500; }
.b-line .b-qty, .b-qty-n { grid-column: 2; grid-row: 1; }
.b-line .b-qty button { width: 34px; height: 34px; }
.b-qty-n { justify-self: center; color: var(--paper-muted); font-size: 15px; font-weight: 700; }
.b-line-amount { grid-column: 3; grid-row: 1; justify-self: end; text-align: end; color: var(--paper-text); font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-line.is-refund .b-line-amount { color: #047857; }
.b-acts { grid-column: 4; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 4px; }
.b-act { height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--cta); font-size: 14.5px; font-weight: 650; cursor: pointer; transition: background 0.2s, color 0.2s; }
.b-act:hover { background: var(--b-pick); }
.b-del { display: grid; place-items: center; width: 36px; padding: 0; color: var(--paper-muted); }
.b-del:hover { background: #fef2f2; color: #dc2626; }
.b-del .i { width: 18px; height: 18px; }
.b-acts:not(:has(.b-del))::after { content: ""; flex: none; width: 36px; } /* keeps "Edit" in line on lines that can't be removed */
.b-empty { padding: 20px 0; color: var(--paper-muted); }
/* The totals boxes are small TV management cards: navy, pink and cyan glows, a gradient edge, big white figures. */
.wz-summary .b-totals, .b-panel .b-totals { border: 1px solid transparent; background: var(--b-dark-box); color: var(--text); }
.wz-summary .b-totals { margin-top: 22px; padding: 24px 26px; gap: 20px 28px; border-radius: 20px; box-shadow: 0 30px 60px -40px rgba(13, 15, 36, 0.6); }
.wz-summary .b-totals > div + div { padding-inline-start: 28px; border-inline-start: 1px solid var(--line-2); }
.wz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.wizard .b-vat { margin-top: 16px; color: var(--paper-muted); font-size: 13px; }

/* The package so far, under the card: the TV management card's navy, violet edge and pink and cyan glows. */
.b-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 18px clamp(28px, 4vw, 56px); margin-top: 16px; padding: clamp(22px, 3.2vw, 36px); border-radius: 22px; border: 1px solid var(--b-edge); background: radial-gradient(80% 120% at 0% 0%, rgba(255, 42, 166, 0.16), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(20, 180, 240, 0.14), transparent 60%), var(--ink-2); color: var(--text); color-scheme: dark; box-shadow: 0 40px 80px -45px rgba(13, 15, 36, 0.6); }
.b-panel::before { content: ""; position: absolute; z-index: -1; inset-block-start: -55%; inset-inline-end: -12%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 92, 255, 0.24), transparent 70%); pointer-events: none; }
.b-panel-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.b-panel-head h3 { color: #fff; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; outline: none; }
.b-panel-type { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--b-edge); background: rgba(122, 92, 255, 0.14); color: #dfe1ff; font-size: 13px; font-weight: 650; }
.b-panel .b-totals { grid-column: 2; grid-row: 2 / span 2; gap: 20px; padding: 22px 24px; border-radius: 20px; }
.b-plines, .b-panel-empty { grid-column: 1; grid-row: 2; }
.b-plines { display: grid; }
.b-pl { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.b-pl:first-child { padding-top: 2px; }
.b-pl > span { display: grid; min-width: 0; }
.b-pl small { color: var(--muted); font-size: 13px; }
.b-pl b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-pl.is-refund b { color: #7ee8c8; }
.b-panel-empty { color: var(--muted); }
.b-panel-vat { grid-column: 1; grid-row: 3; color: var(--muted); font-size: 13px; } /* --dim is under 4.5:1 here */

/* The running total that floats at the bottom of the screen. */
.b-dock { position: fixed; z-index: 45; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 600px; margin-inline: auto; display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); padding-block: 10px; padding-inline: 20px 10px; border: 1px solid rgba(162, 76, 255, 0.45); border-radius: 18px; background: radial-gradient(240px 120px at 0% 0%, rgba(255, 42, 166, 0.18), transparent 70%), rgba(15, 17, 41, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text); text-align: start; cursor: pointer; box-shadow: 0 24px 50px -18px rgba(5, 6, 20, 0.75); transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s linear 0.45s; }
.b-dock.on { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
.b-dock-fig { display: grid; min-width: 0; line-height: 1.2; }
.b-dock-fig small { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.b-dock-fig b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-dock-go { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 42px; margin-inline-start: auto; padding: 0 14px; border-radius: 12px; background: var(--cta); color: #fff; font-size: 14.5px; font-weight: 650; white-space: nowrap; transition: background 0.2s; }
.b-dock:hover .b-dock-go { background: var(--cta-hover); }

@media (max-width: 900px) {
  .b-panel { grid-template-columns: minmax(0, 1fr); }
  .b-panel .b-totals, .b-plines, .b-panel-empty, .b-panel-vat { grid-column: 1; grid-row: auto; }
}
/* Below this width the dock keeps clear of the chat button in the bottom right corner; on phones its button
   keeps only its arrow. */
@media (max-width: 900px) {
  .b-dock { left: 12px; right: 76px; max-width: 600px; margin: 0; }
}
@media (max-width: 640px) {
  .b-dock-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .b-dock-go { width: 42px; padding: 0; }
}
@media (max-width: 640px) {
  .wizard, .b-panel { padding: 20px 16px; border-radius: 18px; }
  .wz-extra { padding: 16px 14px; }
  .wz-options { grid-template-columns: 1fr; }
  .wz-opt { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .wz-opt .svc-ic { margin: 0; }
  .wz-opt small { flex-basis: 100%; }
  .wz-nav { flex-wrap: wrap; }
  .wz-chips { grid-template-columns: 1fr; }
  .b-edit { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
  .b-line .b-qty, .b-qty-n { grid-column: 1; grid-row: 2; justify-self: start; }
  .b-line:not(:has(.b-qty, .b-qty-n)) .b-line-name { grid-row: 1 / span 2; } /* no quantity: the buttons sit beside the detail */
  .b-line-amount { grid-column: 2; }
  .b-acts { grid-column: 2; grid-row: 2; margin-inline-end: -8px; }
  .wz-summary .b-totals { padding: 18px 16px; gap: 14px; }
  .wz-summary .b-totals > div + div { padding-inline-start: 14px; }
  .b-totals dt { font-size: 13px; }
  .wz-actions .btn-primary { flex: 1 1 100%; }
}

/* ---- Quote popup ------------------------------------------------------------------------ */
html.q-lock { overflow: hidden; scrollbar-gutter: stable; }
/* Light, like the question card that opens it, with the totals in the same dark box as the package panel. */
.q-modal { width: min(30rem, 100% - 24px); max-width: none; max-height: calc(100% - 24px); margin: auto; padding: 0; border: 1px solid var(--b-line, #e3e5f2); border-radius: 26px; background: #fff; color: var(--paper-text); color-scheme: light; overflow: auto; overflow-x: hidden; overscroll-behavior: contain; box-shadow: 0 60px 120px -40px rgba(6, 7, 22, 0.6); }
.q-modal :focus-visible { outline-color: var(--cta); }
.q-modal::backdrop { background: rgba(6, 7, 22, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.q-modal[open] { animation: q-in 0.4s var(--ease); }
.q-modal[open]::backdrop { animation: q-fade 0.3s ease; }
@keyframes q-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes q-fade { from { opacity: 0; } }
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-box { position: relative; padding: clamp(24px, 5vw, 36px); }
.q-close { position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #eceef6; color: var(--paper-text); cursor: pointer; transition: background 0.2s; }
.q-close:hover { background: #e1e4f0; }
.q-close .i { width: 18px; height: 18px; }
.q-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; border: 1px solid #e3e5f2; background: linear-gradient(135deg, #ffe4f4, #e4e8ff); color: var(--violet); }
.q-ic .i { width: 24px; height: 24px; }
.q-ic.q-ok { border-color: #c7f0e0; background: linear-gradient(135deg, #e3faf2, #e0f4fd); color: #047857; }
.q-box h3 { margin-top: 18px; padding-inline-end: 36px; color: var(--paper-text); font-size: clamp(1.5rem, 4.6vw, 1.85rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1.15; outline: none; }
.q-lede { margin-top: 8px; color: var(--paper-muted); font-size: 15.5px; line-height: 1.5; }
/* The totals box, with "Your package (N items)" under the totals opening out to list the lines. */
.q-pkg { margin-top: 20px; border-radius: 16px; border: 1px solid transparent; background: var(--b-dark-box, var(--ink-2)); color: var(--text); color-scheme: dark; }
.q-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; container-type: inline-size; }
.q-sum > div { min-width: 0; padding: 14px 18px; }
.q-sum > div + div { border-inline-start: 1px solid var(--line-2); }
.q-sum dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.q-sum dd { margin: 2px 0 0; color: #fff; font-size: min(24px, 7.6cqi); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.q-lines { border-top: 1px solid var(--line-2); }
.q-lines > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 18px; border-radius: 0 0 15px 15px; color: #fff; font-size: 14.5px; font-weight: 650; list-style: none; cursor: pointer; transition: background 0.2s; }
.q-lines > summary::-webkit-details-marker { display: none; }
.q-lines > summary:hover { background: rgba(255, 255, 255, 0.05); }
.q-lines > summary:focus-visible { outline: 2px solid #c9bdff; outline-offset: -4px; } /* the violet ring is too faint on navy */
.q-lines > summary .i { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s var(--ease); }
.q-lines[open] > summary { border-radius: 0; }
.q-lines[open] > summary .i { transform: rotate(180deg); }
.q-plines { display: grid; padding: 0 18px; }
.q-plines .b-pl { padding: 9px 0; font-size: 14.5px; }
.q-plines .b-pl:last-child { border-bottom: 0; }
.q-pvat { padding: 6px 18px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.q-form { display: grid; gap: 14px; margin-top: 22px; }
.q-form .field input { font-size: 16px; } /* 16px or more, so iPhones don't zoom in on focus */
.q-form .field input::placeholder { color: #6e7290; opacity: 1; }
.q-form .field:not(.invalid) input:not(:focus):hover { border-color: #b9bdd3; }
.q-form .hp { left: auto; inset-inline-start: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.q-alert:empty { margin-top: -14px; }
.q-alert .form-status { margin: 0; display: block; font-size: 14.5px; line-height: 1.5; }
.q-alert a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.q-submit { width: 100%; }
.q-submit[aria-disabled="true"] { cursor: progress; opacity: 0.8; }
.q-submit.busy .i { animation: q-spin 0.9s linear infinite; }
.q-fine { color: var(--paper-muted); font-size: 13.5px; line-height: 1.5; }
.q-fine a { color: var(--cta); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.q-fine a:hover { color: var(--paper-text); }
.q-ref { margin-top: 10px; color: var(--paper-muted); font-size: 16px; }
.q-ref strong { color: var(--paper-text); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.q-pdf, .q-done { width: 100%; margin-top: 22px; }
.q-done { background: #eceef6; color: var(--paper-text); }
.q-done:hover { background: #e1e4f0; }
[data-q-view="done"] .q-fine { margin-top: 12px; }

/* ---- Client logos ---------------------------------------------------------------------- */
.clients { margin-bottom: clamp(48px, 6vw, 70px); }
.clients > p { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.client-logos { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
/* Tablets: three logos to a row and the last two sharing theirs, so every row fills the width (phones and wide
   screens are set below); a logo never outgrows its box. */
.client { flex: 1 1 calc((100% - 32px) / 3); height: 104px; min-width: 0; padding: 14px 28px; display: grid; place-items: center; border-radius: 18px; border: 1px solid var(--line); }
.client img { max-height: 76px; max-width: min(230px, 100%); width: auto; }
.client-light { background: #fff; }
.client-dark { background: #050508; }
.client-text { background: var(--ink-2); color: #fff; font-size: clamp(18px, 2.5vw, 26px); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.client-nabzys img { max-width: min(180px, 100%); }
.client-golocal img { max-height: 56px; } /* a heavy wordmark: kept to the others' visual weight */
/* Wide screens: the logos share one row (narrower screens wrap them). */
@media (min-width: 1081px) {
  .client-logos { flex-wrap: nowrap; }
  .client { flex: 1 1 0; min-width: 0; padding-inline: 20px; }
  .client img { max-width: 100%; }
  .client-text { font-size: clamp(18px, 1.9vw, 26px); letter-spacing: 0.1em; }
}

/* ---- Contact: find the shop -------------------------------------------------------------- */
.contact-side { display: grid; gap: 16px; }
.find-us { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.find-pin { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff2aa6, #7a5cff); }
.find-us h3 { font-size: 17px; }
.find-us p { color: var(--muted); font-size: 15px; }
.find-us .btn { margin-inline-start: auto; }

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-card { grid-template-columns: minmax(0, 1fr); }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .bespoke-grid, .pl-grid, .cctv-grid { grid-template-columns: minmax(0, 1fr); }
  .pay-demo { grid-template-columns: minmax(0, 1fr) 36px 168px; }
  .pd-link { gap: 6px; }
  .pd-terminal { width: 168px; padding-inline: 13px; }
  /* The three screens stay in a row, a smaller copy of the wall, so the panorama still runs across them.
     Bezel and gap shrink in whole pixels (borders snap to pixels), and .pano-art's slicing follows them. */
  .tv-wall { --bezel: 6px; --gap: 10px; margin-top: 40px; padding: 14px; border-radius: 22px; }
  .tv-screen { border-radius: 7px; }
  .screen-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* The TV walls (and the push-to-TVs card) use the page's side margins too, like the card machine demo: on a phone
     every pixel of width makes the three screens bigger. */
  .tv-wall { --bezel: 3px; --gap: 6px; margin-top: 32px; margin-inline: calc(8px - var(--gutter)); padding: 8px; border-radius: 14px; }
  .tv-push { margin-inline: calc(8px - var(--gutter)); border-radius: 22px; }
  .tp-tvs { margin-inline: -10px; }
  .tv-screen { border-radius: 4px; box-shadow: 0 14px 22px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .svc { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 18px; align-items: start; }
  .svc .svc-ic { grid-row: span 2; width: 44px; height: 44px; }
  .svc h3 { margin-top: 0; }
  .calc-rows li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .calc-rows .calc-bar { grid-column: 1 / -1; grid-row: 2; }
  /* Give the landscape till the full row and stand the card machine on its base. */
  .pay-demo { grid-template-columns: minmax(0, 1fr); justify-items: center; margin-inline: calc(8px - var(--gutter)); padding: 10px 10px 16px; border-radius: 22px; }
  .pd-till { width: 100%; max-width: 440px; padding: 6px 6px 30px; border-radius: 18px; }
  .pd-screen { border-radius: 10px; }
  .pd-link { display: none; }
  .pd-terminal { zoom: 0.76; margin-top: -32px; z-index: 1; }
  .client { min-width: 0; flex: 1 1 140px; height: 90px; padding: 12px 16px; }
  .client img { max-width: 100%; }
  .client-text { font-size: clamp(16px, 5vw, 22px); letter-spacing: 0.1em; }
  .find-us .btn { margin-inline-start: 0; width: 100%; }
}
/* Wider phones and small tablets have room for the card machine beside the till. */
@media (min-width: 481px) and (max-width: 640px) {
  .pay-demo { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; }
  .pd-till { padding-bottom: 6px; justify-self: end; }
  .pd-terminal { margin-top: 0; }
}

/* ---- Language switcher ------------------------------------------------------------------ */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); color: #e6e8ff; font-weight: 600; font-size: 14px; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .i { width: 17px; height: 17px; }
.lang[open] summary { background: rgba(255, 255, 255, 0.07); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; width: 260px; max-height: min(70vh, 520px); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; border-radius: 16px; background: #10122b; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); }
.nav-links .lang-list a { display: block; padding: 8px 10px; border-radius: 8px; border: 0; color: #d3d5ee; font-size: 14px; font-weight: 550; }
.nav-links .lang-list a::after { display: none; }
.nav-links .lang-list a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-links .lang-list a[aria-current] { background: rgba(122, 92, 255, 0.28); color: #fff; }
@media (max-width: 900px) {
  .lang { order: 10; margin-top: 18px; }
  .lang summary { font-size: 16px; padding: 10px 14px; }
  .lang-list { position: static; width: auto; max-height: none; margin-top: 10px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-links .lang-list a { padding: 10px 12px; font-size: 15.5px; }
}

/* A long menu (translations with longer words) first tightens up and may use more of a wide screen;
   only if it still doesn't fit does it collapse (below). */
html.nav-tight .nav-inner { width: min(1440px, 100% - 2 * var(--gutter)); gap: 20px; }
html.nav-tight .nav-links { gap: 20px; font-size: 14.5px; }
html.nav-tight .nav-links a.btn { padding: 0 16px; }
/* The full menu doesn't fit on one line (a laptop, a long translation): site.js adds .nav-compact and the
   menu collapses into the ☰ panel used on phones (the same rules as the max-width: 900px block). */
html.nav-compact .nav-links {
  position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
  padding: 12px var(--gutter) 28px; background: #0a0b1e; border-bottom: 1px solid var(--line);
  overflow-y: auto; transform: translateY(-110%); visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}
html.nav-compact .nav.open .nav-links { transform: none; visibility: visible; }
html.nav-compact .nav.open { background: #0a0b1e; border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.nav-compact body:has(.nav.open) { overflow: hidden; }
html.nav-compact .nav-links a:not(.btn) { padding: 16px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
html.nav-compact .nav-links a:not(.btn)::after { display: none; }
html.nav-compact .nav-links a.active:not(.btn) { padding-inline-start: 12px; border-inline-start: 3px solid #7a5cff; }
html.nav-compact .nav-links a.btn { margin-top: 20px; height: 52px; }
html.nav-compact .nav-toggle { display: grid; }
html.nav-compact .lang { order: 10; margin-top: 18px; }
html.nav-compact .lang summary { font-size: 16px; padding: 10px 14px; }
html.nav-compact .lang-list { position: static; width: auto; max-height: none; margin-top: 10px; padding: 0; background: none; border: 0; box-shadow: none; }
html.nav-compact .nav-links .lang-list a { padding: 10px 12px; font-size: 15.5px; }
html.nav-compact .nav-item { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); }
html.nav-compact .nav-links .nav-item > a:not(.btn) { grid-area: 1 / 1; border-bottom: 0; }
html.nav-compact .nav-sub-toggle { grid-area: 1 / 1; z-index: 1; width: auto; height: auto; margin: 0; padding-inline-end: 4px; justify-items: end; border-radius: 0; }
html.nav-compact :is(.nav-sub-toggle:hover, .nav-item.open .nav-sub-toggle) { background: none; }
html.nav-compact .nav-sub-toggle .i { width: 20px; height: 20px; }
html.nav-compact .nav-sub { position: static; min-width: 0; margin: -6px 0 12px; padding: 0; padding-inline-start: 14px; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.nav-compact .nav-sub::before { display: none; }
html.nav-compact .nav-links .nav-sub a:not(.btn) { padding: 11px 12px; border-bottom: 0; font-size: 16px; white-space: normal; }

/* ---- Other scripts and right-to-left ----------------------------------------------------- */
/* Chinese, Arabic and Urdu: system fonts after Inter (per character), no tight tracking (it breaks joined
   scripts and crowds ideographs), and taller lines so marks and ascenders aren't clipped. */
html:lang(zh-CN) body { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(zh-TW) body { font-family: "Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html:is(:lang(ar), :lang(ckb)) body { font-family: "Inter", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif; }
html:lang(ur) body { font-family: "Inter", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Segoe UI", Tahoma, sans-serif; line-height: 1.9; }
html:is(:lang(zh), :lang(ar), :lang(ckb), :lang(ur)) * { letter-spacing: 0 !important; }
html:is(:lang(zh), :lang(ar), :lang(ckb), :lang(ur), :lang(vi)) :is(.hero h1, .section-title, .demo-title, .contact h2, .not h2, .not-claim, .footer-mark, .legal-hero h1, .sc-hero h1, .sc-title, .marquee-item, .manifesto p.big, .manifesto-points, .step h3, .calc-keep, .cc-name) { line-height: 1.25; }
html:lang(ur) :is(.hero h1, .section-title, .demo-title, .contact h2, .not h2, .footer-mark, .legal-hero h1, .sc-hero h1, .sc-title, .marquee-item, .manifesto p.big, .manifesto-points) { line-height: 1.7; }
/* Translations run longer than English: let big headlines wrap and hyphenate rather than overflow. */
html:not(:lang(en)) body { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; } /* long compound words in narrow columns */
html:not(:lang(en)) :is(h1, h2, h3, .section-title, .demo-title, .sc-title, .manifesto p.big, .manifesto-points, .not-claim, .calc-keep) { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
/* Headings in a narrow column: long single words ("Maßgeschneiderte", "Индивидуальные",
   "Selbstbedienungskioske") must fit the column even where the browser can't hyphenate. */
html:not(:lang(en)) .bespoke-grid .section-title { font-size: clamp(2.15rem, 4.7vw, 3.9rem); }
html:not(:lang(en)) .ksk-head .section-title { font-size: clamp(2.15rem, 3.9vw, 3.6rem); }
html:not(:lang(en)) .kp-head .section-title { font-size: clamp(2.15rem, 3.9vw, 3.6rem); }
/* Phones: display headings in other languages a step smaller, so long compound words (German, Dutch, Welsh,
   Ukrainian…) fit their line instead of having to break. */
@media (max-width: 480px) {
  html:not(:lang(en)) :is(.section-title, .demo-title, .not h2, .sc-title) { font-size: 2.15rem; }
  html:not(:lang(en)) :is(.contact h2, .legal-hero h1, .sc-hero h1) { font-size: 2.5rem; }
}
@media (max-width: 380px) { html:not(:lang(en)) .hero h1 { font-size: 3rem; } }
html:not(:lang(en)) .footer-mark { white-space: normal; font-size: clamp(2.4rem, 9vw, 9rem); }
/* Right-to-left: things that scroll or line up across panels keep running left to right. */
[dir="rtl"] :is(.marquee, .review-rail, .tv-wall, input[type="range"]) { direction: ltr; }
[dir="rtl"] :is(.marquee-item, .review) { direction: rtl; }
/* Phone numbers are digits and spaces, which right-to-left text would reorder ("0191 272 0151"): they read left to
   right, with the icon still on the start (right) side. */
[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .direct a[href^="tel:"] { flex-direction: row-reverse; }
[dir="rtl"] svg:has(> use[href$="#arrow-right"]), [dir="rtl"] svg:has(> use[href$="#arrow-up-right"]) { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg:has(> use[href$="#arrow-right"]) { transform: scaleX(-1) translateX(3px); }

/* ---- Scroll reveal --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---- Showcase page: every 3D model in a card (showcase.js turns one at a time) ------------------ */
.sc { background: #050507; }
.sc .nav.scrolled { background: rgba(5, 5, 7, 0.9); }
.sc-hero { position: relative; padding-block: calc(var(--nav-h) + clamp(48px, 8vw, 100px)) clamp(36px, 5vw, 60px); overflow: clip; isolation: isolate; }
.sc-hero::before { content: ""; position: absolute; z-index: -1; inset-block-start: -45%; inset-inline-end: -12%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 92, 255, 0.2), transparent 70%); }
.sc-hero .eyebrow .i { width: 17px; height: 17px; color: #a98bff; }
.sc-hero h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 0.95; letter-spacing: -0.055em; font-weight: 300; margin-top: 16px; }
.sc-hero h1 b { font-weight: 800; display: block; }
.sc-hero .lede { margin-top: 22px; color: #9a9db4; }

.section-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.section-links a { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 24px; }
.section-links a:hover, .section-links a:focus-visible { background: var(--ink-2); border-color: currentColor; }
.home-paths, .equipment-summary { padding-block: clamp(48px, 7vw, 96px); }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 32px 22px; }
.path-card { position: relative; padding: clamp(24px, 4vw, 50px); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 22px; }
.path-card:hover, .path-card:focus-visible { border-color: #aa94ff; }
.path-card h3 { padding-inline-end: 30px; font-size: clamp(1.45rem, 3vw, 2.5rem); line-height: 1.1; }
.path-card p, .equipment-summary .lede { margin-block: 18px; max-width: 40ch; color: var(--muted); }
.path-card > .i { position: absolute; inset-inline-end: 24px; top: clamp(24px, 4vw, 50px); color: #aa94ff; }
[dir=rtl] .path-card > .i { transform: scaleX(-1); }
@media (max-width: 640px) {
  .path-grid { grid-template-columns: 1fr; }
}
.sc-models { padding-block: 0 clamp(80px, 10vw, 140px); }
.sc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.sc-card {
  display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.35s, box-shadow 0.45s var(--ease), translate 0.45s var(--ease);
}
.sc-card:hover { border-color: rgba(162, 76, 255, 0.45); box-shadow: 0 40px 90px -50px rgba(106, 77, 255, 0.75); }
.sc-card:hover { translate: 0 -4px; }
.sc-card:focus-visible { outline-offset: 4px; border-radius: 28px; }
.sc-visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 62% at 50% 46%, #35317d 0%, #1b1a4c 52%, #0b0c22 100%);
}
.sc-visual::before { content: ""; position: absolute; z-index: -1; inset-inline: 18%; inset-block: 70% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent); }
/* Each poster sits where its live model draws (measured per model), so nothing jumps when the model takes
   over. Physical left on purpose: the 3D view isn't mirrored on right-to-left pages, so the poster isn't either. */
.sc-poster { position: absolute; left: var(--pl); top: var(--pt); width: var(--pw); max-width: none; transition: opacity 0s 0.5s; }
.sc-card[data-model="single"] { --pl: 8%; --pt: 3.8%; --pw: 84.5%; }
.sc-card[data-model="dual"] { --pl: 12.2%; --pt: 8.1%; --pw: 76.1%; }
.sc-card[data-model="smart-tv"] { --pl: 1%; --pt: -4.4%; --pw: 98%; }
.sc-card[data-model="kiosk"] { --pl: 21.9%; --pt: 4.3%; --pw: 56%; }
.sc-live { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.sc-live canvas { display: block; }
/* Going live (all four together, from showcase.js): each model fades in over its poster, which then hides. */
.sc-card.live .sc-live { opacity: 1; transition: opacity 0.5s; }
.sc-card.live .sc-poster { opacity: 0; }
.sc-badge {
  position: absolute; z-index: 2; inset-block-start: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; color: #d9dbf2;
}
.sc-badge .i { width: 15px; height: 15px; color: #a98bff; }
.sc-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(20px, 2.4vw, 28px); }
.sc-name { font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 750; }
.sc-desc { color: var(--muted); font-size: 15.5px; max-width: 34rem; }
.sc-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.sc-specs li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #c9ccff; }
.sc-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.sc-more .i { transition: transform 0.25s var(--ease); }
.sc-card:hover .sc-more .i { transform: translateX(3px); }
[dir="rtl"] .sc-card:hover .sc-more .i { transform: scaleX(-1) translateX(3px); }
@media (max-width: 640px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); }
.seg button { height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: none; color: #c9cbe0; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed="true"] { background: #fff; color: #0b0c14; }
.seg-small { align-items: center; padding: 4px; }
.seg-small button { height: 34px; padding: 0 14px; font-size: 13.5px; }
.seg-label { padding: 0 10px 0 12px; font-size: 12.5px; font-weight: 600; color: #8b8ea6; }

.sc-section { padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.sc-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.05em; font-weight: 300; }
.sc-title b { font-weight: 800; }
.sc-cta { text-align: center; }
.sc-cta .sc-title { max-width: 16ch; margin-inline: auto; }
.sc-cta .hero-ctas { justify-content: center; margin-top: 34px; }

/* ---- Legal pages ----------------------------------------------------------------------------- */
.legal-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(44px, 6vw, 72px); position: relative; overflow: clip; isolation: isolate; }
.legal-hero::before { content: ""; position: absolute; z-index: -1; right: -15%; top: -40%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 92, 255, 0.22), transparent 70%); }
.legal-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.95; letter-spacing: -0.055em; font-weight: 800; margin: 16px 0 20px; }
.legal-meta { margin-top: 18px; color: var(--dim); font-size: 14px; }
.legal { padding: clamp(48px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(32px, 6vw, 88px); justify-content: center; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.legal-toc p { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-inline-start: 28px; display: grid; gap: 7px; font-size: 14.5px; color: var(--paper-muted); }
.legal-toc a { color: #3a3e5c; }
.legal-toc a:hover { color: var(--violet); }
.legal-body { font-size: 16.5px; line-height: 1.7; color: #2b2f4a; }
.legal-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); letter-spacing: -0.025em; line-height: 1.2; color: var(--paper-text); margin: 48px 0 14px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; color: var(--paper-text); margin: 22px 0 8px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { list-style: disc; padding-inline-start: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal-body a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--paper-text); }
.legal-table { overflow-x: auto; margin: 16px 0; border: 1px solid #e3e5f2; border-radius: 14px; background: #fff; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.legal-table th { text-align: start; padding: 12px 16px; background: #f1f0fb; color: var(--paper-text); font-weight: 700; border-bottom: 1px solid #e3e5f2; }
.legal-table td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid #eef0f7; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td:first-child { font-weight: 600; color: var(--paper-text); min-width: 11em; }
.legal-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px 24px; margin: 0 0 40px; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #e3e5f2; font-size: 15px; }
.legal-card dt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.legal-card dd { margin: 4px 0 0; color: var(--paper-text); font-weight: 600; }
.legal-card a { color: var(--violet); }

/* ---- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid #e3e5f2; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: rgba(10, 11, 30, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); transform: translateY(-110%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.open .nav-links { transform: none; visibility: visible; }
  .nav.open { background: #0a0b1e; border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links { bottom: 0; overflow-y: auto; background: #0a0b1e; }
  body:has(.nav.open) { overflow: hidden; }
  .nav-links a:not(.btn) { padding: 16px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a.active:not(.btn) { padding-inline-start: 12px; border-inline-start: 3px solid #7a5cff; } /* the underline is hidden in the panel */
  .nav-links a.btn { margin-top: 20px; height: 52px; }
  .nav-toggle { display: grid; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-visual { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 34px; padding-inline: 64px 0; }
  .steps::before { inset-inline-start: 17px; }
  .step-dot { top: 44px; translate: none; width: 35px; height: 35px; font-size: 12px; }
  .step-visual-mobile { display: block; position: relative; margin-top: 26px; height: 440px; }
  .step-visual-mobile .visual-card { height: 100%; }
  .step-visual-mobile .visual { opacity: 1; transform: none; }
  /* The phone mock-up is sized by the card's height here (440px less padding), not its width, or it runs out of
     the bottom of the card on wider phones and tablets. */
  .step-visual-mobile .mini-phone { width: min(155px, 100%); }
  /* The floating chips are scaled to the smaller card, so they cover less of the mock-ups under them. */
  .step-visual-mobile .chip-float { gap: 6px; padding: 7px 11px; font-size: 12px; }
  .step-visual-mobile .mini-phone .screen { font-size: 11px; } /* "Margherita" fits its line in the narrower phone */
  .step-visual-mobile .mp-item { padding: 8px; }
  .step-visual-mobile .stat-card { min-width: 0; padding: 11px 13px; }
  .step-visual-mobile .stat-card strong { font-size: 19px; }
  .hw-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  /* Narrow phones: the card sits beside the step line, so its mock-ups get more of the card's width. */
  .step-visual-mobile .visual { padding: 44px 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { letter-spacing: -0.055em; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; } /* share the row when both labels fit, else stack full width */
  .device { padding: 8px; border-radius: 18px; }
  .device-cover { inset: 8px; }
  .device-screen { aspect-ratio: 9 / 16; max-height: 78svh; margin-inline: auto; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .review { padding: 22px; }
}

/* Phones: anything tapped is at least about 40px tall (small links and pills grow their hit area, not their text). */
.nav-logo { padding-block: 5px; }
@media (max-width: 640px) {
  .demo-caption a, .direct a { min-height: 44px; }
  .direct { gap: 0; }
  .mpe-qty button { height: 44px; }
  .mpe-toggle { min-height: 44px; margin-top: 0; }
  .calc-period button { height: 42px; }
  .b-qty button, .b-line .b-qty button { width: 40px; height: 40px; }
  .b-act { height: 40px; }
  .b-del { width: 40px; }
  .b-acts:not(:has(.b-del))::after { width: 40px; }
  .footer-links ul { gap: 0; }
  .footer-links a { display: inline-block; padding-block: 8px; }
}
@media (max-width: 900px) {
  .legal-toc ol { gap: 0; }
  .legal-toc a { display: inline-block; padding-block: 9px; }
}

.landscape-hint {
  position: fixed; z-index: 46; bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 13px;
  margin-inline: auto; width: fit-content; max-width: min(24rem, calc(100% - 32px));
  padding: 12px 18px; border: 2px solid #9e84ff; border-radius: 16px;
  color: #21163c; background: #faf7ff; box-shadow: 0 6px 24px #10072b55;
  font-size: 0.9375rem; font-weight: 700; line-height: 1.4; pointer-events: none;
  animation: landscape-hint-in 240ms ease-out;
}
.landscape-hint::before {
  content: ""; flex: none; width: 23px; height: 15px;
  border: 2px solid #6236b9; border-inline-end-width: 5px; border-radius: 4px;
  animation: landscape-hint-turn 650ms var(--ease);
}
.landscape-hint:empty { display: none; }
.pay-landscape-hint { display: none; }
@media (orientation: portrait) and (max-width: 767px) {
  .pay-landscape-hint {
    display: flex; position: static; grid-column: 1 / -1; max-width: 100%;
    margin: 0 auto 12px; text-align: start;
  }
}
@keyframes landscape-hint-turn { from { transform: rotate(-90deg); } to { transform: rotate(0deg); } }
@keyframes landscape-hint-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-words .w { color: var(--text); }
  .device { --tilt: 0deg !important; --scale: 1 !important; }
}
