/* =========================================================================
   ETFs AUVP — folha de estilos (mobile first)
   Paleta e tipografia baseadas no design system AUVP (tema Verde):
   display: Anek Latin · body: Roboto
   ========================================================================= */

:root {
  /* Cores semânticas do design system */
  --primary: #023620;
  --secondary: #154736;
  --accent: #023620;
  --muted: #F1F4F1;
  --background: #FFFFFF;
  --card: #FFFFFF;
  --destructive: #E11414;
  --border: #DDE3DD;
  --accent-dark: #5A8770; /* verde de acento p/ fundos escuros */

  /* Derivadas */
  --text: #0E1F17;
  --text-soft: #46564D;
  --text-on-dark: #F4F8F5;
  --text-on-dark-soft: #C4D4CA;
  --footer-bg: #060606;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(2, 54, 32, 0.05), 0 2px 8px rgba(2, 54, 32, 0.05);
  --shadow-md: 0 6px 24px rgba(2, 54, 32, 0.10);
  --shadow-lg: 0 18px 48px rgba(2, 54, 32, 0.16);

  /* Tipografia do design system */
  --font-display: "Anek Latin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  /* Altura da faixa do header transparente — define o respiro entre o topo da
     página e o menu superior (o hero soma esse valor ao próprio padding). */
  --header-h: 108px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; border-radius: 4px; }

.container {
  width: calc(100% - 36px);
  max-width: var(--container);
  margin-inline: auto;
}

/* =========================================================================
   Header — transparente, posicionado sobre o hero escuro (logo e textos
   brancos para contraste). Os links vêm de SITE.nav (js/data.js).
   ========================================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; flex: none; }

/* Botão hambúrguer (só aparece abaixo do breakpoint do menu) */
.nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px;
  margin-right: -10px;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu — mobile: painel escuro abaixo do header, grupos sempre abertos */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #08090A;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px 24px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.site-header.nav-open .main-nav { display: block; }
.nav-link,
.nav-drop-btn {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
}
.nav-link:hover { color: #FFFFFF; text-decoration: none; }
.nav-caret { width: 12px; height: 12px; flex: none; transition: transform 0.25s var(--ease); }
/* No mobile o rótulo do grupo vira um cabeçalho (links sempre visíveis) */
.main-nav .nav-drop-btn {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px 0 4px;
}
.main-nav .nav-drop-btn .nav-caret { display: none; }
.nav-dropdown { display: grid; }
.nav-drop-link {
  display: block;
  padding: 9px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.nav-drop-link:hover { color: #FFFFFF; text-decoration: none; }
.nav-drop-link.is-current { color: var(--accent-dark); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 460px at 85% -12%, rgba(255, 255, 255, 0.07), transparent 62%),
    radial-gradient(760px 400px at -12% 108%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(160deg, #0A0B0C 0%, #232427 100%);
  color: var(--text-on-dark);
  /* O header transparente fica sobreposto ao topo do hero */
  padding: calc(var(--header-h) + clamp(40px, 7vw, 92px)) 0 44px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
}
.hero-glow-a {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 65%);
}
.hero-glow-b {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
}
.hero-inner { position: relative; max-width: 820px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.15rem, 6.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: 0.02em;
  height: 0.035em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease) 750ms;
}
.reveal.in .hero-underline::after { transform: scaleX(1); }
/* Quebra obrigatória depois do primeiro ponto do título (vale em todas as
   larguras — no mobile a frase seguinte não deve começar na mesma linha) */
.hero-title-break { display: block; }
.hero-subtitle {
  margin-top: 18px;
  max-width: 640px;
  font-size: clamp(0.98rem, 1.4vw, 1.13rem);
  color: var(--text-on-dark-soft);
}

/* Destaque das taxas na primeira dobra */
.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-on-dark-soft);
}
.hero-highlight strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-on-dark);
}
.hero-highlight-ico { display: inline-grid; place-items: center; flex: none; color: var(--accent-dark); }
.hero-highlight-ico svg { width: 18px; height: 18px; }

