* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --whatsapp: #25d366;
  --bg: #070b15;
  --bg-2: #0b1220;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-solid: #0f1a2e;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e6edf6;
  --muted: #8da2bd;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 60px rgba(2, 6, 23, .6);
  --glow: 0 0 0 1px rgba(20, 184, 166, .35), 0 12px 40px rgba(20, 184, 166, .25);
}

html { scroll-behavior: smooth; }

/* Acessibilidade */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--primary); color: #04121a; padding: .7rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
#conteudo:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.lucide, [data-lucide] { width: 1em; height: 1em; vertical-align: -.125em; }

/* Animated background */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, .18), transparent 55%),
              radial-gradient(circle at 30% 60%, rgba(20, 184, 166, .22), transparent 55%);
  filter: blur(20px);
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7, 11, 21, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.15rem; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #04121a; font-weight: 800; box-shadow: 0 8px 24px rgba(20, 184, 166, .4); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(20, 184, 166, .35)); }
.nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; font-size: .95rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav-link-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: none; cursor: pointer; color: var(--muted); font: inherit; font-weight: 500; padding: 0; transition: color .2s; }
.nav-link-btn:hover { color: var(--text); }
.nav-link-btn i { width: 16px; height: 16px; }
.admin-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }
.btn-nav { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #04121a !important; padding: .55rem 1.1rem; border-radius: 10px; font-weight: 700; box-shadow: 0 8px 24px rgba(20, 184, 166, .3); }
.btn-nav:hover { transform: translateY(-1px); }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); width: 44px; height: 44px; border-radius: 11px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle i { width: 22px; height: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.7rem; border-radius: 12px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #04121a; box-shadow: 0 10px 30px rgba(20, 184, 166, .35); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(20, 184, 166, .5); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 6rem 0 6.5rem; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface-2); border: 1px solid var(--border-strong); padding: .4rem 1rem; border-radius: 999px; font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; max-width: 880px; margin: 0 auto 1.2rem; background: linear-gradient(180deg, #fff, #b9c6d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-visual { max-width: 880px; margin: 3.5rem auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); position: relative; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, transparent, rgba(2,8,20,.25)); pointer-events: none; }
.hero-visual img { display: block; width: 100%; height: auto; }

/* Sections */
.section { padding: 5rem 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02), transparent); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); }
.about { max-width: 780px; text-align: center; margin: 0 auto; }
.about h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.about p { color: var(--muted); font-size: 1.08rem; }

/* Cards generic glass */
.card-glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(8px); transition: transform .2s, border-color .2s, box-shadow .2s; }
.card-glass:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

