/* =========================================================
   CONTHÁGORA — Contabilidade Digital
   Paleta REAL da marca: azul royal #394289 + vermelho coral #ED3237
   Design tokens + componentes + responsivo (mobile-first)
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Marca — extraída da logo oficial */
  --blue-900: #1b2150;   /* navy profundo (seções escuras / footer) */
  --blue-800: #232a66;
  --blue-700: #2c3576;
  --blue-600: #394289;   /* AZUL DA MARCA (primário) */
  --blue-500: #4a55a8;
  --blue-400: #6e78c0;
  --blue-200: #c3c8e8;
  --blue-100: #e8eaf6;

  --red-700:  #b51b22;
  --red-600:  #cf2229;   /* vermelho hover */
  --red-500:  #ED3237;   /* VERMELHO DA MARCA (acento) */
  --red-300:  #f4989b;
  --red-100:  #fde7e8;

  --wa-green: #25D366;   /* WhatsApp (canal) */
  --wa-green-dark: #1da851;

  /* Backgrounds */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f5f6fb;   /* off-white levemente azulado */
  --bg-elevated:   #ffffff;
  --bg-deep:       var(--blue-900);

  /* Texto */
  --text-primary:  #1a1f3d;
  --text-secondary:#4a5172;
  --text-muted:    #757b9a;
  --text-on-deep:  #eef0fb;
  --text-on-deep-muted: #aab0d8;

  /* Bordas */
  --border-subtle: #e7e9f4;
  --border-strong: #d2d6ec;

  /* Acento semântico */
  --accent:        var(--blue-600);
  --accent-hover:  var(--blue-700);

  /* Tipografia */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Escala (1.25) */
  --fs-display: clamp(2.4rem, 5vw, 3.75rem);
  --fs-h2:      clamp(1.7rem, 3.4vw, 2.5rem);
  --fs-h3:      1.25rem;
  --fs-body-l:  1.125rem;
  --fs-body:    1rem;
  --fs-sm:      0.9rem;
  --fs-xs:      0.8rem;

  /* Spacing 8pt */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px; --sp-9: 128px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;

  /* Sombras (em camadas, com tom da marca) */
  --sh-1: 0 1px 2px rgba(27,33,80,.06), 0 1px 3px rgba(27,33,80,.05);
  --sh-2: 0 2px 6px rgba(27,33,80,.06), 0 10px 24px rgba(27,33,80,.07);
  --sh-3: 0 6px 18px rgba(27,33,80,.08), 0 24px 56px rgba(27,33,80,.16);
  --sh-blue:  0 8px 22px rgba(57,66,137,.35), inset 0 1px 0 rgba(255,255,255,.18);
  --sh-red:   0 8px 22px rgba(237,50,55,.30), inset 0 1px 0 rgba(255,255,255,.20);
  --sh-green: 0 8px 22px rgba(37,211,102,.38), inset 0 1px 0 rgba(255,255,255,.22);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur: 240ms;

  --container: 1180px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- ÍCONES (sprite SVG, sem emojis) ---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.85;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-star { fill: currentColor; stroke: none; }
.ic-solid { fill: currentColor; stroke: none; }

/* ---------- HELPERS ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-900); color: #fff; padding: var(--sp-2) var(--sp-3); border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.overline {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: var(--sp-3);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--blue-700);
  background: var(--blue-100); padding: 6px 14px; border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 4px rgba(237,50,55,.18); }

/* ---------- LOGO ---------- */
.logo-img { height: 50px; width: auto; }
.brand { display: inline-flex; align-items: center; }
.logo-badge { display: inline-block; background: #fff; padding: 9px 14px; border-radius: var(--r-md); box-shadow: var(--sh-1); }
.logo-badge .logo-img { height: 36px; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body);
  padding: 13px 22px; border-radius: var(--r-md); border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 20px; height: 20px; }
.btn-sm { padding: 9px 16px; font-size: var(--fs-sm); }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { padding: 16px 28px; font-size: var(--fs-body-l); }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-2); }
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--sh-3); }

