/* Incremental homepage sections. The original theme remains in styles.css. */
.hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-bottom: 24px;
}

.hero > .container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero .hero-subtitle {
    margin-bottom: 24px;
}

.hero-ctas {
    margin-bottom: 0;
}

.hero-savings {
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

.hero-savings strong {
    color: var(--black);
}

.hero-savings-note {
    margin: 12px 0 32px;
    color: var(--gray-500);
    font-size: 12px;
}

.hero-savings-note a,
.faq-section a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-customers {
    margin-top: auto;
    padding-top: 64px;
}

.hero-customers-label {
    margin: 0 0 20px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-customers-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 88px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-customers-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.hero-customers-logos a:hover img {
    opacity: 0.9;
}

.hero-customers-logos img {
    display: block;
    width: auto;
    max-width: 175px;
    max-height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.hero-customers-logos img[alt="Glorri"] {
    max-width: 150px;
    max-height: 43px;
}

/* Four service cards retain the original card and button styles. */
.pricing-grid-expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    margin-inline: auto;
}

.pricing-grid-expanded .pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-grid-expanded .pricing-header {
    min-height: 120px;
}

.pricing-grid-expanded .pricing-features {
    flex-grow: 1;
}

.pricing-grid-expanded .price-period {
    width: 100%;
    margin-left: 0;
}

.pricing-billing-note {
    max-width: 760px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 13px;
}

/* Native FAQ disclosures, adapted to the original typography and borders. */
.faq-section {
    padding: 120px 0;
    scroll-margin-top: 64px;
}

.faq-list {
    max-width: 850px;
    margin-inline: auto;
    border-top: 1px solid var(--gray-200);
}

.faq-list details {
    border-bottom: 1px solid var(--gray-200);
    scroll-margin-top: 88px;
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    color: var(--black);
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: '−';
}

.faq-list summary:focus-visible,
.faq-section a:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
}

.faq-answer {
    padding: 0 40px 24px 0;
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.8;
}

.faq-answer p + p {
    margin-top: 16px;
}

.faq-docs-link {
    margin-top: 32px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .pricing-grid-expanded {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .pricing-grid-expanded {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .pricing-grid-expanded .pricing-header {
        min-height: 0;
    }

    .faq-section {
        padding-block: 80px;
    }

    .faq-list summary {
        font-size: 16px;
        gap: 16px;
    }

    .faq-answer {
        padding-right: 0;
    }
}

@media (max-width: 560px) {
    .hero-savings {
        font-size: 16px;
    }

    .hero-savings p + p {
        margin-top: 8px;
    }

    .hero-customers-logos {
        gap: 32px 56px;
    }

    .hero-customers-logos img {
        max-height: 35px;
    }
}
