﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --nw-green: #008254;
  --nw-green-hover: #006B44;
  --nw-green-dark: #005A3A;
  --nw-green-soft: #E6F5EF;
  --nw-green-border: #A7F3D0;
  --nw-blue: #0066CC;
  --nw-blue-hover: #004C99;
  --nw-ink: #111827;
  --nw-slate: #374151;
  --nw-muted: #6B7280;
  --nw-line: #E5E7EB;
  --nw-bg: #F8FAFC;
  --nw-white: #FFFFFF;
  --nw-amber: #F59E0B;
  --nw-danger: #DC2626;
  --radius-card: 12px;
  --shadow-card: 0 4px 18px -2px rgba(17, 24, 39, 0.07), 0 2px 6px -1px rgba(17, 24, 39, 0.04);
  --shadow-hover: 0 14px 30px -4px rgba(0, 130, 84, 0.13), 0 4px 10px -2px rgba(17, 24, 39, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--nw-ink);
  background-color: var(--nw-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  color: var(--nw-ink);
}

a {
  color: var(--nw-blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--nw-blue-hover);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   TOP BAR & HEADER (NerdWallet Editorial Navigation)
   ========================================================================== */
.top-trust-bar {
  background: #0B251C;
  color: #D1FAE5;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.site-header {
  background: var(--nw-white);
  border-bottom: 1px solid var(--nw-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #008254 0%, #005A3A 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 130, 84, 0.25);
}

.brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--nw-ink);
  letter-spacing: -0.03em;
}

.brand-text span {
  color: var(--nw-green);
}

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--nw-green-soft);
  color: var(--nw-green-dark);
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 4px;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--nw-slate);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.15s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--nw-green-dark);
  background: var(--nw-green-soft);
}

.main-nav a.nav-cta {
  background: var(--nw-green);
  color: #fff !important;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  margin-left: 6px;
}

.main-nav a.nav-cta:hover {
  background: var(--nw-green-hover);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--nw-line);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 18px;
  cursor: pointer;
  color: var(--nw-ink);
}

@media (max-width: 920px) {
  .mobile-menu-btn { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--nw-white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 2px solid var(--nw-green);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  }
  .main-nav.open { display: flex; }
}

/* ==========================================================================
   HERO & PILLAR HEADER
   ========================================================================== */
.pillar-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F8F5 100%);
  border-bottom: 1px solid var(--nw-line);
  padding: 36px 0 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nw-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--nw-green-dark);
  font-weight: 600;
}

.pillar-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--nw-ink);
  margin-bottom: 14px;
}

.pillar-subtitle {
  font-size: 17px;
  color: var(--nw-slate);
  max-width: 840px;
  margin-bottom: 20px;
}

.editorial-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--nw-muted);
  padding-top: 14px;
  border-top: 1px solid rgba(0, 130, 84, 0.12);
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--nw-green-border);
  color: var(--nw-green-dark);
  padding: 5px 11px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   STICKY FILTER & SEARCH BAR (Anti-scroll fatigue for 21-87 cards)
   ========================================================================== */
.filter-bar-wrap {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nw-line);
  padding: 14px 0;
  position: sticky;
  top: 68px;
  z-index: 80;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  overflow: hidden;
  max-width: 100%;
}

.filter-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--nw-ink);
  background: #F8FAFC;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--nw-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 130, 84, 0.12);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nw-muted);
  font-size: 15px;
}

.filter-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--nw-green-dark);
  background: var(--nw-green-soft);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.filter-chip {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--nw-slate);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.filter-chip:hover {
  border-color: var(--nw-green);
  color: var(--nw-green-dark);
}

.filter-chip.active {
  background: var(--nw-green);
  border-color: var(--nw-green);
  color: #fff;
}

/* ==========================================================================
   NERDWALLET CREDIT CARD COMPONENT (EXACT REPLICA OF DUDU'S SCREENSHOT)
   ========================================================================== */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 28px 0;
}