.btn-accent { background: var(--red-500); color: #fff; box-shadow: var(--sh-2); }
.btn-accent:hover { background: var(--red-600); box-shadow: var(--sh-3); }

.btn-secondary { background: #fff; color: var(--blue-700); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--blue-600); color: var(--blue-700); box-shadow: var(--sh-2); }

.btn-wa { background: var(--wa-green); color: #fff; box-shadow: var(--sh-2); }
.btn-wa:hover { background: var(--wa-green-dark); box-shadow: var(--sh-3); }

.btn-ghost { background: transparent; color: var(--text-primary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-secondary); }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }

/* Barra utilitária (topbar) — recolhe ao rolar */
.topbar { display: none; background: var(--blue-900); color: var(--text-on-deep-muted); max-height: 60px; overflow: hidden; transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.site-header.scrolled .topbar { max-height: 0; opacity: 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 40px; font-size: var(--fs-xs); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: var(--sp-4); }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-on-deep-muted); font-weight: 500; transition: color var(--dur) var(--ease); }
.topbar-link:hover { color: #fff; }
.topbar-link .ic { width: 15px; height: 15px; }
.topbar-note { display: inline-flex; align-items: center; gap: 6px; }
.topbar-note .ic { width: 15px; height: 15px; color: var(--blue-200); }
.topbar-sep { width: 1px; height: 16px; background: rgba(255,255,255,.16); }
.topbar-social { display: flex; gap: 2px; }
.topbar-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--text-on-deep-muted); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.topbar-social a .ic { width: 15px; height: 15px; }
.topbar-social a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar-vip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-full); color: #fff; font-weight: 600; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.topbar-vip .ic { width: 15px; height: 15px; }
.topbar-vip:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }

/* Barra principal */
.header-main { position: relative; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.site-header.scrolled .header-main { box-shadow: var(--sh-1); border-color: var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 72px; }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.header-actions .btn-primary { display: none; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); padding: 0 11px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--blue-900); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navegação — base (mobile) */
.main-nav { display: none; }
.nav-link { font-family: var(--font-display); font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.nav-dropdown-toggle { background: none; border: 0; cursor: pointer; }
.chev { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }

/* Menu mobile aberto */
.main-nav.open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-2) var(--sp-4) var(--sp-4); box-shadow: var(--sh-2);
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.main-nav.open .nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  width: 100%; padding: 15px 4px; border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-body); color: var(--text-primary); text-align: left;
}
.main-nav.open .nav-item { width: 100%; }
.nav-item.expanded .chev { transform: rotate(180deg); }

/* Mega menu — base (mobile: lista recolhível) */
.mega-menu { display: none; }
.nav-item.expanded .mega-menu { display: block; }
.main-nav.open .mega-inner { padding: 0; display: block; max-width: none; }
.main-nav.open .mega-grid { display: grid; grid-template-columns: 1fr; gap: 0; padding: var(--sp-1) 0 var(--sp-2); }
.main-nav.open .mega-promo { display: none; }
.mega-card { display: flex; align-items: center; gap: 12px; padding: 11px 4px 11px 12px; border-radius: var(--r-sm); }
.mega-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--blue-100); color: var(--blue-600); flex-shrink: 0; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.mega-ic .ic { width: 21px; height: 21px; }
.mega-card strong { display: block; font-family: var(--font-display); font-size: 0.92rem; color: var(--text-primary); font-weight: 700; }
.mega-card small { color: var(--text-muted); font-size: var(--fs-xs); }

