@charset "UTF-8";
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens: slate on white, one blue that points. Mono is for tickets, counters and order numbers. */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #526077;
  --paper: #fff;
  --surface: #f6f7f9;
  --surface-2: #eef1f5;
  --frame: #eef1f5;
  --line: #e3e7ed;
  --line-strong: #ccd4df;
  --accent: #1d4ed8;
  --accent-soft: #eef3fd;
  --on-dark-muted: #93a4bf;
  --on-dark-soft: #b4c0d3;
  --on-dark-accent: #93b4f5;
  --diagram-line: #6283b6;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --ok-line: #bbf7d0;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --warn-line: #fed7aa;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: min(1220px, 100vw - 96px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgb(15 23 42 / .05), 0 8px 24px rgb(15 23 42 / .06);
  --shadow-lift: 0 2px 4px rgb(15 23 42 / .04), 0 28px 64px rgb(15 23 42 / .16);
  --header-height: 80px;
  --on-dark-line: rgb(255 255 255 / .14);
  --selection: #c9d7fb;
  --glass: rgb(255 255 255 / .9);
  --glass-strong: rgb(255 255 255 / .94);
  --glass-soft: rgb(255 255 255 / .5);
  --header-line: rgb(13 18 32 / .07);
  --backdrop: rgb(15 23 42 / .82);
  --shadow-control: 0 1px 2px rgb(15 23 42 / .08), 0 2px 8px rgb(15 23 42 / .06);
  --shadow-lift: rgb(13 18 32 / .1);
  --glow-blue: rgb(59 130 246 / .26);
  --on-dark-faint: rgb(255 255 255 / .06);
  --on-dark-rule: rgb(255 255 255 / .1);
  --on-dark-rule-strong: rgb(255 255 255 / .16);
  --ink-hover: #1e293b;
  --node-hover: #b9c8ea;
  --ticket: #fdfcf8;
  --landing-glow: rgb(29 78 216 / .38);
  --landing-glow-soft: rgb(29 78 216 / .16);
  --landing-shadow: rgb(2 6 23 / .6);
  --landing-dot: rgb(255 255 255 / .07);
  --skin-precision: #18181b;
  --skin-service: #9a4662;
  --skin-blueprint: #0866c4;
  --skin-utilitarian: #2a6b3c;
  --skin-classic: #0369a1;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* Base */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 30px);
}
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1.2em; color: var(--muted); }
h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 5.6vw, 84px); }
h2 { font-size: clamp(36px, 4.2vw, 62px); }
h3 { font-size: 24px; letter-spacing: -.025em; line-height: 1.2; }
em { font-style: normal; color: var(--accent); }
strong { font-weight: 650; }
::selection { background: var(--selection); color: var(--ink); }

/* Layout and shared text */
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: clamp(84px, 9vw, 136px); }
.soft { background: var(--surface); }
/* Two grey sections in a row read as one band. */
.soft + .soft { padding-top: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
}
.lead { font-size: 19px; line-height: 1.6; max-width: 640px; }
.section-heading { margin-bottom: 52px; max-width: 820px; }
.section-heading h2 { margin-bottom: 22px; }
.section-heading .lead { margin-bottom: 0; }
.muted { font-size: .9375rem; }
.compact-note { font-size: .9375rem; color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 20px;
  z-index: 100;
  padding: 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

/* Locally hosted Lucide icons share one stroke and sizing system. */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--accent-soft);
}
.feature-icon .icon { width: 23px; height: 23px; }

/* Buttons and links */
.actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
}
.button.small { padding: 10px 18px; font-size: .9375rem; gap: 10px; }
.button.outline { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.button:active { transform: scale(.97); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}
.button .icon, .text-link .icon { width: 18px; height: 18px; }
.section-link { margin-top: 36px; }

/* Header: the navigation collapses behind a menu button on narrow screens. */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--header-line);
}
.header-inner {
  width: min(1440px, calc(100% - 64px));
  margin: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: -.03em;
}
.brand b, .brand-wordmark { font-weight: 450; }
.brand-wordmark strong { font-weight: 750; }
.brand img { border-radius: 50%; }
.main-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  align-self: stretch;
  align-items: center;
}
.main-nav > a, .nav-trigger {
  position: relative;
  padding-block: 9px;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav > a[aria-current=page]:after, .nav-group.is-current .nav-trigger:after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.header-actions { display: flex; align-items: center; gap: 18px; }
/* FMX Cloud sign-in: an outlined button, apart from the page links and the filled Download button; in the compact
   menu it is the last row instead. */
.header-signin { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); font-size: .9375rem; font-weight: 600; white-space: nowrap; transition: border-color 200ms ease, color 200ms ease; }
.header-signin .icon { width: 18px; height: 18px; color: var(--accent); }
.main-nav .nav-cloud { display: none; }
.main-nav .nav-cloud .icon { width: 20px; height: 20px; color: var(--accent); }
.menu-toggle,
.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.menu-toggle { display: none; }
.menu-toggle[aria-expanded=true] .icon-open,
.menu-toggle[aria-expanded=false] .icon-close { display: none; }
.language-switch[aria-expanded=true],
.menu-toggle[aria-expanded=true] { background: var(--surface-2); border-color: var(--line-strong); }
.language-picker { position: relative; flex-shrink: 0; }
.language-switch .language-symbol { width: 20px; height: 20px; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 216px;
  max-height: calc(100svh - var(--header-height) - 24px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.language-menu[hidden] { display: none; }
.language-menu [role=option] {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}
.language-menu [aria-selected=true] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.language-check { width: 17px; height: 17px; visibility: hidden; }
[aria-selected=true] > .language-check { visibility: visible; }
/* Product menu: a disclosure button opens the overview and one page per type of venue. */
.nav-group { position: relative; display: flex; align-self: stretch; align-items: center; }
.nav-trigger { display: flex; align-items: center; gap: 6px; padding-inline: 0; border: 0; background: none; line-height: inherit; }
.nav-trigger .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.nav-trigger[aria-expanded=true] .icon { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 2;
  display: none;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 8px;
  width: min(640px, 100vw - 40px);
  padding: 8px;
  translate: -50% 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.nav-group.is-open .nav-menu, html:not(.has-js) .nav-group:is(:hover, :focus-within) .nav-menu { display: grid; }
.nav-menu a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; color: var(--ink); }
.nav-menu strong { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.nav-menu span { color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.45; white-space: normal; }
.nav-menu a[aria-current=page] { background: var(--accent-soft); }
.nav-menu a[aria-current=page] strong { color: var(--accent); }
.nav-overview { grid-row: 1 / 3; align-content: start; padding: 18px !important; background: var(--surface); transition: background-color 200ms ease; }
.nav-menu .nav-overview-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 12px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--accent); font-size: .9375rem; font-weight: 650; line-height: 1.4; }
.nav-menu .nav-overview-link span { color: inherit; font-size: inherit; line-height: inherit; }
.nav-overview-link .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.nav-menu .nav-overview:focus-visible { background: var(--surface-2); }
.nav-overview:focus-visible strong { color: var(--accent); }
.nav-overview:focus-visible .nav-overview-link .icon { transform: translateX(4px); }
.nav-menu-label { margin: 0; padding: 12px 14px 4px; color: var(--muted); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.nav-venues { display: grid; margin: 0; padding: 0; list-style: none; }
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms;
}
.has-scrolled .back-to-top { opacity: 1; visibility: visible; }

/* Product screenshots */
.product-frame {
  padding: 6px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
/* A blended promo film has no frame: its ground is the colour of the band or card it sits on, and its edges fade
   into it. */
.promo.is-blended {
  border-radius: 0;
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.booking-shot { margin: 0 -2%; }
/* The bookings film's close-up darkens its corners; on the page that would outline the frame, so it is left out. */
.booking-shot .bk-vignette { display: none; }
.product-frame .scene {
  width: 100%;
  aspect-ratio: 1366 / 768;
  background: var(--frame);
  border-radius: 10px;
}
.screen-expand {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}
.expand-indicator {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--glass-strong);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.screen-open { overflow: hidden; }
.screen-dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 62px 12px 12px;
  background: var(--frame);
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  box-shadow: var(--shadow-lift);
}
.screen-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(8px); }
/* An enlarged screen fills the window at its own proportions. */
.screen-dialog > .scene {
  width: min(calc(100vw - 48px), calc((100dvh - 98px) * var(--sc-ratio)));
  height: auto;
  border-radius: 8px;
}
.screen-dialog-close {
  position: absolute;
  right: 16px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

/* Homepage landing: one screen. The film's till stands on the dark ground to the right, the copy to its left and the
   four reasons along the foot. The film has no ground of its own here, so it can't show an edge. */
.landing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  padding-top: var(--header-height);
  background: var(--ink);
  color: var(--paper);
}
.landing:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 52% at 69% 50%, var(--landing-glow), transparent 75%),
    radial-gradient(var(--landing-dot) 1px, transparent 1.5px) 0 0 / 28px 28px;
  mask: linear-gradient(transparent, #000 15%, #000 70%, transparent);
}
.landing > .promo { position: absolute; z-index: -1; top: 50%; left: 0; translate: 0 -50%; border-radius: 0; animation: landing-film 900ms ease both; }
.landing .pm-cv { background: none; }
.landing .pm-cv:before { content: none; }
@keyframes landing-film { from { opacity: 0; } }
.landing .wrap { width: min(1440px, 100% - 64px); }
.landing-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: clamp(24px, 4svh, 48px); }
.landing-copy { pointer-events: none; }
.landing-copy > * { pointer-events: auto; }
.landing > .promo .promo-toggle { top: calc(var(--header-height) + 16px); right: clamp(16px, 2vw, 32px); bottom: auto; }
.landing .eyebrow { color: var(--on-dark-accent); }
.landing h1 { max-width: 38vw; margin-bottom: clamp(18px, 3svh, 26px); font-size: clamp(52px, 5.4vw, 96px); letter-spacing: -.06em; line-height: .94; overflow-wrap: anywhere; }
.landing h1 em { color: var(--on-dark-accent); }
.landing .hero-lead { max-width: min(32vw, 480px); margin: 0 0 clamp(24px, 4svh, 34px); color: var(--on-dark-soft); }
.landing .button { background: var(--paper); color: var(--ink); }
.landing .text-link { color: var(--paper); }
.landing-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 32px; margin: 0; padding: clamp(18px, 3svh, 28px) 0; border-top: 1px solid var(--on-dark-line); list-style: none; color: var(--paper); font-weight: 600; line-height: 1.3; }
.landing-points li { display: flex; align-items: center; gap: 10px; }
.landing-points .icon { flex: none; width: 20px; height: 20px; color: var(--on-dark-accent); }