/* Cards de visão geral (atalhos para as abas) */
.overview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: clamp(36px, 6vw, 60px);
}
.overview-card {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Por padrão o cartão é neutro; a cor de cada ETF só aparece ao interagir */
.overview-card .ov-ticker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
  transition: color 0.25s var(--ease);
}
.overview-card .ov-ico { display: inline-grid; place-items: center; }
.overview-card .ov-ico svg { width: 17px; height: 17px; }
.overview-card .ov-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-on-dark-soft);
  flex: 1;
}
.overview-card .ov-go {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  margin-top: 4px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.overview-card .ov-go svg { width: 14px; height: 14px; }

/* Estados de hover/foco — únicos responsáveis por revelar a cor do ETF */
.overview-card:hover,
.overview-card:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--ea-light, rgba(255, 255, 255, 0.3));
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.overview-card:hover .ov-ticker,
.overview-card:focus-visible .ov-ticker { color: var(--ea-light, var(--text-on-dark)); }
.overview-card:hover .ov-go,
.overview-card:focus-visible .ov-go {
  color: var(--ea-light, var(--accent-dark));
  border-color: var(--ea-light, rgba(255, 255, 255, 0.45));
  gap: 10px;
}
.overview-card .badge-soon,
.etf-hero .badge-soon {
  color: #CFE0D6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* =========================================================================
   Barra de abas
   ========================================================================= */
.tabbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
/* Mobile: as quatro abas dividem a largura da barra (sem scroll lateral) e
   empilham ícone acima do ticker; a descrição (.tab-sub) só aparece a partir
   do breakpoint de 680px, onde a aba volta a ser ícone + ticker lado a lado */
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  margin: 10px 0;
  min-height: 58px;
  min-width: 0;
  flex: 1 1 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.tab:hover { background: var(--muted); color: var(--primary); }
.tab .tab-ticker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.tab .tab-ico { display: inline-grid; place-items: center; color: inherit; }
.tab .tab-ico svg { width: 18px; height: 18px; }
.tab .tab-sub { display: none; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.02em; }
.tab .badge-soon { display: none; }
.tab[aria-selected="true"] { color: var(--tab-ea, var(--primary)); }
.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--secondary), var(--accent-dark));
  border-radius: 3px 3px 0 0;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
.badge-soon {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(90, 135, 112, 0.18);
  border: 1px solid rgba(90, 135, 112, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

/* =========================================================================
   Painéis
   ========================================================================= */
.panel { display: none; }
.panel.active { display: block; animation: panelIn 0.55s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero do ETF dentro do painel — usa a cor de identidade do fundo
   (gradiente deep → accent do tema), pedido em 07/2026. */
.etf-hero {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(720px 320px at 90% -20%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(150deg, var(--ea-deep, #1B1C1E) 0%, var(--ea, #3F4247) 100%);
  color: var(--text-on-dark);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}
.etf-hero::after {
  content: attr(data-watermark);
  position: absolute;
  right: -12px;
  bottom: -30px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  line-height: 1;
}
/* Ícone compacto: o card fica mais baixo e o conteúdo abaixo aparece,
   sinalizando que há mais informação ao rolar a página */
.etf-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
}
.etf-icon svg { width: 19px; height: 19px; }
.etf-hero .etf-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 12px;
}
.etf-hero h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.etf-hero .etf-name {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}
.etf-hero .etf-desc {
  margin-top: 18px;
  max-width: 720px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}
.etf-hero .etf-desc em { color: var(--text-on-dark); font-style: italic; }
/* Destaque da taxa de administração (trecho em <strong> na descrição) */
.etf-hero .etf-desc strong { color: var(--ea-light, #FFFFFF); font-weight: 700; }

/* Seções */
.section { padding: clamp(40px, 6vw, 72px) 0 0; }
.section:last-of-type { padding-bottom: clamp(40px, 6vw, 72px); }
.section-head { max-width: 760px; margin-bottom: 26px; }
/* Blocos de texto corrido (Objetivos) usam toda a largura do container */
.section-head-wide { max-width: none; }
.section-head-wide .section-intro { line-height: 1.75; }
.section h3 {
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ea, var(--primary));
  line-height: 1.22;
}
.section .section-intro { margin-top: 14px; color: var(--text-soft); }
.section .section-intro strong { color: var(--text); }

/* Taxa de administração — texto solto à direita do card "Como investir",
   sem caixa/borda própria (pedido explícito: não é uma tag) */
.fee-callout {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.fee-callout .fee-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.fee-callout .fee-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ea, var(--primary));
}

/* Grade de cards (mobile: 1 coluna) */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
/* Cards puramente informativos (sem clique) — nenhum efeito de hover,
   borda simples, sem destaque lateral. O ícone e o título carregam a
   cor de identidade do ETF de forma estática. */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--muted);
  color: var(--secondary);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h4 { font-size: 1.05rem; font-weight: 700; color: var(--ea-deep, var(--primary)); margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-soft); }

/* =========================================================================
   Funil do índice (mobile: barra em cima, texto embaixo)
   Silhueta contínua: clip-path por linha calculado em js/app.js
   Cores por ETF via variáveis --ea-* definidas no painel
   ========================================================================= */
.funnel-wrap {
  background: var(--ea-soft, var(--muted));
  border: 1px solid var(--ea-border, var(--border));
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 46px);
}
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  grid-template-areas: "bar check" "text text";
  align-items: center;
  gap: 8px 12px;
}
.funnel-bar {
  grid-area: bar;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  width: 100%;
}
.funnel-bar span { max-width: 70%; line-height: 1.15; }
.funnel-text { grid-area: text; font-size: 0.9rem; color: var(--text-soft); padding-bottom: 6px; }
.funnel-text strong { color: var(--text); }
.funnel-check {
  grid-area: check;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ea, var(--secondary));
  background: var(--card);
  border: 1.5px solid var(--ea-border, rgba(90, 135, 112, 0.55));
  box-shadow: var(--shadow-sm);
}
.funnel-check svg { width: 14px; height: 14px; }

