/*
 * Platform page: rm/platform-compatible, rm/platform-testimonials, rm/feature-list, and
 * Platform's look for the shared rm/analytics-cards (.rm-analytics--platform) and
 * rm/get-started "services" slot (.rm-get-started--platform.rm-get-started--services). Values from staging
 * post-293.css and getComputedStyle at 1440 / 390:
 *   compatible 0a434de: #292929, padding 4% 4% 5%, wave 20px #fff below; titles column 339px
 *     (padding 0 8%), slide text from x+50, 185px wide, Work Sans 35/700/1 white (23px ≤767);
 *     logos column 981px (padding 0 8%): 5 logos per step 132.8px wide, 40px apart, centred;
 *     5s autoplay, 500ms (assets/js/platform.js).
 *   analytics ad05780: margin 0 5%, padding 8%, three 355px columns spaced evenly, padding
 *     10px; image box centred: icon ~30% wide, ~103px high (titles line up), margin-bottom 15px; title Work Sans
 *     20.592/600 #5E55FC margin 20.592px 0; text Roboto 17.6/22.88 #292929.
 *   services 7e590c44: #292929, margin 5% 0 3%, padding 0 8%, waves 21px / 20px #fff;
 *     column padding 5% 3%, margin 4% 0 3%; title Work Sans 26.4/600; text Roboto 17.6;
 *     two columns, padding 30px, centred icon box (title 20.592/600, text Roboto 17.6);
 *     "Learn More" buttons #1976D2 / #FF3E3E, Roboto 16/500, padding 16px 20px, radius 8px.
 *     Staging paints title, text and card titles #292929 on #292929 (unreadable) and shows a
 *     dice / factory icon the content does not have; here the text is white.
 *   testimonials 124019c5: #292929 under an rgba(14,14,14,.85) overlay (background video not
 *     in the content), padding 8%, waves 20px #fff; title 26.4/600 white centred, margin-bottom
 *     20px; three columns (403 / 371 / 403) from 4% below, centred vertically; quote Roboto
 *     22.88px italic, padding-right 20px; logo ~30% wide, margin-bottom 10px; name Helvetica
 *     20px #FF3E3E margin-top 46.6px; role Roboto 17.6/22.88.
 *   feature list 506211b: padding 3% 14% 6%, margin-bottom 3%; three 342px columns, padding
 *     10px; title Work Sans 20.592/600 #5E55FC centred, text Roboto 17.6/22.88 centred.
 *     Staging has a 150px icon above each title; the content has no icon.
 */

/* Compatibilities */
.rm-compatible {
    position: relative;
    padding: 4% calc(var(--rm-bleed) + var(--rm-frame) * .04) 5%;
    background: var(--rm-black);
    color: var(--rm-white);
}

.rm-compatible__inner {
    display: flex;
    align-items: center;
}

.rm-compatible__titles {
    position: relative;
    display: grid;
    flex: 0 0 25.6%;
    align-items: center;
    min-height: 100px;
    padding: 0 2% 0 calc(2% + 50px);
}

.rm-compatible__title {
    grid-area: 1 / 1;
    max-width: 185px;
    margin: 0;
    color: var(--rm-white);
    font-family: var(--rm-font);
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
}

.rm-js .rm-compatible.is-ready .rm-compatible__title {
    opacity: 0;
    transition: opacity .5s ease;
}

.rm-js .rm-compatible.is-ready .rm-compatible__title.is-active {
    opacity: 1;
}

.rm-compatible__viewport {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 6%;
    overflow: hidden;
}

.rm-compatible__track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rm-compatible.is-ready .rm-compatible__track {
    flex-direction: row;
    gap: 40px;
}

