/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --fg: #1e2a3a;
  --fg-muted: #6b7a8d;
  --primary: #0a3d6b;
  --primary-light: rgba(10, 61, 107, 0.08);
  --primary-glow: rgba(10, 61, 107, 0.12);
  --border: #e4e7ec;
  --card-bg: #ffffff;
  --radius: 0.75rem;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }

.text-gradient {
  background: linear-gradient(135deg, #00b4d8, #0a3d6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow { box-shadow: 0 0 60px var(--primary-glow); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity .2s, background .2s;
  font-family: var(--font);
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: .9; }

.btn-outline { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-outline:hover { background: var(--bg-alt); }

.btn-sm { height: 36px; padding: 0 1.25rem; font-size: .875rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(228,231,236,0.5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: .875rem; color: var(--fg-muted); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.phone-link {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--primary);
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex; align-items: center; gap: .35rem;
  background: none; border: none; cursor: pointer;
  font-size: .875rem; color: var(--fg-muted);
  font-family: var(--font); padding: 0;
  transition: color .2s;
}
.nav-dropdown-toggle:hover { color: var(--fg); }
.nav-dropdown-toggle svg { transition: transform .2s; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding-top: .75rem; /* bridge invisível — mantém hover contínuo */
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  display: block;
  position: absolute;
  top: .75rem; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: -1;
}

.nav-dropdown-menu a {
  position: relative; /* garante que fica acima do ::before */
}

.nav-dropdown-menu a {
  display: block;
  padding: .6rem 1rem;
  font-size: .875rem;
  color: var(--fg-muted);
  border-radius: .5rem;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--fg); }

.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

/* Mobile submenu */
.mobile-submenu { display: flex; flex-direction: column; gap: .5rem; }
.mobile-submenu-label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-muted); padding: .25rem 0;
}
.mobile-submenu a { font-size: 1rem; color: var(--fg); padding-left: .75rem; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--fg); margin: 5px 0; transition: .3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a { font-size: 1.125rem; color: var(--fg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 50%, #f0f5f7 100%);
  overflow: hidden;
  padding-top: 64px;
}

.hero-glow {
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--primary-light);
  filter: blur(120px);
  pointer-events: none;
}

.hero-content { text-align: center; position: relative; z-index: 2; }
.hero-tag {
  font-size: .875rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.5rem;
}

