/* ==========================================================================
   MERDIGIT: GENERAL STYLES  (the one design system every page uses)

   Page-specific files (work.css, erp.css, ...) only hold what is unique to
   one page. Nothing in them may define a colour: use the tokens below.

   Contents
     1. Tokens (colours, gradients, type, radii) + dark scheme
     2. Base (reset, typography, container, utilities)
     3. Sections and the dark / light / tint rhythm
     4. Buttons, forms
     5. Site header (nav) and mobile menu
     6. Footer, floating WhatsApp button
     7. Components
          page hero, ERP window illustration, trust strip, symptoms + bridge,
          modules / platforms / demo band / beyond, dark band + case showcase,
          client feedback card + dialog, process steps, FAQ, CTA band + lead
          form, filter bar, illustration sizes
     8. Responsive rules for the components

   Page rhythm (see docs/design-system.md): dark = hero, proof, final CTA;
   everything else alternates white and tint. Magenta is for the primary
   action only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Brand ramp, sampled from the Merdigit logo (dark plum to orchid) */
    --p9: #1d0829;
    --p8: #341047;
    --p7: #4c195c;
    --p6: #632270;
    --p5: #832e8d;
    --o5: #a23aa7;
    --o4: #c347c4;
    --o3: #e27be3;
    --o2: #f0b6f1;

    /* Surfaces and text (light) */
    --bg: #ffffff;
    --bg2: #f8f3fa;
    --card: #ffffff;
    --ink: #2a0d3a;
    --tx: #5b4a68;
    --mu: #7d6c8a;
    --line: #ebdff0;
    --bg3: #f1e5f7;
    --link: var(--o5);
    --tagtext: var(--p5);
    --lt-ink: #2a0d3a;
    --lt-tx: #5b4a68;
    --lt-mu: #7d6c8a;
    --lt-line: #ebdff0;
    --lt-bg2: #f8f3fa;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --nav-solid: #ffffff;
    --nav-fg: var(--p7);
    --logo-l: none;
    --logo-d: block;

    /* Gradients */
    --grad: linear-gradient(120deg, #4c195c, #832e8d 55%, #c347c4);
    --grad-cta: linear-gradient(120deg, #a23aa7, #c347c4);
    --grad-hero: linear-gradient(160deg, #1d0829, #341047 60%, #4c195c);
    --grad-contact: linear-gradient(150deg, #341047, #4c195c 55%, #832e8d);

    /* Fixed tones */
    --white: #ffffff;
    --black: #000000;
    --ok: #1d8a4c;
    --ok-bg: #e6f6ec;
    --bad: #c0304f;
    --bad-bg: #fde8ee;
    --whatsapp: #25d366;

    /* Derived tints used by components (promote to a role token when one is reused widely) */
    --tn-9a88a8: #9a88a8;
    --tn-b844b9: #b844b9;
    --tn-cdb8d9: #cdb8d9;
    --tn-d3bfde: #d3bfde;
    --tn-d765d8: #d765d8;
    --tn-d8c5e2: #d8c5e2;
    --tn-d9c6e3: #d9c6e3;
    --tn-dcc9e6: #dcc9e6;
    --tn-e0527a: #e0527a;
    --tn-e3d0ec: #e3d0ec;
    --tn-e4d3ec: #e4d3ec;
    --tn-e8d8ef: #e8d8ef;
    --tn-e9d6f0: #e9d6f0;
    --tn-ecdcf3: #ecdcf3;
    --tn-efe3f4: #efe3f4;
    --tn-f0dcf6: #f0dcf6;
    --tn-f0e4f5: #f0e4f5;
    --tn-f1e4f6: #f1e4f6;
    --tn-f2e8f5: #f2e8f5;
    --tn-faf5fc: #faf5fc;

    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-ar: 'cairo', 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', 'Segoe UI', Tahoma, system-ui, sans-serif;
    --radius: 14px;
    --radius-lg: 22px;
    --header-h: 72px;
    --ease: 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #150720;
        --bg2: #1c0a28;
        --card: #241032;
        --ink: #f6edf9;
        --tx: #cdbdd8;
        --mu: #a592b2;
        --line: #3b1f4a;
        --bg3: #2a1238;
        --link: var(--o3);
        --tagtext: var(--o2);
        --nav-bg: rgba(21, 7, 32, 0.94);
        --nav-solid: #1c0a28;
        --nav-fg: #f6edf9;
        --logo-l: block;
        --logo-d: none;
    }
}
:root[data-theme="dark"] {
    --bg: #150720;
    --bg2: #1c0a28;
    --card: #241032;
    --ink: #f6edf9;
    --tx: #cdbdd8;
    --mu: #a592b2;
    --line: #3b1f4a;
    --bg3: #2a1238;
    --link: var(--o3);
    --tagtext: var(--o2);
    --nav-bg: rgba(21, 7, 32, 0.94);
    --nav-solid: #1c0a28;
    --nav-fg: #f6edf9;
    --logo-l: block;
    --logo-d: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
    margin: 0;
    font: 400 16px/1.65 var(--font);
    background: var(--bg);
    color: var(--tx);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--o3); outline-offset: 3px; }
.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;
}
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
    background: linear-gradient(100deg, var(--o2), var(--tn-d765d8) 55%, var(--o4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section--tint { background: var(--bg2); }
.section--soft { background: var(--bg3); }
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center h2,
.section-head--center .lead { margin-inline: auto; }
.eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--link);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); flex: none; }
.section-head--center .eyebrow { justify-content: center; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin: 14px 0; max-width: 780px; }
.lead { font-size: 18px; max-width: 620px; }

/* Dark / purple surfaces: the same elements, inverted. */
.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lead { color: var(--tn-d3bfde); }
.on-dark .eyebrow { color: var(--o2); }
.on-dark .note-line, .on-dark .closing-line { color: var(--tn-dcc9e6); }
.on-dark .closing-line { color: var(--white); }
.on-dark .chips li { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.on-dark .module__html, .on-dark .module p { color: var(--tx); }

/* Scroll reveal: general.js adds .reveal to elements that start below the fold, then .is-visible. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 768px) { .hide-mobile { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
    font: 700 15px/1.2 var(--font); cursor: pointer; transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary { background: var(--grad-cta); color: var(--white); box-shadow: 0 10px 30px -8px rgba(195, 71, 196, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(195, 71, 196, 0.8); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.15); }
.btn--light { background: var(--white); color: var(--p7); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45); }
.btn--outline { border-color: var(--link); color: var(--link); background: transparent; }
.btn--outline:hover { background: var(--o5); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.text-link { font-weight: 700; font-size: 14.5px; color: var(--link); }
.text-link:hover { color: var(--p7); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .field > label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
    font: 400 15px var(--font); color: var(--ink); background: var(--card);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--o4); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-status { font-size: 14px; text-align: center; margin-top: 12px; color: var(--mu); }
.form-status--error { color: var(--bad); }
.form-status--success { color: var(--ok); font-weight: 700; }

/* ---------- Site header ---------- */
.site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.site-nav__logo { display: block; flex: none; }
.site-nav .logo { height: 36px; width: auto; display: block; }
.site-nav .logo--dark { display: none; }
.site-nav__links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 600; color: var(--tn-f1e4f6); }
.site-nav__links a:hover, .site-nav__trigger:hover { color: var(--white); }
.site-nav__dropdown { position: relative; }
.site-nav__trigger { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.site-nav__caret { font-size: 11px; }
.site-nav__menu {
    position: absolute; top: calc(100% + 14px); inset-inline-start: -16px; min-width: 200px; padding: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 24px 50px -20px rgba(29, 8, 41, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: var(--ease);
}
.site-nav__dropdown.open .site-nav__menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__menu a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink); font-weight: 600; }
.site-nav__menu a:hover { background: var(--bg2); color: var(--link); }
.site-nav__actions { display: flex; align-items: center; gap: 18px; }
.site-nav__phone { font-size: 14px; font-weight: 600; color: var(--tn-f1e4f6); }
.site-nav__phone:hover { color: var(--white); }
.site-nav .cta-short { display: none; }
.site-nav__toggle {
    display: none; width: 44px; height: 44px; border-radius: 10px; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.38); background: none; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.site-nav__toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white); transition: var(--ease); }
