.home {
    --home-space-2xl: 4rem;
    --home-space-xl: 4rem;
    --home-space-lg: 3.5rem;
    --home-space-md: 3rem;
    color: var(--color-gray-100);
}

.home p {
    margin: 0;
}

.home-title {
    margin: 0;
    color: var(--color-dark-blue-100);
    font-size: var(--text-h4);
    font-variation-settings: var(--opsz-medium);
    font-weight: 600;
    line-height: var(--leading-h4);
    text-wrap: pretty;
}

.home-text {
    font-size: var(--text-body-l);
    line-height: var(--leading-body-l);
}

.home-heading {
    display: grid;
    justify-items: center;
    text-align: center;
}

.home-heading .home-text {
    margin-top: 1.5rem;
}

.home-hero {
    position: relative;
    overflow: clip;
    margin-top: calc(-1 * var(--site-header-height));
    padding-top: calc(var(--site-header-height) + 3rem);
    border-radius: 0 0 min(7.5rem, 6.25vw) min(7.5rem, 6.25vw);
    background: linear-gradient(180deg, #e6f0f9 0%, #f6f7fb 100%);
}

.home-hero__content {
    display: grid;
    justify-items: center;
    gap: 2rem;
    text-align: center;
}

.home-hero__visual {
    width: min(75rem, 100% - 2rem);
    margin: 3rem auto 0;
}

/* The illustration is exported on an opaque #f4f7fb fill; fading its edges hides the seam
   against the hero gradient. */
.home-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
        linear-gradient(180deg, transparent, #000 4%, #000 92%, transparent);
    mask-composite: intersect;
}

.home-intro {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    margin-top: var(--home-space-2xl);
}

.home-intro__text {
    display: grid;
    justify-items: start;
    gap: 2rem;
}

.home-intro__body {
    display: grid;
    gap: 1rem;
}

.home-intro__photo {
    display: block;
    width: 100%;
    max-width: 37.9375rem;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 1.5rem;
    background: #f4f7fb;
}

.home-features {
    margin-top: var(--home-space-md);
    padding-block: var(--home-space-lg) var(--home-space-xl);
    background: linear-gradient(169.08deg, #ffffff 33.471%, #cfe3ff 89.969%, #87bfff 108.89%);
}

.home-features__content {
    max-width: 78.875rem;
    margin-inline: auto;
}

.home-features__list {
    display: grid;
    gap: 1.5rem;
    margin: 4rem 0 0;
    padding: 0;
    list-style: none;
}

.home-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    background: var(--color-white);
    text-align: center;
}

.home-feature__icon {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.5rem;
    background: var(--color-blue-50);
}

.home-feature__body {
    display: grid;
    gap: 1rem;
}

.home-feature__title {
    margin: 0;
    color: var(--color-dark-blue-100);
    font-size: var(--text-h5);
    line-height: var(--leading-h5);
}

.home-plans {
    padding-block: var(--home-space-xl);
}

.home-plans .home-heading .home-text {
    margin-top: 1rem;
}

.home-plans__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 4rem;
}

.home-plans__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-dark-blue-50);
    border-radius: 2.8125rem;
    background: none;
    color: var(--color-dark-blue-75);
    font-variation-settings: var(--opsz-medium);
    font-weight: 500;
}

.home-plans__tab:hover {
    border-color: var(--color-blue-300);
    color: var(--color-blue-300);
}

.home-plans__tab[aria-selected="true"] {
    border-color: var(--color-blue-300);
    background: var(--color-blue-300);
    color: var(--color-white);
    font-weight: 600;
}

.home-plans__tab:focus-visible {
    outline: 2px solid var(--color-blue-300);
    outline-offset: 2px;
}

.home-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2.5rem 1rem;
    border: 1px solid var(--color-blue-75);
    border-radius: 1.5rem;
    background: var(--color-blue-50);
    text-align: center;
}

.home-plan[hidden] {
    display: none;
}

.home-plan__heading {
    display: grid;
    gap: 1rem;
}

.home-plan__title {
    margin: 0;
    color: var(--color-dark-blue-100);
    font-size: var(--text-h4);
    font-variation-settings: "opsz" 36;
    line-height: normal;
}

.home-plan__chart {
    display: block;
    width: 48.875rem;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-blue-75);
    border-radius: 1.5rem;
    background: #f4f7fb;
}

.home-support {
    position: relative;
    padding-block: 2.5rem var(--home-space-xl);
}

.home-support__content {
    display: grid;
    gap: 3rem;
}

.home-support__intro {
    display: grid;
    justify-items: start;
    gap: 1.5rem;
}

.home-support__art {
    display: none;
}

