/* ============================================================
   Aurora Solar · css/style.css
   Design System + Componentes + Animações
   ============================================================ */

/* 1. FONTES: carregadas via <link> no index.html */

/* 2. VARIÁVEIS */
:root {
  --bg:        #071A1F;
  --bg-mid:    #0C262C;
  --bg-alt:    #0A2126;
  --border:    #1E4048;
  --border-dk: #173A41;
  --gold:      #E9B35A;
  --gold-lt:   #F5CD85;
  --gold-dim:  #C9A24A;
  --text:      #EEF1EC;
  --text-mid:  #C9D6D3;
  --muted:     #9DB3B2;
  --muted-dk:  #86A09F;
  --green:     #25D366;
  --r-sm:      14px;
  --r-md:      24px;
  --r-lg:      32px;
  --max-w:     1280px;
  --pad-x:     clamp(20px, 5vw, 64px);
  --pad-y:     clamp(80px, 10vw, 140px);
  --font-d:    'Sora', sans-serif;
  --font-b:    'Manrope', sans-serif;
  --font-m:    'IBM Plex Mono', monospace;
}

/* 3. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
}
p { text-wrap: pretty; }

/* Foco visível consistente (teclado) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

/* Pular para o conteúdo */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: 999px;
  background: var(--gold); color: #1A1206; font-weight: 700;
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; color: #1A1206; }

/* Números que mudam ao vivo não "dançam" */
.stat-val, .sim-bill-val, .sim-metric-val, .sim-save-val, .sim-extra-val, .sim-new-bill strong, .bill-amt, .ben-num, .depo-nota {
  font-variant-numeric: tabular-nums;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }
::selection { background: var(--gold); color: #1A1206; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* 4. PRELOADER */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-d); font-size: 22px; font-weight: 600; color: var(--text);
}
.preloader-sun {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFE0A6, var(--gold) 55%, #C2711E);
  box-shadow: 0 0 0 0 rgba(233,179,90,0.6);
  animation: pulse-sun 1.2s ease-out infinite;
}
@keyframes pulse-sun {
  0%   { box-shadow: 0 0 0 0 rgba(233,179,90,0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(233,179,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(233,179,90,0); }
}
.preloader-bar {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--gold);
  width: 0; animation: load-bar 1s ease-out forwards;
}
@keyframes load-bar { to { width: 100%; } }

/* 5. HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px var(--pad-x);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(7,26,31,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--border-dk);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--font-d); font-weight: 600;
  font-size: 19px; letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.logo:hover { color: var(--text); opacity: 0.85; }
.logo-sun {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFE0A6, var(--gold) 55%, #C2711E);
  box-shadow: 0 0 24px rgba(233,179,90,0.4);
}
.logo-dot { color: var(--gold); }
.nav-desktop {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
}
.nav-desktop a {
  color: var(--text-mid);
  position: relative; padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-desktop a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 1px; background: var(--gold);
  transition: right 0.25s ease;
}
.nav-desktop a:hover { color: var(--gold); }
.nav-desktop a:hover::after { right: 0; }
.btn-wa-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(233,179,90,0.4);
  color: var(--gold-lt); font-size: 14px; font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-wa-header:hover { background: var(--gold); color: #1A1206; border-color: var(--gold); }
.btn-wa-header .dot-green { width: 8px; height: 8px; border-radius: 50%; background: #5BD08A; }
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  flex: none; width: 44px; height: 44px; padding: 10px; margin-right: -10px; background: none; border: none;
}
.hamburger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav mobile */
.nav-mobile {
  display: flex; position: fixed; inset: 0; z-index: 99;
  background: var(--bg); flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; padding: 96px 24px 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.nav-mobile.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.nav-mobile a { font-family: var(--font-d); font-size: clamp(24px, 7vw, 30px); font-weight: 500; color: var(--text); padding: 4px 8px; }
.nav-mobile .btn-primary { font-family: var(--font-b); font-size: 16px; color: #1A1206; padding: 18px 28px; }
.nav-mobile a:hover { color: var(--gold); }

/* 6. HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--pad-x) clamp(40px,6vw,72px);
  overflow: hidden;
}
#canvas-hero {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
#canvas-hero.ready { opacity: 1; }
.hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  display: none;
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,26,31,0.95) 0%, rgba(7,26,31,0.7) 38%, rgba(7,26,31,0) 70%),
    linear-gradient(0deg, rgba(7,26,31,1) 0%, rgba(7,26,31,0) 40%);
}
.hero-content {
  position: relative; max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.hero-text { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(12,38,44,0.8); border: 1px solid var(--border);
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
  max-width: 100%; line-height: 1.4;
}
.hero-badge-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse-sun 2s ease-out infinite; }
.hero-h1 {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 28px 0 24px; text-wrap: balance;
}
.hero-h1 .gold { color: var(--gold); }
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6;
  color: var(--text-mid); max-width: 560px; margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; border-radius: 999px;
  background: var(--gold); color: #1A1206;
  font-weight: 700; font-size: 16px; font-family: var(--font-b);
  box-shadow: 0 10px 40px rgba(233,179,90,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--gold-lt); color: #1A1206; transform: translateY(-2px); box-shadow: 0 14px 50px rgba(233,179,90,0.5); }
.arrow { display: inline-block; transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
a:hover > .arrow { transform: translateX(4px); }
.btn-primary:active, .btn-primary-full:active, .btn-secondary:active, .btn-wa-header:active, .btn-wa-fixed:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 18px 26px; border-radius: 999px;
  border: 1px solid #2A525A; color: var(--text);
  font-weight: 600; font-size: 16px; font-family: var(--font-b);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr));
  gap: 1px; margin-top: clamp(48px,7vw,96px);
  background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.stat-item {
  background: rgba(7,26,31,0.9); padding: 22px 24px;
}
.stat-val {
  font-family: var(--font-d); font-size: 26px; font-weight: 500;
}
.stat-val.gold { color: var(--gold); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* 7. SECTION BASE */
.section { padding: var(--pad-y) var(--pad-x); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-dk); border-bottom: 1px solid var(--border-dk); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.label-mono {
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
  display: block;
}
.section-h2 {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-header {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 24px; margin-bottom: 56px;
}
.section-header-sub { max-width: 380px; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* GSAP reveal target: só esconde quando o JS está ativo (classe .js no <html>) */
.js .reveal { opacity: 0; }
.js.no-anim .reveal { opacity: 1; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* 8. COMO FUNCIONA */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr));
  gap: 16px;
}
.step-card {
  position: relative; padding: 28px 24px 32px;
  border-radius: var(--r-lg); background: var(--bg-mid);
  border: 1px solid var(--border-dk);
  transition: border-color 0.25s, transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.step-card:hover { border-color: rgba(233,179,90,0.4); transform: translateY(-3px); }
.step-card.highlight {
  background: linear-gradient(160deg, #3A2A12, var(--bg-mid) 70%);
  border-color: rgba(233,179,90,0.33);
}
.step-num {
  font-family: var(--font-d); font-size: 56px; font-weight: 300;
  color: var(--gold); line-height: 1;
}
.step-title {
  font-family: var(--font-d); font-size: 20px; font-weight: 600;
  margin: 28px 0 10px;
}
.step-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* 9. BENEFÍCIOS */
.beneficios-grid {
  display: flex; flex-wrap: wrap;
  gap: clamp(32px,5vw,72px); align-items: stretch;
}
.beneficios-card {
  flex: 1 1 420px; padding: clamp(28px,4vw,56px);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 100% 0%, #3B2A10 0%, var(--bg-mid) 55%);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.bill-chart { display: flex; align-items: flex-end; gap: 24px; height: 240px; }
.bill-bar-wrap { flex: 1; display: flex; flex-direction:column; justify-content: flex-end; height: 100%; gap: 12px; }
.bill-amt { font-family: var(--font-d); font-size: 22px; font-weight: 500; }
.bill-amt.gold { color: var(--gold); }
.bill-bar-before {
  flex: 1; border-radius: 16px 16px 4px 4px;
  background: repeating-linear-gradient(135deg, #2A4A51 0 8px, #22404A 8px 16px);
}
.bill-bar-after {
  height: 12%; border-radius: 16px 16px 4px 4px;
  background: var(--gold); box-shadow: 0 0 40px rgba(233,179,90,0.4);
}
.bill-label { font-size: 13px; color: var(--muted); }
.bill-note { margin: 0; font-size: 13px; color: var(--muted-dk); }
.beneficios-list {
  flex: 1 1 440px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr));
  gap: 28px 32px; align-content: center;
}
.ben-item { border-top: 1px solid var(--border); padding-top: 22px; }
.ben-num { font-family: var(--font-d); font-size: 40px; font-weight: 300; color: var(--text); }
.ben-num.gold { color: var(--gold); }
.ben-title { font-family: var(--font-d); font-size: 18px; margin: 10px 0 8px; font-weight: 600; }
.ben-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* 10. SIMULADOR */
#simulador { padding: var(--pad-y) var(--pad-x); background: var(--bg-alt); border-top: 1px solid var(--border-dk); border-bottom: 1px solid var(--border-dk); }
.sim-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sim-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.sim-input-card {
  flex: 1 1 380px; padding: clamp(24px,3.5vw,44px);
  border-radius: 28px; background: var(--bg); border: 1px solid var(--border);
}
.sim-result-card {
  flex: 1 1 420px; padding: clamp(24px,3.5vw,44px);
  border-radius: 28px;
  background: radial-gradient(100% 100% at 100% 0%, #4A3413 0%, #14282A 60%);
  border: 1px solid rgba(233,179,90,0.27);
  display: flex; flex-direction: column; gap: 28px;
}
.sim-bill-label { font-size: 15px; color: var(--text-mid); margin-bottom: 10px; }
.sim-bill-val {
  font-family: var(--font-d); font-size: clamp(48px,5.5vw,76px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
}
.sim-range {
  width: 100%; margin: 32px 0 10px;
  accent-color: var(--gold); height: 6px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: linear-gradient(to right, var(--gold) 0%, var(--border) 0%);
  border-radius: 3px;
}
.sim-range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(233,179,90,0.3);
  cursor: pointer; transition: box-shadow 0.2s;
}
.sim-range::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(233,179,90,0.2); }
.sim-range:active::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(233,179,90,0.22); }
.sim-range::-moz-range-thumb {
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(233,179,90,0.3); cursor: pointer;
}
.sim-range:focus-visible { outline: none; }
.sim-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.sim-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.sim-range-labels { display: flex; justify-content: space-between; font-family: var(--font-m); font-size: 12px; color: var(--muted-dk); }
.sim-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border-radius: 16px; overflow: hidden; margin-top: 36px;
}
.sim-metric { background: var(--bg-mid); padding: 18px; }
.sim-metric-label { font-size: 13px; color: var(--muted); }
.sim-metric-val { font-family: var(--font-d); font-size: 22px; margin-top: 6px; }
.sim-save-label { font-size: 15px; color: #E3CFA8; }
.sim-save-val {
  font-family: var(--font-d); font-size: clamp(48px,5.5vw,76px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--gold);
  margin-top: 8px;
}
.sim-new-bill { font-size: 15px; color: var(--text-mid); margin-top: 10px; }
.sim-new-bill strong { color: var(--text); }
.sim-extras {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px;
  border-top: 1px solid rgba(233,179,90,0.2); padding-top: 24px;
}
.sim-extra-label { font-size: 13px; color: #C9B895; }
.sim-extra-val { font-family: var(--font-d); font-size: 24px; margin-top: 6px; }
.sim-cta { margin-top: auto; }
.sim-note { margin: 0; font-size: 12px; color: #A8B8B5; line-height: 1.5; }

/* 11. SISTEMAS */
.sistemas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); gap: 20px;
}
.sistema-card {
  border-radius: 28px; overflow: hidden;
  background: var(--bg-mid); border: 1px solid var(--border-dk);
  display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.sistema-card:hover { border-color: rgba(233,179,90,0.4); transform: translateY(-4px); }
.sistema-img { aspect-ratio: 4/3; background-size: cover; background-repeat: no-repeat; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.sistema-card:hover .sistema-img { transform: scale(1.04); }
.sistema-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sistema-header-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.sistema-title { font-family: var(--font-d); font-size: 26px; font-weight: 500; }
.sistema-range { font-family: var(--font-m); font-size: 12px; color: var(--gold); }
.sistema-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }
.sistema-link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--gold); }
.sistema-link:hover { color: var(--gold-lt); }

/* 12. PROJETOS */
.projetos-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.projetos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr));
  grid-auto-rows: 260px; gap: 16px;
}
.projeto-card {
  border-radius: 24px;
  background-size: cover; background-repeat: no-repeat;
  border: 1px solid var(--border-dk);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; overflow: hidden; position: relative;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.25s;
}
.projeto-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,26,31,0.95) 0%, rgba(7,26,31,0) 55%);
}
.projeto-card:hover { transform: translateY(-4px); border-color: rgba(233,179,90,0.35); }
.projeto-card.span2 { grid-row: span 2; }
.projeto-info { position: relative; z-index: 1; }
.projeto-local { font-family: var(--font-d); font-size: 20px; font-weight: 500; }
.projeto-kwp { font-size: 14px; color: var(--gold); margin-top: 4px; }