.hero h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 700; line-height: 1.1; max-width: 800px; margin: 0 auto; }
.hero-sub { margin-top: 1.5rem; font-size: 1.125rem; color: var(--fg-muted); max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* CPF Form */
.cpf-form { margin-top: 2.5rem; max-width: 440px; margin-left: auto; margin-right: auto; }
.cpf-input-wrapper {
  display: flex; align-items: center; gap: .5rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: .75rem; padding: .5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.cpf-input-wrapper input {
  flex: 1; height: 48px; padding: 0 1rem;
  background: transparent; border: none; outline: none;
  font-size: 1rem; color: var(--fg); font-family: var(--font);
}
.cpf-input-wrapper input::placeholder { color: var(--fg-muted); }
.btn-cpf {
  height: 48px; padding: 0 1.5rem; gap: .5rem;
  white-space: nowrap; border-radius: .5rem;
}
.btn-cpf:disabled { opacity: .4; cursor: not-allowed; }
.cpf-hint { margin-top: .75rem; font-size: .8rem; color: var(--fg-muted); }

/* Profile Cards */
.profile-cards {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.profile-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 1.5rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 1rem; transition: border-color .2s;
}
.profile-card:hover { border-color: rgba(10, 61, 107, 0.3); }
.profile-icon {
  width: 48px; height: 48px; border-radius: .75rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--primary);
}
.profile-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.profile-card p { font-size: .8rem; color: var(--fg-muted); line-height: 1.5; }

@media (max-width: 768px) {
  .profile-cards { grid-template-columns: 1fr; max-width: 360px; }
}

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--fg-muted); transition: color .2s;
}
.scroll-indicator:hover { color: var(--primary); }
.scroll-indicator span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.scroll-indicator svg { animation: bounce 2s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 700; }
.section-header p { margin-top: 1rem; font-size: 1.125rem; color: var(--fg-muted); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== GRID ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(0,157,181,0.3); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: .75rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
.card p { font-size: .875rem; color: var(--fg-muted); line-height: 1.6; }

.card-horizontal { display: flex; align-items: flex-start; gap: 1rem; }
.card-icon-sm {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: .5rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.card-horizontal h3 { margin-bottom: .25rem; }

/* ===== STEPS ===== */
.step { text-align: center; }
.step-icon {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 1rem;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
}
.step-num {
  position: absolute; top: -8px; right: -8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.step p { font-size: .875rem; color: var(--fg-muted); max-width: 280px; margin: 0 auto; }

/* ===== TESTIMONIALS ===== */
.testimonial { position: relative; }
.quote-icon { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--primary); }
.testimonial-text { font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author strong { display: block; }
.testimonial-author span { font-size: .875rem; color: var(--primary); }

/* ===== STATS ===== */
.stat-card { text-align: center; }
.stat-value { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: .5rem; }
.stat-label { font-size: .875rem; color: var(--fg-muted); }

/* ===== FAQ ===== */
.faq-category {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}

.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.125rem 0; background: none; border: none;
  font-size: 1rem; font-weight: 500; color: var(--fg);
  cursor: pointer; text-align: left; font-family: var(--font);
  transition: color .2s;
}
.accordion-trigger:hover { color: var(--primary); }

.accordion-icon {
  font-size: 1.25rem; font-weight: 300;
  transition: transform .3s;
  min-width: 20px; text-align: center;
}

.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.accordion-content p { color: var(--fg-muted); font-size: .9375rem; line-height: 1.7; }

.accordion-item.open .accordion-content { max-height: 200px; padding-bottom: 1rem; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }

/* ===== CTA BOX ===== */
.cta-box {
  position: relative;
  border-radius: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 4rem 3rem;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--primary-light);
  filter: blur(100px);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 700; position: relative; z-index: 1; }
.cta-box p { margin-top: 1rem; font-size: 1.125rem; color: var(--fg-muted); max-width: 560px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-box .hero-actions { position: relative; z-index: 1; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.footer-desc { margin-top: 1rem; font-size: .875rem; color: var(--fg-muted); max-width: 320px; line-height: 1.7; }
.footer h4 { font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: .75rem; }
.footer ul li { font-size: .875rem; color: var(--fg-muted); }
.footer ul a { transition: color .2s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center; font-size: .75rem; color: var(--fg-muted);
}

/* ===== ERROR PAGES ===== */
.error-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  overflow: hidden;
  padding-top: 64px;
}

.error-inner {
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  opacity: .12;
  margin-bottom: 1rem;
  letter-spacing: -.05em;
}

.error-inner h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.error-inner > p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

/* ===== LANCAMENTO PAGES ===== */
.lancamento-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 50%, #f0f5f7 100%);
  overflow: hidden;
  padding-top: 64px;
}

.lancamento-inner {
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.lancamento-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.lancamento-inner h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.lancamento-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.lancamento-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.lancamento-feature {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9375rem;
  color: var(--fg);
}

.lancamento-feature svg { color: var(--primary); flex-shrink: 0; }

.lancamento-hint {
  margin-top: 2rem;
  font-size: .875rem;
  color: var(--fg-muted);
}

.lancamento-hint a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ===== AUTORES PAGE ===== */
.autores-hero {
  position: relative;
  padding-top: 64px;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  overflow: hidden;
}

.autores-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 1.5rem;
}

.autores-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.autores-hero-text p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.cpf-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

.cpf-card-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.cpf-alert {
  background: #fff3f3;
  border: 1px solid #fca5a5;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .1em;
}

@media (max-width: 768px) {
  .autores-hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
}

/* ===== SOBRE PAGE ===== */
.section-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.sobre-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: start;
}

.sobre-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.sobre-text p {
  font-size: .9375rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.sobre-text p strong { color: var(--fg); }

.sobre-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 200px;
  padding-top: 2.5rem;
}

.stat-item { text-align: center; }

.stat-item .stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-item .stat-label {
  font-size: .8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .sobre-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .sobre-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; padding-top: 0; }
  .stat-item { min-width: 120px; }
}

/* ===== PAGE HEADER (páginas internas) ===== */
.page-header {
  padding-top: 64px; /* altura da navbar */
  background: linear-gradient(180deg, #f5f6f8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  padding: 4rem 0 3rem;
}

.page-breadcrumb {
  font-size: .8rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.page-breadcrumb a { color: var(--primary); transition: opacity .2s; }
.page-breadcrumb a:hover { opacity: .75; }
.page-breadcrumb span { color: var(--border); }

.page-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.page-header p {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
}

/* ===== PROSE (conteúdo textual de páginas internas) ===== */
.prose { color: var(--fg); }

.prose p {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

.prose p strong { color: var(--fg); }

.prose h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.prose ul {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.prose ul li {
  font-size: .9375rem;
  color: var(--fg-muted);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .5;
}

.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: .8; }

.prose .notice {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: var(--fg);
  line-height: 1.7;
}

.prose .last-update {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--fg-muted);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu.open { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .section { padding: 4rem 0; }
  .cta-box { padding: 3rem 1.5rem; }
}
