/* ==========================================================================
   CoregenX AI Services page (ai-services.html)
   Light-first AI product page inside the normal site header and footer.
   Brand colours come from the logo: mint #4CDAA0, teal #359FAD, charcoal #373435.
   Font: Manrope (self-hosted, fonts/manrope-latin-var.woff2, preloaded) with a
   metric-matched Arial fallback so the swap doesn't shift the layout.
   Motion: transform/opacity only, paused while a section is off screen
   (js/ai-services.js), and switched off for visitors who ask for reduced motion.
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-var.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    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: "Manrope Fallback";
    src: local("Arial"), local("Helvetica"), local("Roboto");
    size-adjust: 101%;
    ascent-override: 105.5%;
    descent-override: 29.7%;
    line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
.ai,
.aiSticky {
    --ink: #14202a;
    --ink-2: #2b3843;
    --text: #4b5863;
    --muted: #66727a;
    --line: #e3ebeb;
    --soft: #f5faf9;
    --mint: #4cdaa0;
    --teal: #359fad;
    --teal-ink: #11727e;
    --dark: #0b1416;
    --grad: linear-gradient(135deg, #4cdaa0 0%, #359fad 100%);
    --grad-text: linear-gradient(100deg, #117a88 0%, #15958a 48%, #1caa79 100%);
    --grad-btn: linear-gradient(100deg, #0e8a69 0%, #0b7a80 52%, #0d6a8f 100%);
    --r-lg: 28px;
    --r: 22px;
    --shadow: 0 30px 60px -30px rgba(13, 60, 70, .32), 0 2px 6px rgba(13, 60, 70, .05);
    --shadow-sm: 0 12px 30px -18px rgba(13, 60, 70, .35);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ai {
    position: relative;
    display: block;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

:where(.ai) *,
:where(.ai) *::before,
:where(.ai) *::after {
    box-sizing: border-box;
}

:where(.ai) h1,
:where(.ai) h2,
:where(.ai) h3 {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    letter-spacing: -0.025em;
}

:where(.ai) h2 {
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.12;
    font-weight: 800;
}

:where(.ai) p {
    margin: 0;
}

:where(.ai) ul,
:where(.ai) ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

:where(.ai) img {
    max-width: 100%;
    height: auto;
}

.ai :focus-visible,
.aiSticky :focus-visible {
    outline: 3px solid rgba(53, 159, 173, .6);
    outline-offset: 3px;
}

.aiSprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.aiI {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aiI--fill {
    fill: currentColor;
    stroke: none;
}

.aiSr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.aiWrap {
    width: 100%;
    max-width: 1304px;
    margin: 0 auto;
    padding: 0 32px;
}

.aiSection {
    position: relative;
    padding: 60px 0;
    scroll-margin-top: 80px;
}

/* ---------- Shared text pieces ---------- */
.aiEyebrow {
    margin-bottom: 14px !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal-ink);
}

.aiEyebrow--mint {
    color: var(--mint);
}

.aiEyebrow--line {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aiEyebrow--line::after {
    content: "";
    width: 72px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.aiGradText {
    background-image: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.aiNowrap {
    white-space: nowrap;
}

.aiGradText--light {
    background-image: linear-gradient(100deg, #7af3c4 0%, #5fd0dc 100%);
}

.aiHead--center {
    max-width: 920px;
    margin: 0 auto 32px;
    text-align: center;
}

.aiHead__sub {
    margin-top: 16px !important;
    font-size: 18px;
    color: var(--muted);
}

/* ---------- Buttons ---------- */
.aiBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.aiBtn:hover {
    transform: translateY(-2px);
}

.aiBtn__arrow {
    width: 18px;
    height: 18px;
    transition: transform .3s var(--ease);
}

.aiBtn:hover .aiBtn__arrow,
.aiLink:hover .aiI {
    transform: translateX(4px);
}

.aiBtn--dark,
.aiBtn--dark:hover,
.aiBtn--dark:focus {
    color: #fff;
}

.aiBtn--dark {
    padding-left: 8px;
    background: var(--ink);
    box-shadow: 0 16px 32px -16px rgba(10, 30, 36, .6);
}

.aiBtn--dark:hover {
    background: #0a1419;
    box-shadow: 0 22px 40px -18px rgba(10, 30, 36, .7);
}

.aiBtn__orb {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad);
    color: #07343a;
}

.aiBtn__orb .aiI {
    width: 19px;
    height: 19px;
}

.aiBtn--light,
.aiBtn--light:hover,
.aiBtn--light:focus {
    color: var(--ink);
}

.aiBtn--light {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.aiBtn--light:hover {
    border-color: #c6e4dc;
    box-shadow: 0 18px 34px -18px rgba(13, 60, 70, .4);
}

.aiI--wa {
    width: 22px;
    height: 22px;
    color: #1fbf5b;
}

.aiBtn--outline,
.aiBtn--outline:focus {
    color: #fff;
}

.aiBtn--outline {
    background: rgba(76, 218, 160, .06);
    border: 1.5px solid rgba(76, 218, 160, .6);
}

.aiBtn--outline:hover {
    color: #06281f;
    background: var(--mint);
    border-color: var(--mint);
}

.aiBtn--wa,
.aiBtn--wa:hover,
.aiBtn--wa:focus {
    color: #fff;
}

.aiBtn--wa {
    background: linear-gradient(100deg, #0c8a72, #0b6f80);
    box-shadow: 0 14px 28px -16px rgba(11, 111, 128, .8);
}

.aiBtn--sm {
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
}

.aiLink,
.aiLink:focus {
    color: var(--ink);
}

.aiLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

.aiLink:hover {
    color: var(--teal-ink);
}

.aiLink .aiI {
    width: 18px;
    height: 18px;
    color: var(--teal-ink);
    transition: transform .3s var(--ease);
}

/* Spotlight that follows the cursor inside cards (desktop; position set by js/service-page.js) */
.ai [data-spot] {
    --mx: 50%;
    --my: 0%;
}

.ai [data-spot]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--mx) var(--my), rgba(76, 218, 160, .16), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.ai [data-spot]:hover::after {
    opacity: 1;
}

/* Scroll reveal (classes added by js/service-page.js only for content that starts below the screen) */
.ai .wdd-reveal {
    opacity: 0;
    transform: translateY(26px);
}

.ai .wdd-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0s);
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.aiHero {
    position: relative;
    padding: 24px 0 40px;
    background: linear-gradient(180deg, #f1faf7 0%, #fff 78%);
    isolation: isolate;
    overflow: hidden;
}

.aiHero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(620px 440px at 82% 24%, rgba(76, 218, 160, .2), transparent 70%),
        radial-gradient(520px 380px at 68% 92%, rgba(53, 159, 173, .14), transparent 70%),
        radial-gradient(460px 320px at 0% 0%, rgba(53, 159, 173, .1), transparent 70%);
}

.aiHero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(17, 114, 126, .16) 1px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 55% 70% at 76% 42%, #000 15%, transparent 72%);
    mask-image: radial-gradient(ellipse 55% 70% at 76% 42%, #000 15%, transparent 72%);
}

.aiHero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: 48px;
    align-items: center;
}

.aiHero__title {
    margin-bottom: 22px !important;
    font-size: clamp(40px, 4.75vw, 70px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.035em !important;
}

.aiHero__lead {
    max-width: 510px;
    margin-bottom: 34px !important;
    font-size: 19px;
    line-height: 1.6;
}

.aiHero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 46px;
}

.aiHero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
}

.aiHero__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink-2);
}