/* 13. DEPOIMENTOS */
.depo-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.depo-rating { display: flex; align-items: center; gap: 14px; }
.depo-nota { font-family: var(--font-d); font-size: 44px; font-weight: 500; color: var(--gold); }
.depo-stars { font-size: 14px; color: var(--muted); line-height: 1.4; }
.depo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 20px; }
.depo-card {
  margin: 0; padding: clamp(24px, 3vw, 32px); border-radius: 24px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 28px;
}
.depo-quote {
  margin: 0; font-family: var(--font-d); font-size: 18px;
  line-height: 1.55; font-weight: 400; color: #E3E9E6;
  flex: 1;
}
.depo-caption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.depo-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background-size: cover; background-repeat: no-repeat;
  border: 1px solid var(--border);
}
.depo-name { display: block; font-size: 15px; font-weight: 600; }
.depo-detail { font-size: 13px; color: var(--muted); }

/* 14. FINANCIAMENTO */
.fin-grid { display: flex; flex-wrap: wrap; gap: clamp(32px,5vw,72px); }
.fin-copy { flex: 1 1 380px; }
.fin-copy .section-h2 { margin-bottom: 24px; }
.fin-copy p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 32px; max-width: 460px; }
.fin-table {
  flex: 1 1 460px; border-radius: 28px;
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column;
}
.fin-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 20px; padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px);
  background: var(--bg-mid); border-bottom: 1px solid var(--border);
}
.fin-row:last-child { border-bottom: none; }
.fin-row-title { font-family: var(--font-d); font-size: 20px; font-weight: 500; }
.fin-row-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.fin-tag { font-family: var(--font-d); font-size: 24px; color: var(--gold); white-space: nowrap; }

