:root {
    --carousel-height: 356px;
    --carousel-width: 477px;
    --border-radius: 20px;
    --blue: #0176AC;
    --carousel-gap: 40px;
    --carousel-gutter: 16px;
    --carousel-nav-size-desktop: 100px;
    --carousel-nav-size-mobile: 56px;
}


h1 {
    padding-top: 45px;
    padding-bottom: 0;
    margin-bottom: 0;
}

@media screen and (min-width: 1280px) {
    .paper.leaves {
        background-image: url('/images/schools/leaves/topleft-lossy.webp'), url('/images/schools/leaves/topright-lossy.webp'), url('/images/schools/leaves/flowers.webp'), url('/images/newhome/top/bg.webp');
        background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
        background-position: left top, right top, center top, center;
        background-size: 461px 350px, 439.5px 350px, 347px 105px, cover;
    }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    .paper.leaves {
        background-image: url('/images/schools/leaves/topleft-lossy.webp'), url('/images/schools/leaves/topright-lossy.webp'), url('/images/schools/leaves/flowers.webp'), url('/images/newhome/top/bg.webp');
        background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
        background-position: left top, right top, center top, center;
        background-size: 230px 175px, 219.75px 175px, 347px 105px, cover;
    }
}

@media screen and (max-width: 768px) {
    .paper.leaves {
        background-image: url('/images/schools/leaves/topleft-lossy.webp'), url('/images/schools/leaves/topright-lossy.webp'), url('/images/schools/leaves/flowers.webp'), url('/images/newhome/top/bg.webp');
        background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
        background-position: left top, right top, center top, center;
        background-size: 115px 87.5px, 109.875px 87.5px, 173.5px 52.5px, cover;
    }
}


section {
    max-width: 954px;
    margin-left: auto;
    margin-right: auto;
}

.desktop-columns,
.balanced-columns {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--carousel-gap);
    align-items: center;
}

.desktop-columns figure img,
.desktop-columns figure video {
    width: 100%;
}