.aiHero__points .aiI {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dcefe9;
    color: var(--teal-ink);
    box-shadow: 0 8px 18px -12px rgba(13, 60, 70, .35);
}

/* Hero visual */
.aiHero__visual {
    --px: 0;
    --py: 0;
    position: relative;
    min-height: 560px;
}

.aiOrbit {
    position: absolute;
    left: 54%;
    top: 50%;
    width: 86%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.aiOrbit::before {
    content: "";
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 218, 160, .32), rgba(53, 159, 173, .1) 55%, transparent 72%);
}

.aiOrbit span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(53, 159, 173, .3);
}

.aiOrbit span+span {
    inset: 14%;
    border: 1px solid rgba(76, 218, 160, .28);
}

.aiOrbit span+span::before {
    content: "";
    position: absolute;
    top: 6%;
    left: 18%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 6px rgba(76, 218, 160, .18);
}

.aiChat {
    position: absolute;
    left: 5%;
    top: 26px;
    z-index: 2;
    width: min(390px, 74%);
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid #e4eeed;
    border-radius: 26px;
    box-shadow: 0 44px 80px -36px rgba(13, 60, 70, .42), 0 4px 14px rgba(13, 60, 70, .06);
    translate: calc(var(--px) * -6px) calc(var(--py) * -6px);
    transition: translate .6s var(--ease);
}

.aiChat__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #edf3f3;
}

.aiChat__avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
}

.aiChat__name {
    display: grid;
    line-height: 1.25;
}

.aiChat__name strong {
    font-size: 15px;
    color: var(--ink);
}

.aiChat__name small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #17905f;
}

.aiChat__name small i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

.aiChat__headIcon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border-radius: 11px;
    background: #f0f6f6;
    color: var(--teal-ink);
}

.aiChat__headIcon .aiI {
    width: 16px;
    height: 16px;
}

.aiChat__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 2px 14px;
}

.aiMsg {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.45;
}

.aiMsg--bot {
    align-self: flex-start;
    background: #f1f6f6;
    color: var(--ink-2);
    border-top-left-radius: 6px;
}

.aiMsg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, #defaee, #d9f0f4);
    color: #0d4a4c;
    border-top-right-radius: 6px;
}

.aiTyping {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    border-top-left-radius: 6px;
    background: #f1f6f6;
}

.aiTyping i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #86aeb0;
}

.aiChat__input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 6px 0 16px;
    border: 1px solid #e1ebeb;
    border-radius: 14px;
    font-size: 13.5px;
    color: #84929a;
}

.aiChat__send {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--grad);
    color: #fff;
}

.aiChat__send .aiI {
    width: 17px;
    height: 17px;
}

.aiFloat {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px 11px 11px;
    background: #fff;
    border: 1px solid #e4eeed;
    border-radius: 18px;
    box-shadow: 0 26px 50px -26px rgba(13, 60, 70, .42);
    line-height: 1.3;
    translate: calc(var(--px) * 12px) calc(var(--py) * 12px);
    transition: translate .6s var(--ease);
}

.aiFloat strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
}

.aiFloat small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.aiFloat__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
}

.aiFloat--lead {
    top: 0;
    right: 0;
}

.aiFloat--crm {
    top: 45%;
    right: -14px;
}

