/* Newsletter Sign-up */

/* General flex layout, single-column as base */
#mc_embed_shell #mc_embed_signup_scroll {
    display: flex;
    flex-direction: column;
    gap: var(--zero-point-five-spacer);
}
/* De-style everything first with no priority */
#mc_embed_shell input[type="email"],
#mc_embed_shell input[type="submit"] {
    appearance: none;
    background: none;
    padding: 0;
    margin: 0;
    border: 0;
    font: inherit;
    line-height: 1;
    width: fit-content;
    height: fit-content;
    border-radius: 0 !important;
    color: inherit;
}
/* Re-style selectively as a base */
#mc_embed_shell input[type="email"] {
    border-bottom: 1px solid;
}
#mc_embed_shell input[type="submit"] {
    border: 1px solid;
    padding: var(--zero-point-five-spacer);
}
/* Remove padding/margins on inline messages so that they fall back on flex settings */
#mc_embed_shell .mce_inline_error {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    color: inherit !important;
    width: 100%;
    font: inherit !important;
}
/* Default field group styles, basic */
#mc_embed_shell .mc-field-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--zero-point-five-spacer);
}

/* Interface Scroll */
/* .interface-scroll {
    position: sticky;
    top: 0;
    transition: background 5s ease;
    .view {
        width: 100%;
        height: 125vh;
        .view-inner {
            position: fixed;
            transition: transform 0.5s ease, top 0.5s ease;
            top: 150%;
            transform: translateY(0%) !important;
        }
        &&.active {
            .view-inner {
                top: 50%;
                transform: translateY(-50%) !important;
            }
        }
        &&.previous {
            .view-inner {
                top: -150%;
                transform: translateY(-100%) !important;
            }
        }
    }
}
     */
.interface-scroll-outer {
    position: relative;
}
.interface-scroll {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    .toc {
        a {
            display: flex;
            transition: all 0.2s ease;
            position: relative;
            &&::before {
                    content: url('../icons/x.svg');
                    position: absolute;
                    width: 12px;
                    height: 12px;
                    left: 5px;
                    opacity: 0;
                    transition: all 0.2s ease;
                    z-index: 999;
                }
            &&.active {
                background: linear-gradient(0deg, rgba(109, 109, 246, 0.10) 0%, rgba(109, 109, 246, 0.10) 100%), rgba(255, 255, 255, 0.85) !important;
                padding-left: 22px !important;
                &&::before {
                    opacity: 1;
                }
            }
        }
    }
    .toc-item {
        cursor: pointer;
    }
    .splash-view {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .splash-headline {
        font-size: clamp(2rem, 5vw, 4rem);
        line-height: 1.1;
    }
    .view {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100vh;
        .view-inner {
            width: 100%;
            height: 100vh;
        }
        /* If view has dark/light color mode selected, assign variables for use */
        &&[data-color="dark"] {
            --backdrop-color: var(--wp--preset--color--translucent-black-5);
            hr {
                border-color: var(--wp--preset--color--translucent-black-60);
            }
            @media screen and (max-width: 781px) {
                --backdrop-color: var(--wp--preset--color--translucent-white-60);
            }
        }
        &&[data-color="light"] {
            --backdrop-color: var(--wp--preset--color--translucent-white-5);
            hr {
                border-color: var(--wp--preset--color--translucent-white-60);
            }
            @media screen and (max-width: 781px) {
                --backdrop-color: var(--wp--preset--color--translucent-black-60);
            }
        }
        .text-col {
            @media screen and (max-width: 781px) {
                position: absolute;
                bottom: calc(var(--header-height) + var(--one-point-five-spacer));
                width: calc(100% - 2 * var(--one-point-five-spacer));
                left: 50%;
                transform: translateX(-50%);
                backdrop-filter: blur(12.5px);
                border-radius: 5px;
                background-color: var(--backdrop-color);
                padding: var(--one-point-five-spacer);
                .has-large-font-size,
                .has-large-font-size * {
                    font-size: 0.875rem !important;
                    @media screen and (max-width: 479px) {
                        font-size: 1rem !important;
                    }
                }
            }
            .list {
                /* Container for 'list' on larger screens */
                @media screen and (min-width: 782px) {
                    padding: var(--one-point-five-spacer);
                    border-radius: 5px;
                    background-color: var(--backdrop-color);
                    hr:first-child {
                        display: none;
                    }
                }
            }
        }
    }
}

.user-showcase {
    overflow: hidden;
    h2 {
        transition: backdrop-filter 0.3s ease-in-out;
        --gradient: black 90%, transparent 99%;
        mask-image: radial-gradient(var(--gradient));
        -webkit-mask-image: radial-gradient(var(--gradient));
    }
    .text-cta {
        @media screen and (min-width: 782px) {
            &&:hover {
                z-index: 1000 !important;
                backdrop-filter: blur(5px);
            }
        }
        @media screen and (max-width: 781px) {
            backdrop-filter: blur(5px);
        }
    }
    .logo-link {
        backdrop-filter: blur(12.5px);
        img {
            width: 240px;
            @media screen and (max-width: 781px) {
                width: 160px;
            }
        }
    }
}

.post-to-payment {
    svg {
        width: 32px;
        height: 32px;
        @media screen and (max-width: 781px) {
            width: 20px;
            height: 20px;
        }
    }
}

.built-for-block {
    .secondary-image {
        transform: translateY(-50%);
        @media screen and (max-width: 781px) {
            transform: translateY(-25%);
        }
        @media screen and (max-width: 479px) {
            transform: translateY(-15%);
        }
    }
}