.site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scrolled: a white bar with the dark logo. */
.site-nav.is-scrolled {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom-color: var(--line); box-shadow: 0 6px 28px -14px rgba(52, 16, 71, 0.22);
}
.site-nav.is-scrolled .logo--light { display: var(--logo-l); }
.site-nav.is-scrolled .logo--dark { display: var(--logo-d); }
.site-nav.is-scrolled .site-nav__links,
.site-nav.is-scrolled .site-nav__phone { color: var(--nav-fg); }
.site-nav.is-scrolled .site-nav__links a:hover,
.site-nav.is-scrolled .site-nav__trigger:hover { color: var(--link); }
.site-nav.is-scrolled .site-nav__toggle { border-color: var(--tn-d9c6e3); }
.site-nav.is-scrolled .site-nav__toggle span { background: var(--nav-fg); }

/* Mobile menu */
.mobile-menu { display: none; }
@media (max-width: 980px) {
    .site-nav__links, .site-nav__phone { display: none; }
    .site-nav__toggle { display: flex; }
    .site-nav.is-open { background: var(--p7); }
    .site-nav.is-open.is-scrolled { background: var(--nav-solid); }
    .mobile-menu {
        display: block; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        padding: 8px 24px 28px; background: var(--p7);
    }
    .mobile-menu[hidden] { display: none; }
    .site-nav.is-scrolled .mobile-menu { background: var(--nav-solid); border-bottom: 1px solid var(--line); }
    .mobile-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
    .site-nav.is-scrolled .mobile-menu__list > li { border-bottom-color: var(--line); }
    .mobile-menu__list a, .mobile-menu__trigger {
        display: flex; width: 100%; justify-content: space-between; align-items: center;
        padding: 15px 0; background: none; border: 0; text-align: start;
        font: 600 16px var(--font); color: var(--white); cursor: pointer;
    }
    .site-nav.is-scrolled .mobile-menu__list a, .site-nav.is-scrolled .mobile-menu__trigger { color: var(--nav-fg); }
    .mobile-menu__sub { padding: 0 0 10px; padding-inline-start: 14px; }
    .mobile-menu__sub[hidden] { display: none; }
    .mobile-menu__sub a { padding: 10px 0; font-weight: 500; }
    .mobile-menu__sub small { font-size: 12px; opacity: 0.7; margin-inline-start: 10px; }
    .mobile-menu__foot { display: grid; gap: 14px; margin-top: 22px; }
    .mobile-menu__phone { text-align: center; font-weight: 700; color: var(--white); }
    .site-nav.is-scrolled .mobile-menu__phone { color: var(--nav-fg); }
}
@media (max-width: 1200px) { .site-nav__phone { display: none; } }
@media (max-width: 980px) { .site-nav__actions .btn--sm { padding: 9px 14px; } }
@media (max-width: 560px) {
    .site-nav__inner { gap: 10px; }
    .site-nav .logo { height: 28px; }
    .site-nav__actions { gap: 10px; }
    .site-nav .cta-long { display: none; }
    .site-nav .cta-short { display: inline; }
    .site-nav .btn--sm { white-space: nowrap; font-size: 13px; padding: 9px 13px; }
}
@media (max-width: 350px) {
    .site-nav .logo { height: 24px; }
    .site-nav__actions { gap: 6px; }
    .site-nav .btn--sm { font-size: 12px; padding: 8px 10px; }
}

/* Light / dark switch (the site follows the device until a visitor picks one; see js/theme.js) */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); transition: var(--ease);
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__moon { fill: currentColor; stroke: none; }
.theme-toggle__sun { display: none; }
.site-nav.is-scrolled .theme-toggle { color: var(--nav-fg); border-color: var(--line); }
.site-nav.is-scrolled .theme-toggle:hover { background: var(--bg2); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
    :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
@media (max-width: 560px) { .site-nav__actions .theme-toggle { display: none; } }
.theme-toggle--block { width: 100%; height: auto; border-radius: 99px; padding: 12px; display: flex; gap: 10px; justify-content: center; align-items: center; font-weight: 700; font-size: 15px; }
.theme-toggle--block span { color: inherit; }
.site-nav.is-scrolled .mobile-menu .theme-toggle--block { color: var(--nav-fg); }
@media (min-width: 561px) { .mobile-menu .theme-toggle--block { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--p8); color: var(--tn-cdb8d9); padding: 64px 0 28px; font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 40px; }
.site-footer__news { grid-column: 1 / -1; }
.site-footer__brand img { height: 36px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.site-footer li { padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer__contact p { display: flex; gap: 10px; padding: 4px 0; }
.site-footer__contact i { color: var(--o3); margin-top: 5px; width: 14px; flex: none; }
.site-footer__post { padding: 4px 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.site-footer__post small { opacity: 0.7; }
.site-footer .social-links { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .social-links a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.1); color: var(--white); transition: var(--ease);
}
.site-footer .social-links a:hover { background: var(--o5); }
.site-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer__grid > * { min-width: 0; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: var(--whatsapp); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.5);
    transition: transform var(--ease);
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

@media (max-width: 980px) { .section { padding: 76px 0; } }
@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .btn { width: 100%; }
    .site-nav .btn { width: auto; }
}

/* ==========================================================================
   7. COMPONENTS
   ========================================================================== */

/* ---------- Page hero (dark band that opens every page) ---------- */
.page-hero {
    position: relative; overflow: hidden; color: var(--white);
    padding: calc(var(--header-h) + 72px) 0 112px;
    background:
        radial-gradient(900px 520px at 88% 8%, rgba(195, 71, 196, 0.4), transparent 60%),
        radial-gradient(700px 500px at 0 100%, rgba(131, 46, 141, 0.5), transparent 60%),
        var(--grad-hero);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, var(--black), transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, var(--black), transparent 70%);
}
.page-hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 60px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); border-radius: 99px;
    font-size: 13px; font-weight: 600; color: var(--tn-ecdcf3);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--o3); box-shadow: 0 0 0 4px rgba(226, 123, 227, 0.25); }
