/* ==================================================================
   vBiz Systems site stylesheet (the approved v3 design system)
   One family (Google Sans), cool neutrals, one accent (Campus
   Blue), one radius (4px). No gradients on text, no glow.
   Every page links this file and assets/js/site.js.
   DESIGN.md documents the system; keep the two in step.
=================================================================== */

/* ------------------------------------------------------------------
   Fonts (self-hosted, latin subset)
------------------------------------------------------------------- */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/google-sans-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/google-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------- */
:root {
  --paper: #E6EBF2;
  --surface: #FFFFFF;
  --ink: #0E1A2B;
  --ink-2: #435069;
  --ink-3: #5F6A80;
  --rule: #DCE1E8;
  --rule-strong: #C4CBD6;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #E8EEFA;
  --night: #0B1628;
  --night-2: #111F36;
  --on-night: #E9EEF5;
  --on-night-2: #A7B3C6;
  /* Semantic status only, never decoration */
  --ok: #157A3E;
  --ok-soft: #E3F3E9;
  --warn: #9A5B00;
  --warn-soft: #FBF1DE;
  --bad: #B42318;
  --bad-soft: #FDECEA;
  --radius: 4px;
  --wrap: 1180px;
  --font: "Google Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
.theme-dark {
  --paper: #0B1628;
  --surface: #12213A;
  --ink: #EEF2F8;
  --ink-2: #B4C0D3;
  --ink-3: #8F9CB2;
  --rule: #22314A;
  --rule-strong: #3A4B66;
  --accent: #8AAEFF;
  --accent-hover: #B0C8FF;
  --accent-soft: #1B2C4A;
  background: var(--paper);
  color: var(--ink);
}
.theme-dark .btn-primary { background: #3D74F0; color: #fff; }
.theme-dark .btn-primary:hover { background: #5687F5; }
.theme-dark .btn-ghost { color: var(--ink); border-color: var(--rule-strong); }
.theme-dark .btn-ghost:hover { border-color: var(--ink); }
.theme-light {
  --paper: #E6EBF2;
  --surface: #FFFFFF;
  --ink: #0E1A2B;
  --ink-2: #435069;
  --ink-3: #5F6A80;
  --rule: #DCE1E8;
  --rule-strong: #C4CBD6;
  --accent: #2563EB;
  --accent-soft: #E8EEFA;
  color: var(--ink);
}
.bg-white { --paper: #EEF2F7; background: #EEF2F7; }
.bg-paper { background: var(--paper); }

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scrollbar-color: #C4CBD6 #F6F7F9; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 19.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: #C9D7F2; color: #0E1A2B; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------
   Buttons and links
------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: var(--radius); font: 600 17.5px/1 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); border-color: var(--rule-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.arrow { transition: transform .18s ease; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 1px; transition: color .2s ease; }
.text-link:hover { color: var(--accent-hover); }

/* Highlighted phrase: a low underline bar, not gradient text */
.mark { position: relative; isolation: isolate; white-space: nowrap; }
.mark::after { content: ""; position: absolute; z-index: -1; left: -3px; right: -3px; bottom: .04em; height: .22em; background: var(--accent); opacity: .3; border-radius: 2px; transform-origin: left; }

/* Small label */
.tag { display: inline-block; font-size: 14.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: var(--radius); white-space: nowrap; line-height: 1.35; }
.tag.ok { color: var(--ok); background: var(--ok-soft); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.tag.bad { color: var(--bad); background: var(--bad-soft); }
.tag.plain { color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule); }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.site-header { background: #0B1628; color: var(--on-night); border-bottom: 1px solid rgba(255,255,255,.07); position: sticky; top: 0; z-index: 20; transition: box-shadow .3s ease; }
.site-header .wrap { display: flex; align-items: center; height: 68px; gap: 40px; transition: height .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(4, 10, 20, .28); }
.site-header.scrolled .wrap { height: 58px; }
.site-header .logo { flex: none; }
.site-header .logo img { width: 80px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav > a, .nav-group > button { color: var(--on-night-2); text-decoration: none; font: 500 17.5px/1 var(--font); background: none; border: 0; padding: 8px 0; cursor: pointer; white-space: nowrap; }
.nav > a:hover, .nav-group > button:hover, .nav > a[aria-current="page"] { color: #fff; }
.nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 #3D74F0; }
.nav-group { position: relative; }
.nav-group > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-menu { position: absolute; top: calc(100% + 14px); left: -20px; width: 560px; padding: 20px; background: #fff; color: #0E1A2B; border: 1px solid #DCE1E8; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(11, 22, 40, .18); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 10px 12px; text-decoration: none; border-radius: var(--radius); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: #F6F7F9; }
.nav-menu strong { display: block; font-weight: 600; font-size: 17.5px; }
.nav-menu span { display: block; color: #5F6A80; font-size: 15.5px; }
.nav-menu .menu-head { grid-column: 1 / -1; padding: 4px 12px 2px; font-size: 15px; font-weight: 600; color: #5F6A80; }
.nav-menu .menu-head:not(:first-child) { margin-top: 8px; padding-top: 12px; border-top: 1px solid #DCE1E8; }
.header-cta { margin-left: auto; }
.header-cta .btn { padding: 11px 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid #33435A; color: #fff; padding: 8px 14px; border-radius: var(--radius); font: 500 16px/1 var(--font); cursor: pointer; }
.nav-mobile-cta { display: none !important; }

/* ------------------------------------------------------------------
   Hero (home and product pages)
------------------------------------------------------------------- */
.hero { padding: 80px 0 112px; background: #0B1628; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4vw, 3.45rem); max-width: 16ch; }
.hero .lede { margin-top: 24px; font-size: 20px; color: var(--ink-2); max-width: 42ch; }
.hero .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.basics { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink-3); font-size: 17.5px; max-width: 540px; }
.basics li { display: inline-flex; align-items: center; gap: 8px; }
.basics .ico { width: 16px; height: 16px; color: var(--accent); }
.hero-visual { position: relative; }
/* The hero screen runs past the column so the real UI reads at a useful size */
@media (min-width: 1025px) {
  .hero .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
  .hero-visual .shot { width: calc(100% + 140px); }
}
.hero-caption { margin-top: 64px; color: var(--ink-3); font-size: 16px; max-width: 54ch; }

/* Inner-page header: shorter, no visual */
.page-hero { padding: 72px 0 80px; background: #0B1628; }
.page-hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); max-width: 20ch; }
.page-hero .lede { margin-top: 20px; font-size: 20px; color: var(--ink-2); max-width: 52ch; }
.page-hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 8px; margin-bottom: 20px; font-size: 16px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }

/* ------------------------------------------------------------------
   App window frame (product screens, real or illustrative)
------------------------------------------------------------------- */
.win { background: #fff; color: #0E1A2B; border: 1px solid #DCE1E8; border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.hero .win { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); }
.win-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid #DCE1E8; background: #F6F7F9; }
.win-bar b { font-weight: 600; font-size: 13px; white-space: nowrap; }
.win-bar span { color: #5F6A80; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bar span::before { content: "/"; margin-right: 12px; color: #C4CBD6; }
.win-body { padding: 18px 20px; }

/* Real screenshot inside a window frame.
   Missing files show a labelled slot (site.js adds .missing). */
.shot .win img { width: 100%; height: auto; background: #F3F5F8; }
.shot-ph { display: none; }
.shot.missing img { display: none; }
.shot.missing .shot-ph { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 24px; text-align: center; background: #F3F5F8; color: #5F6A80; font-size: 13.5px; line-height: 1.5; }
.shot-ph b { display: block; color: #0E1A2B; font-weight: 600; font-size: 14.5px; }
.shot-ph code { font: 12.5px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; color: #2563EB; }
.shot figcaption, .shot-note { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.shot.zoomable img { cursor: zoom-in; }
/* Full-size view of a screenshot */
.lightbox { width: min(1600px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: #fff; box-shadow: 0 40px 80px -20px rgba(4, 10, 20, .6); overflow: auto; }
.lightbox::backdrop { background: rgba(11, 22, 40, .78); }
.lightbox img { width: 100%; height: auto; cursor: zoom-out; }
.lightbox-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; background: #F6F7F9; border-bottom: 1px solid #DCE1E8; font-size: 14px; color: #435069; }
.lightbox-bar button { font: 600 14px/1 var(--font); padding: 8px 12px; border-radius: var(--radius); border: 1px solid #C4CBD6; background: #fff; color: #0E1A2B; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lbIn .22s var(--ease); }
  @keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
}
/* Phone frame: the one place a larger radius is allowed (a device, not a card) */
.shot.phone { max-width: 300px; }
.shot.phone .device { border: 9px solid #0E1A2B; border-radius: 34px; overflow: hidden; background: #0E1A2B; box-shadow: 0 30px 60px -28px rgba(11, 22, 40, .55); }
.shot.phone img { width: 100%; height: auto; border-radius: 25px; }
.shot.phone.missing .shot-ph { aspect-ratio: 9 / 19.5; border-radius: 25px; }

/* Live activity toast over the hero window */
.live-toast { position: absolute; left: -32px; bottom: -46px; z-index: 2; display: flex; align-items: center; gap: 12px; min-width: 320px; max-width: 420px; padding: 12px 14px; background: #fff; color: #0E1A2B; border: 1px solid #DCE1E8; border-radius: var(--radius); box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .55); font-size: 16.5px; line-height: 1.3; opacity: 0; }
.live-toast.static { opacity: 1; }
.live-body { display: grid; flex: 1; }
.live-when { font-size: 14.5px; color: #5F6A80; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; flex: none; }

/* ------------------------------------------------------------------
   Proof strip
------------------------------------------------------------------- */
.clients { padding: 36px 0; border-bottom: 1px solid var(--rule); }
.clients .wrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.clients-label { color: var(--ink-3); font-size: 16px; }
.clients ul { display: flex; gap: 48px; flex-wrap: wrap; }
.clients li { font-weight: 600; font-size: 19px; color: var(--ink-2); letter-spacing: -0.01em; }
.proof { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.proof .wrap { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: baseline; }
.proof .since-mark { font-weight: 600; font-size: 17.5px; color: var(--ink); white-space: nowrap; }
.proof ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 36px; }
.proof li { color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.proof li b { display: block; }
.proof li b { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------------
   Sections (shared)
------------------------------------------------------------------- */
.section { padding: 112px 0; }
.section h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 22ch; }
.section .intro { margin-top: 18px; color: var(--ink-2); font-size: 19px; max-width: 58ch; }
.split-head { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.split-head .intro { margin-top: 0; }

/* ------------------------------------------------------------------
   Compare: a before/after switch with a diagram stage
------------------------------------------------------------------- */
.problem .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.switch { margin-top: 32px; display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.switch button { background: none; border: 0; padding: 10px 18px; border-radius: 3px; font: 600 17.5px/1 var(--font); color: var(--ink-2); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { background: var(--bad); color: #fff; }
.problem.is-after .switch button[aria-pressed="true"] { background: var(--accent); }
.ba-list { margin-top: 12px; }
.ba-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 18.5px; animation: listIn .45s var(--ease) both; }
.ba-list li:nth-child(2) { animation-delay: .06s; }
.ba-list li:nth-child(3) { animation-delay: .12s; }
.ba-list li:nth-child(4) { animation-delay: .18s; }
@keyframes listIn { from { opacity: 0; transform: translateY(8px); } }
.ba-list .mk { width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1; }
.ba-before .mk { background: var(--bad-soft); color: var(--bad); }
.ba-after .mk { background: var(--ok-soft); color: var(--ok); }
.ba-list strong { display: block; color: var(--ink); font-weight: 600; font-size: 19px; margin-bottom: 2px; }
.ba-after { display: none; }
.problem.is-after .ba-before { display: none; }
.problem.is-after .ba-after { display: block; }

.ba-stage { position: relative; aspect-ratio: 1 / .9; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 30px 70px -40px rgba(37, 99, 235, .35); overflow: hidden; }
.ba-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 32, 64, .11) 1px, transparent 1.4px); background-size: 20px 20px; }
.ba-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-svg line { vector-effect: non-scaling-stroke; }
.lines-before line { stroke: #E5484D; stroke-width: 1.6; stroke-dasharray: 5 6; }
.lines-after line { stroke: #B9C9EA; stroke-width: 2; }
.lines-after line.flow { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 4 196; stroke-linecap: round; }
.lines-before, .lines-after { transition: opacity .5s ease; }
.lines-after { opacity: 0; }
.is-after .lines-before { opacity: 0; }
.is-after .lines-after { opacity: 1; transition-delay: .2s; }
.ba-node { position: absolute; left: var(--bx); top: var(--by); z-index: 2; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); width: 146px; padding: 10px 12px; border-radius: var(--radius); background: #F8FAFC; border: 1.5px dashed #C4CBD6; color: #435069; font-size: 16px; font-weight: 600; line-height: 1.25; text-align: center; transition: left .55s var(--ease), top .55s var(--ease), transform .55s var(--ease), background-color .35s, border-color .35s, box-shadow .35s; }
.ba-node small { display: block; font-weight: 400; font-size: 14px; color: #8A94A6; }
.ba-node .a { display: none; align-items: center; justify-content: center; gap: 9px; color: #0E1A2B; }
.ba-node .ni { width: 26px; height: 26px; border-radius: var(--radius); display: grid; place-items: center; background: #E8EEFA; color: #2563EB; flex: none; }
.ba-node .ni .ico { width: 15px; height: 15px; }
.is-after .ba-node { left: var(--ax); top: var(--ay); transform: translate(-50%, -50%); background: #fff; border: 1.5px solid #C9D7F2; box-shadow: 0 12px 26px -14px rgba(37, 99, 235, .55); }
.is-after .ba-node .b { display: none; }
.is-after .ba-node .a { display: flex; }
.ba-tag { position: absolute; z-index: 1; transform: translate(-50%, -50%); font-size: 13.5px; font-weight: 600; color: var(--bad); background: #FEF3F2; border: 1px solid #FECDCA; padding: 4px 8px; border-radius: var(--radius); white-space: nowrap; transition: opacity .3s ease; }
.is-after .ba-tag { opacity: 0; }
.ba-hub { position: absolute; left: 50%; top: 50%; z-index: 3; width: 172px; padding: 16px 14px; text-align: center; transform: translate(-50%, -50%) scale(.6); opacity: 0; border-radius: var(--radius); background: #0B1628; color: #fff; box-shadow: 0 0 0 6px rgba(37, 99, 235, .14), 0 24px 50px -16px rgba(11, 22, 40, .6); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease; }
.ba-hub .ico { width: 24px; height: 24px; color: #8AAEFF; display: block; margin: 0 auto 6px; }
.ba-hub strong { display: block; font-size: 17.5px; font-weight: 600; }
.ba-hub span { display: block; font-size: 14px; color: #A7B3C6; margin-top: 2px; }
.is-after .ba-hub { transform: translate(-50%, -50%); opacity: 1; transition-delay: .15s; }
.ba-caption { margin-top: 12px; color: var(--ink-3); font-size: 16px; }

/* ------------------------------------------------------------------
   Marquee band (one per page at most)
------------------------------------------------------------------- */
.journey { padding: 22px 0; overflow: hidden; border-top: 1px solid #1B2A44; }
.journey-track { display: flex; width: max-content; }
.journey-set { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.journey-set span { font-size: clamp(1.2rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; white-space: nowrap; color: var(--ink); }
.journey-set span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px #6F80A0; }
.journey-set i { font-style: normal; color: var(--accent); font-size: clamp(1rem, 1.6vw, 1.3rem); }

/* ------------------------------------------------------------------
   Tabbed index on the left, staged screen on the right
------------------------------------------------------------------- */
.mod-grid { margin-top: 56px; display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.mod-index { display: grid; gap: 2px; }
.stage-name { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 18px 12px 6px; }
.stage-name:first-child { margin-top: 0; }
.mod-tab { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 9px 12px; background: none; border: 1px solid transparent; border-radius: var(--radius); text-align: left; cursor: pointer; font: 600 19px/1.2 var(--font); letter-spacing: -0.01em; color: var(--ink-2); transition: background-color .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease; }
.mod-tab small { display: block; margin-top: 3px; font: 400 15.5px/1.3 var(--font); color: var(--ink-3); letter-spacing: 0; }
.mod-tab .mi { width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: #F6F7F9; border: 1px solid var(--rule); color: var(--ink-3); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.mod-tab .mi .ico { width: 18px; height: 18px; }
.mod-tab .arrow { color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .25s var(--ease); }
.mod-tab:hover { background: #F6F7F9; color: var(--ink); }
.mod-tab[aria-selected="true"] { background: #fff; border-color: var(--rule); color: var(--ink); box-shadow: 0 14px 32px -20px rgba(37, 99, 235, .45); }
.mod-tab[aria-selected="true"] .mi { background: var(--accent); border-color: var(--accent); color: #fff; }
.mod-tab[aria-selected="true"] .arrow { opacity: 1; transform: none; }

.mod-stage { position: relative; padding: 40px 40px 32px; background: #F3F5F8; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.mod-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 32, 64, .09) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); pointer-events: none; }
.mod-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.mod-stage > * { position: relative; }
.mod-panel[hidden] { display: none; }
.mod-panel h3 { font-size: 30px; }
.mod-panel > p { margin-top: 10px; color: var(--ink-2); max-width: 58ch; }
.mod-points { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mod-points li { position: relative; padding-left: 22px; font-size: 17.5px; color: var(--ink); }
.mod-points li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.mod-screen { margin-top: 28px; }
.mod-screen .win { box-shadow: 0 34px 60px -30px rgba(11, 22, 40, .4), 0 2px 6px rgba(11, 22, 40, .05); }
.mod-panel .more { display: inline-block; margin-top: 22px; }
.screen-note { margin-top: 10px; color: var(--ink-3); font-size: 15.5px; }

/* Illustrative screen contents (kept for the animated AI demo) */
.ui-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-weight: 600; font-size: 17.5px; }
.ui-title small { font-weight: 400; font-size: 15px; color: #5F6A80; }
.muted { color: #5F6A80; font-size: 15px; }

/* ------------------------------------------------------------------
   Ruled table (offices, rules): a table, not a card grid
------------------------------------------------------------------- */
.offices { margin-top: 56px; border-top: 2px solid var(--ink); }
.office { display: grid; grid-template-columns: 3fr 6fr 3fr; gap: 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color .2s ease; }
.office h3 { font-size: 21px; }
.office p { color: var(--ink-2); }
.office .uses { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.offices.two .office { grid-template-columns: 4fr 8fr; }

/* ------------------------------------------------------------------
   AI: sticky rules on the left, animated demo on the right
------------------------------------------------------------------- */
.ai .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.ai-head { position: sticky; top: 108px; }
.ai-rule { margin-top: 36px; }
.ai-rule li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--rule); }
.ai-rule li:last-child { border-bottom: 1px solid var(--rule); }
.ai-rule .n { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.ai-rule strong { display: block; font-weight: 600; }
.ai-rule span { color: var(--ink-2); font-size: 18px; }

.ai-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--rule); margin-bottom: 18px; }
.ai-steps span { position: relative; padding-top: 10px; font-size: 16px; color: var(--ink-3); transition: color .3s ease; }
.ai-steps span::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.ai-steps span.on, .ai-steps span.past { color: var(--ink); }
.ai-steps span.on::before, .ai-steps span.past::before { transform: none; }
.ai-card .win-body { padding: 0; }
.ai-who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #DCE1E8; }
.ai-who b { font-weight: 600; font-size: 18px; }
.ai-inner { padding: 16px 18px 18px; }
.finding { padding: 10px 12px; border-left: 3px solid #9A5B00; background: #FBF1DE; color: #5C3700; font-size: 16px; }
.draft-label { margin-top: 16px; font-size: 14.5px; font-weight: 600; color: #2563EB; }
.draft { margin-top: 6px; min-height: 70px; padding: 12px 14px; border: 1px solid #C9D7F2; background: #F5F8FE; border-radius: var(--radius); font-size: 17.5px; line-height: 1.5; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; background: #2563EB; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
.caret[hidden] { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.ai-actions { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini { font: 600 13px/1 var(--font); padding: 9px 13px; border-radius: var(--radius); border: 1px solid #C4CBD6; color: #0E1A2B; background: #fff; transition: transform .15s ease, background-color .15s; }
.mini.primary { background: #2563EB; border-color: #2563EB; color: #fff; }
.mini.press { transform: translateY(1px); background: #1D4ED8; }
.sent { margin-left: auto; font-size: 15px; font-weight: 600; color: #157A3E; opacity: 0; transition: opacity .3s ease; }
.sent.show { opacity: 1; }
.ai-note { margin-top: 12px; color: var(--ink-3); font-size: 15.5px; }

/* ------------------------------------------------------------------
   Products: asymmetric grid of real screens
------------------------------------------------------------------- */
.products-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.product { grid-column: span 4; position: relative; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, box-shadow .3s ease; }
.product.wide { grid-column: span 7; }
.product.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.product.featured .product-body { padding: 44px 40px 40px; }
.product.featured .product-shot { margin-top: 44px; padding: 0; }
.product.featured .product-shot .win { height: 400px; border-right: 0; border-radius: var(--radius) 0 0 0; }
.product-body { padding: 30px 30px 0; }
.product h3 { font-size: 25px; }
.product h3 a { text-decoration: none; }
.product h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product .for { margin-top: 6px; color: var(--ink-3); font-size: 16.5px; }
.product-body > p { margin-top: 14px; color: var(--ink-2); max-width: 48ch; }
.product .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-weight: 600; font-size: 17.5px; }
.product-shot { margin-top: 28px; padding: 0 30px; flex: 1; display: flex; align-items: flex-end; }
.product-shot .shot { width: 100%; }
.product-shot .win { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; height: 236px; box-shadow: 0 24px 50px -30px rgba(11, 22, 40, .45); }
.product-shot .shot .win img { height: calc(100% - 38px); object-fit: cover; object-position: left top; }
.product-shot .shot.phone { width: 260px; margin: 0 auto; }
.product-shot .shot.phone .device { max-height: 340px; border-bottom-width: 0; border-radius: 34px 34px 0 0; }
.product-shot .shot.phone img, .product-shot .shot.phone .shot-ph { border-radius: 25px 25px 0 0; }
.product.featured { background: #0B1628; border-color: #0B1628; }
.product:hover { border-color: #A9BEE8; box-shadow: 0 18px 40px -26px rgba(37, 99, 235, .45); }
.product:hover .go .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------
   Company
------------------------------------------------------------------- */
.company .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.since { border-top: 2px solid var(--ink); padding-top: 20px; }
.since .year { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.since p { margin-top: 16px; color: var(--ink-2); max-width: 34ch; }
.since ul { margin-top: 32px; }
.since li { padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.since li span { font-weight: 400; color: var(--ink-3); font-size: 16px; text-align: right; }
.facts { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.fact { border-top: 2px solid var(--ink); padding-top: 16px; }
.fact h3 { font-size: 19px; }
.fact p { margin-top: 6px; color: var(--ink-2); font-size: 18px; }

/* ------------------------------------------------------------------
   Wiring: hub with connected items either side
------------------------------------------------------------------- */
.wiring { margin-top: 64px; position: relative; display: grid; grid-template-columns: 1fr 240px 1fr; gap: 100px; align-items: center; }
.wire-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wire-svg path { fill: none; stroke: #D3DEEE; stroke-width: 1.5; }
.wire-svg path.live { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 5 195; stroke-dashoffset: 6; }
.sys-col { position: relative; z-index: 1; display: grid; gap: 12px; }
.sys { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); font-weight: 600; font-size: 18px; line-height: 1.25; transition: transform .3s var(--ease), border-color .2s ease, box-shadow .3s ease; }
.sys small { display: block; font-weight: 400; font-size: 14.5px; color: var(--ink-3); }
.sys .mono { width: 34px; height: 34px; flex: none; border-radius: var(--radius); display: grid; place-items: center; background: #F1F3F6; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.sys .mono .ico { width: 17px; height: 17px; }
.sys:hover { transform: translateY(-2px); border-color: #A9BEE8; box-shadow: 0 12px 30px -16px rgba(37, 99, 235, .4); }
.sys-col.right .sys { flex-direction: row-reverse; text-align: right; }
.core { position: relative; z-index: 1; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 30% 25%, #1A3A73, #0B1628 70%); color: #fff; box-shadow: 0 0 0 12px rgba(37, 99, 235, .06), 0 0 0 26px rgba(37, 99, 235, .04), 0 30px 70px -20px rgba(11, 22, 40, .55); }
.core::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(37, 99, 235, .35); }
.core img { width: 74px; margin: 0 auto 10px; }
.core strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.15; }
.core span { display: block; margin-top: 6px; font-size: 14px; color: #A7B3C6; }
.hub-foot { margin-top: 52px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hub-foot .tag { font-size: 15.5px; padding: 7px 12px; }
.wiring-note { margin-top: 24px; text-align: center; color: var(--ink-2); }

/* ------------------------------------------------------------------
   Process
------------------------------------------------------------------- */
.process { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); }
.process li { padding: 28px 28px 0 0; border-top: 1px solid var(--rule-strong); position: relative; }
.process li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.process h3 { font-size: 20px; }
.process p { margin-top: 8px; color: var(--ink-2); font-size: 18px; max-width: 30ch; }

/* ------------------------------------------------------------------
   Closing + footer
------------------------------------------------------------------- */
.closing { background: var(--night); color: var(--on-night); padding: 104px 0 0; }
.closing-inner { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; padding-bottom: 96px; border-bottom: 1px solid #22314A; }
.closing h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); max-width: 18ch; }
.closing .lead { margin-top: 18px; color: var(--on-night-2); font-size: 19px; max-width: 46ch; }
.closing .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.closing .btn-ghost { color: var(--on-night); border-color: #3A4B66; }
.closing .btn-ghost:hover { border-color: var(--on-night); }
.oncall h3 { font-size: 17.5px; font-weight: 600; color: var(--on-night-2); padding-bottom: 12px; border-bottom: 2px solid var(--on-night); }
.oncall li { display: grid; grid-template-columns: 28px 1fr; padding: 14px 0; border-bottom: 1px solid #22314A; color: var(--on-night); }
.oncall li b { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

.footer { padding: 56px 0 40px; color: var(--on-night-2); font-size: 17.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer img { width: 76px; margin-bottom: 16px; }
.footer-grid > div:first-child p { max-width: 34ch; }
.footer h4 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--on-night); }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid #22314A; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 16px; }
.footer-base nav { display: flex; gap: 24px; }

/* ------------------------------------------------------------------
   Motion (enhancement only; content is visible without JS)
------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .45s; }
  .js .reveal.d2 { transition-delay: .6s; }
  .js .reveal.d3 { transition-delay: .35s; }
  .js [data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .2s ease; transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .js [data-stagger].in > * { opacity: 1; transform: none; }

  .js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .js .split .w > span { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
  .js .split.in .w > span { transform: none; }

  .live-toast.show { animation: toastIn .55s var(--ease) both; }
  .live-toast.hide { animation: toastOut .35s ease both; }
  .live-dot { animation: ping 1.8s ease-out infinite; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 100% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); } }

  .journey-track { animation: marquee 50s linear infinite; }
  .journey:hover .journey-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  .js .mark::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.65, 0, .35, 1) .5s; }
  .js .in .mark::after { transform: none; }

  .mod-panel:not([hidden]) > * { animation: rise .5s var(--ease) both; }
  .mod-panel:not([hidden]) > *:nth-child(2) { animation-delay: .04s; }
  .mod-panel:not([hidden]) > *:nth-child(3) { animation-delay: .08s; }
  .mod-panel:not([hidden]) > *:nth-child(4) { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }

  .js .offices { border-top-color: transparent; position: relative; }
  .js .offices::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
  .js .offices.in::before { transform: scaleX(1); }

  .js .fact { border-top-color: transparent; position: relative; }
  .js .fact::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 120ms + 150ms); }
  .js .facts.in .fact::before { transform: scaleX(1); }

  .wire-svg path.live { animation: wire 3.2s linear infinite; animation-delay: var(--d, 0s); }
  @keyframes wire { from { stroke-dashoffset: 6; } to { stroke-dashoffset: -100; } }
  .core::before { animation: spin 40s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .lines-after line.flow { animation: flow 2.4s linear infinite; }
  .lines-after line.flow:nth-child(odd) { animation-delay: -1.2s; }
  @keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -200; } }

  .js .process li { border-top-color: transparent; }
  .js .process li::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule-strong); transform: scaleX(0); transform-origin: left; transition: transform .5s linear; transition-delay: calc(var(--i, 0) * 350ms + 200ms); }
  .js .process.in li::after { transform: scaleX(1); }
  .js .process li::before { transition: background-color .3s ease; transition-delay: calc(var(--i, 0) * 350ms + 200ms); }
  .js .process.in li::before { background: var(--accent); }
  .js .process[data-stagger] > * { transition-delay: calc(var(--i, 0) * 350ms + 200ms); }

  @media (hover: hover) and (pointer: fine) {
    .product { transition: border-color .2s ease, box-shadow .3s ease, transform .35s var(--ease); }
    .product:hover { transform: translateY(-3px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ba-node, .ba-hub, .lines-before, .lines-after, .ba-tag { transition: none !important; }
  .ba-list li { animation: none; }
  .caret { animation: none; }
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav { gap: 20px; }
  .hero .wrap, .problem .wrap, .ai .wrap, .company .wrap { gap: 48px; }
  .mod-grid { grid-template-columns: 1fr; gap: 20px; }
  .mod-index { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .mod-index::-webkit-scrollbar { display: none; }
  .mod-index .stage-name { display: none; }
  .mod-tab { flex: none; width: auto; grid-template-columns: 30px auto; gap: 9px; padding: 7px 12px 7px 7px; border-color: var(--rule); font-size: 17.5px; }
  .mod-tab .mi { width: 30px; height: 30px; }
  .mod-tab .mi .ico { width: 15px; height: 15px; }
  .mod-tab small, .mod-tab .arrow { display: none; }
  .wiring { gap: 56px; grid-template-columns: 1fr 200px 1fr; }
  .product, .product.wide { grid-column: span 6; }
  .product:last-child:nth-child(even) { grid-column: 1 / -1; }
  .product.featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .product.featured .product-body { padding: 32px 30px 0; }
  .product.featured .product-shot { margin-top: 28px; padding: 0 30px; }
  .product.featured .product-shot .win { height: 340px; border-right: 1px solid #DCE1E8; border-radius: var(--radius) var(--radius) 0 0; }
}
@media (max-width: 900px) {
  .site-header .wrap { gap: 16px; }
  .menu-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: 8px 20px 24px; border-top: 1px solid #22314A; max-height: calc(100vh - 68px); overflow: auto; }
  .site-header.open .nav { display: flex; }
  .nav > a, .nav-group > button { padding: 14px 0; text-align: left; width: 100%; }
  .nav > a[aria-current="page"] { box-shadow: none; color: #fff; }
  .nav-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: 1fr; box-shadow: none; }
  .nav-menu::before { display: none; }
  .nav-group.open .nav-menu { display: grid; }
  .nav-mobile-cta { display: inline-flex !important; justify-content: center; margin-top: 12px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 72px; }
  .page-hero { padding: 56px 0 64px; }
  .hero .wrap, .problem .wrap, .ai .wrap, .company .wrap, .closing-inner, .split-head { grid-template-columns: 1fr; }
  .split-head { gap: 18px; }
  .ai-head { position: static; }
  .section { padding: 80px 0; }
  .mod-index { margin: 0 -20px; padding: 0 20px 4px; }
  .mod-stage { padding: 26px 18px 22px; }
  .mod-panel h3 { font-size: 25px; }
  .office, .offices.two .office { grid-template-columns: 1fr; gap: 6px; }
  .office .uses { justify-content: flex-start; margin-top: 6px; }
  .wiring { grid-template-columns: 1fr; gap: 20px; }
  .wire-svg { display: none; }
  .core { width: 220px; margin: 0 auto 20px; order: -1; }
  .sys-col { grid-template-columns: 1fr 1fr; }
  .sys-col.right .sys { flex-direction: row; text-align: left; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .process { grid-template-columns: 1fr; }
  .process li { padding: 0 0 32px 28px; border-top: 0; border-left: 1px solid var(--rule-strong); }
  .process li::before { top: 4px; left: -6px; }
  @media (prefers-reduced-motion: no-preference) {
    .js .process li { border-left-color: transparent; }
    .js .process li::after { left: -1px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
    .js .process.in li::after { transform: scaleY(1); }
  }
  .products-grid { grid-template-columns: 1fr; }
  .product, .product.wide { grid-column: auto; }
  .product-body { padding: 24px 22px 0; }
  .product-shot { padding: 0 22px; }
  .proof .wrap { grid-template-columns: 1fr; gap: 10px; }
  .proof ul { grid-template-columns: 1fr; gap: 10px; }
  .since li { flex-direction: column; gap: 2px; }
  .since li span { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .clients .wrap { gap: 14px; }
  .clients ul { gap: 12px 32px; }
  .journey { padding: 16px 0; }
  .ba-node { width: 110px; font-size: 14.5px; padding: 7px 6px; }
  .ba-node small { font-size: 13px; }
  .ba-tag { font-size: 12.5px; padding: 3px 5px; }
  .ba-hub { width: 128px; padding: 10px 8px; }
  .ba-hub strong { font-size: 15px; }
  .ba-hub .ico { display: none; }
  .live-toast { left: 12px; right: 12px; min-width: 0; bottom: -40px; }
}
@media (max-width: 520px) {
  .ba-node { width: 92px; font-size: 13.5px; }
  .ba-node .ni { display: none; }
  .sys-col { grid-template-columns: 1fr; }
  .ai-steps span { font-size: 14.5px; }
  .live-toast { position: relative; left: auto; right: auto; bottom: auto; margin-top: 12px; }
  .hero-caption { margin-top: 16px; }
  .footer-base nav { flex-wrap: wrap; gap: 8px 20px; }
}

/* ==================================================================
   v3.1: each AI employee role carries its own hue (--h); colour on these
   parts says which role you are looking at. Buttons and links stay blue.
=================================================================== */

/* ------------------------------------------------------------------
   Role icon: the role's line icon on its own colour
------------------------------------------------------------------- */
.role-ico { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: var(--radius); background: hsl(var(--h) 70% 44%); color: #fff; transition: background-color .6s ease; }
.role-ico .ico { width: 26px; height: 26px; stroke-width: 1.6; }
.role-ico.sm { width: 30px; height: 30px; background: rgba(255, 255, 255, .18); }
.role-ico.sm .ico { width: 17px; height: 17px; }

/* ------------------------------------------------------------------
   Hero scene: a conversation, an approval, the job done
------------------------------------------------------------------- */
.scene { --h: 4; position: relative; height: 520px; }
.sc-badge { position: absolute; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; color: #0E1A2B; border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); line-height: 1.25; }
.sc-badge .role-ico { width: 44px; height: 44px; }
.sc-badge .role-ico .ico { width: 22px; height: 22px; }
.sc-badge b { display: block; font-weight: 600; font-size: 16px; }
.sc-status { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #435069; }
.sc-status i { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; flex: none; }
.sc-badge.busy .sc-status i { background: hsl(var(--h) 75% 48%); }
@media (prefers-reduced-motion: no-preference) {
  .sc-status i { animation: ping 1.8s ease-out infinite; }
}
.sc-chat { position: absolute; left: 0; top: 40px; width: calc(100% - 56px); height: 316px; z-index: 2; display: flex; flex-direction: column; background: #fff; color: #0E1A2B; border-radius: var(--radius); overflow: hidden; box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .6); }
.sc-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #DCE1E8; background: #fff; border-top: 3px solid hsl(var(--h) 80% 52%); transition: border-color .6s ease; }
.sc-head b { font-weight: 600; font-size: 15px; }
.sc-head .tag { color: #435069; background: #F1F3F6; }
.sc-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px; background: #F6F7F9; overflow: hidden; transition: opacity .35s ease; }
.sc-b { max-width: 84%; padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.sc-b.cu { align-self: flex-start; background: #fff; border: 1px solid #DCE1E8; border-bottom-left-radius: 3px; }
.sc-b.ai { align-self: flex-end; background: hsl(var(--h) 85% 95%); border: 1px solid hsl(var(--h) 60% 84%); border-bottom-right-radius: 3px; }
.sc-b.typing { display: inline-flex; gap: 5px; padding: 13px 14px; }
.sc-b.typing i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h) 45% 50%); }
.sc-ok { position: absolute; right: 0; top: 330px; z-index: 4; width: 320px; padding: 16px 18px; background: #fff; color: #0E1A2B; border-radius: var(--radius); border-left: 4px solid #C77700; box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .65); transition: opacity .4s ease, transform .5s var(--ease), border-color .3s ease; }
.sc-ok-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #9A5B00; }
.sc-ok-head .y { display: none; }
.sc-ok.approved { border-left-color: #157A3E; }
.sc-ok.approved .sc-ok-head .w { display: none; }
.sc-ok.approved .sc-ok-head .y { display: inline; }
.sc-ok.approved .sc-ok-head { color: #157A3E; }
.sc-ok-title { margin-top: 8px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.sc-ok-note { margin-top: 4px; color: #5F6A80; font-size: 14px; line-height: 1.4; }
.sc-ok .ai-actions { margin-top: 12px; }
.sc-ok.approved .mini { opacity: .45; }
.sc-done { position: absolute; right: 0; top: 330px; z-index: 4; max-width: 340px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; color: #0E1A2B; border-radius: var(--radius); box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .6); font-size: 15px; font-weight: 600; transition: opacity .4s ease, transform .5s var(--ease); }
.ok-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E3F3E9; color: #157A3E; flex: none; }
.ok-mark .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.scene-cap { position: absolute; left: 0; bottom: 8px; color: var(--ink-3); font-size: 15.5px; }
/* Hidden states exist only once site.js runs the scene */
.scene.live .sc-ok:not(.show) { opacity: 0; transform: translateY(14px); }
.scene.live .sc-done:not(.show) { opacity: 0; transform: translateY(10px); }
.scene:not(.live) .sc-done:not(.show) { display: none; }
.scene.live .sc-b:not(.in) { opacity: 0; transform: translateY(8px); }
.scene.live .sc-b { transition: opacity .35s ease, transform .45s var(--ease); }
.scene.swap .sc-msgs { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sc-b.typing i { animation: dot 1.1s ease-in-out infinite; }
  .sc-b.typing i:nth-child(2) { animation-delay: .15s; }
  .sc-b.typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
}

/* ------------------------------------------------------------------
   Roster: one card per role; on wide screens the screen for the role
   in view sits on a sticky stage tinted in that employee's colour
------------------------------------------------------------------- */
.roster { margin-top: 64px; }
.role { --h: 214; }
.role + .role { margin-top: 72px; }
.role-card { padding-left: 24px; border-left: 3px solid hsl(var(--h) 75% 52%); transition: opacity .45s ease; }
.role-top { display: flex; align-items: center; gap: 18px; }
.role h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.role-shift { margin-top: 4px; color: var(--ink-3); font-size: 16.5px; }
.role-card > p { margin-top: 18px; color: var(--ink-2); max-width: 46ch; }
.role-does { margin-top: 16px; display: grid; gap: 8px; }
.role-does li { position: relative; padding-left: 26px; font-size: 18px; color: var(--ink); }
.role-does li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px; border-left: 2px solid hsl(var(--h) 70% 40%); border-bottom: 2px solid hsl(var(--h) 70% 40%); transform: rotate(-45deg); }
.role-hands { margin-top: 18px; padding: 11px 14px; background: hsl(var(--h) 80% 96%); border-radius: var(--radius); font-size: 17.5px; color: var(--ink-2); max-width: 46ch; }
.role-hands b { color: var(--ink); font-weight: 600; }
.role-shot { margin-top: 28px; }
.role-shot figcaption { margin-top: 12px; color: var(--ink-3); font-size: 15.5px; }
.roster-stage { display: none; }
.roster-note { margin-top: 48px; color: var(--ink-3); font-size: 16px; }

/* A frame that lets callout pins sit outside the clipped window */
.shot-frame { position: relative; display: inline-block; max-width: 100%; vertical-align: top; text-align: left; }
.shot-frame > .shot { display: block; }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; align-items: center; gap: 8px; transform: translate(-7px, -50%); pointer-events: none; }
.pin::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(37, 99, 235, .5), 0 4px 10px rgba(11, 22, 40, .3); }
.pin span { background: #0E1A2B; color: #fff; font: 600 15px/1.25 var(--font); padding: 6px 10px; border-radius: var(--radius); white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(11, 22, 40, .6); }
.pin.l { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }
@media (prefers-reduced-motion: no-preference) {
  .pin::before { animation: pinPing 2.2s ease-out infinite; }
  @keyframes pinPing { 0% { box-shadow: 0 0 0 1px rgba(37, 99, 235, .5), 0 0 0 0 rgba(37, 99, 235, .45); } 70%, 100% { box-shadow: 0 0 0 1px rgba(37, 99, 235, .5), 0 0 0 12px rgba(37, 99, 235, 0); } }
}

/* What the customer sees: a phone, or a website chat */
.phone-mock { width: 290px; height: 540px; max-width: 100%; display: flex; flex-direction: column; border: 9px solid #0E1A2B; border-radius: 34px; background: #fff; color: #0E1A2B; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(11, 22, 40, .55); font-size: 16px; text-align: left; }
.pm-head { padding: 18px 14px 10px; text-align: center; background: #F6F7F9; border-bottom: 1px solid #E3E7ED; line-height: 1.3; }
.pm-head b { display: block; font-weight: 600; font-size: 14.5px; }
.pm-head span { font-size: 12px; color: #5F6A80; }
.pm-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px; }
.pm-b { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.42; }
.pm-b.biz { align-self: flex-start; background: #E9ECF1; border-bottom-left-radius: 4px; }
.pm-b.me { align-self: flex-end; background: #2563EB; color: #fff; border-bottom-right-radius: 4px; }
.pm-when { align-self: center; font-size: 11.5px; color: #5F6A80; }
.mock-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 250px; padding: 10px 14px; background: #fff; color: #0E1A2B; border-radius: var(--radius); border-left: 4px solid hsl(var(--h) 75% 50%); box-shadow: 0 18px 40px -16px rgba(11, 22, 40, .45); font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; }
.mock-chip small { display: block; font-weight: 400; color: #5F6A80; font-size: 12.5px; }
.chat-mock { width: 410px; max-width: 100%; background: #fff; color: #0E1A2B; border: 1px solid #DCE1E8; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11, 22, 40, .45); font-size: 16.5px; text-align: left; }
.cm-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: hsl(var(--h) 50% 38%); color: #fff; line-height: 1.25; }
.cm-head b { display: block; font-weight: 600; font-size: 15px; }
.cm-head span { font-size: 12.5px; opacity: .85; }
.cm-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #F6F7F9; }
.cm-body .pm-b.biz { background: #fff; border: 1px solid #DCE1E8; }
.cm-body .pm-b.me { background: hsl(var(--h) 50% 38%); }

@media (min-width: 1025px) {
  .js .roster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .js .role { min-height: 58vh; display: flex; align-items: center; }
  .js .role + .role { margin-top: 0; }
  .js .role .role-shot { display: none; }
  .js .role:not(.on) .role-card { opacity: .32; }
  .js .roster-stage { --stage-h: min(660px, calc(100vh - 124px)); display: block; position: sticky; top: 100px; height: var(--stage-h); border-radius: var(--radius); background: hsl(var(--h, 214) 75% 95%); transition: background-color .6s ease; overflow: hidden; }
  .js .roster-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(hsl(var(--h, 214) 40% 40% / .14) 1px, transparent 1.4px); background-size: 20px 20px; }
  .stage-item { position: absolute; inset: 32px 32px 24px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .4s ease, transform .6s var(--ease); pointer-events: none; }
  .stage-item.on { opacity: 1; transform: none; pointer-events: auto; }
  .stage-item figcaption { align-self: center; margin-top: 14px; }
  .stage-item .win { box-shadow: 0 34px 60px -30px rgba(11, 22, 40, .45); }
  .stage-item .shot .win img { width: auto; max-width: 100%; max-height: calc(var(--stage-h) - 150px); }
  .stage-item .shot.phone .device img { max-height: calc(var(--stage-h) - 140px); width: auto; }
  .stage-item .phone-mock { height: calc(var(--stage-h) - 110px); max-height: 560px; }
}

/* ------------------------------------------------------------------
   Manager: real approvals screen, then the guard rails
------------------------------------------------------------------- */
#manager .ai-head { position: static; }
.manager-shot .win { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.manager-shot figcaption { margin-top: 14px; color: var(--ink-3); font-size: 15.5px; }
.rails { grid-column: 1 / -1; margin-top: 104px; padding-top: 40px; border-top: 1px solid var(--rule); }
.rails h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.rails > p { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
.rails ul { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.rails li { padding-top: 14px; border-top: 2px solid var(--accent); }
.rails strong { display: block; font-weight: 600; font-size: 20px; }
.rails li span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 18px; }

/* ------------------------------------------------------------------
   Company + getting started (one section)
------------------------------------------------------------------- */
.steps { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps h4 { font-size: 19px; font-weight: 600; }
.steps h4::before { content: counter(step); display: inline-block; width: 26px; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 18px; padding-left: 26px; }
.company h3.sub { margin-top: 56px; font-size: 22px; }
.since .partner { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 18px; max-width: 38ch; }
.since .partner b { display: block; color: var(--ink); font-weight: 600; font-size: 19.5px; margin-bottom: 4px; }


/* Talk2Log tile: the top of a phone */
.product-shot .phone-mock { width: 270px; height: 236px; margin: 0 auto; border-bottom: 0; border-radius: 34px 34px 0 0; box-shadow: 0 24px 50px -30px rgba(11, 22, 40, .45); }
.product-shot .phone-mock .pm-body { justify-content: flex-start; }
.t2l-card { padding: 10px 12px; border: 1px solid #DCE1E8; border-left: 3px solid #157A3E; border-radius: var(--radius); font-size: 15px; line-height: 1.35; }
.t2l-card b { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.t2l-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.t2l-card dt { color: #5F6A80; }
.t2l-card dd { margin: 0; font-weight: 600; }

@media (max-width: 1024px) {
  .scene { height: 520px; }
}
@media (max-width: 860px) {
  .scene { height: auto; padding: 84px 0 176px; }
  .sc-chat { position: relative; top: auto; width: 100%; height: 330px; }
  .sc-ok, .sc-done { top: auto; bottom: 34px; width: min(320px, 92%); }
  .scene-cap { bottom: 0; }
  .rails ul { grid-template-columns: 1fr; gap: 22px; }
  .rails { margin-top: 64px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .role-shot { text-align: center; }
  .role-shot figcaption { text-align: left; }
  .mock-chip { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; margin: 14px auto 0; }
}
@media (max-width: 520px) {
  .pin { display: none; }
  .sc-b { font-size: 14px; }
}

/* ------------------------------------------------------------------
   Home, balanced across products (2026-11-20): four equal product cards,
   then one compact digital-employees section (#digital-employees).
------------------------------------------------------------------- */
.products-grid.even .product { grid-column: span 6; }
.product .built-in { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 17.5px; max-width: 52ch; }
.product .built-in b { color: var(--ink); font-weight: 600; }
#digital-employees .ai-head { position: static; }
.rails-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; color: var(--accent); font-weight: 600; text-decoration: none; }
.rails-more:hover .arrow { transform: translateX(3px); }
.rails-more .arrow { transition: transform .2s ease; }
@media (max-width: 860px) {
  .products-grid.even .product { grid-column: auto; }
}

/* ------------------------------------------------------------------
   Closer look (#closer-look): one spotlight per product, alternating sides
------------------------------------------------------------------- */
.spot-nav { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.spot-nav a { padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 16.5px; font-weight: 500; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.spot-nav a:hover { border-color: var(--accent); color: var(--accent); }
.spots { margin-top: 72px; display: grid; gap: 120px; }
.spot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; scroll-margin-top: 96px; }
.spot.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spot.flip .spot-text { order: 2; }
.spot h3 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.15; max-width: 24ch; }
.spot .for { margin-top: 10px; color: var(--ink-3); font-size: 17.5px; }
.spot-text > p:not(.for) { margin-top: 16px; color: var(--ink-2); max-width: 52ch; }
.spot-list { margin-top: 22px; display: grid; gap: 11px; }
.spot-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.spot-list .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.spot-list b { color: var(--ink); font-weight: 600; }
.spot .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--accent); font-weight: 600; font-size: 17.5px; text-decoration: none; }
.spot .go .arrow { transition: transform .2s ease; }
.spot .go:hover .arrow { transform: translateX(3px); }
/* Integrations hub under the CTeck Integrate row: reads as part of that row, not a new product */
.spot-hub { margin-top: -40px; }
.spot-hub .wiring { margin-top: 0; }
.spot-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.spot-shot .win { box-shadow: 0 30px 60px -32px rgba(11, 22, 40, .45); }
.spot-shot figcaption { margin-top: 12px; color: var(--ink-3); font-size: 15.5px; }
@media (max-width: 900px) {
  .spot, .spot.flip { grid-template-columns: 1fr; gap: 32px; }
  .spot.flip .spot-text { order: 0; }
  .spots { gap: 80px; margin-top: 48px; }
  .spot-hub { margin-top: -32px; }
}
/* Web window with a phone overlapping its lower-left corner (Talk2Log spotlight) */
.spot-combo { position: relative; padding-bottom: 48px; }
.spot-combo > .shot:not(.phone) { margin-left: 84px; }
.spot-combo > .shot.phone { position: absolute; left: 0; bottom: 0; width: 196px; z-index: 2; }
.spot-combo > .shot.phone .device { max-height: 400px; }
.spot-combo figcaption { margin-left: 84px; padding-left: 130px; }
@media (max-width: 620px) {
  .spot-combo { padding-bottom: 0; }
  .spot-combo > .shot:not(.phone), .spot-combo figcaption { margin-left: 0; padding-left: 0; }
  .spot-combo > .shot.phone { position: relative; width: 62%; max-width: 230px; margin: -64px auto 0; }
}
/* Talk2Log card: phone matches the 236px window height of the other cards */
.products-grid.even .product-shot .shot.phone { width: 230px; }
.products-grid.even .product-shot .shot.phone .device { max-height: 236px; }

/* ------------------------------------------------------------------
   Hero scene on a real screen (2026-11-23): the window behind the conversation
   shows the product's real demo screen and changes with each scenario.
------------------------------------------------------------------- */
.sc-shots { position: relative; height: calc(100% - 38px); background: #F3F5F8; overflow: hidden; }
.sc-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity .7s ease; }
.sc-shots img.on { opacity: 1; }
.sc-screen .win-bar span { transition: opacity .3s ease; }
@media (min-width: 861px) {
  .scene { height: 568px; }
  .sc-screen { position: absolute; top: 30px; right: 0; width: calc(100% - 36px); height: 322px; z-index: 1; box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .6); }
  .sc-chat { top: 236px; width: 312px; height: 258px; }
  .sc-b { font-size: 14px; }
  .sc-ok, .sc-done { top: 384px; }
  .sc-ok { width: 268px; }
  .sc-done { max-width: 268px; }
}
@media (max-width: 860px) {
  .sc-screen { position: relative; height: 210px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
  .sc-chat { height: 250px; width: calc(100% - 20px); margin: -40px 0 0 20px; }
  .scene { padding-bottom: 214px; }
  .sc-ok, .sc-done { bottom: 64px; }
}

/* ---------------------------------------------------------------
   Product index (home #products, 2026-11-23): replaces the four equal
   cards. One ruled row per product, led by who it is for. The product
   mark carries the same hue as the hero scene (--h); the fragment is a
   real screen detail shown at true size (never a whole screen shrunk).
   --------------------------------------------------------------- */
.pindex { margin-top: 64px; border-bottom: 1px solid var(--rule); }
.prow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4.6fr) 360px; gap: 28px 56px; align-items: start; padding: 48px 0; border-top: 1px solid var(--rule); }
.prow-who h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.16; letter-spacing: -0.02em; font-weight: 600; max-width: 17ch; text-wrap: balance; }
.pname { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 19.5px; font-weight: 600; }
.pname .role-ico { width: 32px; height: 32px; }
.pname .role-ico .ico { width: 17px; height: 17px; stroke-width: 1.8; }
.pname a { color: var(--ink); text-decoration: none; }
.pname a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prow-what > p:first-child { color: var(--ink-2); font-size: 19px; max-width: 46ch; }
.prow .built-in { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 17.5px; max-width: 50ch; }
.prow .built-in b { color: var(--ink); font-weight: 600; }
.prow-links { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; font-size: 17.5px; }
.prow-links .go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.prow-links .go:hover .arrow { transform: translateX(3px); }
.prow-links .see { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.prow-links .see:hover { color: var(--accent); text-decoration-color: currentColor; }
.pfrag { margin: 0; }
.pfrag img { width: 100%; max-width: 360px; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.pfrag figcaption { margin-top: 10px; color: var(--ink-3); font-size: 15.5px; max-width: 360px; }
@media (max-width: 1080px) {
  .prow { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 48px; }
  .prow-who { grid-column: 1; grid-row: 1; }
  .prow-what { grid-column: 1; grid-row: 2; }
  .pfrag { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 720px) {
  .pindex { margin-top: 40px; }
  .prow { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 36px 0; }
  .prow-who, .prow-what, .pfrag { grid-column: 1; grid-row: auto; }
  .pname { margin-top: 16px; }
  .pfrag { margin-top: 6px; }
}

/* ==================================================================
   Inner pages (2026-11-23): the shared kit every product, module and
   company page is built from. Same tokens, radius and type as home.
=================================================================== */

/* Product hero: copy left, one real screen (a panel crop) right.
   Uses .hero; the crumbs sit above the h1 as navigation, not an eyebrow. */
.hero .crumbs { margin-bottom: 22px; }
.hero-visual figcaption { margin-top: 14px; color: var(--ink-3); font-size: 15.5px; max-width: 60ch; }
.hero-visual .shot .win { box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .6); }
.hero-visual .shot-frame { display: block; }
.hero-visual .shot.phone { margin: 0 auto; }
.hero-visual.combo { position: relative; padding-bottom: 40px; }
.hero-visual.combo > .shot-frame { margin-left: 72px; }
.hero-visual.combo > .shot.phone { position: absolute; left: 0; bottom: 0; width: 190px; z-index: 2; }
.hero-visual.combo figcaption { margin-left: 72px; padding-left: 132px; }
@media (min-width: 1025px) {
  .hero-visual .shot-frame .shot { width: calc(100% + 140px); }
  .hero-visual.combo > .shot-frame .shot { width: calc(100% + 68px); }
}
@media (max-width: 620px) {
  .hero-visual.combo { padding-bottom: 0; }
  .hero-visual.combo > .shot-frame, .hero-visual.combo figcaption { margin-left: 0; padding-left: 0; }
  .hero-visual.combo > .shot.phone { position: relative; width: 60%; max-width: 220px; margin: -56px auto 0; }
}

/* Page hero followed by one large real screen that overlaps its lower edge */
.page-hero.has-screen { padding-bottom: 208px; }
.screen-band { position: relative; z-index: 1; margin-top: -160px; padding-bottom: 8px; }
.screen-band .shot .win { box-shadow: 0 40px 80px -32px rgba(11, 22, 40, .5); }
.screen-band figcaption { margin-top: 12px; color: var(--ink-3); font-size: 15.5px; }
.screen-band + .section { padding-top: 96px; }
@media (max-width: 860px) {
  .page-hero.has-screen { padding-bottom: 120px; }
  .screen-band { margin-top: -88px; }
  .screen-band + .section { padding-top: 72px; }
}

/* Page hero, short facts row under the actions (same voice as .basics) */
.page-hero .basics { max-width: 640px; }

/* Links between sibling pages (CTeck modules, products): a row of plain chips */
.spot-nav a[aria-current="page"] { border-color: var(--ink); color: var(--ink); font-weight: 600; pointer-events: none; }
.sibling-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sibling-head h2 { font-size: clamp(1.4rem, 2vw, 1.7rem); }

/* Ruled rows that link somewhere (related products, other modules) */
a.office { color: inherit; }
a.office h3 { transition: color .2s ease; }
a.office:hover h3 { color: var(--accent); }
a.office .go { color: var(--accent); font-weight: 600; font-size: 17.5px; white-space: nowrap; justify-self: end; }
a.office:hover .go .arrow { transform: translateX(3px); }
a.office .arrow { display: inline-block; transition: transform .2s ease; }
@media (max-width: 860px) { a.office .go { justify-self: start; } }

/* FAQ: heading left, ruled questions right. Native details/summary. */
.faq .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 108px; }
.faq-head p { margin-top: 16px; color: var(--ink-2); max-width: 34ch; }
.faq-list { border-bottom: 1px solid var(--rule); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list summary { position: relative; display: block; padding: 22px 48px 22px 0; font-weight: 600; font-size: 19.5px; line-height: 1.35; letter-spacing: -0.01em; cursor: pointer; list-style: none; transition: color .2s ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--accent); border-radius: 1px; transition: transform .3s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details > div { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 64ch; }
.faq-list details > div p + p { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] > div { animation: rise .35s var(--ease) both; }
}
@media (max-width: 860px) {
  .faq .wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq-head { position: static; }
  .faq-list summary { font-size: 19.5px; }
}

/* Forms (contact, demo): the field markup and IDs that contact.js / schedule-demo.js expect */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.form-card { padding: 40px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.form-card h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.form-card > p { margin-top: 10px; color: var(--ink-2); }
.form-card form { margin-top: 28px; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--bad); font-weight: 600; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; font: 400 18.5px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease; caret-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6B7588; }
.field input:hover, .field textarea:hover { border-color: #9AA5B8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.field input.invalid, .field textarea.invalid { border-color: var(--bad); }
.field input.invalid:focus, .field textarea.invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .16); }
.field-error { font-size: 15.5px; color: var(--bad); }
.field-error:empty { display: none; }
.form-card button[type="submit"] { justify-self: start; position: relative; }
.form-card button[type="submit"] svg { width: 16px; height: 16px; }
.btn-label { display: inline-flex; align-items: center; gap: 10px; }
.btn-spinner { display: none; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; }
.btn-loading .btn-label { visibility: hidden; }
.btn-loading .btn-spinner { display: block; animation: btnSpin .8s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
button[disabled] { cursor: progress; opacity: .85; }
#formStatus { font-size: 17.5px; color: var(--ink-2); }
#formStatus:not(:empty) { padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
#formStatus a { color: var(--accent); }
.form-note { margin-top: 4px; color: var(--ink-3); font-size: 15.5px; }
.form-aside h2, .form-aside h3 { font-size: 22px; }
.form-aside > * + * { margin-top: 28px; }
.form-aside p { color: var(--ink-2); }
.contact-lines { border-top: 2px solid var(--ink); }
.contact-lines li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
.contact-lines li b { font-weight: 600; }
.contact-lines a { color: var(--accent); }
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 560px) {
  .form-card { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-lines li { grid-template-columns: 1fr; gap: 2px; }
}

/* Long-form reading (privacy policy): contents on the left, measure capped */
.prose-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: 16.5px; }
.toc b { display: block; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-weight: 600; }
.toc ol { margin-top: 6px; }
.toc a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a:hover { color: var(--accent); }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 56px; font-size: clamp(1.4rem, 2vw, 1.75rem); color: var(--ink); scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 20px; color: var(--ink); }
.prose ul { padding-left: 22px; list-style: disc; }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated { color: var(--ink-3); font-size: 17.5px; }
@media (max-width: 900px) {
  .prose-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

/* Two-column statement: a short claim left, the detail right */
.statement .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.statement p.big { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.4; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; max-width: 34ch; }
@media (max-width: 860px) { .statement .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------------------
   Product pages (2026-11-23, vbiz-connect.html first)
------------------------------------------------------------------- */
/* Anatomy: a ruled two-column list of what something is made of */
.anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 2px solid var(--ink); }
.anatomy li { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.anatomy b { display: block; font-weight: 600; font-size: 20px; }
.anatomy span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 18px; }
@media (max-width: 620px) { .anatomy { grid-template-columns: 1fr; } }

/* Hire: a real sequence. Numbered squares joined by a rule, each step beside its real screen */
.hire { margin-top: 72px; counter-reset: hire; }
.hire-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 4fr) minmax(0, 7fr); gap: 0 48px; align-items: start; padding-bottom: 104px; counter-increment: hire; }
.hire-step:last-child { padding-bottom: 0; }
.hire-step::before { content: counter(hire); position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: var(--radius); font: 600 19px/1 var(--font); font-variant-numeric: tabular-nums; }
.hire-step::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: 8px; width: 2px; background: var(--rule-strong); transform-origin: top; }
.hire-step:last-child::after { display: none; }
.hire-text { padding-top: 4px; }
.hire-text h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; }
.hire-text p { margin-top: 12px; color: var(--ink-2); max-width: 40ch; }
.hire-shot .shot { width: min(100%, var(--w, 100%)); }
.hire-shot .win { box-shadow: 0 30px 60px -34px rgba(11, 22, 40, .45); }
.hire-shot figcaption { margin-top: 12px; color: var(--ink-3); font-size: 15.5px; }
@media (prefers-reduced-motion: no-preference) {
  .js .hire-step::after { transform: scaleY(0); transition: transform 1s cubic-bezier(.65, 0, .35, 1) .35s; }
  .js .hire-step.in::after { transform: none; }
}
@media (max-width: 960px) {
  .hire { margin-top: 48px; }
  .hire-step { grid-template-columns: 44px minmax(0, 1fr); gap: 20px 20px; padding-bottom: 72px; }
  .hire-text, .hire-shot { grid-column: 2; }
}

/* A wide real screen at full container width */
.flow-shot { margin-top: 56px; }
.flow-shot .win { box-shadow: 0 34px 70px -36px rgba(11, 22, 40, .45); }
.flow-shot figcaption { margin-top: 12px; color: var(--ink-3); font-size: 15.5px; }

/* Roles as ruled rows: role (with its hue) / what it does / what it hands to you */
.roles-table .office { grid-template-columns: 3.2fr 5.6fr 3.2fr; }
.roles-table h3 { display: flex; align-items: center; gap: 14px; font-size: 20px; }
.roles-table .role-ico { width: 36px; height: 36px; }
.roles-table .role-ico .ico { width: 19px; height: 19px; }
.roles-table .hands { font-size: 16.5px; color: var(--ink-2); }
.roles-table .hands b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .roles-table .office { grid-template-columns: 1fr; gap: 8px; } }

/* Tabs: a phone screenshot sits centred in the stage */
.mod-phone .shot.phone { margin: 0 auto; max-width: 280px; }
/* Smaller ruled facts under the tabs */
.facts.also { margin-top: 64px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1024px) { .facts.also { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts.also { grid-template-columns: 1fr; } }

/* Guard rails as their own dark section */
.rails-only .rails { margin-top: 0; padding-top: 0; border-top: 0; }
.rails-only .rails h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.rails-only .rails > p { margin-top: 14px; font-size: 19px; }
@media (max-width: 620px) {
  .hero-visual.combo > .shot.phone { width: 46%; max-width: 180px; margin: -32px 0 0 auto; }
}

/* ===== 2026-11-23 small-schools.html ===== */
.parent-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.parent-grid .facts { margin-top: 36px; }
.parent-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.parent-phones .shot.phone { max-width: 250px; }
.parent-phones .shot.phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 900px) {
  .parent-grid { grid-template-columns: 1fr; gap: 40px; }
  .parent-phones { max-width: 520px; }
}
@media (max-width: 620px) {
  .parent-phones { gap: 12px; }
  .parent-phones .shot.phone:nth-child(2) { margin-top: 32px; }
}

/* ===== 2026-11-23 ai-solutions.html (Digital employees) ===== */

/* Statement: the claim's check list sits under the big paragraph */
#employee .spot-list { margin-top: 28px; }
#employee h2 { max-width: 16ch; }

/* Anatomy panels: a small portrait screen (the approval card) sits centred, framed like a screen */
.boss-shot { display: flex; justify-content: center; }
.boss-shot img { width: 100%; max-width: 360px; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 34px 60px -30px rgba(11, 22, 40, .4); }
/* Illustrated shift card (no real screen for working hours) */
.shift { padding: 6px 20px 10px; }
.shift-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #E3E7ED; font-size: 16.5px; color: #435069; }
.shift-row:last-child { border-bottom: 0; }
.shift-row b { font-weight: 600; color: #0E1A2B; }
.shift-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shift .tag.plain { background: #F6F7F9; color: #435069; border-color: #DCE1E8; }

/* A day in the life: time, channel and what happened, as a ruled timeline */
.day-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.day-head { position: sticky; top: 108px; }
.day-head h2 { max-width: 14ch; }
.day-key { margin-top: 32px; display: grid; gap: 10px; font-size: 16.5px; color: var(--ink-3); }
.day-key li { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.day-key .tag { justify-self: start; }
.day { border-top: 2px solid var(--ink); }
.day li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 124px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.day time { font-weight: 600; font-size: 19.5px; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.day .ch { display: inline-flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; color: var(--ink-3); }
.day .ch .ico { width: 15px; height: 15px; color: var(--accent); }
.day p { margin-top: 4px; color: var(--ink-2); font-size: 18.5px; max-width: 54ch; }
.day li > .tag { justify-self: end; }
.day-cap { margin-top: 14px; color: var(--ink-3); font-size: 15.5px; }

/* vBiz Connect roles inside the spotlight: a compact list, each with its role hue */
.roles-mini { margin-top: 22px; display: grid; gap: 12px; }
.roles-mini li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-size: 17.5px; line-height: 1.35; color: var(--ink-2); }
.roles-mini .role-ico { width: 32px; height: 32px; }
.roles-mini .role-ico .ico { width: 17px; height: 17px; stroke-width: 1.8; }
.roles-mini b { display: block; color: var(--ink); font-weight: 600; font-size: 18px; }

/* CTeck spotlight: the insight tile tucks under the escalation window's lower-right corner */
.pair { position: relative; padding-bottom: 200px; }
.pair-tile { position: absolute; right: -24px; bottom: 0; width: 300px; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(11, 22, 40, .45); }
/* Narrow real panels (assistant, voice read-back) shown at true size, not stretched */
.narrow-shot { justify-self: center; }
.panel-img { width: 100%; max-width: 364px; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 30px 60px -32px rgba(11, 22, 40, .45); }
.narrow-shot figcaption { max-width: 364px; }

/* Checks in the dark band: the rails list, laid out under a split head */
#guard-rails .rails.checks { margin-top: 56px; padding-top: 0; border-top: 0; }
#guard-rails .split-head h2 { max-width: 18ch; }

@media (max-width: 900px) {
  .day-wrap { grid-template-columns: 1fr; gap: 36px; }
  .day-head { position: static; }
}
@media (max-width: 620px) {
  .day li { grid-template-columns: 1fr; gap: 6px; }
  .day li > .tag { justify-self: start; }
  .shift-row { grid-template-columns: 1fr; gap: 4px; }
  .pair { padding-bottom: 0; }
  .pair-tile { position: relative; right: auto; width: 82%; margin: -24px 0 0 auto; }
}

/* ===== 2026-11-23 integrate.html: the hub under a split heading, not under a spot ===== */
.split-head + .spot-hub { margin-top: 64px; }
@media (max-width: 620px) { .split-head + .spot-hub { margin-top: 40px; } }

/* ===== 2026-11-23 event-manager.html (run-of-show rail) ===== */
.night-rail { position: sticky; top: 58px; z-index: 5; margin-top: 56px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.night-rail ol { --p: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.night-rail ol::before, .night-rail ol::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; }
.night-rail ol::before { opacity: .14; }
.night-rail ol::after { transform: scaleX(calc((var(--p) + 1) / 5)); }
.night-rail a { display: flex; align-items: baseline; gap: 10px; padding: 18px 12px 16px 0; color: var(--ink-3); font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: color .25s ease; }
.night-rail b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color .25s ease; }
.night-rail a:hover { color: var(--ink); }
.night-rail li.past a { color: var(--ink-2); }
.night-rail li.past b { color: var(--ink-2); }
.night-rail li.on a { color: var(--ink); }
.night-rail li.on b { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .night-rail ol::after { transition: transform .6s var(--ease); }
}

/* Screens get the wider column: these are real staff screens with small text */
.night-steps { margin-top: 64px; }
.night-steps .spot { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); scroll-margin-top: 140px; }
.night-steps .spot.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.night-steps .spot .for { font-weight: 600; color: var(--accent); }

@media (max-width: 900px) {
  .night-steps .spot, .night-steps .spot.flip { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .night-rail { margin: 40px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
  .night-rail::-webkit-scrollbar { display: none; }
  .night-rail ol { grid-template-columns: repeat(5, auto); gap: 22px; width: max-content; }
  .night-rail a { padding: 14px 0 12px; font-size: 17.5px; gap: 7px; }
}

/* ===== 2026-11-23 talk2log.html (sentence to ledger entry) ===== */

/* Signature: one spoken sentence becomes one ledger entry.
   Final state is the default (no JS, reduced motion); .live starts it dim and talk2log.js lights it word by word. */
.parse-grid { position: relative; margin-top: 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 112px; align-items: center; }
.parse-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.parse-lines path { fill: none; stroke: #C9D7F2; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .3s ease, stroke-dashoffset .7s var(--ease), opacity .3s ease; }
.parse-lines path.on { stroke: var(--accent); stroke-width: 2; }
.parse-say, .parse-entry { position: relative; z-index: 1; }
.parse-say h3, .pe-head h3 { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.parse-quote { margin-top: 18px; font-size: clamp(1.55rem, 2.5vw, 2.2rem); line-height: 1.38; font-weight: 500; letter-spacing: -0.018em; color: var(--ink); text-wrap: pretty; max-width: 22ch; }
.parse-quote .w { border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: inset 0 -.12em 0 rgba(37, 99, 235, .55); transition: background-color .35s ease, box-shadow .35s ease; }
.parse-quote .w.on { background: var(--accent-soft); box-shadow: inset 0 -.12em 0 var(--accent); }
.parse-voice { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 16.5px; }
.pv-mic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.pv-mic .ico { width: 17px; height: 17px; }
.pv-wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.pv-wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--rule-strong); }
.pv-wave i:nth-child(3n) { height: 70%; } .pv-wave i:nth-child(4n+1) { height: 50%; } .pv-wave i:nth-child(5n+2) { height: 95%; } .pv-wave i:nth-child(7n) { height: 40%; }

.parse-entry { background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.pe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.pe-head .pe-ok { display: none; }
.pe-rows { margin: 0; }
.pe-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 20px; border-bottom: 1px solid var(--rule); font-size: 15.5px; transition: background-color .35s ease, opacity .35s ease; }
.pe-row dt { color: var(--ink-3); transition: color .35s ease; }
.pe-row dd { margin: 0; font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.pe-row dd .tag { font-weight: 600; }
.pe-row.on { background: var(--accent-soft); }
.pe-row.on dt { color: var(--accent); }
.pe-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 20px; }
.pe-saved { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ok); transition: opacity .35s ease; }
.parse-note { margin-top: 28px; color: var(--ink-3); font-size: 16px; max-width: 78ch; }

/* Live sequence (talk2log.js adds .live, then .saved at the end) */
.parse.live .w:not(.on):not(.done) { box-shadow: none; }
.parse.live .pe-row:not(.on):not(.done) { opacity: .32; }
.parse.live .pe-saved { opacity: 0; }
.parse.live.saved .pe-saved { opacity: 1; }
.parse.live:not(.saved) .pe-ok { display: none; }
.parse.saved .pe-wait { display: none; }
.parse.saved .pe-ok { display: inline-block; }
.parse.saved #peConfirm { opacity: .45; }
@media (max-width: 1024px) {
  .parse-grid { grid-template-columns: 1fr; gap: 40px; }
  .parse-lines { display: none; }
  .parse-quote { max-width: 30ch; }
}
@media (max-width: 520px) {
  .pe-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 16px; }
  .pe-head, .pe-foot { padding-left: 16px; padding-right: 16px; }
  .pe-saved { margin-left: 0; width: 100%; }
}

/* Spots on this page show phones: center a single phone; two phones side by side, the second set lower */
.spot-shot > .shot.phone { margin: 0 auto; max-width: 290px; }
.spot-shot > .shot.phone + figcaption { text-align: center; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
.phones .shot.phone { width: 50%; max-width: 270px; }
.phones .shot.phone + .shot.phone { margin-top: 56px; }
.phones + figcaption { text-align: center; }
@media (max-width: 520px) { .phones { gap: 14px; } .phones .shot.phone + .shot.phone { margin-top: 32px; } .phones .shot.phone .device { border-width: 6px; border-radius: 26px; } .phones .shot.phone img { border-radius: 20px; } }

/* Links inside the dark closing lede */
.closing .lead a { color: var(--on-night); text-underline-offset: 3px; }
.closing .lead a:hover { color: #fff; }

/* Two chat answers stacked, the second set in a little */
.ask-stack { display: grid; gap: 18px; }
.ask-stack > .shot + .shot { margin-left: 56px; }
@media (max-width: 620px) { .ask-stack > .shot + .shot { margin-left: 0; } }

/* ===== 2026-11-23 about.html ===== */
.about-story p:not(.big) { margin-top: 18px; color: var(--ink-2); max-width: 60ch; }
.about-ai .rails { margin-top: 64px; }
.about-ai-more { margin-top: 40px; }
.offices .office p { max-width: 60ch; }

/* ===== 2026-11-23 services.html ===== */
.svc-list .office { align-items: start; padding: 28px 0; }
.svc-list .office .mod-points { margin-top: 14px; }
.svc-list .office p { max-width: 58ch; }
.partner-does { margin-top: 28px; display: grid; gap: 12px; }
.partner-does li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: 18.5px; line-height: 1.5; }
.partner-does .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.partner-does b { color: var(--ink); font-weight: 600; }

/* ===== 2026-11-23 form pages (contact, schedule-demo, contact-form) ===== */

/* Shorter header on form pages: the form is the point */
.page-hero.form-hero { padding: 64px 0 72px; }
.page-hero.form-hero .basics { margin-top: 28px; }
.form-section { padding-top: 72px; }

/* shared.js adds a ripple span to every .btn-primary on click; site.css has no ripple keyframes, so it would
   sit as a large white circle outside the button. Suppress it: the button's own pressed state is enough. */
.btn-primary > span[style*="ripple"] { display: none !important; }

/* reCAPTCHA has a fixed 304px width: scale it down on narrow phones so it can't overflow the card */
.g-recaptcha { min-height: 78px; }
@media (max-width: 400px) {
  .g-recaptcha { transform: scale(.87); transform-origin: 0 0; min-height: 0; height: 68px; }
}

.form-note a { color: var(--accent); }
.form-aside .aside-link { margin-top: 12px; }
.form-aside h3 + p, .form-aside h3 + ul { margin-top: 10px; }
.form-aside h2 + ul, .form-aside h2 + ol { margin-top: 18px; }

/* Product chooser beside a form: a ruled list, not cards */
.pick-list { border-top: 1px solid var(--rule); }
.pick-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.pick-list a { color: var(--ink); font-weight: 600; text-decoration: none; width: fit-content; }
.pick-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.pick-list span { color: var(--ink-3); font-size: 16.5px; line-height: 1.4; }

/* ===== 2026-11-23 contact-form.html (campaign landing page) ===== */
.lp-top { background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.lp-top .wrap { display: flex; align-items: center; height: 68px; }
.lp-top .logo img { width: 80px; height: auto; }
.lp { padding: 80px 0 96px; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.lp-copy h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.lp-copy .lede { margin-top: 20px; font-size: 20px; color: var(--ink-2); max-width: 44ch; }
.lp-points { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 10px; color: var(--ink-2); font-size: 18px; }
.lp-points li { display: flex; align-items: center; gap: 10px; }
.lp-points .ico { width: 16px; height: 16px; color: var(--accent); }
.lp .form-card form { margin-top: 0; }
.lp-foot { padding: 28px 0 40px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-3); }
.lp-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-foot a { color: var(--ink-2); }
@media (max-width: 900px) {
  .lp { padding: 48px 0 72px; }
  .lp-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== 2026-11-23 schedule-demo.html ===== */
.call-steps { border-top: 2px solid var(--ink); }
.call-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.call-steps b { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.call-steps strong { color: var(--ink); font-weight: 600; }

/* ===== 2026-11-23 privacy-policy.html ===== */
.pp-updated { margin-top: 18px; color: var(--ink-3); font-size: 17.5px; }

/* ==================================================================
   Visual refresh 2026-11 (tasks/06-visual-refresh.md)
   - Tinted page, no pure white page backgrounds.
   - Every screenshot sits on a deep panel tinted with its product hue (--h).
   - Soft radial glows only on dark sections and screenshot panels.
   - Centred heroes on every page.
================================================================== */
.btn-primary { background: #2563EB; }
.theme-dark .btn-primary { background: #2F66E0; }
.theme-dark .btn-primary:hover { background: #2456C8; }
h2 { font-weight: 700; letter-spacing: -.025em; }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }

/* Dark sections: two soft glows */
.section.theme-dark, .journey.theme-dark { background: radial-gradient(900px 480px at 85% 0%, rgba(61, 116, 240, .28), transparent 65%), radial-gradient(700px 420px at 0% 100%, rgba(19, 184, 166, .14), transparent 60%), #0B1628; }
.closing.theme-dark { background: radial-gradient(800px 400px at 50% 0%, rgba(61, 116, 240, .35), transparent 70%), #0B1628; }

/* Heroes: centred text, the screen full width underneath */
.hero, .page-hero { text-align: center; background: radial-gradient(1000px 520px at 50% -10%, rgba(61, 116, 240, .30), transparent 65%), radial-gradient(700px 420px at 0% 100%, rgba(19, 184, 166, .10), transparent 60%), #0B1628; }
.hero { padding: 96px 0 112px; }
.hero .wrap { display: block; }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; max-width: 17ch; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; max-width: 20ch; margin: 0 auto; }
.hero .lede, .page-hero .lede { margin: 26px auto 0; max-width: 60ch; }
.hero .actions, .page-hero .actions { justify-content: center; }
.crumbs { justify-content: center; }
.hero .basics, .page-hero .basics { margin: 36px auto 0; justify-content: center; max-width: 920px; }
.hero-visual { max-width: 1080px; margin: 64px auto 0; text-align: left; }
.hero-visual .shot, .hero-visual .shot-frame .shot, .hero-visual.combo > .shot-frame .shot { width: 100%; }
.hero-visual .shot-frame .win img { max-height: 600px; object-fit: cover; object-position: left top; }
.hero-visual .shot .win, .scene-host .sc-screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 90px rgba(61, 116, 240, .32), 0 40px 90px rgba(0, 0, 0, .55); }
.hero-visual figcaption { margin-left: auto; margin-right: auto; text-align: center; }
.hero-visual.combo > .shot-frame { margin-left: 120px; }
.hero-visual.combo figcaption { margin-left: auto; padding-left: 0; }

/* Home hero: day timeline, then the scene on a wide stage */
.dayline { list-style: none; padding: 0; margin: 64px auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: left; border-top: 1px solid rgba(255, 255, 255, .18); }
.dayline li { position: relative; padding: 18px 18px 0 0; font-size: 16.5px; color: #A9B6CC; line-height: 1.45; }
.dayline li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--h) 70% 62%); box-shadow: 0 0 0 4px #0B1628; }
.dayline time { display: block; color: #E9EEF5; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.dayline b { color: #E9EEF5; font-weight: 600; }
.scene-host .scene { max-width: 1080px; margin: 56px auto 0; text-align: left; }
@media (min-width: 861px) {
  .scene-host .scene { height: 610px; }
  .scene-host .sc-screen { top: 34px; width: calc(100% - 80px); height: 520px; }
  .scene-host .sc-chat { top: 300px; width: 330px; height: 280px; }
  .scene-host .sc-ok, .scene-host .sc-done { top: 470px; }
}
.scene-host .scene-cap { left: 0; right: 0; bottom: -34px; text-align: center; }

/* Screenshot panels: deep surface + product-hue glow */
.spot-shot, .pfrag, .role-shot, .manager-shot, .hire-shot, .flow-shot, .mod-screen, .screen-band figure {
  --h: var(--page-h, 215);
  background: radial-gradient(420px 260px at 85% 0%, hsl(var(--h) 75% 55% / .32), transparent 70%), #3B5486;
  padding: 28px; border-radius: 10px; }
.spot-shot figcaption, .pfrag figcaption, .role-shot figcaption, .manager-shot figcaption, .hire-shot figcaption, .flow-shot figcaption, .mod-screen figcaption, .screen-band figcaption { color: #DCE4F0; }
.spot-shot .win, .pfrag .win, .role-shot .win, .manager-shot .win, .hire-shot .win, .flow-shot .win, .mod-screen .win, .screen-band .win { border-color: transparent; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px rgba(0, 0, 0, .45); }
.screen-band .shot-frame { display: block; }
.prow .pfrag, .role .role-shot, [id^="spot-"] .spot-shot { --h: inherit; }
.roster-stage .role-shot { --h: inherit; }
#spot-connect { --h: 4; } #spot-cteck, #spot-sis { --h: 265; } #spot-integrate { --h: 200; } #spot-events { --h: 330; } #spot-talk2log { --h: 150; }
@media (min-width: 901px) {
  .js .roster-stage { background: radial-gradient(520px 320px at 85% 0%, hsl(var(--h, 214) 75% 55% / .32), transparent 70%), #3B5486; }
  .js .roster-stage::before { background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px); }
  .js .roster-stage { border-radius: 10px; }
  .roster-stage .stage-item { background: none; padding: 0; }
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .dayline { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .scene-host .scene { height: auto; }
  .hero-visual { margin-top: 44px; }
  .hero-visual.combo > .shot-frame { margin-left: 0; }
  .spot-shot, .pfrag, .role-shot, .manager-shot, .hire-shot, .flow-shot, .mod-screen, .screen-band figure { padding: 14px; }
}


/* White page, black text, larger type (2026-11-23, after review of the tinted refresh) */
:root, .theme-light { --paper: #FFFFFF; --ink: #000000; --ink-2: #1F2633; --ink-3: #3E4757; --rule: #E2E6EC; }
.bg-white, .bg-paper { --paper: #FFFFFF; background: #FFFFFF; }
body { font-size: 19.5px; }
.hero .lede, .page-hero .lede { font-size: 22.5px; }

/* Smaller hero screens (2026-11-23 review: full-width hero images felt too big) */
.hero-visual { max-width: 860px; margin-top: 56px; }
.hero-visual .shot-frame .win img { max-height: 440px; }
.scene-host .scene { max-width: 940px; }
@media (min-width: 861px) {
  .scene-host .scene { height: 520px; }
  .scene-host .sc-screen { height: 430px; width: calc(100% - 70px); }
  .scene-host .sc-chat { top: 230px; width: 300px; height: 260px; }
  .scene-host .sc-ok, .scene-host .sc-done { top: 380px; }
}
.hero-visual.combo figcaption { padding-left: 120px; }
.screen-band figure { max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .hero-visual.combo figcaption { padding-left: 0; } }

/* Narrower side margins (2026-11-23 review): wider content column, smaller gutters */
:root { --wrap: 1340px; }
.wrap { padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Lighter main blue (2026-11-23 review): #1A4FBF to #2563EB (white text 5.2:1, AA) */
:root, .theme-light { --accent: #2563EB; --accent-hover: #1D4ED8; --accent-soft: #EAF1FE; }
.btn-primary { background: #2563EB; }
.btn-primary:hover { background: #1D4ED8; }

/* Home hero tabs: one per product; they follow the scene and jump to it on click */
.hero-tabs { margin: 56px auto 0; max-width: 940px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: left; }
.htab { --h: 215; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 15px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(255, 255, 255, .04); color: #A9B6CC; font: 500 15px/1.4 var(--font); text-align: left; cursor: pointer; overflow: hidden; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.htab b { color: #E9EEF5; font-weight: 600; font-size: 16px; }
.htab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: hsl(var(--h) 75% 58%); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.htab:hover { background: rgba(255, 255, 255, .08); color: #D3DBE8; }
.htab.on { background: rgba(255, 255, 255, .1); border-color: hsl(var(--h) 70% 60% / .55); color: #E9EEF5; }
.htab.on::before { transform: scaleX(1); }
.htab:focus-visible { outline: 2px solid #8AAEFF; outline-offset: 2px; }
.hero-tabs + .scene { margin-top: 40px; }
@media (max-width: 900px) { .hero-tabs { grid-template-columns: 1fr 1fr; } }

/* Hero glow, slowly drifting, on every page */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before { content: ""; position: absolute; z-index: -1; inset: -30% -20%; pointer-events: none;
  background: radial-gradient(45% 40% at 50% 20%, rgba(61, 116, 240, .30), transparent 70%), radial-gradient(35% 35% at 15% 85%, rgba(19, 184, 166, .14), transparent 70%), radial-gradient(30% 30% at 85% 60%, rgba(139, 92, 246, .14), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .page-hero::before { animation: heroGlow 18s ease-in-out infinite alternate; }
}
@keyframes heroGlow {
  0% { transform: translate3d(-6%, -3%, 0) scale(1); }
  50% { transform: translate3d(5%, 4%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 6%, 0) scale(.96); }
}

/* Home hero: slider dots under the scene (replace the tab boxes) */
.hero-tabs { display: none; }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 64px; }
.hero-dots .htab { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .35s var(--ease), background-color .35s ease; }
.hero-dots .htab::before { display: none; }
.hero-dots .htab:hover { background: rgba(255, 255, 255, .45); }
.hero-dots .htab.on { width: 56px; background: hsl(var(--h) 75% 60%); }
.hero-dots .htab:focus-visible { outline: 2px solid #8AAEFF; outline-offset: 4px; }
.sc-shots img { transition-duration: .45s; }

/* Screen half over the hero, on a lighter panel so it doesn't melt into the hero (2026-11-23, integrate.html pattern).
   Used by every inner page with a hero screen; the home page keeps its scene. */
.hero.has-screen { padding-bottom: 208px; }
.screen-band figure { background: radial-gradient(420px 260px at 85% 0%, hsl(var(--h) 75% 60% / .30), transparent 70%), #3B5486; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(11, 22, 40, .55); }
.screen-band .hero-visual { margin-top: 0; max-width: 900px; }
.screen-band .hero-visual figcaption { color: #C3CDDD; }
@media (max-width: 900px) { .hero.has-screen { padding-bottom: 120px; } }

/* Home: the animated scene on a lighter panel, half over the hero (same pattern as inner pages) */
.scene-panel { max-width: 1000px; margin: 0 auto; padding: 36px 40px 28px; border-radius: 10px; color: var(--ink);
  background: radial-gradient(520px 300px at 85% 0%, hsl(var(--h, 215) 75% 60% / .30), transparent 70%), #3B5486;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(11, 22, 40, .55); }
.scene-panel .scene { margin: 0 auto; max-width: none; }
.scene-panel .scene-cap { color: #C3CDDD; }
.scene-panel .hero-dots { margin-top: 56px; }
.home-band { margin-top: -240px; }
.hero.has-screen:has(+ .home-band) { padding-bottom: 280px; }
@media (max-width: 900px) { .scene-panel { padding: 16px 14px 20px; } .home-band { margin-top: -100px; } .hero.has-screen:has(+ .home-band) { padding-bottom: 130px; } }
.scene-panel figure.scene { background: none; box-shadow: none; padding: 0; border-radius: 0; }
@media (min-width: 861px) { .scene-panel .scene { height: 590px; } }

/* Home scene panel, smaller (2026-11-24 review) */
.scene-panel { max-width: 820px; padding: 28px 32px 24px; }
@media (min-width: 861px) {
  .scene-panel .scene { height: 470px; }
  .scene-panel .sc-screen { top: 26px; height: 340px; width: calc(100% - 50px); }
  .scene-panel .sc-chat { top: 190px; width: 260px; height: 220px; }
  .scene-panel .sc-b { font-size: 13px; }
  .scene-panel .sc-ok, .scene-panel .sc-done { top: 290px; }
  .scene-panel .sc-ok { width: 250px; padding: 12px 14px; }
  .scene-panel .sc-done { max-width: 260px; font-size: 14px; }
}
.home-band { margin-top: -200px; }
.hero.has-screen:has(+ .home-band) { padding-bottom: 240px; }
.scene-panel .hero-dots { margin-top: 48px; }
@media (min-width: 861px) { .scene-panel .scene { height: 420px; } } .scene-panel .hero-dots { margin-top: 52px; }
@media (min-width: 861px) { .scene-panel .sc-ok, .scene-panel .sc-done { top: 240px; } }

/* Hero light (2026-11-24, after talk2log.campusteck.com): a colour sweep through the headline
   and drifting colour blobs behind it. Static under reduced motion. */
.hero h1, .page-hero h1 {
  background: linear-gradient(110deg, #FFFFFF 0% 35%, #6FA8FF 50%, #FFFFFF 65% 100%);
  background-size: 250% auto; background-position: 0% center;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #FFFFFF; }
.hero::after, .page-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background:
    radial-gradient(220px 220px at 22% 18%, rgba(70, 130, 255, .55), transparent 70%),
    radial-gradient(210px 210px at 80% 30%, rgba(70, 130, 255, .30), transparent 70%),
    radial-gradient(200px 200px at 70% 75%, rgba(70, 130, 255, .25), transparent 70%);
  filter: blur(40px); }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .page-hero h1 { animation: heroTextLight 7s ease infinite; }
  .hero::after, .page-hero::after { animation: heroBlobs 13s ease-in-out infinite; }
}
@keyframes heroTextLight { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
@keyframes heroBlobs {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  30% { transform: translate3d(24px, -20px, 0) scale(1.08); }
  65% { transform: translate3d(-18px, 16px, 0) scale(.95); }
}

/* Hero fixes (2026-11-24): breadcrumbs readable on the dark hero; headlines fit in two rows. */
.theme-dark .crumbs, .theme-dark .crumbs a { color: #C9D3E3; }
.theme-dark .crumbs a:hover { color: #FFFFFF; }
.theme-dark .crumbs li + li::before { color: #6F7E98; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: 26ch; text-wrap: balance; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 32ch; text-wrap: balance; }

/* Chatbot vs employee stage, inverted (2026-11-24): dark stage, white digital-employee hub. */
.ba-stage { background: radial-gradient(420px 260px at 85% 0%, rgba(61, 116, 240, .30), transparent 70%), #13213A; border-color: transparent; box-shadow: 0 30px 70px -40px rgba(11, 22, 40, .6); }
.ba-stage::before { background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.4px); }
.lines-after line { stroke: #4A6396; }
.lines-after line.flow { stroke: #8AAEFF; }
.ba-hub { background: #FFFFFF; color: #0B1628; box-shadow: 0 0 0 6px rgba(138, 174, 255, .22), 0 24px 50px -16px rgba(0, 0, 0, .6); }
.ba-hub .ico { color: #2563EB; }
.ba-hub span { color: #3E4757; }
.is-after .ba-node { border-color: transparent; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6); }

/* Dot texture on every dark background (2026-11-24): heroes, dark sections, closing, compare stage, screenshot panels. */
.hero, .page-hero { background: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px) 0 0 / 22px 22px, radial-gradient(1000px 520px at 50% -10%, rgba(61, 116, 240, .30), transparent 65%), radial-gradient(700px 420px at 0% 100%, rgba(19, 184, 166, .10), transparent 60%), #0B1628; }
.section.theme-dark, .journey.theme-dark { background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px, radial-gradient(900px 480px at 85% 0%, rgba(61, 116, 240, .28), transparent 65%), radial-gradient(700px 420px at 0% 100%, rgba(19, 184, 166, .14), transparent 60%), #0B1628; }
.closing, .closing.theme-dark { background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px, radial-gradient(800px 400px at 50% 0%, rgba(61, 116, 240, .35), transparent 70%), #0B1628; }
.product.featured { background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px, #0B1628; }
.spot-shot, .pfrag, .role-shot, .manager-shot, .hire-shot, .flow-shot, .mod-screen, .screen-band figure, .scene-panel { background: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px) 0 0 / 22px 22px, radial-gradient(420px 260px at 85% 0%, hsl(var(--h, 215) 75% 58% / .30), transparent 70%), #3B5486; }

/* Text on dark backgrounds is white (2026-11-24): no grey on dark. Secondary text is a faint blue-white, never grey. */
:root { --on-night: #FFFFFF; --on-night-2: #FFFFFF; }
.theme-dark { --ink: #FFFFFF; --ink-2: #FFFFFF; --ink-3: #EAF0FA; }
.dayline li, .htab, .screen-band .hero-visual figcaption, .scene-panel .scene-cap,
.theme-dark .crumbs, .theme-dark .crumbs a, .footer, .footer a, .nav > a, .nav-group > button,
.spot-shot figcaption, .pfrag figcaption, .role-shot figcaption, .manager-shot figcaption, .hire-shot figcaption, .flow-shot figcaption, .mod-screen figcaption, .screen-band figcaption { color: #FFFFFF; }
.theme-dark .crumbs li + li::before { color: #FFFFFF; opacity: .6; }
.theme-dark p, .theme-dark li, .theme-dark dd, .theme-dark dt, .theme-dark small, .theme-dark figcaption, .theme-dark .lede, .theme-dark .lead, .closing p, .closing li { color: #FFFFFF; }
/* ...except inside white cards and mock screens that sit on dark: they keep their own dark text. */
.theme-dark :is(.win, .sc-ok, .sc-done, .sc-badge, .sc-chat, .ba-node, .ba-hub, .mini, .product, .sys, .mock-chip, .phone-mock, .chat-mock, .form-card, .pair-tile, .parse-entry, .nav-menu, .live-toast, .switch) :is(p, li, dd, dt, small, figcaption) { color: inherit; }

/* Closing headline uses its full column instead of a 18ch cap (2026-11-24). */
.closing h2 { max-width: none; text-wrap: balance; }

/* Phone (2026-11-24): the home scene stacks in normal flow so the approval card and toast never cover the chat or caption;
   hero tick rows centre each tick with its own text. */
@media (max-width: 600px) {
  .scene, .scene-panel .scene { padding: 84px 0 0; height: auto; }
  .sc-ok, .sc-done, .scene-panel .sc-ok, .scene-panel .sc-done { position: relative; top: auto; bottom: auto; right: auto; width: 100%; max-width: none; margin-top: 12px; }
  .scene-cap, .scene-panel .scene-cap { position: static; margin-top: 14px; text-align: center; }
  .hero .basics, .page-hero .basics { flex-direction: column; align-items: center; gap: 10px; }
  .hero .basics li, .page-hero .basics li { text-align: left; }
}
/* Phone: long breadcrumbs wrap as one line of text instead of splitting into columns. */
.crumbs { flex-wrap: wrap; row-gap: 2px; }
.crumbs li { white-space: nowrap; }

/* Detector fixes (2026-11-24) */
.ba-node small { color: #4A5568; }                       /* was #8A94A6, 2.9:1 on the light node card */
.journey-set span:nth-of-type(even) { -webkit-text-stroke-color: #FFFFFF; }  /* outline words white, not grey */
.spot h3, .hire-text h3, .section h3 { line-height: 1.3; }
.core strong { line-height: 1.3; }
.footer h2.fh { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--on-night); max-width: none; }
.mod-tab > span:not(.mi), .oncall h3 { line-height: 1.3; }

/* ---------- Motion variety (2026-11-24): varied entrances on the existing .reveal -> .in trigger ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Product spotlights: screen slides in from its own side, text from the other */
  .js .spot .spot-shot.reveal { transform: translateX(56px) scale(.97); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  .js .spot.flip .spot-shot.reveal { transform: translateX(-56px) scale(.97); }
  .js .spot .spot-text.reveal { transform: translateX(-28px); }
  .js .spot.flip .spot-text.reveal { transform: translateX(28px); }
  .js .spot .reveal.in { transform: none; }

  /* Screenshot wipes open + settles from a slight zoom */
  .js .spot-shot.reveal .win img, .js .manager-shot.reveal .win img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) .15s; }
  .js .spot-shot.reveal.in .win img, .js .manager-shot.reveal.in .win img, .js .spot.flip .spot-shot.reveal.in .win img { clip-path: none; }

  /* Spotlight bullet points cascade in */
  .js .spot-text.reveal .spot-list > li { opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .spot-text.reveal.in .spot-list > li { opacity: 1; transform: none; }
  .js .spot-text.reveal.in .spot-list > li:nth-child(1) { transition-delay: .35s; }
  .js .spot-text.reveal.in .spot-list > li:nth-child(2) { transition-delay: .45s; }
  .js .spot-text.reveal.in .spot-list > li:nth-child(3) { transition-delay: .55s; }
  .js .spot-text.reveal.in .spot-list > li:nth-child(4) { transition-delay: .65s; }
  .js .spot-text.reveal.in .spot-list > li:nth-child(n+5) { transition-delay: .75s; }

  /* Manager approvals screen: tilts up out of perspective */
  .js .manager-shot.reveal { transform: perspective(1400px) rotateX(10deg) translateY(40px) scale(.96); transform-origin: 50% 100%; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
  .js .manager-shot.reveal.in { transform: none; }

  /* Section headings: soft focus pull */
  .js .split-head.reveal, .js .ai-head.reveal { filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
  .js .split-head.reveal.in, .js .ai-head.reveal.in { filter: none; }

  /* Closing call to action: grows in */
  .js .closing-inner.reveal { transform: scale(.94); transition: opacity .8s var(--ease), transform 1s var(--ease); }
  .js .closing-inner.reveal.in { transform: none; }

  /* Phones: vertical only, so nothing slides past the screen edge */
  @media (max-width: 900px) {
    .js .spot .spot-shot.reveal, .js .spot.flip .spot-shot.reveal { transform: translateY(28px) scale(.98); }
    .js .spot .spot-text.reveal, .js .spot.flip .spot-text.reveal { transform: translateY(16px); }
    .js .spot .reveal.in { transform: none; }
  }
}

/* Hero screen panel (every page): hidden, background included, until the visitor scrolls a little;
   then the whole panel rises from below. site.js adds .band-in (2026-11-24) */
.js .screen-band .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .screen-band > .wrap > :first-child { opacity: 0; transform: translateY(140px) scale(.96); }
  .js .screen-band > .wrap > :first-child.band-in { opacity: 1; transform: none; transition: opacity .8s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); }
}
