/* =====================================================================
   HED — identidade visual v1.0 (Brandbook, jul/2026)
   Carregado DEPOIS do <style> de cada página (site, blog e painel):
   redefine os tokens e reveste os componentes, sem mudar a estrutura.

   Preto #0A0A0B · Off-white #F4F4F5 · Grafite #3F3F44
   Cobalto #3D9EFF = informação (nunca clicável)
   Amarelo #F5F78F = ação (CTAs; um por bloco)
   Archivo (voz) + IBM Plex Mono (dados, labels, botões)
   ===================================================================== */

:root {
  --hed-black:    #0A0A0B;
  --hed-black-2:  #141416;
  --hed-black-3:  #1F1F22;
  --hed-white:    #FFFFFF;
  --hed-offwhite: #F4F4F5;
  --hed-graphite: #3F3F44;
  --hed-gray:     #6B6B72;
  --hed-cobalt:   #3D9EFF;
  --hed-yellow:   #F5F78F;
  --hed-line:     rgba(10, 10, 11, 0.12);
  --hed-line-dark: rgba(255, 255, 255, 0.12);
  --hed-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hed-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hed-dots: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.2px) 0 0 / 11px 11px;
  --hed-wash: linear-gradient(150deg, rgba(61, 158, 255, 0.28) 0%, rgba(255, 255, 255, 0) 45%),
              radial-gradient(90% 80% at 100% 85%, rgba(245, 247, 143, 0.5), transparent 60%);

  /* tokens antigos das páginas, remapeados */
  --bg-dark: #0A0A0B; --bg-dark-2: #141416; --bg-dark-3: #1F1F22;
  --bg: #0A0A0B; --bg2: #141416; --bg3: #1F1F22;
  --bg-light: #FFFFFF; --bg-light-2: #F4F4F5;
  --accent: #3D9EFF; --accent-hover: #1F7FE0; --accent-soft: rgba(61, 158, 255, 0.14);
  --amber: #F5F78F;
  --whatsapp: #F5F78F; --whatsapp-hover: #0A0A0B;
  --text-on-dark: #FFFFFF; --text-on-dark-mute: #A1A1A8;
  --text-on-light: #0A0A0B; --text-on-light-mute: #3F3F44;
  --border-dark: rgba(255, 255, 255, 0.12); --border-light: rgba(10, 10, 11, 0.12);
  --shadow-card: none; --shadow-light: none;
  --radius-sm: 0; --radius: 0; --radius-lg: 0;
}

/* ---------- Base ---------- */
body { font-family: var(--hed-sans); color: var(--hed-black); }
h1, h2, h3, h4 { font-family: var(--hed-sans); }
::selection { background: var(--hed-yellow); color: var(--hed-black); }
:focus-visible { outline: 2px solid var(--hed-cobalt); outline-offset: 2px; }

/* Cantos retos em todo o sistema (retângulos puros) */
*, *::before, *::after { border-radius: 0 !important; }