.page-hero h1 { color: var(--white); font-size: clamp(36px, 4.7vw, 60px); font-weight: 800; margin: 22px 0; }
.page-hero__lead { font-size: 19px; color: var(--tn-dcc9e6); max-width: 520px; }
.page-hero__lead strong { color: var(--white); }
.page-hero__pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 32px; font-size: 13px; color: var(--tn-cdb8d9); }
.page-hero__pills b { padding: 6px 13px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: var(--white); font-weight: 600; }
.page-hero__pills b.is-main { background: var(--white); color: var(--p8); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__note { margin-top: 16px; font-size: 14.5px; color: var(--tn-dcc9e6); }
.page-hero__note a { color: var(--white); font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.45); }
.page-hero__note a:hover { border-bottom-color: var(--white); }
.page-hero__stats { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.page-hero__stats b { display: block; font-size: 26px; font-weight: 800; color: var(--white); line-height: 1.2; }
.page-hero__stats span { font-size: 13px; color: var(--tn-cdb8d9); }

/* Inner pages: a shorter hero, optionally without a side illustration. */
.page-hero--compact { padding: calc(var(--header-h) + 56px) 0 72px; }
.page-hero__grid--single { grid-template-columns: minmax(0, 1fr); }
.page-hero--compact .page-hero__lead { max-width: 640px; }
.page-hero .eyebrow { color: var(--o2); margin-bottom: 4px; }
.page-hero__index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-hero__index a { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.28); font-size: 13.5px; font-weight: 600; color: var(--tn-f1e4f6); transition: var(--ease); }
.page-hero__index a:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ---------- ERP window illustration (used in heroes) ---------- */
.ui-mock { position: relative; --ink: var(--lt-ink); --tx: var(--lt-tx); --mu: var(--lt-mu); --line: var(--lt-line); --card: var(--white); --bg: var(--white); --bg2: var(--lt-bg2); --link: var(--o5); --tagtext: var(--p5); }
.ui-mock::before {
    content: ""; position: absolute; inset: -8% -10%; z-index: 0; filter: blur(34px);
    background: radial-gradient(closest-side, rgba(195, 71, 196, 0.5), transparent 70%);
}
.ui-win {
    position: relative; z-index: 1; background: var(--white); border-radius: 18px; overflow: hidden; color: var(--ink);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
}
.ui-win__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: linear-gradient(90deg, var(--p7), var(--o5)); }
.ui-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.ui-win__bar span { margin-inline-start: 12px; font-size: 12px; background: rgba(255, 255, 255, 0.18); color: var(--white); padding: 4px 12px; border-radius: 7px; }
.ui-win__body { display: grid; grid-template-columns: 132px 1fr; min-height: 430px; }
.ui-win__side { padding: 16px 10px; background: var(--tn-faf5fc); border-inline-end: 1px solid var(--tn-f0e4f5); font-size: 13px; font-weight: 600; color: var(--mu); }
.ui-win__side li { margin-bottom: 3px; }
.ui-win__side button {
    all: unset; display: block; width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 9px;
    cursor: pointer; font: 600 13px var(--font); color: var(--mu); transition: var(--ease);
}
.ui-win__side button:hover { background: var(--tn-f2e8f5); }
.ui-win__side button.is-active { background: var(--white); color: var(--link); box-shadow: 0 1px 4px rgba(52, 16, 71, 0.12); }
.ui-win__side button:focus-visible { outline: 2px solid var(--o4); }
.ui-win__side .is-dim { padding: 9px 12px; opacity: 0.45; }
.ui-win__main { padding: 18px; min-width: 0; }
.ui-panel[hidden] { display: none; }
.ui-panel { animation: ui-panel-in 0.35s ease; }
@keyframes ui-panel-in { from { opacity: 0; transform: translateY(6px); } }
.ui-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ui-panel__head h4 { font-size: 17px; color: var(--ink); }
.ui-panel__head small { color: var(--mu); font-size: 12px; }
.ui-tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; font-style: normal; background: var(--tn-f2e8f5); color: var(--tagtext); }
.ui-panel__head .ui-tag { margin: 0; }
.ui-tag--ok { background: var(--ok-bg); color: var(--ok); }
.ui-tag--warn { background: var(--bad-bg); color: var(--bad); }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 10px; }
.ui-kpis div { border: 1px solid var(--tn-efe3f4); border-radius: 10px; padding: 9px 11px; background: var(--white); }
.ui-kpis small { display: block; font-size: 10.5px; color: var(--tn-9a88a8); font-weight: 600; }
.ui-kpis b { font-size: 18px; color: var(--ink); font-weight: 800; }
.ui-kpis i { font-style: normal; font-size: 10.5px; color: var(--ok); font-weight: 700; margin-inline-start: 5px; }
.ui-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.ui-board p { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tn-9a88a8); }
.ui-job { background: var(--white); border: 1px solid var(--tn-efe3f4); border-radius: 10px; padding: 10px; font-size: 11.5px; line-height: 1.4; color: var(--mu); margin-bottom: 8px; box-shadow: 0 2px 6px rgba(52, 16, 71, 0.06); }
.ui-job b { display: block; color: var(--ink); font-size: 12px; }
.ui-job .ui-tag { margin-top: 6px; }
.ui-flow { font-size: 11.5px; font-weight: 700; color: var(--p7); border-top: 1px dashed var(--tn-e4d3ec); padding-top: 12px; margin-top: 12px; }
.ui-flow i { color: var(--o4); font-style: normal; margin: 0 3px; }
.ui-row {
    display: grid; grid-template-columns: 1fr auto 64px auto; gap: 10px; align-items: center;
    padding: 9px 11px; border: 1px solid var(--tn-efe3f4); border-radius: 10px; margin-bottom: 7px;
    font-size: 11.5px; color: var(--mu); background: var(--white);
}
.ui-row b { color: var(--ink); font-size: 12px; }
.ui-row .ui-tag { margin: 0; }
.ui-row--3 { grid-template-columns: 1fr auto auto; }
.ui-bar { height: 6px; border-radius: 9px; background: var(--tn-f2e8f5); overflow: hidden; display: block; }
.ui-bar u { display: block; height: 100%; background: var(--grad); border-radius: 9px; }
.ui-bar.is-low u { background: var(--tn-e0527a); }
.ui-chart { border: 1px solid var(--tn-efe3f4); border-radius: 10px; padding: 10px 12px 0; margin-bottom: 12px; }
.ui-chart p { margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tn-9a88a8); }
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; padding-bottom: 8px; }
.ui-bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: var(--grad); }
.ui-bars i:nth-child(even) { background: var(--tn-e9d6f0); }

.ui-float {
    position: absolute; z-index: 2; background: var(--white); border-radius: 14px; padding: 12px 16px;
    display: flex; gap: 10px; align-items: center; line-height: 1.3; max-width: 240px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5); animation: ui-float 6s ease-in-out infinite;
}
.ui-float em { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: var(--white); display: grid; place-items: center; font-style: normal; flex: none; }
.ui-float b { display: block; font-size: 13px; color: var(--ink); }
.ui-float small { display: block; font-weight: 500; color: var(--mu); font-size: 11.5px; }
.ui-float--1 { left: -88px; bottom: 120px; max-width: 200px; animation-delay: -2s; }
.ui-float--2 { right: -12px; top: -24px; }
.ui-float--3 { right: -26px; bottom: -30px; animation-delay: -4s; }
@keyframes ui-float { 50% { transform: translateY(-8px); } }
.ui-mock__caption { text-align: start; padding-inline-start: 6px; font-size: 12px; color: var(--tn-d9c6e3); margin-top: 46px; }

