:root {
    --testing-green: #35ca75;
    --testing-blue: #0878f9;
    --testing-ink: #101114;
    --testing-muted: #68727d
}

.testing-page {
    overflow: hidden;
    background: #fff;
    color: var(--testing-ink);
    font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif
}

.testing-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto
}

.testing-kicker {
    margin: 0 0 16px;
    color: #168d69;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase
}

.testing-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #fff 0%, #fff 45%, #f0f9ff 74%, #e6f5ff 100%)
}

.testing-hero::after {
    content: "";
    position: absolute;
    right: -16%;
    bottom: -45%;
    width: 780px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 202, 117, .14), transparent 66%);
    pointer-events: none
}

.testing-hero-inner {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 36px;
    padding-block: 92px
}

.testing-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 580px
}

.testing-hero h1,
.testing-intro h2,
.testing-report-copy h2,
.testing-workflow h2,
.testing-certified-copy h2,
.testing-cta h2 {
    margin: 0;
    font-weight: 650;
    letter-spacing: -.047em;
    line-height: 1.02
}

.testing-hero h1 {
    font-size: clamp(54px, 6.3vw, 88px)
}

.testing-hero h1 span {
    color: #90979f
}

.testing-lead {
    max-width: 540px;
    margin: 26px 0 0;
    color: var(--testing-muted);
    font-size: 20px;
    line-height: 1.55
}

.testing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px
}

.testing-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease
}

.testing-button:hover {
    transform: translateY(-2px)
}

.testing-button--primary {
    background: #0a7bf7;
    color: #fff;
    box-shadow: 0 12px 28px rgba(10, 123, 247, .22)
}

.testing-button--secondary {
    border-color: #ccd2d8;
    background: #fff;
    color: #20252a
}

.testing-hero-art {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center
}

.testing-hero-art>img {
    position: relative;
    z-index: 2;
    width: 118%;
    max-width: none;
    transform: translateX(3%);
    filter: drop-shadow(0 28px 40px rgba(34, 72, 105, .13))
}

.testing-certified-pill {
    position: absolute;
    z-index: 3;
    right: 2%;
    bottom: 12%;
    width: 245px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 45px rgba(47, 93, 128, .17);
    backdrop-filter: blur(18px)
}

.testing-certified-pill img {
    display: block;
    width: 100%;
    height: auto
}

.testing-orbit {
    position: absolute;
    border: 1px solid rgba(10, 123, 247, .12);
    border-radius: 50%
}

.testing-orbit--one {
    width: 520px;
    aspect-ratio: 1
}

.testing-orbit--two {
    width: 390px;
    aspect-ratio: 1;
    border-color: rgba(53, 202, 117, .18)
}

.testing-intro {
    padding: 128px 0
}

.testing-narrow {
    max-width: 870px;
    text-align: center
}

.testing-intro h2,
.testing-report-copy h2,
.testing-workflow h2,
.testing-certified-copy h2,
.testing-cta h2 {
    font-size: clamp(42px, 5vw, 66px)
}

.testing-narrow>p:last-child {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--testing-muted);
    font-size: 19px;
    line-height: 1.65
}

.testing-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 72px
}

.testing-feature-card {
    position: relative;
    min-height: 650px;
    padding: 28px 34px 38px;
    border-radius: 28px;
    background: #f3f8fa;
    overflow: hidden
}

.testing-feature-card--dark {
    background: #101114;
    color: #fff
}

.testing-feature-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #168d69;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(35, 70, 90, .08)
}

.testing-feature-card--dark .testing-feature-number {
    background: #292b2f;
    color: #58d993
}

.testing-feature-image {
    height: 410px;
    display: grid;
    place-items: center
}

.testing-feature-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.testing-feature-image--contain img {
    width: 72%
}

.testing-feature-image--audio img {
    width: 82%;
    mix-blend-mode: screen
}

.testing-feature-card h3 {
    margin: 8px 0 10px;
    font-size: 28px;
    letter-spacing: -.03em
}

.testing-feature-card p {
    max-width: 480px;
    margin: 0;
    color: #6d7780;
    font-size: 16px;
    line-height: 1.55
}

.testing-feature-card--dark p {
    color: #a8adb4
}