.aiFloat--crm .aiFloat__icon {
    background: linear-gradient(135deg, #5aa2f8, #2f6fe0);
}

.aiFloat--follow {
    right: 2%;
    bottom: -14px;
}

.aiFloat--follow .aiFloat__icon {
    background: linear-gradient(135deg, #fbbf4a, #f08c1a);
}

/* ==========================================================================
   2. Give AI a job
   ========================================================================== */
.aiJobs {
    padding: 40px 0 48px;
    background: linear-gradient(180deg, #fff 0%, #f4faf8 100%);
}

.aiJobs .aiHead--center {
    margin-bottom: 26px;
}

.aiJobs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.aiJob {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 1px 2px rgba(13, 60, 70, .04);
    isolation: isolate;
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
}

.aiJob:hover {
    transform: translateY(-6px);
    border-color: #cfe7e0;
    box-shadow: var(--shadow);
}

.aiTile {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 14px 26px -14px rgba(17, 114, 126, .8);
}

.aiTile .aiI {
    width: 24px;
    height: 24px;
}

.aiTile--mint {
    background: linear-gradient(135deg, #4cdaa0, #24a983);
}

.aiTile--teal {
    background: linear-gradient(135deg, #43c3cc, #26869b);
}

.aiTile--blue {
    background: linear-gradient(135deg, #63a6fa, #3a68dc);
}

.aiJob h3 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.aiJob>p {
    margin-bottom: 22px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--muted);
}

.aiMini,
.aiFlow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 262px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e6f0ee;
    border-radius: 18px;
    background: var(--soft);
}

/* Sales agent mini chat */
.aiMini__msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.aiMini__msg--bot {
    flex-direction: row-reverse;
}

.aiMini__av {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fde7d8;
    color: #b45320;
}

.aiMini__av .aiI {
    width: 16px;
    height: 16px;
}

.aiMini__av--bot {
    background: var(--grad);
    color: #fff;
}

.aiMini__bubble {
    padding: 9px 13px;
    border-radius: 14px;
    border-top-left-radius: 4px;
    background: #fff;
    border: 1px solid #e3eceb;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-2);
}

.aiMini__msg--bot .aiMini__bubble {
    border: 0;
    border-radius: 14px;
    border-top-right-radius: 4px;
    background: linear-gradient(135deg, #dcf8ec, #d6eef3);
    color: #0d4a4c;
}

.aiPipe {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.aiPipe li {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px 5px 7px;
    border-radius: 999px;
    border: 1px solid #d6ece5;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: #146a55;
    isolation: isolate;
    overflow: hidden;
}

.aiPipe li::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #d9f7ea;
    opacity: 1;
}

.aiPipe .aiI {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
    color: #12a06f;
}

/* Automation workflow */
.aiFlow {
    position: relative;
    gap: 8px;
    padding: 14px;
}

.aiFlow::before {
    content: "";
    position: absolute;
    left: 39px;
    top: 34px;
    bottom: 34px;
    border-left: 2px dashed #cfe2df;
}

.aiFlow li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px 7px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5eeed;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    isolation: isolate;
}

.aiFlow li::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 0 0 2px rgba(76, 218, 160, .55), 0 10px 24px -12px rgba(17, 114, 126, .5);
    opacity: 0;
}

.aiFlow__ic {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.aiFlow__ic .aiI {
    width: 16px;
    height: 16px;
}

.aiFlow__ic--a { background: #ede9fe; color: #6d4ad8; }
.aiFlow__ic--b { background: #dbeafe; color: #2563eb; }
.aiFlow__ic--c { background: #d9f7ea; color: #0f8a5f; }
.aiFlow__ic--d { background: #ffedd5; color: #c2560c; }
.aiFlow__ic--e { background: #e2e8f0; color: #1e293b; }

/* Knowledge assistant */
.aiDocs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.aiDoc {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 2px 6px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #e3ecec;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
    color: var(--c, #475569);
    overflow: hidden;
}

.aiDoc::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 14px;
    height: 7px;
    border-radius: 2px;
    background: currentColor;
    opacity: .85;
    transform: translateX(-50%);
}

.aiDoc--pdf { --c: #dc2626; }
.aiDoc--doc { --c: #2563eb; }
.aiDoc--sop { --c: #0f8a7c; }
.aiDoc--pol { --c: #c2560c; }
.aiDoc--db { --c: #7c3aed; }

.aiAsk {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e1ebeb;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2);
}

.aiAsk .aiI {
    width: 16px;
    height: 16px;
    color: var(--teal-ink);
}

.aiAsk__text {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aiAnswer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e3faef, #e1f3f6);
    font-size: 12.5px;
    line-height: 1.4;
    color: #0d4a4c;
}

.aiAnswer .aiI {
    width: 18px;
    height: 18px;
    color: #109568;
}

.aiAnswer strong {
    font-weight: 800;
}

.aiTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.aiTags li {
    padding: 5px 12px;
    border-radius: 999px;
    background: #f0f5f6;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    color: #48585f;
}

/* ==========================================================================
   Dark sections (integrations, why)
   ========================================================================== */
.aiDark {
    color: #b3c4c7;
    background:
        radial-gradient(900px 520px at 78% 50%, rgba(53, 159, 173, .2), transparent 70%),
        radial-gradient(640px 420px at 6% 100%, rgba(76, 218, 160, .09), transparent 70%),
        var(--dark);
    isolation: isolate;
    overflow: hidden;
}

.aiDark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 50%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 80% at 60% 50%, #000 20%, transparent 80%);
}

.aiDark h2,
.aiDark h3 {
    color: #fff;
}

/* ==========================================================================
   3. AI + existing software
   ========================================================================== */
.aiConnect__grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
}

.aiConnect__copy>p:not(.aiEyebrow) {
    max-width: 470px;
    margin: 18px 0 24px;
    font-size: 17px;
    color: #b7c7ca;
}

.aiTicks {
    margin-bottom: 34px !important;
}

.aiTicks li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15.5px;
    color: #dce8e9;
}

.aiTicks .aiI {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(76, 218, 160, .14);
    color: var(--mint);
    stroke-width: 2.4;
}

/* Hub diagram: positions are % of a 5:4 box, so lines and nodes scale together */
.aiHub {
    position: relative;
    width: 100%;
    max-width: 660px;
    aspect-ratio: 5 / 4;
    margin-left: auto;
}

.aiHub__lines i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--l);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(76, 218, 160, .6), rgba(53, 159, 173, .14));
    transform: rotate(var(--a));
    transform-origin: 0 50%;
    overflow: hidden;
}

.aiHub__lines i::after {
    content: "";
    position: absolute;
    inset: -3px 0;
    background: radial-gradient(circle at 12px 50%, #a6f7d7 0 3px, rgba(76, 218, 160, .5) 4px, transparent 12px) no-repeat;
    transform: translateX(100%);
}

.aiHub__core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 24%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.aiHub__ring {
    position: absolute;
    inset: -6%;
    border-radius: 50%;
    border: 1.5px solid rgba(76, 218, 160, .45);
}

.aiHub__ring--2 {
    inset: -22%;
    border-color: rgba(76, 218, 160, .2);
}

.aiHub__logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0%, #e8f8f2 70%, #d3f1e6 100%);
    box-shadow: 0 0 0 10px rgba(76, 218, 160, .1), 0 0 70px rgba(76, 218, 160, .45);
}

.aiHub__logo img {
    width: 54%;
    height: auto;
}

.aiHub__label {
    position: absolute;
    top: calc(100% + 26px);
    left: 50%;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(76, 218, 160, .12);
    border: 1px solid rgba(76, 218, 160, .3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    color: #8ff0c9;
    transform: translateX(-50%);
}

.aiNode {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 8px 14px 8px 9px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
    line-height: 1.25;
    transform: translate(-50%, -50%);
}

.aiNode strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f1b1f;
}

.aiNode .aiLogo {
    width: 22px;
    height: 22px;
}

/* RAG pipeline */
.aiRag {
    position: relative;
    margin-top: 44px;
    padding: 24px 28px 26px;
    border-radius: 24px;
    background: radial-gradient(600px 220px at 82% 0%, rgba(53, 159, 173, .24), transparent 70%), #0d181b;
    color: #b6c6c9;
    overflow: hidden;
}

.aiRag__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin-bottom: 20px !important;
}

.aiRag__title strong {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.aiRag__title span {
    font-size: 14px;
    color: #8fb3b5;
}

.aiRag__flow {
    position: relative;
}

.aiRag__line {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 22px;
    height: 2px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(76, 218, 160, .55), rgba(53, 159, 173, .25));
}

.aiRag__line i {
    position: absolute;
    inset: -4px 0;
    background: radial-gradient(circle at 10px 50%, #a6f7d7 0 3px, rgba(76, 218, 160, .5) 4px, transparent 12px) no-repeat;
    transform: translateX(-10%);
}

.aiRag__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.aiRag__steps li {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 2px;
    text-align: center;
}

.aiRag__ic {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: #132a2f;
    border: 1px solid rgba(76, 218, 160, .35);
    color: var(--mint);
    box-shadow: 0 0 0 6px #0d181b;
}

.aiRag__ic::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 2px var(--mint), 0 0 22px rgba(76, 218, 160, .55);
    opacity: 0;
}

.aiRag__ic .aiI {
    width: 20px;
    height: 20px;
}

.aiRag__steps strong {
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
}

.aiRag__steps small {
    font-size: 12px;
    line-height: 1.4;
    color: #8fa9ac;
}

/* Integration chips (dark section) */
.aiWorks__label {
    margin: 4px 0 10px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7fa6a8;
}

.aiWorks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 500px;
    margin-bottom: 30px !important;
}

.aiWorks li {
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    color: #d3e3e5;
}

/* ==========================================================================
   4. AI software development: dark bento cards + logo marquee (light band)
   ========================================================================== */
.aiLab {
    background: linear-gradient(180deg, #f2f8f6 0%, #fff 100%);
}

.aiBento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.aiBento__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 22px;
    background: radial-gradient(420px 220px at 100% 0%, rgba(53, 159, 173, .2), transparent 70%), #0d181b;
    border: 1px solid rgba(76, 218, 160, .14);
    color: #b3c4c7;
    isolation: isolate;
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}

.aiBento__card:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 218, 160, .4);
    box-shadow: 0 30px 60px -30px rgba(8, 40, 44, .6);
}

.aiBento__card--rag { grid-column: span 7; }
.aiBento__card--agent { grid-column: span 5; }
.aiBento__card--llm,
.aiBento__card--doc,
.aiBento__card--voice { grid-column: span 4; }

.aiBento__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.aiBento__ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(76, 218, 160, .12);
    border: 1px solid rgba(76, 218, 160, .3);
    color: var(--mint);
}

.aiBento__ic .aiI {
    width: 20px;
    height: 20px;
}

.aiBento h3 {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.aiBento__head p {
    font-size: 14px;
    line-height: 1.5;
    color: #9fb4b7;
}

.aiBento .aiRag__flow {
    margin-top: auto;
}

.aiBento .aiRag__steps {
    gap: 8px;
}

.aiBento .aiRag__ic {
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 6px #0d181b;
}

.aiBento .aiRag__steps strong {
    font-size: 13px;
}

.aiBento .aiRag__steps small {
    font-size: 11.5px;
}

/* RAG answer preview */
.aiRagQA {
    display: grid;
    gap: 8px;
}

.aiRagQA p {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.aiRagQA__q {
    background: rgba(255, 255, 255, .06);
    color: #e6f0f1;
}

.aiRagQA__q .aiI {
    width: 15px;
    height: 15px;
    color: #7fc8ff;
}

.aiRagQA__a {
    justify-content: space-between;
    background: rgba(76, 218, 160, .1);
    border: 1px solid rgba(76, 218, 160, .25);
    color: #dff7ec;
}

.aiRagQA__a em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    color: var(--mint);
}

.aiRagQA__a .aiI {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
}

/* Agent log */
.aiLog {
    margin-top: auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: #071012;
    border: 1px solid rgba(255, 255, 255, .06);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.95;
    color: #cfe0e2;
}

.aiLog p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aiLog b {
    margin-right: 8px;
    font-weight: 600;
    color: #8ff0c9;
}

.aiLog em {
    font-style: normal;
    color: #7fc8ff;
}

.aiLog__ok {
    color: #8ff0c9;
}

/* Model chips */
.aiModels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.aiModels li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    font-weight: 700;
    color: #e6f0f1;
}

.aiModels .aiLogo {
    width: 18px;
    height: 18px;
}

.aiModels__name {
    font-weight: 800;
    color: #fff;
}

/* Document AI */
.aiDocx {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.aiDocx__page {
    position: relative;
    display: grid;
    align-content: start;
    gap: 7px;
    flex: none;
    width: 84px;
    height: 106px;
    padding: 12px 10px;
    border-radius: 8px;
    background: #f2f6f7;
    overflow: hidden;
}

.aiDocx__page i {
    height: 6px;
    border-radius: 3px;
    background: #cdd8db;
}

.aiDocx__page i:nth-child(2) { width: 70%; }
.aiDocx__page i:nth-child(4) { width: 82%; }
.aiDocx__page i:nth-child(5) { width: 55%; }

.aiDocx__scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 18px;
    background: linear-gradient(180deg, transparent, rgba(76, 218, 160, .55), transparent);
}

.aiDocx__fields {
    display: grid;
    flex: 1;
    gap: 6px;
}

.aiDocx__fields li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-size: 12.5px;
    font-weight: 600;
    color: #dce8e9;
}

.aiDocx__fields li::after {
    content: "\2713";
    font-weight: 800;
    color: var(--mint);
}

/* Voice */
.aiVoice {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.aiVoice__bars {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.aiVoice__bars i {
    flex: 1;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(180deg, #4cdaa0, #359fad);
    transform: scaleY(.35);
}

.aiVoice__bars i:nth-child(3n) { transform: scaleY(.7); }
.aiVoice__bars i:nth-child(4n) { transform: scaleY(.5); }

.aiVoice p {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    font-size: 13px;
    color: #e6f0f1;
}

/* Logo marquee */
.aiLogo {
    flex: none;
    width: 20px;
    height: 20px;
    fill: var(--c, currentColor);
}

.aiStackStrip {
    margin-top: 30px;
    text-align: center;
}

.aiStackStrip__label {
    margin-bottom: 14px !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.aiMarquee {
    display: grid;
    gap: 10px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.aiMarquee__row {
    overflow: hidden;
}

.aiMarquee__track {
    display: flex;
    width: max-content;
}

.aiMarquee__track ul {
    display: flex;
    gap: 10px;
    padding-right: 10px;
}

.aiMarquee li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: #33424b;
}

.aiMarquee .aiLogo {
    fill: #3a4852;
    transition: fill .3s ease;
}

.aiMarquee li:hover .aiLogo {
    fill: var(--c);
}

.aiMarquee__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
}

.aiStackStrip__note {
    margin-top: 12px !important;
    font-size: 11.5px;
    color: #8a979e;
}

.aiLab__cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

/* ==========================================================================
   6. AI by industry: interactive playbook (tabs in js/ai-services.js)
   ========================================================================== */
.aiPlay {
    background: linear-gradient(180deg, #fff 0%, #f0f9f5 100%);
}

.aiPlay__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.aiPlay__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    overflow: hidden;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.aiPlay__tab .aiI {
    width: 18px;
    height: 18px;
    color: var(--teal-ink);
}

.aiPlay__tab:hover {
    border-color: #bfe3d7;
}

.aiPlay__tab.is-active {
    background: var(--ind, var(--ink));
    border-color: var(--ind, var(--ink));
    color: #fff;
    box-shadow: 0 14px 28px -16px rgba(10, 30, 36, .6);
}

.aiPlay__tab.is-active .aiI {
    color: #fff;
}

.aiPlay__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, .8);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.ai-tabs-ready .aiPlay__panel:not(.is-active) {
    display: none;
}

.aiPlay__panel {
    --ind: var(--ink);
    --ind-soft: #f2f6f7;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--ind-soft) 0%, #fff 58%);
    border: 1px solid var(--line);
    border-top: 4px solid var(--ind);
    box-shadow: var(--shadow);
}

.aiPlay__panel+.aiPlay__panel {
    margin-top: 16px;
}

.ai-tabs-ready .aiPlay__panel+.aiPlay__panel {
    margin-top: 0;
}

.aiPlay__copy {
    padding: 14px 10px 10px 14px;
}

.aiPlay__kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ind);
}

.aiPlay__kicker .aiI {
    width: 18px;
    height: 18px;
}

.aiPlay__copy h3 {
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.aiPlay__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink-2);
}

.aiPlay__list .aiI {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--ind);
    color: #fff;
    stroke-width: 2.8;
}