/* ---------- Trust strip (orchid band under the hero) ---------- */
.trust-strip { background: var(--grad-contact); color: var(--white); padding: 30px 0; }
.trust-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.trust-strip__label b { display: block; font-size: 15px; }
.trust-strip__label span { font-size: 13px; opacity: 0.92; }
.trust-strip__list { display: flex; flex-wrap: wrap; gap: 20px 52px; align-items: center; }
.trust-strip__list a, .trust-strip__list li > strong { display: block; }
.trust-strip__list strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); line-height: 1.2; }
.trust-strip__list small { display: block; font-size: 12px; font-weight: 600; opacity: 0.92; }
.trust-strip__list img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.trust-strip__list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Symptoms list + bridge banner ---------- */
.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.symptoms li { display: flex; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.symptoms__n {
    font-size: 44px; font-weight: 800; line-height: 1; min-width: 68px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.symptoms h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.bridge {
    margin-top: 44px; border-radius: 20px; background: var(--grad); color: var(--white); padding: 30px 36px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.bridge p { font-size: 21px; font-weight: 700; max-width: 640px; line-height: 1.35; }

/* ---------- ERP modules, platforms, demo band, "beyond the ERP" ---------- */
.modules { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.module {
    grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; transition: transform 0.25s, box-shadow 0.25s;
}
.module:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(76, 25, 92, 0.4); }
.module--3 { grid-column: span 3; }
.module > svg {
    width: 46px; height: 46px; padding: 11px; border-radius: 13px; margin-bottom: 18px;
    background: rgba(162, 58, 167, 0.12); color: var(--link); stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.module h3 { font-size: 20px; margin-bottom: 8px; }
.module p { font-size: 15px; }
.module.is-featured { background: var(--grad); border-color: transparent; }
.module.is-featured h3, .module.is-featured p { color: var(--white); }
.module.is-featured p { opacity: 0.9; }
.module.is-featured > svg { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 6px 12px; border-radius: 99px; background: var(--bg2); font-size: 12.5px; font-weight: 700; color: var(--link); }
.is-featured .chips li { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.module__bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; margin-top: 20px; }
.module__bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: 0.85; }
.modules__more { margin-top: 18px; text-align: end; }

.platforms-head { margin-top: 80px; }
.platforms-head h3 { font-size: 28px; }
.platforms-head p { margin-top: 8px; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.platform { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; background: var(--card); }
.platform.is-popular {
    border: 2px solid transparent;
    background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
}
.platform__badge {
    position: absolute; top: -13px; inset-inline-start: 26px; background: var(--grad); color: var(--white);
    font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px;
}
.platform h4 { font-size: 26px; margin-bottom: 10px; }
.platform p { font-size: 15px; margin-bottom: 14px; }
.platform h3 { font-size: 26px; margin-bottom: 10px; }
.platform--link { display: flex; flex-direction: column; transition: var(--ease); }
.platform--link:hover { border-color: var(--o4); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(76, 25, 92, 0.35); }
.platform__foot { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.platform__foot .platform__link { margin-top: 0; }

.tag { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--tagtext); }
.tag--solid { background: var(--grad-cta); border-color: transparent; color: var(--white); }

/* Flow: illustrative workflows, conversations, hero art */
.flow-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--card); }
.flow-card__caption { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mu); margin-bottom: 14px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow__step { position: relative; display: grid; gap: 3px; padding: 12px 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.flow__step.is-first { border-color: var(--o4); background: var(--card); }
.flow__kind { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.flow__step b { font-size: 15px; color: var(--ink); }
.flow__step i { font-style: normal; font-size: 12.5px; color: var(--mu); }
.flow__step p { margin: 2px 0 0; font-size: 13.5px; }
.flow__step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 24px; bottom: -11px; width: 2px; height: 10px; background: var(--o4); }
.flow:not(.flow--col) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.flow:not(.flow--col) .flow__step:not(:last-child)::after { inset-inline-start: auto; inset-inline-end: -11px; bottom: 50%; width: 10px; height: 2px; }
.on-dark .flow-card { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.on-dark .flow-card__caption { color: var(--tn-d3bfde); }
.on-dark .flow__step { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); }
.on-dark .flow__step.is-first { background: rgba(255, 255, 255, 0.18); border-color: var(--o3); }
.on-dark .flow__kind { color: var(--o2); }
.on-dark .flow__step b { color: var(--white); }
.on-dark .flow__step i, .on-dark .flow__step p { color: var(--tn-dcc9e6); }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; }
.flow-card h3 { font-size: 20px; margin-bottom: 14px; }

/* Agents: lanes by maturity and the live-agent spotlight */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.lanes--1 { grid-template-columns: minmax(0, 1fr); }
.lanes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lane { display: grid; gap: 14px; align-content: start; }
.lane__title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mu); }
.agent { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--card); }
.agent--available { border-color: var(--o4); }
.agent h4 { font-size: 18px; margin: 10px 0 6px; }
.agent p { font-size: 14.5px; }
.agent__status { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--mu); border: 1px solid var(--line); }
.agent__status--available { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.agent__status--dev { background: transparent; border: 1px dashed var(--o4); color: var(--tagtext); }
.agent__status--future { background: transparent; color: var(--mu); }
.agent--future { border-style: dotted; }
.spotlight { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; margin-top: 36px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.spotlight__main h3 { font-size: 28px; margin: 12px 0 8px; }
.spotlight__main .chips { margin: 16px 0 22px; }
.spotlight .flow-card { background: var(--bg2); }

/* Closing strip, profile, numbers, contact methods, location */
.cta-strip { text-align: center; padding: 88px 0; }
.cta-strip__inner { max-width: 760px; }
.cta-strip h2 { color: var(--white); }
.cta-strip .lead { margin: 14px auto 0; }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

.profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.profile__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg2); border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.profile__photo { width: 100%; height: 100%; object-fit: cover; }
.profile__placeholder { height: 100%; display: grid; place-items: center; background: var(--grad-hero); }
.profile__placeholder span { font-size: 72px; font-weight: 800; color: var(--o2); letter-spacing: 0.04em; }
.profile__role { margin: 4px 0 18px; font-weight: 700; color: var(--link); }
.profile__copy p { margin-bottom: 14px; }
.profile__quote { margin: 22px 0 0; padding-inline-start: 20px; border-inline-start: 4px solid var(--o4); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.45; }

.numbers { padding: 72px 0; }
.numbers__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; text-align: center; }
.numbers__value { display: block; white-space: nowrap; font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; line-height: 1.1; color: var(--white); }
.numbers__value .number-plus { color: var(--o3); }
.numbers__value .number-divider { color: var(--o3); font-weight: 400; }
.numbers__grid span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--tn-dcc9e6); }
.numbers__grid.about-numbers li:last-child .numbers__value{font-size: clamp(12px, 4.4vw, 28px); line-height: 2.1;}
.numbers__grid.about-numbers li:last-child span {display:inline}
.methods h2 { font-size: 24px; margin-bottom: 18px; }
.methods ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.methods li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.methods__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); color: var(--link); }
.methods__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.methods small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mu); }
.methods a { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.methods a:hover { color: var(--link); }
.contact-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.section:not(.section--dark) .lead-form { border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(76, 25, 92, 0.35); }

.location__head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.location__city { margin-top: 6px; font-weight: 700; color: var(--ink); }
.location__address { margin-top: 12px; font-style: normal; display: grid; gap: 4px; color: var(--tx); }
.location__map { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 380px; }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Blog: search bar, post cards, article layout, prose */
.blog-bar { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.blog-bar .filter-bar { margin-bottom: 0; }
.blog-search { display: flex; gap: 10px; flex: 1 1 320px; max-width: 460px; }
.blog-search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; }
.blog-search input:focus { outline: 2px solid var(--o4); outline-offset: 1px; }
.filter-bar a { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; color: var(--tx); transition: var(--ease); }
.filter-bar a:hover { border-color: var(--link); color: var(--link); }
.filter-bar a[aria-current="true"] { background: var(--grad); border-color: transparent; color: var(--white); }
.blog-count { margin: 0 0 28px; display: flex; gap: 16px; align-items: center; }
[data-blog-results] { transition: opacity var(--ease); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); transition: var(--ease); }
.post-card:hover { border-color: var(--o4); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(76, 25, 92, 0.35); }
.post-card__img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--o4); }
.post-card__ph svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.post-card__cat { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 99px; background: var(--grad-cta); color: var(--white); font-size: 12px; font-weight: 700; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: 12.5px; color: var(--mu); }
.post-card h2 { font-size: 20px; margin: 8px 0; line-height: 1.3; }
.post-card h2 a:hover { color: var(--link); }
.post-card p { font-size: 15px; margin-bottom: 14px; }
.post-card .platform__link { margin-top: auto; }
.post-empty { text-align: center; padding: 64px 0; }
.post-empty .btn { margin-top: 18px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.pager[hidden] { display: none; }
.pager__btn { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--tx); background: var(--card); }
a.pager__btn:hover { border-color: var(--link); color: var(--link); }
.pager__btn.is-active { background: var(--grad); border-color: transparent; color: var(--white); }
.pager__btn.is-disabled { opacity: 0.4; }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.post-article__img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 36px; }
.prose { font-size: 17px; line-height: 1.85; color: var(--tx); overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 40px 0 14px; line-height: 1.3; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose p, .prose ul, .prose ol { margin-bottom: 20px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin-bottom: 8px; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 28px 0; padding: 16px 24px; border-inline-start: 4px solid var(--o4); background: var(--bg2); border-radius: 0 12px 12px 0; font-style: italic; }
.prose pre { background: var(--p9); color: var(--tn-ecdcf3); border-radius: 12px; padding: 20px; overflow-x: auto; margin: 24px 0; font-size: 14px; }
.prose code { background: var(--bg2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.prose pre code { background: none; padding: 0; }
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.post-aside__box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--card); }
.post-aside__box h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.post-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-aside__list a { display: grid; gap: 2px; }
.post-aside__list b { font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.post-aside__list a:hover b { color: var(--link); }
.post-aside__list small { color: var(--mu); font-size: 12.5px; }
.post-aside__share { display: flex; flex-wrap: wrap; gap: 8px; }
.post-aside__share a, .post-aside__share button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg2); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--tagtext); cursor: pointer; }
.post-aside__share a:hover, .post-aside__share button:hover { border-color: var(--link); }