/* Resultado: círculo centralizado no eixo horizontal do funil */
.funnel-result {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
}
.funnel-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.funnel-stem {
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, transparent, var(--ea, var(--secondary)));
  margin-bottom: -2px;
}
.funnel-result .result-circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2px solid var(--ea, var(--accent-dark));
  background: var(--card);
  color: var(--ea-deep, var(--primary));
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
  padding: 14px;
  box-shadow: 0 0 0 6px var(--ea-soft, rgba(90, 135, 112, 0.12)), var(--shadow-sm);
}
.funnel-result p {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 420px;
  text-align: center;
  align-self: center;
}

/* ---------- Acentos por ETF (variáveis --ea-* definidas no painel) ------- */
.panel .card-icon { background: var(--ea-soft, var(--muted)); color: var(--ea, var(--secondary)); }

/* Filosofia (texto corrido) */
.prose { max-width: 820px; display: grid; gap: 18px; }
.prose p { color: var(--text-soft); }

/* CTA final do painel */
.etf-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(140deg, var(--ea-deep, var(--primary)), var(--ea, var(--secondary)));
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.etf-cta .cta-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: 0; }
.etf-cta .cta-sub { margin-top: 6px; font-size: 0.92rem; color: var(--text-on-dark-soft); max-width: 560px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ea-deep, var(--primary)); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn svg { width: 16px; height: 16px; }

/* Card "Como investir" — informativo, sem interação (portanto sem hover) */
.invest-note {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.invest-note .invest-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 300px;
  min-width: 0;
}
.invest-note .invest-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ea-soft, var(--muted));
  color: var(--ea, var(--secondary));
}
.invest-note .invest-ico svg { width: 21px; height: 21px; }
.invest-note h4 { font-size: 1.05rem; font-weight: 700; color: var(--ea-deep, var(--primary)); margin-bottom: 4px; }
.invest-note p { font-size: 0.92rem; color: var(--text-soft); }

/* Placeholder (ABTC11) */
.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #D2D4D7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(210, 212, 215, 0.4);
  padding: 10px 16px;
  border-radius: 999px;
}
.placeholder-note .pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ABB0B6;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 135, 112, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(90, 135, 112, 0); }
}

/* =========================================================================
   Soluções — dobra institucional global (fora dos painéis por ETF),
   mostrada sempre, entre o conteúdo das abas e o rodapé.
   ========================================================================= */
.solutions {
  /* O espaço acima vem do padding-bottom da última .section do painel */
  margin-top: 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 7vw, 84px) 0;
}
.solutions-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.solutions-head { max-width: 640px; }
.solutions-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
  line-height: 1.22;
  text-transform: uppercase;
}
.solutions-head p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.solutions-head p + p { margin-top: 12px; }

.solutions-list { display: flex; flex-direction: column; }
.solutions-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.solutions-item:first-child { padding-top: 0; }
.solutions-item:last-child { padding-bottom: 0; border-bottom: none; }
.solutions-item h4 {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.solutions-item p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; }

/* =========================================================================
   Rodapé (padrão AUVP Capital)
   ========================================================================= */
