/* =========================================================================
   FBS Suites hub · main stylesheet
   Tokens follow FBS-Suite-Colors.md (light + dark UI). Product-colored elements carry the
   `.pc` class plus inline --cd (dark-mode main), --cm (main), --gl/--gd (logo gradient), --tint.
   Performance rules: animate transform/opacity only; no animated filters, no CSS transitions
   on properties GSAP drives; heavy effects are switched off in `.lite` (low-end devices).
   ========================================================================= */
:root {
  --mag: #C42A93; --mag7: #84175F; --glow: #E648C8;
  --gl: #E648C8; --gd: #84175F;
  --radius: 22px; --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --nav-top: 12px; --nav-bar: 60px;
  --nav-h: calc(var(--nav-top) + var(--nav-bar));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-wide: 'Lexend Exa', var(--font);
  --font-brand: 'Saira Semi Expanded', var(--font);
}
/* ---- dark (default) ---- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1115; --surface: #16191F; --elevated: #1D2128; --subtle: #22262E; --footer: #0B0D10;
  --line: #2A2F38; --line2: #3C4350;
  --text: #EDF0F4; --text2: #A9B2BF; --muted: #808A98;
  --accent: #E35BBF; --accent-soft: rgba(227, 91, 191, .14);
  --ok: #5EE08F; --warn: #FDBA4D; --bad: #FF8F8F;
  --nav-bg: rgba(15, 17, 21, .72); --nav-bg-solid: rgba(15, 17, 21, .96);
  --ghost-bg: rgba(255, 255, 255, .04);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .85);
  --hero-a: rgba(196, 42, 147, .34); --hero-b: rgba(100, 39, 214, .2); --hero-c: rgba(29, 78, 216, .16);
  --grid-line: rgba(255, 255, 255, .045);
  --tile-mix: 55%;
  --c: var(--accent);
  --c-grad: linear-gradient(135deg, var(--glow), var(--mag) 55%, var(--mag7));
  --on-c: #fff;
}
/* ---- light ---- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6F8; --surface: #FFFFFF; --elevated: #FFFFFF; --subtle: #EEF1F5; --footer: #EBEEF2;
  --line: #DCE1E7; --line2: #C2C9D3;
  --text: #16191F; --text2: #525B69; --muted: #6B7584;
  --accent: #C42A93; --accent-soft: rgba(196, 42, 147, .1);
  --ok: #107236; --warn: #A7530A; --bad: #C11E38;
  --nav-bg: rgba(255, 255, 255, .78); --nav-bg-solid: rgba(255, 255, 255, .97);
  --ghost-bg: rgba(22, 25, 31, .03);
  --shadow: 0 30px 60px -30px rgba(22, 25, 31, .28);
  --hero-a: rgba(230, 72, 200, .2); --hero-b: rgba(129, 80, 242, .12); --hero-c: rgba(55, 107, 238, .1);
  --grid-line: rgba(22, 25, 31, .05);
  --tile-mix: 12%;
}
/* product-colored scope */
.pc { --c: var(--cd); --c-grad: linear-gradient(135deg, var(--gl), var(--cd)); --on-c: #0F1115; }
[data-theme="light"] .pc { --c: var(--cm); --c-grad: linear-gradient(135deg, var(--cm), var(--gd)); --on-c: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* Touch / no-Lenis devices: native snapping (GPU-driven, smooth on low-end phones). */
html.css-snap { scroll-snap-type: y mandatory; }
html.css-snap .page { scroll-snap-align: start; }
html.css-snap .footer { scroll-snap-align: end; }
body {
  margin: 0; color: var(--text); background: transparent;
  font: 400 16px/1.6 var(--font); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: normal; word-break: normal; hyphens: manual;
}
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }

/* Every clickable thing gets a pointer. */
a, button, summary, label[for], select, [role="button"], [role="tab"], [data-morph], .tile, .filter-chip,
.flow-btn, .chip-icon, .node, .demo-root button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input[type="range"] { cursor: grab; }
input[type="range"]:active { cursor: grabbing; }
input[type="text"], input[type="number"] { cursor: text; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--mag); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
::selection { background: var(--mag); color: #fff; }

.tint { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--tint-c, transparent); opacity: .16; transition: background-color .8s ease; }
[data-theme="light"] .tint { opacity: .08; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- one screen per page ---------- */
.page {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 12px) 0 20px;
}
.page-inner { width: 100%; }
/* fit-lines: never wrap; JS shrinks the group's font-size until every line fits */
.fl { display: block; white-space: nowrap; }

.grad {
  background: linear-gradient(100deg, var(--gl) 0%, var(--c) 50%, var(--gl) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .grad { background-image: linear-gradient(100deg, var(--c) 0%, var(--gd) 50%, var(--c) 100%); }
.eyebrow {
  font: 500 12px/1.4 var(--font-wide); letter-spacing: .2em; text-transform: uppercase; color: var(--c);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gl), var(--gd)); }
.lede { color: var(--text2); font-size: clamp(15px, 1.5vw, 18px); max-width: 58ch; }
.section-head { display: grid; gap: 14px; justify-items: start; margin-bottom: clamp(24px, 4vh, 48px); }
.section-title { font-weight: 700; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- buttons (min 44–58px: Fitts's law) ---------- */
.btn {
  --bh: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s var(--ease);
  isolation: isolate; overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { --bh: 44px; padding: 0 18px; font-size: 14px; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--glow), var(--mag) 50%, var(--mag7)); box-shadow: 0 10px 30px -12px rgba(196, 42, 147, .8); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-ghost { color: var(--text); border: 1px solid var(--line2); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.btn-product { color: var(--on-c); background: var(--c-grad); box-shadow: 0 12px 30px -14px var(--c); }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 22px; }
.preloader img { width: 96px; height: auto; animation: bob 1.6s ease-in-out infinite; }
.preloader-bar { width: 140px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--glow), var(--mag)); }
.no-js .preloader { display: none; }
.preloader { animation: plFailsafe 0s 4s forwards; }
@keyframes plFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(6deg); } }

/* ---------- cursor follower (fine pointers, not on low-end) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.lite) .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 350; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
  .cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent); transition: scale .3s var(--ease), background-color .3s, border-color .3s; }
  .cursor.is-hover .cursor-ring { scale: 1.8; background: var(--accent-soft); border-color: var(--accent); }
  .cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring { opacity: 0; }
}

.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 210; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--glow), var(--mag), #6CB6FF); will-change: transform; }

/* ---------- brand lockup (3D wordmark + left-aligned "business suite") ---------- */
.brand { display: inline-grid; justify-items: start; width: 132px; container-type: inline-size; line-height: 1; }
.brand-mark { width: 100%; height: auto; }
.brand-sub { font: 200 9.3cqi/1 var(--font-wide); color: var(--text); letter-spacing: .02em; margin-top: 3.2cqi; white-space: nowrap; }
.brand .on-light { display: none; }
[data-theme="light"] .brand .on-light { display: block; }
[data-theme="light"] .brand .on-dark { display: none; }
.brand-lg { width: 240px; }

/* ---------- nav (always fixed) ---------- */
.nav {
  position: fixed; top: var(--nav-top); left: var(--gutter); right: var(--gutter); z-index: 200; height: var(--nav-bar);
  max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 18px; border-radius: 999px; background: var(--nav-bg-solid); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5);
}
@media (hover: hover) and (min-width: 900px) {
  html:not(.lite) .nav { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
}
.nav-logo { display: flex; align-items: center; min-height: 44px; padding: 4px 0; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--text2); transition: color .2s, background-color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--ghost-bg); }
.nav-links a.is-active { box-shadow: inset 0 0 0 1px var(--line2); }
.theme-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); flex: none; transition: background-color .2s; }
.theme-toggle:hover { background: var(--ghost-bg); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease), opacity .3s; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="light"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; flex: none; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease); }
.nav-burger span:first-child { top: 18px; } .nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 190; background: var(--bg); padding: calc(var(--nav-h) + 20px) var(--gutter) 32px; overflow-y: auto; display: grid; align-content: start; gap: 24px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { font-size: clamp(24px, 7.5vw, 34px); font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mobile-menu-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.mobile-menu-apps a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.mobile-menu-apps img { border-radius: 9px; }

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; background:
  radial-gradient(42% 46% at 72% 46%, var(--hero-a), transparent 70%),
  radial-gradient(30% 35% at 88% 80%, var(--hero-b), transparent 70%),
  radial-gradient(35% 30% at 12% 88%, var(--hero-c), transparent 70%); }