/* Homepage cost block: the same setup as a till receipt of separate bills, beside the one FMX bill. */
.bill-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.bill-head h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.055em; line-height: 1; }
.bill-head .lead { margin: 0; }
.bill-compare { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.bill-compare ul { margin: 0; padding: 0; list-style: none; }
.bill-paper { padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) clamp(36px, 4vw, 48px); background: var(--surface); color: var(--ink); font-family: var(--font-mono); rotate: -1.5deg; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.bill-paper h3 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bill-paper li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: .9375rem; }
.bill-paper li b { font-weight: 500; }
.bill-total { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.bill-total b { font-size: clamp(40px, 4.4vw, 60px); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.bill-paper .bill-total > span:first-child { margin-right: auto; }
.bill-fmx { padding: clamp(28px, 3.4vw, 44px); background: var(--ink); border-radius: var(--radius-lg); color: var(--paper); }
.bill-fmx h3 { margin: 0 0 20px; font-size: 1.375rem; font-weight: 450; letter-spacing: -.02em; }
.bill-fmx ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.bill-fmx li { display: flex; gap: 10px; font-weight: 500; line-height: 1.3; }
.bill-fmx .icon { flex: none; width: 20px; height: 20px; color: var(--on-dark-accent); }
.bill-fmx .bill-total { justify-content: flex-end; margin-top: 24px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-soft); }
.bill-fmx .bill-total b { color: var(--paper); font-size: clamp(56px, 6.4vw, 92px); }
.bill-saving { margin: clamp(32px, 4vw, 48px) 0 0; color: var(--ink); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.bill-free { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink); font-weight: 600; line-height: 1.3; }
.bill-free li { display: flex; gap: 10px; }
.bill-free .icon { flex: none; width: 20px; height: 20px; color: var(--accent); }
.bill-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: 28px; }
.bill-foot .compact-note { max-width: 560px; margin: 0; }
.bill-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* Commission calculator on the pricing page. */
#savings .section-heading .text-link { margin-top: 20px; }
.savings-field { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); font-weight: 600; }
.savings-input { display: inline-flex; flex: none; align-items: center; gap: 6px; width: 148px; padding: 0 14px; background: var(--surface-2); border-radius: 12px; font-family: var(--font-mono); }
.savings-input:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.savings-input i { color: var(--muted); font-style: normal; }
.savings-input input { width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.125rem; font-weight: 600; text-align: right; outline: 0; appearance: textfield; }
.savings-input input::-webkit-inner-spin-button { appearance: none; }

/* Comparison page. */
.notfound-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.cost-stack { display: grid; gap: 28px; }
.cost-stack .section-heading { margin: 0; }
.cost-stack > .compact-note { max-width: 860px; margin: 0; }
.cost-table { overflow-x: auto; }
.cost-table .compare-table { min-width: 640px; }
.cost-table .compare-table thead th:first-child { width: auto; }
.cost-table .is-fmx > * { background: var(--accent-soft); }
.cost-table td b { color: var(--ink); font-weight: 650; }
.cost-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(40px, 6vw, 96px); }
.cost-columns h2 { margin-bottom: 20px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; line-height: 1.1; }
.cost-columns p { margin-bottom: 20px; }
.cost-limits { display: grid; gap: 14px; margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.55; }
.cost-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; margin: 0; padding: 0; list-style: none; }
.cost-sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Over the landing the header is see-through and light; it turns solid once the landing has scrolled away. */
.has-js body:not(.menu-open) .site-header.is-over-landing { background: transparent; border-bottom-color: var(--on-dark-line); backdrop-filter: none; }
.has-js body:not(.menu-open) .is-over-landing :is(.brand, .main-nav > a, .nav-trigger, .header-signin) { color: var(--paper); }
.has-js body:not(.menu-open) .is-over-landing .header-signin { border-color: var(--on-dark-line); }
.has-js body:not(.menu-open) .is-over-landing .header-signin .icon { color: var(--on-dark-accent); }
.has-js body:not(.menu-open) .is-over-landing .main-nav > a[aria-current=page]:after { background: var(--paper); }
.has-js body:not(.menu-open) .is-over-landing :is(.language-switch, .menu-toggle) { background: transparent; border-color: var(--on-dark-line); color: var(--paper); }
.has-js body:not(.menu-open) .is-over-landing .header-actions > .button { background: var(--paper); color: var(--ink); }

/* System map: where orders come from, the till, where they go. Lines are drawn by site.js. */
.flow-section { border-top: 1px solid var(--line); }
.flow-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.flow-detail .product-frame { margin: 0; }
.flow-notes article { padding: 20px 0; border-top: 1px solid var(--line); }
.flow-notes article:first-child { padding-top: 0; border-top: 0; }
.flow-notes article:last-child { padding-bottom: 0; }
.flow-notes h3 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.25; }
.flow-notes p { margin: 0; color: var(--muted); }
.flow-section .section-link { margin-top: 36px; }
.flow-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(64px, 9vw, 140px);
  align-items: center;
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.25; }
.flow-lines circle { fill: var(--accent); }
.flow-col { position: relative; z-index: 1; }
.flow-col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.flow-node .icon { color: var(--accent); }
.flow-hub {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
  background: var(--ink);
  border-radius: 20px;
  color: var(--paper);
  box-shadow: var(--shadow-lift);
}
.flow-mark { display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: url("assets/fmx-mark-64.png") center / cover; }
.flow-hub p { margin: 0 0 22px; color: var(--on-dark-soft); font-size: .9375rem; line-height: 1.5; }
.flow-hub .flow-hub-name { margin: 0 0 6px; color: var(--paper); font-family: "Segoe UI", Arial, sans-serif; font-size: 26px; letter-spacing: -.03em; }
.flow-hub-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgb(255 255 255 / .12); }
.flow-hub-list li { padding: 3px 9px; border: 1px solid var(--on-dark-rule-strong); border-radius: 6px; color: var(--on-dark-soft); font-family: var(--font-mono); font-size: .75rem; }