/* Case study screenshot gallery + lightbox (driven by general.js, [data-cs-gallery]) */
.cs-gallery { max-width: 1120px; margin: 0 auto; }
.cs-gallery-viewport { border-radius: var(--radius); outline-offset: 4px; }
.cs-gallery-viewport:focus-visible { outline: 2px solid var(--o4); }
.cs-gallery-track {
    list-style: none; margin: 0; padding: 0;
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--p9);
}
.cs-gallery-track::-webkit-scrollbar { display: none; }
.cs-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; }
.cs-slide-open {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: clamp(220px, 46vw, 620px);
    padding: 0; margin: 0; border: 0; background: transparent; cursor: zoom-in;
}
/* contain: the whole screenshot is always visible, never cropped or stretched */
.cs-slide-open img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.cs-slide-caption { margin: 0; padding: 12px 18px 14px; font-size: 13px; line-height: 1.5; color: var(--mu); text-align: center; border-top: 1px solid var(--line); }
.cs-gallery-bar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; }
.cs-gallery-bar[hidden], .cs-thumbs[hidden] { display: none; }
.cs-counter { font-size: 14px; color: var(--mu); min-width: 56px; text-align: center; letter-spacing: 1px; }
.cs-nav-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
    background: var(--card); border: 1px solid var(--line);
    padding: 9px 18px; border-radius: var(--radius); cursor: pointer;
    transition: var(--ease);
}
.cs-nav-btn:hover:not(:disabled) { border-color: var(--link); color: var(--link); }
.cs-nav-btn:disabled { opacity: 0.35; cursor: default; }
.cs-thumbs { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; justify-content: safe center; }
.cs-thumb {
    flex: 0 0 auto; width: 116px; height: 72px; padding: 0;
    border: 2px solid transparent; border-radius: 8px; overflow: hidden;
    background: var(--p9); cursor: pointer; opacity: 0.6;
    transition: opacity var(--ease), border-color var(--ease);
}
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-thumb:hover { opacity: 0.9; }
.cs-thumb.is-active { opacity: 1; border-color: var(--o4); }
/* Lightbox */
.cs-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(29, 8, 41, 0.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.cs-lightbox[hidden] { display: none; }
.cs-lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cs-lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.cs-lb-figure figcaption { font-size: 14px; color: var(--tn-dcc9e6); text-align: center; max-width: 760px; }
.cs-lb-figure figcaption:empty { display: none; }
.cs-lb-close, .cs-lb-nav {
    position: absolute; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
    color: var(--white); font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: var(--ease);
}
.cs-lb-close:hover, .cs-lb-nav:hover:not(:disabled) { border-color: var(--o4); background: rgba(195, 71, 196, 0.25); }
.cs-lb-close { top: 16px; inset-inline-end: 16px; font-size: 26px; }
.cs-lb-nav { top: 50%; transform: translateY(-50%); }
.cs-lb-nav:disabled { opacity: 0.25; cursor: default; }
.cs-lb-prev { left: 16px; }
.cs-lb-next { right: 16px; }
.cs-lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
html.cs-lb-open { overflow: hidden; }
@media (max-width: 640px) {
    .cs-nav-btn span { display: none; }
    .cs-nav-btn { padding: 9px 16px; }
    .cs-thumb { width: 92px; height: 58px; }
    .cs-lightbox { padding: 60px 12px 56px; }
    .cs-lb-nav { top: auto; bottom: 8px; transform: none; }
    .cs-lb-prev { left: 12px; }
    .cs-lb-next { right: 12px; }
}

/* Facts row, module extras, prose label split */
.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 28px 0 0; }
.facts > div { display: grid; gap: 2px; }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--o2); }
.facts dd { margin: 0; font-weight: 600; color: var(--white); }
.facts .cs-locations { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.facts .cs-location { display: flex; gap: 8px; align-items: center; }
.facts .cs-location-pin { color: var(--o3); flex: none; }
.facts .cs-location-label { margin-inline-start: 8px; font-size: 12.5px; font-weight: 500; color: var(--tn-d3bfde); }
.module__num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--link); }
.module .tag { margin-bottom: 12px; }
.module__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.module__list li { position: relative; padding-inline-start: 22px; font-size: 15px; }
.module__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-cta); }
.module__html { font-size: 15px; }
.module__html p { margin-bottom: 10px; }
.module__html ul { padding-inline-start: 20px; margin-bottom: 10px; }
.is-featured .module__num, .is-featured .module__list li { color: var(--white); }
.module--1 { grid-column: span 1; }
.module--4 { grid-column: span 4; }

/* Case-study hero image */
.page-hero__shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.page-hero__shot img { display: block; width: 100%; height: auto; }

/* Case-study prose (markup produced by App\Support\CaseStudyText) */
.cs-prose-h { font-size: 19px; line-height: 1.35; color: var(--ink); margin-top: 30px; }
.prose > .cs-prose-h:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.cs-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.cs-list li { position: relative; padding-inline-start: 20px; margin: 0; }
.cs-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--o4); }
.cs-flow { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.cs-flow li { font-size: 12.5px; font-weight: 600; color: var(--p7); border: 1px solid var(--line); background: var(--bg2); padding: 6px 12px; border-radius: 99px; line-height: 1.3; }
.cs-flow li + li::before { content: "\2192"; color: var(--o4); margin-inline-end: 8px; margin-inline-start: -4px; }
.prose--center { max-width: 740px; margin: 0 auto; }
.cs-highlight { padding: 32px; border-radius: var(--radius-lg); background: var(--grad); color: var(--white); margin-bottom: 18px; }
.cs-highlight h3, .cs-highlight .prose, .cs-highlight strong { color: var(--white); }

/* Framed prototype images */
.shot { margin: 0; }
.shot__frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--p9); box-shadow: 0 30px 60px -36px rgba(29, 8, 41, 0.6); }
.shot__frame img { display: block; width: 100%; height: auto; }
.shot figcaption { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--tx); }
.shot figcaption strong { color: var(--ink); }
.shot__note { flex-basis: 100%; font-size: 13px; color: var(--mu); }
.shots-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.split--reverse > :first-child { order: 2; }
.flow__logo { height: 36px; width: auto; margin-bottom: 4px; justify-self: start; }

/* Connected-system model: independent layers joined by an optional hub */
.model { display: grid; gap: 18px; margin-top: 40px; }
.model__layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.model__layer { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; background: var(--card); }
.model__layer h3 { font-size: 24px; margin-bottom: 8px; }
.model__layer.is-current { border-color: var(--o4); }
.model__q { font-weight: 600; color: var(--ink); }
.model__here { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--mu); }
.model__layer .platform__link { margin-top: 12px; }
.model__layer p { font-size: 15px; margin-bottom: 16px; }
.model__layer .tag { margin-top: auto; }
.model__hub { text-align: center; border: 1px dashed var(--o4); border-radius: var(--radius-lg); padding: 28px 26px; background: var(--card); }
.model__hub h3 { font-size: 22px; margin: 12px 0 6px; }
.model__hub p { max-width: 560px; margin: 0 auto; font-size: 15px; }
.platform .platform__meta { font-size: 13px; color: var(--mu); margin: 0; }
.platform__meta b { color: var(--ink); }