@media screen and (min-width: 768px) {
    .desktop-columns .column:first-child {
        flex: 1.2;
    }

    .desktop-columns .column:last-child {
        flex: 1;
    }

    .desktop-columns {
        padding-top: 30px;
        padding-bottom: 30px;
        flex-direction: row;
        gap: 30px;
    }

    .balanced-columns {
        flex-direction: row;
        gap: 30px;
        align-items: center;
    }

    .balanced-columns .column {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .desktop-columns.reversed .column:nth-child(2) {
        order: 1;
    }

    .desktop-columns.reversed .column:nth-child(1) {
        order: 2;
    }
}

iframe,
video.fullsize,
img.fullsize {
    width: 100%;
    aspect-ratio: 16/9;
}

video {
    border-radius: var(--border-radius);
}

article.container {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media screen and (max-width: 1280px) {
    article.container section {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.widesection {
    width: 100%;
    padding-top: 152px;
    padding-bottom: 152px;
    background-color: var(--blue);
    text-align: center;
    color: var(--white);
}

.carousel {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    gap: var(--carousel-gap);
    padding-left: max(var(--carousel-gutter), calc(50vw - var(--carousel-width)));
    padding-right: var(--carousel-gutter);
    height: var(--carousel-height);
    position: relative;
    scrollbar-width: none;
    ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel {
    scroll-snap-type: x mandatory;
}

.carousel figure {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.align-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel figure img,
.carousel figure video {
    border-radius: var(--border-radius);
}

.balanced-columns figure img,
.balanced-columns figure video {
    border-radius: var(--border-radius);
}

.carousel-nav {
    position: relative;
    overflow: visible;
    top: 130px;
    text-align: right;
    z-index: 80;
    height: 0;
}

.carousel-nav button {
    width: var(--carousel-nav-size-desktop);
    height: var(--carousel-nav-size-desktop);
    background-color: transparent;
    border: none;
    color: transparent;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.carousel-nav.visible button {
    opacity: 1;
    pointer-events: auto;
}

.carousel-nav button.carousel-prev {
    left: 0;
    right: auto;
    background-image: url('/images/schools/arrow-left.webp');
}

.carousel-nav button.carousel-next {
    background-image: url('/images/schools/arrow-right.webp');
    right: 0;
    left: auto;
}

@media screen and (max-width: 768px) {
    .carousel-nav {
        top: 150px;
    }

    .carousel-nav button {
        width: var(--carousel-nav-size-mobile);
        height: var(--carousel-nav-size-mobile);
    }
}

@media (pointer: coarse) {
    .carousel-nav button {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease-in-out;
    }

    .carousel-nav.interacted button {
        opacity: 0;
        pointer-events: none;
    }
}


.carousel figure {
    max-height: var(--carousel-height);
    max-width: min(var(--carousel-width), calc(100vw - var(--carousel-gutter) * 2));
}

.carousel figure img {
    max-height: var(--carousel-height);
    max-width: min(var(--carousel-width), calc(100vw - var(--carousel-gutter) * 2));
}

.contain {
    object-fit: contain;
}

.balanced-columns figure img {
    max-height: var(--carousel-height);
    max-width: var(--carousel-width);
}

.balanced-columns figure video {
    max-height: var(--carousel-height);
    max-width: var(--carousel-width);
}

.carousel figure video {
    max-height: var(--carousel-height);
    max-width: var(--carousel-width);
}

.text-center {
    text-align: center;
}

.contact-button {
    background: var(--white);
    color: var(--dark-gray);
    width: auto;
    font-weight: 600;
    padding: 0.7em 2em;
    border-radius: 2em;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}

.spacer-10 {
    height: 10px;
}

.spacer-20 {
    height: 20px;
}

.spacer-30 {
    height: 30px;
}

.spacer-40 {
    height: 40px;
}

.spacer-50 {
    height: 50px;
}

.spacer-60 {
    height: 60px;
}

.spacer-70 {
    height: 70px;
}

.spacer-80 {
    height: 80px;
}

.spacer-90 {
    height: 90px;
}

.spacer-100 {
    height: 100px;
}

.spacer-110 {
    height: 110px;
}

.spacer-120 {
    height: 120px;
}

.reverse-order-on-mobile {
    display: flex;
    flex-direction: column;

    @media screen and (max-width: 768px) {
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 768px) {
    #differentiators article {
        padding-bottom: 20px;
        padding-top: 20px;
    }
}

#read-the-research {
    text-align: center;
    margin-top: 40px;
}

#read-the-research a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--brown);
}

.tops,
.bottoms {
    position: relative;
    background-color: hsl(180, 11%, 98%);
}

article.container.pt {
    padding-top: 100px;
}

article.container.pb {
    padding-bottom: 100px;
}

.bottoms::after,
.tops::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 0;
    background-size: 1194px 100px;
    background-repeat: repeat-x;
}

.bottoms::after {
    bottom: -100px;
    background-image: url('/images/schools/cloud-bottoms.webp');
    background-position: bottom;
}

.tops::before {
    top: -100px;
    background-image: url('/images/schools/cloud-tops.webp');
    background-position: top;
}

.language-changing {
    position: relative;
}

.language-changing .overlay {
    position: absolute;
    top: 10px;
    left: 0;
    height: 100px;
    object-fit: contain;
    object-position: 85% 50%;
    width: 100%;
    max-width: 450px;
}

.step-icon {
    width: 157px;
    height: 157px;
    margin-right: 10px;
    display: inline-block;
}

@media screen and (max-width: 768px) {
    .step-icon {
        width: 107px;
        height: 107px;
    }
}

#how-it-works h2 {
    margin-bottom: 0;
}

#how-it-works h3 {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

#how-it-works h3 span {
    padding-bottom: 25px;
}

.h-450 {
    height: 450px;
}

.h-500 {
    height: 500px;
}

.h-550 {
    height: 550px;
}

.h-600 {
    height: 600px;
}

@media screen and (max-width: 768px) {
    .m-350 {
        height: 350px !important;
    }

    .m-400 {
        height: 400px !important;
    }

    .m-450 {
        height: 450px !important;
    }

    .m-500 {
        height: 500px !important;
    }

    .m-550 {
        height: 550px !important;
    }
}

#cta-title {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    #cta-title {
        max-width: 300px;
    }
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__appstore-link {
    display: inline-flex;
    width: fit-content;
}

.footer__appstore-link:hover {
    opacity: 0.85;
}

.footer__appstore-badge {
    height: 48px;
    width: auto;
}

.footer__appstore-link:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 8px;
}