:root {
  --bg: #ffffff;
  --bg-card: #f6faf9;
  --bg-card2: #eaf2f0;
  --primary: #0d2b20;
  --text: #111827;
  --text-muted: #51607a;
  --accent: #017d6c;
  --accent2: #02ab72;
  --accent-hover: #015346;
  --accent-dark: #01603b;
  --highlight: #b1e2df;
  --border: rgba(1,125,108,0.18);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(1,125,108,0.08);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* TAG STYLE */
.tag {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(1,125,108,0.08);
  border: 1px solid rgba(1,125,108,0.25);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* NAV */
nav {
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-jf {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
}
.logo-jf-icon {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-jf-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.logo-jf-nome {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}
.logo-jf-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s ease;
}
.logo-jf:hover .logo-jf-nome,
.logo-jf:hover .logo-jf-sub {
  color: var(--highlight);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all .2s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}
.nav-links a.active { color: var(--highlight); }
.nav-cta {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}
.btn-outline {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { background: rgba(1,125,108,0.08); }
.btn-solid {
  padding: 0.45rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn-solid:hover { background: var(--accent-hover); }

/* HERO — gradiente verde */
.hero {
  background: linear-gradient(135deg, #017d6c 0%, #015346 60%, #01603b 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #015346;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag { margin-bottom: 1.5rem; }
.hero-tag .tag {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}
.hero h1 .highlight { color: var(--highlight); }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.stat {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--highlight); display: block; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* FILTERS */
.filters {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 2rem;
  position: sticky;
  top: 68px;
  z-index: 90;
}
.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn::before { content: '{ '; }
.filter-btn::after  { content: ' }'; }
.filter-btn:hover, .filter-btn.active {
  background: rgba(1,125,108,0.08);
  border-color: var(--accent);
  color: var(--accent);
}
.search-box {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--bg-card2);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color .2s;
  min-width: 200px;
}
.search-box::placeholder { color: rgba(0,0,0,0.3); }
.search-box:focus { border-color: var(--accent); }

/* GRID */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* PRODUCT CARD */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(1,125,108,0.05);
  box-shadow: 0 8px 32px rgba(1,125,108,0.18);
}
.card-icon { font-size: 1.8rem; color: var(--accent); display: inline-flex; }
.card-icon svg { width: 32px; height: 32px; }
.card-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.card-category { font-size: 0.78rem; color: var(--text-muted); }

/* BADGES — estilo único neutro */
.badge {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: auto;
  color: var(--accent);
  background: rgba(1,125,108,0.08);
  border: 1px solid rgba(1,125,108,0.2);
}
.badge-contas, .badge-pagamentos, .badge-credito, .badge-renda-fixa,
.badge-renda-variavel, .badge-cambio, .badge-derivativos, .badge-seguros,
.badge-previdencia, .badge-fintech, .badge-mercado-capitais { /* herda .badge */ }

/* PRODUCT DETAIL PAGE */
.breadcrumb {
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* PRODUCT HERO */
.product-hero {
  background: linear-gradient(135deg, #017d6c 0%, #015346 100%);
  border-bottom: 3px solid #015346;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
}
.product-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.product-icon-big { font-size: 3.5rem; margin-bottom: 1rem; }
.product-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}
.product-meta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.product-meta .tag {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

.content-section {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
}
.content-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Courier New', monospace;
}
.content-section h2::before { content: '{ '; opacity: 0.5; }
.content-section h2::after  { content: ' }'; opacity: 0.5; }
.content-section p { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.95rem; }
.content-section ul { list-style: none; padding: 0; }
.content-section ul li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.92rem;
}
.content-section ul li:last-child { border-bottom: none; }
.content-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.steps { display: flex; flex-direction: column; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  background: var(--accent);
  color: #ffffff;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
}
.step-text { color: var(--text-muted); font-size: 0.92rem; }
.step-text strong { display: block; color: var(--text); margin-bottom: 0.2rem; font-size: 0.95rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(1,125,108,0.06);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all .2s;
  margin-bottom: 1.5rem;
  font-family: 'Courier New', monospace;
}
.back-btn:hover { background: rgba(1,125,108,0.14); }

/* FOOTER */
footer {
  background: var(--primary);
  border-top: 3px solid var(--accent);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.82rem;
}
footer strong { color: var(--highlight); }
footer .btn-solid { background: var(--accent); color: #fff; }
footer .btn-solid:hover { background: var(--accent-hover); }

/* WHATSAPP BUTTON */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform .2s;
  z-index: 999;
  font-size: 1.5rem;
}
.whatsapp-btn:hover { transform: scale(1.1); }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  border-radius: 6px;
  transition: background .2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV DRAWER */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 1rem 1rem;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  transition: all .2s;
}
.nav-mobile a:hover { color: #ffffff; background: rgba(255,255,255,0.08); }

/* POP-UP DE LEADS */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,43,32,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lead-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lead-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(1,125,108,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 20px 60px rgba(13,43,32,0.25);
  transform: scale(0.94) translateY(6px);
  transition: transform .25s ease;
}
.lead-modal-overlay.open .lead-modal { transform: scale(1) translateY(0); }
.lead-modal h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 0.5rem; }
.lead-modal-sub { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.4rem; }
.lead-field { display: block; margin-bottom: 1rem; }
.lead-field span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500; }
.lead-field input {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.lead-field input::placeholder { color: rgba(0,0,0,0.3); }
.lead-field input:focus { border-color: var(--accent2); }
.lead-submit { width: 100%; margin-top: 0.4rem; border: none; cursor: pointer; font-size: 0.92rem; }
.lead-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-modal-status { min-height: 1.1rem; margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-muted); text-align: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links a { font-size: 0.8rem; padding: 0.35rem 0.55rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 60px; }
  .filters { top: 60px; }

  .hero { padding: 3.5rem 1rem 2.5rem; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero p { font-size: 0.95rem; }
  .hero-stats { gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
  .stat { border-right: none; padding: 0 1rem; }

  .filters { padding: 0.75rem 1rem; }
  .search-box { min-width: 100%; width: 100%; }

  .container { padding: 1.25rem 0.875rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .card { padding: 1rem; gap: 0.5rem; }
  .card-icon { font-size: 1.4rem; }
  .card-icon svg { width: 26px; height: 26px; }
  .card-name { font-size: 0.88rem; }
  .card-category { font-size: 0.72rem; }

  .product-hero { padding: 2.5rem 1rem; }
  .product-icon-big { font-size: 2.5rem; }
  .breadcrumb { padding: 0.75rem 1rem; }

  .content-section { padding: 1.25rem; }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  footer { padding: 1.5rem 1rem; margin-top: 2.5rem; }
  footer .btn-solid { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 0.5rem; }
}

.card.hidden { display: none; }

.footer-cnpj { margin-top: 0.4rem; font-size: 0.85rem; opacity: 0.8; }
