/* The homepage's integrations (central/partials/home/integrations.blade.php): the heading
   centred on the light page, then an endless row of round badges on a navy band (Rio,
   2026-10-14: "make the rest of this section light mode and the narrow scroller to stay this
   way"). The band keeps the homepage's dark-card geometry (armpos-e5: outer 0 24px, at most
   1392px; 0 8px from 639px down). The loop is landing-home.css's h-marquee (-50% over two
   identical lists); the track runs left to right on any page, so Arabic starts with no gap.
   Tokens from landing-home.css: on the page, the heading --h-ink, the copy --h-text, the
   eyebrow --h-600 (4.88 on mint). */

.h-intg {
    margin: 96px 0;
    padding: 0 24px;
}

.h-intg__panel {
    max-width: 1392px;
    margin: 0 auto;
}

.h-intg__band {
    margin-top: 48px;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 60% 120% at 50% 0%, rgb(31 133 79 / 0.22), transparent 70%),
        var(--h-950);
}

.h-intg__head {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.h-intg__eyebrow {
    margin: 0;
    font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    color: var(--h-600);
}

.h-intg__title {
    margin: 14px 0 0;
    font-family: "IBM Plex Sans", "Geist", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--h-ink);
    text-wrap: balance;
}

.h-intg__lead {
    margin: 18px auto 0;
    max-width: 640px;
    font-size: 17px;
    line-height: 28px;
    color: var(--h-text);
    text-wrap: balance;
}

/* The rail, inside the band: the ends fade into the navy */
.h-intg__rail {
    padding: 36px 0;
    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);
}

.h-intg__track {
    display: flex;
    width: max-content;
    direction: ltr;
    animation: h-marquee 45s linear infinite;
}

.h-intg__rail:hover .h-intg__track,
.h-intg__rail:focus-within .h-intg__track {
    animation-play-state: paused;
}

/* Each list carries half the gap at each end, so the seam between the two copies is one gap */
.h-intg__list {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0 14px;
    list-style: none;
}

.h-intg__badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    /* A faint light ring, as the reference's badges have: it also outlines a dark mark,
       which needs its own coloured tile to read on navy */
    border: 1px solid rgb(216 246 238 / 0.16);
    border-radius: 50%;
    background: var(--h-900);
    box-shadow: inset 0 1px 0 rgb(216 246 238 / 0.06);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.h-intg__badge:hover {
    border-color: rgb(102 208 151 / 0.55);
    background: rgb(30 42 68 / 0.75);
}

a.h-intg__badge:focus-visible {
    outline: 2px solid var(--h-accent-on-dark);
    outline-offset: 3px;
}

/* A logo as uploaded, in its own colours, as in Rio's reference: an app icon (a coloured
   circle with its mark) fills the middle of the badge, a wordmark its width. No
   recolouring: forcing white turned his icons into discs (2026-10-13). */
.h-intg__badge img {
    display: block;
    /* 76px: the largest square inside the 108px circle, so a square mark's corners stay in */
    width: 76px;
    height: 76px;
    object-fit: contain;
}

/* Reduced motion: one still row that wraps, no copy */
@media (prefers-reduced-motion: reduce) {
    .h-intg__rail {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .h-intg__track {
        width: auto;
        justify-content: center;
        animation: none;
    }

    .h-intg__list {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 24px;
    }

    .h-intg__list[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 639px) {
    .h-intg {
        margin: 64px 0;
        padding: 0 8px;
    }

    .h-intg__band {
        margin-top: 36px;
        border-radius: 20px;
    }

    .h-intg__lead {
        font-size: 16px;
        line-height: 26px;
    }

    .h-intg__rail {
        padding: 28px 0;
    }

    .h-intg__list {
        gap: 18px;
        padding: 0 9px;
    }

    .h-intg__badge {
        width: 84px;
        height: 84px;
    }

    .h-intg__badge img {
        width: 58px;
        height: 58px;
    }
}