.hero-grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent); }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-title { font-weight: 800; font-size: clamp(36px, 6vw, 84px); line-height: 1; letter-spacing: -.045em; margin: 0 0 20px; }
.hero-sub { color: var(--text2); font-size: clamp(15px, 1.5vw, 18px); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-morph-ui { margin-top: 32px; }
.hero-morph-label { font-size: 14px; color: var(--text2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 24px; }
.hm-kicker { font: 500 11px var(--font-wide); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
#morph-name { color: var(--text); font-weight: 600; }
.hm-cat { color: var(--c); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ghost-bg); border: 1px solid var(--line); transition: translate .3s var(--ease), border-color .3s, background-color .3s;
}
.chip-icon img { width: 26px; height: 26px; object-fit: contain; }
.chip-icon:hover { translate: 0 -3px; border-color: var(--c); }
.chip-icon.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }

/* solid morph stage */
.morph-stage { position: relative; width: min(100%, 64vh, 560px); aspect-ratio: 1; justify-self: center; perspective: 1100px; }
.morph-fallback { position: absolute; inset: 7%; width: 86%; height: auto; }
.morph-stage.is-ready .morph-fallback { display: none; }
.morph-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; animation: float 7s ease-in-out infinite; }
.morph-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.morph-shadow { position: absolute; left: 18%; right: 18%; bottom: 2%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); transform: translateZ(-60px); }
[data-theme="light"] .morph-shadow { background: radial-gradient(closest-side, rgba(60, 10, 45, .22), transparent); }
@keyframes float { 50% { translate: 0 -12px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 3; width: 30px; height: 46px; margin-left: -15px; border: 1.5px solid var(--line2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- pain ---------- */
.pain-title { font-weight: 700; font-size: clamp(26px, 4vw, 52px); line-height: 1.12; letter-spacing: -.03em; margin: 16px 0 clamp(20px, 4vh, 40px); }
.pain-list { display: grid; gap: clamp(2px, .6vh, 8px); font-weight: 700; font-size: clamp(24px, 5.4vw, 72px); line-height: 1.14; letter-spacing: -.035em; }
.pain-list li { display: flex; align-items: center; gap: .3em; color: var(--text); }
.pain-x { flex: none; width: .7em; height: .7em; border-radius: 50%; display: grid; place-items: center; font-size: .5em; background: var(--subtle); color: var(--muted); }
.pain-text { position: relative; }
.strike { position: absolute; left: -2%; right: -2%; top: 54%; height: .09em; border-radius: 1em; background: linear-gradient(90deg, var(--glow), var(--mag)); transform-origin: 0 50%; transform: scaleX(0); }
.pain-answer { margin-top: clamp(24px, 5vh, 64px); font-weight: 800; font-size: clamp(36px, 8vw, 112px); line-height: 1.02; letter-spacing: -.045em; }
.pa-meet { color: var(--muted); font-weight: 600; }

/* ---------- suite: filter + tile dock + spotlight ---------- */
.suite-inner { display: grid; gap: clamp(14px, 2.6vh, 26px); }
.suite-head { display: grid; gap: 12px; justify-items: start; }
.suite-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.suite-filter::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--ghost-bg);
  font-weight: 500; font-size: 14px; white-space: nowrap; transition: border-color .25s, background-color .25s, color .25s;
}
.filter-chip:hover { border-color: var(--accent); }
.filter-chip[aria-pressed="true"] { background: var(--mag); border-color: var(--mag); color: #fff; }
.suite-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.suite-grid { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.tile {
  flex: 0 0 calc((100% - 48px) / 5); position: relative; aspect-ratio: 1 / 1.08; border-radius: 20px; padding: 10px 6px;
  display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center;
  background: color-mix(in srgb, var(--tint) var(--tile-mix), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line));
  transition: border-color .3s, box-shadow .3s, translate .35s var(--ease);
}
[data-theme="light"] .tile { background: color-mix(in srgb, var(--gl) var(--tile-mix), var(--surface)); }
.tile img { width: clamp(40px, 4.4vw, 60px); height: auto; border-radius: 24%; transition: transform .45s var(--ease); }
.tile-name { font-weight: 600; font-size: clamp(12px, 1.1vw, 15px); color: var(--c); white-space: nowrap; line-height: 1.2; margin-top: 4px; }
.tile-cat { font: 400 10px var(--font-wide); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tile:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.tile:hover img { transform: rotate(-6deg) scale(1.06); }
.tile.is-current { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 18px 40px -22px var(--c); }
.tile.is-pick::after { content: ''; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.tile[hidden] { display: none; }
.spot {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px);
  background: color-mix(in srgb, var(--tint) var(--tile-mix), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line));
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
}
[data-theme="light"] .spot { background: color-mix(in srgb, var(--gl) 10%, var(--surface)); }
.spot::before { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); pointer-events: none; }
.spot > * { position: relative; }
.spot-top { display: flex; align-items: center; gap: 14px; }
.spot-icon { width: clamp(52px, 5vw, 72px); height: auto; border-radius: 22%; box-shadow: 0 14px 30px -14px var(--c); flex: none; }
.spot-cat { font: 400 11px var(--font-wide); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.spot-name { font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.02em; color: var(--c); white-space: nowrap; }
.spot-name b { font: 800 .8em var(--font-brand); color: var(--text); }
.spot-pick { margin-left: auto; align-self: flex-start; font: 500 10px var(--font-wide); letter-spacing: .12em; text-transform: uppercase; background: var(--c); color: var(--on-c); padding: 5px 9px; border-radius: 999px; opacity: 0; }
.spot.is-pick .spot-pick { opacity: 1; }
.spot-tag { font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.01em; }
.spot-blurb { color: var(--text2); font-size: 15px; }
.spot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* ---------- chapters ---------- */
.chapter-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); align-items: center; }
.chapter-no { font: 800 clamp(90px, 20vw, 260px)/0.8 var(--font-brand); color: transparent; -webkit-text-stroke: 1.5px var(--line2); letter-spacing: -.04em; }
.chapter-copy { min-width: 0; }
.chapter-title { font-weight: 700; font-size: clamp(28px, 5vw, 66px); line-height: 1.05; letter-spacing: -.035em; margin-top: 14px; }
.chapter-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chapter-apps a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 14px; transition: border-color .25s, translate .3s var(--ease); white-space: nowrap; }
.chapter-apps a:hover { border-color: var(--c); translate: 0 -2px; }
.chapter-apps img { width: 40px; height: 40px; border-radius: 50%; }

/* ---------- product sections ---------- */
.product { position: relative; overflow: hidden; overflow: clip; /* clip, not hidden: hidden makes it a scroll box and the phone snap stops inside it stop working */ min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 12px) 0 20px; }
html.css-snap .product { scroll-snap-align: start; }
.product-bg { position: absolute; inset: 0; pointer-events: none; }
.product-glow { position: absolute; width: min(900px, 120vw); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cm) 42%, transparent), transparent); opacity: .5; }
[data-theme="light"] .product-glow { opacity: .22; }
.watermark { position: absolute; top: 50%; left: 0; translate: 0 -50%; white-space: nowrap; font: 800 clamp(72px, min(22vw, 56vh), 340px)/1 var(--font-brand); /* never taller than the screen */ letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 20%, transparent); user-select: none; will-change: transform; }
.product-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.product-inner.is-flipped .product-copy { order: 2; }
.subpage { min-width: 0; }
.product-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.idx { font: 800 15px var(--font-brand); color: var(--c); letter-spacing: .06em; }
.idx small { color: var(--muted); font-size: .8em; }
.cat { font: 400 12px var(--font-wide); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); white-space: nowrap; }
.product-title { display: flex; align-items: center; gap: .26em; margin-top: 20px; perspective: 600px; font-size: clamp(40px, 5.4vw, 80px); }
.product-icon { width: 1.05em; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 18px 40px -16px var(--c); flex: none; }
.product-name { font-weight: 600; font-size: 1em; line-height: .95; letter-spacing: -.045em; color: var(--c); display: flex; align-items: baseline; gap: .18em; }
.product-name b { font: 800 .62em var(--font-brand); letter-spacing: -.01em; color: var(--text); }
.product-name span { display: inline-block; }
.product-tagline { font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.025em; line-height: 1.15; margin-top: 18px; }
.product-tagline em { font-style: normal; color: var(--c); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; }
.product-blurb { color: var(--text2); margin-top: 12px; max-width: 54ch; font-size: clamp(14px, 1.2vw, 16px); }
.product-features { display: grid; gap: 8px; margin-top: 18px; }
.product-features li { position: relative; padding-left: 30px; font-size: 15px; }
.product-features li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); }
.product-features li::after { content: ''; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.product-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* device frame */
.product-demo { perspective: 1400px; }
.device {
  position: relative; border-radius: 24px; background: var(--elevated); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line));
  box-shadow: var(--shadow); overflow: hidden; transform-style: preserve-3d;
}
.device::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.device-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--subtle); }
.device-dots { display: flex; gap: 6px; flex: none; }
.device-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.device-dots i:first-child { background: #FF5F57; } .device-dots i:nth-child(2) { background: #FEBC2E; } .device-dots i:nth-child(3) { background: #28C840; }
.device-url { flex: 1; min-width: 0; text-align: center; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-live { display: inline-flex; align-items: center; gap: 6px; font: 500 10px var(--font-wide); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); flex: none; }
.device-body { padding: clamp(14px, 2vw, 22px); }
.demo-head { display: grid; gap: 2px; margin-bottom: 14px; }
.demo-head strong { font-size: 16px; }
.demo-head span { font-size: 13px; color: var(--muted); }
.demo-root { position: relative; }

/* ---------- shared demo UI kit ---------- */
.d-row { display: flex; align-items: center; gap: 10px; }
.d-between { justify-content: space-between; }
.d-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.d-label { font-size: 12px; color: var(--muted); }
.d-big { font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-accent { color: var(--c); }
.d-ok { color: var(--ok); } .d-bad { color: var(--bad); }
.d-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); white-space: nowrap; }
.d-pill.is-warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.d-pill.is-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.d-pill.is-bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.d-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--c-grad); color: var(--on-c); white-space: nowrap; }
.d-btn:active { scale: .96; }
.d-btn:disabled { opacity: .4; filter: grayscale(.6); }
.d-btn.is-ghost { background: var(--subtle); color: var(--text); border: 1px solid var(--line2); }
.d-btn.is-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.d-input { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); padding: 0 14px; font-size: 14px; }
.d-input:focus { outline: none; border-color: var(--c); }
.d-range { width: 100%; accent-color: var(--c); height: 26px; }
.d-bar { height: 8px; border-radius: 8px; background: var(--subtle); overflow: hidden; }
.d-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--c-grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); }
.d-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.d-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-stack { display: grid; gap: 10px; }
.d-note { font-size: 11px; color: var(--muted); }
.d-check { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); width: 100%; text-align: left; transition: border-color .25s, background-color .25s; }
.d-check:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.d-check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line2); display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.d-check .box svg { width: 14px; height: 14px; stroke: var(--on-c); stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease) .05s; }
.d-check.is-on .box { background: var(--c); border-color: var(--c); }
.d-check.is-on .box svg { stroke-dashoffset: 0; }
.d-check.is-on .txt { color: var(--muted); text-decoration: line-through; }
.d-check .txt { flex: 1; min-width: 0; font-size: 14px; }
.d-check .meta { font-size: 11px; color: var(--muted); flex: none; }
.ring { width: 84px; height: 84px; flex: none; }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: var(--subtle); }
.ring .fg { stroke: var(--c); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .7s var(--ease); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--on-c); background: var(--c-grad); }