/* 15. FAQ */
.faq-grid { display: flex; flex-wrap: wrap; gap: clamp(32px,5vw,72px); }
.faq-side { flex: 1 1 300px; }
.faq-list { flex: 2 1 520px; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-h { margin: 0; font: inherit; }
.faq-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq-btn {
  all: unset; cursor: pointer; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 24px 0;
  font-family: var(--font-d); font-size: clamp(16px,1.5vw,19px);
  font-weight: 500; color: var(--text); min-height: 44px;
}
.faq-btn > span:first-child { transition: color 0.2s; }
.faq-btn:hover > span:first-child { color: var(--gold-lt); }
.faq-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #2A525A; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 20px; font-weight: 300;
  transition: border-color 0.2s, background 0.2s, transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(180deg); border-color: rgba(233,179,90,0.5); }
.faq-btn:hover .faq-icon { border-color: var(--gold); background: rgba(233,179,90,0.08); }
.faq-answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(.2,.8,.2,1);
}
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer > p { overflow: hidden; min-height: 0; transition: padding 0.35s cubic-bezier(.2,.8,.2,1); }
.faq-answer.open > p { padding-bottom: 26px; }
.faq-answer p { margin: 0; max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* 16. CONTATO */
.contato-box {
  border-radius: 36px; overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-wrap: wrap;
  background: radial-gradient(100% 120% at 0% 0%, #3A2A12 0%, var(--bg-mid) 50%);
}
.contato-form { flex: 1 1 420px; padding: clamp(28px,5vw,64px); display: flex; flex-direction: column; gap: 24px; }
.contato-form .section-h2 { font-size: clamp(28px,3.5vw,48px); }
.contato-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; }
.contato-input {
  min-height: 52px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid #2A525A;
  background: var(--bg); color: var(--text);
  font-family: var(--font-b); font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.contato-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,179,90,0.18); }