/* Atalhos no menu mobile */
.mobile-extra { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ---------- HERO ---------- */
.hero { padding-top: var(--sp-6); padding-bottom: var(--sp-7); background:
  radial-gradient(1100px 500px at 80% -10%, rgba(57,66,137,.12), transparent 60%),
  radial-gradient(800px 400px at 0% 10%, rgba(237,50,55,.07), transparent 55%),
  var(--bg-primary); }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
.hero-copy h1 { font-size: var(--fs-display); margin-bottom: var(--sp-4); }
.hero-copy .hl { color: var(--blue-600); }
.lead { font-size: var(--fs-body-l); color: var(--text-secondary); max-width: 56ch; margin-bottom: var(--sp-5); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero-badges { display: grid; gap: var(--sp-2); }
.hero-badges li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-secondary); }
.hero-badges .ic { width: 18px; height: 18px; color: var(--red-500); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; object-position: 60% center; border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  padding: 12px 14px; border-radius: var(--r-md); box-shadow: var(--sh-2);
  border: 1px solid var(--border-subtle);
}
.hero-card strong { display: block; font-family: var(--font-display); font-size: var(--fs-sm); }
.hero-card small { color: var(--text-muted); font-size: var(--fs-xs); }
.hero-card .hc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-100); color: var(--blue-600); }
.hero-card .hc-icon .ic { width: 20px; height: 20px; }
.hero-card .hc-icon--green { background: rgba(37,211,102,.15); color: var(--wa-green-dark); }
.hero-card--top { top: 18px; left: -10px; }
.hero-card--bottom { bottom: 22px; right: -10px; }

/* Faixa de confiança */
.trust-bar {
  margin-top: var(--sp-7); display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4);
  background: var(--blue-900); color: var(--text-on-deep); border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4); text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item .num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; }
.trust-item .lbl { font-size: var(--fs-xs); color: var(--text-on-deep-muted); }

/* ---------- SEÇÕES GENÉRICAS ---------- */
section[id] { scroll-margin-top: 92px; }
.section { padding-block: var(--sp-8); }
.section--alt { background: var(--bg-secondary); }
.section-head { max-width: 720px; margin: 0 auto var(--sp-6); text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.section-head p { color: var(--text-secondary); font-size: var(--fs-body-l); }
.section-cta { text-align: center; margin-top: var(--sp-6); }

/* ---------- SERVIÇOS ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.service-card {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  padding: var(--sp-5); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--blue-200); }
.svc-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(57,66,137,.12), rgba(237,50,55,.10)); color: var(--blue-600); margin-bottom: var(--sp-3); }
.svc-icon .ic { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.service-card p { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--blue-700); transition: gap var(--dur) var(--ease), color var(--dur) var(--ease); }
.card-link .ic { width: 16px; height: 16px; }
.card-link:hover { color: var(--red-500); gap: 10px; }

/* ---------- PASSOS ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.step { position: relative; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--sp-5); }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-full); background: var(--blue-600); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: var(--sp-3); box-shadow: 0 6px 14px rgba(57,66,137,.35); }
.step h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.step p { color: var(--text-secondary); font-size: var(--fs-sm); }

/* ---------- DIFERENCIAIS ---------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.feature { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--bg-secondary); border: 1px solid var(--border-subtle); }
.section--alt .feature { background: #fff; }
.feat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--blue-100); color: var(--blue-600); margin-bottom: var(--sp-3); }
.feat-icon .ic { width: 28px; height: 28px; }
.feature h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.feature p { color: var(--text-secondary); font-size: var(--fs-sm); }

/* ---------- PLANOS ---------- */
.plans-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--sp-5); display: flex; flex-direction: column; }
.plan--featured { border-color: var(--blue-600); box-shadow: var(--sh-3); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red-500); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); padding: 5px 14px; border-radius: var(--r-full); white-space: nowrap; }
.plan-name { font-size: 1.4rem; margin-bottom: var(--sp-1); color: var(--blue-700); }
.plan-desc { color: var(--text-muted); font-size: var(--fs-sm); min-height: 40px; }
.plan-price { margin: var(--sp-3) 0; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border-subtle); }
.plan-price span { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--blue-700); display: block; }
.plan-price small { color: var(--text-muted); font-size: var(--fs-xs); }
.plan-feats { display: grid; gap: 10px; margin: var(--sp-3) 0 var(--sp-5); }
.plan-feats li { position: relative; padding-left: 28px; font-size: var(--fs-sm); color: var(--text-secondary); }
.plan-feats li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--red-500); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; margin-top: var(--sp-5); color: var(--text-secondary); }
.plans-note a { color: var(--blue-700); font-weight: 600; text-decoration: underline; }

