/**
 * MhSys SaaS - Onboarding Nicho Landing Page Layout
 * public/css/pages/onboarding-nicho.css
 * Core de Layout, Grid Hero, Planos & Pricing, Billing Switcher, FAQ e Mobile Fixed CTA
 */

/* Reset e Base */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient, linear-gradient(135deg, hsl(222, 47%, 7%) 0%, hsl(224, 64%, 4%) 100%));
    background-color: var(--bg-page, hsl(222, 47%, 7%));
    color: var(--text-main, #f8fafc);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    color: var(--text-title, #ffffff);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

a {
    text-decoration: none;
    transition: var(--transition, all 0.3s cubic-bezier(0.16, 1, 0.3, 1));
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================================
   EFEITOS AMBIENTAIS GLOW NEON
   ======================================================== */
.ambient-glow-1 {
    position: absolute;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, hsla(var(--accent-hsl, 243, 75%, 59%), var(--glow-opacity-1, 0.22)) 0%, rgba(0,0,0,0) 70%);
    top: -250px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
    transition: background 0.4s ease;
}

.ambient-glow-2 {
    position: absolute;
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, hsla(var(--accent-hsl, 243, 75%, 59%), var(--glow-opacity-2, 0.14)) 0%, rgba(0,0,0,0) 70%);
    bottom: 10%;
    right: -250px;
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
    transition: background 0.4s ease;
}

/* ========================================================
   PREMIUM NAVBAR
   ======================================================== */
.premium-navbar {
    background: var(--navbar-bg, rgba(10, 15, 30, 0.75));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-glow-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition, all 0.3s cubic-bezier(0.16, 1, 0.3, 1));
}

.logo-glow-container img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-glow-container:hover img {
    transform: scale(1.04);
}

.logo-img {
    max-width: 175px;
    height: auto;
    max-height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px hsla(var(--accent-hsl, 243, 75%, 59%), 0.35));
}

body.light-mode .logo-img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* Botões do Navbar */
.nav-btn-login {
    color: var(--text-main, #f8fafc) !important;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
    transition: var(--transition, all 0.3s cubic-bezier(0.16, 1, 0.3, 1));
}

.nav-btn-login:hover {
    color: var(--accent, hsl(243, 75%, 59%)) !important;
    background: rgba(255, 255, 255, 0.06);
}

body.light-mode .nav-btn-login:hover {
    background: rgba(15, 23, 42, 0.05);
}

.nav-btn-cta {
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    color: var(--text-main, #f8fafc);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 99px;
    transition: var(--transition, all 0.3s cubic-bezier(0.16, 1, 0.3, 1));
}

.nav-btn-cta:hover {
    border-color: var(--accent, hsl(243, 75%, 59%));
    background: hsla(var(--accent-hsl, 243, 75%, 59%), 0.12);
    color: var(--accent, hsl(243, 75%, 59%));
    transform: translateY(-1px);
}

body.light-mode .nav-btn-cta {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.niche-badge {
    background: hsla(var(--accent-hsl, 243, 75%, 59%), 0.12);
    color: var(--accent, hsl(243, 75%, 59%));
    border: 1px solid hsla(var(--accent-hsl, 243, 75%, 59%), 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    animation: pulse-badge 2.5s infinite alternate;
}

@keyframes pulse-badge {
    0% { 
        box-shadow: 0 0 0 0px hsla(var(--accent-hsl, 243, 75%, 59%), 0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 0 8px hsla(var(--accent-hsl, 243, 75%, 59%), 0);
        transform: scale(1.02);
    }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.15;
    color: var(--text-title, #ffffff);
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-title, #ffffff) 30%, var(--accent, hsl(243, 75%, 59%)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.65;
    margin-bottom: 30px;
}

/* Bullet Features */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 14px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main, #f8fafc);
    transition: color 0.3s ease;
}

.feature-list li i {
    color: var(--accent, hsl(243, 75%, 59%));
    font-size: 1.25rem;
    filter: drop-shadow(0 0 6px hsla(var(--accent-hsl, 243, 75%, 59%), 0.4));
}

/* Glassmorphic Card Genérico */
.glass-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.6));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: 24px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card, 0 20px 40px -15px rgba(0, 0, 0, 0.7));
    padding: 36px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
    border-color: var(--card-border-hover, hsla(var(--accent-hsl, 243, 75%, 59%), 0.45));
    box-shadow: 0 25px 50px -10px hsla(var(--accent-hsl, 243, 75%, 59%), 0.25);
    transform: translateY(-4px);
}

/* ========================================================
   SEÇÃO DE PLANOS & PRICING (.plan-card)
   ======================================================== */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-title, #ffffff);
}

