@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   KONTO by VEKSO — Design System "Calm Premium Fintech"
   Marca Vekso preservada (ouro #F6C945 + escuro), neutros e ritmo refinados.
   ========================================================================== */
:root {
  /* Neutros (near-black rico, hairlines suaves) */
  --ink: #0E0F12;          /* fundo base */
  --ink-2: #121319;        /* faixa de seção alternada */
  --surface: #16181E;      /* cards */
  --surface-2: #1B1E26;    /* card elevado / hover */
  --line: #23262F;         /* hairline padrão */
  --line-strong: #2E323C;  /* hairline de ênfase */

  /* Marca */
  --gold: #F6C945;
  --gold-600: #E4B32E;     /* hover/press mais fundo */
  --gold-glow: rgba(246, 201, 69, 0.14);

  /* Texto */
  --text: #F4F4F0;         /* branco quente */
  --text-dim: #A2A6AF;
  --text-faint: #6B6F79;
  --on-gold: #14140F;      /* texto sobre ouro */

  /* Status */
  --pos: #4EC38A;
  --warn: #E0A23C;
  --neg: #E1725C;

  /* Aliases de compatibilidade (HTML/JS legados usam estes nomes) */
  --bg-color: var(--ink);
  --card-bg: var(--surface);
  --border-color: var(--line);
  --accent-color: var(--gold);
  --text-main: var(--text);
  --text-muted: var(--text-dim);
  --text-dark: var(--on-gold);
  --color-pos: var(--pos);
  --color-warn: var(--warn);
  --color-crit: var(--neg);

  /* Fontes */
  --font-display: 'Bricolage Grotesque', 'Archivo', sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Efeitos */
  --glass-bg: rgba(14, 15, 18, 0.72);
  --glass-border: rgba(35, 38, 47, 0.9);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
  --radius-sm: 10px;
  --border-radius: 14px; /* alias legado */

  /* Ritmo tipográfico */
  --tnum: "tnum" 1, "lnum" 1;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* ==========================================================================
   AMBIENTE DE FUNDO — calmo, um único brilho + textura fina de grade
   ========================================================================== */
.glow-bg-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(246, 201, 69, 0.07), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(78, 195, 138, 0.05), transparent 60%),
    var(--ink);
}

/* Grade fina quase imperceptível — evoca a planilha que o Konto substitui */
.glow-bg-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.16;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 62%);
}

.glow-circle { display: none; } /* substituído pelo ambiente acima */

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

.mono { font-family: var(--font-mono); font-feature-settings: var(--tnum); }
.tnum, .amount, .tier-price, .widget-val, .pcard-balance { font-feature-settings: var(--tnum); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

header.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
}

header .nav-container { display: flex; justify-content: space-between; align-items: center; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 190px 0 96px;
  position: relative;
}
.hero::after { display: none; } /* remove glow duplicado legado */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content { display: flex; flex-direction: column; gap: 26px; }

.hero-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 5px 0;
  border: none;
  background: none;
}
.hero-tag::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.hero-title { max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--gold); }

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: 44ch;
  color: var(--text-dim);
}

.hero-ctas { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.hero-ctas > div { display: flex; flex-direction: column; }

.btn-subtext {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 12px;
  letter-spacing: 0.01em;
}

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.hero-trust span::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 3px rgba(78, 195, 138, 0.15);
}

/* --- Card de produto (signature) --- */
.hero-mockup { position: relative; display: flex; justify-content: center; perspective: 1400px; }

.pcard {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cardRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}
.pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(246, 201, 69, 0.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(22px) rotateX(6deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}

.pcard-top { display: flex; justify-content: space-between; align-items: center; }
.pcard-acct {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-dim); font-weight: 500;
}
.pcard-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.chip {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}
.chip-live {
  color: var(--pos);
  border-color: rgba(78, 195, 138, 0.3);
  background: rgba(78, 195, 138, 0.08);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos); animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.pcard-label {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.pcard-balance {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  display: flex; align-items: baseline; gap: 4px;
}
.pcard-cur { font-size: 1.1rem; color: var(--text-dim); font-weight: 600; }
.pcard-cents { font-size: 1.1rem; color: var(--text-faint); font-weight: 600; }

.pcard-delta { font-size: 0.82rem; font-weight: 600; margin-top: -6px; }
.pcard-delta.pos { color: var(--pos); }
.pcard-delta.neg { color: var(--neg); }

.spark { width: 100%; height: 72px; display: block; overflow: visible; }
.spark path.line {
  fill: none; stroke: var(--gold); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(246, 201, 69, 0.25));
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: drawSpark 1.4s 0.35s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.spark path.fill { fill: url(#sparkFill); opacity: 0; animation: fadeSpark 0.8s 1.2s forwards; }
@keyframes drawSpark { to { stroke-dashoffset: 0; } }
@keyframes fadeSpark { to { opacity: 1; } }

.pcard-rows { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.prow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 0.86rem;
}
.prow span { color: var(--text-dim); }
.prow b { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-feature-settings: var(--tnum); }
.prow b.pos { color: var(--pos); }

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset; }
.btn-primary:hover { transform: translateY(-2px); background: var(--gold-600); box-shadow: 0 10px 26px var(--gold-glow); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--text-faint); }

/* ==========================================================================
   SEÇÕES
   ========================================================================== */
.section { padding: 104px 0; border-bottom: 1px solid var(--line); position: relative; }
.section.alt { background: var(--ink-2); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
  display: flex; flex-direction: column; gap: 16px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.section-desc { font-size: 1.1rem; color: var(--text-dim); }

/* Grades */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-2); }