.testing-report-section {
    padding: 118px 0 0;
    background: linear-gradient(180deg, #eef8ff 0%, #dceeff 100%)
}

.testing-report-copy {
    max-width: 860px;
    text-align: center
}

.testing-report-copy>p:last-child {
    max-width: 780px;
    margin: 24px auto 0;
    color: #536779;
    font-size: 18px;
    line-height: 1.65
}

.testing-report-visual {
    width: min(1440px, calc(100% - 32px));
    margin: 68px auto 0;
    border-radius: 34px 34px 0 0;
    overflow: hidden;
    box-shadow: 0 -10px 55px rgba(33, 91, 137, .08)
}

.testing-report-visual img {
    display: block;
    width: 100%;
    height: auto
}

.testing-workflow {
    padding: 130px 0
}

.testing-workflow-heading {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    gap: 80px
}

.testing-workflow-heading>p {
    margin: 0;
    color: var(--testing-muted);
    font-size: 18px;
    line-height: 1.65
}

.testing-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 64px
}

.testing-workflow-grid article {
    min-height: 250px;
    padding: 27px;
    border: 1px solid #e2e6e9;
    border-radius: 20px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease
}

.testing-workflow-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(23, 43, 61, .08)
}

.testing-workflow-grid span {
    color: #159970;
    font-size: 13px;
    font-weight: 800
}

.testing-workflow-grid h3 {
    margin: 42px 0 12px;
    font-size: 23px;
    letter-spacing: -.025em
}

.testing-workflow-grid p {
    margin: 0;
    color: var(--testing-muted);
    line-height: 1.55
}

.testing-certified-section {
    padding: 100px 0;
    background: #f5f7f8
}

.testing-certified-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 64px
}

.testing-certified-media {
    overflow: hidden;
    border-radius: 28px;
    background: #fff
}

.testing-certified-media img {
    display: block;
    width: 100%;
    height: auto
}

.testing-certified-copy {
    max-width: 500px
}

.testing-logo {
    display: block;
    width: 230px;
    height: auto;
    margin-bottom: 30px
}

.testing-certified-copy p {
    margin: 24px 0 0;
    color: var(--testing-muted);
    font-size: 18px;
    line-height: 1.65
}

.testing-certified-copy a {
    display: inline-block;
    margin-top: 28px;
    color: #0878e8;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none
}

.testing-cta {
    padding: 120px 0;
    background: #0878f9;
    color: #fff;
    text-align: center
}

.testing-cta-inner {
    max-width: 850px
}

.testing-cta .testing-kicker {
    color: #cbe6ff
}

.testing-cta p:not(.testing-kicker) {
    max-width: 700px;
    margin: 22px auto 30px;
    color: #d9ebff;
    font-size: 18px;
    line-height: 1.6
}

.testing-button--light {
    background: #fff;
    color: #086ddf;
    box-shadow: 0 14px 32px rgba(0, 38, 90, .2)
}

@media(max-width:900px) {
    .testing-container {
        width: min(100% - 32px, 700px)
    }

    .testing-hero-inner,
    .testing-certified-grid,
    .testing-workflow-heading {
        grid-template-columns: 1fr
    }

    .testing-hero {
        min-height: auto;
        text-align: center
    }

    .testing-hero-copy {
        margin: auto
    }

    .testing-actions {
        justify-content: center
    }

    .testing-hero-art {
        min-height: 400px
    }

    .testing-hero-art>img {
        width: 108%;
        transform: none
    }

    .testing-certified-pill {
        right: 4%;
        bottom: 8%;
        width: 210px
    }

    .testing-feature-grid {
        grid-template-columns: 1fr
    }

    .testing-feature-card {
        min-height: 610px
    }

    .testing-workflow-heading {
        gap: 25px
    }

    .testing-workflow-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .testing-certified-copy {
        max-width: none;
        text-align: center;
        order: -1
    }

    .testing-logo {
        margin-inline: auto
    }

    .testing-certified-grid {
        gap: 42px
    }
}

