/**
 * Fluabem — identidade visual (portal + layout compartilhado)
 * Paleta: azul profundo #0F3A7D + menta #10B981 (referência mockap/Home)
 */
:root {
    --fb-primary: #0f3a7d;
    --fb-primary-hover: #0c2f66;
    --fb-accent: #10b981;
    --fb-accent-hover: #059669;
    --fb-bg: #ffffff;
    --fb-surface: #ffffff;
    --fb-muted-bg: #f3f4f6;
    --fb-text: #1f2937;
    --fb-muted: #6b7280;
    --fb-border: #e5e7eb;
    --fb-ring: rgba(15, 58, 125, 0.22);
    /* Largura útil do site (~grid 12 col / “container” clássico); evita layout espichado em telas largas */
    --fb-container: 71.25rem; /* 1140px a 16px */
    --fb-gutter: 1.25rem;
    /* retrocompat com regras antigas */
    --fb-accent-teal: var(--fb-accent);
}

/* Bloco central reutilizável (largura máxima + gutters simétricos) */
.fb-container {
    width: 100%;
    max-width: var(--fb-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--fb-gutter);
    padding-right: var(--fb-gutter);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Rolagem suave para âncoras (#ferramentas, #sobre, …); respeita “reduzir movimento” */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Alvo das âncoras com folga no topo (títulos não colam na borda) */
.fluabem .fb-main section[id] {
    scroll-margin-top: 1.25rem;
}

body.fluabem {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--fb-bg);
    color: var(--fb-text);
    line-height: 1.6;
}

.fluabem h1,
.fluabem h2,
.fluabem h3 {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
}

.fluabem a {
    color: var(--fb-primary);
    text-decoration: none;
}

.fluabem a:hover {
    color: var(--fb-primary-hover);
    text-decoration: underline;
}

.fb-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fb-header {
    background: var(--fb-surface);
    border-bottom: 1px solid var(--fb-border);
    padding: 0 var(--fb-gutter);
}

.fb-header-inner {
    max-width: var(--fb-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 0;
}

.fb-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--fb-text);
    text-decoration: none !important;
}

.fb-brand:hover {
    color: var(--fb-text);
    text-decoration: none !important;
}

.fb-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--fb-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.9375rem;
    flex-wrap: wrap;
}

.fb-nav a {
    color: var(--fb-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0;
    transition: color 0.15s ease;
}

.fb-nav a:hover {
    color: var(--fb-primary);
    text-decoration: none;
}

.fb-btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    background: var(--fb-primary);
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.fb-btn-nav:hover {
    background: var(--fb-primary-hover);
    color: #fff !important;
    text-decoration: none !important;
}

.fb-main {
    flex: 1;
    width: 100%;
    max-width: var(--fb-container);
    margin: 0 auto;
    padding: 0 var(--fb-gutter) 3rem;
}

.fb-footer {
    margin-top: auto;
    padding: 2.5rem var(--fb-gutter);
    border-top: 1px solid var(--fb-border);
    background: rgba(243, 244, 246, 0.65);
}

.fb-footer-inner {
    max-width: var(--fb-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.fb-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--fb-text);
}

.fb-footer-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.35rem;
    background: var(--fb-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
}

.fb-footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--fb-muted);
}

.fb-footer-tagline {
    max-width: var(--fb-container);
    margin: 1rem auto 0;
    padding: 0 var(--fb-gutter);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--fb-muted);
    text-align: center;
}

.fb-footer-tagline a {
    color: var(--fb-muted);
}

.fb-footer-tagline a:hover {
    color: var(--fb-primary);
}

.fb-footer-related {
    max-width: var(--fb-container);
    margin: 0.75rem auto 0;
    padding: 0 var(--fb-gutter);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--fb-muted);
    text-align: center;
}

.fb-footer-related-url::before {
    content: " · ";
}

/* ——— Landing (home) ——— */
.fb-lp {
    padding-top: 0.5rem;
}

.fb-hero-lp {
    position: relative;
    overflow: hidden;
    margin: 0 calc(-1 * var(--fb-gutter));
    padding: 0 var(--fb-gutter) 2rem;
}

.fb-hero-lp-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: var(--fb-container);
    margin: 0 auto;
    padding: 2rem 0 1rem;
}

@media (min-width: 960px) {
    .fb-hero-lp-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 2.5rem 0 2rem;
    }
}

/* Faixa em destaque (ecossistema / Quiz Brasil) */
.fb-spotlight {
    margin: 2.25rem 0 0;
    padding: 0;
}