/* Cards de "problema/feature" com marcador em mono */
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.feature h3 { font-size: 1.15rem; }
.feature p { font-size: 0.94rem; }

/* ==========================================================================
   SIMULADOR (12 meses — barras + linha acumulada). Hooks de JS preservados.
   ========================================================================== */
.simulator-container-wide { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.simulator-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: stretch; }

.simulator-controls {
  display: flex; gap: 6px;
  background: rgba(0, 0, 0, 0.28);
  padding: 5px; border-radius: 999px;
  width: fit-content;
  border: 1px solid var(--line);
}
.sim-btn {
  padding: 9px 20px; border-radius: 999px; border: none;
  background: transparent; color: var(--text-dim);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.84rem;
  cursor: pointer; transition: var(--transition);
}
.sim-btn.active { background: var(--gold); color: var(--on-gold); }

.sim-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.chart-title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.chart-subtitle { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 24px; }

.chart-container-wrapper { position: relative; width: 100%; height: 250px; margin-top: 28px; margin-bottom: 24px; }
.chart-line-svg { position: absolute; top: 0; left: 0; width: 100%; height: 200px; z-index: 5; pointer-events: none; }
.chart-line-svg path { stroke: var(--pos) !important; filter: drop-shadow(0 2px 8px rgba(78, 195, 138, 0.35)); }
.chart-line-svg circle { fill: var(--pos) !important; stroke: var(--ink); stroke-width: 2px; cursor: pointer; transition: r 0.3s, fill 0.3s; }
.chart-line-svg circle:hover { r: 8px; fill: #fff !important; }

.chart-bars-12months {
  display: flex; justify-content: space-between; align-items: flex-end;
  height: 200px; padding: 0 8px;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
}
.chart-bar-group-12 { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 44px; }
.bars-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 160px; width: 100%; position: relative; }
.bar-col { width: 7px; border-radius: 3px 3px 0 0; transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); height: 0; position: relative; }
.bar-col.income { background: var(--gold); }
.bar-col.expense { background: var(--neg); }
.bar-tip-value {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; white-space: nowrap;
  color: var(--text); opacity: 0; transition: opacity 0.25s;
  background: rgba(0, 0, 0, 0.92); padding: 3px 6px; border-radius: 4px;
  border: 1px solid var(--line-strong); pointer-events: none; z-index: 10;
}
.bar-col:hover .bar-tip-value { opacity: 1; }
.bar-label { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-faint); margin-top: 8px; text-transform: uppercase; }

.sim-legend-line { display: flex; justify-content: center; align-items: center; gap: 28px; font-size: 0.8rem; color: var(--text-dim); margin-top: 20px; flex-wrap: wrap; }
.sim-legend-line span { display: flex; align-items: center; gap: 8px; }
.sim-legend-line i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sim-legend-line i.line-icon { height: 4px; width: 20px; border-radius: 2px; }

/* Tabela do simulador (caso reutilizada) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.15); }
.sim-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.sim-table th, .sim-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.sim-table th { font-family: var(--font-mono); font-weight: 500; color: var(--text-dim); background: rgba(0,0,0,0.2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sim-table td.amount { font-family: var(--font-mono); font-weight: 500; }
.sim-table td.negative { color: var(--neg); }
.sim-table td.positive { color: var(--pos); }

/* ==========================================================================
   PRICING (billing toggle + cards). Hooks de JS preservados.
   ========================================================================== */