/* Order journey: the screens pin on the left while the steps scroll past. */
.story-section { position: relative; padding: 120px 0 0; background: var(--paper); border-top: 1px solid var(--line); }
.story-section .section-heading { max-width: 760px; }
.story-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.story-pinned { min-width: 0; }
.story-stage { position: relative; top: 0; padding: 25px 0 50px; }
.story-frames { position: relative; overflow: hidden; aspect-ratio: 1.75; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
/* A waiting screen sits just right of the stage with its picture shifted back by the same amount, so as both
   move to rest the edge sweeps across while the picture stays put. Transforms only: the wipe keeps running
   while the page is being scrolled hard. */
.story-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateX(100%);
  pointer-events: none;
}
.story-frame > * { transform: translateX(-100%); }
.story-frame:first-child, .story-frame.is-past, .story-frame.is-active,
:is(.story-frame:first-child, .story-frame.is-past, .story-frame.is-active) > * { transform: none; }
.story-frame.is-active { pointer-events: auto; }
.story-frame .product-frame { box-shadow: none; }
.story-progress { height: 2px; margin: 25px 6% 0; overflow: hidden; background: var(--line); }
.story-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(.3333);
  transition: transform 650ms var(--ease-out);
}

.story-step {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 0;
  scroll-margin-top: 20px;
}
.story-step h3 { font-size: 36px; margin-bottom: 20px; letter-spacing: -.04em; }
.story-step p { font-size: 16px; }
.step-count { margin-bottom: 18px; color: var(--accent) !important; font-family: var(--font-mono); font-size: .8125rem !important; font-weight: 500; }
.mobile-scene { display: none; }
/* A live illustration in a screen's place: the offline queue fills its frame. */
.story-frame .frame-demo { display: grid; place-items: center; height: 100%; padding: 6% 9%; background: var(--surface-2); }
.frame-demo .queue-demo { width: 100%; max-width: 560px; background: var(--paper); box-shadow: var(--shadow-soft); }

/* Every feature, grouped: titles to scan, each opening to its detail. */
.feature-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.feature-list h3 { margin-bottom: 12px; font-size: 22px; letter-spacing: -.03em; }
.feature-item { border-top: 1px solid var(--line-strong); }
.feature-list .feature-item:last-child { border-bottom: 1px solid var(--line-strong); }
.feature-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.feature-item summary::-webkit-details-marker { display: none; }
.feature-item summary:after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 250ms var(--ease-out), border-color 200ms ease;
}
.feature-item[open] summary:after { border-color: var(--accent); transform: translateY(2px) rotate(-135deg); }
.feature-item p { max-width: 560px; margin: 0; padding: 0 32px 18px 0; font-size: .9375rem; line-height: 1.6; }

/* The price, in one line, between the map and the demo. */
.price-strip { padding: 40px 0; background: var(--surface); border-block: 1px solid var(--line); }
.price-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.price-strip p { margin: 0; color: var(--ink); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.price-strip + .cta-section { padding-top: clamp(40px, 4vw, 56px); }
.setup-grid + .spec-groups { margin-top: 64px; }
/* Headline selling points: copy and proof side by side, alternating. */
/* A card for a selling point: copy beside its picture, or beside a film on a dark card. */
.proof-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(40px, 5vw, 80px); padding: clamp(28px, 3vw, 44px); background: var(--surface); border-radius: var(--radius-lg); }
.proof-card :is(h2, h3) { margin-bottom: 14px; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1.1; }
.proof-card .proof-copy p { max-width: 480px; margin: 0; }
.proof-card.dark { background: var(--ink); }
.proof-card .proof-copy .proof-data { margin-top: 14px; color: var(--paper); font-weight: 600; }
.bill-section + .ai-section { padding-top: 0; }
.proof-film { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); padding: clamp(14px, 1.4vw, 20px) clamp(28px, 3vw, 44px) clamp(14px, 1.4vw, 20px) clamp(14px, 1.4vw, 20px); }
.proof-film .proof-copy { order: 2; }
.proof-row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.proof-row:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-row:nth-of-type(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.proof-row:nth-of-type(even) .proof-copy { order: 2; }
.proof-row h3 { margin-bottom: 18px; font-size: clamp(28px, 2.7vw, 38px); letter-spacing: -.04em; line-height: 1.1; }
.proof-copy p { max-width: 460px; }
/* An illustration of the till's queue, switching between away and back. */
.queue-demo { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; }
.queue-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  color: var(--warn);
  font-weight: 600;
}
.queue-state:before { content: ""; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.queue-demo ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.queue-demo li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 72px;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.queue-demo b { font-family: var(--font-mono); font-size: .8125rem; }
.queue-demo span { color: var(--muted); }
.queue-demo em { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.queue-demo i { justify-self: end; color: var(--warn); font-size: .8125rem; font-style: normal; font-weight: 600; }
.queue-demo.is-back .queue-state { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.queue-demo.is-back i { color: var(--ok); }
/* Where the records live: in the venue, whichever licence. */
.data-demo { width: 100%; max-width: 560px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; }
.frame-demo .data-demo { padding: 20px; background: var(--paper); box-shadow: var(--shadow-soft); }
/* Inside a 16:9 screen the records sit two by two; the licence line below says where they live. */
.frame-demo .data-place { margin-bottom: 12px; }
.frame-demo .data-demo ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.frame-demo .data-demo li { grid-template-columns: 18px minmax(0, 1fr); padding: 10px 14px; }
.frame-demo .data-demo li i { display: none; }
.frame-demo .data-plans { margin-top: 14px; }
.data-place { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; background: var(--ink); border-radius: 10px; color: var(--paper); }
.data-place .icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--on-dark-accent); }
.data-place b { display: block; font-weight: 600; }
.data-place small { color: var(--on-dark-soft); font-size: .8125rem; }
.data-demo ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.data-demo li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.data-demo li .icon { width: 18px; height: 18px; color: var(--muted); }
.data-demo li i { color: var(--ok); font-size: .8125rem; font-style: normal; font-weight: 600; }
.data-plans, .demo-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; color: var(--ink-soft); font-size: .875rem; font-weight: 600; }
.data-plans span, .demo-notes span { display: inline-flex; align-items: center; gap: 6px; }
.data-plans .icon, .demo-notes .icon { width: 16px; height: 16px; color: var(--ok); }

/* Interface styles: the same order in each skin. The tabs choose one; the screens sit on top of each other. */
.skins { display: grid; justify-items: start; gap: 24px; }
.skin-tabs [role=tab] { display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; }
.skin-swatch { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--swatch); }
.skin-swatch.skin-precision { --swatch: var(--skin-precision); }
.skin-swatch.skin-service { --swatch: var(--skin-service); }
.skin-swatch.skin-blueprint { --swatch: var(--skin-blueprint); }
.skin-swatch.skin-utilitarian { --swatch: var(--skin-utilitarian); }
.skin-swatch.skin-classic { --swatch: var(--skin-classic); }
.skin-stage { display: grid; width: 100%; margin: 0; }
.skin-stage .scene { grid-area: 1 / 1; }
.skin-stage .scene[hidden] { display: block; opacity: 0; visibility: hidden; }
.skins-note { margin: 0; color: var(--muted); font-size: .875rem; }