/* ---------- SIMULADOR ---------- */
.sim-wrap {
  display: grid; gap: var(--sp-6); align-items: center; position: relative; overflow: hidden;
  background: var(--blue-900);
  background-image: radial-gradient(700px 300px at 100% 0%, rgba(74,85,168,.5), transparent 60%),
                    radial-gradient(520px 240px at 0% 100%, rgba(237,50,55,.14), transparent 60%);
  border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-5); color: var(--text-on-deep);
}
.sim-intro h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: var(--sp-3); }
.sim-intro > p { color: var(--text-on-deep-muted); margin-bottom: var(--sp-5); max-width: 46ch; }
.sim-bullets { display: grid; gap: 12px; margin-bottom: var(--sp-5); }
.sim-bullets li { display: flex; align-items: center; gap: 10px; color: #fff; font-size: var(--fs-sm); font-weight: 500; }
.sim-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(37,211,102,.16); flex-shrink: 0; }
.sim-check .ic { width: 15px; height: 15px; color: var(--wa-green); }
.sim-time { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-full); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--blue-200); font-size: var(--fs-sm); font-weight: 600; }
.sim-time .ic { width: 16px; height: 16px; }

.sim-card { background: #fff; border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-3); color: var(--text-primary); }
.sim-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.sim-card-kicker { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-500); }
.sim-card-head h3 { font-size: 1.3rem; margin-top: 3px; }
.sim-card-badge { flex-shrink: 0; padding: 6px 13px; border-radius: var(--r-full); background: var(--blue-100); color: var(--blue-700); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); white-space: nowrap; }

.sim-fields { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.sim-field label { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); margin-bottom: 9px; color: var(--text-primary); }
.sim-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 0.74rem; font-weight: 800; flex-shrink: 0; }
.sim-field select {
  width: 100%; padding: 13px 42px 13px 14px; font: inherit; color: var(--text-primary); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%234a5172' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  border: 1.5px solid var(--border-subtle); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sim-field select:hover { border-color: var(--blue-300); }

/* Checkbox custom */
.sim-check-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--border-subtle); border-radius: var(--r-md); cursor: pointer; font-size: var(--fs-sm); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.sim-check-row:hover { border-color: var(--blue-300); background: var(--bg-secondary); }
.sim-check-input { position: absolute; opacity: 0; width: 0; height: 0; }
.sim-check-box { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--border-strong); border-radius: 6px; flex-shrink: 0; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.sim-check-box .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity var(--dur) var(--ease); }
.sim-check-input:checked + .sim-check-box { background: var(--blue-600); border-color: var(--blue-600); }
.sim-check-input:checked + .sim-check-box .ic { opacity: 1; }
.sim-check-input:focus-visible + .sim-check-box { box-shadow: 0 0 0 4px rgba(57,66,137,.18); }
.sim-check-label { font-weight: 500; color: var(--text-secondary); }

/* Resultado */
.sim-result { display: block; margin-top: var(--sp-5); padding: var(--sp-4); border-radius: var(--r-md); background: linear-gradient(135deg, rgba(57,66,137,.08), rgba(237,50,55,.07)); border: 1px solid var(--blue-200); animation: pop .4s var(--ease-spring); }
.sim-result[hidden] { display: none; }
.sim-result-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-3); }
.sim-result-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wa-green); color: #fff; flex-shrink: 0; box-shadow: 0 6px 14px rgba(37,211,102,.4); }
.sim-result-icon .ic { width: 22px; height: 22px; }
.sim-result-tag { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--red-500); }
.sim-result h4 { font-size: 1.1rem; margin-top: 2px; color: var(--blue-700); line-height: 1.2; }
.sim-result p { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-4); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- SEGMENTOS ---------- */
.segments-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-3); }
.segment {
  display: flex; align-items: center; gap: 12px; padding: var(--sp-4);
  background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.segment:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--blue-200); }
.segment .ic { width: 26px; height: 26px; color: var(--blue-600); }