/* Packages */
.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.package-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; display: flex; flex-direction: column; backdrop-filter: blur(8px); transition: transform .2s, border-color .2s, box-shadow .2s; }
.package-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.package-card.is-highlight { border-color: rgba(20, 184, 166, .5); background: linear-gradient(180deg, rgba(20, 184, 166, .12), var(--surface)); box-shadow: var(--glow); }
.package-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #04121a; font-size: .72rem; font-weight: 800; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.package-card h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.package-price { color: var(--accent); font-weight: 700; margin-bottom: .7rem; font-family: "Space Grotesk", sans-serif; }
.package-desc { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }
.package-card ul { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.package-card li { padding: .4rem 0 .4rem 1.6rem; position: relative; font-size: .92rem; color: #c8d4e4; }
.package-card li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.portfolio-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.portfolio-card img { height: 190px; object-fit: cover; width: 100%; }
.portfolio-placeholder { height: 190px; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: #04121a; background: linear-gradient(135deg, var(--primary), var(--accent)); font-family: "Space Grotesk", sans-serif; }
.portfolio-body { padding: 1.3rem; }
.portfolio-segment { display: inline-block; background: var(--surface-2); color: var(--accent); font-size: .74rem; padding: .25rem .65rem; border-radius: 7px; margin-bottom: .6rem; border: 1px solid var(--border); }
.portfolio-body h3 { margin-bottom: .4rem; }
.portfolio-body p { color: var(--muted); font-size: .92rem; margin-bottom: .7rem; }
.portfolio-body a { color: var(--accent); font-weight: 600; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.testimonial-quote { font-style: italic; margin-bottom: 1.1rem; color: #d4deec; }
.testimonial-author { font-weight: 700; }
.testimonial-author span { color: var(--muted); font-weight: 400; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: .85rem; transition: border-color .2s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin-top: .8rem; }

/* CTA + lead form */
.section-cta { position: relative; }
.cta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: linear-gradient(135deg, rgba(20, 184, 166, .14), rgba(34, 211, 238, .06)); border: 1px solid var(--border-strong); border-radius: 24px; padding: 2.8rem; }
.cta-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .7rem; }
.cta-text p { color: var(--muted); }
.lead-form { display: grid; gap: .85rem; }
.lead-form input, .lead-form textarea, .lead-form select { width: 100%; padding: .9rem 1.1rem; border: 1px solid var(--border-strong); border-radius: 11px; font: inherit; color: var(--text); background: rgba(0, 0, 0, .25); transition: border-color .2s, box-shadow .2s; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #6b7e98; }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 184, 166, .2); }
.lead-form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7e98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem; }
.lead-form select option { background: var(--secondary); color: var(--text); }
.lead-form select:invalid, .lead-form option[value=""] { color: #6b7e98; }
.form-success { background: rgba(16, 185, 129, .15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, .3); padding: .75rem 1rem; border-radius: 9px; font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 2rem; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.footer-brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; }
.footer-inner p { color: var(--muted); font-size: .9rem; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 1.1rem; color: var(--muted); transition: all .2s; }
.footer-social a:hover { color: #04121a; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.footer-copy { color: var(--muted); font-size: .82rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); text-align: center; }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .5); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }

/* Login card */
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin: 3rem 0; }
.dash-card input { background: rgba(0, 0, 0, .25); color: var(--text); border: 1px solid var(--border-strong) !important; }
.dash-card input:focus { outline: none; border-color: var(--primary) !important; }
.dash-card label { color: var(--muted); }

/* Dashboard */
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; gap: .2rem; transition: border-color .2s; }
.dash-kpi:hover { border-color: var(--border-strong); }
.dash-kpi-value { font-size: 2.1rem; font-weight: 700; font-family: "Space Grotesk", sans-serif; color: var(--accent); }
.dash-kpi-label { color: var(--muted); font-size: .9rem; }
.dash-charts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.dash-panel h3 { font-size: 1rem; margin-bottom: 1rem; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dash-table th, .dash-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.dash-table th { color: var(--muted); font-weight: 600; }
.dash-empty { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-wrap { grid-template-columns: 1fr; padding: 1.8rem; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
}

/* Menu mobile (hambúrguer) */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--surface-solid); border-bottom: 1px solid var(--border-strong);
    padding: .8rem 1.25rem 1.2rem; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 70px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a, .nav-link-btn { padding: .75rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-link-btn { justify-content: flex-start; width: 100%; }
  .admin-link { font-size: 1rem; }
  .btn-nav { text-align: center; margin-top: .6rem; border-bottom: none; padding: .8rem 1.1rem; }
}

@media (max-width: 640px) {
  .packages-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .package-card.is-highlight { transform: none; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); line-height: 1.15; }
  .hero .lead { font-size: 1rem; margin-bottom: 1.6rem; }
  .hero-visual { margin-top: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 3.2rem 0; }
  .section-head { margin-bottom: 2rem; }
}

/* Modal de contato */
.contact-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.5rem; }
.contact-modal[hidden] { display: none; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 20, .7); backdrop-filter: blur(4px); }
.contact-modal-card { position: relative; width: 100%; max-width: 420px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); animation: contactPop .2s ease; }
@keyframes contactPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.contact-modal-card h3 { margin-bottom: .4rem; }
.contact-modal-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; }
.contact-modal-close { position: absolute; top: .8rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color .2s; }
.contact-modal-close:hover { color: var(--text); }
.contact-modal-links { display: flex; flex-direction: column; gap: .7rem; }
.contact-modal-links a { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; transition: border-color .2s, transform .2s; }
.contact-modal-links a:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact-modal-links a i { color: var(--accent); width: 20px; height: 20px; }
.contact-modal-links a .contact-ig { color: var(--accent); flex-shrink: 0; }
.contact-modal-empty { color: var(--muted); font-size: .9rem; }

/* Processo / como funciona */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.process-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; transition: border-color .2s, transform .2s; }
.process-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.process-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); color: var(--accent); margin-bottom: 1rem; }
.process-icon i { width: 24px; height: 24px; }
.process-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.process-card p { color: var(--muted); font-size: .92rem; }

