.section-a {
    position: relative;
    height: var(--hero-height);

    
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);

    & h1 {
        margin: 7rem auto 2rem;
        max-width: 16em;
    }

    & h1,
    & p {
        text-align: center;
    }

    & p {
        max-width: 25em;
        margin: 2rem auto;
    }

    & .actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        position: relative;
        z-index: 1;
        & > * {
            width: fit-content;
        }
    }

    & code {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
        border-radius: 1em;
        background-color: rgb(from currentColor r g b / 0.04);
        backdrop-filter: blur(15px) saturate(1.5);

        box-shadow: inset 0 0 1px rgb(from currentColor r g b / 0.1);
        

        @supports (corner-shape: squircle) {
            border-radius: 2em;
            corner-shape: squircle;
        }
    }

    & + .section {
        margin-top: 0;
    }
}

.section-c {
    & h2 {
        max-width: 10em;
    }

    & p {
        max-width: 26em;
    }
}

.section-e {
    & p {
        max-width: 40em;
    }
}


demo-container {
    --demo-color: #283744;
    --demo-frame-background-color: #fff;
    --demo-frame-border: none;
    --demo-entry-color: #fff;
    --demo-entry-background-color: #283744;

    & file-pond {
        color-scheme: light;
    }
}

:where(:root[data-theme='dark']) {
    & demo-container {
        --demo-color: #fff;
        --demo-frame-background-color: #041824;
        --demo-frame-border: 1px solid #092230;
        --demo-entry-color: #fff;
        --demo-entry-background-color: #1b303c;

        & file-pond {
            color-scheme: dark;
        }
    }
}


demo-stage {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 50em;
    min-height: 5em;
    margin-top: 1em;

    & > stage-hook {
        
        position: absolute;
        display: block;
        width: 100%;
        height: 50vh;

        pointer-events: none;
    }
}


demo-container {
    display: block;
    transition: opacity 0.5s ease-in-out;

    &[state='loading'] {
        opacity: 0;
    }

    &[state='ready'] {
        opacity: 1;
    }

    &.layout-fill file-pond {
        max-width: 50em;
    }

    &.layout-wide file-pond {
        max-width: 30em;
    }

    &.grid-one-column file-pond::part(list) {
        display: grid;
        grid-template-columns: 1fr;
    }

    &.grid-two-columns file-pond::part(list) {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    &.grid-uneven-columns file-pond::part(list) {
        display: grid;
        grid-template-columns: 0.75fr 0.25fr;
    }

    &.grid-three-columns file-pond::part(list) {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    &.grid-tiles file-pond::part(list) {
        display: grid;
        grid-template-rows: 10em;
    }

    &.grid-tiles-alt file-pond::part(list) {
        display: grid;
        grid-template-rows: auto 10em;
    }
}


demo-stage[name='hero'] {
    & file-pond {
        max-width: 20em;
    }

    & demo-container.wide file-pond {
        max-width: 40em;
    }

    & demo-container.grid file-pond::part(entry-list) {
        display: grid;
        grid-template-columns: auto auto;
    }
}


demo-stage[name='springs'] {
    grid-column: 2 / 4;
    justify-self: stretch;
    min-height: 24em;

    & file-pond {
        max-width: 40em;
    }

    & demo-container.narrow {
        max-width: 20em;
    }
}

.logos {
    list-style: none;
    padding: 0;
    margin: 2em 0;
    color: black;

    & li:not(:has(a)),
    & a {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        font-weight: 600;
        text-decoration: none;
        color: currentColor;
        padding: 0.75em;
    }

    & li:has(a) {
        padding: 0;
    }

    & li {
        display: inline-block;
        margin: 0.5em;
    }

    & img {
        display: block;
        width: 1.75em;
        height: 1.75em;
        filter: brightness(0) var(--image-filter);
    }

    &.small {
        font-size: 0.875em;

        & a,
        & li {
            font-weight: 500;
        }
        & img {
            width: 1.5em;
            height: 1.5em;
        }
    }
}

:root[data-theme='dark'] {
    .logos {
        color: white;
    }
}

.testimonial {
    position: relative;
    z-index: 1;
    margin: 2em 0 0 1em;
    max-width: 22.5em;

    & p {
        line-height: 1.25;
        padding-top: 0.5em;
        font-size: 1.25em;
        font-family:
            Georgia,
            Times New Roman,
            Times,
            serif;
        font-style: italic;

        &:first-of-type::before {
            content: '\201C';
            font-style: italic;
            font-size: 6rem;
            line-height: 0.5;
            position: absolute;
            margin-left: -1.5rem;
            opacity: 0.2;
        }
    }

    & cite {
        display: flex;
        align-items: center;
        gap: 1em;
    }

    & img:first-of-type {
        filter: var(--image-filter);
        width: auto;
        height: 1.75em;
    }
    
}

.features-list {
    & li {
        display: inline-block;
        margin: 1em;
        max-width: 15em;
        vertical-align: top;
    }
}

.extension-groups {
    & h3 {
        font-size: var(--heading-size-l);
        text-transform: capitalize;
        margin-bottom: 0.5rem;
    }

    & h4 {
        font-size: var(--heading-size-m);
        margin-bottom: 0.5rem;
    }

    & p {
        font-size: 0.875em;
    }
}

.extension-groups,
.extension-group {
    padding: 0;
    margin: 0;
    list-style: none;
}

.extension-group {
    display: flex;
    gap: 1em;
    max-width: 100%;
    overflow-x: scroll;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    & > .pane {
        scroll-snap-align: start;
        margin: 0.25em;
        flex-shrink: 0;
        width: 12em;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--color-scrollbar, currentColor);
    }

    &[data-cloned] {
        & > .pane {
            opacity: 0;
        }
    }
}