/* ---------- DEPOIMENTOS / SLIDER ---------- */
.slider { max-width: 760px; margin-inline: auto; overflow: hidden; }
.slider-track { display: flex; transition: transform 450ms var(--ease); }
.quote { flex: 0 0 100%; padding: var(--sp-5); text-align: center; }
.stars { display: flex; justify-content: center; gap: 3px; color: #f5b50a; margin-bottom: var(--sp-3); }
.stars .ic { width: 22px; height: 22px; }
.quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.4; color: var(--text-primary); margin-bottom: var(--sp-4); }
.quote figcaption strong { display: block; color: var(--blue-700); }
.quote figcaption span { font-size: var(--fs-sm); color: var(--text-muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.slider-btn { width: 44px; height: 44px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--border-strong); font-size: 1.4rem; color: var(--blue-700); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.slider-btn:hover { background: var(--bg-secondary); transform: scale(1.05); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--border-strong); transition: background var(--dur) var(--ease), width var(--dur) var(--ease); }
.slider-dots button.active { background: var(--blue-600); width: 24px; border-radius: var(--r-full); }
.slider-foot { text-align: center; margin-top: var(--sp-4); }
.link-google { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--blue-700); }
.link-google .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.link-google:hover { color: var(--red-500); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--sp-6); }
.faq-item { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--r-md); margin-bottom: var(--sp-3); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-body); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); transition: color var(--dur) var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--red-500); font-weight: 400; transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--blue-700); }
.faq-answer { padding: 0 var(--sp-4) var(--sp-4); color: var(--text-secondary); font-size: var(--fs-sm); }

/* ---------- CTA BAND ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; padding-block: var(--sp-7); }
.cta-band-inner { display: grid; gap: var(--sp-4); align-items: center; }
.cta-band h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: var(--sp-2); }
.cta-band p { color: var(--text-on-deep-muted); font-size: var(--fs-body-l); }

/* ---------- CONTATO ---------- */
.contact-layout { display: grid; gap: var(--sp-6); }
.contact-info h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.contact-info > p { color: var(--text-secondary); margin-bottom: var(--sp-5); }
.contact-list { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.contact-list li { display: flex; align-items: center; gap: var(--sp-3); }
.ci-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--blue-100); color: var(--blue-600); flex-shrink: 0; }
.ci-icon .ic { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-display); font-size: var(--fs-sm); }
.contact-list a { color: var(--blue-700); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.social { border-top: 1px solid var(--border-subtle); padding-top: var(--sp-4); }
.social > span { display: block; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-3); }
.social-links { display: flex; gap: var(--sp-2); }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--bg-secondary); color: var(--blue-700); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.social-links a .ic { width: 22px; height: 22px; }
.social-links a:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }

.contact-form { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-2); }
.contact-form h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.cf-sub { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.cf-field { margin-bottom: var(--sp-3); }
.cf-field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text-primary);
  background: var(--bg-secondary); border: 1.5px solid var(--border-subtle); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease); resize: vertical;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: var(--blue-600); outline: none; }
.cf-note { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin-top: var(--sp-3); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--blue-900); color: var(--text-on-deep-muted); padding-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.footer-brand p { margin: var(--sp-4) 0; font-size: var(--fs-sm); max-width: 40ch; }
.social-links--footer a { background: rgba(255,255,255,.08); color: #fff; width: 40px; height: 40px; }
.social-links--footer a .ic { width: 20px; height: 20px; }
.social-links--footer a:hover { background: var(--blue-600); }
.footer-col h4 { color: #fff; font-size: var(--fs-body); margin-bottom: var(--sp-3); }
.footer-col a { display: block; font-size: var(--fs-sm); color: var(--text-on-deep-muted); padding: 6px 0; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--blue-200); }
.footer-bottom { display: flex; flex-direction: column; gap: var(--sp-2); border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-4); font-size: var(--fs-xs); }

/* ---------- FLUTUANTES ---------- */
.float-whats {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px;
  background: var(--wa-green); color: #fff; border-radius: var(--r-full);
  box-shadow: 0 10px 30px rgba(37,211,102,.5); transition: transform var(--dur) var(--ease);
  animation: pulse 2.6s infinite;
}
.float-whats .ic { width: 30px; height: 30px; }
.float-whats:hover { transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.5); } 50% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 12px rgba(37,211,102,0); } }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ====================================================
   RESPONSIVO
   ==================================================== */