.rm-compatible__group {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    gap: 40px;
    min-height: 100px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rm-compatible__item {
    flex: 1 1 0;
    min-width: 0;
}

.rm-compatible__logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

/* Analytics (shared block, Platform's look) */
.rm-analytics.rm-analytics--platform {
    width: auto;
    margin: 0 calc(var(--rm-bleed) + var(--rm-frame) * .05);
    padding: 8% calc(var(--rm-frame) * .08);
}

.rm-analytics--platform .rm-analytics__grid {
    grid-template-columns: repeat(3, minmax(0, 355px));
    justify-content: space-evenly;
    gap: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
}

.rm-analytics--platform .rm-analytics__card {
    align-items: center;
    gap: 0;
    padding: 10px;
    border-radius: 0;
    background: none;
    color: var(--rm-black);
    text-align: center;
}

.rm-analytics--platform .rm-analytics__icon {
    width: 30%;
    height: 103px;
    margin-bottom: 15px;
    object-fit: contain;
}

.rm-analytics--platform .rm-analytics__title {
    margin: 20.592px 0;
    color: var(--rm-blurple);
    font-size: 20.592px;
    font-weight: 600;
    line-height: 22.88px;
}

.rm-analytics--platform .rm-analytics__text {
    margin: 0;
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 17.6px;
    font-weight: 400;
    line-height: 22.88px;
}

/* Services (shared get-started block, "services" slot) */
.rm-get-started--platform.rm-get-started--services {
    position: relative;
    margin: 5% 0 3%;
    padding: 0 calc(var(--rm-bleed) + var(--rm-frame) * .08);
    background: var(--rm-black);
    color: var(--rm-white);
}

.rm-get-started--platform.rm-get-started--services::before,
.rm-get-started--platform.rm-get-started--services::after {
    position: absolute;
    left: 0;
    width: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    content: "";
    pointer-events: none;
}

.rm-get-started--platform.rm-get-started--services::before {
    top: -1px;
    height: 21px;
}

.rm-get-started--platform.rm-get-started--services::after {
    bottom: -1px;
    height: 20px;
    transform: rotate(180deg);
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__inner {
    max-width: none;
    margin: 4% 0 3%;
    padding: 5% 3%;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__title {
    max-width: none;
    margin: 0 0 20px;
    font-family: var(--rm-font);
    font-size: 26.4px;
    font-weight: 600;
    line-height: 1;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__text {
    margin: 0 0 20px;
    color: var(--rm-white);
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 17.6px;
    font-weight: 400;
    line-height: 22.88px;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__cards {
    gap: 0;
    padding: 22.7px 0 11.4px;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__card,
.rm-get-started--platform.rm-get-started--services .rm-get-started__card:first-child {
    align-items: center;
    gap: 20px;
    min-height: 0;
    padding: 30px;
    border-radius: 0;
    background: none;
    text-align: center;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__copy {
    gap: 0;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__card-title {
    margin: 20.592px 0;
    font-family: var(--rm-font);
    font-size: 20.592px;
    font-weight: 600;
    line-height: 22.88px;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__card-text {
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 17.6px;
    font-weight: 400;
    line-height: 22.88px;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__button {
    align-self: center;
    padding: 16px 20px;
    border-radius: 8px;
    background: #1976D2;
    color: var(--rm-black);
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: underline;
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__card:nth-child(even) .rm-get-started__button {
    background: var(--rm-red);
}

.rm-get-started--platform.rm-get-started--services .rm-get-started__button:hover,
.rm-get-started--platform.rm-get-started--services .rm-get-started__button:focus-visible,
.rm-get-started--platform.rm-get-started--services .rm-get-started__card:nth-child(even) .rm-get-started__button:hover,
.rm-get-started--platform.rm-get-started--services .rm-get-started__card:nth-child(even) .rm-get-started__button:focus-visible {
    background: var(--rm-blurple);
    color: var(--rm-black);
}

/* Get started (Platform) */
.rm-get-started--platform.rm-get-started--getStarted {
    margin: 80px 0 120px;
}

/* Client testimonials */
.rm-platform-testimonials {
    position: relative;
    padding: 8% calc(var(--rm-bleed) + var(--rm-frame) * .08);
    background: #121212;
    color: var(--rm-white);
}

.rm-platform-testimonials__title {
    margin: 0 0 20px;
    color: var(--rm-white);
    font-family: var(--rm-font);
    font-size: 26.4px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.rm-platform-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 4%;
}

.rm-platform-testimonial {
    margin: 0;
    text-align: center;
}

.rm-platform-testimonial__quote {
    margin: 0 0 20px;
}

.rm-platform-testimonial__quote p {
    margin: 22.88px 0;
    padding-right: 20px;
    color: var(--rm-grey);
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 22.88px;
    font-style: italic;
    line-height: 22.88px;
}

.rm-platform-testimonial__who {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rm-platform-testimonial__logo {
    display: block;
    width: 30%;
    height: auto;
    margin-bottom: 10px;
}

.rm-platform-testimonial__name {
    margin-top: 46.6px;
    color: var(--rm-red);
    font-family: Helvetica, var(--rm-font-helvetica);
    font-size: 20px;
    line-height: 22.88px;
}

.rm-platform-testimonial__role {
    color: var(--rm-grey);
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 17.6px;
    line-height: 22.88px;
}

/* Feature list */
.rm-feature-list {
    margin-bottom: 3%;
    padding: 3% calc(var(--rm-bleed) + var(--rm-frame) * .14) 6%;
}

.rm-feature-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 5px;
    list-style: none;
}

.rm-feature-list__item {
    padding: 10px;
    text-align: center;
}

.rm-feature-list__title {
    margin: 20.592px 0;
    color: var(--rm-blurple);
    font-family: var(--rm-font);
    font-size: 20.592px;
    font-weight: 600;
    line-height: 22.88px;
}

.rm-feature-list__text {
    margin: 0;
    color: var(--rm-black);
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 17.6px;
    line-height: 22.88px;
}

@media (max-width: 1024px) {
    .rm-compatible__title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .rm-compatible {
        margin-top: 35%;
        padding: 9% 5% 12%;
    }

    .rm-compatible__inner {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .rm-compatible__titles {
        flex: none;
        width: 100%;
        padding: 0 0 0 30px;
    }

    .rm-compatible__title {
        max-width: none;
        font-size: 23px;
    }

    .rm-compatible__viewport {
        width: 100%;
        margin: 0;
    }

    .rm-compatible__group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px 40px;
    }

    .rm-compatible__item {
        flex: 0 0 40%;
    }

    .rm-analytics.rm-analytics--platform {
        margin: 0;
        padding: 8%;
    }

    .rm-analytics--platform .rm-analytics__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rm-get-started--platform.rm-get-started--services {
        margin-top: 35%;
        padding: 0 5%;
    }

    .rm-get-started--platform.rm-get-started--services .rm-get-started__inner {
        padding: 15% 0;
    }

    .rm-get-started--platform.rm-get-started--services .rm-get-started__card,
    .rm-get-started--platform.rm-get-started--services .rm-get-started__card:first-child {
        padding: 30px 0;
    }

    .rm-platform-testimonials {
        margin-top: 35%;
        padding: 15% 5%;
    }

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

    .rm-feature-list {
        padding: 15% 5% 10%;
    }

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