/* FlairSuite commercial website — theme
   Brand: FlairSuite purple (#9469ac) from the logo, deepened for text contrast.
   One stylesheet for every country site; RTL handled with logical properties. */

/* Self-hosted fonts (SIL OFL), so first paint never waits on another origin.
   Plus Jakarta Sans is variable: one file per subset covers 400-800.
   The browser only downloads a subset when the page uses its characters. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/jakarta-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/plex-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plex-arabic-500.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/plex-arabic-600.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url(/assets/fonts/plex-arabic-700.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --brand: #9469ac;
  --brand-600: #7b4f98;
  --brand-700: #643c80;
  --brand-800: #4d2b65;
  --brand-50: #f6f1fa;
  --brand-100: #ece2f4;
  --brand-200: #d9c6e8;
  --ink: #16112a;
  --ink-2: #221a3d;
  --ink-3: #2f2553;
  --text: #2a2440;
  --muted: #5d5873;
  --faint: #716c85;
  --line: #e7e3ef;
  --surface: #ffffff;
  --surface-2: #faf8fd;
  --surface-3: #f3f0f8;
  --slate: #6b7991;
  --magenta: #d6336c;
  --teal: #0f9f96;
  --amber: #e8900c;
  --blue: #3b6fe0;
  --green: #1f9d55;
  --grad: linear-gradient(120deg, #9469ac 0%, #c04f9b 55%, #e2687a 100%);
  --grad-cool: linear-gradient(120deg, #6d4fd1 0%, #9469ac 50%, #0f9f96 100%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22, 17, 42, .06), 0 1px 1px rgba(22, 17, 42, .04);
  --shadow: 0 10px 30px -12px rgba(38, 20, 70, .22), 0 2px 6px rgba(22, 17, 42, .05);
  --shadow-lg: 0 40px 80px -30px rgba(38, 20, 70, .45), 0 12px 30px -12px rgba(38, 20, 70, .25);
  --container: 1200px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", Tahoma, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text);
  background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang^="ar"] body { font-family: var(--font-ar); }
img, svg, video { max-width: 100%; height: auto; display: block; }
.i { width: 20px; height: 20px; flex: none; }
.flag-svg { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: inline-block; flex: none; }
.country .flag-svg { width: 44px; height: 30px; border-radius: 5px; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.2em; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .container { padding-inline: 16px; } }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-sm { padding-block: clamp(44px, 6vw, 72px); }
.section-tint { background: var(--surface-2); }
.section-dark { background: var(--ink); color: #d9d3ea; }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-dark a:not(.btn) { color: #dcc8ee; }
.center { text-align: center; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section-dark .section-head p { color: #b9b1d0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 14px;
}
html[lang^="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-dark .eyebrow, .hero .eyebrow { color: #d7bfe9; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 680px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--brand-700); --b-fg: #fff; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; font-family: inherit;
  white-space: nowrap;
}
.btn:hover { color: var(--b-fg); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(100, 60, 128, .7); }
.btn svg { width: 18px; height: 18px; flex: none; }
html[dir="rtl"] .btn .i-arrow { transform: scaleX(-1); }
.btn-primary { background: var(--grad); background-size: 140% 100%; }
.btn-primary:hover { background-position: 100% 0; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line); }
.btn-ghost:hover { --b-bd: var(--brand-200); box-shadow: none; background: var(--brand-50); }
.btn-light { --b-bg: #fff; --b-fg: var(--ink); }
.btn-outline-light { --b-bg: rgba(255,255,255,.06); --b-fg: #fff; --b-bd: rgba(255,255,255,.28); }
.btn-outline-light:hover { --b-bd: rgba(255,255,255,.6); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .95); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .96rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { background: var(--brand-50); color: var(--brand-800); }
.nav-link[aria-current="page"] { color: var(--brand-700); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.country-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: none; background: #fff;
}
.country-pill:hover { border-color: var(--brand-200); color: var(--brand-800); }
.flag { font-size: 1.05rem; line-height: 1; }

.mega {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; transform: translate(-50%, 8px);
  width: min(860px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; display: grid; grid-template-columns: 1fr 1fr 250px; gap: 6px 10px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
html[dir="rtl"] .mega { transform: translate(50%, 8px); }
.mega.mega-sm { width: min(560px, 92vw); grid-template-columns: 1fr 1fr; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
html[dir="rtl"] .nav-item.open .mega { transform: translate(50%, 0); }
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.mega-link { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); }
.mega-link:hover { background: var(--surface-3); color: var(--text); }
.mega-link { align-items: center; }
.mega-link strong { display: block; font-size: .95rem; }
.mega-link div > span { display: block; font-size: .83rem; color: var(--muted); line-height: 1.45; }
.mega-aside { grid-column: 3; grid-row: 1 / span 6; background: var(--ink); color: #cfc7e3; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mega-aside strong { color: #fff; font-size: 1.05rem; }
.mega-aside p { font-size: .88rem; margin: 0; }
.mega-aside .btn { margin-top: auto; }

.menu-toggle { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .header-cta .btn-ghost { display: none; }
}
.menu-toggle .i-x { display: none; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav, .header-cta { display: none; }
  /* backdrop-filter would make the header the containing block of the fixed panel */
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border-bottom-color: var(--line); }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu-toggle .i-menu { display: none; }
  body.nav-open .menu-toggle .i-x { display: block; }
  body.nav-open .wa-float { display: none; }
  body.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 4px 16px 170px; animation: navIn .22s ease;
  }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.08rem; border-radius: 0; min-height: 56px; }
  .nav-link:hover, .nav-item:focus-within > .nav-link { background: none; }
  .nav-item.open > .nav-link { color: var(--brand-700); }
  .nav-link svg { width: 18px; height: 18px; }
  .mega, .mega.mega-sm {
    position: static; transform: none !important; width: auto; box-shadow: none; border: 0; border-radius: 0; background: none;
    padding: 0 0 12px; grid-template-columns: 1fr; gap: 2px; display: none; opacity: 1; visibility: visible;
  }
  .mega::before { display: none; }
  .nav-item.open .mega { display: grid; }
  .mega-aside { display: none; }
  .mega-link { padding: 10px 8px; border-radius: 12px; }
  .mega-link .icon-tile.sm { width: 38px; height: 38px; border-radius: 11px; }
  .mega-link .icon-tile.sm svg { width: 18px; height: 18px; }
  .mega-link div > span { font-size: .82rem; }
  /* bottom bar: country + language pills, then Contact + Book a demo */
  body.nav-open .header-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(22,17,42,.35);
  }
  body.nav-open .header-cta .btn { width: 100%; }
  body.nav-open .header-cta .btn-ghost { display: inline-flex; }
  body.nav-open .header-cta .country-pill { justify-content: center; min-height: 40px; }
  html[dir="rtl"] body.nav-open .header-cta { grid-template-columns: 1fr; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.nav-open .nav { animation: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #cfc7e3;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px); isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -2;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(148, 105, 172, .55), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(214, 51, 108, .32), transparent 70%),
    radial-gradient(40% 50% at 70% 90%, rgba(15, 159, 150, .28), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero h1 { color: #fff; }
.hero .lede { color: #c9c0dd; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #e9e2f5; font-size: .88rem; font-weight: 600; margin-bottom: 22px; text-decoration: none;
}
html[dir="rtl"] .hero-badge { padding: 6px 6px 6px 14px; }
.hero-badge b { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #ddd5ec; }
.hero-points svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: #7ee2c9; }
.hero-trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: #a99fc4; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: #d7bfe9; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { padding-block: clamp(48px, 7vw, 92px) clamp(52px, 7vw, 96px); }
.page-hero .hero-grid { grid-template-columns: 1.1fr .9fr; }
.page-hero.solo .container { max-width: 900px; }
@media (max-width: 1000px) { .page-hero .hero-grid { grid-template-columns: 1fr; } }

.breadcrumbs { font-size: .85rem; margin-bottom: 20px; color: #a99fc4; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; opacity: .6; }
.breadcrumbs a { color: #d7c6e8; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* Product mock (hero visual, pure HTML so it stays sharp and light) */
.mock-stage { position: relative; padding: 10px 0 40px; }
.mock {
  position: relative; background: #fbfaff; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden; color: var(--text); font-size: 12.5px; line-height: 1.4; transform: perspective(1600px) rotateY(-8deg) rotateX(3deg);
  transform-origin: left center;
}
html[dir="rtl"] .mock { transform: perspective(1600px) rotateY(8deg) rotateX(3deg); transform-origin: right center; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2dbeb; display: block; }
.mock-bar img { height: 20px; width: auto; }
.mock-menu { display: flex; gap: 14px; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.mock-menu span:first-child { color: var(--brand-700); }
.mock-body { padding: 14px; display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi small { display: block; color: var(--faint); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { display: block; font-size: 17px; color: var(--ink); margin-top: 2px; }
.kpi em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--green); }
.mock-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock-card .mock-h { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; }
.mock-card .mock-h > span { color: var(--faint); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding-top: 4px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #b58fd0, #9469ac); display: block; }
.bars i:nth-child(3n) { background: linear-gradient(180deg, #f08aa7, #d6336c); }
.mock-list { display: grid; gap: 7px; }
.mock-list div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.pill-ok { background: #e3f6ea; color: #17784a; }
.pill-wait { background: #fff2dc; color: #9a5a00; }
.pill-info { background: var(--brand-100); color: var(--brand-800); }
.donut { width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#9469ac 0 62%, #0f9f96 62% 84%, #e8900c 84% 100%); display: grid; place-items: center; margin: 2px auto 8px; }
.donut::after { content: ""; width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.legend { display: grid; gap: 4px; font-size: 10.5px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; background: var(--c); }
.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  font-size: 12.5px; color: var(--text); line-height: 1.35; max-width: 250px; animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; color: var(--ink); font-size: 13px; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.float-card .ic svg { width: 18px; height: 18px; }
.fc-1 { inset-inline-start: -22px; bottom: 6px; }
.fc-2 { inset-inline-end: -10px; top: -14px; animation-delay: -3s; }
.phone-float { position: absolute; inset-inline-end: -18px; bottom: -8px; width: 150px; border-radius: 26px; border: 6px solid #0f0b1d; box-shadow: var(--shadow-lg); overflow: hidden; background: #fff; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1000px) { .mock { transform: none !important; } .phone-float { width: 120px; inset-inline-end: 0; } }
@media (max-width: 560px) { .mock-row { grid-template-columns: 1fr; } .phone-float, .fc-2 { display: none; } .fc-1 { inset-inline-start: 8px; bottom: 0; } }

/* ---------- Logos / trust strip ---------- */
.trust-strip { padding-block: 34px; border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip p { text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.trust-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.trust-names span { font-weight: 800; font-size: 1.05rem; color: var(--faint); letter-spacing: -.01em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: #fff; padding: 28px 26px; }
.stat b { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.stat span { color: var(--muted); font-size: .95rem; }
.section-dark .stats { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.section-dark .stat { background: var(--ink-2); }
.section-dark .stat span { color: #b9b1d0; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
a.card .link-arrow { margin-top: auto; padding-top: 16px; color: var(--brand-700); }
.section-dark .card { background: var(--ink-2); border-color: rgba(255, 255, 255, .08); }
.section-dark .card p { color: #b9b1d0; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; flex: none;
  background: var(--tile, var(--grad)); box-shadow: 0 10px 20px -10px var(--tile-shadow, rgba(148, 105, 172, .9)), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.icon-tile svg { width: 26px; height: 26px; color: #fff; stroke-width: 1.8; }
span.icon-tile { display: grid; line-height: 0; }
.icon-tile.sm { width: 42px; height: 42px; border-radius: 12px; margin: 0; }
.icon-tile.sm svg { width: 20px; height: 20px; }
.t-purple { --tile: linear-gradient(135deg, #a57dc1, #7b4f98); --tile-shadow: rgba(123, 79, 152, .8); }
.t-magenta { --tile: linear-gradient(135deg, #f0678f, #c42a5f); --tile-shadow: rgba(196, 42, 95, .7); }
.t-teal { --tile: linear-gradient(135deg, #2cc2b4, #0c8a82); --tile-shadow: rgba(12, 138, 130, .7); }
.t-amber { --tile: linear-gradient(135deg, #f7b547, #dd7b06); --tile-shadow: rgba(221, 123, 6, .7); }
.t-blue { --tile: linear-gradient(135deg, #6f9bff, #3257c9); --tile-shadow: rgba(50, 87, 201, .7); }
.t-green { --tile: linear-gradient(135deg, #45c77a, #178a48); --tile-shadow: rgba(23, 138, 72, .7); }
.t-indigo { --tile: linear-gradient(135deg, #8c7bff, #5140c9); --tile-shadow: rgba(81, 64, 201, .7); }
.t-rose { --tile: linear-gradient(135deg, #ff8a7a, #e0493a); --tile-shadow: rgba(224, 73, 58, .7); }
.t-slate { --tile: linear-gradient(135deg, #8d9ab2, #56647d); --tile-shadow: rgba(86, 100, 125, .7); }
.t-cyan { --tile: linear-gradient(135deg, #4fc3f7, #1e88c7); --tile-shadow: rgba(30, 136, 199, .7); }

/* Bento module grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .xwide { grid-column: span 4; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento .wide, .bento .xwide { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.card-feature { background: linear-gradient(160deg, #fff 30%, var(--brand-50)); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 110px); }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 2px; }
.checklist.cols { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 640px) { .checklist.cols { grid-template-columns: 1fr; } }
.section-dark .checklist svg { color: #7ee2c9; }

.visual-panel {
  position: relative; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, var(--brand-50), #fff 60%); border: 1px solid var(--line);
}
.visual-panel::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -15%; top: -20%; background: radial-gradient(circle, rgba(148,105,172,.25), transparent 70%); z-index: -1; }
.visual-panel.dark { background: linear-gradient(145deg, var(--ink-2), var(--ink)); border-color: rgba(255,255,255,.06); }
.phones { display: flex; justify-content: center; gap: 18px; align-items: flex-end; }
.phone { width: min(230px, 44%); border-radius: 30px; border: 7px solid #120d22; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.phone:nth-child(2) { transform: translateY(-26px); }
.phone img { width: 100%; }

.mini-list { display: grid; gap: 10px; }
.mini-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.mini-row b { display: block; color: var(--ink); font-size: .95rem; }
.mini-row div > span { font-size: .85rem; color: var(--muted); }
.mini-row .end { margin-inline-start: auto; }
.visual-panel.dark .mini-row { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.visual-panel.dark .mini-row b { color: #fff; }
.visual-panel.dark .mini-row div > span { color: #b9b1d0; }

/* Chat mock (WhatsApp) */
.chat { max-width: 380px; margin-inline: auto; background: #efe7dd; border-radius: 22px; padding: 16px; display: grid; gap: 10px; box-shadow: var(--shadow-lg); font-size: .92rem; }
.chat-head { display: flex; gap: 10px; align-items: center; background: #075e54; color: #fff; margin: -16px -16px 4px; padding: 12px 16px; border-radius: 22px 22px 0 0; }
.chat-head b { color: #fff; display: block; font-size: .95rem; }
.chat-head small { color: #cde9e4; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 12px; background: #fff; color: #1d1d1d; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.me { justify-self: end; background: #dcf8c6; }
.bubble small { display: block; text-align: end; color: #636363; font-size: .7rem; margin-top: 2px; }

/* Module capability groups */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cap h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cap li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.cap li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); flex: none; margin-top: .62em; transform: rotate(45deg); }

/* Local (country) panel */
.local {
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); background: var(--ink); color: #cfc7e3; position: relative; overflow: hidden; isolation: isolate;
}
.local::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(214, 51, 108, .28), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(148, 105, 172, .35), transparent 70%); }
.local h2, .local h3 { color: #fff; }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.local-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; }
.local-item h3 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.local-item h3 svg { width: 20px; height: 20px; color: #d7bfe9; }
.local-item p { margin: 0; font-size: .92rem; color: #b9b1d0; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .local-grid { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
.section-dark .step { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.section-dark .step p { color: #b9b1d0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Hub (connected modules) */
.hub { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hub a, .hub div {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 10px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #e6def4; text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: background .2s, transform .2s;
}
.hub a:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); color: #fff; }
.hub .icon-tile { margin: 0; }
@media (max-width: 900px) { .hub { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .hub { grid-template-columns: repeat(2, 1fr); } }

/* Case studies */
.case { display: flex; flex-direction: column; gap: 12px; }
.case .sector { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-700); }
.case h3 { margin: 0; }
.case .result { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.case .result svg { color: var(--teal); }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-200); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-700); line-height: 1; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta-band {
  position: relative; border-radius: 28px; padding: clamp(36px, 6vw, 72px); overflow: hidden; isolation: isolate; color: #efe6f7;
  background: var(--ink); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 0%, rgba(148,105,172,.7), transparent 60%), radial-gradient(50% 100% at 100% 100%, rgba(214,51,108,.45), transparent 60%); }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #d8cde8; margin: 0; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Prose (guides, legal) */
.prose { max-width: 760px; margin-inline: auto; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #3b3553; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-3); color: var(--ink); font-weight: 700; }
.callout { background: var(--brand-50); border-inline-start: 4px solid var(--brand); border-radius: 12px; padding: 18px 22px; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 2em; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; }
.meta-line { font-size: .9rem; color: #a99fc4; margin-top: 14px; }

/* Pricing drivers */
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--grad); color: #fff; padding: 4px 10px; border-radius: 999px; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; font-size: .95rem; color: var(--muted); }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(148, 105, 172, .18); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--text); margin: 0; }
.checks input { accent-color: var(--brand-700); width: 16px; height: 16px; min-height: 0; }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-800); }
.form-note { font-size: .85rem; color: var(--faint); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--magenta); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list b { display: block; color: var(--ink); }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--brand-700); text-decoration: underline; }

/* Country chooser (GCC hub) */
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .countries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .countries { grid-template-columns: 1fr; } }
.country { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.country .flag { font-size: 2.2rem; }
.country b { display: block; font-size: 1.1rem; }
.country span { font-size: .9rem; color: var(--muted); }
a.country:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.country.soon { opacity: .7; background: var(--surface-2); }

/* Footer */
.site-footer { background: var(--ink); color: #a99fc4; padding-top: 72px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
html[lang^="ar"] .footer-grid h2 { letter-spacing: 0; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #c3bad9; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.footer-bottom { margin-top: 56px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom a { color: #c3bad9; text-decoration: none; }
.footer-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-countries a, .footer-countries span { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: #c3bad9; text-decoration: none; font-size: .82rem; }
.footer-countries a[aria-current] { background: rgba(255,255,255,.1); color: #fff; }
.footer-countries span { color: #8f86ab; border-style: dashed; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* WhatsApp floating button */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound b { font-size: clamp(5rem, 14vw, 9rem); line-height: 1; display: block; }

@media print {
  .site-header, .site-footer, .wa-float, .cta-band { display: none; }
  .hero, .section-dark { background: #fff; color: #000; }
}

/* Grid children must be allowed to shrink below their content width (mobile overflow fix) */
.hero-grid > *, .split > *, .grid > *, .bento > *, .cap-grid > *, .mock-kpis > *, .mock-row > * { min-width: 0; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.visual-panel.dark .pill-ok { background: rgba(69, 199, 122, .18); color: #8ff0b8; }
.visual-panel.dark .pill-wait { background: rgba(247, 181, 71, .18); color: #ffd28a; }
.visual-panel.dark .pill-info { background: rgba(197, 160, 224, .2); color: #e3cdf3; }
@media (max-width: 560px) {
  .mock { font-size: 11px; }
  .kpi b { font-size: 14px; }
  .mock-menu span:nth-child(n+3) { display: none; }
  .hero-trust { gap: 8px 18px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* =====================================================================
   Scroll-driven effects. JS sets --p (0..1) on [data-scroll] elements;
   every rule falls back to the resting state when --p is missing, so the
   page is complete without JS and with reduced motion.
   ===================================================================== */

/* Hero: the dashboard straightens and grows, copy drifts up, cards float at different depths */
.hero[data-scroll] .hero-grid > div:first-child { translate: 0 calc(var(--p, 0) * -70px); opacity: calc(1 - var(--p, 0) * 1.1); }
.hero[data-scroll] .mock {
  transform: perspective(1600px) rotateY(calc(-10deg * (1 - min(var(--p, 0) * 2.2, 1)))) rotateX(calc(4deg * (1 - min(var(--p, 0) * 2.2, 1))))
             scale(calc(1 + var(--p, 0) * .08));
}
html[dir="rtl"] .hero[data-scroll] .mock {
  transform: perspective(1600px) rotateY(calc(10deg * (1 - min(var(--p, 0) * 2.2, 1)))) rotateX(calc(4deg * (1 - min(var(--p, 0) * 2.2, 1)))) scale(calc(1 + var(--p, 0) * .08));
}
.hero[data-scroll] .fc-1 { translate: 0 calc(var(--p, 0) * -160px); }
.hero[data-scroll] .fc-2 { translate: 0 calc(var(--p, 0) * -90px); }
.hero[data-scroll] .phone-float { translate: 0 calc(var(--p, 0) * -220px); }
.hero[data-scroll] .visual-panel { translate: 0 calc(var(--p, 0) * -60px); scale: calc(1 + var(--p, 0) * .05); }
.hero[data-scroll] .visual-panel .mini-row { translate: calc((var(--p, 0)) * 30px * var(--dir, 1)) 0; }
.hero[data-scroll] .visual-panel .mini-row:nth-child(even) { --dir: -1; }

/* Visuals zoom into place as they enter */
.scrub-zoom { scale: calc(.86 + .14 * var(--p, 1)); opacity: calc(.25 + .75 * var(--p, 1)); transform-origin: 50% 80%; will-change: scale, opacity; }

/* Phones spread apart while scrolling past */
.phones[data-scroll] .phone:nth-child(1) { translate: 0 calc((var(--p, .5) - .5) * 90px); rotate: calc((var(--p, .5) - .5) * -6deg); }
.phones[data-scroll] .phone:nth-child(3) { translate: 0 calc((var(--p, .5) - .5) * 90px); rotate: calc((var(--p, .5) - .5) * 6deg); }
.phones[data-scroll] .phone:nth-child(2) { translate: 0 calc((.5 - var(--p, .5)) * 60px); }

/* Statement: words light up one by one (pinned) */
.statement { height: 220vh; position: relative; }
.statement-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; place-items: center; }
.statement p {
  max-width: 1000px; margin: 0 auto; padding-inline: 24px; text-align: center; font-weight: 800; letter-spacing: -.025em; line-height: 1.18;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem); color: var(--ink);
}
.statement .w { opacity: calc(.14 + .86 * clamp(0, (var(--p, 1) * 1.15 - var(--w)) * 9, 1)); transition: opacity .1s linear; }
.statement .w.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:not(.scroll-fx) .statement { height: auto; padding-block: 100px; }
html:not(.scroll-fx) .statement-sticky { position: static; height: auto; }

/* Story: pinned section, steps advance with the scroll */
.story { position: relative; height: calc(var(--steps, 4) * 85vh + 15vh); background: var(--surface); }
.story-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; width: 100%; }
.story-grid > * { min-width: 0; }
.story-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 6px; position: relative; }
.story-steps::before { content: ""; position: absolute; inset-inline-start: 19px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.story-steps::after { content: ""; position: absolute; inset-inline-start: 19px; top: 12px; width: 2px; height: calc((100% - 24px) * var(--p, 0)); background: var(--grad); }
.story-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 12px 0; opacity: .38; transition: opacity .4s ease; }
.story-step .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #fff; border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1; transition: all .4s ease; }
.story-step h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.story-step p { margin: 0; color: var(--muted); font-size: .98rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s ease, opacity .4s ease; }
.story-step.is-active, .story-step.is-done { opacity: 1; }
.story-step.is-done .num { background: var(--brand-100); border-color: var(--brand-200); color: var(--brand-800); }
.story-step.is-active .num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(148,105,172,.9); }
.story-step.is-active p { max-height: 160px; opacity: 1; }
.story-visuals { position: relative; aspect-ratio: 5 / 4; }
.story-visual { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transform: translateY(30px) scale(.94); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.story-visual > * { width: 100%; }
.story-visual.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-visual .mini-row { transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s; }
.story-visual:not(.is-active) .mini-row { transform: translateX(40px); opacity: 0; }
.story-visual.is-active .mini-row:nth-child(2) { transition-delay: .08s; }
.story-visual.is-active .mini-row:nth-child(3) { transition-delay: .16s; }
.story-visual.is-active .mini-row:nth-child(4) { transition-delay: .24s; }
html:not(.scroll-fx) .story { height: auto; padding-block: 90px; }
html:not(.scroll-fx) .story-sticky { position: static; height: auto; }
html:not(.scroll-fx) .story-step { opacity: 1; }
html:not(.scroll-fx) .story-step p { max-height: none; opacity: 1; }
html:not(.scroll-fx) .story-visual:first-child { position: relative; opacity: 1; transform: none; }
@media (max-width: 900px) {
  .story { height: calc(var(--steps, 4) * 75vh + 25vh); }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .story-text h2 { font-size: 1.6rem; margin-bottom: 0; }
  .story-text .eyebrow { margin-bottom: 6px; }
  .story-steps { margin-top: 12px; }
  .story-step { display: none; }
  .story-step.is-active { display: grid; }
  .story-steps::before, .story-steps::after { display: none; }
  /* text on top, the flow fills the rest of the screen (it used to overflow both ends on short phones) */
  .story-sticky { align-items: stretch; padding-block: 16px 20px; }
  .story-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .story-visuals { aspect-ratio: auto; min-height: 330px; }
  .story-grid > .flow { flex: 1; min-height: 0; height: auto; margin-top: 44px; }  /* room for the receipt above the first stop */
  .story-bar { display: block; }
}
.story-bar { display: none; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 10px; }
.story-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--grad); }

/* Horizontal scroll: pinned on wide screens, swipeable on phones */
.hscroll { position: relative; }
.hscroll-sticky { padding-block: clamp(64px, 9vw, 110px); }
.hscroll.is-pinned .hscroll-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 24px; }
.hscroll-track {
  display: flex; gap: 22px; padding-inline: max(24px, calc((100vw - var(--container)) / 2 + 24px)); padding-block: 8px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; will-change: transform;
}
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll.is-pinned .hscroll-track { overflow: visible; }
.hscroll-track > * { flex: 0 0 min(380px, 82vw); scroll-snap-align: start; min-height: 280px; }
.hscroll-track .card { padding: 30px; }
.hscroll-track .card h3 { font-size: 1.35rem; }
.hscroll .section-head { margin-bottom: 36px; }
.hscroll-hint { display: inline-flex; gap: 8px; align-items: center; color: var(--faint); font-size: .9rem; font-weight: 600; }

/* Staggered card reveals */
.grid > .reveal:nth-child(2), .bento > .reveal:nth-child(2), .cap-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .bento > .reveal:nth-child(3), .cap-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4), .bento > .reveal:nth-child(4), .cap-grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5), .bento > .reveal:nth-child(5), .cap-grid > .reveal:nth-child(5), .steps > .reveal:nth-child(5) { transition-delay: .32s; }
.grid > .reveal:nth-child(6), .bento > .reveal:nth-child(6), .cap-grid > .reveal:nth-child(6) { transition-delay: .4s; }
.js .reveal { transform: translateY(32px) scale(.98); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { transform: none; }
.hub > div { transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s; }

/* Card hover: light follows the pointer (set by JS as --mx/--my) */
a.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(148,105,172,.12), transparent 60%); }
a.card:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero[data-scroll] .hero-grid > div:first-child, .hero[data-scroll] .fc-1, .hero[data-scroll] .fc-2, .hero[data-scroll] .phone-float,
  .hero[data-scroll] .visual-panel, .hero[data-scroll] .visual-panel .mini-row, .phones[data-scroll] .phone { translate: none; rotate: none; scale: none; opacity: 1; }
  .hero[data-scroll] .mock { transform: none; }
  .scrub-zoom { scale: none; opacity: 1; }
  .statement .w { opacity: 1; }
}

/* Mega menus are centred on the header, not on their button, so they never run off-screen */
@media (min-width: 961px) {
  .header-inner { position: relative; }
  .nav-item.has-mega { position: static; }
  .mega { top: calc(100% - 6px); }
}

/* ---------- Phone refinements ---------- */
.pill { white-space: nowrap; }
@media (max-width: 960px) {
  /* WhatsApp button appears once the hero buttons are out of the way */
  .js .wa-float { opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .25s, transform .25s; }
  .js .wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
  .statement { height: 170vh; }
}
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; inset-inline-end: 14px; bottom: 14px; }
  .hero-badge { font-size: .8rem; }
  /* hero dashboard mock: keep the KPIs, the chart and the activity list */
  .mock-row .mock-card:nth-child(2) { display: none; }
  .mock-body { padding: 10px; gap: 8px; }
  .kpi { padding: 8px; }
  .kpi small { font-size: 9px; letter-spacing: .02em; }
  .kpi b { font-size: 13px; }
  .bars { height: 72px; }
  .fc-1 { max-width: 230px; }
  /* status panels */
  .visual-panel { padding: 14px; border-radius: 18px; }
  .mini-list { gap: 8px; }
  .mini-row { padding: 10px 12px; gap: 10px; border-radius: 12px; }
  .mini-row .icon-tile.sm { width: 36px; height: 36px; border-radius: 10px; }
  .mini-row .icon-tile.sm svg { width: 18px; height: 18px; }
  .mini-row b { font-size: .88rem; line-height: 1.3; }
  .mini-row div > span { font-size: .78rem; line-height: 1.35; display: block; }
  .mini-row .pill { font-size: 9.5px; padding: 2px 7px; }
  .phones { gap: 10px; }
  .phone { border-width: 5px; border-radius: 22px; }
  .section-head { margin-bottom: 36px; }
  .cta-band .btn-row .btn { width: 100%; }
}

/* =====================================================================
   Scenes: connect (home), flow (story), mini hub (module pages), sticky CTA
   ===================================================================== */

/* ---- Connect: modules fly into orbit and link to the core ---- */
.connect { position: relative; height: 460vh; background: var(--ink); color: #cfc7e3; isolation: isolate; }
.connect::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 35% at 50% 58%, rgba(148, 105, 172, .35), transparent 70%),
              radial-gradient(30% 30% at 85% 20%, rgba(214, 51, 108, .18), transparent 70%);
}
.connect-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; overflow: hidden; }
.connect-captions { position: relative; flex: none; height: 200px; text-align: center; }
.connect-cap { position: absolute; inset: 32px 24px 0; max-width: 860px; margin-inline: auto; pointer-events: none; transition: opacity .2s linear; }
.connect-cap h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.7rem); margin-bottom: 10px; }
.connect-cap p { color: #b9b1d0; margin: 0 auto; max-width: 620px; }
.connect-cap .btn-row { justify-content: center; margin-top: 18px; }
.connect-cap .btn-ghost { --b-fg: #fff; --b-bd: rgba(255,255,255,.3); }
.connect-cap .btn-ghost:hover { background: rgba(255,255,255,.08); }
.connect-cap.c1 { opacity: clamp(0, (.2 - var(--p, 1)) * 12, 1); }
.connect-cap.c2 { opacity: min(clamp(0, (var(--p, 1) - .22) * 12, 1), clamp(0, (.6 - var(--p, 1)) * 12, 1)); }
.connect-cap.c3 { opacity: clamp(0, (var(--p, 1) - .62) * 10, 1); }
.connect.is-live .connect-cap.c3 { pointer-events: auto; }
.connect-stage { position: relative; flex: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto 28px; }
.connect-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(192, 79, 155, .55)); }
.connect-lines .cl { fill: none; stroke: url(#linegrad); stroke-width: 2; stroke-linecap: round; }
.connect-lines .pulse, .hub-lines .pulse { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.connect-core {
  position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #ffffff, #efe6f7 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 90px 10px rgba(148, 105, 172, .55);
  transform: translate(-50%, -50%) scale(calc(.45 + .55 * clamp(0, (var(--p, 1) - .16) * 4, 1)));
  opacity: clamp(0, (var(--p, 1) - .14) * 5, 1);
}
.connect-core img { width: 128px; height: auto; }
.core-ring { position: absolute; inset: -16px; border-radius: 50%; border: 1.5px solid rgba(215, 191, 233, .5); animation: ring 3.2s ease-out infinite; }
.core-ring.r2 { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.connect-node {
  position: absolute; left: 0; top: 0; z-index: 3; width: 124px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: #fff; will-change: transform;
}
.connect-node .icon-tile.sm { width: 56px; height: 56px; border-radius: 16px; }
.connect-node .icon-tile.sm svg { width: 26px; height: 26px; }
.connect-node b { color: #fff; font-size: .85rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: #2a2148; border: 1px solid rgba(255,255,255,.16); white-space: nowrap; }
.connect-node:hover { color: #fff; }
.connect-node:hover .icon-tile { box-shadow: 0 0 0 4px rgba(255,255,255,.15), 0 10px 30px -8px var(--tile-shadow); }
.connect-chip {
  position: absolute; left: var(--x); top: var(--y); z-index: 4; display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px;
  background: #fff; color: #3b3553; font-size: .82rem; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
  rotate: var(--r); opacity: calc(1 - clamp(0, (var(--p, 1) - .08) * 6, 1));
  translate: calc(var(--p, 1) * -60px) calc(var(--p, 1) * 320px);
}
.connect-chip svg { width: 16px; height: 16px; color: #1f9d55; }
html:not(.scroll-fx) .connect { height: auto; padding-bottom: 60px; }
html:not(.scroll-fx) .connect-sticky { position: static; height: auto; }
html:not(.scroll-fx) .connect-captions { height: 260px; }
html:not(.scroll-fx) .connect-stage { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
html:not(.scroll-fx) .connect-node, html:not(.scroll-fx) .connect-core { position: static; transform: none; }
html:not(.scroll-fx) .connect-chip, html:not(.scroll-fx) .connect-lines { display: none; }
@media (max-width: 700px) {
  .connect { height: 420vh; }
  /* captions share one grid cell so the tallest one sets the height and never covers the ring */
  .connect-captions { height: auto; display: grid; padding: 18px 16px 8px; }
  .connect-cap { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; }
  .connect-cap .btn-row { flex-wrap: nowrap; gap: 8px; margin-top: 12px; }
  .connect-cap h2 { font-size: 1.45rem; }
  .connect-cap p { font-size: .92rem; }
  .connect-cap .btn-row .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; font-size: .88rem; white-space: nowrap; }
  .connect-stage { width: calc(100% - 16px); margin-bottom: 12px; }
  .connect-core { width: 110px; height: 110px; }
  .connect-core img { width: 80px; }
  .connect-node { width: 76px; gap: 5px; }
  .connect-node .icon-tile.sm { width: 42px; height: 42px; border-radius: 12px; }
  .connect-node .icon-tile.sm svg { width: 20px; height: 20px; }
  .connect-node b { font-size: .66rem; padding: 2px 7px; }
  .connect-chip { font-size: .7rem; padding: 6px 9px; }
  .connect-chip:nth-of-type(n+6) { display: none; }
}

/* ---- Flow: the receipt token travels through departments ---- */
.flow { position: relative; width: 100%; height: min(560px, calc(100vh - var(--header-h) - 120px)); }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-base { fill: none; stroke: var(--brand-200); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.flow-done { fill: none; stroke: url(#flowgrad); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(192, 79, 155, .35)); }
.flow-node { position: absolute; z-index: 1; width: 190px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transform: translate(-50%, -28px); }
.flow-node[data-i="0"] { left: 20%; top: 6%; }
.flow-node[data-i="1"] { left: 78%; top: 30%; }
.flow-node[data-i="2"] { left: 22%; top: 56%; }
.flow-node[data-i="3"] { left: 78%; top: 80%; }
.flow-node .icon-tile { margin: 0; transition: filter .5s, opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); filter: grayscale(1); opacity: .45; }
.flow-node b { font-size: .98rem; color: var(--faint); transition: color .4s; }
.flow-node.is-reached .icon-tile { filter: none; opacity: 1; }
.flow-node.is-reached b { color: var(--ink); }
.flow-node.is-current .icon-tile { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(148,105,172,.12), 0 14px 30px -10px var(--tile-shadow); }
.flow-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .8rem; font-weight: 700; color: #17784a; background: #e3f6ea; padding: 4px 11px; border-radius: 999px; opacity: 0; translate: 0 8px; transition: opacity .4s, translate .4s; }
.flow-status svg { width: 14px; height: 14px; }
.flow-node.is-reached .flow-status { opacity: 1; translate: 0 0; }
.flow-token {
  position: absolute; left: 0; top: 0; z-index: 3; margin: -22px 0 0 18px; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .75rem; line-height: 1.25; white-space: nowrap; box-shadow: var(--shadow-lg); will-change: transform; pointer-events: none;
}
.flow-token::before { content: ""; position: absolute; left: -24px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; border: 4px solid #c04f9b; box-shadow: 0 0 0 6px rgba(192,79,155,.2); }
.flow-token svg { width: 18px; height: 18px; color: #d7bfe9; }
.flow-token b { display: block; font-size: .82rem; color: #fff; }
html:not(.scroll-fx) .flow-token { display: none; }
html:not(.scroll-fx) .flow-node .icon-tile { filter: none; opacity: 1; }
html:not(.scroll-fx) .flow-status { opacity: 1; translate: 0 0; }
@media (max-width: 900px) {
  .flow { height: 330px; }
  .flow-node { width: 130px; gap: 5px; transform: translate(-50%, -22px); }
  .flow-node .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
  .flow-node .icon-tile svg { width: 21px; height: 21px; }
  .flow-node b { font-size: .8rem; }
  .flow-status { font-size: .68rem; padding: 3px 8px; }
  .flow-node[data-i="0"] { left: 22%; top: 3%; }
  .flow-node[data-i="1"] { left: 76%; top: 27%; }
  .flow-node[data-i="2"] { left: 24%; top: 52%; }
  .flow-node[data-i="3"] { left: 76%; top: 77%; }
  .flow-token { font-size: .66rem; padding: 6px 9px; margin: -18px 0 0 16px; }
  .flow-token b { font-size: .72rem; }
  .flow-token svg { display: none; }
}

/* ---- Mini hub on module pages ---- */
.mini-hub { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 44px 90px; align-items: center; max-width: 1040px; margin-inline: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.hub-lines .hl { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.hub-center, .hub-sat { position: relative; z-index: 1; }
.hub-center {
  grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 30px 28px;
  border-radius: 24px; background: var(--ink); color: #fff; box-shadow: 0 30px 60px -25px rgba(38,20,70,.6), 0 0 0 8px rgba(148,105,172,.1);
}
.hub-center .icon-tile { margin: 0; width: 64px; height: 64px; }
.hub-center b { color: #fff; font-size: 1.1rem; }
.mini-hub.is-live .hub-center { box-shadow: 0 30px 60px -25px rgba(38,20,70,.6), 0 0 0 8px rgba(148,105,172,.14), 0 0 60px rgba(148,105,172,.45); transition: box-shadow .6s; }
.hub-sat {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hub-sat .icon-tile { grid-row: span 2; margin: 0; width: 46px; height: 46px; border-radius: 13px; }
.hub-sat .icon-tile svg { width: 22px; height: 22px; }
.hub-sat b { color: var(--ink); }
.hub-sat span:not(.icon-tile) { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.hub-sat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); color: inherit; }
.hub-sat.s0 { grid-column: 1; grid-row: 1; }
.hub-sat.s1 { grid-column: 3; grid-row: 1; }
.hub-sat.s2 { grid-column: 1; grid-row: 2; }
.hub-sat.s3 { grid-column: 3; grid-row: 2; }
.mini-hub .hub-sat { opacity: calc(.3 + .7 * clamp(0, var(--p, 1) * 2 - .3, 1)); }
@media (max-width: 900px) {
  .mini-hub { grid-template-columns: 1fr; gap: 14px; }
  .hub-center, .hub-sat.s0, .hub-sat.s1, .hub-sat.s2, .hub-sat.s3 { grid-column: 1; grid-row: auto; }
  .hub-center { margin-bottom: 10px; }
  .hub-lines { display: none; }
  .mini-hub .hub-sat { opacity: 1; }
}

/* ---- Sticky "Book a demo" bar ---- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 20px; z-index: 95; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px;
  background: rgba(22, 17, 42, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; border-radius: 999px;
  box-shadow: 0 20px 50px -18px rgba(22,17,42,.8), 0 0 0 1px rgba(255,255,255,.08);
  transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta.show { transform: translate(-50%, 0); }
.sticky-cta-text b { display: block; color: #fff; font-size: .92rem; }
.sticky-cta-text span { display: block; color: #b9b1d0; font-size: .78rem; }
.sticky-wa { display: none; }
body.nav-open .sticky-cta { display: none; }
@media (max-width: 960px) {
  .wa-float { display: none; }
  .sticky-cta {
    left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%);
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta-text { flex: 1; min-width: 0; }
  .sticky-cta-text b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-wa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #25d366; color: #fff; flex: none; }
  .sticky-wa svg { width: 24px; height: 24px; }
}
@media (max-width: 560px) {
  .sticky-cta-text { display: none; }
  .sticky-cta .btn { flex: 1; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .core-ring { animation: none; opacity: 0; }
  .sticky-cta { transition: none; }
}

/* Token: card floats above the travelling dot, joined by a short stem */
.flow-token { width: 128px; margin: -96px 0 0 -64px; justify-content: center; }
.flow-token::before { left: 57px; top: 89px; margin: 0; }
.flow-token::after { content: ""; position: absolute; left: 63px; top: 100%; width: 2px; height: calc(89px - 100%); background: linear-gradient(#c04f9b, rgba(192,79,155,.2)); }
@media (max-width: 900px) {
  .flow-token { width: 104px; margin: -80px 0 0 -52px; }
  .flow-token::before { left: 45px; top: 73px; width: 12px; height: 12px; border-width: 3px; }
  .flow-token::after { left: 50px; height: calc(74px - 100%); }
}

/* =====================================================================
   Scene toolkit
   .tw  = timed tween driven by the section's --p (0..1):
          enters between --a and --b (from offset --fx/--fy, rotation --fr, scale --fs, opacity --o0),
          leaves between --c and --d (to offset --ex/--ey, rotation --er, scale --es, fade --eo).
   Defaults are declared on every .tw so nested tweens never inherit a parent's values.
   ===================================================================== */
.tw {
  --a: 0; --b: 1; --c: 2; --d: 3; --fx: 0px; --fy: 0px; --fr: 0deg; --fs: 1; --o0: 0; --ex: 0px; --ey: 0px; --er: 0deg; --es: 1; --eo: 1;
  --t: clamp(0, calc((var(--p, 1) - var(--a)) / (var(--b) - var(--a))), 1);
  --t2: clamp(0, calc((var(--p, 1) - var(--c)) / (var(--d) - var(--c))), 1);
  opacity: calc((var(--o0) + (1 - var(--o0)) * var(--t)) * (1 - var(--t2) * var(--eo)));
  translate: calc((1 - var(--t)) * var(--fx) + var(--t2) * var(--ex)) calc((1 - var(--t)) * var(--fy) + var(--t2) * var(--ey));
  rotate: calc((1 - var(--t)) * var(--fr) + var(--t2) * var(--er));
  scale: calc((var(--fs) + (1 - var(--fs)) * var(--t)) * (1 - var(--t2) * (1 - var(--es))));
}
.tw-type { clip-path: inset(0 calc((1 - var(--t)) * 100%) 0 0); }
.tw-unroll { clip-path: inset(0 0 calc((1 - var(--t)) * 100%) 0); }
.tw-draw { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t)); translate: none; rotate: none; scale: none; }
.tw-w { width: calc(var(--w0) + (var(--w1) - var(--w0)) * var(--t)); translate: none; }

/* Pinned scene layout: captions on one side, a fitted canvas on the other */
.scene { position: relative; height: var(--len, 340vh); }
.scene.dark { background: var(--ink); color: #cfc7e3; }
.scene.tint { background: var(--surface-2); }
.scene-sticky {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: var(--container); margin-inline: auto; padding-inline: 24px;
}
.scene-caps { position: relative; min-height: 340px; }
.scene-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.scene-cap:last-child { pointer-events: auto; }
.scene-cap h2 { font-size: clamp(1.7rem, 3.1vw, 2.7rem); }
.scene-cap p { color: var(--muted); font-size: 1.08rem; max-width: 460px; }
.scene.dark .scene-cap h2 { color: #fff; }
.scene.dark .scene-cap p { color: #b9b1d0; }
.scene-cap .btn-row { margin-top: 10px; }
.scene.dark .scene-cap .btn-ghost { --b-fg: #fff; --b-bd: rgba(255,255,255,.3); }
.scene-visual { position: relative; height: min(600px, calc(100vh - var(--header-h) - 48px)); }
.fit { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; transform: translate(-50%, -50%) scale(var(--k, 1)); }
.scene-progress { position: absolute; left: 24px; right: 24px; bottom: 18px; height: 3px; border-radius: 3px; background: rgba(148,105,172,.18); overflow: hidden; }
.scene-progress i { display: block; height: 100%; width: calc(var(--p, 1) * 100%); background: var(--grad); }
@media (max-width: 900px) {
  .scene { height: calc(var(--len, 340vh) * .9); }
  .scene-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 32px; padding-inline: 16px; padding-bottom: 16px; align-items: stretch; }
  /* captions share one grid cell: the box is as tall as the tallest caption, so none spills onto the canvas */
  .scene-caps { min-height: 0; display: grid; }
  .scene-cap { position: relative; inset: auto; grid-area: 1 / 1; justify-content: flex-start; padding-top: 18px; }
  .scene-cap h2 { font-size: 1.45rem; margin-bottom: 6px; }
  .scene-cap p { font-size: .95rem; margin-bottom: 8px; }
  .scene-cap .eyebrow { margin-bottom: 6px; }
  .scene-cap .btn-row .btn { flex: 1 1 auto; min-height: 44px; }
  .scene-visual { height: auto; min-height: 0; }
}
html:not(.scroll-fx) .scene { height: auto; padding-block: 60px; }
html:not(.scroll-fx) .scene-sticky { position: static; height: auto; }
html:not(.scroll-fx) .scene-visual { height: 560px; }
@media (prefers-reduced-motion: reduce) {
  .scene { --p: 1 !important; height: auto; padding-block: 60px; }
  .scene-sticky { position: static; height: auto; }
  .scene-visual { height: 560px; }
}

/* Shared scene pieces */
.sc-card { position: absolute; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(38,20,70,.45); color: var(--text); font-size: 13px; line-height: 1.4; }
.sc-card b, .sc-card strong { color: var(--ink); }
.sc-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 30px -16px rgba(38,20,70,.45); font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sc-chip svg { width: 16px; height: 16px; }
.sc-ok { color: #17784a; } .sc-ok svg { color: #17784a; }
.sc-dark { background: var(--ink); color: #fff; border-color: transparent; }
.sc-dark b { color: #fff; }
.sc-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sc-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.sc-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sc-stamp { position: absolute; padding: 6px 12px; border: 3px solid currentColor; border-radius: 10px; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #1f9d55; background: rgba(255,255,255,.85); }
.sc-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: var(--grad); box-shadow: 0 12px 26px -12px rgba(148,105,172,.9); }

/* ---- Scene pieces ---- */
/* invoice */
.sc-invoice .bubble { font-size: 12.5px; }
/* map */
.map-land { fill: rgba(148,105,172,.14); stroke: #d7bfe9; stroke-width: 1.6; }
.map-arcs path { fill: none; stroke: #e2687a; stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(226,104,122,.8)); }
.map-pin { position: absolute; margin: -8px 0 0 -8px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.map-pin i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #c04f9b; box-shadow: 0 0 0 5px rgba(192,79,155,.25); flex: none; }
.map-pin span { font-size: 11px; font-weight: 700; color: #e9e2f5; background: rgba(22,17,42,.75); padding: 2px 7px; border-radius: 6px; }
.map-hq { position: absolute; margin: -14px 0 0 -14px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.map-hq span { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 8px rgba(192,79,155,.25), 0 0 30px rgba(226,104,122,.9); position: relative; }
.map-hq span::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(226,104,122,.6); animation: ring 2.4s ease-out infinite; }
.map-hq b { color: #fff; font-size: 12px; background: var(--ink); border: 1px solid rgba(255,255,255,.2); padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
/* building */
.bld { position: absolute; }
.bld-roof { height: 26px; margin: 0 18px; border-radius: 10px 10px 0 0; background: linear-gradient(#5b4a7c, #3d3060); }
.bld-body { position: relative; height: 430px; border-radius: 8px 8px 0 0; background: linear-gradient(160deg, #2f2553, #1b1535); box-shadow: 0 40px 60px -30px rgba(22,17,42,.8); }
.bld-name { position: absolute; left: 0; right: 0; top: 34px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b9b1d0; }
.bld-door { position: absolute; left: 50%; bottom: 0; width: 56px; height: 40px; margin-left: -28px; border-radius: 6px 6px 0 0; background: #120d22; border: 2px solid #4d3f70; border-bottom: 0; }
.win { position: absolute; border-radius: 5px; background: #120d22; overflow: hidden; }
.win i { position: absolute; inset: 0; border-radius: inherit; }
.win-occ i { background: linear-gradient(135deg, #7ee2a8, #1f9d55); box-shadow: 0 0 14px rgba(69,199,122,.7); }
.win-exp i { background: linear-gradient(135deg, #ffd28a, #e8900c); box-shadow: 0 0 14px rgba(232,144,12,.7); }
.win-vac i { background: #3d3a4f; }
.win-alert i { animation: winPulse 1.2s ease-in-out infinite; }
@keyframes winPulse { 50% { filter: brightness(1.5); box-shadow: 0 0 24px 4px rgba(232,144,12,.9); } }
.leg::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 5px; vertical-align: 0; }
.leg-occ::before { background: #1f9d55; } .leg-exp::before { background: #e8900c; } .leg-vac::before { background: #8a859c; } .leg-lv::before { background: #9469ac; }
[class*="dot-"] { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: #1f9d55; } .dot-wait { background: #e8900c; } .dot-info { background: #9469ac; }
/* HR */
.fp { position: absolute; display: grid; place-items: center; }
.fp-core { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f0678f, #c42a5f); box-shadow: 0 20px 40px -14px rgba(196,42,95,.8); z-index: 1; }
.fp-core svg { width: 56px; height: 56px; }
.fp-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(214,51,108,.55); }
.cal-d { position: absolute; width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.cal-p { background: #1f9d55; } .cal-l { background: #e8900c; } .cal-a { background: #9469ac; } .cal-w { background: var(--surface-3); color: var(--faint); }
/* POS */
.prod { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 8px; }
.prod b { font-size: 12px; } .prod span { font-size: 11px; color: var(--muted); }
.fly { position: absolute; z-index: 5; }
.fly .icon-tile { box-shadow: 0 14px 30px -8px rgba(38,20,70,.6); }
.rcpt { position: absolute; background: #fffdf8; padding: 18px 18px 30px; font-size: 12.5px; box-shadow: 0 30px 60px -28px rgba(38,20,70,.55); }
.rcpt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 10px; background: radial-gradient(circle at 8px 0, #fffdf8 7px, transparent 8px) 0 0 / 16px 10px repeat-x; }
.rcpt-code { position: absolute; left: 18px; right: 18px; bottom: 14px; height: 26px; background: repeating-linear-gradient(90deg, #2a2440 0 2px, transparent 2px 4px, #2a2440 4px 5px, transparent 5px 8px); opacity: .7; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #45c77a, #1f9d55); }
.bar i.low { background: linear-gradient(90deg, #f0678f, #c42a5f); }
/* CRM */
.sc-crm { --fn0: linear-gradient(90deg, #a57dc1, #7b4f98); --fn1: linear-gradient(90deg, #6f9bff, #3257c9); --fn2: linear-gradient(90deg, #2cc2b4, #0c8a82); --fn3: linear-gradient(90deg, #45c77a, #178a48); }
.fn-stage { position: absolute; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.fn-label { position: absolute; display: flex; flex-direction: column; }
.fn-label b { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; }
.fn-label > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.lead { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--ink); border: 2px solid #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); z-index: 3; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
/* purchasing */
.po-track { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.po-doc { position: absolute; top: 108px; left: calc(40px + var(--t) * 450px); translate: none; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: #d7cde8; font-size: 12px; box-shadow: var(--shadow-lg); z-index: 3; white-space: nowrap; }
.po-doc b { color: #fff; }
/* manufacturing */
.bom-lines path { fill: none; stroke: #d7bfe9; stroke-width: 1.5; stroke-dasharray: 1; }
.part { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #cfc7e3; font-size: 11.5px; line-height: 1.3; backdrop-filter: blur(4px); }
.part b { color: #fff; font-size: 12.5px; }
.bom-core { position: absolute; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; background: radial-gradient(circle at 30% 30%, #6a5a8f, #2f2553); box-shadow: 0 0 60px rgba(148,105,172,.6); }
.bom-core svg { width: 44px; height: 44px; color: #d7bfe9; }
.bom-core b { color: #fff; } .bom-core span { font-size: 11px; color: #b9b1d0; }
.sc-mfg .sc-card { background: #fff; }
/* configurator */
.cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: center; }
.cfg-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink); transition: border-color .2s, background .2s, transform .2s; }
.cfg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-chip .icon-tile { filter: grayscale(1); opacity: .5; transition: filter .3s, opacity .3s; }
.cfg-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.cfg-chip:has(input:checked) .icon-tile { filter: none; opacity: 1; }
.cfg-chip:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.cfg-chip:active { transform: scale(.98); }
.cfg-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; grid-row: span 2; }
.cfg-svg { position: absolute; inset: 0; width: 440px; height: 440px; overflow: visible; }
.cfg-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 4px rgba(148,105,172,.6)); }
.cfg-line.on { stroke-dashoffset: 0; }
.cfg-node { position: absolute; transform: translate(-50%, -50%) scale(.85); opacity: .35; filter: grayscale(1); transition: all .45s cubic-bezier(.2,.8,.2,1); }
.cfg-node.on { transform: translate(-50%, -50%) scale(1.1); opacity: 1; filter: none; }
.cfg-node .icon-tile.sm { width: 48px; height: 48px; }
.cfg-core { position: absolute; left: 220px; top: 220px; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff; box-shadow: 0 0 0 10px rgba(148,105,172,.1), 0 20px 50px -20px rgba(38,20,70,.5); }
.cfg-core b { font-size: .9rem; color: var(--brand-700); }
.cfg-summary p { margin-bottom: 8px; }
.cfg-note { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-visual { grid-row: auto; max-width: 340px; }
  .cfg-chips { grid-template-columns: 1fr 1fr; }
  .cfg-chip { font-size: .8rem; padding: 8px; gap: 8px; }
  .cfg-chip .icon-tile.sm { width: 32px; height: 32px; }
}
/* implementation road */
.road { position: relative; height: 1500px; overflow-x: clip; }
.road-svg { position: absolute; left: 50%; top: 0; width: 220px; height: 100%; margin-left: -110px; overflow: visible; }
.road-bed { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 26; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.road-path { fill: none; stroke: #c04f9b; stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(226,104,122,.8)); }
.road-flag { position: absolute; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--magenta); box-shadow: 0 0 0 8px rgba(226,104,122,.25), 0 10px 30px rgba(0,0,0,.4); z-index: 3; }
.road-flag svg { width: 24px; height: 24px; }
.road-card { position: absolute; width: min(400px, 40%); margin-top: -70px; padding: 22px 24px; border-radius: 18px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); }
.road-card h3 { color: #fff; margin: 6px 0 6px; } .road-card p { color: #b9b1d0; margin: 0; font-size: .96rem; }
.road-l { right: calc(50% + 150px); } .road-r { left: calc(50% + 150px); }
.road-num { font-weight: 800; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.road-dot { position: absolute; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 4px solid #c04f9b; z-index: 2; display: none; }
.road-end { position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.road-end b { font-size: 1.6rem; color: #fff; } .road-end span { color: #b9b1d0; font-size: .95rem; }
@media (max-width: 900px) {
  .road { height: 1400px; }
  .road-svg { left: 0; margin-left: 0; width: 64px; }
  .road-card { left: 78px; right: 0; width: auto; margin-top: -60px; padding: 18px; }
  .road-l, .road-r { right: 0; left: 78px; }
  .road-end { left: 78px; transform: none; text-align: start; }
}

/* map labels on the left side of their pin */
.map-pin.lft { flex-direction: row-reverse; margin-left: 0; transform: translateX(calc(-100% + 8px)); }
.map-hq { flex-direction: column; }
.map-hq b { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); }
.sc-monthend .sc-card:not(.tw) { z-index: 20; }
@media (max-width: 900px) {
  .scene-visual .fit { top: 0; transform-origin: 50% 0; transform: translate(-50%, 0) scale(var(--k, 1)); }
}

.map-land { fill: rgba(181, 143, 208, .22); stroke: #d7bfe9; stroke-width: 1.2; stroke-linejoin: round; }
.map-note { position: absolute; font-size: 10.5px; font-style: italic; color: #a99fc4; white-space: nowrap; }
.map-credit { position: absolute; left: 20px; bottom: 0; font-size: 9.5px; color: #8a82a6; }
.map-hq b { top: auto; bottom: auto; left: auto; right: calc(100% + 10px); transform: none; top: 50%; translate: 0 -50%; }
.map-pin span { font-size: 11px; }
.map-pin.btm { flex-direction: column; align-items: flex-start; gap: 3px; }
.map-inset { fill: rgba(255,255,255,.03); stroke: rgba(215,191,233,.35); stroke-dasharray: 4 4; }
.map-inset-label { fill: #a99fc4; font-size: 10.5px; font-style: italic; }
.map-hq b { right: auto; top: auto; left: 50%; bottom: calc(100% + 10px); translate: -50% 0; }

/* trust scene: security, backups, disaster recovery, compliance */
.sc-no { color: #c42a5f; }
.sc-row b svg { width: 16px; height: 16px; vertical-align: -3px; }
.sc-sub { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.sc-dark .sc-sub { color: #b9b1d0; }
.sc-log { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.sc-log:last-child { border-bottom: 0; }
.sc-log > span { color: var(--faint); font-weight: 700; font-size: 11px; padding-top: 1px; }
.sc-log small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.sc-node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; }
.sc-node b { font-size: 15px; }
.sc-node small { color: var(--muted); font-size: 11.5px; }
.sc-wire { position: absolute; background: repeating-linear-gradient(90deg, rgba(215,191,233,.7) 0 6px, transparent 6px 12px); }
.sc-packet { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(148,105,172,.45), 0 0 14px #d7bfe9; }
.sc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 14px; }
.sc-day { display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 12px; background: var(--surface-2); }
.sc-day small { font-size: 11px; font-weight: 700; color: var(--muted); }
.sc-day span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; }
.sc-day span svg { width: 16px; height: 16px; }
.sc-swap { display: grid; justify-items: center; }
.sc-swap > * { grid-area: 1 / 1; font-size: 11px; }
.pill-down { background: #fde3ea; color: #b42352; }
.sc-main { overflow: hidden; }
.sc-dim { position: absolute; inset: 0; background: rgba(22,17,42,.08); pointer-events: none; }
.sc-checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 13px; }
.sc-checks li { display: flex; gap: 8px; align-items: center; }
.sc-checks svg { width: 16px; height: 16px; color: #1f9d55; flex: none; }