.fb-spotlight-inner {
    max-width: var(--fb-container);
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--fb-border);
    border-left: 4px solid var(--fb-accent);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 58, 125, 0.06) 55%, var(--fb-surface) 100%);
    box-shadow: 0 12px 36px -14px rgba(15, 58, 125, 0.22);
}

.fb-spotlight-body {
    min-width: 0;
}

.fb-spotlight-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fb-accent);
}

.fb-spotlight-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--fb-text);
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
}

.fb-spotlight-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--fb-muted);
    max-width: 36rem;
}

.fb-spotlight-text strong {
    color: var(--fb-text);
    font-weight: 600;
}

.fb-spotlight-url {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fb-primary);
}

.fb-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.25rem;
}

.fb-spotlight-btn .fb-icon-arrow {
    opacity: 0.9;
}

@media (min-width: 720px) {
    .fb-spotlight-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1.5rem 2rem;
        align-items: center;
        padding: 2rem 2rem 2rem 1.75rem;
    }

    .fb-spotlight-actions {
        margin-top: 0;
        justify-content: flex-end;
    }
}

.fb-hero-lp-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--fb-text);
}

.fb-hero-lp-lead {
    margin: 0;
    font-size: 1.125rem;
    color: var(--fb-muted);
    max-width: 36rem;
}

.fb-hero-lp-lead strong {
    color: var(--fb-text);
    font-weight: 600;
}

.fb-hero-lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    background: var(--fb-accent);
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fb-btn:hover {
    background: var(--fb-accent-hover);
    color: #fff !important;
    text-decoration: none !important;
}

.fb-btn-primary {
    background: var(--fb-primary);
    box-shadow: 0 4px 14px var(--fb-ring);
}

.fb-btn-primary:hover {
    background: var(--fb-primary-hover);
}

.fb-btn-hero {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.fb-btn-outline {
    background: transparent;
    color: var(--fb-text) !important;
    border: 1px solid var(--fb-border);
    box-shadow: none;
}

.fb-btn-outline:hover {
    background: var(--fb-muted-bg);
    color: var(--fb-text) !important;
    border-color: var(--fb-border);
}

.fb-icon-arrow {
    transition: transform 0.2s ease;
}

.fb-btn-primary:hover .fb-icon-arrow {
    transform: translateX(4px);
}

.fb-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--fb-border);
}

.fb-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--fb-muted);
}

.fb-trust-icon {
    color: var(--fb-accent);
    flex-shrink: 0;
}

.fb-hero-lp-visual {
    position: relative;
    min-height: 14rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.fb-hero-lp-img {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
    display: block;
}

@media (min-width: 960px) {
    .fb-hero-lp-visual {
        min-height: 24rem;
    }

    .fb-hero-lp-img {
        min-height: 24rem;
    }
}

.fb-section-lp {
    margin-top: 3.5rem;
    padding-top: 0.5rem;
}

.fb-section-lp-muted {
    margin-left: calc(-1 * var(--fb-gutter));
    margin-right: calc(-1 * var(--fb-gutter));
    padding: 3.5rem var(--fb-gutter);
    margin-top: 3rem;
    background: var(--fb-muted-bg);
    border-radius: 0;
}

.fb-section-lp-muted .fb-feature-grid {
    max-width: var(--fb-container);
    margin-left: auto;
    margin-right: auto;
}

.fb-section-lp-narrow {
    max-width: min(42rem, 100%);
    margin-bottom: 2.5rem;
}

.fb-lp-h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--fb-text);
}

.fb-text-accent {
    color: var(--fb-accent);
}

.fb-lp-sub {
    margin: 0;
    font-size: 1.125rem;
    color: var(--fb-muted);
    max-width: 42rem;
}

.fb-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    width: 100%;
}

@media (min-width: 720px) {
    .fb-feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.fb-card-elevated {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fb-card-elevated:hover {
    box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.fb-card-flat:hover {
    transform: none;
}

.fb-feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.fb-feature-icon-primary {
    background: rgba(15, 58, 125, 0.1);
    color: var(--fb-primary);
}

.fb-feature-icon-accent {
    background: rgba(16, 185, 129, 0.12);
    color: var(--fb-accent);
}

.fb-feature-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fb-text);
    font-family: "Poppins", sans-serif;
}

.fb-feature-text {
    margin: 0;
    font-size: 1rem;
    color: var(--fb-muted);
    line-height: 1.55;
}

.fb-trust-lead {
    margin: 0 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--fb-accent);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--fb-text);
    line-height: 1.45;
}