.pay-slip .line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.pay-slip .line span:last-child { color: var(--text2); white-space: nowrap; }
.pay-slip .line.neg span:last-child { color: var(--bad); }
.pay-net { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.slider-row { display: grid; gap: 0; }
.slider-row .d-row { justify-content: space-between; font-size: 13px; }
.slider-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.sched { display: grid; grid-template-columns: minmax(58px, 1.2fr) repeat(5, minmax(0, 1fr)); gap: 5px; font-size: 12px; }
.sched .h { color: var(--muted); text-align: center; padding: 4px 0; font-size: 11px; }
.sched .who { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.sched .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched .who .avatar { width: 24px; height: 24px; font-size: 10px; }
.sched-cell { min-height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); font-size: 10px; font-weight: 600; transition: background-color .25s, border-color .25s; }
.sched-cell[data-s="am"] { background: color-mix(in srgb, var(--c) 20%, var(--bg)); border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--c); }
.sched-cell[data-s="pm"] { background: color-mix(in srgb, #8150F2 28%, var(--bg)); border-color: #8150F2; color: color-mix(in srgb, #8150F2 60%, var(--text)); }

.chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 6px; }
.chart .col { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.chart .col i { flex: 1; height: 100%; border-radius: 6px 6px 2px 2px; background: var(--c-grad); transform-origin: 50% 100%; transition: transform .7s var(--ease); }
.chart .col i.exp { background: var(--bad); opacity: .7; }
.chart-x { display: flex; gap: 8px; font-size: 10px; color: var(--muted); margin-top: 6px; }
.chart-x span { flex: 1; text-align: center; }
.ledger { display: grid; gap: 6px; max-height: 120px; overflow: auto; }
.ledger div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 7px 10px; border-radius: 10px; background: var(--bg); font-variant-numeric: tabular-nums; }
.ledger .in { color: var(--ok); } .ledger .out { color: var(--bad); }

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kcol { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-height: 210px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, background-color .2s; }
.kcol.is-over { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--bg)); }
.kcol h4 { margin: 2px 4px 4px; font-size: 11px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; text-transform: uppercase; letter-spacing: .06em; }
.lead { padding: 9px; border-radius: 10px; background: var(--elevated); border: 1px solid var(--line2); font-size: 12px; touch-action: none; user-select: none; cursor: grab; transition: box-shadow .2s, border-color .2s; }
@media (pointer: coarse) { .lead { touch-action: pan-y; } }
.lead:hover { border-color: var(--c); }
.lead.is-dragging { cursor: grabbing; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); z-index: 50; position: relative; }
.lead b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead span { color: var(--muted); font-size: 11px; }

.ticket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.ticket .t-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket .t-sub { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket.is-solved { opacity: .55; }
.t-prio { width: 8px; height: 30px; border-radius: 4px; background: var(--muted); }
.t-prio.high { background: var(--bad); } .t-prio.med { background: var(--warn); } .t-prio.low { background: var(--ok); }
.tickets { display: grid; gap: 8px; max-height: 190px; overflow: auto; }

.pos { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.pos-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pos-item { position: relative; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); text-align: left; transition: border-color .2s; display: grid; gap: 2px; }
.pos-item:hover { border-color: var(--c); }
.pos-item .emo { font-size: 22px; line-height: 1; }
.pos-item b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-item span { font-size: 11px; color: var(--muted); }
.pos-item .qty { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--subtle); color: var(--text2); }
.pos-item.is-low .qty { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pos-item.is-out { opacity: .4; pointer-events: none; }
.pos-cart { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.pos-lines { display: grid; gap: 4px; font-size: 12px; flex: 1; align-content: start; max-height: 120px; overflow: auto; }
.pos-lines div { display: flex; justify-content: space-between; gap: 6px; }
.pos-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; border-top: 1px dashed var(--line2); padding-top: 8px; font-variant-numeric: tabular-nums; }

.tables { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.table-btn { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line2); display: grid; place-items: center; font-weight: 700; font-size: 12px; transition: border-color .25s, background-color .25s; }
.table-btn.is-sel { border-style: solid; border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.table-btn.is-busy { border-style: solid; border-color: var(--warn); color: var(--warn); }
.menu { display: flex; flex-wrap: wrap; gap: 6px; }
.menu button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); font-size: 12px; transition: border-color .2s; white-space: nowrap; }
.menu button:hover { border-color: var(--c); }
.menu button.on { border-color: var(--c); color: var(--c); }
.menu button.off { opacity: .35; text-decoration: line-through; }
.kitchen { display: grid; gap: 8px; max-height: 150px; overflow: auto; }
.kticket { padding: 9px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--c); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kticket .k-items { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kticket.is-ready { border-left-color: var(--ok); opacity: .7; }

.roll { display: grid; gap: 6px; }
.student { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.student.is-sel { border-color: var(--c); }
.student .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.att { display: flex; gap: 4px; }
.att button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); font-size: 12px; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.att button.on[data-v="P"] { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); border-color: var(--ok); }
.att button.on[data-v="L"] { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); border-color: var(--warn); }
.att button.on[data-v="A"] { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); border-color: var(--bad); }

.work-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wtask .avatar { width: 26px; height: 26px; font-size: 10px; }
.hire { display: flex; align-items: center; gap: 14px; }
.hire .avatar { width: 52px; height: 52px; font-size: 18px; }

/* ---------- side rail (goal-gradient) ---------- */
.rail { position: fixed; right: 18px; top: 50%; z-index: 60; translate: 0 -50%; display: grid; gap: 4px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail-track { position: absolute; right: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-fill { width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(var(--glow), var(--mag)); }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 28px; padding-left: 12px; }
.rail-dot { order: 2; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); transition: background-color .3s, border-color .3s, scale .3s var(--ease); }
.rail-label { font-size: 12px; color: var(--text2); opacity: 0; translate: 6px 0; transition: opacity .25s, translate .3s var(--ease); white-space: nowrap; background: var(--surface); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); }
.rail a:hover .rail-label, .rail a.is-active .rail-label { opacity: 1; translate: 0 0; }
.rail a.is-done .rail-dot { background: var(--c); border-color: var(--c); }
.rail a.is-active .rail-dot { background: var(--c); border-color: var(--c); scale: 1.5; }

/* ---------- agents network ---------- */
.agents-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.agents-copy { display: grid; gap: 16px; min-width: 0; }
.flow-list { display: grid; gap: 8px; margin-top: 4px; }
.flow-btn {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 7px 14px 7px 8px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .25s, translate .3s var(--ease), background-color .25s;
}
.flow-btn img { border-radius: 8px; flex: none; }
.flow-btn span { flex: 1; min-width: 0; }
.flow-btn .ico { color: var(--muted); }
.flow-btn:hover { border-color: var(--accent); translate: 4px 0; }
.flow-btn.is-active { border-color: var(--accent); background: var(--accent-soft); }
.flow-log { color: var(--text2); min-height: 3.2em; font-size: 15px; }
.flow-log b { color: var(--text); }
.network-wrap { padding: 10px 0 24px; }
.network { position: relative; width: 100%; max-width: min(560px, 68vh); aspect-ratio: 1; margin-inline: auto; }
.network-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.network-lines line { stroke: var(--line2); stroke-width: 1; stroke-dasharray: 3 5; }
.network-lines .spoke { stroke: color-mix(in srgb, var(--accent) 22%, transparent); stroke-dasharray: none; }
.network-lines .beam { stroke-width: 3; stroke-dasharray: none; stroke-linecap: round; }
.network-core { position: absolute; left: 50%; top: 50%; width: 34%; translate: -50% -50%; }
.network-core img { width: 100%; height: auto; animation: bob 6s ease-in-out infinite; }
.node { position: absolute; width: 12.5%; translate: -50% -50%; z-index: 2; }
.node img { width: 100%; height: auto; border-radius: 24%; box-shadow: 0 10px 24px -12px var(--c); transition: scale .45s cubic-bezier(.34, 1.7, .5, 1), box-shadow .3s; }
.node span { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; font-size: 11px; font-weight: 500; line-height: 1; color: var(--text); white-space: nowrap; background: var(--surface); border: 1px solid var(--line); padding: 4px 7px; border-radius: 999px; z-index: 3; }
.node:hover img { scale: 1.08; }
.node.is-lit { z-index: 4; }
.node.is-lit img { scale: 1.14; box-shadow: 0 0 0 3px var(--c), 0 10px 26px -6px var(--c); }
.node.is-lit span { border-color: var(--c); color: var(--c); }
.packet { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c), 0 0 18px 4px var(--c); pointer-events: none; z-index: 5; will-change: transform; }

