/* Exact Partners — site institucional
   Conceito: verde-floresta profundo da marca + ouro do selo de 10 anos.
   Hero escuro com linhas de "fluxo de caixa" animadas; seções claras com
   tabelas e números reais (alíquotas, 120% de lastro, anos de mercado). */
:root {
  --green-950: #071a14;
  --green-900: #0b241c;
  --green-800: #113428;
  --green-700: #1b4a3c;
  --green-600: #2a6352;
  --gold: #c9973f;
  --gold-light: #e8c47f;
  --gold-deep: #9c6f22;
  --paper: #f3f6f2;
  --paper-2: #e7ede8;
  --white: #ffffff;
  --ink: #10201a;
  --muted: #56685f;
  --line: rgba(16, 32, 26, 0.12);
  --line-dark: rgba(232, 196, 127, 0.18);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--green-950);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
em.serif, .serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: calc(var(--maxw) + 64px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 2vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 2vw);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold-light); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 1rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s, box-shadow .35s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--green-950); box-shadow: 0 10px 30px -10px rgba(201,151,63,.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(201,151,63,.75); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: var(--white); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-dark { background: var(--green-800); color: var(--white); }
.btn-dark:hover { background: var(--green-700); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding-block: 1.1rem;
}
.header.scrolled {
  background: rgba(7, 26, 20, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
  padding-block: .7rem;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-deep));
  color: var(--green-950); font: 800 1.15rem/1 var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font: 700 1.15rem/1 var(--font-display); letter-spacing: .2em; }
.logo-text small { font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-light); margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a.link {
  color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; font-weight: 500;
  position: relative; padding-block: .3rem; transition: color .3s;
}
.nav a.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--gold-light); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a.link:hover, .nav a.link.active { color: var(--white); }
.nav a.link:hover::after, .nav a.link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-client { display: none; }
.btn-client { padding: .75rem 1.2rem; font-size: .88rem; }
.btn-client svg { width: 16px; height: 16px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.04); color: var(--white); cursor: pointer; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(201,151,63,.16), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(42,99,82,.55), transparent 60%),
    var(--green-950);
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  padding-top: calc(env(safe-area-inset-top, 0px) + 8.5rem);
  padding-bottom: 5rem;
}
#flow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }

.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .85fr; gap: 3rem; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; margin-top: 1.4rem;
}
.hero h1 .serif { color: var(--gold-light); font-size: 1.08em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-lead { margin-top: 1.6rem; max-width: 56ch; font-size: 1.12rem; color: rgba(255,255,255,.74); animation: fade 1s .45s var(--ease) both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.3rem; animation: fade 1s .6s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-badge { position: relative; justify-self: center; display: grid; place-items: center; animation: fade 1.2s .5s var(--ease) both; }
.seal-ring {
  position: relative; width: min(360px, 78vw); aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(232,196,127,.18), rgba(7,26,20,0) 62%);
}
.seal-ring::before, .seal-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(232,196,127,.35);
  animation: spin 40s linear infinite;
}
.seal-ring::after { inset: 9%; border-style: solid; border-color: rgba(232,196,127,.14); animation-duration: 28s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-disc { width: 74%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffffff, #e9efe9 70%); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 6px rgba(201,151,63,.35); animation: float 6s ease-in-out infinite; }
.seal-ring img { width: 70%; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  background: rgba(17, 52, 40, .78); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .65rem .9rem; border-radius: 14px; font-size: .82rem; color: rgba(255,255,255,.85);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  animation: float 7s ease-in-out infinite;
}
.chip b { font-family: var(--font-display); color: var(--gold-light); font-size: 1.05rem; }
.chip-a { top: 6%; left: -8%; }
.chip-b { bottom: 10%; right: -6%; animation-delay: -3s; }

.hero-strip {
  position: relative; z-index: 2; margin-top: 4.5rem; border-top: 1px solid var(--line-dark); padding-top: 2.2rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.stat .num { font: 600 clamp(2rem, 3.6vw, 2.9rem)/1 var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat .num sup, .stat .num small { font-size: .5em; color: var(--gold-light); margin-left: .1em; }
.stat p { margin-top: .6rem; font-size: .88rem; color: rgba(255,255,255,.62); max-width: 24ch; }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--green-950); overflow: hidden; padding-block: .95rem; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 600 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.marquee span::after { content: "✦"; font-size: .8rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; margin-top: 1rem; }
.section-head h2 .serif { color: var(--gold-deep); }
.on-dark .section-head h2 .serif { color: var(--gold-light); }
.section-head p { color: var(--muted); font-size: 1.06rem; max-width: 58ch; }
.on-dark { background: var(--green-900); color: var(--white); }
.on-dark .section-head p { color: rgba(255,255,255,.68); }

/* Quem somos */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.about-text { display: grid; gap: 1.2rem; color: var(--muted); font-size: 1.04rem; min-width: 0; }
.about-text p:first-child { color: var(--ink); font-size: 1.22rem; line-height: 1.55; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; min-width: 0; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline .progress { position: absolute; left: 19px; top: 8px; width: 1px; height: 0; background: var(--gold); transition: height 1.6s var(--ease); }
.timeline li { position: relative; padding: 0 0 2.2rem 3.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: 10px; top: 4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--paper);
}
.timeline .year { font: 600 1.6rem/1 var(--font-display); color: var(--green-700); letter-spacing: -.02em; }
.timeline h3 { font-size: 1.05rem; margin-top: .45rem; font-weight: 600; }
.timeline p { color: var(--muted); margin-top: .35rem; font-size: .96rem; }

.pillars { margin-top: 5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pillar {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.pillar::before {
  content: ""; position: absolute; inset: auto -40% -60% -40%; height: 120%;
  background: radial-gradient(closest-side, rgba(201,151,63,.18), transparent); opacity: 0; transition: opacity .5s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(11,36,28,.45); border-color: rgba(201,151,63,.45); }
.pillar:hover::before { opacity: 1; }
.pillar .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-800); color: var(--gold-light); }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.15rem; margin-top: 1.3rem; position: relative; }
.pillar p { color: var(--muted); margin-top: .6rem; font-size: .95rem; position: relative; }

/* Soluções / recebíveis */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split > * { min-width: 0; }
.lead-dark { font-size: 1.2rem; color: rgba(255,255,255,.88); line-height: 1.6; }
.text-dark { color: rgba(255,255,255,.66); margin-top: 1.1rem; }
.callout {
  margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,196,127,.12), rgba(232,196,127,.02)); border: 1px solid var(--line-dark);
}
.callout strong { display: block; font-family: var(--font-display); color: var(--gold-light); font-weight: 600; margin-bottom: .35rem; }
.callout p { color: rgba(255,255,255,.75); font-size: .98rem; }
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.benefit {
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: 16px; padding: 1.3rem;
  transition: background .4s, transform .4s var(--ease), border-color .4s;
}
.benefit:hover { background: rgba(232,196,127,.08); border-color: rgba(232,196,127,.4); transform: translateY(-4px); }
.benefit svg { width: 26px; height: 26px; color: var(--gold-light); }
.benefit h3 { font-size: 1rem; font-weight: 600; margin-top: .9rem; line-height: 1.35; }
.benefits-title { font: 600 .82rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1.1rem; }

/* Debêntures */
.deb-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; }
.deb-intro > * { min-width: 0; }
.deb-intro .big { font-size: 1.28rem; line-height: 1.55; }
.deb-intro .big strong { color: var(--green-700); }
.goals { display: grid; gap: .7rem; margin-top: 1.8rem; }
.goal { display: flex; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 1rem 1.2rem; border-radius: 14px; }
.goal span { font: 600 .85rem/1 var(--font-display); color: var(--gold-deep); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,151,63,.14); flex: none; }
.goal p { font-weight: 500; }
.note-card {
  background: var(--green-900); color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 2rem;
  position: relative; overflow: hidden;
}
.note-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid var(--line-dark); }
.note-card h3 { color: var(--white); font-size: 1.25rem; }
.note-card p { margin-top: .9rem; font-size: .98rem; }

.flow {
  margin-top: 4.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.flow-step { padding: 2rem 1.6rem; position: relative; border-right: 1px solid var(--line); }
.flow-step:last-child { border-right: 0; }
.flow-step .n { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; color: var(--gold-deep); text-transform: uppercase; }
.flow-step h3 { font-size: 1.12rem; margin-top: .9rem; }
.flow-step p { color: var(--muted); font-size: .93rem; margin-top: .55rem; }
.flow-step .arrow {
  position: absolute; right: -15px; top: 2rem; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--green-950); display: grid; place-items: center;
}
.flow-step .arrow svg { width: 15px; height: 15px; }
.flow-step:last-child .arrow { display: none; }
.flow-step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1s var(--ease);
}
.flow.in .flow-step::before { width: 100%; }
.flow.in .flow-step:nth-child(2)::before { transition-delay: .25s; }
.flow.in .flow-step:nth-child(3)::before { transition-delay: .5s; }
.flow.in .flow-step:nth-child(4)::before { transition-delay: .75s; }

