.iphone-duo-page,
.iphone-duo-page * {
    box-sizing: border-box;
}

.iphone-duo-page {
    --duo-copy-width: 541px;
    overflow: hidden;
    padding-top: 62px;
    background: #fff;
    color: #080808;
    font-family: "SF Pro Display", "SF Pro Icons", "AOS Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.iphone-duo-motion-enabled [data-iphone-duo-reveal] {
    opacity: 0;
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--iphone-duo-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.iphone-duo-motion-enabled [data-iphone-duo-reveal="up"] {
    transform: translate3d(0, 34px, 0);
}

.iphone-duo-motion-enabled [data-iphone-duo-reveal="left"] {
    transform: translate3d(-42px, 0, 0);
}

.iphone-duo-motion-enabled [data-iphone-duo-reveal="right"] {
    transform: translate3d(42px, 0, 0);
}

.iphone-duo-motion-enabled [data-iphone-duo-reveal="scale"] {
    transform: translate3d(0, 20px, 0) scale(0.97);
}

.iphone-duo-motion-enabled [data-iphone-duo-reveal="prebook-rise"] {
    transform: translate3d(0, 96px, 0) scale(0.985);
    transition-duration: 900ms;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-duo-motion-enabled [data-iphone-duo-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    [data-iphone-duo-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.iphone-duo-page :where(h1, h2, p) {
    margin-top: 0;
}

.iphone-duo-page h1,
.iphone-duo-page h2 {
    font-weight: 700;
    letter-spacing: -1.1px !important;
}

.iphone-duo-page h1 {
    margin-bottom: 4px;
    font-size: clamp(34px, 3.2vw, 48px);
}

.iphone-duo-page h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.3;
}

.iphone-duo-page p {
    margin-bottom: 0;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.62;
}

.duo-section {
    width: 100%;
    padding: clamp(59px, 6vw, 54px) max(22px, calc((100vw - 1180px) / 2));
}

.duo-centered-copy {
    width: min(100%, var(--duo-copy-width));
    margin-inline: auto;
    text-align: center;
}

.duo-subtitle {
    font-size: 18px !important;
}

.duo-hero {
    padding-top: 42px;
    padding-bottom: 58px;
}

.duo-hero > img {
    display: block;
    width: min(100%, 940px);
    height: auto;
    margin: 34px auto 34px;
}

.duo-meet-copy {
    --duo-copy-width: 542px;
}

.duo-soft {
    background: #f5f5f7;
}

.duo-display {
    padding-bottom: 0;
}

.duo-display > img {
    display: block;
    width: min(100%, 640px);
    height: auto;
    margin: 42px auto 0;
}

.duo-design {
    padding-bottom: 0;
}

.duo-design .duo-centered-copy {
    --duo-copy-width: 570px;
}

.duo-eyebrow {
    max-width: 500px;
    margin-inline: auto;
    font-size: clamp(30px, 3.1vw, 30px) !important;
    font-weight: 700;
    line-height: 1.1 !important;
    letter-spacing: -1.1px !important;
}

.duo-design .duo-centered-copy img {
    display: block;
    width: min(100%, 720px);
    height: auto;
    margin: 36px auto 54px;
}

.duo-camera-layout,
.duo-battery-layout,
.duo-performance-layout,
.duo-touch-layout {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 1000px);
    margin-inline: auto;
}

.duo-split-copy {
    align-self: center;
    text-align: left;
}

.duo-split-copy p {
    max-width: 43ch;
}

.duo-camera-layout {
    min-height: 610px;
    margin-top: 70px;
}

.duo-camera-layout .duo-split-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    z-index: 2;
    padding-bottom: 60px;
    
}

.duo-camera-left,
.duo-camera-right {
    position: absolute;
    top: 0;
    width: 43%;
    height: auto;
}

.duo-camera-left {
    right: 44%;
    transform: translateX(50%);
}

.duo-camera-right {
    right: 0;
}

.duo-battery-layout {
    min-height: 600px;
    align-items: center;
}

.duo-battery-layout img {
    align-self: end;
    width: min(100%, 510px);
    height: auto;
}

.duo-battery-layout .duo-split-copy {
    padding-left: 54px;
}

.duo-dark {
    padding-top: 70px;
    padding-bottom: 0;
    background: #000;
    color: #fff;
}

.duo-performance-layout {
    align-items: center;
    grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr);
    width: min(100%, 905px);
    gap: 50px;
}