/* Everything else: a two-column list, no cards. */
.details-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.details-layout .section-heading h2 { margin-bottom: 28px; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin: 0; }
.detail-specs > div { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.detail-specs dt { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.detail-specs dt .icon { color: var(--accent); }
.detail-specs dd { margin: 0 0 0 30px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
/* A heading and one line beside it, with no list below. */
.band-layout { align-items: end; }
.band-layout .section-heading, .band-layout .section-heading h2, .band-layout .lead { margin-bottom: 0; }

/* Venue switcher */
.tab-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.tab-switch [role=tab] { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.tab-switch [aria-selected=true] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-control); }

/* Two options side by side in one panel, a hairline between them. */
.compare-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare-panel > div { padding: 40px 44px; }
.compare-panel > div + div { border-left: 1px solid var(--line); }
.compare-panel h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; font-size: 24px; }
.compare-panel h3 .icon { width: 24px; height: 24px; color: var(--accent); }
.compare-panel small { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: 0; }
.compare-panel .text-link { margin-top: 24px; }
.tick-list { margin: 0; padding: 0; list-style: none; }
.tick-list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.tick-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Closing call to action: one contained ink panel */
/* The section above already ends with its own padding; only a grey section needs a white gap before the panel. */
.cta-section { padding: 0 0 clamp(48px, 5vw, 72px); background: var(--paper); }
.soft + .cta-section { padding-top: clamp(40px, 4vw, 56px); }
.cta-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  padding: clamp(40px, 5vw, 72px);
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--paper);
}
.cta-inner:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70%;
  right: -15%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow-blue), transparent 65%);
  pointer-events: none;
}
.cta-inner h2 { margin-bottom: 20px; font-size: clamp(36px, 4vw, 58px); }
.cta-inner p { max-width: 600px; margin-bottom: 0; color: var(--on-dark-soft); }
.cta-inner > .button, .cta-actions .button { flex-shrink: 0; background: var(--paper); color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; }
.cta-actions .button.outline { background: none; border-color: var(--on-dark-muted); color: var(--paper); }
.cta-inner .eyebrow { margin-bottom: 14px; color: var(--on-dark-accent); }
.cta-inner .cta-email { margin-top: 18px; font-size: 1.125rem; font-weight: 600; }
.cta-email a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Inner pages */
.page-hero { padding: calc(var(--header-height) + 96px) 0 80px; background: var(--paper); border-bottom: 1px solid var(--line); }
/* Long compound words (German titles) break with a hyphen rather than run off a phone screen. */
.page-hero h1 { hyphens: auto; overflow-wrap: break-word; }
.page-hero h1 { letter-spacing: -.055em; line-height: 1; }
.hero-bottom { margin-top: 32px; }
.hero-bottom .lead { max-width: 560px; margin: 0; }
.section-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.section-nav .wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-block: 12px; }
.section-nav a { padding: 7px 13px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.section-nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.card { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin-bottom: 14px; }
.card p { margin: 0; font-size: 1rem; line-height: 1.7; }
.feature-grid .card {
  padding: 26px 0 12px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.feature-grid .card:has(> .feature-icon) { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; }
.feature-grid .card > :not(.feature-icon) { grid-column: 2; }
.feature-grid .feature-icon { grid-row: 1; width: 22px; height: 22px; margin: 0; padding-top: 3px; place-items: start; background: none; }
.feature-grid .feature-icon .icon { width: 22px; height: 22px; }
.feature-grid .card h3 { font-size: 20px; letter-spacing: -.02em; }

.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.setup-card { padding: 44px; background: var(--surface); border-radius: var(--radius); }
.soft .setup-card:not(.dark) { background: var(--paper); }
.setup-card h3 { margin: 28px 0 16px; font-size: 30px; letter-spacing: -.04em; }
.setup-card p { margin: 0; }
.dark { background: var(--ink); color: white; }
.dark p { color: var(--on-dark-soft); }
.setup-diagram {
  position: relative;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}
.device {
  position: relative;
  display: grid;
  place-content: center;
  width: 120px;
  height: 85px;
  border: 2px solid var(--diagram-line);
  border-radius: 10px;
  background: var(--glass-soft);
  text-align: center;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 700;
}
.device span { font-size: .875rem; letter-spacing: .15em; }
.device:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 18px;
  bottom: -20px;
  left: 38px;
  border-bottom: 3px solid var(--diagram-line);
  background: linear-gradient(90deg, transparent 43%, var(--diagram-line) 43% 57%, transparent 57%);
}
.multi .device { background: var(--on-dark-faint); border-color: var(--on-dark-muted); }
.shared-line { position: absolute; bottom: 17px; width: 155px; border-bottom: 1px dashed var(--on-dark-muted); }
.shared-label {
  position: absolute;
  bottom: -5px;
  color: var(--on-dark-muted);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.spec-groups { display: grid; gap: 56px; }
.spec-group h3 { margin-bottom: 14px; font-size: 20px; letter-spacing: -.02em; }
.specifications { margin: 0; border-top: 1px solid var(--line-strong); }
.specifications > div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}
.specifications dt { font-weight: 650; color: var(--ink); }
.specifications dd { margin: 0; max-width: 800px; color: var(--muted); }
.detail-list article {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.detail-list p { margin: 0; }
.detail-list h3 { font-size: 23px; }
/* Pricing: cloud or offline, monthly or annual; a plan card beside its options. */
.plan-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 40px; }
.billing-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.billing-switch button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.billing-switch [aria-pressed=true] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-control); }
.billing-switch small { margin-left: 4px; color: var(--accent); font-size: .75rem; font-weight: 600; }
/* Billing only changes cloud prices, so it steps aside while the offline licence is shown. */
.plan-bar:has(~ #plan-cloud[hidden]) .billing-switch { visibility: hidden; }
.pricing-plans:not(.is-annual) .when-annual, .pricing-plans.is-annual .when-monthly { display: none; }
.plan-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.plan-panel[hidden] { display: none; }
.plan-card { padding: 40px; background: var(--ink); border-radius: var(--radius-lg); color: var(--paper); box-shadow: var(--shadow-lift); }
.plan-card h2 { margin-bottom: 18px; font-size: 22px; letter-spacing: -.02em; }
.plan-card p { color: var(--on-dark-soft); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 0; white-space: nowrap; }
.price-figure { color: var(--ink); font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--muted); font-size: .875rem; }
.price-main { margin-bottom: 18px; }
.plan-card .price-figure { color: var(--paper); }
.plan-card .price-unit { color: var(--on-dark-muted); }
.price-main .price-figure { font-size: clamp(52px, 5vw, 68px); letter-spacing: -.05em; line-height: 1; }
.price-main .price-unit { font-size: 1rem; }
.plan-card .plan-extra { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0; border-block: 1px solid rgb(255 255 255 / .14); color: var(--paper); font-weight: 500; }
.plan-card .tick-list { margin-top: 8px; }
.plan-card .tick-list li { color: var(--on-dark-soft); border-color: var(--on-dark-rule); }
.plan-card .tick-list li:before { border-color: var(--on-dark-accent); }
.plan-options h3 { margin-bottom: 8px; font-size: 24px; letter-spacing: -.03em; }
.plan-options > p:not(.compact-note) { margin-bottom: 20px; }
.price-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-list li > div { display: grid; gap: 4px; min-width: 0; }
.price-list strong { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.price-list li > div span { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
/* The bundle box bleeds out by its own padding, so its name and price line up with the rows above. */
.price-list .is-bundle { margin: 12px -16px 0; padding: 20px 16px; background: var(--accent-soft); border: 0; border-radius: var(--radius); }
.price-list .is-bundle .price-figure { color: var(--accent); }
.price-list li:has(.price-perks) { flex-wrap: wrap; row-gap: 0; }
.price-list li:has(.price-perks) > div { flex: 1 1 0; }
.price-list .price-perks { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 8px; margin: 10px 0 0; }
.price-list .price-perks > span { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.price-list .price-perks span span { color: inherit; font-size: inherit; line-height: inherit; }
.price-list .price-perks .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.plan-options .compact-note { margin: 20px 0 0; }
.calc-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.calc { display: grid; gap: 24px; padding: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 9px; background: var(--paper); color: var(--ink); }
.stepper output { min-width: 48px; text-align: center; font-family: var(--font-mono); font-size: 1.125rem; font-weight: 600; }
.calc-modules { display: grid; gap: 4px; margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
.calc-modules legend { float: left; width: 100%; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.calc-modules label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; color: var(--ink-soft); cursor: pointer; }
.calc-modules input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.calc-modules em { color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }
.calc-total { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-total dt { color: var(--muted); font-size: .875rem; }
.calc-total dd { margin: 4px 0 0; color: var(--ink); font-size: clamp(32px, 3.4vw, 44px); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calc-total div + div dd { color: var(--ink-soft); }
.calc .compact-note { margin: 0; }
/* Cloud or offline, row by row. */
.compare-table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 16px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { padding-block: 20px; color: var(--ink); font-size: 1.0625rem; font-weight: 650; background: var(--surface); }
.compare-table thead th:first-child { width: 40%; }
.compare-table tbody th { color: var(--ink); font-weight: 600; }
.compare-table td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.compare-table td .icon { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; color: var(--accent); }
.compare-table .cmp-none .icon { color: var(--line-strong); margin: 0; }
.compare-table .cmp-muted { color: var(--muted); }
.plan-card .plan-equivalent { margin: -8px 0 16px; color: var(--on-dark-accent); font-weight: 500; }
.examples-title { margin: 36px 0 12px; font-size: 1rem; letter-spacing: 0; }
.calc-examples { display: grid; gap: 8px; }
.calc-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.calc-example strong { font-weight: 600; }
.calc-example span { grid-column: 1; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.calc-example em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-weight: 650; font-variant-numeric: tabular-nums; }
.calc-example small { margin-left: 2px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.calc-example[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); }
.calc-lines { display: grid; gap: 8px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-lines > div { display: flex; justify-content: space-between; gap: 16px; }
.calc-lines > div[hidden] { display: none; }
.calc-lines dt { color: var(--muted); font-size: .9375rem; }
.calc-lines dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.calc-modules .calc-included { display: none; color: var(--accent); font-weight: 600; }
.calc-modules .is-included { cursor: default; }
.calc-modules .is-included .calc-price { display: none; }
.calc-modules .is-included .calc-included { display: inline; }
.compare-table .cmp-note { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
/* Pricing opens with one question: two large choices, each showing its part of the page. */
.choice-section { padding-top: clamp(56px, 6vw, 88px); }
.choice-title { margin-bottom: 24px; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.035em; }
.choice-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice-tab {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-content: start;
  gap: 6px 16px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.choice-tab > * { grid-column: 2; }
.choice-tab .choice-mark { grid-column: 1; grid-row: 1; align-self: center; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--paper); }
.choice-tab strong { grid-row: 1; font-size: 1.3125rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.choice-tab span:not(.choice-mark) { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.choice-tab em { margin-top: 6px; color: var(--accent); font-style: normal; font-weight: 600; }
.choice-tab[aria-selected=true] { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-tab[aria-selected=true] .choice-mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--paper); }
.choice-panel > .section:first-child { padding-top: 56px; }
/* Before the plans: check existing hardware first. */
.check-note { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 40px; padding: 18px 22px; background: var(--accent-soft); border-radius: var(--radius); color: var(--ink); font-size: 1rem; line-height: 1.55; }
.check-note .icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.check-note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
/* Hardware packages: the starting price, then a card per package. */
.hardware-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.hardware-head .section-heading { margin-bottom: 0; }
.hw-from { margin: 0; color: var(--muted); font-size: 1.125rem; white-space: nowrap; }
.hw-from strong { color: var(--ink); font-size: clamp(52px, 5vw, 68px); font-weight: 650; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.hw-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 20px; padding: 0; list-style: none; }
.hw-package { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.hw-package h3 { margin: 0; font-size: 20px; }
.hw-package p { margin: 0 0 14px; color: var(--muted); font-size: .9375rem; }
.hw-package .button { margin-top: auto; }
.detail-list p a, .footnote a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
/* Home page: the hardware selling point and its footnote. */
.hardware-band .lead { margin-bottom: 28px; }
.hardware-band sup { margin-left: 1px; color: var(--accent); font-size: .65em; font-weight: 600; line-height: 0; }
.footnote { margin: 28px 0 0; max-width: 640px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
@media (max-width: 900px) {
  .hw-packages { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hw-package { padding: 24px; }
}
@media (max-width: 640px) {
  .choice-tabs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .choice-tab { padding: 20px; gap: 4px 14px; }
  .choice-panel > .section:first-child { padding-top: 40px; }
  .hw-from { white-space: normal; }
}
/* Support: the help centre and its topics, then support stage by stage. */
.help-centre { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.help-centre-copy h2 { margin-bottom: 20px; }
.help-centre-copy .lead { margin-bottom: 32px; }
.help-centre-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.help-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.help-topic {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-content: start;
  padding: 24px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background-color 200ms ease;
}
.help-topic .icon { grid-row: 1 / 3; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.help-topic strong { color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.help-topic span { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
/* Product overview: one row per venue page. */
.venue-links { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-strong); }
.venue-links a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; column-gap: 14px; row-gap: 4px; align-items: center; padding: 20px 12px; border-top: 1px solid var(--line-strong); transition: background-color 200ms ease; }
.venue-links .icon { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--accent); }
.venue-links .icon:last-child { grid-column: 3; width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.venue-links strong { color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.venue-links span { grid-column: 2; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.support-stages { margin: 0; padding: 0; list-style: none; }
.support-stage { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 48px; padding: 40px 0; border-top: 1px solid var(--line-strong); }
.support-stage:last-child { padding-bottom: 0; }
.stage-count { display: block; margin-bottom: 12px; color: var(--accent); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; }
.stage-label h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.035em; line-height: 1.15; }
.support-stage .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.support-stage .feature-grid .card { padding: 0; border-top: 0; }
.compare-panel > div > p { margin: 0 0 4px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; }
/* Download: the installer beside how the trial licence works. */
/* Download: one panel with the Windows installer and the Android app side by side, then the steps and the trial. */
.download-section { padding-bottom: clamp(64px, 7vw, 104px); }
.download-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr auto; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--paper); }
/* Each option spans the panel's rows, so the labels, titles, facts and buttons line up across both. */
.download-option { display: grid; grid-row: span 5; grid-template-rows: subgrid; justify-items: start; row-gap: 22px; padding: clamp(32px, 4vw, 56px); }
.download-option + .download-option { border-left: 1px solid var(--line); }
.download-label { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--accent); font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; }
.download-label .icon { width: 22px; height: 22px; }
.download-option h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.04em; }
.download-option > p:not(.download-label) { margin: 0; max-width: 470px; }
.download-facts { display: grid; justify-self: stretch; align-self: start; margin: 0; }
.download-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.download-facts > div:last-child { border-bottom: 1px solid var(--line); }
.download-facts dt { color: var(--muted); font-size: .9375rem; }
.download-facts dd { margin: 0; color: var(--ink); font-size: .9375rem; }
.download-facts .facts-link { display: table; margin-top: 4px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.download-version { font-family: var(--font-mono); font-size: .8125rem !important; padding-top: 2px; }
.download-actions { display: grid; justify-items: start; gap: 12px; }
.download-note { margin: 0; color: var(--muted); font-size: .875rem; }
.download-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 0; padding: 0; list-style: none; }
.download-steps li { padding-top: 26px; border-top: 1px solid var(--line-strong); }
/* Beside the getting-started film the steps stand in a column and follow it: the step on screen is marked and its
   rule fills as that part of the film plays (site.js). */
.steps-layout { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); align-items: center; gap: clamp(36px, 4vw, 64px); }
.steps-layout .download-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.steps-layout .download-steps li { position: relative; padding-top: 20px; transition: opacity 300ms ease; }
.steps-layout .download-steps li:before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(var(--step-progress, 0)); transform-origin: 0 50%; }
.steps-layout .download-steps .step-count { margin-bottom: 10px; }
.steps-layout .download-steps h3 { margin-bottom: 8px; font-size: 22px; }
.has-js .steps-layout .download-steps li:not(.is-current) { opacity: .5; }
.steps-film .promo { box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.download-steps h3 { margin-bottom: 12px; }
.download-steps p:last-child { margin: 0; }
.trial-section { border-top: 1px solid var(--line); }
.trial-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.trial-heading { display: grid; justify-items: start; gap: 22px; }
.trial-heading h2, .trial-heading .lead { margin: 0; }
.trial-points { display: grid; margin: 0; padding: 0; list-style: none; }
.trial-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.trial-points li:last-child { border-bottom: 1px solid var(--line); }
.trial-points .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.contact-topics { list-style: none; padding: 0; margin: 0; counter-reset: topic; }
.contact-topics li { counter-increment: topic; position: relative; display: grid; grid-template-columns: 48px 1fr; padding: 26px 0; border-top: 1px solid var(--line); font-size: 19px; }
.contact-topics li:before { content: counter(topic, decimal-leading-zero); padding-top: 5px; color: var(--accent); font-family: var(--font-mono); font-size: .8125rem; }
.contact-panel {
  padding: 40px;
  background: var(--surface);
  border-radius: var(--radius);
}
.contact-panel h2 { margin-bottom: 22px; font-size: 34px; }
.contact-panel dl { margin: 30px 0 0; }
.contact-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 1rem;
}
.contact-panel dd { margin: 0; color: var(--muted); }

/* Venue pages: a pair of phone captures, a single-column spec list beside them, and links to help-centre guides. */
.venue-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.venue-split .compact-note { margin: 20px 0 0; }
.detail-specs.single { grid-template-columns: minmax(0, 1fr); }
.proof-copy .compact-note { margin: 0; }
.venue-panel { margin-top: 64px; }
.soft .detail-specs { margin-top: 48px; }
.phone-pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 36px); }
.phone-frame { width: min(250px, 46%); padding: 7px; background: var(--ink); border-radius: 34px; box-shadow: var(--shadow-lift); }
.phone-frame .screen-expand, .phone-frame .scene { border-radius: 27px; }
.phone-frame .scene { width: 100%; aspect-ratio: 390 / 844; }
.phone-pair .phone-frame + .phone-frame { margin-top: 72px; }
.phone-frame .expand-indicator { top: 14px; bottom: auto; right: 14px; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.guide-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 100%; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.guide-list strong { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.guide-list small { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.guide-list .icon { width: 18px; height: 18px; color: var(--accent); }
.guides-section { border-top: 1px solid var(--line); }
.soft + .guides-section { border-top: 0; }

/* Footer */
.site-footer { padding: 76px 0 28px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-tagline { margin: 24px 0 7px; color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.footer-grid h3 { margin-bottom: 18px; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.footer-link { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 1rem; color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}
.footer-bottom span:last-child { max-width: 760px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-soft); font-weight: 600; }

/* Legal pages: a contents list beside long-form text set to a reading measure. */
.legal { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-height) + 32px); }
.legal-nav p { margin: 0 0 14px; color: var(--muted); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-nav ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.4; }
.legal-nav a { color: var(--ink-soft); }
.legal-body { max-width: 72ch; }
.legal-body section + section { margin-top: 44px; }
.legal-body h2 { margin-bottom: 14px; font-size: 24px; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-height) + 24px); }
.legal-body p, .legal-body li { color: var(--ink-soft); line-height: 1.7; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li + li { margin-top: 8px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal-table th, .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--ink); background: var(--surface); }
.legal-language { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; }
html:lang(en) .legal-language { display: none; }

/* Chinese scripts need more line height and a smaller display size. */
html:is(:lang(zh), :lang(yue)) h1 { font-size: clamp(42px, 4.8vw, 72px); line-height: 1.25; letter-spacing: -.03em; }
html:is(:lang(zh), :lang(yue)) .landing h1 { font-size: clamp(44px, 3.9vw, 72px); line-height: 1.16; }
html:is(:lang(zh), :lang(yue)) h2 { line-height: 1.3; letter-spacing: -.02em; }
html:is(:lang(zh), :lang(yue)) h3 { line-height: 1.4; }
html:is(:lang(zh), :lang(yue)) .story-step h3 { font-size: 32px; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink-hover); }
  .button.outline:hover { background: var(--surface); border-color: var(--ink); }
  .cta-inner > .button:hover, .cta-actions .button:hover { background: var(--surface-2); }
  .cta-actions .button.outline:hover { background: var(--on-dark-line); border-color: var(--paper); }
  .stepper button:hover { background: var(--surface); }
  .calc-example[aria-pressed=false]:hover { border-color: var(--line-strong); }
  .choice-tab[aria-selected=false]:hover { border-color: var(--ink-soft); }
  .header-signin:hover { border-color: var(--accent); color: var(--accent); }
  .main-nav > a:hover, .nav-trigger:hover, .footer-link:hover, .text-link:hover, .footer-legal a:hover, .legal-nav a:hover { color: var(--ink); }
  .landing .button:hover, .has-js body:not(.menu-open) .is-over-landing .header-actions > .button:hover { background: var(--surface-2); }
  .landing .text-link:hover, .has-js body:not(.menu-open) .is-over-landing :is(.main-nav > a, .nav-trigger, .header-signin):hover { color: var(--on-dark-accent); }
  .has-js body:not(.menu-open) .is-over-landing .header-signin:hover { border-color: var(--on-dark-accent); }
  .nav-menu a:hover { background: var(--surface); }
  .nav-menu .nav-overview:hover { background: var(--surface-2); }
  .nav-overview:hover strong { color: var(--accent); }
  .nav-overview:hover .nav-overview-link .icon, .venue-links a:hover > .icon:last-child { transform: translateX(4px); }
  .venue-links a:hover { background: var(--surface); }
  .flow-node:hover { border-color: var(--node-hover); transform: translateY(-2px); }
  .help-topic:hover { background: var(--surface); }
  .guide-list a:hover strong { color: var(--accent); }
  .tab-switch [aria-selected=false]:hover, .billing-switch [aria-pressed=false]:hover { color: var(--ink); }
  .section-nav a:hover { background: var(--surface); color: var(--ink); }
  .language-menu [role=option]:hover { background: var(--surface); }
  .language-switch:hover, .menu-toggle:hover { background: var(--surface-2); }
  .screen-expand:hover .expand-indicator, .screen-dialog-close:hover { background: var(--surface-2); }
}

@media (min-width: 801px) {
  .story-layout { padding-bottom: clamp(180px, 30vh, 320px); }
  .story-step { min-height: 400px; padding: 48px 0; }
  .story-step:first-child {
    margin-top: clamp(90px, 15vh, 160px);
    margin-bottom: clamp(60px, 10vh, 100px);
  }
  .story-pinned .section-heading { margin-bottom: 20px; }
  .story-pinned h2 { font-size: 34px; margin-bottom: 12px; }
  .story-pinned .lead { font-size: 1rem; line-height: 1.5; }
  .story-pinned .story-stage { padding: 0; }
  .story-pinned .story-frames {
    width: min(100%, calc((100svh - var(--header-height) - 310px) * 1.66));
    margin-inline: auto;
  }
  .story-pinned .story-progress { margin-top: 16px; }
  .page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); column-gap: 64px; align-items: end; }
  .page-hero .wrap > :not(h1, .hero-bottom) { grid-column: 1 / -1; }
  .page-hero .hero-bottom { margin: 0 0 6px; }
  .page-hero .hero-bottom .lead { font-size: 18px; }
}

@media (max-width: 1100px) {
  .header-inner { width: calc(100% - 40px); }
  .main-nav { gap: 18px; }
  .wrap { width: calc(100% - 64px); }
  .flow-map { gap: 56px; }
  .story-layout { gap: 38px; grid-template-columns: 1.3fr 1fr; }
  .story-step h3 { font-size: 32px; }
  .details-layout { grid-template-columns: 1fr; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { gap: 40px; }
}

/* Below this width the main navigation opens from the menu button. */
@media (max-width: 1100px) {
  .header-inner { min-height: 68px; gap: 12px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions > .button.small { max-width: 132px; min-height: 44px; padding: 9px 14px; font-size: .875rem; white-space: normal; text-align: center; line-height: 1.2; }
  .header-actions > .button .icon { display: none; }
  .has-js .menu-toggle { display: flex; }
  .has-js .header-signin { display: none; }
  .has-js .main-nav .nav-cloud { display: flex; gap: 10px; }
  .has-js .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 20px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px var(--shadow-lift);
  }
  .has-js .menu-open .main-nav { display: flex; max-height: calc(100svh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; }
  .has-js .main-nav > a, .has-js .nav-trigger { display: flex; align-items: center; min-height: 50px; padding: 0 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .has-js .main-nav > a:last-child { border-bottom: 0; }
  .has-js .main-nav > a[aria-current=page], .has-js .nav-group.is-current .nav-trigger { color: var(--accent); }
  .has-js :is(.main-nav > a[aria-current=page], .nav-group.is-current .nav-trigger):after { display: none; }
  /* Compact, the product menu is a group that expands in place. */
  .has-js .nav-group { display: block; }
  .has-js .nav-trigger { width: 100%; justify-content: space-between; }
  .has-js .nav-menu { position: static; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; width: auto; padding: 6px 0 10px; translate: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .has-js .nav-overview { grid-row: auto; padding: 12px 14px !important; }
  .has-js .nav-menu .nav-overview-link { margin-top: 8px; }
  .has-js .nav-menu-label { padding-top: 14px; }
  .language-menu { right: auto; left: 50%; translate: -50% 0; }
  .section-nav .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .section-nav .wrap::-webkit-scrollbar { display: none; }
}

@media (max-width: 900px) {
  /* Stacked, the landing reads copy, till, reasons. The landscape cut is wider than the screen so its till, on the
     right of the frame, comes to the middle. */
  .landing { display: flex; flex-direction: column; min-height: 0; }
  .landing-copy { order: -1; padding-block: 36px 0; }
  .landing .wrap { width: calc(100% - 40px); }
  .landing h1, .landing .hero-lead { max-width: 640px; }
  .landing:before { background: radial-gradient(70% 34% at 50% 62%, var(--landing-glow), transparent 75%), radial-gradient(var(--landing-dot) 1px, transparent 1.5px) 0 0 / 28px 28px; }
  .landing > .promo { position: relative; top: auto; left: auto; width: 150%; margin: -6% 0 -4% -50%; translate: none; }
  .landing > .promo .promo-toggle { top: 12%; right: 16px; }
  .landing-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-head, .bill-compare, .cost-columns, .flow-detail { grid-template-columns: minmax(0, 1fr); }
  .bill-paper { rotate: none; }
  .bill-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Stacked, the map reads top to bottom: where orders come from as a cluster of pills, the system, where they
     go, joined by a short line with a dot running down it. */
  .flow-map { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .flow-lines { display: none; }
  .flow-col ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .flow-node { gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 999px; font-size: .8125rem; white-space: nowrap; }
  .flow-node .icon { width: 16px; height: 16px; }
  .flow-hub { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 20px; border-radius: 16px; }
  .flow-mark { width: 32px; height: 32px; margin: 0; }
  .flow-hub .flow-hub-name { margin: 0; font-size: 22px; }
  .flow-hub p:not(.flow-hub-name), .flow-hub-list { grid-column: 1 / -1; }
  .flow-hub p:not(.flow-hub-name) { margin: 12px 0 14px; font-size: .875rem; }
  .flow-hub-list { padding-top: 14px; }
  .flow-hub:before, .flow-hub:after {
    content: "";
    position: absolute;
    left: 50%;
    width: 12px;
    height: 40px;
    translate: -50% 0;
    background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px) 50% -12px / 12px 12px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 50% 0 / 2px 100% no-repeat;
  }
  .flow-hub:before { bottom: 100%; }
  .flow-hub:after { top: 100%; }
  .proof-row, .proof-row:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .proof-card { display: flex; flex-direction: column; align-items: stretch; }
  .proof-film { padding: clamp(28px, 3vw, 44px); }
  .proof-film .proof-copy { order: 0; }
  .steps-layout { grid-template-columns: minmax(0, 1fr); }
  .proof-row:nth-of-type(even) .proof-copy { order: 0; }
  .venue-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .price-list .is-bundle { margin-inline: -10px; padding-inline: 10px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2:last-child { margin-bottom: 0; }
  .feature-lists { grid-template-columns: 1fr; gap: 40px; }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .venue-panel { margin-top: 40px; }
  .phone-pair .phone-frame + .phone-frame { margin-top: 40px; }
  .price-strip .wrap { flex-direction: column; align-items: flex-start; }
  body { font-size: 16px; }
  .button { white-space: normal; text-align: center; }
  html:not(.has-js) .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 12px; }
  html:not(.has-js) .main-nav { order: 3; width: 100%; margin: 9px 0 0; padding: 6px 0 11px; justify-content: center; flex-wrap: wrap; gap: 4px 23px; }
  html:not(.has-js) .main-nav a { padding: 4px 0; font-size: .875rem; }
  .brand { font-size: 16px; }
  .brand img { width: 28px; height: 28px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 72px; }
  .lead { font-size: 17px; }
  .card { padding: 26px; }
  /* On touch screens every link gets a target a finger can hit; text links get it without moving their underline. */
  .brand, .flow-node, .footer-legal a { min-height: 44px; }
  .footer-legal a { min-width: 44px; }
  .footer-link { min-height: 44px; margin: 0; }
  .text-link { position: relative; }
  .text-link:before { content: ""; position: absolute; inset: -7px 0; }
  .download-facts .facts-link { padding-block: 10px; }
  .landing h1 { font-size: clamp(46px, 13vw, 84px); }
  html:lang(es) .landing h1, html:lang(fr) .landing h1, html:lang(de) .landing h1 { font-size: clamp(42px, 11vw, 72px); }
  .hero-lead { font-size: 17px; }
  .landing .actions { gap: 24px; }
  .landing .hero-platforms { margin-top: 30px; }
  .proof-row { padding: 40px 0; }
  .queue-demo, .data-demo { padding: 16px; }
  .proof-card { gap: 24px; padding: 22px; }
  .proof-film { padding: 22px 14px 14px; }
  .proof-film .proof-copy { padding-inline: 8px; }
  .queue-demo li { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 12px; }
  .queue-demo i { display: none; }
  .detail-specs { grid-template-columns: 1fr; }
  .tab-switch { display: flex; }
  .tab-switch [role=tab] { flex: 1 1 auto; padding: 10px 12px; }
  .compare-panel { grid-template-columns: 1fr; }
  .compare-panel > div { padding: 28px; }
  .compare-panel > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .story-section { padding-top: 72px; padding-bottom: 25px; }
  .story-layout { grid-template-columns: 1fr; gap: 0; }
  .story-stage, .story-progress { display: none; }
  .mobile-scene { display: block; flex-shrink: 0; width: 100%; margin-top: 28px; }
  .story-step { min-height: 0; max-width: none; padding: 32px 0 48px; }
  .story-step:not(:last-child) { border-bottom: 1px solid var(--line); }
  .story-step h3 { font-size: 30px; }
  .cta-section { padding-bottom: 48px; }
  .soft + .cta-section { padding-top: 48px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 30px; }
  .page-hero { padding-top: calc(var(--header-height) + 56px); padding-bottom: 56px; }
  .page-hero h1 { font-size: clamp(42px, 9vw, 64px); }
  .section-nav .wrap { gap: 3px; padding-block: 8px; }
  .section-nav a { padding: 6px 10px; font-size: .8125rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 24px; }
  .feature-grid .card { padding: 22px 0 0; }
  .setup-grid, .contact-grid, .plan-panel, .calc-layout, .trial-layout, .download-panel, .download-steps, .legal { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .legal-nav { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .plan-panel { gap: 36px; }
  .plan-card, .calc { padding: 28px; }
  .billing-switch { width: 100%; }
  .billing-switch button { flex: 1 1 auto; }
  /* On phones the annual saving sits on its own line under "Annual", so it never breaks mid-phrase. */
  .billing-switch { align-items: stretch; }
  .billing-switch small { display: block; margin: 2px 0 0; white-space: nowrap; }
  .calc-total { grid-template-columns: 1fr; }
  /* On phones each row shows its label above the two columns it compares. */
  .compare-table, .compare-table tbody { display: block; }
  .compare-table thead tr, .compare-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .compare-table thead { display: none; }
  .compare-table td:before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: .75rem; font-weight: 600; }
  .compare-table tbody th { grid-column: 1 / -1; padding-bottom: 4px; border-bottom: 0; }
  .compare-table th, .compare-table td { padding-inline: 16px; }
  .compare-table td { padding-top: 4px; font-size: .9375rem; }
  .compare-table tbody tr:last-child td { border-bottom: 0; }
  .cost-table .compare-table { min-width: 0; }
  .cost-table td:empty { display: none; }
  .contact-grid { gap: 50px; }
  .help-centre, .support-stage { grid-template-columns: 1fr; gap: 28px; }
  .help-topics, .support-stage .feature-grid { grid-template-columns: 1fr; }
  .help-topic { padding: 20px; }
  .setup-card { padding: 30px; }
  .specifications > div { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .detail-list article { grid-template-columns: 1fr; gap: 12px; }
  .contact-panel { padding: 28px; }
  .contact-topics li { font-size: 17px; }
  .site-footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div { grid-column: 1 / -1; }
  html:is(:lang(zh), :lang(yue)) h1 { font-size: clamp(36px, 7vw, 54px); }
  html:is(:lang(zh), :lang(yue)) .landing h1 { font-size: clamp(44px, 11vw, 64px); }
}

@media (max-width: 400px) {
  /* Two link columns are too narrow for the longer languages here; the groups stack. */
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 480px) {
  .cta-inner h2 { font-size: 32px; }
  .download-actions, .download-actions .button { justify-self: stretch; align-self: stretch; justify-content: center; }
  .download-actions .button { padding-inline: 12px; white-space: nowrap; }
  .setup-card { padding: 24px; }
  .setup-diagram { gap: 18px; }
  .device { width: 100px; }
  .header-inner { width: calc(100% - 28px); }
  .header-actions { gap: 6px; }
  html:not(.has-js) .main-nav { gap: 4px 14px; }
  .eyebrow { font-size: .75rem; }
  .actions { gap: 20px; }
  .section-heading h2 { font-size: 34px; }
  .hero-lead { font-size: 16px; }
  .story-step h3 { font-size: 27px; }
}

/* Download on narrow screens: the two options stack, divided by a hairline. */
@media (max-width: 900px) {
  .download-panel { grid-template-rows: none; }
  .download-option + .download-option { border-left: 0; border-top: 1px solid var(--line); }
  .download-option { padding: 28px 22px; }
  .download-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
}

/* AI assistant: a dark panel with the copy beside a chat window that plays a short conversation (site.js). */
:root {
  --on-dark-fill: rgb(255 255 255 / .07);
  --ai-bar-latest: #d4e0fa;
}
.ai-panel {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 5vw, 76px);
  padding: clamp(36px, 5vw, 64px);
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--paper);
}
.ai-panel:before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -60%;
  left: -20%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--landing-glow), transparent 65%);
  pointer-events: none;
}
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 1px solid var(--on-dark-line);
  border-radius: 999px;
  color: var(--on-dark-accent);
  font-size: .875rem;
  font-weight: 600;
}
.ai-tag .icon { width: 16px; height: 16px; }
.ai-copy h2 { margin-bottom: 18px; color: var(--paper); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: balance; }
.ai-lead { max-width: 34em; margin-bottom: 28px; color: var(--on-dark-soft); font-size: 1.125rem; }
.ai-points { display: grid; gap: 18px; margin: 0 0 26px; padding: 0; list-style: none; }
.ai-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; }
.ai-points li > .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--on-dark-fill); color: var(--on-dark-accent); }
.ai-points h3 { margin: 2px 0 4px; color: var(--paper); font-size: 1.0625rem; }
.ai-points p { margin: 0; color: var(--on-dark-soft); font-size: .9375rem; }
.ai-note { margin-bottom: 12px; color: var(--on-dark-muted); font-size: .875rem; }
.ai-copy .text-link { color: var(--on-dark-accent); }

.ai-chat {
  display: flex;
  flex-direction: column;
  height: 540px;
  overflow: clip;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}
.ai-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.ai-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.ai-avatar .icon { width: 16px; height: 16px; }
.ai-link-state { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.ai-link-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ai-chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  overflow: clip;
  background: var(--surface);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px);
  mask-image: linear-gradient(to bottom, transparent, #000 48px);
}
.ai-chat-log > * { flex-shrink: 0; transition: opacity .4s ease; }
/* While the conversation still fits, it runs down from the top under the welcome; once full, the newest message stays
   at the bottom and the earlier ones fade out at the top. Without scripts the log shows the end of the conversation. */
.ai-chat-log.is-short { justify-content: flex-start; -webkit-mask-image: none; mask-image: none; }
.ai-chat-log.is-short:has(> .ai-welcome:only-child) { justify-content: center; }
.ai-welcome { display: grid; justify-items: center; gap: 12px; padding: 22px 8px 10px; text-align: center; }
.ai-welcome .ai-avatar { width: 44px; height: 44px; }
.ai-welcome .ai-avatar .icon { width: 22px; height: 22px; }
.ai-welcome p { margin: 0; }
.ai-welcome b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.0625rem; }
.ai-welcome p > span { color: var(--muted); font-size: .875rem; }
.ai-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ai-suggest span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: .8125rem; white-space: nowrap; }
.ai-suggest span:last-child { border-color: var(--accent); color: var(--accent); }
.ai-chat-log.is-clearing > * { opacity: 0; }
.ai-msg { max-width: 86%; margin: 0; padding: 11px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.45; }
.ai-user { align-self: flex-end; background: var(--accent); border-bottom-right-radius: 6px; color: var(--paper); }
.ai-bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.ai-bot p { margin: 0; color: var(--ink); }
.ai-bot b { font-variant-numeric: tabular-nums; }
.ai-bars { display: grid; gap: 8px; margin-top: 12px; }
.ai-bar { position: relative; isolation: isolate; overflow: clip; display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .8125rem; }
.ai-bar:before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--w); background: var(--accent-soft); transform-origin: left; }
.ai-bar.is-latest:before { background: var(--ai-bar-latest); }
.ai-bar :is(em, b) { white-space: nowrap; }
.ai-bar em { color: var(--muted); }
.ai-tool {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  background: var(--paper);
  max-width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.45;
}
.ai-tool .icon { flex-shrink: 0; width: 14px; height: 14px; color: var(--ok); }
/* Tick, request and Allow on one row; on a narrow screen the request wraps inside its own column. */
.ai-approve { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-style: solid; }
.ai-allow { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background-color .2s ease, transform .15s var(--ease-out); }
.ai-allow.is-pressed { background: var(--accent); transform: scale(.94); }
.ai-tool.is-running .icon { display: none; }
.ai-tool.is-running:before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: ai-spin .8s linear infinite; }
.ai-dots { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 6px; }
.ai-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ai-dot 1s ease-in-out infinite; }
.ai-dots span:nth-child(2) { animation-delay: .15s; }
.ai-dots span:nth-child(3) { animation-delay: .3s; }
.ai-enter { animation: ai-in .45s var(--ease-out) both; }
.ai-bot.ai-enter .ai-bar:before { animation: ai-grow .9s .25s var(--ease-out) both; }
.ai-chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.ai-typed { flex: 1; display: flex; align-items: center; min-width: 0; min-height: 40px; padding: 0 14px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.ai-typed.is-typing { color: var(--ink); }
.ai-typed.is-typing:after { content: ""; flex-shrink: 0; width: 2px; height: 1.15em; margin-left: 2px; background: var(--accent); animation: ai-caret 1s steps(1) infinite; }
.ai-send { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .15s var(--ease-out); }
.ai-send .icon { width: 18px; height: 18px; }
.ai-send.is-pressed { transform: scale(.88); }
@keyframes ai-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes ai-grow { from { transform: scaleX(0); } }
@keyframes ai-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-caret { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .ai-panel { grid-template-columns: minmax(0, 1fr); }
  .ai-chat { height: 500px; }
}
@media (max-width: 640px) {
  /* The portrait cut fits the width, its key just above the reasons. */
  .landing > .promo { width: 100%; margin: 12px 0 0; }
  .landing > .promo .promo-toggle { top: 8px; }
  .landing-points { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bill-free, .cost-sources { grid-template-columns: minmax(0, 1fr); }
  .savings-field { flex-direction: column; align-items: stretch; gap: 8px; }
  .savings-input { width: 100%; }
  .ai-panel { gap: 32px; padding: 32px 18px 18px; border-radius: var(--radius); }
  .ai-copy h2 { font-size: 32px; }
  .ai-lead { font-size: 1rem; }
  .ai-chat { height: 470px; }
  .ai-chat-log { padding: 14px; }
  .ai-msg { max-width: 92%; font-size: .875rem; }
  .ai-tool { padding: 6px 10px; font-size: .6875rem; }
}
@media (max-width: 400px) {
  .ai-link-state { display: none; }
  .ai-chat-log { padding: 12px 10px; }
  .ai-bot:has(.ai-bars) { max-width: 100%; }
  .ai-bar { padding-inline: 8px; font-size: .75rem; }
}