/* ---------- start + stats ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); }
.step-no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--glow), var(--mag7)); }
.step h3 { font-size: clamp(18px, 1.7vw, 21px); margin-top: 16px; letter-spacing: -.01em; white-space: nowrap; }
.step p { color: var(--text2); margin-top: 8px; font-size: 15px; }
/* "By the numbers": each counter card has a small live scene above the number */
.stats-head { margin-bottom: clamp(16px, 3.5vh, 36px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; isolation: isolate;
  padding: clamp(16px, 3vh, 30px) 12px clamp(16px, 3vh, 28px); border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 13%, transparent), transparent 60%), var(--surface);
  border: 1px solid var(--line); transition: border-color .35s, translate .5s cubic-bezier(.2, .9, .3, 1.2);
}
.stat::before { /* gradient edge that lights up under the pointer */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--glow), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (hover: hover) { .stat:hover { translate: 0 -4px; border-color: transparent; } .stat:hover::before { opacity: 1; } }
.stat > b { display: block; font-weight: 800; font-size: clamp(48px, 7.4vw, 112px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-top: clamp(10px, 2vh, 18px); }
.stat-l { color: var(--text); font-weight: 600; font-size: clamp(13px, 1.4vw, 17px); white-space: nowrap; margin-top: 4px; }
.stat small { color: var(--text2); font-size: clamp(11px, 1.05vw, 13.5px); white-space: nowrap; margin-top: 3px; }

.sv { position: relative; width: 100%; height: clamp(96px, 17vh, 150px); display: grid; place-items: center; }

/* 10: the apps orbit the suite and pop in as the counter climbs */
.sv-orbit { --r: min(56px, 8vh); }
.orb-ring { position: absolute; inset: 0; animation: orbit 26s linear infinite; animation-play-state: var(--play, paused); }
.orb { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * .5); aspect-ratio: 1; margin: calc(var(--r) * -.25) 0 0 calc(var(--r) * -.25);
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -360deg / var(--n))); }
.orb img { display: block; width: 100%; height: 100%; border-radius: 26%; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6);
  scale: 0; transition: scale .5s cubic-bezier(.34, 1.8, .5, 1); animation: orbit 26s linear infinite reverse; animation-play-state: var(--play, paused); }
.orb.on img { scale: 1; }
.orb-core { position: relative; width: calc(var(--r) * .78); height: auto; filter: drop-shadow(0 8px 18px rgba(196, 42, 147, .45)); }
.sv-orbit::before { content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px dashed var(--line2); }
@keyframes orbit { to { rotate: 360deg; } }

/* 1: one person picks up, with ripples and a typing bubble */
.call-av { position: relative; z-index: 2; display: grid; place-items: center; width: clamp(54px, 9vh, 70px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--glow), var(--mag) 55%, var(--mag7)); box-shadow: 0 12px 30px -10px rgba(196, 42, 147, .8); }
.call-av svg { width: 48%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rip { position: absolute; left: 50%; top: 50%; width: clamp(54px, 9vh, 70px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px solid var(--glow); opacity: 0;
  animation: rip 3s cubic-bezier(.2, .6, .3, 1) infinite; animation-play-state: var(--play, paused); }
.rip:nth-child(2) { animation-delay: 1s; } .rip:nth-child(3) { animation-delay: 2s; }
@keyframes rip { 0% { scale: 1; opacity: .7; } 100% { scale: 2.5; opacity: 0; } }
.call-pill { position: absolute; z-index: 3; left: 50%; bottom: 2px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--line); color: var(--text); }
.call-pill i { width: 7px; height: 7px; border-radius: 50%; background: #2BD47D; box-shadow: 0 0 0 3px color-mix(in srgb, #2BD47D 25%, transparent); }
.call-bub { position: absolute; z-index: 3; left: calc(50% + clamp(22px, 4vh, 30px)); top: 8%; display: flex; gap: 3px; padding: 7px 9px; border-radius: 12px 12px 12px 3px;
  background: var(--elevated); border: 1px solid var(--line); }
.call-bub i { width: 5px; height: 5px; border-radius: 50%; background: var(--text2); animation: dot 1.2s ease-in-out infinite; animation-play-state: var(--play, paused); }
.call-bub i:nth-child(2) { animation-delay: .15s; } .call-bub i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { translate: 0 0; opacity: .45; } 30% { translate: 0 -3px; opacity: 1; } }

/* 0: a browser tab; the "install" step gets struck out and the apps are simply there */
.bw { width: min(210px, 92%); border-radius: 10px; background: var(--elevated); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); text-align: left; }
.bw-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--subtle); }
.bw-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.bw-bar span { margin-left: 6px; flex: 1; min-width: 0; font-size: 9.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 7px; border-radius: 999px; background: var(--surface); }
.bw-bar b { color: var(--accent); font-weight: 600; }
.bw-body { position: relative; height: clamp(54px, 9vh, 72px); }
.bw-install, .bw-ready { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.bw-dl { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--subtle); }
.bw-dl svg { width: 17px; fill: none; stroke: var(--text2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bw-dl s { position: absolute; left: -3px; right: -3px; top: 50%; height: 2px; border-radius: 2px; background: #FF3B30; rotate: -40deg; scale: 0 1; transform-origin: left; }
.bw-prog { width: 46%; height: 6px; border-radius: 999px; background: var(--subtle); overflow: hidden; }
.bw-prog i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--glow), var(--mag)); scale: 0 1; transform-origin: left; }
.bw-ready { flex-direction: column; gap: 5px; opacity: 0; }
.bw-apps { display: flex; gap: 6px; }
.bw-apps img { width: 24px; height: 24px; border-radius: 7px; }
.bw-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #2BD47D; white-space: nowrap; }
.bw-ok svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stats-page.is-live { --play: running; }

/* the old checklist becomes icon chips */
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(14px, 3vh, 28px); }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text2); font-size: clamp(12px, 1.05vw, 14px); line-height: 1.3; transition: border-color .3s, color .3s; }
.checks li:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--text); }
.ck-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); }
.ck-ico svg { width: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1023px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stat { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; align-content: center; align-items: center; text-align: left; padding: 6px 12px 6px 4px; }
  .stat .sv { grid-row: 1 / 4; height: 82px; }
  .stat > b { margin: 0; font-size: 40px; grid-column: 2; }
  .stat-l, .stat small { grid-column: 2; margin: 0; }
  .sv-orbit { --r: 32px; }
  .call-av, .rip { width: 44px; }
  .call-bub { left: calc(50% + 16px); top: 4px; padding: 5px 6px; } .call-bub i { width: 4px; height: 4px; }
  .call-pill { font-size: 9px; padding: 3px 7px; gap: 4px; bottom: 0; }
  .bw { width: 100px; } .bw-bar { padding: 4px 5px; } .bw-bar span { display: none; } .bw-body { height: 52px; }
  .bw-prog { display: none; } .bw-apps img { width: 18px; height: 18px; border-radius: 5px; } .bw-ok { font-size: 0; } .bw-ok svg { width: 14px; }
  .checks { gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .checks li { padding: 7px 8px; gap: 7px; font-size: 11px; border-radius: 11px; }
  .ck-ico { width: 26px; height: 26px; border-radius: 8px; } .ck-ico svg { width: 15px; }
}

/* ---------- FAQ (tabs: fits one screen) ---------- */
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.faq-head { display: grid; gap: 14px; justify-items: start; }
.faq-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.faq-tabs { display: grid; gap: 6px; }
.faq-tab { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; text-align: left; font-weight: 500; font-size: 14.5px; color: var(--text2); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, color .2s, background-color .2s; white-space: nowrap; }
.faq-tab:hover { color: var(--text); border-color: var(--line2); }
.faq-tab[aria-selected="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.faq-short { display: none; }
.faq-panels { display: grid; }
.faq-panel { grid-area: 1 / 1; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq-panel[hidden] { display: block; visibility: hidden; }
.faq-panel h3 { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.02em; line-height: 1.25; }
.faq-panel p { color: var(--text2); margin-top: 12px; font-size: 16px; }

/* ---------- finale ---------- */
.finale { text-align: center; overflow: hidden; background: radial-gradient(55% 55% at 50% 50%, var(--hero-a), transparent 70%); }
.finale-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }
.finale-globe { width: clamp(96px, 16vh, 160px); height: auto; animation: bob 6s ease-in-out infinite; }
.finale-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.finale-orbs { position: absolute; inset: 0; pointer-events: none; }
.finale-orbs img { position: absolute; width: clamp(34px, 5vw, 64px); height: auto; aspect-ratio: 1; border-radius: 24%; opacity: .6; translate: -50% -50%; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--footer); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, 1.3fr); gap: 36px; }
.footer-brand p { color: var(--text2); margin-top: 18px; font-size: 14px; }
.footer-brand b { color: var(--accent); }
.footer h3 { font: 500 12px var(--font-wide); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; font-size: 14px; color: var(--text2); }
.footer-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer a { transition: color .2s; display: inline-flex; align-items: center; gap: 8px; min-height: 28px; overflow-wrap: anywhere; }
.footer a:hover { color: var(--text); }
.footer-apps i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- chat ---------- */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 220; }
.chat-fab {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 16px 36px -12px rgba(196, 42, 147, .7);
  transition: scale .35s var(--ease);
}
.chat-fab:hover { scale: 1.07; }
.chat-fab-logo { width: 40px; height: auto; transition: transform .4s var(--ease), opacity .3s; }
.chat-ico-close { position: absolute; width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; opacity: 0; transform: rotate(-90deg) scale(.6); transition: transform .4s var(--ease), opacity .3s; }
.chat.is-open .chat-fab-logo { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat-ico-close { opacity: 1; transform: none; }
.chat-fab-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); animation: ring 2.6s var(--ease) infinite; }
.chat.is-open .chat-fab-ring { display: none; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-nudge { position: absolute; right: 76px; bottom: 14px; white-space: nowrap; background: var(--elevated); border: 1px solid var(--line2); padding: 9px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; box-shadow: var(--shadow); }
.chat-panel {
  position: absolute; right: 0; bottom: 78px; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 110px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); transform-origin: 100% 100%;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--accent-soft), transparent); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); flex: none; }
