.driver-app-hero {
    display: grid;
    grid-template-columns: minmax(0, 770px) minmax(0, 622px);
    gap: 16px;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.driver-app-hero__copy-panel,
.driver-app-hero__visual {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
}

.driver-app-hero__copy-panel {
    position: relative;
    container-type: inline-size;
    color: var(--color-bg-white);
    background-color: var(--color-bg-dark);
    background-image: url("../../images/driver-app-hero/hero-background-desktop.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.driver-app-hero__tablet-orbits {
    display: none;
}

.driver-app-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 69px clamp(40px, 10.4cqi, 80px);
}

.driver-app-hero__main-content,
.driver-app-hero__intro,
.driver-app-hero__heading-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.driver-app-hero__main-content {
    gap: 32px;
}

.driver-app-hero__intro {
    gap: 24px;
}

.driver-app-hero__heading-group {
    gap: 16px;
}

.driver-app-hero__breadcrumb {
    display: inline-flex;
    padding: 8px 16px;
    overflow: hidden;
    border: 1px solid var(--color-bg-white-10);
    border-radius: 50px;
    background: var(--color-bg-white-6);
}

.driver-app-hero__breadcrumb ol {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
}

.driver-app-hero__breadcrumb li:not(:last-child) {
    color: var(--color-bg-white-60);
}

.driver-app-hero__breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
}

.driver-app-hero h1 {
    font-size: clamp(48px, 9.1cqi, 70px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.5%;
    background-image: linear-gradient(111deg, #F0F5FA 58.5%, #DCE3F3 86.86%);
    background-clip: text;
    -webkit-background-clip: text;
    color: var(--color-bg-white);
    -webkit-text-fill-color: transparent;
}

.driver-app-hero__heading-group > p {
    max-width: 562px;
    color: var(--color-bg-white);
    opacity: 0.9;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}

.driver-app-hero__actions,
.driver-app-hero__store-links {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
}

.driver-app-hero__actions {
    width: 100%;
    max-width: 602px;
}

.driver-app-hero__cta {
    flex: 0 0 242px;
    min-height: 62px;
}

.driver-app-hero__cta img {
    width: 24px;
    height: 24px;
    transform: rotate(180deg);
}

/* Store links stay next to the CTA while they fit and drop to their own row otherwise. */
.driver-app-hero__store-links {
    flex: 1 1 auto;
}

.driver-app-hero__store-link {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    height: 62px;
    padding: 10px 16px;
    position: relative;
    color: var(--color-bg-white);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--color-bg-white-6);
    transition: background-color 0.15s ease;
}

.driver-app-hero__store-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, var(--color-bg-white) 40%, var(--color-bg-white-40) 100%);
    -webkit-mask: linear-gradient(var(--color-bg-white) 0 0) content-box, linear-gradient(var(--color-bg-white) 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.driver-app-hero__store-link:hover {
    background: var(--color-bg-white-10);
}

.driver-app-hero__store-link > img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.driver-app-hero__store-link > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: normal;
}

.driver-app-hero__store-link small {
    color: #D4D4D4;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.driver-app-hero__store-link span {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    color: white;
}

.driver-app-hero__trust,
.driver-app-hero__trust-copy,
.driver-app-hero__avatars,
.driver-app-hero__rating {
    display: flex;
    align-items: center;
}

.driver-app-hero__trust {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 34px;
    width: 100%;
    max-width: 602px;
    min-height: 66px;
    padding: 18px 24px;
    border-radius: 15px;
    background: var(--color-bg-white-6);
    color: var(--color-bg-white);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
}

.driver-app-hero__trust-copy {
    gap: 16px;
    min-width: 0;
}

.driver-app-hero__avatars {
    flex: 0 0 auto;
}