.home-faq {
    display: grid;
    align-content: start;
    gap: 1.5rem;
}

.home-faq__item {
    border: 1px solid var(--color-blue-75);
    border-radius: 0.5rem;
}

.home-faq__item[open] {
    background: rgb(240 246 255 / 0.94);
}

.home-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: inherit;
    color: var(--color-dark-blue-100);
    font-size: var(--text-h7);
    font-variation-settings: var(--opsz-medium);
    font-weight: 500;
    line-height: var(--leading-h7);
    list-style: none;
    cursor: pointer;
}

.home-faq__item summary::-webkit-details-marker {
    display: none;
}

.home-faq__item summary:focus-visible {
    outline: 2px solid var(--color-blue-300);
    outline-offset: 2px;
}

.home-faq__item[open] summary {
    padding-bottom: 1rem;
}

.home-faq__item summary .icon {
    width: 1.75rem;
    height: 1.75rem;
}

.home-faq__item p {
    padding: 0 1.25rem 1.25rem;
}

.home-cta {
    margin-bottom: 3rem;
}

.home-cta__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(0deg, #00c7ce 0%, #0054e6 100%);
    color: var(--color-white);
    text-align: center;
}

.home-cta__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../images/home/cta-water.webp") left top / cover no-repeat;
    opacity: 0.18;
    mix-blend-mode: lighten;
}

.home-cta__panel .home-title {
    max-width: 41.5rem;
    color: var(--color-white);
}

.home-cta__panel .home-text {
    max-width: 37.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 48rem) {
    .home {
        --home-space-2xl: 7.5rem;
        --home-space-xl: 6rem;
        --home-space-lg: 5rem;
        --home-space-md: 4rem;
    }

    .home-title {
        font-size: var(--text-h2);
        line-height: var(--leading-h2);
    }

    .home-hero {
        padding-top: calc(var(--site-header-height) + 5rem);
    }

    .home-hero__visual {
        margin-top: 4.9375rem;
    }

    .home-plans__tabs {
        gap: 1rem;
    }

    .home-plan {
        padding-inline: 2rem;
    }

    .home-faq__item summary {
        padding: 2rem;
        font-size: var(--text-h6);
        line-height: var(--leading-h6);
    }

    .home-faq__item[open] summary {
        padding-bottom: 1.5rem;
    }

    .home-faq__item p {
        padding: 0 2rem 2rem;
    }

    .home-cta {
        margin-bottom: 4.5rem;
    }

    .home-cta__panel {
        padding: 5rem 2.5rem;
    }
}

@media (min-width: 64rem) {
    .home-hero__title {
        white-space: pre-line;
    }

    .home-features__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-feature {
        padding-inline: 2.5rem;
    }

    .home-plan {
        padding-inline: 0;
    }
}

@media (min-width: 77.5rem) {
    .home {
        --home-space-2xl: 12.5rem;
        --home-space-xl: 10rem;
        --home-space-lg: 7.5rem;
        --home-space-md: 5rem;
    }

    .home-title {
        font-size: var(--text-h1);
        line-height: var(--leading-h1);
    }

    .home-intro {
        grid-template-columns: minmax(0, 778fr) minmax(0, 607fr);
        column-gap: 4rem;
    }

    .home-plans__tabs {
        gap: 1.5rem;
    }

    .home-plans__tab {
        padding: 1.5rem 2rem;
        font-size: var(--text-h6);
        line-height: var(--leading-h6);
    }

    .home-plans__tab .icon {
        width: 2rem;
        height: 2rem;
    }

    .home-support::before {
        content: "";
        position: absolute;
        top: 18.9375rem;
        left: -34.625rem;
        z-index: -1;
        width: 61.1875rem;
        height: 61.1875rem;
        background: url("../images/home/page-glow.svg") center / contain no-repeat;
        pointer-events: none;
    }

    .home-support__content {
        grid-template-columns: minmax(0, 619fr) minmax(0, 748fr);
        column-gap: 4rem;
    }

    .home-support__art {
        position: relative;
        display: block;
        width: 21.5273rem;
        height: 19.6875rem;
        margin-top: 1.5rem;
    }

    .home-support__art img {
        position: absolute;
        display: block;
        height: auto;
    }

    .home-support__glow {
        top: 0.7881rem;
        left: -3.3156rem;
        width: 31.0938rem;
    }

    .home-support__question {
        top: 0;
        left: 0;
        width: 16.0625rem;
    }
}

@media (min-width: 90rem) {
    .home-intro {
        column-gap: 8.4375rem;
    }

    .home-feature {
        padding-inline: 5rem;
    }

    .home-support__content {
        column-gap: 9.5625rem;
    }
}