.contato-input:focus-visible { outline: none; }
.contato-input::placeholder { color: var(--muted); }
.contato-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; padding-top: 12px; border-top: 1px solid #2A525A; }
.contato-info-label { font-size: 13px; color: var(--muted); }
.contato-info-val { font-size: 16px; margin-top: 4px; }
.contato-map {
  flex: 1 1 380px; min-height: 380px; position: relative; background: var(--bg-mid);
}
.contato-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(0.92) hue-rotate(160deg) contrast(0.9);
}

/* 17. FOOTER */
.site-footer {
  padding: 40px var(--pad-x) 110px;
  border-top: 1px solid var(--border-dk);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 20px; font-size: 14px; color: var(--muted-dk);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* 18. BOTÃO WHATSAPP FIXO */
.btn-wa-fixed {
  position: fixed; right: 20px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  background: var(--green); color: #062B14;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-wa-fixed:hover { background: #3BE07A; color: #062B14; transform: translateY(-2px); }
.btn-wa-fixed-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: #062B14; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex: none;
}
.btn-wa-fixed-icon svg { width: 15px; height: 15px; fill: currentColor; }

/* 19. BOTÃO PRIMÁRIO (fullwidth variante) */
.btn-primary-full {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 18px 24px; border-radius: 999px;
  background: var(--gold); color: #1A1206;
  font-weight: 700; font-size: 16px; font-family: var(--font-b);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary-full:hover { background: var(--gold-lt); color: #1A1206; transform: translateY(-2px); }

/* 20. RESPONSIVIDADE */
@media (max-width: 1140px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .btn-wa-header { margin-left: auto; }
  .header-inner { gap: 12px; }
}
@media (max-width: 768px) {
  .hero { padding-top: 116px; align-items: center; }
  .hero-badge { font-size: 11px; letter-spacing: 0.05em; border-radius: 14px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-ctas > a { flex: 1 1 auto; justify-content: center; text-align: center; }
  .btn-primary, .btn-secondary { padding: 16px 20px; font-size: 15px; }
  .btn-primary { gap: 10px; }
  .section-header { margin-bottom: 40px; }
  .step-card { padding: 24px 22px 26px; }
  .step-num { font-size: 44px; }
  .step-title { margin-top: 20px; }
  .bill-chart { height: 200px; }
  .fin-tag { font-size: 20px; }
  .site-footer { padding-bottom: 96px; }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7,26,31,0.98) 0%, rgba(7,26,31,0.7) 50%, rgba(7,26,31,0.4) 100%);
  }
  .projetos-grid { grid-auto-rows: 200px; }
  .projeto-card.span2 { grid-row: span 1; }
  .btn-wa-fixed .btn-wa-fixed-text { display: none; }
  .btn-wa-fixed { padding: 14px 16px; }
  .contato-map { min-height: 280px; }
}
@media (max-width: 480px) {
  .btn-wa-header { display: none; }
  .sim-metric { padding: 14px; }
  .sim-metric-val { font-size: 19px; white-space: nowrap; }
  .sim-extra-val { font-size: 21px; }
  .fin-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item { padding: 18px 16px; }
  .stat-val { font-size: 19px; overflow-wrap: anywhere; }
  .stat-label { font-size: 13px; }
}

@media (hover: none) {
  .sistema-card:hover, .projeto-card:hover, .step-card:hover { transform: none; }
  .sistema-card:hover .sistema-img { transform: none; }
}

/* 21. PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #canvas-hero { opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* 22. SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-dk); }