.duo-performance-layout img {
    width: 100%;
    height: auto;
}

.duo-touch-layout {
    min-height: 620px;
    align-items: end;
    margin-top: 70px;
}

.duo-touch-layout .duo-split-copy {
    align-self: center;
    padding-right: 70px;
}

.duo-touch-layout img {
    width: min(100%, 430px);
    height: auto;
    justify-self: center;
}

@media (min-width: 768px) {
    .duo-dark {
        padding-top: 90px;
    }

    .duo-touch-layout {
        grid-template-columns: minmax(0, 400px) minmax(0, 455px);
        width: min(100%, 905px);
        column-gap: 50px;
        margin-inline: auto;
    }

    .duo-touch-layout .duo-split-copy,
    html[dir="rtl"] .duo-touch-layout .duo-split-copy {
        padding-inline: 0;
    }

    .duo-touch-layout .duo-split-copy {
        width: min(100%, 354px);
        justify-self: end;
    }

    .duo-performance-layout .duo-split-copy,
    .duo-touch-layout .duo-split-copy {
        position: relative;
        top: -20px;
    }

    html[dir="rtl"] .duo-touch-layout .duo-split-copy {
        justify-self: start;
    }
}

.duo-multitasking {
    padding-bottom: 60px;
}

.duo-multitasking > img {
    display: block;
    width: min(100%, 1000px);
    height: auto;
    margin: 50px auto 0;
}

.duo-prebook {
    padding-bottom: 0;
    background: #ffff;
}

.duo-prebook .duo-centered-copy {
    --duo-copy-width: 550px;
    position: relative;
    z-index: 2;
}