.driver-app-hero__avatars img {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.driver-app-hero__avatars img:not(:last-child) {
    margin-right: -13px;
}

.driver-app-hero__rating {
    gap: 8px;
    color: var(--color-bg-white-80);
    white-space: nowrap;
}

.driver-app-hero__rating img {
    width: 80px;
    height: 16px;
}

.driver-app-hero__visual {
    background: var(--color-bg-blue);
}

.driver-app-hero__animation,
.driver-app-hero__motion-poster,
.driver-app-hero__motion-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.driver-app-hero__animation--tablet,
.driver-app-hero__animation--mobile,
.driver-app-hero__motion-poster {
    display: none;
}

@media (max-width: 1024px) {
    .driver-app-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: auto;
        max-width: none;
        margin-inline: 8px;
        padding: 0;
    }

    .driver-app-hero__copy-panel {
        min-height: 594px;
        background-color: var(--color-bg-dark);
        background-image:
            url("../../images/driver-app-hero/hero-pixel-grid-tablet.png");
        background-position: center;
        background-size: cover;
    }

    .driver-app-hero__copy-panel::before {
        content: "";
        position: absolute;
        top: -321px;
        right: -360px;
        width: 643px;
        height: 643px;
        filter: blur(80px);
        border-radius: 50%;
        background: radial-gradient(circle at center,
            var(--color-primary) 0%,
            transparent 70%);
        opacity: 1;
        pointer-events: none;
    }

    .driver-app-hero__tablet-orbits {
        position: absolute;
        top: -86.52px;
        left: calc(50% - 9px);
        display: block;
        width: 372.15px;
        max-width: none;
        height: 770.32px;
    }

    .driver-app-hero__content {
        max-width: calc(632px + 2 * 24px);
        margin-inline: auto;
        padding: clamp(56px, 14.9cqi, 115px) 24px;
    }

    .driver-app-hero h1 {
        font-size: clamp(44px, 7.2cqi, 56px);
        line-height: 1.14;
        letter-spacing: -1%;
        background-image: linear-gradient(111deg, #F0F5FA 58.5%, #DCE3F3 86.86%);
    }

    .driver-app-hero__heading-group > p {
        max-width: none;
        font-size: 20px;
    }

    .driver-app-hero__content {
        gap: 0;
    }

    .driver-app-hero__trust {
        display: none;
    }

    .driver-app-hero__animation {
        width: 100%;
    }

    .driver-app-hero__animation--desktop {
        display: none;
    }

    .driver-app-hero__animation--tablet {
        display: block;
    }
}

@media (max-width: 576px) {
    .driver-app-hero__copy-panel,
    .driver-app-hero__visual {
        border-radius: 14px;
    }

    .driver-app-hero__copy-panel {
        min-height: 409px;
        background-image: url("../../images/driver-app-hero/hero-background-mobile.png");
    }

    .driver-app-hero__copy-panel::before {
        filter: blur(280px);
    }

    .driver-app-hero__tablet-orbits {
        display: none;
    }

    .driver-app-hero__content {
        gap: 32px;
        max-width: none;
        padding: 32px clamp(16px, 8cqi, 30px);
    }

    .driver-app-hero__main-content {
        gap: 32px;
    }

    .driver-app-hero__intro {
        align-items: center;
        gap: 12px;
    }

    .driver-app-hero__breadcrumb {
        padding: 6px 16px;
    }

    .driver-app-hero__breadcrumb ol {
        font-size: 12px;
        line-height: 1.5;
    }

    .driver-app-hero__breadcrumb li:not(:last-child)::after {
        font-size: 10px;
        line-height: 1.4;
    }

    .driver-app-hero__heading-group {
        align-items: center;
        gap: 12px;
        width: 100%;
        text-align: center;
    }

    .driver-app-hero h1 {
        width: 100%;
        font-size: clamp(28px, 9.5cqi, 36px);
        line-height: 1.12;
        white-space: normal;
    }

    .driver-app-hero__heading-group > p {
        width: 100%;
        opacity: 0.78;
        font-size: 14px;
    }

    .driver-app-hero__actions {
        flex-direction: column;
        gap: 12px;
        max-width: none;
    }

    .driver-app-hero__cta {
        flex-basis: auto;
        width: 100%;
        min-height: 52px;
        max-height: 52px;
        padding: 12px 32px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1.4;
    }

    .driver-app-hero__cta img {
        width: 21px;
        height: 21px;
    }

    .driver-app-hero__store-links {
        flex: none;
        gap: 12px;
        width: 100%;
    }

    .driver-app-hero__store-link {
        height: 52px;
        padding: 10px 16px;
    }

    .driver-app-hero__store-link small {
        font-size: 10px;
    }

    .driver-app-hero__store-link strong {
        font-size: 14px;
    }

    .driver-app-hero__animation--tablet {
        display: none;
    }

    .driver-app-hero__animation--mobile {
        display: block;
        width: 102%;
        margin-left: -6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .driver-app-hero__animation {
        display: none;
    }

    .driver-app-hero__motion-poster {
        display: block;
    }
}