/* ---------- Logo (símbolo + wordmark) ---------- */
.hed-logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; line-height: 1; }
.hed-logo__mark { width: 30px; height: auto; display: block; fill: currentColor; flex-shrink: 0; }
.hed-logo__word { font-family: var(--hed-sans); font-weight: 700; font-size: 22px; letter-spacing: 3px; }
.hed-logo--lg .hed-logo__mark { width: 40px; }
.hed-logo--lg .hed-logo__word { font-size: 28px; letter-spacing: 4px; }
.brand { color: var(--hed-black); }
.brand img { display: none; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hed-line);
  color: var(--hed-black);
}
.site-header__inner { min-height: 76px; padding: 12px 0; }
.nav { gap: 32px; }
.nav a {
  color: var(--hed-graphite); opacity: 1;
  font-family: var(--hed-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav a:hover, .nav a.active { color: var(--hed-black); opacity: 1; box-shadow: inset 0 -2px 0 var(--hed-cobalt); }
.nav .btn-primary, .nav a.btn-primary { color: var(--hed-black); box-shadow: none; }
.nav .btn-primary:hover, .nav a.btn-primary:hover { color: var(--hed-yellow); box-shadow: none; }
.nav-toggle { color: var(--hed-black); }

/* ---------- Botões ---------- */
.btn {
  font-family: var(--hed-mono); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 28px; line-height: 1.1; box-shadow: none;
}
.btn-lg { padding: 20px 36px; font-size: 14px; }
.btn-primary, .btn-whatsapp, a.btn-primary {
  background: var(--hed-yellow); color: var(--hed-black); box-shadow: none; border: 0;
}
.btn-primary:hover, .btn-whatsapp:hover, a.btn-primary:hover {
  background: var(--hed-black); color: var(--hed-yellow);
}
.btn-outline-light {
  background: transparent; color: var(--hed-black);
  border: 0; border-bottom: 2px solid var(--hed-cobalt); padding-left: 6px; padding-right: 6px;
}
.btn-outline-light:hover { color: var(--hed-black); border-color: var(--hed-black); }

/* ---------- Títulos / acentos ---------- */
.section__heading, .hero h1, .cta-final h2, .blog-hero h1, .article-hero h1, .cta-banner h2, .page-hero h1 {
  font-weight: 600; letter-spacing: -0.035em;
}
.accent { color: var(--hed-cobalt); }
.section__sub { color: var(--hed-graphite); font-weight: 300; }

/* ---------- Seções escuras: preto + textura pontilhada ---------- */
.section--dark, .callouts, .multibanco, .cta-final, .footer, .site-footer,
.article-hero, .blog-hero, .cta-banner, .hed-box, .page-hero {
  background: var(--hed-dots), var(--hed-black);
}

/* =====================================================================
   HOME (/home-equity/)
   ===================================================================== */
.hero {
  background: var(--hed-wash), #FFFFFF;
  color: var(--hed-black);
  padding: 88px 0 96px;
}
.hero__pill {
  background: var(--hed-cobalt); color: var(--hed-black);
  font-family: var(--hed-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.12em;
  padding: 7px 14px;
}
.hero__pill--info { background: transparent; color: var(--hed-black); border: 1px solid var(--hed-black); }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; }
.hero__lede { color: var(--hed-black); font-weight: 500; font-size: 20px; opacity: 1; }
.hero__body { color: var(--hed-graphite); font-weight: 300; font-size: 17px; line-height: 1.6; }

.sim-card {
  background: #FFFFFF; border: 1px solid var(--hed-line);
  box-shadow: 0 30px 60px rgba(10, 10, 11, 0.08);
  color: var(--hed-black);
}
.sim-card__title { color: var(--hed-black); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.sim-card__sub { color: var(--hed-graphite); font-weight: 300; font-size: 15px; }
.sim-card__step-label { font-family: var(--hed-mono); font-weight: 500; color: var(--hed-gray); letter-spacing: 0.14em; font-size: 12px; }
.sim-card__option {
  background: #FFFFFF; border: 1px solid var(--hed-line); color: var(--hed-black);
  font-weight: 500;
}
.sim-card__option:hover { background: var(--hed-offwhite); border-color: var(--hed-black); }
.sim-card__option.is-selected { background: var(--hed-offwhite); border-color: var(--hed-cobalt); box-shadow: inset 3px 0 0 var(--hed-cobalt); }
.sim-card__option-chev { color: var(--hed-gray); }
.sim-card__option:hover .sim-card__option-chev { color: var(--hed-black); }
.sim-card__form input { border: 1px solid var(--hed-line); background: #FFFFFF; }
.sim-card__form input:focus, .quiz-form input:focus { box-shadow: 0 0 0 2px var(--hed-cobalt); }
.sim-card__error { color: #C53030; }
.sim-card__reject-title { color: var(--hed-black); }
.sim-card__reject-body { color: var(--hed-graphite); }
.sim-card__reject-body strong { color: var(--hed-black); }

/* Faixa de números */
.callouts { padding: 56px 0; color: #FFFFFF; }
.callouts__grid { border-top: 0; padding-top: 0; text-align: left; }
.callouts__grid > * { border-left: 3px solid var(--hed-cobalt); padding-left: 24px; }
.callout__icon { margin: 0 0 14px; width: auto; height: auto; background: none; color: var(--hed-cobalt); display: block; }
.callout__text { color: rgba(255, 255, 255, 0.6); font-family: var(--hed-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6; }
.callout__text strong { display: block; color: #FFFFFF; font-family: var(--hed-sans); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; text-transform: none; line-height: 1.15; margin-bottom: 6px; }

/* Usos — fotos em P&B */
.use-card { filter: grayscale(1) contrast(1.05); box-shadow: none; }
.use-card::after { background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 11, 0.85) 100%); }
.use-card:hover { box-shadow: inset 0 -4px 0 var(--hed-cobalt); }
.use-card__label { font-weight: 600; }

/* Para quem */
.para-quem { background: var(--hed-offwhite); }
.para-quem__list li { padding-bottom: 14px; border-bottom: 1px solid var(--hed-line); }
.para-quem__list svg { color: var(--hed-cobalt); }
.para-quem__visual { border-radius: 0; background: var(--hed-black); box-shadow: none; filter: grayscale(1) contrast(1.05); aspect-ratio: 4 / 5; }

/* Taxas */
.rates__copy p { color: var(--hed-graphite); }
.chart-card { background: var(--hed-offwhite); box-shadow: none; border: 0; }
.chart-card__title { color: var(--hed-gray); font-family: var(--hed-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.chart::before { background-image: linear-gradient(to bottom, transparent calc(100% - 1px), rgba(10, 10, 11, 0.08) calc(100% - 1px)); }
.chart__bar-fill { background: #B9B9BF; }
.chart__bar-value, .chart__bar-value small { color: var(--hed-graphite); font-family: var(--hed-mono); font-weight: 500; letter-spacing: 0; }
.chart__bar-label { color: var(--hed-graphite); }
.chart__bar--accent .chart__bar-fill { background: var(--hed-cobalt); box-shadow: none; }
.chart__bar--accent .chart__bar-value { color: var(--hed-black); font-weight: 600; }
.chart__bar--accent .chart__bar-label { color: var(--hed-black); font-weight: 600; }

/* Multibanco */
.multibanco { color: #FFFFFF; }
.bank-pill { background: #FFFFFF; box-shadow: none; }
.term-pills { font-family: var(--hed-mono); color: rgba(255, 255, 255, 0.5); }
.timeline-grid span, .timeline-grid span:last-child { border-color: rgba(255, 255, 255, 0.14); }

/* Como funciona */
.como-funciona { background: var(--hed-wash), #FFFFFF; }
.step { background: #FFFFFF; color: var(--hed-black); border: 1px solid var(--hed-line); box-shadow: none; }
.step__num {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--hed-cobalt); color: var(--hed-black);
  font-family: var(--hed-mono); font-size: 14px; font-weight: 600; margin-bottom: 20px;
}
.steps > :last-child .step__num { background: var(--hed-yellow); }
.step__title { font-weight: 600; }
.step__body { color: var(--hed-graphite); }

/* FAQ */
.faq__list { gap: 0; }
.faq__item { border: 0; border-bottom: 1px solid var(--hed-line); background: transparent; }
.faq__q { font-weight: 500; font-size: 17px; padding: 22px 0; }
.faq__q svg { color: var(--hed-cobalt); }
.faq__a { padding: 0 0 22px; color: var(--hed-graphite); }

/* CTA final */
.cta-final__inner { background: transparent; border: 1px solid var(--hed-line-dark); box-shadow: none; }
.cta-final p { color: rgba(255, 255, 255, 0.7); font-weight: 300; }
.cta-final__visual { border-radius: 0; filter: grayscale(.55) brightness(.9) contrast(1.08); border: 0; box-shadow: none; background: var(--hed-black-3); }

/* Rodapé */
.footer .brand, .site-footer .brand { color: #FFFFFF; }
.footer__contact { font-family: var(--hed-mono); color: rgba(255, 255, 255, 0.75); }
.footer__contact a:hover, .footer__nav a:hover { color: var(--hed-cobalt); }
.footer__nav { border-color: var(--hed-line-dark); }
.footer__nav a { font-family: var(--hed-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 1; color: rgba(255, 255, 255, 0.85); }
.footer__legal { color: rgba(255, 255, 255, 0.55); }

/* Quiz (tela cheia, escura) */
.quiz-modal { background: var(--hed-dots), var(--hed-black); }
.quiz-modal__progress { background: rgba(255, 255, 255, 0.12); }
.quiz-modal__progress-fill { background: var(--hed-yellow); }
.quiz-modal__close { font-family: var(--hed-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; }
.quiz-step__title { color: #FFFFFF; font-weight: 600; letter-spacing: -0.02em; }
.quiz-step__sub { color: rgba(255, 255, 255, 0.7); }
.quiz-option { background: var(--hed-black-3); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 500; }
.quiz-option:hover { background: #2A2A2E; border-color: rgba(255, 255, 255, 0.4); }
.quiz-option.is-selected { background: #2A2A2E; border-color: var(--hed-cobalt); }
.quiz-option__icon { background: #FFFFFF; color: var(--hed-black); }
.quiz-option.is-selected .quiz-option__radio { border-color: var(--hed-cobalt); background: var(--hed-cobalt); }
.quiz-form .btn-continue { background: var(--hed-yellow); color: var(--hed-black); font-family: var(--hed-mono); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.quiz-form .btn-continue:hover { background: #FFFFFF; color: var(--hed-black); }
.quiz-form .quiz-error { color: #FF8A8A; }
.quiz-modal .btn-outline-light { color: #FFFFFF; border-bottom-color: var(--hed-cobalt); }
.quiz-modal .btn-outline-light:hover { color: var(--hed-yellow); border-color: var(--hed-yellow); }
.quiz-thanks .btn-whatsapp:hover { background: #FFFFFF; color: var(--hed-black); }

/* =====================================================================
   BLOG (/blog/ e artigos)
   ===================================================================== */
.blog-hero, .article-hero { color: #FFFFFF; }
.blog-hero__tag, .hed-pill {
  background: var(--hed-cobalt); color: var(--hed-black);
  font-family: var(--hed-mono); font-weight: 600; letter-spacing: 0.12em;
}
.blog-hero p, .article-hero__lead { color: rgba(255, 255, 255, 0.72); font-weight: 300; }
.article-hero__cat, .article-hero__category, .post-card__category, .hed-box__label {
  font-family: var(--hed-mono); font-weight: 500; letter-spacing: 0.14em; color: var(--hed-cobalt);
}
.article-hero__time, .article-meta, .breadcrumb { font-family: var(--hed-mono); font-size: 12px; letter-spacing: 0.06em; }
.breadcrumb a { color: var(--hed-cobalt); }

.posts-section { background: var(--hed-offwhite); }
.post-card { border: 1px solid var(--hed-line); }
.post-card:hover { box-shadow: inset 0 -4px 0 var(--hed-cobalt); transform: none; }
.post-card__cover { background: var(--hed-dots), var(--hed-black); filter: grayscale(1); }
.post-card__cover::after { background: none; }
.post-card__category { color: var(--hed-graphite); }
.post-card__title { font-weight: 600; }
.post-card__read { color: var(--hed-black); font-family: var(--hed-mono); letter-spacing: 0.1em; text-transform: uppercase; box-shadow: inset 0 -2px 0 var(--hed-cobalt); }
.post-card__read:hover { text-decoration: none; box-shadow: inset 0 -2px 0 var(--hed-black); }
.post-card__meta { font-family: var(--hed-mono); font-size: 12px; }

.prose h2 { font-weight: 600; letter-spacing: -0.02em; font-size: 26px; }
.prose h3 { font-weight: 600; }
.prose p, .prose li, td, .checklist li { color: var(--hed-graphite); }
.prose strong { color: var(--hed-black); }
.prose a, .prose a:hover {
  color: var(--hed-black); text-decoration: underline;
  text-decoration-color: var(--hed-cobalt); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--hed-black); }
.prose .note, .article-layout .callout, .callout--info, .callout--tip {
  background: rgba(61, 158, 255, 0.08); border: 0; border-left: 3px solid var(--hed-cobalt);
}
.callout--warn { background: rgba(245, 247, 143, 0.35); border: 0; border-left: 3px solid var(--hed-black); }
.callout__title { font-family: var(--hed-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hed-black); }
.table-wrap { border: 1px solid var(--hed-line); }
thead { background: var(--hed-black); }
th { font-family: var(--hed-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
tr:nth-child(even) td { background: var(--hed-offwhite); }
.checklist li::before { color: var(--hed-cobalt); }

.hed-box { color: #FFFFFF; }
.hed-box h3 { font-weight: 600; }
.hed-box p { color: rgba(255, 255, 255, 0.72); }
.hed-box .bank-pill { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); font-family: var(--hed-mono); }
.hed-box__cta { background: var(--hed-yellow); color: var(--hed-black); }
.hed-box__cta:hover { background: #FFFFFF; color: var(--hed-black); }
.hed-box .btn-primary:hover { background: #FFFFFF; color: var(--hed-black); }

.related-box, .sidebar-toc { background: var(--hed-offwhite); }
.sidebar-card { background: var(--hed-dots), var(--hed-black); color: #FFFFFF; }
.sidebar-card p { color: rgba(255, 255, 255, 0.72); }
.sidebar-card .btn-primary:hover { background: #FFFFFF; color: var(--hed-black); }
.related-box h4, .sidebar-toc h4, .related__title {
  font-family: var(--hed-mono); font-weight: 500; letter-spacing: 0.14em; color: var(--hed-gray);
}
.related-box a:hover, .sidebar-toc a:hover, .related__link:hover { color: var(--hed-black); box-shadow: inset 0 -2px 0 var(--hed-cobalt); }

.faq__q::after { color: var(--hed-cobalt); }

.steps li::before {
  background: var(--hed-cobalt) !important; color: var(--hed-black) !important;
  font-family: var(--hed-mono);
}

.cta-hero { background: var(--hed-yellow) !important; color: var(--hed-black) !important; font-family: var(--hed-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.cta-hero:hover { background: var(--hed-black) !important; color: var(--hed-yellow) !important; }
.cta-banner p { color: rgba(255, 255, 255, 0.72); font-weight: 300; }
.site-footer { color: rgba(255, 255, 255, 0.6); }
.site-footer a { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--hed-cobalt); text-underline-offset: 3px; }

@media (max-width: 980px) {
  .nav.is-open { background: #FFFFFF; border-bottom: 1px solid var(--hed-line); }
  .hero { padding: 48px 0 56px; }
  .callouts__grid { gap: 28px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .rates__grid > * { min-width: 0; }
  .rates__copy table { font-size: 12.5px; }
  .rates__copy th, .rates__copy td { padding: 9px 6px; }
  .rates__copy th { letter-spacing: 0.04em; font-size: 10.5px; }
  .hed-logo__word { font-size: 20px; }
  .hed-logo__mark { width: 26px; }
  .btn { padding: 15px 22px; }
  .callout__text strong { font-size: 22px; }
}

/* Cabeçalho simplificado (páginas antigas sem .site-header__inner) */
.site-header > .container:has(> nav) { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-header > .container > nav:not(.nav) { display: flex; align-items: center; gap: 28px; }
.site-header > .container > nav:not(.nav) a:not(.btn-nav) { font-family: var(--hed-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hed-graphite); }
.btn-nav { display: inline-flex; align-items: center; padding: 14px 24px; background: var(--hed-yellow); color: var(--hed-black); font-family: var(--hed-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.btn-nav:hover { background: var(--hed-black); color: var(--hed-yellow); }

/* Artigos: nada passa da largura da tela no celular */
.article-layout > *, .article-body, .prose { min-width: 0; }
.prose { overflow-wrap: break-word; }
@media (max-width: 768px) {
  table:not(.table-wrap table) { display: block; overflow-x: auto; max-width: 100%; }
  .btn, .btn-nav, .hed-box__cta { white-space: normal; text-align: center; max-width: 100%; }
  th { letter-spacing: 0.04em; }
}

/* =====================================================================
   MOVIMENTO — sutil, rápido, sempre opcional (prefers-reduced-motion)
   ===================================================================== */
:root { --hed-ease: cubic-bezier(.2, .7, .2, 1); }

/* Transições de interação */
.btn, .btn-nav, .hed-box__cta, .cta-hero, .nav a, .post-card, .step, .tile,
.use-card, .sim-card__option, .quiz-option, .faq__item, .related-box a, .sidebar-toc a, .post-card__read {
  transition: background-color .2s var(--hed-ease), color .2s var(--hed-ease), border-color .2s var(--hed-ease),
              box-shadow .25s var(--hed-ease), transform .25s var(--hed-ease), filter .4s var(--hed-ease);
}

@media (prefers-reduced-motion: no-preference) {
  /* Símbolo: a barra do meio "avança" ao carregar e no hover do logo */
  .hed-logo__mark rect:nth-child(2) { transform-box: fill-box; animation: hed-advance .7s var(--hed-ease) .15s both; }
  .hed-logo:hover .hed-logo__mark rect:nth-child(2), a:hover > .hed-logo .hed-logo__mark rect:nth-child(2) {
    animation: hed-nudge .5s var(--hed-ease);
  }
  @keyframes hed-advance { from { transform: translateX(-33%); } to { transform: none; } }
  @keyframes hed-nudge { 0% { transform: none; } 45% { transform: translateX(14%); } 100% { transform: none; } }

  /* Botões: leve elevação; seta anda no hover */
  .btn:hover, .btn-nav:hover, .hed-box__cta:hover, .cta-hero:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .post-card__read, .tile .go { display: inline-block; }
  .post-card:hover .post-card__read, .tile:hover .go { transform: translateX(4px); }

  /* Cards: sobem um pouco e ganham a linha cobalto */
  .step:hover, .tile:hover { transform: translateY(-4px); }
  .post-card:hover { transform: translateY(-4px); }
  .use-card:hover { transform: translateY(-4px); filter: grayscale(.2) contrast(1.05); }
  .sim-card__option:hover, .quiz-option:hover { transform: translateX(3px); }

  /* Links do texto: sublinhado cobalto cresce */
  .nav a:not(.btn) { background: linear-gradient(var(--hed-cobalt), var(--hed-cobalt)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--hed-ease), color .2s; }
  .nav a:not(.btn):hover, .nav a.active { background-size: 100% 2px; box-shadow: none; }

  /* Fundos: o wash respira devagar; a textura pontilhada desliza muito lentamente */
  .hero, .como-funciona { background-size: 120% 120%, 120% 120%, auto; animation: hed-wash 18s ease-in-out infinite alternate; }
  @keyframes hed-wash { from { background-position: 0% 0%, 100% 100%, 0 0; } to { background-position: 20% 10%, 80% 90%, 0 0; } }
  .callouts, .multibanco, .cta-final, .article-hero, .blog-hero { animation: hed-dots 60s linear infinite; }
  @keyframes hed-dots { from { background-position: 0 0, 0 0; } to { background-position: 110px 110px, 0 0; } }

  /* Selo de destaque pulsa uma vez para chamar atenção */
  .hero__pill:not(.hero__pill--info) { animation: hed-pop .6s var(--hed-ease) .9s both; }
  @keyframes hed-pop { 0% { transform: scale(.92); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: none; } }
}

/* Entrada do hero e revelação ao rolar (só com JS ativo: html.hed-anim) */
@media (prefers-reduced-motion: no-preference) {
  .hed-anim .hero__pills, .hed-anim .hero h1, .hed-anim .hero__lede, .hed-anim .hero__body, .hed-anim .hero .btn, .hed-anim .sim-card {
    opacity: 0; transform: translateY(18px);
    transition: opacity .8s var(--hed-ease), transform .8s var(--hed-ease);
  }
  .hed-anim.hed-loaded .hero__pills, .hed-anim.hed-loaded .hero h1, .hed-anim.hed-loaded .hero__lede,
  .hed-anim.hed-loaded .hero__body, .hed-anim.hed-loaded .hero .btn, .hed-anim.hed-loaded .sim-card { opacity: 1; transform: none; }
  .hed-anim.hed-loaded .hero h1 { transition-delay: .08s; }
  .hed-anim.hed-loaded .hero__lede { transition-delay: .16s; }
  .hed-anim.hed-loaded .hero__body { transition-delay: .22s; }
  .hed-anim.hed-loaded .hero .btn { transition-delay: .3s; }
  .hed-anim.hed-loaded .sim-card { transition-delay: .2s; }

  .hed-anim .hed-reveal { opacity: 0; transform: translateY(22px); }
  .hed-anim .hed-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--hed-ease) var(--hed-delay, 0ms), transform .7s var(--hed-ease) var(--hed-delay, 0ms),
                box-shadow .25s var(--hed-ease), border-color .2s, background-color .2s, filter .4s;
  }
  .hed-anim .bank-pill.hed-reveal { transform: translateY(22px) scale(.96); }
  .hed-anim .bank-pill.hed-reveal.is-in { transform: none; }
  .hed-anim .step.is-in:hover, .hed-anim .tile.is-in:hover, .hed-anim .post-card.is-in:hover,
  .hed-anim .use-card.is-in:hover, .hed-anim .bank-pill.is-in:hover { transform: translateY(-4px); }

  /* Gráfico de taxas: barras crescem de baixo para cima */
  .hed-anim .hed-chart .chart__bar-fill { transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--hed-ease); }
  .hed-anim .hed-chart .chart__bar-value { opacity: 0; transition: opacity .5s ease .6s; }
  .hed-anim .hed-chart.is-in .chart__bar-fill { transform: none; }
  .hed-anim .hed-chart.is-in .chart__bar-value { opacity: 1; }
  .hed-anim .hed-chart.is-in .chart__bar:nth-child(2) .chart__bar-fill { transition-delay: .1s; }
  .hed-anim .hed-chart.is-in .chart__bar:nth-child(3) .chart__bar-fill { transition-delay: .2s; }
  .hed-anim .hed-chart.is-in .chart__bar:nth-child(4) .chart__bar-fill { transition-delay: .3s; }
}
@media print {
  .hed-anim .hed-reveal, .hed-anim .hero * , .hed-anim .sim-card { opacity: 1 !important; transform: none !important; }
  .hed-anim .hed-chart .chart__bar-fill { transform: none !important; }
  .hed-anim .hed-chart .chart__bar-value { opacity: 1 !important; }
}

/* =====================================================================
   HOME — elementos do layout da Landing Page (design)
   ===================================================================== */
.hed-kicker {
  margin: 0 0 18px; font-family: var(--hed-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--hed-gray);
}
.section--dark .hed-kicker, .multibanco .hed-kicker, .limites .hed-kicker { color: rgba(255, 255, 255, 0.55); }

/* Hero */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__body { font-size: 20px; max-width: 520px; margin-bottom: 36px; }
.sim-card__chip {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px;
  background: var(--hed-cobalt); color: var(--hed-black);
  font-family: var(--hed-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.sim-card__options { grid-template-columns: 1fr 1fr; }
.sim-card__option { padding: 14px 16px; font-size: 14px; }

/* Faixa de números: sem ícones, número grande + label mono */
.callout__icon { display: none; }
.callout__text strong { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 8px; }

/* O home equity */
.use-cases .hed-kicker { text-align: left; }
.use-cases__title { text-align: left !important; max-width: 920px; font-size: clamp(28px, 3.4vw, 44px) !important; line-height: 1.15 !important; }
.use-cases__intro { max-width: 760px; margin: 0 0 48px; }
.use-cases__intro p { font-size: 18px; font-weight: 300; line-height: 1.65; color: var(--hed-graphite); margin: 0 0 14px; }
.use-card__num {
  position: absolute; top: 18px; left: 20px; z-index: 1;
  font-family: var(--hed-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--hed-cobalt);
}

/* Para quem — selo na foto */
.para-quem__visual { position: relative; overflow: visible; }
.para-quem__badge {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: var(--hed-cobalt); color: var(--hed-black);
  font-family: var(--hed-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}

/* Taxas — prazos e nota do gráfico */
.term-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.term-chips span {
  padding: 8px 12px; border: 1px solid var(--hed-line); background: #FFFFFF;
  font-family: var(--hed-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hed-graphite);
}
.term-chips span.is-on { background: var(--hed-cobalt); border-color: var(--hed-cobalt); color: var(--hed-black); }
.chart-card__note {
  margin: 18px 0 0; font-family: var(--hed-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--hed-gray);
}

/* Bancos — grade de logos */
.banks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.banks-grid .bank-pill {
  position: static; width: auto; height: 64px; padding: 10px 14px;
  display: grid; place-items: center; background: #FFFFFF;
}
.banks-grid .bank-pill img { max-height: 28px; max-width: 100%; object-fit: contain; }
.multibanco__text { color: rgba(255, 255, 255, 0.72); font-size: 18px; font-weight: 300; line-height: 1.6; max-width: 480px; margin: 0 0 32px; }
.multibanco__text strong { color: #FFFFFF; font-weight: 600; display: block; margin-top: 6px; }

/* Limite de crédito */
.limites { background: var(--hed-dots), var(--hed-black); color: #FFFFFF; }
.limites .section__heading { margin-bottom: 40px; }
.limites__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.limites__card { border: 1px solid var(--hed-line-dark); padding: 32px; background: rgba(10, 10, 11, 0.6); }
.limites__type { margin: 0 0 18px; font-family: var(--hed-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.limites__value { margin: 0; font-size: 18px; color: rgba(255, 255, 255, 0.7); }
.limites__value span { font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; color: var(--hed-cobalt); margin-right: 8px; }
.limites__fin { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--hed-line-dark); }
.limites__fin > p { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.75); max-width: 440px; }
.limites__calc { margin: 0; }
.limites__calc > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.limites__calc dt { font-family: var(--hed-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.limites__calc dd { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.limites__calc .is-total { border-top: 1px solid var(--hed-line-dark); margin-top: 6px; padding-top: 16px; }
.limites__calc .is-total dt { color: var(--hed-yellow); }
.limites__calc .is-total dd { color: var(--hed-cobalt); font-size: 30px; }

/* FAQ */
.faq__intro { text-align: center; color: var(--hed-graphite); font-weight: 300; margin: 0 0 40px; }
.faq__intro a { color: var(--hed-black); text-decoration: underline; text-decoration-color: var(--hed-cobalt); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* CTA final — selo de prova social */
.cta-final__visual { position: relative; overflow: visible; }
.cta-final__proof {
  position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; background: #FFFFFF; color: var(--hed-black);
}
.cta-final__proof span {
  align-self: flex-start; padding: 3px 8px; background: var(--hed-cobalt); color: var(--hed-black);
  font-family: var(--hed-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.cta-final__proof strong { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

@media (max-width: 980px) {
  .banks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .limites__grid, .limites__fin { grid-template-columns: 1fr; }
  .limites__fin { gap: 24px; }
}
@media (max-width: 560px) {
  .sim-card__options { grid-template-columns: 1fr; }
  .banks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout__text strong { font-size: 28px; }
  .hero__body { font-size: 18px; }
  .limites__card { padding: 24px; }
}
/* filtros P&B só na foto, para os selos manterem a cor */
.para-quem__visual, .cta-final__visual { filter: none; }
.para-quem__visual img { filter: grayscale(1) contrast(1.05); }
.cta-final__visual img { filter: grayscale(.55) brightness(.9) contrast(1.08); }
.use-card__num { color: #FFFFFF; }
.rates__copy .hed-kicker { font-size: 12px; color: var(--hed-gray); max-width: none; margin: 0 0 18px; line-height: 1.4; }