@media(max-width:600px) {
    .testing-container {
        width: calc(100% - 32px)
    }

    .testing-hero-inner {
        padding-block: 70px 38px
    }

    .testing-hero h1 {
        font-size: 49px
    }

    .testing-lead {
        font-size: 17px
    }

    .testing-hero-art {
        min-height: 290px
    }

    .testing-certified-pill {
        width: 170px;
        padding: 13px 15px
    }

    .testing-orbit--one {
        width: 330px
    }

    .testing-orbit--two {
        width: 240px
    }

    .testing-intro,
    .testing-workflow {
        padding-block: 82px
    }

    .testing-intro h2,
    .testing-report-copy h2,
    .testing-workflow h2,
    .testing-certified-copy h2,
    .testing-cta h2 {
        font-size: 40px
    }

    .testing-feature-grid {
        margin-top: 46px
    }

    .testing-feature-card {
        min-height: 520px;
        padding: 22px
    }

    .testing-feature-image {
        height: 330px
    }

    .testing-feature-image--contain img {
        width: 85%
    }

    .testing-report-section {
        padding-top: 82px
    }

    .testing-report-visual {
        width: calc(100% - 16px);
        margin-top: 44px;
        border-radius: 20px 20px 0 0
    }

    .testing-workflow-grid {
        grid-template-columns: 1fr
    }

    .testing-workflow-grid article {
        min-height: 220px
    }

    .testing-certified-section {
        padding-block: 76px
    }

    .testing-certified-grid {
        gap: 34px
    }

    .testing-logo {
        width: 190px
    }

    .testing-cta {
        padding-block: 82px
    }

    .testing-actions {
        flex-direction: column
    }

    .testing-button {
        width: 100%
    }
}

@media(prefers-reduced-motion:no-preference) {
    .testing-hero-copy {
        animation: testing-rise .7s cubic-bezier(.2, .8, .2, 1) both
    }

    .testing-hero-art {
        animation: testing-rise .8s .08s cubic-bezier(.2, .8, .2, 1) both
    }

    @keyframes testing-rise {
        from {
            opacity: 0;
            transform: translateY(22px)
        }

        to {
            opacity: 1;
            transform: none
        }
    }
}

/* Full-width testing story when embedded on the Used iPhones condition page. */
.testing-page--embedded {
    width: 100vw;
    margin: 110px calc(50% - 50vw) 0
}

.testing-hero h2 {
    margin: 0;
    font-size: clamp(54px, 6.3vw, 88px);
    font-weight: 650;
    letter-spacing: -.047em;
    line-height: 1.02
}

.testing-hero h2 span {
    color: #90979f
}

@media(max-width:600px) {
    .testing-hero h2 {
        font-size: 49px
    }

    .testing-page--embedded {
        margin-top: 76px
    }
}

/* Phonecheck story used inside the Used iPhones page. */
.phonecheck-story {
    width: 100vw;
    margin: 120px calc(50% - 50vw) 0;
    padding: 0 0 0px;
    background: #fff;
    color: #08090b;
    font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif
}

.phonecheck-story__intro {
    display: flex;
    min-height: 790px;
    flex-direction: column;
    align-items: center;
    padding: 0px 24px 0;
    text-align: center
}

.phonecheck-story__logo {
    width: min(430px, 80vw);
    height: auto
}

.phonecheck-story__intro h2 {
    margin: 42px 0 0;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.035em
}

.phonecheck-story__intro>p {
    max-width: 719px;
    margin: 22px auto 0;
    font-size: 18px;
    line-height: 1.5
}

.phonecheck-story__package {
    width: min(720px, 76vw);
    height: auto;
    margin-top: 35px
}

.phonecheck-story__panel,
.phonecheck-story__row {
    width: min(1110px, calc(100% - 48px));
    margin-inline: auto
}

.phonecheck-story__panel {
    display: grid;
    min-height: 470px;
    grid-template-columns: 44% 56%;
    align-items: center;
    padding: 34px 48px;
    border-radius: 34px;
    background: linear-gradient(180deg, #91c5f8 0%, #acd2f4 46%, #f5f7f9 100%)
}

.phonecheck-story__report {
    height: 400px;
    overflow: hidden
}

.phonecheck-story__report img {
    width: auto;
    height: 100%;
    max-width: none;
    transform: translateX(-2%)
}

.phonecheck-story__copy h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.2
}

.phonecheck-story__copy p {
    max-width: 560px;
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.48
}

.phonecheck-story__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px
}

.phonecheck-story__row--grade {
    min-height: 480px;
    padding: 60px 0 30px
}

.phonecheck-story__row--quality {
    min-height: 570px;
    padding: 20px 0 40px
}