.lastro {
  margin-top: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center;
  background: linear-gradient(120deg, var(--green-800), var(--green-950)); color: var(--white);
  border-radius: 24px; padding: clamp(1.8rem, 4vw, 3rem); overflow: hidden; position: relative;
}
.lastro > * { min-width: 0; }
.lastro-gauge { position: relative; width: 190px; height: 190px; max-width: 100%; }
.lastro-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lastro-gauge .track { stroke: rgba(255,255,255,.1); }
.lastro-gauge .bar { stroke: var(--gold-light); stroke-linecap: round; transition: stroke-dashoffset 2s var(--ease); }
.lastro-gauge .bar2 { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 2s .9s var(--ease); }
.lastro-gauge .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.lastro-gauge .val b { font: 600 2.6rem/1 var(--font-display); display: block; font-variant-numeric: tabular-nums; }
.lastro-gauge .val small { font-size: .72rem; color: rgba(255,255,255,.6); letter-spacing: .12em; text-transform: uppercase; }
.lastro h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lastro h3 .serif { color: var(--gold-light); }
.lastro p { color: rgba(255,255,255,.72); margin-top: .8rem; max-width: 60ch; }

/* Rendimento */
.tabs { display: inline-flex; gap: .4rem; padding: .4rem; background: var(--paper-2); border-radius: 999px; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; padding: .8rem 1.3rem; border-radius: 999px; cursor: pointer;
  font: 600 .93rem/1 var(--font-body); color: var(--muted); transition: background .35s, color .35s;
}
.tab[aria-selected="true"] { background: var(--green-800); color: var(--white); }
.tab:hover:not([aria-selected="true"]) { color: var(--ink); }
.panel-wrap { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.panel-wrap > * { min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.6rem, 3.5vw, 2.6rem); animation: fade .6s var(--ease) both; }
.panel .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); background: rgba(201,151,63,.12); padding: .45rem .7rem; border-radius: 8px; }
.panel h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.1rem; }
.panel p { color: var(--muted); margin-top: .9rem; font-size: 1.04rem; }
.panel .idx { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.panel .idx span { font: 600 .85rem/1 var(--font-display); padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--line); color: var(--green-700); }
.viz { background: var(--green-900); border-radius: 24px; padding: 1.8rem; display: flex; flex-direction: column; color: var(--white); }
.viz .viz-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.viz canvas { width: 100%; flex: 1; min-height: 220px; margin-top: 1rem; }
.viz .legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: rgba(255,255,255,.7); margin-top: .8rem; }
.viz .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: middle; }

/* Tributação */
.tax { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.tax > * { min-width: 0; }
.tax-table { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.tax-table .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 4.5rem; gap: 1rem; align-items: center; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); }
.tax-table .row:last-child { border-bottom: 0; }
.tax-table .head { background: var(--green-800); color: rgba(255,255,255,.8); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.tax-table .prazo { font-weight: 500; }
.tax-table .meter { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.tax-table .meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green-600), var(--gold)); transition: width 1.4s var(--ease); }
.tax-table .rate { font: 600 1.15rem/1 var(--font-display); text-align: right; font-variant-numeric: tabular-nums; color: var(--green-700); }
.tax-foot { padding: 1rem 1.5rem; font-size: .86rem; color: var(--muted); background: var(--paper); }
.declare { margin-top: 2rem; display: grid; gap: 1rem; }
.declare-card { display: flex; gap: 1rem; padding: 1.3rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.declare-card svg { flex: none; width: 26px; height: 26px; color: var(--gold-deep); margin-top: .15rem; }
.declare-card h3 { font-size: 1.02rem; }
.declare-card p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(2.2rem, 6vw, 4.5rem);
  background: radial-gradient(800px 400px at 100% 0%, rgba(232,196,127,.28), transparent 60%), linear-gradient(135deg, var(--green-800), var(--green-950));
  color: var(--white); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: center;
}
.cta > * { min-width: 0; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; }
.cta h2 .serif { color: var(--gold-light); }
.cta p { color: rgba(255,255,255,.72); margin-top: 1rem; max-width: 52ch; font-size: 1.06rem; }
.cta-actions { display: grid; gap: .8rem; justify-items: start; }
.cta-actions .btn { width: 100%; max-width: 320px; }
.cta img { position: absolute; right: -30px; bottom: -40px; width: 230px; opacity: .08; pointer-events: none; }