.demo-band {
    margin-top: 28px; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.demo-band h3 { font-size: 22px; }
.demo-band__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-band p { margin-top: 6px; max-width: 620px; font-size: 15px; }

.beyond { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-top: 22px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: 18px; }
.beyond > span { font-weight: 700; color: var(--ink); margin-inline-end: 8px; align-self: center; }
.beyond__item { flex: 1 1 280px;
    padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
    font-size: 14.5px; font-weight: 600; color: var(--tx); transition: var(--ease); line-height: 1.45;
}
.beyond__item b { color: var(--ink); }
/* Merdigit AI sits in the lighter orchid; both chips turn dark on hover. */
.beyond__item.is-accent { background: var(--o5); border-color: var(--link); color: var(--white); }
.beyond__item.is-accent b { color: var(--white); }
.beyond__item:hover { background: var(--p8); border-color: var(--p8); color: var(--white); }
.beyond__item:hover b { color: var(--white); }
.support-note { margin-top: 16px; font-size: 13.5px; color: var(--mu); }

/* ---------- Dark band + case showcase ---------- */
.section--dark {
    overflow: hidden; color: var(--white);
    background: radial-gradient(800px 420px at 0 0, rgba(195, 71, 196, 0.28), transparent 60%), var(--grad-hero);
}
.case { display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); }
.case:not(:has(.case__side)) { grid-template-columns: 1fr; }
.case__main { padding: 40px; }
.case__main h3 { color: var(--white); font-size: 28px; line-height: 1.25; margin-bottom: 26px; }
.case__main h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.case__desc { color: var(--tn-e8d8ef); margin-bottom: 26px; max-width: 640px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags li { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); color: var(--tn-f0dcf6); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.ba > div { border-radius: 16px; padding: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.ba .is-after { background: linear-gradient(135deg, rgba(195, 71, 196, 0.3), rgba(131, 46, 141, 0.25)); border-color: rgba(226, 123, 227, 0.5); }
.ba h5, .case__side h5 { margin-bottom: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--o2); }
.ba ul { font-size: 14.5px; color: var(--tn-e8d8ef); }
.ba li { padding: 5px 0; padding-inline-start: 22px; position: relative; }
.ba li::before { content: "–"; position: absolute; inset-inline-start: 4px; color: var(--tn-cdb8d9); }
.ba .is-after li::before { content: "✓"; color: var(--o2); inset-inline-start: 2px; }
.case__side { padding: 40px; background: rgba(0, 0, 0, 0.2); }
.case__side h5 { margin-bottom: 14px; }
.code-tag { display: inline-block; font: 800 26px/1 var(--font); padding: 12px 18px; border-radius: 12px; background: var(--white); color: var(--p7); margin-bottom: 24px; }
.chain { counter-reset: s; }
.chain li { position: relative; padding: 0 0 18px; padding-inline-start: 36px; font-weight: 600; color: var(--white); }
.chain li::before {
    counter-increment: s; content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px;
    border-radius: 50%; background: var(--grad); font-size: 12px; display: grid; place-items: center;
}
.chain li::after { content: ""; position: absolute; inset-inline-start: 11px; top: 26px; bottom: 2px; width: 2px; background: rgba(255, 255, 255, 0.2); }
.chain li:last-child::after { display: none; }
.case__note { font-size: 13px; color: var(--tn-d8c5e2); margin-top: 8px; }

.case-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.case-card {
    display: block; padding: 28px; border-radius: 22px; background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15); transition: var(--ease);
}
.case-card:hover { background: rgba(255, 255, 255, 0.1); }
.case-card h3 { color: var(--white); font-size: 19px; line-height: 1.4; margin: 14px 0 18px; }
.case-card__link { font-weight: 700; font-size: 14.5px; color: var(--o2); }
.section__more { margin-top: 20px; text-align: end; font-weight: 700; font-size: 14.5px; color: var(--o2); }
.section__more a:hover { color: var(--white); }
.empty-note { color: var(--tn-e8d8ef); max-width: 640px; }

/* ---------- Client feedback card + dialog ---------- */
.feedback-wrap { margin-top: 18px; }
.feedback-card {
    display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; width: 100%; text-align: start;
    padding: 26px 30px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.4);
    color: var(--white); font: inherit; cursor: pointer; transition: var(--ease);
}
.feedback-card:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }
.feedback-card__thumb {
    position: relative; width: 196px; aspect-ratio: 16 / 9; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--o5), var(--p7)); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
.feedback-card__thumb::before, .feedback-card__thumb::after {
    content: ""; position: absolute; inset: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.14);
    transform: translate(8px, 8px) scale(0.96); z-index: -1;
}
.feedback-card__thumb::after { transform: translate(16px, 16px) scale(0.92); background: rgba(255, 255, 255, 0.08); z-index: -2; }
.feedback-card__play { width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--p7); display: grid; place-items: center; font-size: 18px; padding-inline-start: 3px; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.45); }
.feedback-card__meta small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--o2); margin-bottom: 6px; }
.feedback-card__meta strong { display: block; font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.feedback-card__meta > span { display: block; margin-top: 8px; font-size: 13px; color: var(--tn-e3d0ec); }
.feedback-card__go { padding: 12px 20px; border-radius: 12px; background: var(--white); color: var(--p7); font-weight: 700; font-size: 14.5px; white-space: nowrap; }

.site-dialog {
    border: 0; padding: 0; border-radius: 24px; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
    background: var(--card); color: var(--tx); box-shadow: 0 40px 100px -20px rgba(20, 4, 30, 0.7); overflow: hidden;
}
.site-dialog::backdrop { background: rgba(29, 8, 41, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.site-dialog[open] { display: flex; flex-direction: column; animation: ui-panel-in 0.3s ease; }
.site-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 30px 18px; border-bottom: 1px solid var(--line); }
.site-dialog__head h3 { font-size: 24px; color: var(--ink); }
.site-dialog__head p { margin-top: 4px; font-size: 14px; }
.site-dialog__close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.site-dialog__close:hover { background: var(--o5); color: var(--white); }
.site-dialog__filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 30px 0; }
.site-dialog__filters button { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--tx); font: 600 13.5px var(--font); cursor: pointer; }
.site-dialog__filters button[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--white); }
.site-dialog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 16px; padding: 20px 30px 30px; overflow: auto; }
.feedback { border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); overflow: hidden; display: flex; flex-direction: column; }
.feedback[hidden] { display: none; }
.feedback blockquote { margin: 0; padding: 26px 22px 18px; font-size: 16.5px; line-height: 1.55; color: var(--ink); font-weight: 600; flex: 1; }
.feedback blockquote::before { content: "“"; display: block; font-size: 44px; line-height: 0.6; color: var(--link); margin-bottom: 6px; }
.feedback__media { aspect-ratio: 16 / 9; background: var(--p9); }
.feedback__media video, .feedback__media iframe, .feedback__media img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.feedback__caption { padding: 14px 18px 0; font-size: 14px; }
.feedback footer { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mu); }
.feedback footer img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.feedback footer b { display: block; color: var(--ink); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 22px; position: relative; counter-reset: none; }
.steps::before { content: ""; position: absolute; left: 5%; right: 5%; top: 22px; height: 2px; background: var(--grad); opacity: 0.4; }
.step { position: relative; }
.step__tag { display: inline-block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.step__n {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative; margin-bottom: 20px;
    background: var(--card); border: 2px solid var(--o5); color: var(--link); font-weight: 800;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin-bottom: 14px; }
.step__get { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); font-weight: 700; }
.step b { color: var(--ink); font-size: 14.5px; }
.closing-line { margin-top: 48px; padding-inline-start: 22px; border-inline-start: 4px solid var(--o4); font-size: 22px; font-weight: 700; color: var(--ink); max-width: 760px; line-height: 1.4; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; }

/* ---------- CTA band + lead form ---------- */
.cta-band {
    color: var(--white);
    background: radial-gradient(800px 420px at 92% 0, rgba(195, 71, 196, 0.42), transparent 60%), var(--grad-contact);
}
.cta-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta-band .lead { color: var(--tn-e8d8ef); }
.check-list { margin: 26px 0 30px; }
.check-list li { padding: 7px 0; padding-inline-start: 34px; position: relative; font-weight: 600; color: var(--white); }
.check-list li::before {
    content: "✓"; position: absolute; inset-inline-start: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); display: grid; place-items: center; font-size: 12px;
}
.cta-band__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band__meta { margin-top: 24px; display: grid; gap: 4px; font-size: 14px; color: var(--tn-e3d0ec); }
.cta-band__meta a { color: var(--white); font-weight: 700; }
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 34px; color: var(--tx); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); }
.lead-form h3 { font-size: 24px; color: var(--ink); }
.lead-form > p { margin: 6px 0 20px; }
.lead-form .field > span { color: var(--ink); }
.lead-form .field input, .lead-form .field select, .lead-form .field textarea { background: var(--bg); color: var(--ink); border-color: var(--line); }
.lead-form .field input::placeholder, .lead-form .field textarea::placeholder { color: var(--mu); opacity: 0.8; }
.lead-form select option { background: var(--bg); color: var(--ink); }
.lead-form .form-status { color: var(--mu); }
.lead-form .form-status--error { color: var(--bad); }
.lead-form .form-status--success { color: var(--ok); }