.chat-avatar img { width: 32px; height: auto; }
.chat-head h2 { font-size: 16px; }
.chat-head p { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.chat-close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.chat-close:hover { background: var(--subtle); }
.chat-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; overflow-wrap: break-word; }
.msg.bot { background: var(--subtle); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--mag); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg a { color: var(--accent); text-decoration: underline; }
.msg .msg-link { display: inline-flex; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); text-decoration: none; font-weight: 600; font-size: 13px; }
.presets { display: grid; gap: 6px; align-self: stretch; }
.presets-title { font: 500 11px var(--font-wide); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 4px 2px 2px; }
.preset { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 14px; border-radius: 12px; text-align: left; font-size: 14px; font-weight: 500; background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.preset:hover { border-color: var(--accent); background: var(--accent-soft); }
.preset .ico { width: 16px; height: 16px; color: var(--muted); }
.presets.is-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.presets.is-inline .preset { min-height: 40px; font-size: 13px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text2); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggest { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
.chat-suggest:empty { display: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--text2); background: var(--bg); transition: border-color .2s, color .2s; white-space: nowrap; }
.chat-suggest button:hover { border-color: var(--accent); color: var(--text); }
.chat-suggest button.is-menu { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line2)); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); padding: 0 16px; font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mag); color: #fff; transition: background-color .2s; }
.chat-form button:hover { background: #E35BBF; }
.chat-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 230; translate: -50% 0; max-width: calc(100vw - 120px); padding: 12px 18px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--line2); font-size: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; }
.toast[hidden] { display: none; }
.toast img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.confetti { position: fixed; left: 0; top: 0; z-index: 400; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; will-change: transform; }

/* ---------- low-end devices: drop the costly extras ---------- */
.lite .product-glow, .lite .watermark, .lite .hero-grid { display: none; }
.lite .morph-tilt, .lite .network-core img, .lite .finale-globe { animation: none; }
.lite .device, .lite .spot, .lite .faq-panel { box-shadow: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .rail { display: none; }
  .nav-links a { padding: 10px; }
}
@media (max-width: 899px) {
  :root { --nav-bar: 56px; --nav-top: 10px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .theme-toggle { margin-left: auto; }
  .brand { width: 112px; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .morph-stage { order: -1; width: min(66vw, 34svh, 330px); }
  .hero-title { margin: 0 0 14px; }
  .hero-ctas { margin-top: 20px; }
  .hero-morph-ui { margin-top: 20px; }
  .scroll-cue { display: none; }

  .suite-body { grid-template-columns: minmax(0, 1fr); }
  .suite-filter { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }

  /* products become two screens: the story, then the demo */
  .product { display: block; min-height: 0; padding: 0; }
  html.css-snap .product { scroll-snap-align: none; }
  .product-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .product-inner.is-flipped .product-copy { order: 0; }
  .subpage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 12px) 0 20px; }
  .fitbox-m { width: 100%; }
  html.css-snap .subpage { scroll-snap-align: start; }

  .agents-inner { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .agents-copy { gap: 10px; }
  .agents-copy .lede { display: none; }
  .flow-list { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .flow-list::-webkit-scrollbar { display: none; }
  .flow-btn { flex: none; white-space: nowrap; }
  .flow-btn span { flex: none; }
  .network-wrap { order: -1; padding: 0 0 18px; }
  .network { max-width: min(400px, 40svh); }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .step h3 { margin-top: 0; }
  .step p { grid-column: 2; margin-top: 2px; font-size: 14px; }
  .step-no { grid-row: span 2; }

  .faq-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .faq-head .lede { display: none; }
  .faq-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .faq-head .eyebrow { grid-column: 1 / -1; }
  .faq-body { grid-template-columns: minmax(0, 1fr); }
  .faq-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
  .faq-tab { min-height: 40px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; }
  .faq-full { display: none; }
  .faq-short { display: inline; }

  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .chapter-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chapter-no { font-size: clamp(80px, 30vw, 140px); }
  .suite-grid { gap: 8px; }
  .tile { flex-basis: calc((100% - 32px) / 5); aspect-ratio: auto; padding: 10px 2px 8px; border-radius: 16px; }
  .tile img { width: clamp(34px, 10vw, 46px); }
  .tile-name { font-size: clamp(10px, 2.9vw, 12px); }
  .tile-cat { display: none; }
  .spot-blurb { display: none; }
  .spot { gap: 8px; }
  .stats { gap: 8px; }
  .pos { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .kcol { min-height: 0; }
  .tables { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .chat-nudge { display: none; }
}
@media (max-width: 420px) {
  .btn-lg { --bh: 52px; padding: 0 20px; font-size: 15px; }
  .hero-chips { gap: 6px; }
  .chip-icon { width: 42px; height: 42px; border-radius: 12px; }
  .product-ctas .btn { flex: 1 1 auto; }
  .d-grid3 { grid-template-columns: minmax(0, 1fr); }
  .sched { grid-template-columns: minmax(36px, .8fr) repeat(5, minmax(0, 1fr)); gap: 3px; }
  .sched .who span:not(.avatar) { display: none; }
  .work-cols { grid-template-columns: minmax(0, 1fr); }
  .device-live { display: none; }
  .chat-fab { width: 58px; height: 58px; }
  .chat-fab-logo { width: 36px; }
  .chat-panel { bottom: 72px; }
  .presets.is-inline { grid-template-columns: minmax(0, 1fr); }
  .spot-actions .btn { flex: 1 1 auto; }
  .brand { width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .preloader { display: none; }
}

/* Grid containers holding no-wrap headline lines must not grow to fit them (fitText shrinks the text instead). */
.section-head, .suite-head, .agents-copy, .faq-head, .finale-inner, .suite-inner, .chapter-copy { grid-template-columns: minmax(0, 1fr); }
.finale-inner { justify-items: center; }
@media (max-width: 899px) { .faq-head { grid-template-columns: minmax(0, 1fr) auto; } }
/* Intro animations slide content in from the sides: clip per page so the layout never widens. */
html { overflow-x: clip; }
.page, .subpage, .footer { overflow-x: clip; }

/* ---------- 3D hero models ---------- */
.hero3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; z-index: 1; }
.hero3d-canvas.is-dragging { cursor: grabbing; }
.morph-stage .morph-shadow { position: absolute; left: 24%; right: 24%; bottom: 6%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); }
.drag-hint { position: absolute; left: 50%; bottom: -2%; translate: -50% 0; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--font-wide); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .6s; }
.drag-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.morph-stage.is-ready .drag-hint { opacity: 1; }

/* ---------- "Sound familiar?" scroll sequence ---------- */
.pain-track { position: relative; height: 400vh; height: 400svh; }
.pain-track .pain { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
.snap-mark { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
html.css-snap .snap-mark { scroll-snap-align: start; }
html.css-snap .pain-track .pain { scroll-snap-align: none; }
.pain-answer { position: relative; z-index: 2; }
/* No will-change here: it would freeze the text as a small bitmap and stretch it (pixelated). Without it the browser redraws the vector glyphs at every zoom step, so they stay sharp. */
.pain-answer strong { display: inline-block; transform-origin: 30% 55%; }
.pain-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 55%, rgba(230, 72, 200, .55), rgba(196, 42, 147, .35) 45%, var(--bg) 100%); }
@media (prefers-reduced-motion: reduce) {
  .pain-track { height: auto; }
  .pain-track .pain { position: relative; height: auto; min-height: 100svh; }
  .strike { transform: scaleX(1); }
}

/* =========================================================================
   Round 5: clean header, expanding suite card, colour chapter numbers,
   looping watermarks, custom & enterprise section
   ========================================================================= */

/* ---------- header: invisible chrome at the top, appears once scrolled ---------- */
.nav { background: transparent; border-color: transparent; box-shadow: none; transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
@media (hover: hover) and (min-width: 900px) {
  html:not(.lite) .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html:not(.lite) .nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
}
.nav.is-scrolled, html.menu-open .nav { background: var(--nav-bg-solid); border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); }

/* ---------- product icon: no parent perspective (it doubled up with the tween's) ---------- */
.product-title { perspective: none; }

/* ---------- background words: endless marquee (also on phones; it's one GPU layer) ---------- */
.lite .watermark { display: block; }
.watermark { left: 0; right: auto; will-change: auto; }
.wm-track { display: inline-flex; will-change: transform; }
.wm-word { padding-right: .32em; }

/* ---------- chapter numbers: rise from below, colour fills up, gradient keeps flowing ---------- */
.chapter-no { display: block; overflow: hidden; padding: .04em .02em .08em; -webkit-text-stroke: 0; }
.cn-inner { display: block; position: relative; }
.cn-outline { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--line2); }
.cn-fill { position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 0;
  background: var(--cn); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  animation: cnflow 7s ease-in-out infinite alternate; }
@keyframes cnflow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lite .cn-fill { animation-duration: 12s; }

/* ---------- the suite: large tiles that expand into a full card ---------- */
.suite-body { display: block; position: relative; }
.suite-grid { gap: 14px; }
.tile { flex-basis: calc((100% - 56px) / 5); aspect-ratio: 1 / .84; padding: 14px 10px; gap: 6px; overflow: hidden; }
.tile img { width: clamp(44px, 4.6vw, 68px); }
.tile-tag { font-size: 12px; color: var(--text2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; opacity: 0; translate: 0 6px; transition: opacity .3s, translate .35s var(--ease); }
.tile-open { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); opacity: 0; scale: .7; transition: opacity .3s, scale .35s var(--ease); }
.tile-open .ico { width: 14px; height: 14px; }
.tile:hover .tile-tag, .tile:focus-visible .tile-tag { opacity: 1; translate: 0 0; }
.tile:hover .tile-open, .tile:focus-visible .tile-open { opacity: 1; scale: 1; }
.tile.is-pick::after { top: 12px; left: 12px; right: auto; }

.suite-card { position: absolute; inset: 0; z-index: 5; }
.suite-card[hidden] { display: none; }
.sc-panel { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; transform-origin: 0 0; will-change: transform;
  background: color-mix(in srgb, var(--tint) var(--tile-mix), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: var(--shadow);
  transition: background-color .45s ease, border-color .45s ease; }
[data-theme="light"] .sc-panel { background: color-mix(in srgb, var(--gl) 13%, var(--surface)); }
.sc-panel::before { content: ''; position: absolute; left: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 24%, transparent), transparent); }
.sc-bgicon { position: absolute; right: -4%; bottom: -22%; width: min(46%, 400px); height: auto; opacity: .13; rotate: -12deg; }
.sc-content { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 44px) clamp(14px, 2vw, 22px); }
.sc-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ghost-bg); border: 1px solid var(--line2); transition: background-color .2s, border-color .2s; }
.sc-close:hover { border-color: var(--c); }
.sc-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sc-main { display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2vh, 22px); min-width: 0; }
.sc-id { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }
.sc-icon { width: clamp(64px, 7vw, 108px); height: auto; border-radius: 24%; box-shadow: 0 22px 44px -18px var(--c); flex: none; }
.sc-cat { font: 400 12px var(--font-wide); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sc-name { font-weight: 600; font-size: clamp(32px, 4.2vw, 62px); line-height: 1; letter-spacing: -.035em; color: var(--c); white-space: nowrap; margin-top: 6px; }
.sc-name b { font: 800 .7em var(--font-brand); color: var(--text); letter-spacing: -.01em; }
.sc-tag { font-weight: 700; font-size: clamp(20px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-side { align-self: center; display: grid; gap: 16px; min-width: 0; }
.sc-blurb { color: var(--text2); font-size: clamp(14px, 1.25vw, 17px); }
.sc-features { display: grid; gap: 9px; }
.sc-features li { position: relative; padding-left: 30px; font-size: 15px; }
.sc-features li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); }
.sc-features li::after { content: ''; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sc-switch { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); min-width: 0; }
.sc-dock { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.sc-dock::-webkit-scrollbar { display: none; }
.sc-dock button { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; opacity: .5; transition: opacity .25s, translate .3s var(--ease), box-shadow .3s; }
.sc-dock button img { width: 34px; height: 34px; border-radius: 9px; }
.sc-dock button:hover { opacity: 1; translate: 0 -3px; }
.sc-dock button.is-current { opacity: 1; box-shadow: 0 0 0 2px var(--c); }
.sc-dock button[hidden] { display: none; }
.sc-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--ghost-bg); transition: border-color .2s; }
.sc-arrow:hover { border-color: var(--c); }
.sc-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.suite-card.is-pick .sc-cat::after { content: ' · Recommended'; color: var(--c); }