.section-desc {
    color: var(--text-muted, #94a3b8);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Seletor de Ciclo Glassmorphic */
.billing-switcher-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    font-family: 'Outfit', sans-serif;
}

.premium-billing-switcher {
    display: inline-flex;
    background: var(--switcher-bg, rgba(255, 255, 255, 0.035));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4px;
    border-radius: 99px;
    border: 1px solid var(--switcher-border, rgba(255, 255, 255, 0.08));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.billing-toggle-btn {
    background: transparent;
    border: 0;
    color: var(--switcher-btn-color, rgba(255, 255, 255, 0.7));
    padding: 8px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.billing-toggle-btn:hover {
    color: var(--text-title, #ffffff);
}

.premium-billing-switcher .billing-toggle-btn.active {
    background: linear-gradient(135deg, var(--accent, hsl(243, 75%, 59%)) 0%, hsl(243, 75%, 59%) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px hsla(var(--accent-hsl, 243, 75%, 59%), 0.35);
}

/* Cards de Planos */
.plan-card {
    background: var(--card-bg, rgba(15, 23, 42, 0.6));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 32px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-card, 0 20px 40px -15px rgba(0, 0, 0, 0.7));
}

.plan-card:hover, 
.plan-card.selected {
    transform: translateY(-8px);
    border-color: var(--accent, hsl(243, 75%, 59%));
    background: var(--card-hover-bg, rgba(15, 23, 42, 0.85));
    box-shadow: 0 20px 40px -10px hsla(var(--accent-hsl, 243, 75%, 59%), 0.25);
}

.plan-card.selected {
    border-width: 2px;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent, hsl(243, 75%, 59%)) 0%, hsla(var(--accent-hsl, 243, 75%, 59%), 0.8) 100%);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px hsla(var(--accent-hsl, 243, 75%, 59%), 0.4);
}

.plan-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-title, #ffffff);
    margin-bottom: 10px;
}

.plan-description-tag {
    font-size: 0.85rem;
    line-height: 1.4;
    min-height: 38px;
    color: var(--text-muted, #94a3b8) !important;
}

.price-container {
    margin: 20px 0;
    transition: opacity 0.2s ease-in-out;
}

.old-price {
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.new-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-title, #ffffff);
    display: flex;
    align-items: baseline;
}

.new-price span {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
    margin-left: 5px;
}

.save-badge {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
    border: 1px solid rgba(20, 184, 166, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 5px;
}

body:not(.light-mode) .save-badge {
    color: #2dd4bf;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    padding-top: 22px;
}

.plan-features li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted, #94a3b8);
}

.plan-features li strong {
    color: var(--text-title, #ffffff);
}

.plan-features li i {
    color: var(--accent, hsl(243, 75%, 59%));
}

/* Botão de Módulos e Apps Inclusos */
.btn-inclusos {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent, hsl(243, 75%, 59%)) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: hsla(var(--accent-hsl, 243, 75%, 59%), 0.08);
    border: 1px solid hsla(var(--accent-hsl, 243, 75%, 59%), 0.2) !important;
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    width: 100%;
}
.btn-inclusos:hover {
    background: hsla(var(--accent-hsl, 243, 75%, 59%), 0.16);
    border-color: hsla(var(--accent-hsl, 243, 75%, 59%), 0.45) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(var(--accent-hsl, 243, 75%, 59%), 0.2);
}

/* Botão Selecionar Plano */
.plan-card .select-btn {
    transition: var(--transition, all 0.3s cubic-bezier(0.16, 1, 0.3, 1));
}

body.light-mode .plan-card .btn-outline-light {
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
    background: #f8fafc !important;
}

body.light-mode .plan-card .btn-outline-light:hover {
    border-color: var(--accent, hsl(243, 75%, 59%)) !important;
    color: var(--accent, hsl(243, 75%, 59%)) !important;
    background: hsla(var(--accent-hsl, 243, 75%, 59%), 0.06) !important;
}

body.light-mode .plan-card.selected .btn-light {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
}

/* ========================================================
   ACCORDION FAQ
   ======================================================== */
.accordion-item {
    background: var(--card-bg, rgba(15, 23, 42, 0.6)) !important;
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 16px !important;
    margin-bottom: 16px;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.accordion-button {
    background: transparent !important;
    color: var(--text-title, #ffffff) !important;
    font-size: 1.05rem !important;
    padding: 20px !important;
    box-shadow: none !important;
}

body:not(.light-mode) .accordion-button::after {
    filter: invert(1);
}

body.light-mode .accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed) {
    color: var(--accent, hsl(243, 75%, 59%)) !important;
}

.accordion-body {
    color: var(--text-muted, #94a3b8) !important;
    line-height: 1.6;
    padding: 0 20px 20px 20px !important;
    font-size: 0.95rem;
}

/* ========================================================
   BOTÕES CTA & SELOS DE CONFIANÇA
   ======================================================== */
.btn-premium-cta {
    background: linear-gradient(135deg, var(--accent, hsl(243, 75%, 59%)) 0%, hsla(var(--accent-hsl, 243, 75%, 59%), 0.8) 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 16px 40px;
    box-shadow: 0 10px 25px hsla(var(--accent-hsl, 243, 75%, 59%), 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-premium-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px hsla(var(--accent-hsl, 243, 75%, 59%), 0.55);
    color: #ffffff !important;
    filter: brightness(1.05);
}

.trust-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--accent, hsl(243, 75%, 59%));
    font-size: 1.15rem;
}

/* Botão secundário de WhatsApp no modo claro */
body.light-mode .btn-outline-light {
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
    background: #ffffff;
}

body.light-mode .btn-outline-light:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ========================================================
   BARRA DE CTA FIXA NO MOBILE (.mobile-fixed-cta)
   ======================================================== */
.mobile-fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mobile-cta-bg, rgba(10, 15, 30, 0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    z-index: 1050;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: env(safe-area-inset-bottom);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.btn-premium-fixed-cta {
    background: linear-gradient(135deg, var(--accent, hsl(243, 75%, 59%)) 0%, hsla(var(--accent-hsl, 243, 75%, 59%), 0.8) 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 0 15px hsla(var(--accent-hsl, 243, 75%, 59%), 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-premium-fixed-cta:hover {
    box-shadow: 0 0 25px hsla(var(--accent-hsl, 243, 75%, 59%), 0.7);
    transform: scale(1.03);
    color: #ffffff !important;
}

.btn-whatsapp-fixed-cta {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body:not(.light-mode) .btn-whatsapp-fixed-cta {
    color: #34d399;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 90px !important;
    }
}

/* ========================================================
   FOOTER (.premium-footer)
   ======================================================== */
.premium-footer {
    background: var(--footer-bg, rgba(10, 15, 30, 0.95));
    border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    padding: 50px 0;
    margin-top: 100px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-logo {
    max-width: 175px;
    height: auto;
    max-height: 38px;
    object-fit: contain;
    opacity: 0.92;
    margin-bottom: 0 !important;
}

.premium-footer .logo-glow-container {
    margin-bottom: 20px;
}

/* ========================================================
   RESPONSIVIDADE E AJUSTES DE TELAS
   ======================================================== */
@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}