.billing-toggle-container { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.billing-label { font-size: 0.92rem; font-weight: 600; color: var(--text-faint); cursor: pointer; transition: var(--transition); user-select: none; }
.billing-label.active { color: var(--text); }

.toggle-switch { position: relative; width: 56px; height: 30px; background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); border-radius: 20px; cursor: pointer; transition: var(--transition); }
/* knob: branco no mensal, amarelo no anual */
.toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--text); border-radius: 50%; transition: left 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.32s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.45); }
.toggle-switch.annually { background: var(--gold-glow); border-color: rgba(246, 201, 69, 0.5); }
.toggle-switch.annually::after { left: 29px; background: var(--gold); }

.discount-badge {
  background: rgba(78, 195, 138, 0.1); color: var(--pos);
  border: 1px solid rgba(78, 195, 138, 0.28);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; user-select: none;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.tier-card { display: flex; flex-direction: column; gap: 22px; border-color: var(--line); }
.tier-card.featured {
  border-color: rgba(246, 201, 69, 0.55);
  position: relative; overflow: visible;
  background: linear-gradient(180deg, rgba(246, 201, 69, 0.06) 0%, var(--surface) 46%);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(246, 201, 69, 0.15), 0 18px 50px rgba(246, 201, 69, 0.06);
}

.featured-badge-top {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--on-gold);
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 0 4px 15px var(--gold-glow); z-index: 10; white-space: nowrap;
}

.economy-badge-card {
  background: rgba(78, 195, 138, 0.1); color: var(--pos);
  border: 1px solid rgba(78, 195, 138, 0.24);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em;
  width: fit-content; margin-bottom: 10px; display: none;
}
.economy-badge-card.visible { display: inline-block; }

.btn-dynamic { transition: var(--transition); }
.btn-dynamic.monthly { background: var(--text) !important; color: var(--on-gold) !important; }
.btn-dynamic.monthly:hover { background: rgba(255,255,255,0.85) !important; box-shadow: 0 8px 24px rgba(255,255,255,0.16) !important; }
.btn-dynamic.annually { background: var(--gold) !important; color: var(--on-gold) !important; }
.btn-dynamic.annually:hover { background: var(--gold-600) !important; box-shadow: 0 8px 24px var(--gold-glow) !important; }

.tier-header { display: flex; flex-direction: column; gap: 10px; }
.tier-name { font-size: 1.2rem; font-weight: 700; font-family: var(--font-display); }
.tier-price { font-size: 2.4rem; font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.tier-price span { font-size: 0.9rem; font-family: var(--font-sans); color: var(--text-dim); font-weight: 400; }
.tier-price.free { color: var(--pos); }

.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; flex-grow: 1; }
.tier-features li { display: flex; gap: 11px; color: var(--text-dim); align-items: flex-start; }
.tier-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.tier-features li.unavailable { opacity: 0.4; }
.tier-features li.unavailable::before { content: '✕'; color: var(--text-faint); }

/* ==========================================================================
   FAQ (acordeão). Hooks de JS preservados.
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color 0.25s ease; }
.faq-item.active { border-color: var(--line-strong); }
.faq-question {
  width: 100%; padding: 20px 24px; background: transparent; border: none; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-icon { font-size: 1.3rem; transition: var(--transition); color: var(--gold); flex-shrink: 0; line-height: 1; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(0,0,0,0.14); }
.faq-answer-content { padding: 20px 24px; color: var(--text-dim); font-size: 0.92rem; border-top: 1px solid var(--line); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 520px; }

/* ==========================================================================
   MODAL DE CAPTURA DE LEADS. Hooks de JS preservados.
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  width: 90%; max-width: 440px; padding: 34px; position: relative;
  box-shadow: var(--shadow-float); transform: translateY(18px) scale(0.98); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 18px; right: 20px; background: transparent; border: none; font-size: 1.5rem; color: var(--text-faint); cursor: pointer; transition: var(--transition); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-header { margin-bottom: 22px; text-align: center; }
.modal-title { font-size: 1.4rem; margin-bottom: 8px; }
.modal-desc { font-size: 0.88rem; color: var(--text-dim); }
.lead-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.form-group input {
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 12px; font-family: var(--font-sans); color: var(--text); font-size: 0.92rem; transition: var(--transition); width: 100%;
}
.form-group input::placeholder { color: var(--text-faint); }
.form-group input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.modal-success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 20px 0; }
.success-icon {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(78, 195, 138, 0.1);
  border: 2px solid var(--pos); color: var(--pos); font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center; animation: pulseSuccess 2s infinite;
}
@keyframes pulseSuccess {
  0% { box-shadow: 0 0 0 0 rgba(78, 195, 138, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(78, 195, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 195, 138, 0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.legal { padding: 44px 0 72px; text-align: center; font-size: 0.8rem; color: var(--text-faint); }
footer .footer-container { display: flex; flex-direction: column; gap: 16px; align-items: center; }
footer .footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
footer a { color: var(--text-dim); text-decoration: none; transition: var(--transition); }
footer a:hover { color: var(--gold); }

/* ==========================================================================
   MÓDULOS DO DEMO-APP (reaproveitados). Herdam as vars acima.
   ========================================================================== */