/* ---------- custom & enterprise ---------- */
.custom-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.custom-copy { display: grid; gap: 18px; justify-items: start; grid-template-columns: minmax(0, 1fr); }
.custom-points { display: grid; gap: 14px; margin-top: 4px; }
.custom-points li { display: flex; gap: 14px; align-items: flex-start; }
.cp-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cp-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.custom-points h3 { font-size: 16px; letter-spacing: -.01em; }
.custom-points p { color: var(--text2); font-size: 14.5px; margin-top: 2px; }
.custom-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); max-width: 520px; margin-inline: auto; }
.cv-tile { aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; background: color-mix(in srgb, var(--tint) var(--tile-mix), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); }
[data-theme="light"] .cv-tile { background: color-mix(in srgb, var(--gl) 12%, var(--surface)); }
.cv-tile img { width: 58%; height: auto; border-radius: 22%; }
.cv-new { grid-column: span 2; position: relative; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--accent-soft); color: var(--accent); min-height: 100%; }
.cv-dash { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cv-dash rect { width: calc(100% - 3px); height: calc(100% - 3px); fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 8 7; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -30; } }
.cv-plus { font-size: clamp(28px, 3vw, 40px); font-weight: 300; line-height: 1; }
.cv-label { font: 500 11px var(--font-wide); letter-spacing: .16em; text-transform: uppercase; }