/* ---------- Illustration bar / chart sizes (no inline styles in the templates) ---------- */
.pc-9 { width: 9%; height: 9%; } .pc-14 { width: 14%; height: 14%; } .pc-30 { width: 30%; height: 30%; } .pc-35 { width: 35%; height: 35%; }
.pc-38 { width: 38%; height: 38%; } .pc-40 { width: 40%; height: 40%; } .pc-42 { width: 42%; height: 42%; } .pc-45 { width: 45%; height: 45%; }
.pc-48 { width: 48%; height: 48%; } .pc-50 { width: 50%; height: 50%; } .pc-52 { width: 52%; height: 52%; } .pc-55 { width: 55%; height: 55%; }
.pc-60 { width: 60%; height: 60%; } .pc-64 { width: 64%; height: 64%; } .pc-70 { width: 70%; height: 70%; } .pc-82 { width: 82%; height: 82%; }
.pc-88 { width: 88%; height: 88%; } .pc-90 { width: 90%; height: 90%; } .pc-100 { width: 100%; height: 100%; }
/* A bar in a column chart takes its height from the class and flexes its width; a progress bar takes its width and fills its height. */
.ui-bars i, .module__bars i { width: auto; }
.ui-bar u { height: 100%; }

/* Grid children may shrink below their content width (long words, inputs), so nothing is clipped on narrow screens. */
.page-hero__grid > *, .cta-band__grid > *, .faq > *, .case > *, .symptoms > *, .platforms > *, .model__layers > *, .lanes > *, .spotlight > *, .split > *, .shots-row > *, .profile > *, .contact-split > *, .post-layout > *, .post-grid > *, .case-cards > *, .steps > * { min-width: 0; }

