/**
 * BV Financiamentos - Estilos principais
 */
:root {
    --primary: 221 83% 53%;
    --primary-foreground: 0 0% 100%;
    --accent: 262 83% 58%;
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 221 83% 53%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --radius: 0.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: hsl(var(--background)); color: hsl(var(--foreground)); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 1.5rem; } }

.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.bg-background\/95 { background: #fff; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.border-b { border-bottom: 1px solid #e5e7eb; }
.h-16 { height: 4rem; }
.min-h-screen { min-height: 100vh; }
.min-h-screen { min-height: 100vh; }

.header-logo { height: 32px; width: auto; object-fit: contain; display: block; }
.header-nav { display: flex; align-items: center; gap: 0.25rem; }
.header-nav-btn { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.375rem 0.5rem; font-size: 0.8125rem; font-weight: 500; color: #6b7280; background: transparent; border: none; cursor: pointer; transition: color 0.2s; }
.header-nav-btn:hover { color: #111827; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-search-wrap { position: relative; }
.header-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9ca3af; }
.header-search-input { width: 12rem; padding: 0.5rem 1rem 0.5rem 2.5rem; font-size: 0.875rem; color: #374151; background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px; transition: border-color 0.2s; }
.header-search-input:focus { outline: none; border-color: #2563eb; }
.header-btn-area { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; height: 40px; font-size: 0.875rem; font-weight: 500; color: #374151; background: #fff; border: 1px solid #d1d5db; border-radius: 9999px; cursor: pointer; transition: all 0.2s; }
.header-btn-area:hover { background: #f9fafb; border-color: #9ca3af; }
.header-btn-area-sm { padding: 0.375rem 0.75rem; height: 36px; font-size: 0.75rem; }
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }

.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.hidden { display: none; }
.lg\:flex { }
@media (min-width: 1024px) { .lg\:flex { display: flex; } }
.lg\:hidden { }
@media (min-width: 1024px) { .lg\:hidden { display: none; } }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lg\:col-span-1 { grid-column: span 1 / span 1; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.pt-32 { padding-top: 8rem; }
.mt-8 { margin-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-16 { padding-bottom: 4rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.bg-card { background: hsl(var(--card)); }
.bg-background { background: hsl(var(--background)); }
.bg-primary { background: hsl(var(--primary)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.border { border: 1px solid hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }
.border-input { border-color: hsl(var(--input)); }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-span-full { grid-column: 1 / -1; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Hero */
.hero-section { min-height: 480px; }
.hero-bg-image { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #4338ca 100%); }
.hero-blue-overlay { background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%); }
.rounded-b-\[40px\] { border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; }
@media (min-width: 1024px) { .lg\:rounded-b-\[60px\] { border-bottom-left-radius: 60px; border-bottom-right-radius: 60px; } }
.hero-breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hero-breadcrumb-link { color: rgba(255,255,255,0.8); font-size: 0.875rem; }
.hero-breadcrumb-link:hover { color: #fff; }
.hero-breadcrumb-sep { color: rgba(255,255,255,0.5); }
.hero-breadcrumb-current { color: #fff; font-size: 0.875rem; }
.hero-content { max-width: 540px; }
.hero-title { font-size: 2.5rem; font-weight: 700; line-height: 1.2; color: #fff; letter-spacing: -0.02em; margin-bottom: 1rem; }
@media (min-width: 1024px) { .hero-title { font-size: 3rem; } }
.hero-line { width: 80px; height: 4px; background: #60a5fa; border-radius: 2px; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.125rem; color: rgba(255,255,255,0.95); line-height: 1.6; }
.hero-form-card { background: #fff; border-radius: 24px; padding: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 1px solid #e5e7eb; }
@media (min-width: 1024px) { .lg\:-mb-24 { margin-bottom: -6rem; } }
.hero-form-title { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 1.5rem; }
.hero-form { display: flex; flex-direction: column; gap: 1rem; }
.hero-input { width: 100%; padding: 0.875rem 1rem; font-size: 1rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; transition: all 0.2s; }
.hero-input:focus { outline: none; border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.hero-form-note { font-size: 0.75rem; color: #6b7280; }
.hero-submit-btn { padding: 1rem 1.5rem; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-weight: 600; font-size: 1rem; border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.hero-submit-btn:hover { opacity: 0.95; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Features */
.section-features { padding: 4rem 0; }
.section-features-header { text-align: center; margin-bottom: 3rem; }
.section-features-title { font-size: 2rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.section-features-subtitle { font-size: 1.125rem; color: #6b7280; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.feature-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.5rem; transition: all 0.2s; }
.feature-card:hover { border-color: #2563eb; box-shadow: 0 4px 14px rgba(37,99,235,0.1); }
.feature-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-card-icon--blue { background: rgba(37,99,235,0.1); color: #2563eb; }
.feature-card-icon--green { background: rgba(34,197,94,0.1); color: #16a34a; }
.feature-card-icon--amber { background: rgba(245,158,11,0.1); color: #d97706; }
.feature-card-icon--indigo { background: rgba(99,102,241,0.1); color: #6366f1; }
.feature-card-title { font-size: 1.125rem; font-weight: 600; color: #111827; margin-bottom: 0.5rem; }
.feature-card-desc { font-size: 0.9375rem; color: #6b7280; line-height: 1.6; }

/* Benefits */
.section-benefits { padding: 4rem 0; background: #f8fafc; }
.section-benefits-subtitle { font-size: 1rem; color: #6b7280; }
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.2s; }
.benefit-card:hover { border-color: #2563eb; }
.benefit-card-title { font-size: 1rem; font-weight: 600; color: #111827; margin-bottom: 1rem; }
.benefit-card-icon { width: 48px; height: 48px; color: #2563eb; }

/* Steps */
.section-steps { padding: 4rem 0; }
.steps-header { text-align: center; margin-bottom: 2rem; }
.steps-title { font-size: 2rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.steps-subtitle { font-size: 1.125rem; color: #6b7280; }
.steps-connector { display: none; }
@media (min-width: 768px) { .steps-connector { display: block; } }
.steps-line { height: 2px; background: #e5e7eb; margin: 0 2rem; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.5rem; position: relative; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; }
.step-title { font-size: 1.125rem; font-weight: 600; color: #111827; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.9375rem; color: #6b7280; line-height: 1.6; }
.steps-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.btn-steps { padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600; border-radius: 12px; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; }
.btn-steps--primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: none; }
.btn-steps--primary:hover { opacity: 0.95; box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.btn-steps--secondary { background: #fff; color: #2563eb; border: 2px solid #2563eb; }
.btn-steps--secondary:hover { background: #eff6ff; }

/* Direto */
.section-direto { padding: 4rem 0; }
.direto-banner { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%); border-radius: 24px; padding: 2rem; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .direto-banner { grid-template-columns: 1fr 1fr; padding: 3rem; } }
.direto-content { color: #fff; }
.direto-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 1rem; }
.direto-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .direto-title { font-size: 2rem; } }
.direto-desc { font-size: 1rem; opacity: 0.95; line-height: 1.6; margin-bottom: 1.5rem; }
.direto-btn { display: inline-flex; padding: 0.75rem 1.5rem; background: #fff; color: #2563eb; font-weight: 600; border-radius: 12px; transition: all 0.2s; }
.direto-btn:hover { opacity: 0.95; }
.direto-image { }
.direto-img { width: 100%; border-radius: 16px; object-fit: cover; max-height: 300px; }

/* Produtos */
.section-produtos { padding: 4rem 0; background: #f8fafc; }
.produtos-header { text-align: center; margin-bottom: 2rem; }
.produtos-title { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.produtos-subtitle { font-size: 1rem; color: #6b7280; }
.produtos-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .produtos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .produtos-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.produto-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.5rem; }
.produto-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.produto-icon--sky { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.produto-icon--amber { background: rgba(245,158,11,0.1); color: #d97706; }
.produto-icon--emerald { background: rgba(16,185,129,0.1); color: #10b981; }
.produto-icon--indigo { background: rgba(99,102,241,0.1); color: #6366f1; }
.produto-title { font-size: 1.125rem; font-weight: 600; color: #111827; margin-bottom: 1rem; }
.produto-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.produto-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: #6b7280; margin-bottom: 0.5rem; }
.produto-list li svg { flex-shrink: 0; color: #16a34a; margin-top: 2px; }
.produto-note { font-size: 0.75rem; color: #9ca3af; margin-bottom: 1rem; }
.produto-btn { display: inline-flex; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; color: #2563eb; border: 1px solid #2563eb; border-radius: 8px; transition: all 0.2s; }
.produto-btn:hover { background: #eff6ff; }

/* FAQ */
.faq-item { overflow: hidden; }
.faq-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; font-size: 1rem; font-weight: 500; color: #111827; background: none; border: none; cursor: pointer; text-align: left; }
.faq-trigger:hover { background: #f9fafb; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-content { max-height: 500px; }
.faq-content-inner { padding: 0 1.25rem 1.25rem; }

/* Footer */
.bg-primary { background: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.pwa-download-box { margin-bottom: 1rem; }
.pwa-qr-wrap { display: inline-block; }
.pwa-qr-img { width: 140px; height: 140px; border-radius: 8px; background: #fff; padding: 4px; }
.pwa-qr-hint { font-size: 0.75rem; margin-top: 0.5rem; opacity: 0.9; }
.pwa-install-btn { padding: 0.5rem 1rem; background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; font-weight: 500; cursor: pointer; }
.pwa-install-btn:hover { background: rgba(255,255,255,0.3); }
.hover\:bg-primary\/5:hover { background: hsl(var(--primary) / 0.05); }
.hover\:opacity-80:hover { opacity: 0.8; }
.transition-opacity { transition: opacity 0.2s; }
.shrink-0 { flex-shrink: 0; }
.h-10 { height: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* Responsive grid */
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lg\:gap-12 { gap: 3rem; } .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; } .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; } }
.text-3xl { font-size: 1.875rem; }
@media (min-width: 1024px) { .lg\:text-3xl { font-size: 1.875rem; } }

/* Feedback visual quando nome é preenchido automaticamente pelo CPF */
input.hero-input.preenchido-auto { animation: nomePreenchido 1.5s ease; }
@keyframes nomePreenchido {
    0% { box-shadow: 0 0 0 2px #22c55e; }
    50% { box-shadow: 0 0 0 4px #22c55e; }
    100% { box-shadow: none; }
}