@media (max-width: 899px) {
  .custom-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .custom-visual { order: -1; }
  .cv-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; }
  .custom-copy .lede { font-size: 14.5px; }
  .sc-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px; }
  .sc-main { justify-content: flex-start; padding-right: 44px; }
  .sc-side { align-self: start; }
}
@media (max-width: 640px) {
  /* tiles become a two-column list: easier to tap, and a taller area for the card */
  .suite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { aspect-ratio: auto; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; place-content: center start; justify-items: start; text-align: left; column-gap: 10px; row-gap: 0; padding: 12px 10px; border-radius: 16px; min-height: 66px; }
  .tile img { grid-row: span 2; width: 40px; }
  .tile-name { font-size: 14px; margin-top: 0; }
  .tile-cat { display: block; font-size: 9px; }
  .tile-tag, .tile-open { display: none; }
  .tile.is-pick::after { top: 8px; left: auto; right: 8px; }
  .sc-content { padding: 16px; }
  .sc-features { display: none; }
  .sc-blurb { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .sc-actions .btn { flex: 1 1 auto; --bh: 44px; padding: 0 16px; font-size: 14px; }
  .sc-dock button { width: 38px; height: 38px; }
  .sc-dock button img { width: 28px; height: 28px; }
  .sc-arrow { width: 38px; height: 38px; }
  .sc-dock { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .tile { min-height: 72px; }
  .sc-content { padding: 14px 14px 10px; gap: 10px; }
  .sc-main { gap: 10px; }
  .sc-icon { width: 56px; }
  .sc-name { font-size: 28px; }
  .sc-tag { font-size: 17px; }
  .sc-actions { flex-wrap: nowrap; gap: 8px; }
  .sc-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 13px; --bh: 42px; }
  .sc-blurb { -webkit-line-clamp: 3; font-size: 13.5px; }
  .sc-switch { padding-top: 8px; }
}
.vl-short { display: none; }
@media (max-width: 640px) { .sc-visit .vl-long { display: none; } .sc-visit .vl-short { display: inline; } }

/* ---------- smaller footer logo + chatbot ---------- */
.brand-lg { width: 170px; }
.chat-fab { width: 54px; height: 54px; }
.chat-fab-logo { width: 32px; }
.chat-ico-close { width: 20px; height: 20px; }
.chat-fab-ring { inset: -5px; }
.chat-nudge { right: 64px; bottom: 9px; font-size: 13px; padding: 7px 12px; }
.chat-panel { bottom: 66px; width: min(350px, calc(100vw - 32px)); height: min(520px, calc(100svh - 96px)); border-radius: 20px; }
.chat-head { padding: 10px 10px 10px 14px; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; }
.chat-avatar img { width: 27px; }
.chat-head h2 { font-size: 15px; }
.chat-close { width: 40px; height: 40px; }
.chat-log { padding: 12px; gap: 8px; }
.msg { font-size: 13.5px; padding: 9px 12px; }
.preset { min-height: 40px; font-size: 13.5px; padding: 7px 12px; }
.chat-form { padding: 8px 10px 10px; }
.chat-form input { min-height: 42px; }
.chat-form button { width: 42px; height: 42px; }
@media (max-width: 420px) { .chat-fab { width: 50px; height: 50px; } .chat-fab-logo { width: 30px; } .chat-panel { bottom: 62px; } }

/* ---------- preloader: 3D globe inside a progress ring ---------- */
.preloader { gap: 18px; animation: plFailsafe 0s 7s forwards; }
.pl-stage { position: relative; width: 148px; height: 148px; display: grid; place-items: center; }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.pl-track { fill: none; stroke: var(--line); stroke-width: 2.5; }
.pl-arc { fill: none; stroke: url(#pl-grad); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 351.86; stroke-dashoffset: 351.86; }
.preloader .pl-globe { width: 96px; height: auto; animation: none; }
.pl-pct { font: 500 12px var(--font-wide); letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
/* the live 3D canvas while it sits in (or flies out of) the loader */
.hero3d-canvas.is-lifted { position: fixed; z-index: 401; margin: 0; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
/* loader starts with just the ring; the static globe image is only a slow-connection backup */
.preloader .pl-globe { opacity: 0; scale: .9; }

/* ---------- descenders (g, y, p, q, j) never clipped ---------- */
/* Gradient text only paints inside its own box; with tight line-height the tails of g/y/p fall outside it.
   Extend the painted area downward (padding) and cancel the layout shift (negative margin). */
.grad { padding-bottom: .22em; margin-bottom: -.22em; padding-right: .04em; margin-right: -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pain-answer strong.grad { padding-bottom: .22em; margin-bottom: -.22em; }
/* chapter numbers: the rise-in mask needs a little room below the digits too */
.chapter-no { padding-bottom: .12em; }

/* chapter zoom-through: the number may grow over the next section, so lift it and keep it click-through */
.chapter { z-index: 2; }
.chapter-no { pointer-events: none; transform-origin: 50% 55%; }

/* ---------- 320px audit fixes ---------- */
.pos-item .emo { justify-self: start; }
.pos-item b { padding-right: 46px; }
@media (max-width: 899px) {
  /* network sits above the copy: leave room for the bottom label so it never covers the heading */
  .network-wrap { padding-bottom: 34px; }
}
@media (max-width: 640px) {
  /* small network: show app names only for the apps taking part in the current event (no collisions) */
  .node span { opacity: 0; transition: opacity .25s; font-size: 10px; padding: 3px 6px; }
  .node.is-lit span { opacity: 1; }
  .node { width: 11.5%; }
  /* the drag hint would hang into the headline below the model */
  .drag-hint { display: none; }
  /* floating chat button: keep the last line of every screen clear of it */
  .page, .subpage { padding-bottom: 76px; }
}

/* ---------- small phones: fit without shrinking text ---------- */
@media (max-width: 420px), (max-height: 680px) and (max-width: 899px) {
  .morph-stage { width: min(58vw, 29svh, 260px); }
  .hero-morph-ui { margin-top: 14px; }
  .hm-kicker { display: none; }
  .hero-ctas { margin-top: 16px; gap: 8px; }
  .hero-sub { font-size: 14.5px; }
  .custom-visual { display: none; }
  .custom-copy { gap: 12px; }
  .custom-points { gap: 10px; }
  .custom-points p { font-size: 13.5px; }
  .pay-slip .line { padding: 3px 0; }
  .d-note { display: none; }
}

/* ---------- phones: compact demos so each demo screen fits at readable size ---------- */
@media (max-width: 640px) {
  .device-body { padding: 12px; }
  .demo-head { margin-bottom: 10px; }
  .demo-head span { font-size: 12px; }
  .d-stack { gap: 8px; }
  .d-card { padding: 10px 12px; }
  .chart { height: 72px; }
  .ledger { max-height: 70px; }
  .ledger div { padding: 5px 8px; }
  .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .kcol { padding: 5px; gap: 4px; min-height: 150px; }
  .kcol h4 { font-size: 9.5px; margin: 2px 2px 3px; }
  .lead { padding: 6px; }
  .lead b { font-size: 11px; }
  .lead span { font-size: 10px; }
  .pos-items { gap: 6px; }
  .pos-item { padding: 7px 8px; }
  .pos-item .emo { font-size: 18px; }
  .pos-lines { max-height: 54px; }
  .pos-cart { padding: 10px; gap: 6px; }
  .tickets { max-height: 120px; }
  .kitchen { max-height: 90px; }
  .slider-row .d-range { height: 22px; }
  .pay-slip .line { font-size: 12.5px; }
  .roll { gap: 4px; }
  .student { padding: 5px 8px; }
  .att button { width: 32px; height: 32px; }
}

@media (max-width: 420px) {
  .d-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .d-grid3 .d-card { padding: 8px; }
  .d-grid3 .d-big { font-size: 15px; }
  .d-grid3 .d-label { font-size: 10.5px; }
}
@media (max-width: 360px) {
  .chip-icon { width: 38px; height: 38px; border-radius: 11px; }
  .chip-icon img { width: 22px; height: 22px; }
  .hero-chips { gap: 5px; margin-top: 8px; }
  .hero-title { margin-bottom: 10px; }
}

/* ---------- "How it connects": phone-style push notification on the receiving app ---------- */
.push-note {
  position: absolute; z-index: 8; width: min(244px, 64%); padding: 10px 12px 11px; border-radius: 16px;
  background: color-mix(in srgb, var(--elevated) 86%, transparent); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 8px 30px -14px var(--c);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  cursor: pointer; overflow: hidden; text-align: left;
}
.lite .push-note { background: var(--elevated); backdrop-filter: none; -webkit-backdrop-filter: none; }
.push-note::after { /* little tail pointing at the app */
  content: ''; position: absolute; left: var(--tip, 50%); bottom: -6px; width: 11px; height: 11px; translate: -50% 0; rotate: 45deg;
  background: inherit; border: inherit; border-top: 0; border-left: 0; backdrop-filter: none;
}
.push-note.is-below::after { bottom: auto; top: -6px; border: inherit; border-bottom: 0; border-right: 0; }
.pn-glow { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent)); }
.pn-head { display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1; color: var(--text2); }
.pn-head img { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.pn-head b { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-head time { margin-left: auto; flex: none; }
.pn-title { margin: 8px 0 2px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.pn-body { margin: 0; font-size: 12px; line-height: 1.4; color: var(--text2); }
.node-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; z-index: 5;
  background: #FF3B30; color: #fff; font: 700 10.5px/18px Poppins, sans-serif; font-style: normal; text-align: center;
  box-shadow: 0 0 0 2px var(--bg); pointer-events: none;
}
@media (max-width: 640px) {
  .push-note { width: min(200px, 70%); padding: 8px 10px 9px; border-radius: 13px; }
  .pn-head { font-size: 9.5px; gap: 5px; } .pn-head img { width: 16px; height: 16px; border-radius: 5px; }
  .pn-title { font-size: 11.5px; margin-top: 6px; } .pn-body { font-size: 10.5px; }
  .node-badge { min-width: 15px; height: 15px; font-size: 9px; line-height: 15px; padding: 0 4px; top: -4px; right: -4px; }
}

/* ---------- footer: company attribution + legal links ---------- */
.footer-made { font-size: 13px !important; margin-top: 10px !important; }
.footer-made a { color: var(--text); font-weight: 600; gap: 4px; min-height: 0; display: inline; white-space: nowrap; }
.footer-made a:hover { color: var(--accent); }
.footer-made .ico { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; margin-left: 3px; }
.footer-bottom { align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { min-height: 28px; color: var(--text2); }
.footer-legal a:hover { color: var(--text); }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-legal { gap: 2px 16px; }
}
.footer-apps a { white-space: nowrap; }
@media (min-width: 641px) { .footer-bottom { padding-right: 230px; } } /* keep "Back to top" clear of the chat button */
@media (max-width: 640px) { .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); } } /* last row sits above the chat button */

/* ======================================================================= contact form dialog */
html.dialog-open { overflow: hidden; }
.contact { width: min(980px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; margin: auto; border: 1px solid var(--line); border-radius: 26px;
  background: var(--surface); color: var(--text); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.contact::backdrop { background: rgba(6, 7, 10, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lite .contact::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 7, 10, .78); }
.cf-shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); max-height: inherit; }
.cf-side { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 34px 28px; color: #fff;
  background: radial-gradient(120% 80% at 0% 0%, #E648C8 0%, #C42A93 42%, #5A1042 100%); }
.cf-side::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); mask-image: linear-gradient(160deg, #000, transparent 70%); pointer-events: none; }
.cf-globe { width: 64px; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.cf-side-title { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.cf-promises { display: grid; gap: 14px; }
.cf-promises li { display: grid; padding-left: 26px; position: relative; font-size: 13px; color: rgba(255, 255, 255, .82); }
.cf-promises li::before { content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.cf-promises li::after { content: ''; position: absolute; left: 5.5px; top: 5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.cf-promises b { color: #fff; font-size: 14px; font-weight: 600; }
.cf-side-icons { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.cf-side-icons img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.cf-main { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 30px 32px 26px; }
.cf-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--elevated); color: var(--text); cursor: pointer; transition: rotate .3s, border-color .2s; }
.cf-close:hover { rotate: 90deg; border-color: var(--accent); }
.cf-close svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cf-form h2, .cf-done h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; padding-right: 40px; }
.cf-lede { color: var(--text2); font-size: 14px; margin-top: 6px; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin-top: 18px; }
.cf-field { display: grid; gap: 5px; align-content: start; }
.cf-field[data-field="message"] { grid-column: 1 / -1; }
.cf-field label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.cf-opt { font-weight: 400; color: var(--muted); }
.cf-field input, .cf-field select, .cf-field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line2);
  border-radius: 12px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s; }
.cf-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.cf-field select { appearance: none; cursor: pointer; padding-right: 36px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--muted); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cf-field.has-error input, .cf-field.has-error textarea, .cf-field.has-error select { border-color: #FF5A52; }
.cf-err { min-height: 16px; font-size: 12px; color: #FF6B63; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-consent { margin-top: 2px; }
.cf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px !important; font-weight: 400 !important; color: var(--text2) !important; line-height: 1.45; cursor: pointer; }
.cf-check input { flex: none; width: 18px !important; height: 18px; padding: 0 !important; margin-top: 1px; accent-color: var(--mag); cursor: pointer; }
.cf-check a, .cf-alt a, .consent a, .nf-help a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; }
.cf-actions .btn[disabled] { opacity: .65; cursor: progress; }
.cf-alt { font-size: 12.5px; color: var(--text2); overflow-wrap: anywhere; }
.cf-status { min-height: 18px; margin-top: 10px; font-size: 13px; color: #FF6B63; }
.cf-done { display: grid; justify-items: start; gap: 10px; padding: 40px 4px; }
.cf-done:focus { outline: none; }
.cf-done p { color: var(--text2); max-width: 44ch; }
.cf-done .btn { margin-top: 10px; }
.cf-done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, #2BD47D 16%, transparent); }
.cf-done-ico svg { width: 30px; fill: none; stroke: #2BD47D; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.cf-done:not([hidden]) .cf-done-ico svg { animation: cf-tick .6s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes cf-tick { to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .contact { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .cf-shell { grid-template-columns: minmax(0, 1fr); height: 100%; }
  .cf-side { display: none; }
  .cf-main { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .cf-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-field input, .cf-field select, .cf-field textarea { font-size: 16px; } /* 16px stops iOS zooming into the field */
  .cf-actions .btn { width: 100%; justify-content: center; }
}

/* ======================================================================= cookie notice */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(400px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: 20px;
  background: var(--elevated); color: var(--text); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
.consent h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.consent h2 svg { width: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.consent p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text2); }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.consent-actions .btn { min-width: 104px; justify-content: center; }
@media (max-width: 640px) {
  .consent { left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; padding: 14px; } /* sits above the chat button */
  .consent-actions .btn { flex: 1; }
}
.linkish { font: inherit; color: var(--text2); background: none; border: 0; padding: 0; min-height: 28px; cursor: pointer; }
.linkish:hover { color: var(--text); }

/* ======================================================================= social links */
.social { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin-top: 18px; }
.social a { display: grid !important; place-items: center; width: 38px; height: 38px; min-height: 0 !important; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text2); transition: color .2s, border-color .2s, background .2s, translate .3s cubic-bezier(.3, 1.6, .5, 1); }
.social a:hover { color: #fff; translate: 0 -3px; border-color: transparent; }
.social a[data-social="facebook"]:hover { background: #1877F2; }
.social a[data-social="linkedin"]:hover { background: #0A66C2; }
.social a[data-social="youtube"]:hover { background: #FF0033; }
.social a[data-social="instagram"]:hover { background: radial-gradient(circle at 30% 110%, #FFD776, #F56040 35%, #C13584 65%, #5851DB); }
.social a[data-social="tiktok"]:hover { background: #111; box-shadow: -2px -2px 0 #25F4EE inset, 2px 2px 0 #FE2C55 inset; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ======================================================================= 404 */
.nf-body { min-height: 100svh; display: flex; flex-direction: column; background:
  radial-gradient(700px 480px at 50% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--bg); }
.nf-top { padding-top: 22px; }
.nf-top a { display: inline-block; cursor: pointer; }
.nf { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 24px 48px; }
.nf-code { display: flex; align-items: center; gap: clamp(4px, 1.5vw, 14px); font-weight: 800; font-size: clamp(96px, 22vw, 220px); line-height: .9; letter-spacing: -.05em; }
.nf-code span { background: linear-gradient(160deg, var(--glow), var(--mag) 55%, var(--mag7)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.nf-code img { width: .82em; height: auto; animation: nf-spin 16s linear infinite; filter: drop-shadow(0 20px 40px rgba(196, 42, 147, .45)); }
@keyframes nf-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .nf-code img { animation: none; } }
.nf .eyebrow { margin-top: 18px; }
.nf-title { font-size: clamp(26px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.nf-lede { color: var(--text2); margin-top: 10px; max-width: 46ch; }
.nf-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.nf-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; max-width: 640px; }
.nf-apps a { display: grid; justify-items: center; gap: 6px; width: 56px; font-size: 11px; color: var(--text2); cursor: pointer; transition: color .2s; }
.nf-apps img { width: 44px; height: 44px; border-radius: 13px; transition: translate .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.nf-apps a:hover { color: var(--text); }
.nf-apps a:hover img { translate: 0 -4px; box-shadow: 0 10px 20px -8px var(--cd); }
.nf-help { margin-top: 28px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

html.dialog-open .cursor { display: none; }

/* ---------- mobile fixes: snap that never skips, suite card label, finale title ---------- */
/* Touch scrolling uses native snapping. scroll-snap-stop: always makes a fast flick stop at the very next
   screen instead of flying past several. */
html.css-snap .page, html.css-snap .subpage, html.css-snap .snap-mark { scroll-snap-stop: always; }
@media (min-width: 900px) { html.css-snap .product { scroll-snap-stop: always; } }

/* "Recommended" is its own small badge line, so the category never runs under the close button. */
.sc-id > div { min-width: 0; }
.sc-cat { overflow: hidden; text-overflow: ellipsis; }
.suite-card.is-pick .sc-cat::after { content: none; }
.suite-card.is-pick .sc-id > div::before {
  content: 'Recommended'; display: block; width: max-content; margin-bottom: 7px; padding: 4px 9px 3px; border-radius: 999px;
  font: 500 10px/1.2 var(--font-wide); letter-spacing: .14em; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
@media (max-width: 640px) {
  .sc-cat { padding-right: 46px; } /* room for the close button (the name sits below it) */
  .sc-cat { font-size: 10px; letter-spacing: .12em; white-space: normal; line-height: 1.35; }
}

/* Centred headlines must span the full width, or the auto-fit can't see that a line is too wide. */
.finale-inner > .section-title { justify-self: stretch; width: 100%; }

/* ---------- bigger 3D icons on tablets and phones ---------- */
/* The 3D canvas bleeds past its box into the empty space around it, so the model renders larger without
   pushing the headline down (the hero must still fit one screen). main.js reads --bleed to aim the loader's
   fly-in at the same spot. */
.morph-stage { --bleed: 0; --lift: 0; }
.hero3d-canvas { left: calc(var(--bleed) * -100%); top: calc((var(--bleed) + var(--lift)) * -100%); right: auto; bottom: auto;
  width: calc(100% * (1 + 2 * var(--bleed))); height: calc(100% * (1 + 2 * var(--bleed))); }
@media (max-width: 899px) { .morph-stage { --bleed: .14; --lift: .08; } } /* --lift nudges it up, clear of the headline */
@media (max-width: 420px), (max-height: 680px) and (max-width: 899px) { .morph-stage { --bleed: .17; --lift: .1; } }
@media (max-width: 640px) { .finale-orbs img { width: 36px; opacity: .7; } }

/* ---------- phones & tablets: chapter number burst + app background words that stay whole ---------- */
.cn-burst { display: block; will-change: transform, opacity; }
@media (max-width: 899px) {
  /* Each app is two screens here (description, demo). Pin its background to the screen while you scroll
     through it, so the big background words sit whole in the middle of every screen instead of being
     cut in half on the line between the two. */
  .product-bg { position: sticky; inset: auto; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; z-index: 0; }
  .product-inner { z-index: 1; }
}

/* ---------- stacked hero (tablets & phones): everything centred under the 3D model ---------- */
@media (max-width: 899px) {
  .hero-copy { text-align: center; }
  .hero-title .fl { margin-inline: auto; }
  .hero-sub { margin-inline: auto; max-width: 36em; }
  .hero-ctas, .hero-chips, .hero-morph-label { justify-content: center; }
}

/* ---------- contact form "Thanks" screen: FBS logo on top, the check as a small badge on it ---------- */
.cf-done-logo { position: relative; display: block; width: 84px; margin-bottom: 4px; }
.cf-done-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 28px rgba(196, 42, 147, .45)); }
.cf-done-logo .cf-done-ico { position: absolute; right: -6px; bottom: -4px; width: 34px; height: 34px; background: #16A34A; box-shadow: 0 0 0 3px var(--surface); }
.cf-done-logo .cf-done-ico svg { width: 18px; stroke: #fff; }
.cf-done:not([hidden]) .cf-done-logo img { animation: cf-pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.cf-done:not([hidden]) .cf-done-logo .cf-done-ico { animation: cf-pop .45s .25s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes cf-pop { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cf-done-logo img, .cf-done-logo .cf-done-ico { animation: none !important; } }