/* Contato + footer */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.contact-item { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: var(--white); min-width: 0; }
.contact-item svg { width: 24px; height: 24px; color: var(--gold-deep); }
.contact-item h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; font-family: var(--font-body); font-weight: 600; }
.contact-item p, .contact-item a { margin-top: .45rem; font-weight: 500; font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-item a { text-decoration: none; color: var(--green-700); }
.contact-item a:hover { color: var(--gold-deep); }

.footer { background: var(--green-950); color: rgba(255,255,255,.6); padding-top: 4.5rem; padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); margin-top: clamp(4rem, 8vw, 6rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-top > * { min-width: 0; }
.footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--gold-light); }
.footer .about { font-size: .94rem; margin-top: 1.2rem; max-width: 36ch; }
.footer .seal-small { width: 120px; margin-top: 1.5rem; background: #f3f6f2; border-radius: 50%; padding: 12px; }
.footer-bottom { padding-top: 1.8rem; display: grid; gap: 1rem; font-size: .8rem; }
.footer-bottom .legal { color: rgba(255,255,255,.42); max-width: 110ch; line-height: 1.6; }
.footer-bottom .row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* Reveal: conteúdo visível por padrão; só anima o que está abaixo da dobra */
.reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal-ready .reveal[data-delay="1"] { transition-delay: .1s; }
.reveal-ready .reveal[data-delay="2"] { transition-delay: .2s; }
.reveal-ready .reveal[data-delay="3"] { transition-delay: .3s; }

/* Cursor glow nos cards */
.glow { --mx: 50%; --my: 50%; }
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(232,196,127,.16), transparent 60%);
}
.glow:hover::after { opacity: 1; }
.benefit, .flow-step, .declare-card, .contact-item { position: relative; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1.2rem; }
  .nav a.link { font-size: .86rem; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow-step:nth-child(2) .arrow { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: rgba(7,26,20,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
    padding: calc(env(safe-area-inset-top, 0px) + 5rem) max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px));
  }
  .nav a.link { font: 600 1.6rem/1.2 var(--font-display); color: var(--white); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav-client { display: inline-flex; margin-top: 1rem; }
  .menu-open { overflow: hidden; }
  .header-actions .btn-client .label-long { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-badge { order: -1; justify-self: start; }
  .seal-ring { width: 200px; }
  .chip { display: none; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .section-head, .about-grid, .split, .deb-intro, .tax, .panel-wrap, .cta { grid-template-columns: 1fr; }
  .section-head { gap: 1.2rem; }
  .cta-actions .btn { max-width: none; }
}
@media (max-width: 620px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 6.5rem); }
  .header-actions .nav-client { display: none; }
.btn-client { padding: .7rem .9rem; }
  .pillars, .benefits, .contact { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
  .flow-step .arrow { display: none; }
  .lastro { grid-template-columns: 1fr; }
  .lastro-gauge { width: 160px; height: 160px; }
  .tax-table .row { grid-template-columns: minmax(0, 1fr) 4rem; padding: 1rem 1.1rem; }
  .tax-table .meter { grid-column: 1 / -1; grid-row: 2; }
  .tax-table .head .meter-h { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .logo-text small { letter-spacing: .3em; }
}
@media (max-width: 380px) {
  .header-actions .btn-client { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* ===== Logos oficiais ===== */
.logo-img { height: 40px; width: auto; transition: height .4s var(--ease); }
.header.scrolled .logo-img { height: 34px; }
.footer .logo-img { height: 44px; }
@media (max-width: 620px) { .logo-img { height: 32px; } .header.scrolled .logo-img { height: 30px; } }
.contact-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.contact-brand img { width: 200px; height: auto; }
.contact-brand p { font: 600 1.05rem/1.3 var(--font-display); color: var(--green-700); }

/* ===== Interações de rolagem ===== */
.scroll-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); box-shadow: 0 0 12px rgba(232,196,127,.6); }
[data-hero-copy], [data-hero-badge] { will-change: transform, opacity; }
.seal-disc { rotate: var(--seal-rot, 0deg); }
.js-marquee .marquee-track { animation: none; will-change: transform; }
.scrub .w { opacity: .22; transition: opacity .35s ease; }
.scrub .w.on { opacity: 1; }
[data-parallax-group] > * { translate: 0 var(--py, 0px); }
#ctaBox { scale: var(--cta-scale, 1); transform-origin: 50% 100%; }
.section-head h2 { translate: var(--hx, 0px) 0; }
@media (prefers-reduced-motion: reduce) {
  .scrub .w { opacity: 1; }
  [data-parallax-group] > *, .section-head h2 { translate: none; }
  #ctaBox { scale: 1; }
}
main { overflow-x: clip; }
@media (max-width: 620px) { .section-head h2 { translate: calc(var(--hx, 0px) * .4) 0; } }
.seal-ring img, .footer .seal-small, .cta img { height: auto; }

/* ===== Grade de quadradinhos em todo o site, com brilho no mouse ===== */
.has-grid { position: relative; }
.has-grid > *:not(.gridfx):not(canvas):not(.bg-chart) { position: relative; z-index: 1; }
.gridfx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gridfx i { position: absolute; inset: 0; display: block; background-size: 64px 64px; background-position: center top; }
.gridfx .g-base {
  --gl: rgba(16, 32, 26, .055);
  background-image: linear-gradient(var(--gl) 1px, transparent 1px), linear-gradient(90deg, var(--gl) 1px, transparent 1px);
}
.gridfx .g-hot {
  --gh: rgba(201, 151, 63, .75);
  background-image: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), rgba(232,196,127,.16), transparent 70%),
    linear-gradient(var(--gh) 1px, transparent 1px), linear-gradient(90deg, var(--gh) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-position: 0 0, center top, center top;
  -webkit-mask-image: radial-gradient(220px circle at var(--gx, -999px) var(--gy, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
  mask-image: radial-gradient(220px circle at var(--gx, -999px) var(--gy, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
  opacity: 0; transition: opacity .45s ease;
}
.has-grid.hot .gridfx .g-hot { opacity: 1; }
.hero .gridfx .g-base, .on-dark .gridfx .g-base, .footer .gridfx .g-base { --gl: rgba(255,255,255,.04); }
.hero .gridfx .g-base { -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, rgba(0,0,0,.35) 80%); mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, rgba(0,0,0,.35) 80%); }
.hero .gridfx .g-hot, .on-dark .gridfx .g-hot, .footer .gridfx .g-hot { --gh: rgba(232,196,127,.6); }
@media (hover: none) { .gridfx .g-hot { display: none; } }

/* ===== Gráficos de linha decorativos ===== */
.bg-chart { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.bg-chart .area { opacity: 0; transition: opacity 1.2s ease; }
.bg-chart.drawn .area { opacity: 1; }
.bg-chart .tip { opacity: 0; transition: opacity .4s; }
.bg-chart.drawn .tip { opacity: 1; }
.bg-chart .tip-pulse { transform-box: fill-box; transform-origin: center; animation: tipPulse 2s ease-out infinite; }
@keyframes tipPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
#ctaBox .bg-chart { height: 42%; }
#recebiveis .bg-chart { height: 40%; }
#contato { padding-bottom: clamp(4rem, 8vw, 6rem); }
.footer { margin-top: 0 !important; }
.pillar .spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64px; pointer-events: none; }
.pillar .spark path.l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.pillar .spark path.a { opacity: 0; transition: opacity .8s ease .3s; }
.pillar:hover .spark path.l, .pillar.spark-on .spark path.l { stroke-dashoffset: 0; }
.pillar:hover .spark path.a, .pillar.spark-on .spark path.a { opacity: 1; }
.pillar { padding-bottom: 3.6rem; }
.tax-chart { padding: 1.2rem 1.5rem 1rem; border-top: 1px solid var(--line); }
.tax-chart-head { display: flex; justify-content: space-between; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
#taxChart { width: 100%; height: auto; margin-top: .6rem; overflow: visible; display: block; }
#taxChart text { font: 600 13px var(--font-body); fill: var(--muted); }
#taxChart .val { fill: var(--green-700); font-family: var(--font-display); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .bg-chart .area, .bg-chart .tip { opacity: 1; } }
#ctaBox > *:not(.bg-chart):not(img) { position: relative; z-index: 1; }
/* Logos sobre fundo liso, sem as linhas da grade passando por trás */
.contact-brand img { background: var(--paper); padding: 10px 14px; box-sizing: content-box; margin: -10px -14px; }
.footer .logo { background: var(--green-950); padding: 10px 14px; margin: -10px -14px; border-radius: 8px; position: relative; z-index: 1; }
