/* Loaded only by the homepage. */
.nav:not(.scrolled) {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-hero {
    --phone-width: 200px;
    --wall-gap: 18px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 850px;
    overflow: hidden;
    background: #f6f5f2;
    color: #191a1d;
    color-scheme: light;
    padding: 176px 0 0;
}

.product-hero__container,
.product-hero__bottom {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.product-hero__container {
    pointer-events: none;
}

.product-hero__copy {
    max-width: 580px;
    pointer-events: auto;
}

.product-hero h1 {
    font-size: clamp(52px, 5.3vw, 68px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.055em;
    margin: 0 0 28px;
}

.product-hero h1 span {
    color: var(--red);
}

.product-hero__description {
    max-width: 435px;
    color: #606267;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 33px;
}

.product-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.product-hero__actions .btn {
    justify-content: space-between;
    min-width: 236px;
    min-height: 62px;
    gap: 32px;
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    background: var(--red);
    border: 1px solid transparent;
    box-shadow: none;
    transition: background-color .2s;
}

.product-hero__actions .btn:hover {
    background: var(--red-dark);
    transform: none;
    box-shadow: none;
}

.product-hero__actions .btn:active {
    background: var(--red-dark);
    transform: none;
    box-shadow: none;
}

.product-hero__actions .product-hero__cta-arrow {
    width: 20px;
    height: 20px;
    transition: transform .2s;
}

.product-hero__actions .btn:hover .product-hero__cta-arrow {
    transform: translateX(3px);
}

.product-hero__note {
    margin-top: 16px;
    font-size: 12px;
    color: #6e7075;
}

.product-hero__trust {
    display: flex;
    align-items: flex-start;
    margin-top: 28px;
}

.product-hero__trust strong {
    color: #292b2f;
    font-size: 18px;
    font-weight: 600;
}

.product-hero__rating {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #66686c;
    font-size: 13px;
    line-height: 1.5;
}

.product-hero__rating-score {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.product-hero__rating-score strong > span {
    color: #77797d;
    font-weight: 400;
    font-size: 14px;
}

.product-hero__stars {
    color: #ab6b19;
    font-size: 16px;
    letter-spacing: .08em;
}

.product-hero__rating a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-hero__qr {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 455px;
    margin-top: 30px;
    padding: 24px 20px 20px;
    border: 1px solid #e8c9c6;
    border-left: 3px solid var(--red);
    border-radius: 8px;
    background: #fff9f7;
    color: var(--red);
    transition: border-color .2s, background .2s;
}

.product-hero__qr-badge {
    position: absolute;
    top: 0;
    left: 19px;
    transform: translateY(-50%);
    padding: 4px 9px;
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.product-hero__qr:hover {
    border-color: var(--red);
    background: #fff2ed;
}

.product-hero__qr-symbol {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
}

.product-hero__qr-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.product-hero__qr-copy strong {
    color: #292b2f;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.product-hero__qr-copy > span {
    color: #6e6361;
    font-size: 12px;
    line-height: 1.6;
}

.product-hero__qr > .icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: auto;
    transition: transform .2s;
}

.product-hero__qr:hover > .icon {
    transform: translateX(3px);
}

/* Four continuous product lanes. Only transforms are animated. */
.product-hero__scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.product-hero__wall {
    position: absolute;
    top: -350px;
    left: calc(50% + 70px);
    display: flex;
    align-items: flex-start;
    gap: var(--wall-gap);
    width: calc(var(--phone-width) * 4 + var(--wall-gap) * 3);
    transform: rotate(-12deg);
    transform-origin: 50% 500px;
    user-select: none;
    pointer-events: none;
}

.product-wall__lane {
    flex: 0 0 var(--phone-width);
    min-width: 0;
    animation: product-wall-scroll calc(var(--screen-count, 3) * 32s) linear infinite;
    animation-play-state: paused;
    will-change: transform;
}

.product-wall__lane--one {
    margin-top: -100px;
    animation-duration: calc(var(--screen-count, 3) * 32s);
    animation-delay: -36s;
}

.product-wall__lane--two {
    margin-top: -15px;
    animation-direction: reverse;
    animation-duration: calc(var(--screen-count, 3) * 37s);
    animation-delay: -21s;
}

.product-wall__lane--three {
    margin-top: -230px;
    animation-duration: calc(var(--screen-count, 3) * 35s);
    animation-delay: -5s;
}

.product-wall__lane--four {
    margin-top: -80px;
    animation-direction: reverse;
    animation-duration: calc(var(--screen-count, 3) * 34s);
    animation-delay: -49s;
}

[data-hero-running="true"] .product-wall__lane {
    animation-play-state: running;
}

.product-wall__group {
    display: flex;
    flex-direction: column;
    gap: var(--wall-gap);
    padding-bottom: var(--wall-gap);
}

.product-wall__screen {
    --phone-radius: calc(var(--phone-width) * .155);
    position: relative;
    padding: 5px;
    border: 2px solid #c4c7c8;
    border-radius: var(--phone-radius);
    background: #202226;
    box-shadow: 0 14px 30px #282b3226, inset 0 0 0 1px #777c81, 0 0 0 1px #ffffffa6;
}

.product-wall__screen::before,
.product-wall__screen::after {
    content: '';
    position: absolute;
    width: 3px;
    border-radius: 2px;
    background: #adb0b3;
}

.product-wall__screen::before {
    left: -4px;
    top: calc(var(--phone-width) * .36);
    height: calc(var(--phone-width) * .093);
    box-shadow: 0 28px 0 #adb0b3;
}

.product-wall__screen::after {
    right: -4px;
    top: calc(var(--phone-width) * .5);
    height: calc(var(--phone-width) * .18);
}

.product-wall__display {
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 1305;
    border-radius: calc(var(--phone-radius) - 7px);
    background: #000;
}

.product-wall__display img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.product-wall__display > img:not([src]) {
    display: none;
}

.product-wall__display::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: calc(var(--phone-width) * .031);
    left: 50%;
    width: 28%;
    aspect-ratio: 3.7;
    transform: translateX(-50%);
    border: 1px solid #202226;
    border-radius: 30px;
    background: radial-gradient(circle at calc(100% - 9px) 50%, #152334 0 2px, #0c0d0f 3px);
}

.product-wall__display::after {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 34%;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 3px;
    background: #fff;
    mix-blend-mode: difference;
}

.product-hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, #f6f5f2 0%, #f6f5f2 36%, #f6f5f2ed 44%, #f6f5f260 57%, #f6f5f200 70%),
        linear-gradient(0deg, #f6f5f2 0%, #f6f5f200 22%, #f6f5f200 79%, #f6f5f2cc 100%);
}

.product-hero :is(a, button):focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 5px;
}

.product-hero__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 42px;
    padding-top: 25px;
    padding-bottom: 25px;
}

.product-hero__integrations,
.product-hero__integrations > div {
    display: flex;
    align-items: center;
    gap: 32px;
}

.product-hero__integrations > p {
    color: #292b2f;
    font-size: 16px;
    font-weight: 600;
}

.product-hero__integrations img {
    object-fit: contain;
    width: auto;
    height: 27px;
    max-width: 100px;
    filter: grayscale(1);
    mix-blend-mode: multiply;
    opacity: .85;
}

@keyframes product-wall-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(calc(-100% / 3)); }
}

