:root {
    --light-blue: #a5cbdd;
    --light-green: #b8dda5;
    --dark-green: #3a930e;
    --dark-blue: #0e6993;
    --darker-green: #266307;
}

@font-face {
    font-display: swap;
    font-family: 'Urbanist';
    font-style: normal;
    font-weight: 500;
    src: url("/assets/urbanist-v15-latin-500-bf1e8590.woff2") format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Urbanist';
    font-style: italic;
    font-weight: 500;
    src: url("/assets/urbanist-v15-latin-500italic-134ec9d1.woff2") format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Urbanist';
    font-style: normal;
    font-weight: 700;
    src: url("/assets/urbanist-v15-latin-700-9e8d6844.woff2") format('woff2');
}

html {
    font-family: 'Urbanist', Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
    font-size: 18px;
    font-weight: 500;
}

body {
    margin: 0;
}

a {
    color: var(--dark-green);
    font-weight: bold;
    text-decoration-thickness: 2px;
}

img {
    max-width: 100%;
}

button, .button {
    font-family: inherit;
    font-size: 1em;
    color: white;
    font-weight: 700;
    background-color: var(--dark-green);
    border-radius: 10px;
    appearance: none;
    padding: 0.5em 2em;
    border: 0;
    box-shadow: 2px 2px 1px var(--darker-green);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;

    &.big {
        font-size: 1.3em;
    }

    &:hover {
        transform: translate(-1px, -1px);
        box-shadow: 3px 3px 1px var(--darker-green);
    }

    &:active {
        transform: translate(1px, 1px);
        box-shadow: 1px 1px 1px var(--darker-green);
    }
}

#homepage aside#manage-account {
    background-color: white;
    padding: 0.5em 1em;
    text-align: center;
}

@media screen and (min-width: 700px) {
    #homepage aside#manage-account {
        text-align: right;
    }
}

#homepage section#intro {
    background-color: var(--light-blue);

    .inner {
        box-sizing: border-box;
        max-width: 1280px;
        padding: 5%;
        margin: auto;
        flex-wrap: wrap;
    }

    .left {
        flex: 1 0 320px;
        flex-direction: column;
        text-align: center;

        img {
            width: 360px;
        }

        h1 {
            font-size: 1.8em;
            margin: 0.5em 0 0 0;
            -webkit-text-stroke: 1px black;
            background-image: url("/assets/bin-hero-342eadfa.png");
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 400px;
            text-shadow: 0 0 4px white;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        p {
            font-size: 1.222em;
        }

        button {
            margin-bottom: 1em;
            align-self: center;
        }

        .fine-print {
            margin-top: auto;
            font-size: 0.8888em;
        }
    }

    .sparkly-bin {
        display: none;
        flex: 1 0 320px;
        align-items: center;
        justify-content: center;

        img {
            width: 515px;
        }
    }
}

@media screen and (min-width: 700px) {
    #homepage section#intro {
        .inner {
            display: flex;
            flex-wrap: nowrap;
            padding: 60px;
        }
        .left {
            display: flex;
            text-align: left;
            h1 {
                display: block;
                min-height: 0;
                font-size: 3em;
                background: none;
                text-shadow: none;
            }

            button {
                margin-bottom: 1em;
                align-self: flex-start;
            }
        }
        .sparkly-bin {
            display: flex;
        }
    }
}

#homepage section#how-it-works {
    > * {
        max-width: 1040px;
        padding: 1em 5%;
        box-sizing: border-box;
        margin: auto;
    }

    h1 {
        font-size: 2.6666em;
        font-weight: 700;
        text-align: center;
    }

    h2 {
        font-size: 1.5555em;
        font-weight: 500;
        text-align: center;
    }

    .block {
        overflow: auto;
    }

    p {
        font-size: 1.222em;
        line-height: 1.4;
    }

    img {
        width: 44%;

        &.left {
            float: left;
            margin: 0 5% 0 0;
        }
        &.right {
            float: right;
            margin: 0 0 0 5%;
        }
    }

    .step {
        display: flex;

        img {
            flex: 31%;
            border-radius: 10px;
            object-fit: contain;
        }
    }
}