/* Cases estruturados */
.case-details { margin: .6rem 0; }
.case-details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.case-details p { color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.case-details strong { color: var(--text); }
.case-link { display: inline-block; margin-top: .6rem; color: var(--primary); font-weight: 600; }

/* Multi-step form */
.lead-steps { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.lead-step-dot { width: 32px; height: 4px; border-radius: 2px; background: var(--border-strong); transition: background .2s; }
.lead-step-dot.is-active { background: var(--primary); }
.lead-step { display: flex; flex-direction: column; gap: .8rem; }
.lead-step[hidden] { display: none; }
.lead-step-actions { display: flex; gap: .6rem; }
.lead-step-actions .btn { flex: 1; }

/* Opt-in do formulário */
.lead-consent { display: flex; align-items: flex-start; gap: .6rem; color: var(--muted); font-size: .82rem; text-align: left; }
.lead-consent input { width: auto; margin-top: .2rem; flex-shrink: 0; }
.lead-consent a { color: var(--accent); text-decoration: underline; }

/* Rodapé: NAP e links */
.footer-nap { color: var(--muted); font-size: .85rem; margin-top: .6rem; display: flex; align-items: center; gap: .4rem; }
.footer-nap i { width: 15px; height: 15px; }
.footer-nap a { color: var(--muted); }
.footer-links { margin-top: .5rem; font-size: .85rem; }
.footer-links a { color: var(--muted); text-decoration: underline; }
.footer-links a:hover { color: var(--primary); }

/* Assistente de chat */
.assistant-fab { position: fixed; bottom: 24px; left: 24px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; background: var(--primary); color: #04121a; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(20, 184, 166, .45); transition: transform .2s; }
.assistant-fab:hover { transform: scale(1.08); }
.assistant-fab i { width: 26px; height: 26px; }
.assistant-panel { position: fixed; bottom: 94px; left: 24px; z-index: 950; width: 350px; max-width: calc(100vw - 48px); height: 480px; max-height: calc(100vh - 130px); background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: contactPop .2s ease; }
.assistant-panel[hidden] { display: none; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.assistant-header strong { display: block; font-size: .95rem; }
.assistant-header span { color: var(--muted); font-size: .78rem; }
.assistant-close { background: none; border: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.assistant-close:hover { color: var(--text); }
.assistant-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.assistant-msg { max-width: 85%; padding: .65rem .9rem; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.assistant-msg-bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.assistant-msg-user { align-self: flex-end; background: var(--primary); color: #04121a; border-bottom-right-radius: 4px; }
.assistant-typing { opacity: .6; letter-spacing: 2px; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.assistant-chip { background: transparent; border: 1px solid var(--border-strong); color: var(--text); border-radius: 16px; padding: .35rem .8rem; font-size: .8rem; cursor: pointer; transition: border-color .2s, color .2s; }
.assistant-chip:hover { border-color: var(--primary); color: var(--primary); }
.assistant-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--border); }
.assistant-form input { flex: 1; background: rgba(0,0,0,.25); border: 1px solid var(--border-strong); color: var(--text); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.assistant-form input:focus { outline: none; border-color: var(--primary); }
.assistant-form button { width: 42px; border: none; border-radius: 10px; background: var(--primary); color: #04121a; cursor: pointer; display: grid; place-items: center; }
.assistant-form button i { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .assistant-panel { left: 12px; bottom: 88px; }
  .assistant-fab { left: 16px; bottom: 16px; }
}

/* Banner de cookies */
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 950; max-width: 760px; margin: 0 auto; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s; }
.blog-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.blog-card a { display: block; color: inherit; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-placeholder { width: 100%; height: 180px; display: grid; place-items: center; font-size: 3rem; font-weight: 700; font-family: "Space Grotesk", sans-serif; color: var(--accent); background: var(--surface-2); }
.blog-card-body { padding: 1.3rem; }
.blog-card-body time { color: var(--muted); font-size: .8rem; }
.blog-card-body h2, .blog-card-body h3 { font-size: 1.1rem; margin: .4rem 0 .6rem; }
.blog-card-body p { color: var(--muted); font-size: .9rem; }
.blog-readmore { display: inline-block; margin-top: .8rem; color: var(--primary); font-weight: 600; font-size: .9rem; }
.blog-empty { color: var(--muted); text-align: center; padding: 2rem 0; }

/* Artigo */
.article-content { max-width: 760px; }
.article-back { color: var(--accent); font-weight: 600; font-size: .9rem; }
.article-content h1 { margin: 1rem 0 .4rem; }
.article-date { color: var(--muted); font-size: .85rem; }
.article-cover { width: 100%; border-radius: 16px; margin: 1.5rem 0; }
.article-body { line-height: 1.8; color: var(--text); }
.article-body p { margin-bottom: 1.1rem; color: var(--text); }
.related-title { margin: 3rem 0 1.2rem; }

/* Página de erro (404/500) */
.error-page { text-align: center; }
.error-content { max-width: 540px; }
.error-code { display: block; font-family: "Space Grotesk", sans-serif; font-size: 5rem; font-weight: 700; line-height: 1; color: var(--accent); }
.error-content h1 { margin: .6rem 0; }
.error-content p { color: var(--muted); margin-bottom: 1.6rem; }
.error-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Páginas legais */
.legal-content { max-width: 760px; }
.legal-content h1 { margin-bottom: 1rem; }
.legal-content h2 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.legal-content p { color: var(--muted); line-height: 1.7; }
.legal-intro { font-size: 1rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-back { margin-top: 2.5rem; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}
