/**
 * Utilitários da landing / preços públicos — substitui o CDN tailwindcss.com (lento no browser).
 * Páginas: base_landing.html, landing.html, precos_public.html
 */
/* Evita faixas brancas nas bordas (margem por defeito do browser) e scroll horizontal */
html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
    /* iOS: não “infla” fontes ao zoom/orientação — layout mais previsível */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
/* Zoom e mobile: mídia nunca força largura maior que o content box do pai */
img {
    max-width: 100%;
    height: auto;
}

.font-sans {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Páginas que estendem base_landing (body.landing-font) */
.landing-font {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
:root {
    --landing-bg: #f8f9fa;
    /* Barra superior pública — gradiente azul (landing, preços, funcionalidades) */
    --landing-bg-dark: #0f172a;
    --landing-bg-nav: #1d4ed8;
    --landing-bg-nav-bright: #3b82f6;
    --landing-bg-card: #ffffff;
    --landing-text: #1f2937;
    --landing-text-muted: #6b7280;
    --landing-btn: #3b82f6;
    --landing-btn-hover: #2563eb;
    --landing-banner: #dbeafe;
    --landing-banner-text: #1e40af;
    --landing-accent: #22c55e;
    --landing-whatsapp: #25a244;
}
.btn-electric { background-color: var(--landing-btn) !important; color: #fff !important; }
.btn-electric:hover { background-color: var(--landing-btn-hover) !important; }
.btn-outline-light { border: 2px solid var(--landing-btn) !important; color: var(--landing-btn) !important; background: transparent !important; }
.btn-outline-light:hover { background: rgba(59, 130, 246, 0.08) !important; }

/* Layout */
*, *::before, *::after { box-sizing: border-box; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.hidden { display: none !important; }

.grid { display: grid; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.pb-0\.5 { padding-bottom: 0.125rem; }
.ps-5 { padding-inline-start: 1.25rem; }
.ms-1 { margin-inline-start: 0.25rem; }
.ms-2 { margin-inline-start: 0.5rem; }
.me-1 { margin-inline-end: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-gray-200 { border-color: #e5e7eb; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; } /* combina com .sm:text-4xl em telas maiores */

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.whitespace-nowrap { white-space: nowrap; }
.align-middle { vertical-align: middle; }

.text-white { color: #fff; }
.text-green-400 { color: #4ade80; }
.text-sky-300 { color: #7dd3fc; }
.text-slate-500 { color: #64748b; }
.text-slate-900 { color: #0f172a; }
.text-teal-700 { color: #0f766e; }
/* Tailwind-style opacity: text-white/90 */
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.hover\:text-white:hover { color: #fff !important; }

.border-white { border-color: #fff; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

.bg-white { background-color: #fff; }

.list-decimal { list-style-type: decimal; }

.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.hover\:underline:hover { text-decoration: underline; }
.transition { transition-property: color, background-color, border-color, transform, box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:scale-105:hover { transform: scale(1.05); }

.tracking-tight { letter-spacing: -0.025em; }

.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }

/**
 * Barra superior pública — mesmo padrão visual da landing (gradiente, links, botões).
 * Usar: <header class="landing-nav fixed top-0 left-0 right-0 z-50" role="banner">…</header>
 */
.landing-nav {
    width: 100%;
    left: 0;
    right: 0;
    padding-top: env(safe-area-inset-top, 0px);
    background: linear-gradient(105deg, var(--landing-bg-dark) 0%, #1e3a8a 38%, var(--landing-bg-nav) 72%, var(--landing-bg-nav-bright) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.18);
}
.landing-nav .brand-landing {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.landing-nav .nav-link {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}
.landing-nav .nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(147, 197, 253, 0.95);
}
.landing-nav .nav-link.is-active {
    border-bottom-color: rgba(191, 219, 254, 0.98);
}
.landing-nav .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    color: #fff !important;
    padding: 0.52rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 14px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.landing-nav .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 20px rgba(0, 0, 0, 0.2);
}
/* CTA principal da barra: verde contínuo (sem mistura com azul) — alinhado ao hero / cards de preço */
.landing-nav .btn-primary-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 42%, #16a34a 100%);
    color: #fff !important;
    padding: 0.52rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 16px rgba(22, 163, 74, 0.42),
        0 2px 0 rgba(21, 128, 61, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}
.landing-nav .btn-primary-nav:hover {
    filter: brightness(1.05);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 8px 28px rgba(22, 163, 74, 0.5),
        0 2px 0 rgba(21, 128, 61, 0.4);
}
.landing-menu-toggle {
    transition: background 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
}
.landing-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}
.landing-nav-mob a.nav-mob-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.landing-nav-mob a.nav-mob-link:hover {
    color: #fff !important;
}

/* Menu mobile — mesmo tom da barra (substitui background inline nos templates) */
.landing-nav .landing-nav-mob {
    background: linear-gradient(180deg, #1e40af 0%, var(--landing-bg-dark) 100%);
}

/* Responsivo sm: 640px */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:flex-row { flex-direction: row; }
}

/* md: 768px */
@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:gap-8 { gap: 2rem; }
}

/* Largura total da barra / rodapé — padding lateral pelo viewport (landing, preços, etc.) */
.landing-shell-full {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(1rem, 4vw, 3.5rem);
    padding-right: clamp(1rem, 4vw, 3.5rem);
}

/* Logo + links na mesma largura útil do hero (80rem) — evita “esticar” nos cantos ao dar zoom */
.landing-nav-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: min(100%, 80rem);
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}
/* Mobile: logo + menu; desktop: logo à esquerda, todo o menu centralizado na área restante */
.landing-nav-inner--bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}
.landing-nav-inner__start {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}
.landing-nav-inner__links {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}
@media (min-width: 768px) {
    .landing-nav-inner--bar {
        justify-content: flex-start;
        gap: 1rem 1.25rem;
    }
    .landing-nav-inner__links {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
        gap: 0.75rem 1.25rem;
    }
}
@media (min-width: 1024px) {
    .landing-nav-inner__links {
        gap: 0.85rem 1.75rem;
    }
}

/* Rodapé em colunas — mesmo padrão da landing */
.landing-footer.landing-footer--grid {
    padding: 2.5rem 0 1.25rem;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.landing-footer--grid .landing-footer__cols {
    display: grid;
    gap: 1.75rem;
    max-width: 72rem;
    margin: 0 auto;
    text-align: left;
}
@media (min-width: 640px) {
    .landing-footer--grid .landing-footer__cols { grid-template-columns: 1.25fr 1fr 1fr; }
}
.landing-footer--grid .landing-footer__brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem;
}
.landing-footer--grid .landing-footer__lead {
    margin: 0;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 18rem;
}
.landing-footer--grid .landing-footer__col-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.65rem;
}
.landing-footer--grid .landing-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.landing-footer--grid .landing-footer__links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.landing-footer--grid .landing-footer__links a:hover { color: #0f766e !important; }
.landing-footer--grid .landing-footer__bottom {
    max-width: 72rem;
    margin: 1.75rem auto 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Barra fixa mobile + FAB WhatsApp (páginas públicas com landing-has-mob-cta) */
.landing-mob-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.92) 35%, rgba(15, 23, 42, 0.98) 100%);
    pointer-events: none;
}
.landing-mob-cta a {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    max-width: 28rem;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.2;
    border-radius: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 0 rgba(21, 128, 61, 0.85), 0 12px 32px rgba(34, 197, 94, 0.45);
}
.landing-mob-cta a .landing-mob-cta__sub {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.95;
}
.landing-wa-fab {
    left: auto !important;
    right: calc(1.5rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 767.98px) {
    .landing-mob-cta { display: block; }
    body.landing-has-mob-cta { padding-bottom: 6.25rem; }
    .landing-wa-fab {
        bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}