/* How it works steps section */
#homepage section#how-it-works-steps {
    padding: 4em 5%;

    > h2 {
        text-align: center;
        font-size: 2.6666em;
        font-weight: 700;
        margin-bottom: 2em;
        max-width: 1040px;
        margin-left: auto;
        margin-right: auto;
    }

    .steps-container {
        max-width: 1040px;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 3em;
    }

    .step {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 3em;
        align-items: center;
    }

    .step-image {
        display: flex;
        justify-content: center;
        
        img {
            width: 100%;
            max-width: 400px;
            height: auto;
            border-radius: 1em;
            object-fit: contain;
        }
    }

    .step-text {
        h3 {
            font-size: 1.8em;
            font-weight: 700;
            margin-bottom: 1em;
        }

        p {
            font-size: 1.1em;
            line-height: 1.6;
            margin-bottom: 1em;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

@media screen and (max-width: 768px) {
    #homepage section#how-it-works-steps {
        .step {
            grid-template-columns: 1fr;
            gap: 2em;
        }

        .step-image img {
            max-width: 300px;
        }
    }
}

#homepage section#pricing {
    background-color: var(--light-green);
    padding: 4em 5%;

    .inner {
        max-width: 1040px;
        margin: auto;
    }

    h2 {
        text-align: center;
        font-size: 2.6666em;
        font-weight: 700;
        margin-bottom: 2em;
    }

    .pricing-content {
        display: flex;
        gap: 3em;
        align-items: start;
        flex-wrap: wrap;
    }

    .pricing-card {
        flex: 1 1 400px;
        background: white;
        border-radius: 1.5em;
        padding: 2em;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        max-width: 450px;
        margin: 0 auto;
    }

    .price-display {
        margin-bottom: 1.5em;
    }

    .price-amount {
        font-size: 3.5em;
        font-weight: 700;
        line-height: 1;
    }

    .price-period {
        font-size: 1.25em;
        color: #666;
        margin-top: 0.25em;
    }

    .price-includes {
        margin-bottom: 2em;
        
        p {
            margin: 0.5em 0;
            font-size: 1.1em;
        }
    }

    .frequency-section {
        margin-bottom: 2em;

        > p {
            margin-bottom: 1em;
            font-size: 1.1em;
        }
    }

    .frequency-options {
        display: flex;
        gap: 0.75em;
        justify-content: center;
        flex-wrap: wrap;
    }

    .frequency-pill {
        background: #b7b7b7;
        border: none;
        padding: 0.5em 1.5em;
        border-radius: 2em;
        font-size: 1em;
    }

    .sign-up-btn {
        width: 100%;
        margin-top: 1em;
    }

    .pricing-benefits {
        flex: 1 1 400px;
        display: flex;
        flex-direction: column;
        gap: 2em;
    }

    .benefit {
        h3 {
            font-size: 1.5em;
            margin-bottom: 0;
        }

        p {
            font-size: 1.1em;
            line-height: 1.5;
        }
    }
}

@media screen and (max-width: 900px) {
    #homepage section#pricing {
        .pricing-content {
            flex-direction: column;
            align-items: center;
        }
        
        .pricing-benefits {
            max-width: 600px;
        }
    }
}

/* FAQs Section */
#homepage section#faqs {
    padding: 4em 5%;

    .faqs-container {
        max-width: 900px;
        margin: auto;
    }

    h2 {
        text-align: center;
        font-size: 2.6666em;
        font-weight: 700;
        margin-bottom: 2em;
    }

    .faq-list {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    .faq-item {
        border-radius: 1em;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .faq-question {
        width: 100%;
        text-align: left;
        padding: 1.5em;
        background: none;
        border: none;
        font-size: 1.25em;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 1em;
        transition: background-color 0.2s;

        &:hover {
            background-color: #f5f5f5;
        }

        .faq-arrow {
            font-size: 0.8em;
            transition: transform 0.2s;
        }
    }

    .faq-answer {
        display: none;
        padding: 0 1.5em 1.5em 3.5em;

        p {
            font-size: 1.1em;
            line-height: 1.5;
        }
    }

    .faq-item.open {
        .faq-arrow {
            transform: rotate(90deg);
        }
    }
}

/* Call to Action Section */
#homepage section#cta {
    background-color: var(--light-blue);
    padding: 4em 5%;
    text-align: center;

    .cta-content {
        max-width: 800px;
        margin: auto;
    }

    h2 {
        font-size: 2.5em;
        font-weight: 700;
        margin-bottom: 0.5em;
    }

    p {
        font-size: 1.25em;
        margin-bottom: 1.5em;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    button {
        box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    }
}

/* Footer */
#homepage footer#main-footer {
    background-color: #2a2a2a;
    color: white;
    padding: 3em 5%;

    .footer-content {
        max-width: 1200px;
        margin: auto;
    }

    .footer-columns {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 3em;
        margin-bottom: 3em;
    }

    h3 {
        font-size: 1.5em;
        margin-bottom: 1em;
    }

    p {
        line-height: 1.6;
        margin-bottom: 0.75em;
    }

    a {
        color: var(--light-green);
        text-decoration: none;
        transition: color 0.2s;

        &:hover {
            color: white;
            text-decoration: underline;
        }
    }

    .contact-info p {
        display: flex;
        align-items: center;
        gap: 0.5em;
    }

    .certifications {
        margin-top: 1em;
        
        p {
            font-size: 0.9em;
            margin-bottom: 0.5em;
        }
    }

    .footer-bottom {
        border-top: 1px solid #444;
        padding-top: 2em;
        text-align: center;
        
        p {
            color: #999;
            font-size: 0.9em;
            margin: 0;
        }
    }
}

/* Signup Modal */
.signup-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.signup-modal-overlay.active {
    display: flex;
}

.signup-modal {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 90%;
    max-height: 700px;
    background: white;
    border-radius: 1em;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.signup-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    background: white;
    border: 2px solid #ddd;
    font-size: 1.2em;
    cursor: pointer;
    color: #666;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.signup-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1em;
    overflow: hidden;
}