.site-footer {
  background: var(--footer-bg);
  color: #C9CFCB;
  padding: clamp(48px, 7vw, 84px) 0 36px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.footer-logo { height: 58px; width: auto; }
.footer-tagline { margin-top: 26px; color: #E6E9E7; }
.footer-company { margin-top: 16px; color: #C9CFCB; font-size: 0.9rem; letter-spacing: 0.01em; }
.footer-company + .footer-company { margin-top: 8px; }

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.footer-col a {
  color: #C9CFCB;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: #FFFFFF; text-decoration: none; }
.footer-ico { display: inline-grid; place-items: center; }
.footer-ico svg { width: 17px; height: 17px; }
.footer-products { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-etfs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-etfs a { color: #C9CFCB; font-size: 0.85rem; }
.footer-etfs a:hover { color: #fff; }
.footer-disclaimer { margin-top: 22px; font-size: 0.78rem; line-height: 1.7; color: rgba(201, 207, 203, 0.62); max-width: 980px; }
.footer-copy { margin-top: 18px; font-size: 0.78rem; color: rgba(201, 207, 203, 0.45); }

/* =========================================================================
   Animações de revelação no scroll
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Funil: barras crescem ao entrar na tela */
.funnel-row .funnel-bar { transform: scaleX(0.6); opacity: 0; transition: transform 0.65s var(--ease), opacity 0.65s var(--ease); transition-delay: var(--d, 0ms); }
.funnel-row.in .funnel-bar { transform: scaleX(1); opacity: 1; }
.funnel-row .funnel-text, .funnel-row .funnel-check { opacity: 0; transform: translateX(-10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--d, 0ms) + 180ms); }
.funnel-row.in .funnel-text, .funnel-row.in .funnel-check { opacity: 1; transform: translateX(0); }
.funnel-result { opacity: 0; transform: scale(0.92); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.funnel-result.in { opacity: 1; transform: scale(1); }

/* =========================================================================
   Breakpoints (mobile first)
   ========================================================================= */
@media (min-width: 680px) {
  .container { width: calc(100% - 48px); }
  .brand-logo { height: 44px; }
  .overview { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .tab { padding: 10px 18px; min-height: 48px; flex: none; align-items: flex-start; }
  .tab .tab-ticker { flex-direction: row; gap: 8px; }
  .tab .tab-ico svg { width: 15px; height: 15px; }
  .tab .tab-sub { display: inline; }
  .tab .badge-soon { display: inline-block; }

  /* Funil em linha: barra | texto | check */
  .funnel { gap: 8px; }
  .funnel-row {
    grid-template-columns: minmax(220px, 340px) 1fr 34px;
    grid-template-areas: "bar text check";
    gap: 20px;
  }
  .funnel-bar { height: 56px; }
  .funnel-text { padding-bottom: 0; }
  .funnel-result {
    margin-top: 4px;
    grid-template-columns: minmax(220px, 340px) 1fr 34px;
    gap: 20px;
    justify-items: stretch;
  }
  .funnel-axis { grid-column: 1; }
  .funnel-result p { grid-column: 2; text-align: left; max-width: none; }

  .etf-cta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
}

@media (min-width: 1020px) {
  /* Menu superior inline com dropdowns (o hambúrguer some) */
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav-link,
  .main-nav .nav-drop-btn {
    pointer-events: auto;
    width: auto;
    padding: 9px 13px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
  }
  .nav-link:hover,
  .main-nav .nav-drop-btn:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
  .main-nav .nav-drop-btn .nav-caret { display: block; }
  .nav-item { position: relative; }
  .nav-item:hover .nav-caret,
  .nav-item.open .nav-caret { transform: rotate(180deg); }
  .nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: rgba(10, 11, 12, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown,
  .nav-item.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-drop-link { padding: 9px 12px; border-radius: 8px; font-size: 0.95rem; }
  .nav-drop-link:hover { background: rgba(255, 255, 255, 0.08); }

  .overview { grid-template-columns: repeat(4, 1fr); }
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr; gap: 32px; }

  .solutions-inner { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
  .solutions-list { border-left: 1px solid var(--border); padding-left: 56px; }
}

/* =========================================================================
   Acessibilidade: movimento reduzido
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .funnel-row .funnel-bar, .funnel-row .funnel-text,
  .funnel-row .funnel-check, .funnel-result {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-underline::after { transform: scaleX(1); transition: none; }
  .panel.active { animation: none; }
  .pulse-dot { animation: none; }
  .hero-canvas { display: none; }
}