.nw-card {
  background: var(--nw-white);
  border: 2px solid #005A3A;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  /* Core Web Vitals: o navegador só calcula layout/pintura do card quando ele se aproxima da tela.
     O HTML continua inteiro (SEO e busca Ctrl+F); 'auto' memoriza a altura real depois do 1º render. */
  content-visibility: auto;
  contain-intrinsic-size: auto 1150px;
}

.nw-card:hover {
  box-shadow: var(--shadow-hover);
}

.nw-card-TopBody {
  padding: 20px 20px 16px;
}

/* 1. "Our pick for: ..." Green Pill Badge */
.nw-pick-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--nw-green-soft);
  color: var(--nw-green-dark);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.nw-pick-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--nw-green);
  margin-top: 1px;
}

/* 2. Card Title */
.nw-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--nw-ink);
  line-height: 1.25;
  margin-bottom: 16px;
}

/* 3. Visual Art + Rating + Compare Row (2 columns on mobile & desktop) */
.nw-hero-row {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

@media (max-width: 380px) {
  .nw-hero-row {
    grid-template-columns: 136px 1fr;
    gap: 12px;
  }
}

/* Realistic Credit Card CSS/SVG Art */
.nw-card-art {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 9px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.nw-card-art::before {
  content: '';
  position: absolute;
  right: -30%;
  top: -40%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
  pointer-events: none;
}

/* Bank Themes */
.theme-dark, .theme-c6 { background: linear-gradient(135deg, #1E293B 0%, #090D16 100%); }
.theme-bradesco { background: linear-gradient(135deg, #B91C1C 0%, #450A0A 100%); }
.theme-itau { background: linear-gradient(135deg, #EA580C 0%, #1E3A8A 100%); }
.theme-santander { background: linear-gradient(135deg, #DC2626 0%, #7F1D1D 100%); }
.theme-bb { background: linear-gradient(135deg, #1D4ED8 0%, #0F172A 85%, #FACC15 100%); }
.theme-nubank { background: linear-gradient(135deg, #6B21A8 0%, #2E1065 100%); }
.theme-inter { background: linear-gradient(135deg, #F97316 0%, #9A3412 100%); }
.theme-xp { background: linear-gradient(135deg, #18181B 0%, #09090B 100%); border: 1px solid rgba(234, 179, 8, 0.45); }
.theme-caixa { background: linear-gradient(135deg, #0369A1 0%, #1E3A8A 100%); }
.theme-brb { background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #38BDF8 100%); }
.theme-neon { background: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%); }
.theme-rappi { background: linear-gradient(135deg, #FB7185 0%, #E11D48 100%); }
.theme-ame { background: linear-gradient(135deg, #E11D48 0%, #4C1D95 100%); }
.theme-original, .theme-sicredi, .theme-sicoob, .theme-uniprime { background: linear-gradient(135deg, #047857 0%, #064E3B 100%); }
.theme-elo, .theme-banpara, .theme-banrisul { background: linear-gradient(135deg, #334155 0%, #0F172A 100%); }

/* Yellow Offer Pill inside Card Art (Like Capital One "LIMITED-TIME OFFER") */
.nw-art-offer-pill {
  display: inline-block;
  background: #D9F99D;
  color: #14532D;
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 72%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nw-art-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.nw-art-bank {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.95;
  text-align: right;
}

.nw-art-chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.nw-emv-chip {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, #FDE68A 0%, #D97706 100%);
  border: 1px solid rgba(255,255,255,0.4);
  position: relative;
}

.nw-art-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.nw-art-tier {
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
  font-weight: 700;
}

.nw-art-brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Right side of Hero: Rating + Add to compare */
.nw-rating-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nw-rating-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--nw-blue);
  font-weight: 600;
}

.nw-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nw-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--nw-green);
}

.nw-rating-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--nw-ink);
}

.nw-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 10px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nw-ink);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.nw-compare-label:hover {
  border-color: var(--nw-green);
  background: var(--nw-green-soft);
}

.nw-compare-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--nw-green);
  cursor: pointer;
}

/* 4. Primary Green CTA Button (APPLY NOW / SOLICITAR CARTÃO) */
.nw-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--nw-green);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(0, 130, 84, 0.25);
}

.nw-cta-btn:hover {
  background: var(--nw-green-hover);
  transform: translateY(-1px);
}

.nw-cta-btn:active {
  transform: scale(0.99);
}

.nw-cta-sub {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: var(--nw-muted);
}

.nw-rates-link {
  display: inline-block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nw-blue);
  cursor: pointer;
}

/* 5. Spec Grid (Annual fee | Rewards rate, Intro offer, Renda, Credit Score) */
.nw-specs-grid {
  margin-top: 16px;
  border-top: 1px solid var(--nw-line);
}

.nw-spec-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--nw-line);
}

.nw-spec-cell {
  padding: 14px 12px;
}

.nw-spec-cell:first-child {
  border-right: 1px solid var(--nw-line);
  padding-left: 0;
}

.nw-spec-row-full {
  padding: 13px 0;
  border-bottom: 1px solid var(--nw-line);
}

.nw-spec-row-full:last-child {
  border-bottom: none;
}

.nw-spec-label {
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nw-spec-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--nw-ink);
  line-height: 1.35;
}

.nw-spec-sub {
  font-size: 12.5px;
  color: var(--nw-muted);
  margin-top: 2px;
}

.nw-score-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nw-blue);
  cursor: pointer;
}

.nw-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #6B7280;
  color: #4B5563;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}

/* 6. Bottom Expandable Accordions (Rewards breakdown & Card details) */
.nw-accordions {
  border-top: 1px solid var(--nw-line);
  background: #FAFAFA;
}

.nw-acc-item {
  border-bottom: 1px solid var(--nw-line);
}

.nw-acc-item:last-child {
  border-bottom: none;
}

.nw-acc-btn {
  width: 100%;
  background: #FFFFFF;
  border: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--nw-ink);
  text-align: left;
  transition: background 0.15s;
}

.nw-acc-btn:hover {
  background: #F8FAFC;
}

.nw-acc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nw-acc-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--nw-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.nw-acc-chevron {
  transition: transform 0.25s ease;
  font-size: 14px;
  color: var(--nw-slate);
}

.nw-acc-item.open .nw-acc-chevron {
  transform: rotate(180deg);
}

.nw-acc-panel {
  display: none;
  padding: 18px 20px 22px;
  background: #F8FAFC;
  border-top: 1px solid var(--nw-line);
  font-size: 14.5px;
  color: var(--nw-slate);
}

.nw-acc-item.open .nw-acc-panel {
  display: block;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}

.pros-box, .cons-box {
  background: #fff;
  border: 1px solid var(--nw-line);
  border-radius: 8px;
  padding: 14px;
}

.pros-box h5 { color: var(--nw-green-dark); font-size: 14px; margin-bottom: 8px; }
.cons-box h5 { color: #B91C1C; font-size: 14px; margin-bottom: 8px; }

.pros-list, .cons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}

.pros-list li::before {
  content: '✓ ';
  color: var(--nw-green);
  font-weight: 800;
}

.cons-list li::before {
  content: '✕ ';
  color: #DC2626;
  font-weight: 800;
}

/* ==========================================================================
   DESKTOP 2-COLUMN LAYOUT (Main Content + Sticky Sidebar)
   ========================================================================== */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) 340px;
  gap: 36px;
  justify-content: space-between;
  padding: 28px 0 60px;
}

/* minmax(0,1fr) + min-width:0 = a coluna NUNCA cresce além da tela.
   Com "1fr" puro o grid usa o min-content da tabela (~935px) e o iPhone
   dá zoom-out na página inteira (bug do print de 08/11). */
.main-col,
.sidebar-col {
  min-width: 0;
}

@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Quick Summary Table (Featured Snippet Optimized) */
.quick-table-wrap {
  background: #fff;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0 30px;
  box-shadow: var(--shadow-card);
}

.quick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.quick-table th {
  background: #0F172A;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}

.quick-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--nw-line);
  vertical-align: middle;
}

.quick-table tr:hover td {
  background: #F0FDF4;
}

.table-cta-sm {
  display: inline-block;
  background: var(--nw-green);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Editorial Guide Content */
.editorial-guide {
  background: #fff;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  padding: 28px 24px;
  margin-top: 36px;
  box-shadow: var(--shadow-card);
}

.editorial-guide h2 {
  font-size: 23px;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nw-green-soft);
}

.editorial-guide h2:first-child { margin-top: 0; }

.editorial-guide h3 {
  font-size: 18px;
  margin: 20px 0 8px;
  color: var(--nw-green-dark);
}

.editorial-guide p {
  margin-bottom: 14px;
  color: var(--nw-slate);
  font-size: 15.5px;
}

/* Interactive Card Finder Quiz Widget */
.quiz-box {
  background: linear-gradient(135deg, #064E3B 0%, #0F172A 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  margin: 24px 0 32px;
  box-shadow: 0 12px 30px rgba(0, 90, 58, 0.22);
}

.quiz-box h2, .quiz-box h3 { color: #fff; }

.quiz-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
  transition: all 0.18s;
}

.quiz-option-btn:hover {
  background: var(--nw-green);
  border-color: #6EE7B7;
  transform: translateX(4px);
}

/* ==========================================================================
   PAGINATED QUIZ FUNNEL & VIGNETTE MICRO-QUIZ (/simulador/*)
   ========================================================================== */
.btn-quiz:hover {
  background: #008254 !important;
  transform: translateY(-1px);
}
.btn-quiz:active {
  transform: scale(0.98) !important;
  background: #005A3A !important;
}

.sim-progress-wrap {
  background: #fff;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.sim-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--nw-green-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sim-progress-track {
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
}
.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #008254 0%, #10B981 100%);
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* Espaço de anúncio reservado (AdSense manual). Mapa: docs/deploy/MAPA_SLOTS_ANUNCIO.md
   - Oculto por padrão; js/ads-config.js (no <head>, antes do corpo) libera as posições com
     unidade configurada. Nada aparece nem some depois do 1º desenho: sem CLS.
   - Caixa de tamanho FIXO (300x250 no celular, 336x280 a partir de 768px): o anúncio carrega
     dentro dela sem empurrar o conteúdo.
   - Margem de 40px: longe de botão de afiliado, do CTA do quiz e da navegação. */
.ad-safe-slot {
  display: none;
  width: 100%;
  max-width: 336px;
  margin: 40px auto;
  padding: 0;
  text-align: center;
}
.ad-safe-label {
  display: block;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  margin-bottom: 6px;
}
.ad-safe-box {
  width: 300px;
  height: 250px;
  min-height: 250px;
  margin: 0 auto;
  overflow: hidden;
  background: #F1F5F9;
  border-radius: 8px;
}
@media (min-width: 768px) {
  .ad-safe-box { width: 336px; height: 280px; }
}
html.cc-ads-preview .ad-safe-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #94A3B8;
  font-size: 12px;
  color: #475569;
}
html.cc-ads-preview .ad-safe-box::after {
  content: 'Espaço reservado para anúncio';
}

/* Touch Targets 54px+ para Opções do Quiz Paginado */
.sim-question-card {
  background: #fff;
  border: 2px solid #008254;
  border-radius: 16px;
  padding: 22px 18px;
  margin-bottom: 32px;
  box-shadow: 0 12px 30px -6px rgba(0, 130, 84, 0.14);
}
.sim-option-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #0F172A;
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  border-radius: 10px;
  border: 2px solid #0F172A;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}
.sim-option-link:hover {
  background: #008254;
  border-color: #008254;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.sim-option-link:active {
  transform: scale(0.98);
  background: #005A3A;
}

/* Premium Interactive Quiz Option Cards */
.sim-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  text-decoration: none;
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.sim-option-card:hover, .sim-option-card:focus {
  border-color: #008254;
  background: #F0FDF4;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 130, 84, 0.12);
}
.sim-option-card:active {
  transform: scale(0.99);
  background: #DCFCE7;
  border-color: #008254;
}

.sim-option-card.selected {
  border-color: #008254 !important;
  background: #F0FDF4 !important;
  box-shadow: 0 6px 16px rgba(0, 130, 84, 0.16) !important;
}

.sim-advance-btn:hover {
  background: #006D44 !important;
  transform: translateY(-1px);
}
.sim-advance-btn:active {
  transform: scale(0.98);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bloco de Escape RSOC / Ads */
.rsoc-escape-box {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 2px solid #BFDBFE;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 160px 0 40px 0;
}

/* Sidebar Widgets */
.sidebar-sticky {
  position: sticky;
  top: 148px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-card {
  background: #fff;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.side-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nw-line);
}

.side-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--nw-slate);
  padding: 8px 10px;
  border-radius: 8px;
  background: #F8FAFC;
}

.side-links a:hover {
  background: var(--nw-green-soft);
  color: var(--nw-green-dark);
}

/* Floating Comparison Drawer */
.compare-drawer {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: min(94vw, 760px);
  background: #0F172A;
  color: #fff;
  border: 2px solid var(--nw-green);
  border-radius: 14px;
  padding: 14px 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-drawer.visible {
  transform: translateX(-50%) translateY(0);
}

/* Comparison Modal & Double-Dip Modal */
.nw-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nw-modal-backdrop.open {
  display: flex;
}

.nw-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 920px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

/* Footer */
.site-footer {
  background: #0B132B;
  color: #94A3B8;
  padding: 48px 0 32px;
  font-size: 13.5px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: #CBD5E1;
}

.site-footer a:hover {
  color: #34D399;
}

/* ==========================================================================
   FIXES RESPONSIVOS MOBILE - CASA LIVRE
   ========================================================================== */

@media (max-width: 640px) {

  /* 1. TOPO COMPACTO (Economiza espaço de tela no celular) */
  .site-header {
    height: 56px;
  }
  .header-inner {
    height: 56px;
  }
  .main-nav {
    top: 56px;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .brand-text {
    font-size: 16px;
  }
  .pillar-hero {
    padding: 16px 0 20px !important;
  }
  .pillar-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px;
  }
  .pillar-subtitle {
    font-size: 14px !important;
    margin-bottom: 14px;
  }

  /* 2. GRADE DE CATEGORIAS COMPACTA (2 por linha em vez de empilhar 4 gigantes) */
  .pillar-category-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  .pillar-cat-card {
    padding: 10px 8px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
    text-align: center;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
  }
  .pillar-cat-icon {
    font-size: 20px !important;
  }
  .pillar-cat-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  .pillar-cat-sub {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  /* 3. TABELA COMPARATIVA -> CARDS EMPILHADOS NO CELULAR
     (nada de "arraste para o lado": o botão do banco fica sempre visível) */
  .quick-table-wrap {
    position: relative;
    margin: 14px 0 24px;
    border-radius: 10px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .quick-table th,
  .quick-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .quick-table.qt-cards thead {
    display: none;
  }
  .quick-table.qt-cards,
  .quick-table.qt-cards tbody,
  .quick-table.qt-cards tr,
  .quick-table.qt-cards td {
    display: block;
    width: 100%;
  }
  .quick-table.qt-cards tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px;
    border-bottom: 1px solid var(--nw-line);
  }
  .quick-table.qt-cards tr:last-child {
    border-bottom: none;
  }
  .quick-table.qt-cards tr:hover td {
    background: transparent;
  }
  .quick-table.qt-cards td {
    padding: 0;
    border: none;
    font-size: 13.5px;
    line-height: 1.4;
    color: #334155;
  }
  /* nome do cartão ocupa a linha toda */
  .quick-table.qt-cards td.qt-name {
    grid-column: 1 / 2;
    font-size: 15px;
    line-height: 1.3;
  }
  .quick-table.qt-cards td.qt-name small {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.35;
  }
  /* nota no canto direito, ao lado do nome */
  .quick-table.qt-cards td.qt-rating {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: right;
    font-size: 15px;
  }
  .quick-table.qt-cards td.qt-rating a {
    display: none;
  }
  .quick-table.qt-cards td.qt-fee,
  .quick-table.qt-cards td.qt-reward {
    grid-column: 1 / -1;
  }
  .quick-table.qt-cards td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 1px;
  }
  .quick-table.qt-cards td.qt-cta {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
  .quick-table.qt-cards td.qt-cta .nw-table-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    font-size: 14.5px;
    border-radius: 8px;
  }
  /* Garante que o botão da tabela fique visível e com cor chamativa */
  .quick-table a[target="_blank"],
  .quick-table .nw-table-cta {
    display: inline-block;
    background: #008254;
    color: #FFFFFF !important;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
  }

  /* 4. CARDS DE CARTÕES (.nw-card) 100% EMPILHADOS NO CELULAR */
  .nw-card-TopBody {
    padding: 16px 14px 12px !important;
  }
  .nw-card-title {
    font-size: 18px !important;
    margin-bottom: 12px;
  }

  /* Força coluna única: imagem do cartão em cima, botão largo embaixo */
  .nw-hero-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 16px;
  }

  .nw-card-art,
  .nw-card-art-col {
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 auto;
  }

  .nw-rating-col,
  .nw-hero-content-col {
    width: 100% !important;
    text-align: center;
    align-items: center;
  }
  .nw-rating-label-row {
    justify-content: center;
    gap: 8px;
  }
  .nw-stars-row {
    justify-content: center;
  }
  .nw-compare-label {
    margin: 4px auto 0;
  }

  /* Botão CTA Verde Full-Width (Perfeito para o polegar no mobile) */
  .nw-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 50px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    padding: 0 16px !important;
    text-align: center !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 130, 84, 0.3) !important;
  }

  /* 5. ELIMINAR QUALQUER OVERFLOW HORIZONTAL DO BODY */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  .container {
    padding: 0 12px !important;
  }
  .sim-question-card {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .ad-safe-slot {
    margin: 32px auto;
  }
  .editorial-guide {
    padding: 18px 14px;
  }
}

/* ==========================================================================
   SIMULADOR / FUNIL COMPACT HEADER & ZERO DISTRACTION
   ========================================================================== */
body.sim-page .top-trust-bar {
  display: none !important;
}
body.sim-page .site-header {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body.sim-page .header-inner {
  height: 48px;
}
body.sim-page .brand-logo {
  transform: scale(0.88);
  transform-origin: left center;
}
body.sim-page .main-nav,
body.sim-page .mobile-menu-btn {
  display: none !important;
}
body.sim-page .pillar-hero {
  padding: 12px 0 10px !important;
}
body.sim-page .pillar-title {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 4px;
}
body.sim-page .pillar-subtitle {
  font-size: 13.5px;
  margin-bottom: 8px;
}
body.sim-page .sim-progress-wrap {
  padding: 8px 12px;
  margin-bottom: 10px;
}

/* ==========================================================================
   ARTIGOS (artigos/*.html, gerados de docs/conteudo/artigos/*.md)
   ========================================================================== */
.article-body { margin-top: 0; }
.article-body ul, .article-body ol {
  margin: 0 0 14px 22px;
  color: var(--nw-slate);
  font-size: 15.5px;
}
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--nw-green-dark); text-decoration: underline; font-weight: 600; }
.article-body blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--nw-green-soft);
  border-left: 4px solid var(--nw-green);
  border-radius: 8px;
}
.article-body blockquote p { margin-bottom: 0; color: #1E293B; }
.article-body code { font-size: 0.92em; background: #F1F5F9; padding: 1px 4px; border-radius: 4px; }
.article-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
  border: 1px solid var(--nw-line);
  border-radius: 8px;
}
.article-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.article-table th, .article-table td { padding: 9px 10px; border-bottom: 1px solid var(--nw-line); text-align: left; vertical-align: top; }
.article-table th { background: #F8FAFC; font-weight: 700; color: #0F172A; }
.article-related { margin-top: 24px; }
.artigos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}
.artigo-card {
  border: 1px solid var(--nw-line);
  border-radius: 10px;
  padding: 16px;
  background: #F8FAFC;
}
.artigo-card h3 { font-size: 16.5px; margin: 0 0 8px; line-height: 1.35; }
.artigo-card h3 a { color: #111827; }
.artigo-card p { font-size: 14px; margin-bottom: 10px; }
.artigo-card .artigo-link { font-weight: 700; font-size: 14px; color: var(--nw-green-dark); }