.phonecheck-story__visual {
    display: grid;
    place-items: center
}

.phonecheck-story__visual img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain
}

.phonecheck-story__visual--grade img {
    width: 360px
}

.phonecheck-story__visual--quality img {
    width: 500px
}

.phonecheck-story__row--quality .phonecheck-story__copy {
    padding-left: 10px
}

.phonecheck-story__keep-together {
    white-space: nowrap
}

@media(max-width:800px) {
    .phonecheck-story {
        margin-top: 80px;
        padding-bottom: 70px
    }

    .phonecheck-story__intro {
        min-height: auto;
        padding-top: 0px;
        padding-bottom: 70px
    }

    .phonecheck-story__logo {
        width: min(350px, 82vw)
    }

    .phonecheck-story__intro h2,
    .phonecheck-story__copy h2 {
        font-size: 28px
    }

    .phonecheck-story__intro h2 {
        line-height: 1.35
    }

    .phonecheck-story__mobile-title-line {
        display: block
    }

    .phonecheck-story__intro>p,
    .phonecheck-story__copy p {
        font-size: 16px
    }

    .phonecheck-story__package {
        width: min(680px, 100%);
        margin-top: 30px
    }

    .phonecheck-story__panel,
    .phonecheck-story__row {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 34px
    }

    .phonecheck-story__panel {
        padding: 30px;
        border-radius: 24px
    }

    .phonecheck-story__report {
        height: auto
    }

    .phonecheck-story__report img {
        width: 100%;
        height: auto;
        transform: none
    }

    .phonecheck-story__row {
        padding: 37px 8px;
        min-height: 0
    }

    .phonecheck-story__row--grade .phonecheck-story__copy {
        order: 2
    }

    .phonecheck-story__visual--grade img {
        width: min(330px, 78vw)
    }

    .phonecheck-story__visual--quality img {
        width: min(460px, 100%)
    }

    .phonecheck-story__row--quality .phonecheck-story__copy {
        padding-left: 0
    }
}

.phonecheck-story__panel {
    width: min(1278px, calc(100% - 64px));
    height: 537px;
    aspect-ratio: 1278/537;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3px;
    padding: 0 clamp(58px, 5vw, 92px);
    border-radius: 34px;
    background: transparent url('/store/images/device-testing/device-history-panel.png') center/100% 100% no-repeat;
    box-sizing: border-box
}

.phonecheck-story__report {
    display: none;
    align-self: center;
    height: 400px;
    min-height: 0;
    margin: 0;
    place-items: center;
    overflow: visible
}

.phonecheck-story__report img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 97%;
    border-radius: 34px;
    clip-path: inset(0 round 34px);
    object-fit: contain;
    transform: none;
    filter: drop-shadow(0 18px 28px rgba(44, 91, 130, .08))
}

.phonecheck-story__panel .phonecheck-story__copy {
    grid-column: 2;
    max-width: 560px;
    align-self: center;
    justify-self: start
}

.phonecheck-story__row {
    gap: 48px
}

.phonecheck-story__row--grade {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr)
}

.phonecheck-story__row--quality {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr)
}

.phonecheck-story__row--grade .phonecheck-story__copy p,
.phonecheck-story__row--quality .phonecheck-story__copy p {
    max-width: 560px
}

@media(max-width:800px) {
    .phonecheck-story__copy {
        text-align: center
    }

    .phonecheck-story__copy p {
        margin-right: auto;
        margin-left: auto
    }

    .phonecheck-story__panel {
        width: calc(100% - 32px);
        height: auto;
        aspect-ratio: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding: 28px 26px 38px;
        background: linear-gradient(180deg, #91c5f8 0%, #acd2f4 46%, #f5f7f9 100%)
    }

    .phonecheck-story__panel .phonecheck-story__copy {
        grid-column: 1;
        width: 100%;
        max-width: none;
        align-self: start;
        justify-self: stretch
    }

    .phonecheck-story__panel .phonecheck-story__report {
        display: grid;
        width: min(300px, 82vw);
        height: auto;
        margin: 0 auto
    }

    .phonecheck-story__panel .phonecheck-story__report img {
        width: 100%;
        height: auto;
        max-height: none
    }

    .phonecheck-story__row--grade,
    .phonecheck-story__row--quality {
        grid-template-columns: 1fr;
        gap: 34px
    }
}