@media (min-width: 600px) {
  .services-grid, .features-grid, .steps { grid-template-columns: repeat(2,1fr); }
  .trust-bar { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero { padding-top: var(--sp-7); padding-bottom: var(--sp-8); }
  .services-grid { grid-template-columns: repeat(3,1fr); }
  .features-grid { grid-template-columns: repeat(4,1fr); }
  .steps { grid-template-columns: repeat(4,1fr); }
  .plans-grid { grid-template-columns: repeat(3,1fr); }
  .plan--featured { transform: scale(1.04); }
  .sim-wrap { grid-template-columns: 1fr 1fr; padding: var(--sp-7); }
  .segments-grid { grid-template-columns: repeat(4,1fr); }
  .faq-layout { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .cta-band-inner { grid-template-columns: 1.6fr auto; }
  .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
  .topbar { display: block; }
}

@media (min-width: 1140px) {
  .nav-toggle { display: none; }
  .header-actions .btn-primary { display: inline-flex; }

  .main-nav { display: flex; align-items: stretch; gap: 0; height: 72px; }
  .main-nav > a.nav-link { align-self: center; }
  .nav-item.has-dropdown { display: flex; align-items: center; }
  .main-nav .nav-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 11px; border-radius: var(--r-sm); font-size: 0.92rem;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .main-nav .nav-link:hover, .main-nav .nav-link.active,
  .nav-item:hover .nav-dropdown-toggle, .nav-item.expanded .nav-dropdown-toggle { color: var(--blue-700); background: var(--blue-100); }
  .nav-item:hover .chev, .nav-item.expanded .chev { transform: rotate(180deg); }
  .mobile-extra { display: none; }

  /* Mega menu como painel suspenso */
  .nav-item.has-dropdown { position: static; }
  .mega-menu {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border-subtle); box-shadow: var(--sh-3);
    padding: var(--sp-5) 0; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav-item.has-dropdown:hover .mega-menu,
  .nav-item.has-dropdown:focus-within .mega-menu,
  .nav-item.has-dropdown.expanded .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .mega-inner { display: grid; grid-template-columns: 1fr 290px; gap: var(--sp-5); align-items: stretch; }
  .mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .mega-card { padding: 12px; }
  .mega-card:hover { background: var(--bg-secondary); }
  .mega-card:hover .mega-ic { background: var(--blue-600); color: #fff; }
  .mega-promo { display: flex; flex-direction: column; justify-content: center; background: var(--blue-900); color: #fff; border-radius: var(--r-md); padding: var(--sp-5); background-image: radial-gradient(420px 220px at 100% 0%, rgba(74,85,168,.55), transparent 60%); }
  .mega-promo h4 { color: #fff; font-size: 1.15rem; margin-bottom: var(--sp-2); }
  .mega-promo p { color: var(--text-on-deep-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
}

/* =========================================================
   PREMIUM POLISH — refinamentos de craft (UI sênior)
   ========================================================= */

/* ---- Tipografia equilibrada + base ---- */
h1, h2, h3, .quote blockquote { text-wrap: balance; }
p, .lead { text-wrap: pretty; }
.hero-copy h1 { letter-spacing: -0.03em; }
.section-head h2, .cta-band h2, .sim-intro h2 { letter-spacing: -0.025em; }

/* ---- Seleção e scrollbar com a marca ---- */
::selection { background: var(--blue-600); color: #fff; }
html { scrollbar-color: var(--blue-300) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue-300); border-radius: var(--r-full); border: 3px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

/* ---- Barra de progresso de leitura ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 101;
  background: linear-gradient(90deg, var(--blue-600), var(--red-500));
  border-radius: 0 2px 2px 0; box-shadow: 0 0 10px rgba(57,66,137,.4);
}

/* ---- Foco mais sofisticado ---- */
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus,
.sim-field select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(57,66,137,.12); }

/* ---- Overline como chip (consistente com o eyebrow) ---- */
.overline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--blue-100); color: var(--blue-700);
  border-radius: var(--r-full); font-weight: 700;
}
.overline::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); }
.sim-intro .overline { background: rgba(255,255,255,.12); color: #fff; }
.sim-intro .overline::before { background: var(--blue-300); }

/* ---- Botões: gradiente sutil, sombra colorida, brilho no topo ---- */
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); box-shadow: var(--sh-blue); }
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); box-shadow: 0 12px 28px rgba(57,66,137,.42), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-accent { background: linear-gradient(135deg, #f3484d, var(--red-600)); box-shadow: var(--sh-red); }
.btn-accent:hover { background: linear-gradient(135deg, var(--red-500), var(--red-700)); box-shadow: 0 12px 28px rgba(237,50,55,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-wa { background: linear-gradient(135deg, #2fe070, var(--wa-green-dark)); box-shadow: var(--sh-green); }
.btn-wa:hover { background: linear-gradient(135deg, var(--wa-green), #178a45); box-shadow: 0 12px 28px rgba(37,211,102,.45), inset 0 1px 0 rgba(255,255,255,.22); }
.btn { transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn-lg { border-radius: var(--r-md); }

/* ---- HERO em camadas ---- */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(57,66,137,.08) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask: radial-gradient(circle at 72% 18%, #000, transparent 62%);
  mask: radial-gradient(circle at 72% 18%, #000, transparent 62%);
}
.hero-bg::after {
  content: ''; position: absolute; width: 460px; height: 460px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(237,50,55,.10), transparent 65%);
  border-radius: 50%; filter: blur(10px);
}
.hero-visual::before {
  content: ''; position: absolute; inset: -10% -8% -10% 0; z-index: 0;
  background: radial-gradient(circle at 72% 28%, rgba(57,66,137,.28), transparent 58%),
              radial-gradient(circle at 22% 92%, rgba(237,50,55,.20), transparent 55%);
  filter: blur(34px);
}
.hero-visual img { position: relative; z-index: 1; filter: saturate(1.03) contrast(1.02); box-shadow: var(--sh-3); }
.hero-card { z-index: 2; box-shadow: var(--sh-3); border-color: rgba(255,255,255,.6); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-card--top { animation: floatY 6s var(--ease) infinite; }
.hero-card--bottom { animation: floatY 7s var(--ease) infinite .9s; }

/* ---- Cards: borda/realce de gradiente + elevação refinada ---- */
.service-card, .feature { position: relative; overflow: hidden; }
.service-card::after, .feature::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--red-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover::after, .feature:hover::after { transform: scaleX(1); }
.service-card { transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.service-card:hover { transform: translateY(-6px); }
.svc-icon, .feat-icon, .ci-icon, .mega-ic { box-shadow: inset 0 0 0 1px rgba(57,66,137,.07); transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.service-card:hover .svc-icon, .feature:hover .feat-icon { transform: scale(1.08); }

/* ---- Segmentos: realce no hover ---- */
.segment { transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.segment:hover { border-color: var(--blue-400); }
.segment:hover .ic { color: var(--red-500); }

/* ---- Planos: destaque refinado ---- */
.plan { transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--blue-300); }
.plan--featured { background: linear-gradient(180deg, #ffffff, #fbfcff); }
.plan--featured:hover { transform: translateY(-4px) scale(1.04); }
.plan-tag { z-index: 2; box-shadow: 0 6px 14px rgba(237,50,55,.32); }

/* ---- FAQ: leve realce ---- */
.faq-item { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq-item[open] { border-color: var(--blue-300); box-shadow: var(--sh-1); }

/* ---- Faixa de confiança: brilho sutil + linha de topo ---- */
.trust-bar { position: relative; overflow: hidden; background-image: radial-gradient(600px 200px at 50% -40%, rgba(74,85,168,.45), transparent 70%); }
.trust-item .num { background: linear-gradient(135deg, #ffffff, var(--blue-200)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- Footer: linha de acento no topo ---- */
.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-600), var(--red-500)); }

/* ---- CTA band: textura sutil ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.1px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(90deg, #000, transparent 70%);
  mask: linear-gradient(90deg, #000, transparent 70%);
}
.cta-band-inner { position: relative; z-index: 1; }

/* ---- Imagem do hero com carregamento suave ---- */
.hero-visual img { background: linear-gradient(110deg, var(--bg-secondary), #eef0fb); }

/* ---- Reveal com easing mais elegante ---- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* =========================================================
   BLOG DE NOTÍCIAS (blog.html)
   ========================================================= */

/* Badges de fonte (cor por portal) */
.src-badge { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); color: #fff; padding: 4px 10px; border-radius: var(--r-full); white-space: nowrap; line-height: 1.3; }
.src-badge--jornalcontabil { background: #3b56c9; }
.src-badge--contabeis      { background: #0e8a6e; }
.src-badge--reforma        { background: var(--red-500); }

/* Hero do blog */
.blog-hero { position: relative; overflow: hidden; background: var(--blue-900); color: #fff; padding: var(--sp-8) 0 var(--sp-7); }
.blog-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(700px 300px at 90% -10%, rgba(74,85,168,.55), transparent 60%),
                    radial-gradient(500px 240px at 0% 110%, rgba(237,50,55,.16), transparent 60%); }
.blog-hero-bg::before { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask: radial-gradient(circle at 80% 10%, #000, transparent 62%); mask: radial-gradient(circle at 80% 10%, #000, transparent 62%); }
.blog-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.blog-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: var(--sp-4); }
.blog-kicker .ic { width: 16px; height: 16px; color: var(--blue-200); }
.blog-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.025em; margin-bottom: var(--sp-3); }
.blog-hero p { color: var(--text-on-deep-muted); font-size: var(--fs-body-l); margin-bottom: var(--sp-5); }
.blog-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.blog-sources-label { font-size: var(--fs-sm); color: var(--text-on-deep-muted); margin-right: 2px; }

/* Toolbar / filtros (sticky abaixo do header) */
.blog-toolbar-wrap { position: sticky; top: 72px; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-subtle); }
.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: 12px; }
.blog-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.blog-tabs::-webkit-scrollbar { display: none; }
.blog-tab { flex-shrink: 0; padding: 8px 15px; border-radius: var(--r-full); border: 1.5px solid var(--border-subtle); background: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--text-secondary); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.blog-tab:hover { border-color: var(--blue-300); color: var(--blue-700); }
.blog-tab.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.blog-refresh { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: var(--r-full); border: 1.5px solid var(--border-subtle); background: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--blue-700); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.blog-refresh:hover { background: var(--bg-secondary); border-color: var(--blue-300); }
.blog-refresh .ic { width: 16px; height: 16px; }
.blog-refresh.is-loading .ic { animation: spin 1s linear infinite; }

/* Grid de notícias */
.blog-section { padding-top: var(--sp-6); }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; opacity: 0; transform: translateY(14px); animation: postIn .5s var(--ease) forwards; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--blue-200); }
@keyframes postIn { to { opacity: 1; transform: none; } }

.post-thumb { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-600), var(--blue-900)); overflow: hidden; }
.post-thumb--contabeis { background: linear-gradient(135deg, #0e8a6e, var(--blue-900)); }
.post-thumb--reforma { background: linear-gradient(135deg, var(--red-500), var(--blue-900)); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb .src-badge { position: absolute; left: 12px; top: 12px; z-index: 1; box-shadow: 0 4px 10px rgba(6,10,40,.28); }

.post-body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-4); }
.post-date { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.post-title { font-size: 1.05rem; line-height: 1.3; margin-bottom: 10px; }
.post-title a { color: var(--text-primary); transition: color var(--dur) var(--ease); }
.post-title a:hover { color: var(--blue-700); }
.post-excerpt { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-4); }
.post-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--blue-700); transition: gap var(--dur) var(--ease), color var(--dur) var(--ease); }
.post-link .ic { width: 15px; height: 15px; }
.post-link:hover { color: var(--red-500); gap: 10px; }

/* Estados (carregando / erro / vazio) */
.blog-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-3); padding: var(--sp-8) var(--sp-4); color: var(--text-secondary); }
.blog-state--error { color: var(--text-primary); }
.blog-state .btn { margin-top: var(--sp-2); }
.blog-empty { text-align: center; color: var(--text-muted); padding: var(--sp-7) 0; grid-column: 1 / -1; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.blog-disclaimer { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border-subtle); font-size: var(--fs-xs); color: var(--text-muted); text-align: center; max-width: 760px; margin-inline: auto; }

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