.aiPlay__stepsTitle {
    margin: 16px 0 8px !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.aiPlay__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.aiPlay__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink-2);
}

.aiPlay__steps span {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ind-soft);
    border: 1.5px solid var(--ind);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ind);
}

.aiPlay__copy .aiBtn {
    margin-top: 18px;
}

/* Photo with the AI conversation on top */
.aiPlay__visual {
    position: relative;
    margin: 0;
    min-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background: #0d181b;
    isolation: isolate;
}

.aiPlay__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.aiPlay__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 18, 20, .15) 0%, rgba(8, 18, 20, .05) 35%, rgba(8, 18, 20, .78) 100%);
}

.aiPlay__agents {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aiPlay__agents li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5);
}

.aiPlay__agents i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

.aiPlay__chat {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aiPlay__msg {
    max-width: 86%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
}

.aiPlay__msg--user {
    align-self: flex-end;
    background: #fff;
    color: var(--ink);
    border-bottom-right-radius: 4px;
}

.aiPlay__msg--bot {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    align-self: flex-start;
    background: rgba(13, 24, 27, .92);
    border: 1px solid rgba(76, 218, 160, .3);
    color: #e6f0f1;
    border-bottom-left-radius: 4px;
}

.aiPlay__botIc {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--grad);
    color: #06343a;
}

.aiPlay__botIc .aiI {
    width: 14px;
    height: 14px;
}

.aiPlay__done {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--ind);
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
}

.aiPlay__done .aiI {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.aiPlay__outcome {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px !important;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ind);
}

