/* Shared content edges for the overview and every feature composition.
   Width uses the containing block so scrollbars never shift a section. */
:root {
    --page-inline-padding: 24px;
    --page-frame-max: 620px;
    --page-content-width: min(calc(var(--page-frame-max) - 2 * var(--page-inline-padding)), calc(100% - 2 * var(--page-inline-padding)));
}
@media (min-width: 740px) and (max-width: 1024px) {
    :root { --page-frame-max: 1000px; }
}
@media (min-width: 740px) and (max-width: 1024px) and (min-height: 600px) {
    :root { --page-frame-max: 1024px; --page-inline-padding: 32px; }
}
@media (min-width: 1025px) {
    :root {
        --page-inline-padding: 44px;
        --page-frame-max: 1680px;
        --page-content-width: min(var(--page-frame-max), calc(100% - 2 * var(--page-inline-padding)));
    }
}
@media (min-width: 1025px) and (max-width: 1250px) {
    :root { --page-inline-padding: 28px; }
}
@media (min-width: 1025px) and (min-height: 900px) {
    :root { --page-inline-padding: 44px; --page-frame-max: 1400px; }
}

/* Homepage rhythm outside the pinned feature presentation. */
@media (min-width: 769px) {
    .hero-section.hero-section--quiet {
        padding-block: clamp(48px, 6vw, 80px) 32px;
    }

    .hero-content--quiet .hero-dashboard {
        width: min(620px, 100%);
    }
}

.connections-section,
.faq-section {
    padding-block: clamp(48px, 5vw, 72px);
}

.connections-header .a-title,
.faq-section h2 {
    margin-top: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.2;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.faq-section h2 { margin-bottom: 32px; }
.faq-container { gap: 16px; }
.faq-item:not(.active) { min-height: 164px; }
.faq-tag { padding: 18px 20px 0; }
.faq-tag-icon { width: 32px; height: 32px; }
.faq-question { padding: 14px 20px 20px; gap: 12px; }
.faq-question-title { font-size: 18px; line-height: 1.4; }

.pre-footer-cta { padding: clamp(48px, 5vw, 72px) 0; }
.pre-footer-cta__title {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    text-wrap: balance;
}
.pre-footer-cta__desc { max-width: 54ch; margin-inline: auto; line-height: 1.5; }

@media (min-width: 866px) {
    .footer-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr);
        gap: 32px;
        padding-block: 40px;
    }
    .footer-nav-group:last-child {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 12px 24px;
    }
    .footer-nav-group:last-child h4 { grid-column: 1 / -1; }
}

@media (min-width: 600px) and (max-width: 865px) {
    .pre-footer-cta__actions { flex-direction: row; }
    .pre-footer-cta__actions .btn { width: auto; min-width: 190px; }
}

@media (max-width: 767px) {
    .connections-section > .container,
    .faq-section > .container,
    .pre-footer-cta > .container,
    .main-footer > .container { padding-inline: 22px; }
    .connections-desc { font-size: 17px; line-height: 1.55; }
    .connections-header { margin-bottom: 20px; }
    .connections-marquee { padding-block: 12px; }
    .connections-footer { margin-top: 16px; }
    .faq-item:not(.active) { min-height: 0; }
    .faq-section h2 { margin-bottom: 24px; }
    .faq-container { gap: 12px; }
    .faq-tag { padding: 14px 18px 0; }
    .faq-question { padding: 10px 18px 18px; }
    .pre-footer-cta__desc { font-size: 17px; }
}

@media (max-width: 360px) {
    .connections-section > .container,
    .faq-section > .container,
    .pre-footer-cta > .container,
    .main-footer > .container { padding-inline: 18px; }
}