.demo-content-section { animation: demoFadeIn 0.4s ease; display: flex; flex-direction: column; gap: 24px; }
@keyframes demoFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.demo-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.9rem; margin-top: 16px; box-shadow: var(--shadow-card); }
.demo-table th, .demo-table td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.demo-table th { background: rgba(0,0,0,0.22); color: var(--text-dim); font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.demo-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.progress-bar-container { width: 120px; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 8px; }
.progress-bar-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.progress-bar-fill.warning { background: var(--warn); }
.progress-bar-fill.success { background: var(--pos); }

.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.search-input { background: rgba(0,0,0,0.24); border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); padding: 10px 16px; font-size: 0.88rem; width: 280px; outline: none; transition: var(--transition); font-family: var(--font-sans); }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.filter-group { display: flex; gap: 8px; }
.filter-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--text-dim); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; cursor: pointer; font-weight: 500; transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--gold-glow); color: var(--gold); border-color: rgba(246, 201, 69, 0.5); }

.reports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-card); transition: var(--transition); }
.report-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.report-icon { font-size: 1.7rem; color: var(--gold); display: flex; align-items: center; }

.config-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 16px; }
.config-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-card); }
.bank-card { background: rgba(0,0,0,0.18); border: 1px solid var(--line); border-radius: 10px; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.bank-card:hover { border-color: var(--line-strong); }
.bank-info { display: flex; align-items: center; gap: 12px; }
.bank-logo { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.badge-connected { background: rgba(78, 195, 138, 0.1); color: var(--pos); border: 1px solid rgba(78, 195, 138, 0.3); font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Troca anual/mensal: preço e período animam a cada mudança */
@keyframes priceSwap {
  0%   { opacity: 0; transform: translateY(8px) scale(0.96); filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.swap-anim { animation: priceSwap 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
.tier-price { display: inline-block; }

@keyframes badgePop {
  0%   { opacity: 0; transform: translateY(-6px) scale(0.82); }
  60%  { transform: translateY(0) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.economy-badge-card.visible { animation: badgePop 0.42s cubic-bezier(0.16, 1, 0.3, 1); }

/* ==========================================================================
   SUB-HEROS (Start / Pro / Black) — visão do app inteiro
   ========================================================================== */
.subhero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.subhero-grid + .subhero-grid { margin-top: 84px; }
.subhero-grid.reverse .subhero-media { order: 2; }

.subhero-media { display: flex; justify-content: center; }
.subhero-media .pcard { max-width: 400px; animation: none; } /* entra via observer, não no load */

.subhero-copy { display: flex; flex-direction: column; gap: 18px; }
.subhero-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 18ch; }
.subhero-copy p { font-size: 1.06rem; max-width: 46ch; }

.subhero-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.subhero-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-dim); font-size: 0.96rem; }
.subhero-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* Bloco de importação (sub-hero Start) */
.import-drop {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(246, 201, 69, 0.03);
}
.import-file { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); }
.import-status { font-size: 0.8rem; color: var(--pos); }
.import-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 4px; }
.import-fill { height: 100%; width: 0; background: var(--gold); border-radius: 3px; animation: importGrow 1.6s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes importGrow { to { width: 100%; } }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 992px) {
  .hero { padding: 130px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .hero-tag { align-self: center; }
  .hero-title { max-width: none; }
  .hero-desc { max-width: none; margin: 0 auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero-mockup { order: -1; }
  .pcard { max-width: 400px; }
  .simulator-container { grid-template-columns: 1fr; }
  /* Planos no mobile: carrossel horizontal com snap (em vez de empilhar) */
  .pricing-grid {
    grid-template-columns: none;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 24px;
    margin: 0 -24px;
    padding: 8px 24px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-grid .tier-card {
    flex: 0 0 84%;
    max-width: 360px;
    scroll-snap-align: center;
  }
  .subhero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .subhero-grid.reverse .subhero-media { order: -1; }
  .subhero-media { order: -1; }
  .subhero-copy .hero-tag { align-self: center; }
  .subhero-copy h2, .subhero-copy p { max-width: none; }
  .subhero-list { max-width: 340px; margin: 0 auto; text-align: left; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero-trust { flex-direction: column; gap: 12px; align-items: center; }
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .spark path.line { stroke-dashoffset: 0; }
  .spark path.fill { opacity: 1; }
}