.aiPlay__outcome .aiI {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   7. Why CoregenX
   ========================================================================== */
.aiWhy {
    padding: 56px 0 60px;
}

.aiWhy .aiHead--center {
    margin-bottom: 32px;
}

.aiWhy__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aiWhy__grid li {
    padding: 6px 30px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.aiWhy__grid li:first-child {
    border-left: 0;
    padding-left: 0;
}

.aiWhy__ic {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 218, 160, .24), rgba(76, 218, 160, .05) 70%);
    box-shadow: inset 0 0 0 1px rgba(76, 218, 160, .35);
    color: var(--mint);
    transition: transform .4s var(--ease), box-shadow .4s ease;
}

.aiWhy__ic .aiI {
    width: 25px;
    height: 25px;
}

.aiWhy__grid li:hover .aiWhy__ic {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(76, 218, 160, .7), 0 0 30px rgba(76, 218, 160, .3);
}

.aiWhy h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.aiWhy__grid p {
    font-size: 15px;
    line-height: 1.6;
    color: #a9bbbe;
}

/* ==========================================================================
   6. FAQ
   ========================================================================== */
.aiFaq {
    background: linear-gradient(180deg, #fff 0%, #f5faf9 100%);
}

.aiFaq__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.aiFaq__list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.aiQ {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.aiQ[open] {
    border-color: #bfe3d7;
    box-shadow: var(--shadow-sm);
}

.aiQ summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 18px 22px;
    cursor: pointer;
    list-style: none;
    border-radius: 16px;
}

.aiQ summary::-webkit-details-marker {
    display: none;
}

.aiQ summary h3 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.aiQ__icon {
    position: relative;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef5f4;
    transition: background-color .3s ease, transform .35s var(--ease);
}

.aiQ__icon::before,
.aiQ__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transform: translate(-50%, -50%);
}

.aiQ__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.aiQ[open] .aiQ__icon {
    background: var(--grad);
    transform: rotate(45deg);
}

.aiQ p {
    padding: 0 22px 20px;
    font-size: 15.5px;
    line-height: 1.65;
}

.aiQ p a,
.aiQ p a:hover,
.aiQ p a:focus {
    color: var(--teal-ink);
}

.aiQ p a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Smooth open/close where the browser supports animating to height: auto */
@supports (interpolate-size: allow-keywords) {
    .aiFaq__list {
        interpolate-size: allow-keywords;
    }

    .aiQ::details-content {
        height: 0;
        overflow: clip;
        transition: height .35s var(--ease), content-visibility .35s allow-discrete;
    }

    .aiQ[open]::details-content {
        height: auto;
    }
}

.aiAsk2 {
    position: sticky;
    top: 112px;
    padding: 34px 32px;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, #eefbf5 0%, #e9f5f8 100%);
    border: 1px solid #d8eee7;
}

.aiAsk2 h3 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.aiAsk2>p:not(.aiEyebrow) {
    font-size: 15.5px;
}

.aiAsk2__chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 22px 0;
}

.aiAsk2__chat .aiMsg--bot {
    background: #fff;
}

.aiAsk2__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================================
   7. AI consultation + form
   ========================================================================== */
.aiCta {
    background: linear-gradient(180deg, #f5faf9 0%, #fff 100%);
    isolation: isolate;
    overflow: hidden;
}

.aiCta__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(520px 400px at 44% 46%, rgba(90, 162, 248, .1), transparent 70%),
        radial-gradient(560px 420px at 0% 100%, rgba(76, 218, 160, .14), transparent 70%),
        radial-gradient(500px 360px at 100% 0%, rgba(53, 159, 173, .1), transparent 70%);
}

.aiCta__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 40px;
    align-items: center;
}

.aiCta h2 {
    font-size: clamp(28px, 2.4vw, 34px);
    line-height: 1.1;
}

.aiCta__lead {
    max-width: 520px;
    margin: 20px 0 26px !important;
    font-size: 17px;
}

.aiCaps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px !important;
}

.aiCaps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px 11px 11px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px -18px rgba(13, 60, 70, .4);
    line-height: 1.25;
}

.aiCaps strong {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
}

