/*
 * FilexFlow CORE-001D — shared section primitives
 * Scoped classes only. No global element selectors.
 */

.fx-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(32px, 4.5vw, 56px) 0;
}

.fx-section__header {
    max-width: 760px;
    margin-bottom: 24px;
}

.fx-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #7dd3fc;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .11em;
    line-height: 1;
    text-transform: uppercase;
}

.fx-section__eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    content: "";
    box-shadow: 0 0 16px rgba(56, 189, 248, .65);
}

.fx-section__title {
    margin: 0;
    color: var(--fx-section-title, #f8fafc);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.fx-section__subtitle {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--fx-section-text, #a9b7ca);
    font-size: 1.02rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.fx-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.fx-button:hover {
    transform: translateY(-1px);
}

.fx-button:focus-visible {
    outline: 3px solid rgba(96, 165, 250, .45);
    outline-offset: 3px;
}

.fx-button--primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .34);
}

.fx-button--secondary {
    border-color: rgba(148, 163, 184, .40);
    background: rgba(15, 23, 42, .55);
    color: #e2e8f0;
}

html[data-theme="light"] .fx-section,
body[data-theme="light"] .fx-section {
    --fx-section-title: #0f172a;
    --fx-section-text: #475569;
}

html[data-theme="light"] .fx-button--secondary,
body[data-theme="light"] .fx-button--secondary {
    border-color: rgba(71, 85, 105, .26);
    background: rgba(255, 255, 255, .76);
    color: #0f172a;
}

@media (max-width: 520px) {
    .fx-section {
        width: min(100% - 24px, 1180px);
    }

    .fx-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-button {
        transition: none;
    }
}
/* =========================================================
   FILEXFLOW — COMPACT PRODUCTION RHYTHM
   Wrappers have no spacing. Each component controls only
   a compact vertical separation.
   ========================================================= */

#pageRoot > [data-fx-page-section] {
    display: flow-root;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Standard sections */
#pageRoot > [data-fx-page-section] > .fx-section {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* Security card: slightly tighter externally */
#pageRoot > [data-fx-page-section="security"] > .fx-section {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

/* FAQ and CTA should form one closing sequence */
#pageRoot > [data-fx-page-section="faq"] > .fx-section {
    padding-top: 18px !important;
    padding-bottom: 10px !important;
}

#pageRoot > [data-fx-page-section="cta"] > .fx-section {
    padding-top: 10px !important;
    padding-bottom: 28px !important;
}

.fx-section__header {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

.fx-section__header > :first-child {
    margin-top: 0;
}

.fx-section__header > :last-child {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    #pageRoot > [data-fx-page-section] {
        margin: 0 !important;
        padding: 0 !important;
    }

    #pageRoot > [data-fx-page-section] > .fx-section {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    #pageRoot > [data-fx-page-section="security"] > .fx-section {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    #pageRoot > [data-fx-page-section="faq"] > .fx-section {
        padding-top: 14px !important;
        padding-bottom: 8px !important;
    }

    #pageRoot > [data-fx-page-section="cta"] > .fx-section {
        padding-top: 8px !important;
        padding-bottom: 22px !important;
    }

    .fx-section__header {
        margin-bottom: 16px !important;
    }
}