.fb-prose-lp {
    margin: 0;
    font-size: 1rem;
    color: var(--fb-muted);
    max-width: 40rem;
    line-height: 1.65;
}

.fb-prose-wide {
    max-width: 42rem;
}

.fb-list-lp {
    margin: 1rem 0 1rem;
    padding: 0;
    list-style: none;
    max-width: 40rem;
}

.fb-list-lp li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--fb-muted);
}

.fb-list-lp li:last-child {
    margin-bottom: 0;
}

.fb-list-lp li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--fb-accent);
}

.fb-cta-band {
    margin: 3.5rem calc(-1 * var(--fb-gutter)) 0;
    padding: 0 var(--fb-gutter);
}

.fb-cta-band-inner {
    max-width: var(--fb-container);
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--fb-primary) 0%, #1e4a8f 100%);
    color: #fff;
}

.fb-cta-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #fff;
}

.fb-cta-text {
    margin: 0 auto 1.75rem;
    font-size: 1.125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 36rem;
}

.fb-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.fb-btn-on-dark {
    background: #fff;
    color: var(--fb-primary) !important;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.fb-btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--fb-primary) !important;
}

.fb-cta-band .fb-btn-cta-alt {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.fb-cta-band .fb-btn-cta-alt:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff !important;
}

/* —— Aviso de cookies —— */
.fb-cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    padding: var(--fb-gutter);
    background: linear-gradient(180deg, transparent 0%, rgba(15, 58, 125, 0.06) 12%, var(--fb-bg) 28%);
    pointer-events: none;
}

.fb-cookie-banner:not([hidden]) {
    pointer-events: auto;
}

.fb-cookie-banner-inner {
    max-width: var(--fb-container);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--fb-border);
    background: var(--fb-surface);
    box-shadow: 0 12px 40px rgba(15, 58, 125, 0.12);
}

.fb-cookie-title {
    margin: 0 0 0.5rem;
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fb-primary);
}

.fb-cookie-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--fb-muted);
}

.fb-cookie-text a {
    color: var(--fb-primary);
    font-weight: 500;
}

.fb-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fb-cookie-btn-accept {
    background: var(--fb-primary);
    color: #fff;
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
}

.fb-cookie-btn-accept:hover {
    background: var(--fb-primary-hover);
}

.fb-cookie-btn-essential {
    background: transparent;
    color: var(--fb-primary);
    border: 1px solid var(--fb-border);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
}

.fb-cookie-btn-essential:hover {
    background: var(--fb-muted-bg);
}

body.fluabem:has(.fb-cookie-banner:not([hidden])) .fb-footer {
    padding-bottom: 7rem;
}

/* —— Página legal —— */
.fb-legal {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 0 3rem;
}

.fb-legal-header {
    margin-bottom: 2rem;
}

.fb-legal-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    color: var(--fb-primary);
}

.fb-legal-updated {
    margin: 0;
    font-size: 0.875rem;
    color: var(--fb-muted);
}

.fb-legal section {
    margin-bottom: 1.75rem;
}

.fb-legal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    color: var(--fb-text);
}

.fb-legal p,
.fb-legal li {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--fb-muted);
}

.fb-legal ul {
    margin: 0;
    padding-left: 1.25rem;
}

.fb-legal li {
    margin-bottom: 0.35rem;
}

.fb-legal code {
    font-size: 0.8125rem;
    background: var(--fb-muted-bg);
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
}

.fb-legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.fb-legal-table th,
.fb-legal-table td {
    border: 1px solid var(--fb-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.fb-legal-table th {
    background: var(--fb-muted-bg);
    color: var(--fb-text);
    font-weight: 600;
}

.fb-legal-back {
    margin-top: 2rem;
    font-size: 0.9375rem;
}

.fb-legal-back a {
    color: var(--fb-primary);
    font-weight: 500;
}

.fb-footer-legal {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    text-align: center;
}

.fb-footer-legal a {
    color: var(--fb-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fb-footer-legal a:hover {
    color: var(--fb-primary);
}

.fb-footer-legal-sep {
    margin: 0 0.35rem;
    color: var(--fb-border);
}

@media (max-width: 640px) {
    .fb-hero-lp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fb-hero-lp-actions .fb-btn {
        justify-content: center;
    }

    .fb-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .fb-cookie-actions {
        flex-direction: column;
    }

    .fb-cookie-actions .fb-btn {
        width: 100%;
        justify-content: center;
    }
}