.aiCaps small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.aiCaps__ic {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.aiCaps__ic .aiI {
    width: 18px;
    height: 18px;
}

.aiCaps__ic--mint { background: #d9f7ea; color: #0f8a5f; }
.aiCaps__ic--violet { background: #ece8ff; color: #5b45d6; }
.aiCaps__ic--blue { background: #e0ecff; color: #2563eb; }

.aiWaCard,
.aiWaCard:hover,
.aiWaCard:focus {
    color: var(--ink);
}

.aiWaCard {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 470px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eefaf3;
    border: 1px solid #d2eedf;
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}

.aiWaCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -20px rgba(15, 110, 80, .5);
}

.aiWaCard strong {
    display: block;
    font-size: 15.5px;
    line-height: 1.35;
}

.aiWaCard small {
    display: block;
    font-size: 14px;
    color: var(--muted);
}

.aiWaCard__ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .8);
}

.aiWaCard__ic .aiI {
    width: 26px;
    height: 26px;
}

.aiWaCard__go {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border-radius: 50%;
    background: #fff;
    color: #0f8a5f;
}

/* Form card */
.aiFormCard {
    padding: 34px 28px 26px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid #e2ebeb;
    box-shadow: 0 44px 90px -44px rgba(13, 60, 70, .38);
}

.aiFormCard__title {
    margin-bottom: 8px !important;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.aiFormCard__sub {
    margin-bottom: 22px !important;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

.aiForm {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px 12px;
}

.aiForm>* {
    grid-column: 1 / -1;
}

.aiForm>.aiField {
    grid-column: span 6;
}

.aiForm>.aiField--w5 {
    grid-column: span 5;
}

.aiForm>.aiField--w7 {
    grid-column: span 7;
}

.aiForm>.aiField--area {
    grid-column: 1 / -1;
}

.aiField {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
    border: 1px solid #dce6e6;
    border-radius: 14px;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.aiField:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(53, 159, 173, .15);
}

.aiField>.aiI {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 19px;
    height: 19px;
    margin-top: -9.5px;
    color: #7a8990;
    pointer-events: none;
    transition: color .25s ease;
}

.aiField:focus-within>.aiI {
    color: var(--teal-ink);
}

.aiForm .aiField input,
.aiForm .aiField select,
.aiForm .aiField textarea {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 16px 0 46px;
    border: 0;
    border-radius: 14px;
    outline: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
}

.aiForm .aiField input::placeholder,
.aiForm .aiField textarea::placeholder {
    color: #7f8c92;
    opacity: 1;
}

.aiForm .aiField select {
    padding-right: 42px;
    cursor: pointer;
    text-overflow: ellipsis;
}

.aiForm .aiField select:invalid {
    color: #7f8c92;
}

.aiForm .aiField select option {
    color: var(--ink);
}

.aiField__chev {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: #66757c;
    pointer-events: none;
}

.aiForm .aiField--phone .aiField__code {
    flex: none;
    width: 94px;
    padding: 0 20px 0 44px;
    border-right: 1px solid #e3ecec;
    border-radius: 14px 0 0 14px;
    font-weight: 700;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366757c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
}

.aiForm .aiField--phone input {
    padding-left: 14px;
}

.aiField--area {
    grid-column: 1 / -1;
    height: auto;
    align-items: stretch;
}

.aiField--area>.aiI {
    top: 17px;
    margin-top: 0;
}

.aiForm .aiField--area textarea {
    height: 116px;
    min-height: 96px;
    padding: 15px 16px 28px 46px;
    resize: vertical;
}

.aiField__count {
    position: absolute;
    right: 14px;
    bottom: 8px;
    font-size: 12px;
    color: #84929a;
    pointer-events: none;
}

/* The reCAPTCHA holder takes no grid cell; the legal line under the button replaces its badge */
.aiForm #recaptcha-holder {
    position: absolute;
    width: 0;
    height: 0;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.aiSubmit {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 60px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    background: var(--grad-btn);
    color: #fff;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 20px 38px -18px rgba(12, 123, 128, .75);
    transition: transform .3s var(--ease), box-shadow .3s ease, opacity .25s ease;
}

.aiSubmit::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: translateX(-120%) skewX(-20deg);
    transition: transform .8s var(--ease);
}

.aiSubmit:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 44px -20px rgba(12, 123, 128, .8);
}

.aiSubmit:hover::after {
    transform: translateX(320%) skewX(-20deg);
}

.aiSubmit .aiI {
    width: 20px;
    height: 20px;
    transition: transform .3s var(--ease);
}

.aiSubmit:hover .aiI {
    transform: translateX(4px);
}

.aiSubmit:disabled {
    opacity: .75;
    cursor: progress;
}

.aiForm__legal {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
    color: var(--muted);
}

.aiForm__legal .aiI {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: #12a06f;
}

.aiForm__legal a,
.aiForm__legal a:hover,
.aiForm__legal a:focus {
    color: var(--ink-2);
    text-decoration: underline;
}

/* ==========================================================================
   Mobile quick-contact bar (outside <main>; toggled by js/service-page.js)
   ========================================================================== */
.aiSticky {
    display: none;
    font-family: var(--font);
}

/* ==========================================================================
   Motion (transform/opacity only). Paused while a section is off screen
   (.ai-io + .is-live, set by js/ai-services.js); none for reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

    .ai-io .ai [data-live]:not(.is-live) *,
    .ai-io .ai [data-live]:not(.is-live) *::before,
    .ai-io .ai [data-live]:not(.is-live) *::after {
        animation-play-state: paused !important;
    }

    /* Hero: the conversation plays once, then the status cards pop in and float */
    .aiMsg,
    .aiTyping {
        animation: aiPop .5s var(--ease) both;
        animation-delay: calc(.3s + var(--i) * .55s);
    }

    .aiAsk2 .aiMsg {
        animation: none;
    }

    .aiTyping i {
        animation: aiBlink 1.2s ease-in-out infinite;
    }

    .aiTyping i:nth-child(2) { animation-delay: .15s; }
    .aiTyping i:nth-child(3) { animation-delay: .3s; }

    .aiFloat {
        --d: calc(var(--i) * .55s - 1.1s);
        animation: aiPop .6s var(--ease) both, aiBob 6s ease-in-out infinite;
        animation-delay: var(--d), calc(var(--d) + .6s);
    }

    .aiOrbit span:first-child {
        animation: aiSpin 70s linear infinite;
    }

    .aiOrbit span+span {
        animation: aiSpin 40s linear infinite reverse;
    }

    .aiOrbit::before {
        animation: aiBreathe 7s ease-in-out infinite;
    }

    /* Give AI a job */
    .aiPipe li::before {
        animation: aiPipe 6s ease-in-out infinite;
        opacity: 0;
    }

    .aiPipe li:nth-child(2)::before { animation-delay: .7s; }
    .aiPipe li:nth-child(3)::before { animation-delay: 1.4s; }

    .aiFlow li::after {
        animation: aiFlowStep 5s ease-in-out infinite;
        animation-delay: calc(var(--s) * 1s);
    }

    .aiAsk__text {
        animation: aiType 7s steps(36, end) infinite;
    }

    .aiJob .aiAnswer {
        animation: aiAnswer 7s ease infinite;
    }

    /* Hub: data pulses travel along the lines, the core breathes, nodes bob */
    .aiHub__lines i::after {
        animation: aiTravel var(--t) linear infinite;
    }

    .aiHub__lines i:nth-child(2n)::after {
        animation-direction: reverse;
    }

    .aiHub__ring {
        animation: aiPulse 3.2s ease-out infinite;
    }

    .aiHub__ring--2 {
        animation-delay: 1.6s;
    }

    .aiNode {
        animation: aiBobT 6s ease-in-out infinite;
    }

    .aiNode:nth-child(2) { animation-delay: -1s; }
    .aiNode:nth-child(3) { animation-delay: -2s; }
    .aiNode:nth-child(4) { animation-delay: -3s; }
    .aiNode:nth-child(5) { animation-delay: -4s; }
    .aiNode:nth-child(6) { animation-delay: -5s; }

    .aiRag__line i {
        animation: aiTravel 4.2s linear infinite;
    }

    .aiRag__ic::after {
        animation: aiFlowStep 4.2s ease-in-out infinite;
        animation-delay: calc(var(--s) * .7s);
    }

    /* AI software bento */
    .aiRagQA__a {
        animation: aiPop .5s var(--ease) both;
        animation-delay: 1.2s;
    }

    .aiLog p {
        animation: aiLogLine .7s steps(30, end) both;
        animation-delay: calc(.4s + var(--l) * .75s);
    }

    .aiDocx__scan {
        animation: aiScan 2.6s ease-in-out infinite;
    }

    .aiDocx__fields li {
        animation: aiPop .5s var(--ease) both;
        animation-delay: calc(.6s + var(--f) * .45s);
    }

    .aiVoice__bars i {
        animation: aiEq 1.1s ease-in-out infinite alternate;
    }

    .aiVoice__bars i:nth-child(2n) { animation-delay: -.3s; }
    .aiVoice__bars i:nth-child(3n) { animation-delay: -.6s; }
    .aiVoice__bars i:nth-child(5n) { animation-delay: -.15s; }

    .aiMarquee__track {
        animation: aiMarq 55s linear infinite;
    }

    .aiMarquee__row--rev .aiMarquee__track {
        animation-duration: 62s;
        animation-direction: reverse;
    }

    .aiMarquee:hover .aiMarquee__track {
        animation-play-state: paused;
    }

    .aiPlay__panel.is-active .aiPlay__steps li {
        animation: aiPop .45s var(--ease) both;
        animation-delay: calc(.1s + var(--s) * .1s);
    }

    .aiPlay__panel.is-active .aiPlay__msg--user {
        animation: aiPop .5s var(--ease) both;
        animation-delay: .25s;
    }

    .aiPlay__panel.is-active .aiPlay__msg--bot {
        animation: aiPop .5s var(--ease) both;
        animation-delay: 1s;
    }

    .aiPlay__panel.is-active .aiPlay__done {
        animation: aiPop .5s var(--ease) both;
        animation-delay: 1.8s;
    }

    .aiPlay__panel.is-active .aiPlay__visual img {
        animation: aiZoom 6s ease-out both;
    }

    .ai-tabs-auto .aiPlay__tab.is-active .aiPlay__bar {
        animation: aiTabBar 6s linear forwards;
    }

    .aiNode:nth-child(7) { animation-delay: -1.5s; }
    .aiNode:nth-child(8) { animation-delay: -2.5s; }
    .aiNode:nth-child(9) { animation-delay: -3.5s; }
    .aiNode:nth-child(10) { animation-delay: -4.5s; }

}