/* ---------- Responsive (components) ---------- */
@media (max-width: 980px) {
    .page-hero { padding: calc(var(--header-h) + 40px) 0 84px; }
    .page-hero__grid, .cta-band__grid, .faq, .case { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .ui-win { transform: none; }
    .ui-float--1 { left: 6px; }
    .ui-float--2 { right: 6px; }
    .ui-float--3 { right: 6px; bottom: -22px; }
    .symptoms { grid-template-columns: 1fr; }
    .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module, .module--3 { grid-column: span 1; }
    .module--6 { grid-column: 1 / -1; }
    .modules .module:last-child { grid-column: span 2; }
    .platforms, .case-cards, .model__layers, .lanes, .spotlight, .split, .profile, .contact-split, .post-layout, .shots-row { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: 0; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-aside { position: static; }
    .profile__media { max-width: 360px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
    .steps::before { display: none; }
    .case__main, .case__side { padding: 28px; }
    .feedback-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .feedback-card__thumb { width: 100%; max-width: 280px; }
    .feedback-card__go { text-align: center; }
    .site-dialog__head, .site-dialog__filters { padding-inline-start: 20px; padding-inline-end: 20px; }
    .site-dialog__grid { padding: 16px 20px 24px; }
}
@media (max-width: 560px) {
    .modules { grid-template-columns: minmax(0, 1fr); }
    .module, .module--3, .modules .module:last-child { grid-column: auto; }
    .ba { grid-template-columns: 1fr; }
    .page-hero__stats b { font-size: 22px; }
    .page-hero__stats { gap: 18px 24px; }
    .ui-win__body { grid-template-columns: 1fr; min-height: 0; }
    .ui-win__side { display: flex; overflow-x: auto; gap: 4px; padding: 10px; border-inline-end: 0; border-bottom: 1px solid var(--tn-f0e4f5); }
    .ui-win__side .is-dim { display: none; }
    .ui-win__side button { white-space: nowrap; }
    .ui-board > div:nth-child(3) { display: none; }
    .ui-board { grid-template-columns: 1fr 1fr; }
    .ui-row { grid-template-columns: 1fr auto auto; }
    .ui-row .ui-bar { display: none; }
    .ui-kpis b { font-size: 15px; }
    .ui-kpis i { display: none; }
    .ui-float { display: none; }
    .whatsapp-float { width: 46px; height: 46px; right: 14px; bottom: 14px; opacity: 0.94; }
    .whatsapp-float svg { width: 23px; height: 23px; }
    .lead-form { padding: 24px; }
    .bridge { padding: 24px; }
    .trust-strip__list { gap: 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .ui-float { animation: none; }
    .ui-panel, .site-dialog[open] { animation: none; }
}

/* ---------- Component details ---------- */
.module__detail { margin-top: 10px; font-size: 14px; color: var(--mu); }
.is-featured .module__detail { color: rgba(255, 255, 255, 0.82); }
.chips--light li { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.case__image { width: 100%; border-radius: 14px; margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, 0.18); }
.case-card p { color: var(--tn-e3d0ec); font-size: 14.5px; margin: -6px 0 16px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.steps[data-steps="3"] { --steps: 3; }
.steps[data-steps="4"] { --steps: 4; }
.steps[data-steps="5"] { --steps: 5; }
.steps[data-steps="6"] { --steps: 6; }
.steps[data-steps="7"], .steps[data-steps="8"] { --steps: 4; row-gap: 36px; }
.steps[data-steps="7"]::before, .steps[data-steps="8"]::before { display: none; }
@media (max-width: 980px) { .steps, .steps[data-steps] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps[data-steps] { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Light variants (case showcase and feedback card on white / tint bands) ---------- */
.case--light { background: var(--card); border-color: var(--line); box-shadow: 0 24px 50px -34px rgba(52, 16, 71, 0.35); }
.case--light .tags li { background: var(--bg2); color: var(--link); }
.case--light .case__main h3, .case--light .case__main h3 a { color: var(--ink); }
.case--light .case__desc { color: var(--tx); }
.case--light .ba > div { background: var(--bg2); border-color: var(--line); }
.case--light .ba .is-after { background: linear-gradient(135deg, rgba(195, 71, 196, 0.12), rgba(131, 46, 141, 0.08)); border-color: rgba(162, 58, 167, 0.35); }
.case--light .ba h5 { color: var(--link); }
.case--light .ba ul { color: var(--tx); }
.case--light .ba li::before { color: var(--mu); }
.case--light .ba .is-after li::before { color: var(--link); }
.case--light .btn--light { background: var(--grad-cta); color: var(--white); }
.case--light .case__side { background: var(--grad-hero); color: var(--white); }
.case-card--light { background: var(--card); border-color: var(--line); }
.case-card--light:hover { background: var(--card); border-color: var(--link); box-shadow: 0 24px 50px -30px rgba(76, 25, 92, 0.45); }
.case-card--light .tags li { background: var(--bg2); color: var(--link); }
.case-card--light h3 { color: var(--ink); }
.case-card--light p { color: var(--tx); }
.case-card--light .case-card__link { color: var(--link); }
.feedback-card--light { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.feedback-card--light:hover { background: var(--card); border-color: var(--link); }
.feedback-card--light .feedback-card__meta small { color: var(--link); }
.feedback-card--light .feedback-card__meta strong { color: var(--ink); }
.feedback-card--light .feedback-card__meta > span { color: var(--mu); }
.feedback-card--light .feedback-card__go { background: var(--grad-cta); color: var(--white); }

/* ---------- Projects (web, mobile app, brand work) ---------- */
.filter-bar button span { margin-inline-start: 4px; opacity: 0.7; font-weight: 500; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project { min-width: 0; }
.project__open {
    display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: start; cursor: pointer;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.project__open:hover { transform: translateY(-4px); border-color: var(--link); box-shadow: 0 26px 50px -28px rgba(76, 25, 92, 0.5); }
.project__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg2); overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.project__open:hover .project__media img { transform: scale(1.04); }
.project__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(29, 8, 41, 0.78); color: var(--white); font-size: 12px; font-weight: 600; }
.project__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; flex: 1; }
.project__kind { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.project__kind svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project__title { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.project__text { font-size: 14.5px; color: var(--tx); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project__more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; color: var(--link); }

.site-dialog--gallery { width: min(1040px, calc(100vw - 32px)); }
.site-dialog--gallery .project__kind { margin-bottom: 6px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; background: var(--bg2); outline-offset: -3px; }
.gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 20px; }
.gallery img { max-width: 100%; max-height: min(62vh, 640px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(29, 8, 41, 0.6); }
.site-dialog__foot { padding: 16px 30px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@media (max-width: 980px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .projects { grid-template-columns: minmax(0, 1fr); } .site-dialog__foot { padding: 14px 20px 20px; } .gallery figure { padding: 12px; } }

.platform__logo { height: 36px; width: auto; margin-bottom: 14px; }
.platform__role { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); margin-bottom: 8px; }
.platform__link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 14.5px; color: var(--link); }
.platform__link:hover { color: var(--p7); }
.module--6 { grid-column: 1 / -1; }
.note-line { margin-top: 22px; max-width: 760px; font-size: 14.5px; color: var(--mu); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chips--center { justify-content: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.split__copy .btn { margin-top: 22px; }
.note-line--center { text-align: center; max-width: none; }
.note-line a { color: var(--link); font-weight: 700; }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fact-row li { padding: 8px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--tx); }
.fact-row b { color: var(--ink); }

.page-hero__lead + .page-hero__actions { margin-top: 30px; }
.page-hero__note { line-height: 1.7; }
.platforms-head + .modules, .platforms-head + .platforms { margin-top: 32px; }
.eyebrow + .steps { margin-top: 28px; }

/* ---------- Filter bar (chips that show / hide items by category; behaviour in general.js) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar button {
    padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
    color: var(--tx); font: 600 13.5px var(--font); cursor: pointer; transition: var(--ease);
}
.filter-bar button:hover { border-color: var(--link); color: var(--link); }
.filter-bar button[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--white); }
[data-item][hidden] { display: none !important; }

/* ---------- Section aids ---------- */
.section__more { margin-top: 20px; text-align: end; font-weight: 700; font-size: 14.5px; color: var(--o2); }
.section--light .section__more, .section:not(.section--dark) .section__more { color: var(--link); }
.section__more a:hover { color: var(--white); }
.section:not(.section--dark) .section__more a:hover { color: var(--p7); }
.empty-note { max-width: 640px; }
.section:not(.section--dark) .empty-note { color: var(--tx); }

/* Case-study pages: tighter rhythm, stronger bands */
.page-case-study .section { padding: 68px 0; }
.page-case-study .section-head { margin-bottom: 36px; }
.page-case-study .section-head + .flow-grid, .page-case-study .section-head + .modules { margin-top: 0; }
@media (max-width: 980px) { .page-case-study .section { padding: 52px 0; } }

/* Cards on a dark band: glass cards with light text (the global .on-dark h3 rule would otherwise hide titles on white cards) */
.on-dark .module:not(.is-featured), .on-dark .model__layer, .on-dark .model__hub, .on-dark .platform, .on-dark .agent {
    background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); box-shadow: none;
}
.on-dark .module:not(.is-featured) p, .on-dark .model__layer p, .on-dark .model__hub p, .on-dark .module__html, .on-dark .module__list li { color: var(--tn-dcc9e6); }
.on-dark .module__num, .on-dark .platform__role { color: var(--o2); }
.on-dark .module > svg { background: rgba(255, 255, 255, 0.14); color: var(--o2); }
.on-dark .tag:not(.tag--solid) { background: rgba(255, 255, 255, 0.14); border-color: transparent; color: var(--white); }
.on-dark .module:hover { box-shadow: none; }
.on-dark .model__here { color: var(--tn-dcc9e6); }
.on-dark .platform__link, .on-dark .case-card__link { color: var(--o2); }

/* "At a glance" card: record facts on the brand gradient */
.facts--card {
    margin: 0; padding: 28px 30px; gap: 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--grad); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -34px rgba(76, 25, 92, 0.7);
}
.facts--card > div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.facts--card > div:nth-child(-n+2) { border-top: 0; }
.facts--card > .facts-wide, .facts--card > .cs-facts-locations { grid-column: 1 / -1; }
.facts--card dt { color: var(--o2); }
.facts--card dd { color: var(--white); }
.facts--card .cs-location-label { color: var(--tn-f1e4f6); }
.facts--card .cs-location-pin { color: var(--o2); }

/* Timeline + duo (two sections side by side) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--grad); opacity: 0.35; }
.tl__step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; }
.tl__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--o4); font-weight: 800; font-size: 14px; color: var(--link); position: relative; z-index: 1; }
.tl__step h3 { font-size: 18px; margin-bottom: 4px; }
.tl__step p { font-size: 14.5px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.duo__col > .modules { grid-template-columns: minmax(0, 1fr); }
.duo__col > .modules { gap: 14px; }
.duo__col > .modules .module { grid-column: auto; padding: 22px 24px; }
.duo__col .module__num { margin-bottom: 4px; }
.duo__col .module h3 { font-size: 18px; }
.duo__col .module__html p:last-child { margin-bottom: 0; }
.duo__head { margin-bottom: 28px; }
.duo__lead { margin-bottom: 24px; }
.band__after { margin-top: 36px; }
.duo__head h2 { font-size: clamp(26px, 2.8vw, 34px); margin-top: 8px; }
@media (max-width: 980px) { .duo { grid-template-columns: minmax(0, 1fr); gap: 44px; } .facts--card { grid-template-columns: minmax(0, 1fr); } .facts--card > div:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, 0.22); } }

/* Case-study hero: compact */
.page-case-study .page-hero h1 { font-size: clamp(30px, 3.7vw, 46px); }
.page-case-study .page-hero { padding-bottom: 64px; }
.page-case-study .page-hero__lead { max-width: 620px; font-size: 17px; }

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body { font-family: var(--font-ar); letter-spacing: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5 { letter-spacing: 0; line-height: 1.3; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .flow__kind, html[dir="rtl"] .platform__role, html[dir="rtl"] .facts dt, html[dir="rtl"] .flow-card__caption { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] :is(.btn, .platform__link, .case-card__link, .text-link, .section__more a, .page-hero__index a, .demo-band a, .pager__btn, .cs-nav-btn) > span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .ui-float--1 { left: auto; right: -88px; }
html[dir="rtl"] .ui-float--2 { right: auto; left: -12px; }
html[dir="rtl"] .ui-float--3 { right: auto; left: -26px; }
html[dir="rtl"] .cs-flow li + li::before { content: "\2190"; }
html[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
@media (max-width: 640px) { html[dir="rtl"] .whatsapp-float { left: 14px; } }

html[dir="rtl"] .site-nav__caret { margin-inline-start: 4px; }
html[dir="rtl"] .gradient-text { background-position: right; }

.lang-switch { font-size: 13.5px; font-weight: 700; padding: 8px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); transition: var(--ease); white-space: nowrap; font-family: var(--font-ar); }
.lang-switch:hover { background: rgba(255, 255, 255, 0.14); }
.site-nav.is-scrolled .lang-switch, .site-nav--solid .lang-switch { color: var(--nav-fg); border-color: var(--line); }
.lang-switch--block { display: block; text-align: center; margin: 10px 0 0; padding: 13px 12px; font-size: 15px; }
.site-nav.is-scrolled .lang-switch--block { color: var(--nav-fg); border-color: var(--line); }
.site-nav__phone, .mobile-menu__phone, .site-footer__contact a[href^="tel:"] { direction: ltr; unicode-bidi: embed; }
.mobile-menu__phone, .site-footer__contact a[href^="tel:"] { display: inline-block; }
/* On small screens the language switch and phone live in the menu, so the bar keeps logo, CTA and the toggle. */
@media (max-width: 980px) { .site-nav__actions .lang-switch { display: none; } }