@media (min-width: 1600px) {
    .product-hero {
        --phone-width: 224px;
        --wall-gap: 22px;
    }

    .product-hero__wall {
        left: calc(50% + 60px);
    }
}

@media (max-width: 1100px) {
    .product-hero {
        min-height: 790px;
        padding-top: 160px;
    }

    .product-hero h1 {
        font-size: 58px;
    }

    .product-hero__copy {
        max-width: 500px;
    }

    .product-hero__wall {
        left: calc(53% + 80px);
    }

    .product-hero__description {
        max-width: 390px;
        font-size: 16px;
    }

    .product-hero__integrations,
    .product-hero__integrations > div {
        gap: 18px;
    }

    .product-hero__integrations img {
        max-width: 88px;
        height: 24px;
    }
}

@media (max-width: 800px) {
    .product-hero {
        padding-top: 128px;
        min-height: 0;
    }

    .product-hero__container {
        order: -1;
    }

    .product-hero__copy {
        max-width: 620px;
        margin: 0 auto;
    }

    .product-hero h1 {
        font-size: clamp(48px, 8.5vw, 68px);
    }

    .product-hero__description {
        max-width: 470px;
    }

    .product-hero__scene {
        position: relative;
        height: 480px;
        margin-top: 28px;
    }

    .product-hero__wall {
        left: calc(50% - var(--phone-width) * 2 - var(--wall-gap) * 1.5);
        top: -420px;
        transform: rotate(-12deg) scale(.88);
    }

    .product-hero__shade {
        background: linear-gradient(0deg, #f6f5f2 0%, #f6f5f200 25%, #f6f5f200 77%, #f6f5f2 100%);
    }

    .product-hero__bottom {
        margin-top: 0;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .product-hero__integrations {
        flex-direction: column;
        gap: 14px;
    }

    .product-hero__integrations > div {
        gap: 30px;
    }

}

@media (max-width: 480px) {
    .product-hero {
        padding-top: 114px;
    }

    .product-hero h1 {
        font-size: clamp(33px, 10.5vw, 50px);
        margin-bottom: 24px;
    }

    .product-hero__description {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 27px;
    }

    .product-hero__actions {
        gap: 21px;
    }

    .product-hero__actions .btn {
        width: 100%;
        max-width: 320px;
        min-height: 62px;
        padding: 18px 22px;
        font-size: 16px;
    }

    .product-hero__note {
        font-size: 11px;
    }

    .product-hero__rating {
        min-width: 0;
    }

    .product-hero__rating-score {
        gap: 8px;
    }

    .product-hero__stars {
        font-size: 14px;
    }

    .product-hero__qr {
        gap: 12px;
        margin-top: 26px;
        padding: 23px 14px 17px;
    }

    .product-hero__qr-badge {
        left: 13px;
    }

    .product-hero__qr-symbol {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    .product-hero__qr-copy strong {
        font-size: 15px;
    }

    .product-hero__qr-copy > span {
        font-size: 11px;
    }

    .product-hero__scene {
        height: 390px;
        margin-top: 18px;
    }

    .product-hero__wall {
        transform: rotate(-12deg) scale(.72);
    }

    .product-hero__integrations {
        width: 100%;
    }

    .product-hero__integrations > div {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(12px, 4vw, 22px);
        width: 100%;
        max-width: 350px;
    }

    .product-hero__integrations img {
        justify-self: center;
        width: 100%;
        max-width: 66px;
        height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-wall__lane {
        animation-play-state: paused !important;
        will-change: auto;
    }

    .product-hero * {
        transition: none !important;
    }
}