@keyframes aiPop {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes aiBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* For elements already centred with transform: animate the separate translate property */
@keyframes aiBobT {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes aiBlink {
    0%, 70%, 100% { opacity: .35; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}

@keyframes aiSpin {
    to { transform: rotate(360deg); }
}

@keyframes aiBreathe {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes aiPipe {
    0%, 6% { opacity: 0; }
    14%, 82% { opacity: 1; }
    92%, 100% { opacity: 0; }
}

@keyframes aiFlowStep {
    0%, 100% { opacity: 0; }
    6%, 18% { opacity: 1; }
    26% { opacity: 0; }
}

@keyframes aiType {
    0% { clip-path: inset(0 100% 0 0); }
    36%, 82% { clip-path: inset(0 0 0 0); }
    96%, 100% { clip-path: inset(0 100% 0 0); }
}

@keyframes aiAnswer {
    0%, 38% { opacity: 0; transform: translateY(8px); }
    44%, 82% { opacity: 1; transform: none; }
    92%, 100% { opacity: 0; transform: translateY(8px); }
}

@keyframes aiTravel {
    from { transform: translateX(-12%); }
    to { transform: translateX(100%); }
}

@keyframes aiPulse {
    0% { transform: scale(.92); opacity: .9; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes aiLogLine {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes aiScan {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(88px); }
}

@keyframes aiEq {
    from { transform: scaleY(.25); }
    to { transform: scaleY(1); }
}

@keyframes aiMarq {
    to { transform: translateX(-50%); }
}

@keyframes aiZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@keyframes aiTabBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes aiCore {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 8px)); }
}

@keyframes aiDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
    .aiMarquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .aiMarquee__track {
        width: auto;
        justify-content: center;
    }

    .aiMarquee__track ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .aiMarquee__track ul[aria-hidden] {
        display: none;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .aiSection {
        padding: 56px 0;
    }

    .aiHero__visual {
        min-height: 520px;
    }

    .aiChat {
        width: min(360px, 80%);
        left: 0;
    }

    .aiFloat--crm {
        right: -6px;
    }

    .aiConnect__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 36px;
    }

    .aiNode {
        min-width: 0;
        padding: 8px 12px 8px 8px;
    }

    .aiWhy__grid li {
        padding: 6px 22px;
    }

    .aiBento__card--rag { grid-column: span 12; }
    .aiBento__card--agent,
    .aiBento__card--llm,
    .aiBento__card--doc,
    .aiBento__card--voice { grid-column: span 6; }

    .aiPlay__copy h3 {
        font-size: 21px;
    }

}

@media (max-width: 991px) {
    .aiWrap {
        padding: 0 28px;
    }

    .aiSection {
        padding: 48px 0;
    }

    .aiHead--center {
        margin-bottom: 26px;
    }

    .aiHero {
        padding: 32px 0 52px;
    }

    .aiHero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .aiHero__copy {
        max-width: 640px;
    }

    .aiHero__visual {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    /* Tablets and phones: the three job cards become a swipe row */
    .aiJobs__grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: minmax(300px, 360px);
        gap: 16px;
        margin: 0 -28px;
        padding: 6px 28px 24px;
        scroll-padding-inline: 28px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .aiJobs__grid::-webkit-scrollbar {
        display: none;
    }

    .aiJob {
        scroll-snap-align: start;
    }

    .aiConnect__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .aiConnect__copy>p:not(.aiEyebrow) {
        max-width: 620px;
    }

    .aiHub {
        margin: 0 auto;
    }

    .aiWhy__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 0;
    }

    .aiWhy__grid li:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .aiFaq__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .aiAsk2 {
        position: relative;
        top: auto;
    }

    .aiCta__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .aiFormCard {
        max-width: 640px;
    }

    .aiPlay__panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .aiRag__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 20px;
    }

    .aiRag__line {
        display: none;
    }

}

@media (max-width: 767px) {
    .ai {
        font-size: 15px;
        line-height: 1.6;
    }

    .aiWrap {
        padding: 0 18px;
    }

    .aiSection {
        padding: 38px 0;
    }

    .aiHead--center {
        margin-bottom: 20px;
    }

    .aiEyebrow {
        font-size: 12px;
        letter-spacing: .16em;
    }

    .aiHead__sub {
        font-size: 15.5px;
    }

    /* Hero */
    .aiHero {
        padding: 18px 0 30px;
    }

    .aiHero__title {
        font-size: clamp(32px, 9.4vw, 42px);
    }

    .aiHero__lead {
        font-size: 16px;
        margin-bottom: 26px !important;
    }

    .aiHero__ctas {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .aiHero__ctas .aiBtn {
        justify-content: center;
        width: 100%;
        height: 54px;
    }

    .aiHero__ctas .aiBtn--dark {
        padding-left: 26px;
    }

    .aiBtn__orb {
        display: none;
    }

    .aiHero__points {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .aiHero__points li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 12.5px;
    }

    .aiHero__points br {
        display: none;
    }

    .aiHero__visual {
        min-height: 0;
        padding: 34px 0 26px;
    }

    .aiOrbit {
        width: 108%;
        left: 50%;
    }

    .aiChat {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 14px 14px 12px;
        border-radius: 22px;
        translate: none;
    }

    .aiMsg {
        font-size: 13px;
    }

    .aiFloat {
        gap: 9px;
        padding: 8px 12px 8px 8px;
        border-radius: 14px;
        translate: none;
    }

    .aiFloat strong {
        font-size: 12.5px;
    }

    .aiFloat small {
        display: none;
    }

    .aiFloat__icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .aiFloat__icon .aiI {
        width: 16px;
        height: 16px;
    }

    .aiFloat--lead {
        top: 6px;
        right: 0;
    }

    .aiFloat--crm {
        top: auto;
        bottom: 96px;
        left: -4px;
        right: auto;
    }

    .aiFloat--follow {
        right: 0;
        bottom: 8px;
    }

    /* Job cards */
    .aiJobs__grid {
        grid-auto-columns: 84%;
        margin: 0 -18px;
        padding: 6px 18px 20px;
        scroll-padding-inline: 18px;
    }

    .aiJob {
        padding: 24px 20px 22px;
    }

    .aiJob h3 {
        font-size: 19px;
    }

    .aiJob>p {
        font-size: 14.5px;
        margin-bottom: 16px;
    }

    .aiMini,
    .aiFlow {
        min-height: 236px;
        padding: 12px;
    }

    .aiFlow::before {
        left: 35px;
    }

    .aiFlow li {
        padding: 6px 10px 6px 6px;
        font-size: 13px;
    }

    /* Hub: a simple grid instead of the diagram */
    .aiHub {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        aspect-ratio: auto;
        max-width: 480px;
    }

    .aiHub__lines {
        display: none;
    }

    .aiHub__core {
        position: relative;
        left: auto;
        top: auto;
        grid-column: 1 / -1;
        width: 116px;
        margin: 18px auto 52px;
        transform: none;
    }

    .aiHub__label {
        top: calc(100% + 18px);
    }

    .aiHub__nodes {
        display: contents;
    }

    .aiNode {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: auto;
        min-width: 0;
        transform: none;
        animation: none !important;
    }

    .aiRag {
        margin-top: 28px;
        padding: 20px 12px;
        border-radius: 18px;
    }

    .aiRag__title {
        padding: 0 4px;
    }

    .aiRag__title strong {
        font-size: 16px;
    }

    .aiRag__title span {
        font-size: 12.5px;
    }

    .aiRag__steps {
        gap: 16px 6px;
    }

    .aiRag__ic {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    .aiRag__steps strong {
        font-size: 12.5px;
    }

    .aiRag__steps small {
        font-size: 11px;
    }

    /* AI software bento: a swipe row on phones */
    .aiBento {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 86%;
        gap: 12px;
        margin: 0 -18px;
        padding: 4px 18px 16px;
        scroll-padding-inline: 18px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .aiBento::-webkit-scrollbar {
        display: none;
    }

    .aiBento__card {
        grid-column: auto !important;
        scroll-snap-align: start;
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
    }

    .aiBento h3 {
        font-size: 16.5px;
    }

    .aiBento__head p {
        font-size: 13.5px;
    }

    .aiBento .aiRag__steps strong {
        font-size: 12px;
    }

    .aiBento .aiRag__steps small {
        font-size: 10.5px;
    }

    .aiLog {
        font-size: 11.5px;
    }

    .aiMarquee li {
        padding: 7px 11px;
        font-size: 13px;
    }

    .aiStackStrip {
        margin-top: 22px;
    }

    /* Industry playbook: tabs scroll sideways, panel stacks */
    .aiPlay__tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0 -18px 16px;
        padding: 2px 18px 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .aiPlay__tabs::-webkit-scrollbar {
        display: none;
    }

    .aiPlay__tab {
        flex: none;
        padding: 9px 14px;
        font-size: 13.5px;
    }

    .aiPlay__panel {
        gap: 14px;
        padding: 12px;
        border-radius: 20px;
    }

    .aiPlay__copy {
        padding: 8px 6px 4px;
    }

    .aiPlay__copy h3 {
        font-size: 18.5px;
    }

    .aiPlay__list li {
        font-size: 14px;
    }

    .aiPlay__copy .aiBtn {
        justify-content: center;
        width: 100%;
    }

    /* Integrations */
    .aiWorks li {
        padding: 4px 9px;
        font-size: 12px;
    }

    /* Hero: shorter conversation on phones */
    .aiChat__body .aiMsg:nth-child(3),
    .aiChat__body .aiMsg:nth-child(4) {
        display: none;
    }

    /* Why */
    .aiWhy {
        padding: 38px 0;
    }

    .aiWhy .aiHead--center {
        margin-bottom: 26px;
    }

    .aiWhy__grid {
        gap: 26px 0;
    }

    .aiWhy__grid li {
        padding: 0 0 0 14px;
    }

    .aiWhy__grid li:nth-child(odd) {
        padding: 0 14px 0 0;
        border-left: 0;
    }

    .aiWhy__ic {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }

    .aiWhy__ic .aiI {
        width: 21px;
        height: 21px;
    }

    .aiWhy h3 {
        font-size: 15.5px;
    }

    .aiWhy__grid p {
        font-size: 13.5px;
    }

    /* FAQ */
    .aiFaq__list {
        margin-top: 20px;
        gap: 10px;
    }

    .aiQ summary {
        padding: 15px 14px 15px 16px;
    }

    .aiQ summary h3 {
        font-size: 15.5px;
    }

    .aiQ p {
        padding: 0 16px 16px;
        font-size: 14.5px;
    }

    .aiAsk2 {
        padding: 26px 20px;
    }

    .aiAsk2 h3 {
        font-size: 23px;
    }

    .aiAsk2__btns .aiBtn {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* Consultation + form */
    .aiCta__lead {
        font-size: 15.5px;
    }

    .aiCaps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .aiCaps li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }

    .aiCaps strong {
        font-size: 12.5px;
    }

    .aiCaps small {
        font-size: 11.5px;
    }

    .aiWaCard {
        padding: 14px;
        gap: 12px;
    }

    .aiWaCard__ic {
        width: 44px;
        height: 44px;
    }

    .aiWaCard strong {
        font-size: 14.5px;
    }

    .aiWaCard small {
        font-size: 13px;
    }

    .aiFormCard {
        padding: 26px 18px 22px;
        border-radius: 22px;
    }

    .aiFormCard__title {
        font-size: 23px;
    }

    .aiForm {
        gap: 12px;
    }

    .aiField:not(.aiField--area) {
        height: 54px;
    }

    .aiForm>.aiField,
    .aiForm>.aiField--w5,
    .aiForm>.aiField--w7 {
        grid-column: 1 / -1;
    }

    .aiSubmit {
        height: 58px;
        font-size: 16px;
    }

    /* Quick-contact bar */
    .aiSticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: 1fr 1.15fr 1.5fr;
        gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 26px -12px rgba(13, 60, 70, .3);
        transform: translateY(110%);
        transition: transform .3s ease;
    }

    .aiSticky.is-on {
        transform: none;
    }

    .aiSticky a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 46px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        text-decoration: none;
    }

    .aiSticky a,
    .aiSticky a:hover,
    .aiSticky a:focus {
        color: var(--ink);
    }

    .aiSticky a:first-child {
        border: 1.5px solid #22242e;
        background: #fff;
    }

    .aiSticky a:nth-child(2),
    .aiSticky a:nth-child(2):hover,
    .aiSticky a:nth-child(2):focus {
        color: #fff;
        background: linear-gradient(100deg, #0c8a72, #0b6f80);
    }

    .aiSticky .aiSticky__main,
    .aiSticky .aiSticky__main:hover,
    .aiSticky .aiSticky__main:focus {
        color: #fff;
        background: var(--ink);
    }

    .aiSticky .aiI {
        width: 18px;
        height: 18px;
    }

    body.wdd-sticky-on #backtotop {
        bottom: 80px !important;
    }
}

@media (max-width: 400px) {
    .aiWrap {
        padding: 0 16px;
    }

    .aiHero__points li {
        font-size: 12px;
    }

    .aiJobs__grid {
        grid-auto-columns: 88%;
    }

    .aiSticky a {
        font-size: 13px;
    }
}

/* ==========================================================================
   Desktop refinements (owner, round 4)
   ========================================================================== */
@media (min-width: 1200px) {

    .aiJobs .aiHead--center,
    .aiPlay .aiHead--center {
        max-width: none;
    }

    .aiJobs h2,
    .aiPlay h2 {
        font-size: clamp(32px, 2.8vw, 42px);
        white-space: nowrap;
    }

    /* Three fields per row in the wide form */
    .aiForm>.aiField--name,
    .aiForm>.aiField--company,
    .aiForm>.aiField--email,
    .aiForm>.aiField--service {
        grid-column: span 4;
    }

    .aiForm>.aiField--phoneNo {
        grid-column: span 5;
    }

    .aiForm>.aiField--country {
        grid-column: span 3;
    }

    .aiForm .aiField--area textarea {
        height: 88px;
    }

    .aiFormCard {
        padding: 30px 32px 24px;
    }
}

/* Tablets and phones: photo first so the industry is recognised at a glance */
@media (max-width: 991px) {
    .aiPlay__visual {
        order: -1;
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .aiPlay__panel {
        gap: 12px;
        padding: 10px;
    }

    .aiPlay__visual {
        min-height: 270px;
        border-radius: 16px;
    }

    .aiPlay__msg {
        font-size: 12.5px;
        padding: 8px 11px;
    }

    .aiPlay__agents li {
        font-size: 11.5px;
        padding: 5px 9px;
    }

    .aiPlay__steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .aiPlay__steps li {
        font-size: 13px;
    }
}