.duo-prebook a {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 10px 28px;
    border-radius: 14px;
    background: #2875f5;
    box-shadow: 0 18px 38px rgba(40, 117, 245, .22);
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.duo-prebook > img {
    display: block;
    width: min(100%, 760px);
    height: auto;
    margin: -18px auto 0;
}

html[dir="rtl"] .duo-split-copy {
    text-align: right;
}

html[dir="rtl"] .duo-battery-layout .duo-split-copy {
    padding-right: 54px;
    padding-left: 0;
}

html[dir="rtl"] .duo-touch-layout .duo-split-copy {
    padding-right: 0;
    padding-left: 70px;
}

@media (max-width: 767px) {
    .iphone-duo-page {
        padding-top: 56px;
    }

    .duo-centered-copy h2,
    .duo-split-copy h2 {
        text-wrap: balance;
    }

    .duo-centered-copy p,
    .duo-split-copy p {
        text-wrap: pretty;
    }

    .iphone-duo-page h1 {
        font-size: 34px;
    }

    .iphone-duo-page h2,
    .duo-eyebrow {
        font-size: 26px !important;
    }

    .duo-section {
        padding: 25px 20px;
    }

    .duo-hero {
        padding-top: 34px;
    }

    .duo-hero > img {
        width: 125%;
        max-width: none;
        margin-left: 0.5%;
    }

    .duo-display,
    .duo-design,
    .duo-dark {
        padding-bottom: 48px;
    }

    .duo-prebook {
        padding-bottom: 0;
    }

    .duo-display > img {
        width: 120%;
        max-width: none;
        margin-left: -10%;
    }

    .duo-camera-layout,
    .duo-battery-layout,
    .duo-performance-layout,
    .duo-touch-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .duo-camera-layout {
        display: flex;
        flex-direction: column;
        margin-top: 54px;
    }

    .duo-camera-layout .duo-split-copy {
        order: 1;
        padding: 0;
    }

    .duo-camera-left,
    .duo-camera-right {
        position: static;
        width: 70%;
        transform: none;
    }

    .duo-camera-left {
        order: 2;
        align-self: flex-start;
        margin-top: 30px;
    }

    .duo-camera-right {
        order: 3;
        align-self: flex-end;
        margin-top: -95%;
    }

    .duo-battery-layout {
        margin-top: 30px;
    }

    .duo-battery-layout img {
        order: 2;
        margin-top: 30px;
    }

    .duo-battery-layout .duo-split-copy,
    html[dir="rtl"] .duo-battery-layout .duo-split-copy,
    .duo-touch-layout .duo-split-copy,
    html[dir="rtl"] .duo-touch-layout .duo-split-copy {
        padding: 0;
    }

    .duo-split-copy {
        text-align: center !important;
    }

    .duo-split-copy p {
        margin-inline: auto;
    }

    .duo-dark {
        padding-top: 50px;
    }

    .duo-performance-layout {
        gap: 30px;
    }

    .duo-performance-layout .duo-split-copy {
        grid-row: 1;
        top: auto;
    }

    .duo-touch-layout {
        margin-top: 70px;
    }

    .duo-touch-layout img {
        margin-top: 30px;
    }

    .duo-touch-layout .duo-split-copy {
        top: auto;
    }

    .duo-multitasking > img {
        width: 100%;
        max-width: none;
        margin-left: 0.5%;
    }

    .duo-prebook > img {
        width: 98%;
        max-width: none;
        margin-left: 1.5%;
    }
}

/* Adobe XD composition refinements. */
.duo-hero > img {
    width: min(100%, 760px);
}

.duo-camera-layout {
    display: block;
    width: min(100%, 1300px);
    min-height: 1188px;
}

.duo-camera-copy,
.duo-battery-copy {
    position: absolute;
    z-index: 2;
    width: 28%;
}

.duo-camera-copy {
    top: 27px;
    left: 215px;
}

.duo-battery-copy {
    top: 850px;
    right: 14%;
}

.duo-camera-left {
    top: 314px;
    right: auto;
    left: 224px;
    width: 28%;
    transform: translate3d(0, var(--duo-camera-motion-y, 0px), 0);
    will-change: transform;
}

.duo-camera-right {
    top: 0;
    right: 17%;
    width: 28%;
    transform: translate3d(0, var(--duo-camera-motion-y, 0px), 0);
    will-change: transform;
}

.duo-camera-copy,
.duo-battery-copy {
    opacity: var(--duo-copy-opacity, 1);
    transform: translate3d(0, var(--duo-copy-shift, 0px), 0);
    will-change: opacity, transform;
}

.duo-camera-copy h2,
.duo-battery-copy h2 {
    font-size: clamp(34px, 2.5vw, 40px);
}

@media (max-width: 767px) {
    .duo-camera-layout {
        display: grid;
        grid-template-columns: 44% 56%;
        min-height: 0;
        row-gap: 0;
    }

    .duo-camera-copy,
    .duo-battery-copy {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        padding: 0;
    }

    .duo-camera-layout .duo-camera-copy {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        margin-bottom: 42px;
    }

    .duo-camera-left {
        position: static;
        grid-column: 1;
        grid-row: 3;
        align-self: start;
        justify-self: start;
        width: 100%;
        max-width: none;
        margin: -136% 0 0;
        transform: translate3d(0, var(--duo-camera-motion-y, 0px), 0);
    }

    .duo-camera-right {
        position: static;
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        justify-self: end;
        width: 82%;
        max-width: none;
        margin: 0;
        transform: translate3d(0, var(--duo-camera-motion-y, 0px), 0);
    }

    .duo-camera-layout .duo-battery-copy {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
        margin-top: 42px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .duo-camera-left,
    .duo-camera-right,
    .duo-camera-copy,
    .duo-battery-copy {
        transform: none;
        opacity: 1;
        will-change: auto;
    }
}

/* Final typography values shared by desktop and mobile. */
.iphone-duo-page,
.iphone-duo-page :where(h1, h2, h3, p, a, button, span) {
    font-family: "SF Pro Display", "SF Pro Icons", "AOS Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.iphone-duo-page h1,
.iphone-duo-page h2,
.iphone-duo-page .duo-eyebrow,
.iphone-duo-page .duo-camera-copy h2,
.iphone-duo-page .duo-battery-copy h2 {
    font-size: 30px;
    font-weight: 500;
}

.iphone-duo-page p,
.iphone-duo-page a,
.iphone-duo-page button,
.iphone-duo-page span,
.iphone-duo-page .duo-subtitle {
    font-size: 14px !important;
    font-weight: 400;
}

.iphone-duo-footer .footer-container {
    margin: 0 auto auto;
}

.duo-performance-layout h2 span,
.duo-touch-layout h2 span {
    display: block;
    font-size: 30px !important;
    font-weight: 500;
}
