/* =========================================================
   Imersão Arroba Lucrativa — NaFazenda
   Mobile-first. Sem dependências externas.
   ========================================================= */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #080F0A;
  --bg-2: #142017;
  --bg-3: #0D1710;
  --line: rgba(182, 193, 183, .14);
  --green: #98F902;        /* verde exato da logo oficial (versão escura) */
  --green-ui: #83CF24;     /* verde institucional da paleta */
  --green-dark: #10260E;
  --white: #FFFFFF;
  --muted: #B6C1B7;
  --error: #FF8A7A;

  --f-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.hl { color: var(--green); }
.br-md { display: none; }
@media (min-width: 640px) { .br-md { display: inline; } }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Tipografia base ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow:not(.eyebrow--pill)::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.eyebrow--pill {
  color: var(--white);
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(152, 249, 2, .35);
  background: rgba(8, 15, 10, .55);
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .14em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(152,249,2,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(152,249,2,.55); } 70% { box-shadow: 0 0 0 8px rgba(152,249,2,0); } 100% { box-shadow: 0 0 0 0 rgba(152,249,2,0); } }

.h2 {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 6.4vw, 3.4rem); line-height: .98; letter-spacing: .005em;
  text-wrap: balance;
}

/* ---------- Botões ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 14px 28px;
  border: 0; border-radius: 8px; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.25;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--green); color: var(--bg); }
.btn--primary:hover { background: #ADFF2E; transform: translateY(-2px); box-shadow: 0 10px 28px -12px rgba(152,249,2,.65); }
.btn--primary:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn--lg { --h: 62px; padding-inline: 36px; font-size: .95rem; }
.btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn__spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(8,15,10,.3); border-top-color: var(--bg); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .btn__label { opacity: .6; }
.btn.is-loading .btn__spinner { display: inline-block; }

/* ---------- Barra superior / contador ---------- */
.topbar {
  position: relative; z-index: 5;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(152, 249, 2, .28);
  min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: center;
  padding: 8px var(--gutter);
}
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 10px 22px; flex-wrap: wrap; }
.topbar__label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.cd { display: flex; align-items: center; gap: 6px; }
.cd__item { display: flex; align-items: baseline; gap: 4px; min-width: 52px; justify-content: center; }
.cd__num { font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.cd__unit { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd__sep { color: rgba(182,193,183,.4); font-weight: 700; }
.topbar__live { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; text-align: center; }
.topbar__live[hidden], .topbar__inner[hidden] { display: none; }

/* ---------- DOBRA 1 — HERO ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.hero__bg { position: absolute; inset: 0 0 auto 0; height: 118vw; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% top; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,15,10,0) 38%, rgba(8,15,10,.78) 72%, var(--bg) 98%);
}
.hero__inner { padding-top: 74vw; padding-bottom: 56px; }
.hero__content { max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; }
.hero__logo { width: min(100%, 420px); height: auto; margin: 22px 0 22px; }
.hero__title {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.95rem, 9.7vw, 4.6rem); line-height: .92; letter-spacing: .005em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__sub { margin-top: 20px; color: var(--muted); font-size: .98rem; display: grid; gap: 12px; }
.hero__sub p:first-child { color: #DDE5DD; }

.when { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 18px 14px 14px; border-left: 3px solid var(--green); background: rgba(20,32,23,.7); border-radius: 0 var(--radius) var(--radius) 0; }
.when__icon { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.when__date { font-family: var(--f-head); font-weight: 800; font-size: 1.55rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.when__time { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* Formulário */
.form-card {
  width: 100%; margin-top: 26px; padding: 22px 18px;
  background: rgba(13, 23, 16, .82);
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  scroll-margin-top: 20px;
}
.form-card__lead { font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.lead-form { display: grid; gap: 12px; }
.field { position: relative; }
.field__icon { position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .15s; }
.field input {
  width: 100%; height: 54px; padding: 0 16px 0 46px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(182,193,183,.28);
  border-radius: 8px;
  color: var(--white); font-size: 1rem;
  transition: border-color .15s, background-color .15s;
}
.field input::placeholder { color: #8E9A90; }
.field input:hover { border-color: rgba(182,193,183,.5); }
.field input:focus { outline: none; border-color: var(--green); background: rgba(152,249,2,.05); }
.field input:focus + .field__err, .field:focus-within .field__icon { stroke: var(--green); }
.field.is-invalid input { border-color: var(--error); }
.field.is-invalid .field__icon { stroke: var(--error); }
.field__err { font-size: .78rem; color: var(--error); margin-top: 6px; min-height: 0; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { margin-top: 4px; }
.form-status { font-size: .86rem; line-height: 1.45; padding: 0; border-radius: 8px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #FFD1C9; background: rgba(255,138,122,.1); border: 1px solid rgba(255,138,122,.35); padding: 10px 12px; }
.form-status.is-success { color: var(--white); background: rgba(152,249,2,.1); border: 1px solid rgba(152,249,2,.4); padding: 10px 12px; }
.microcopy { display: flex; gap: 8px; align-items: flex-start; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.microcopy svg { width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- DOBRA 2 — CONTEÚDO ---------- */
.content { background: var(--bg-2); padding: 72px 0 80px; border-top: 1px solid var(--line); position: relative; }
.content::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,10,.35), transparent 30%); pointer-events: none; }
.content > .container { position: relative; }
.section-head { display: grid; gap: 18px; max-width: 920px; }
.section-head__text { display: grid; gap: 12px; color: var(--muted); max-width: 720px; }

.cards { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: c; }
.card {
  display: flex; flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(152,249,2,.45); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0F1B12; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13,23,16,.85)); pointer-events: none; }
.card__fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px;
  background:
    repeating-linear-gradient(-45deg, rgba(152,249,2,.04) 0 1px, transparent 1px 14px),
    radial-gradient(120% 90% at 100% 0%, rgba(152,249,2,.12), transparent 60%),
    #0F1B12;
}
.card__bignum { font-family: var(--f-head); font-weight: 800; font-size: 5.5rem; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(152,249,2,.55); }
.card__fallback svg { width: 44px; height: 44px; fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; align-self: flex-start; }
.card__body { padding: 20px 20px 24px; display: grid; gap: 10px; align-content: start; }
.card__tag { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.card__title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; letter-spacing: .01em; }
.card__text { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.content__close { margin-top: 56px; display: grid; justify-items: center; gap: 26px; text-align: center; }
.content__statement { max-width: 760px; font-size: clamp(1.1rem, 3.6vw, 1.45rem); line-height: 1.45; color: #DDE5DD; text-wrap: balance; }
.content__statement strong { color: var(--white); font-weight: 700; }

/* ---------- DOBRA 3 — ESPECIALISTA ---------- */
.expert { background: var(--bg); padding: 72px 0 80px; }
.expert__grid { display: grid; gap: 36px; align-items: center; }
.expert__photo { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 852 / 921; max-width: 560px; width: 100%; margin-inline: auto; }
.expert__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.expert__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8,15,10,.7)); pointer-events: none; }
.expert__content { display: grid; gap: 18px; }
.expert__name { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 12px; }
.expert__name::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: rgba(152,249,2,.4); }
.expert__text { display: grid; gap: 14px; color: var(--muted); }
.expert__text p:first-child { color: #DDE5DD; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 20px 8px; display: grid; gap: 6px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 16px; }
.stat__num { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: .9; color: var(--green); }
.stat__label { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); line-height: 1.35; }

.final {
  margin-top: 72px; padding: 48px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 14px;
  display: grid; justify-items: center; gap: 20px; text-align: center;
}
.final__title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 6.2vw, 3.2rem); line-height: 1; max-width: 920px; text-wrap: balance; }
.final__text { color: var(--muted); max-width: 640px; }
.final__info { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: .95rem; }
.final__info li { display: flex; align-items: center; gap: 10px; }
.final__info strong { font-family: var(--f-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; }
.final__info svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.final .btn { margin-top: 8px; }

/* ---------- RODAPÉ ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 112px; background: #060B07; }
.footer__inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.footer__logo { width: 120px; height: auto; opacity: .9; }
.footer__tagline { color: var(--muted); font-size: .88rem; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(182,193,183,.35); }
.footer__links a:hover { color: var(--green); }
.footer__copy { font-size: .76rem; color: #87938A; }

/* ---------- CTA FIXO MOBILE ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,15,10,.92);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta .btn { --h: 52px; font-size: .82rem; padding-inline: 16px; }
.sticky-cta.is-visible { transform: translateY(0); }

/* ---------- POP-UP ---------- */
.modal {
  width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; background: transparent; color: var(--white);
  overflow: visible;
}
.modal::backdrop { background: rgba(3,6,4,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .22s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__box {
  position: relative; max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 30px 20px 22px;
  background: var(--bg-3);
  border: 1px solid rgba(152,249,2,.3);
  border-top: 3px solid var(--green);
  border-radius: 14px;
}
.modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); }
.modal__close:hover { background: rgba(255,255,255,.06); color: var(--white); }
.modal__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__logo { width: 230px; margin-bottom: 16px; }
.modal__meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.modal__meta svg { width: 15px; height: 15px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal__title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 2.2rem; line-height: .95; }
.modal__lead { color: var(--muted); font-size: .9rem; margin: 10px 0 18px; }
body.modal-open { overflow: hidden; }

/* =========================================================
   BREAKPOINTS
   ========================================================= */
@media (max-width: 359px) {
  .cd__item { min-width: 44px; }
  .cd__num { font-size: 1.35rem; }
  .cd__unit { font-size: .56rem; }
  .btn { font-size: .8rem; padding-inline: 18px; letter-spacing: .04em; }
  .stat + .stat { padding-left: 10px; }
  .stat__label { font-size: .68rem; }
}

@media (min-width: 480px) {
  .form-card { padding: 26px 24px; }
  .modal__box { padding: 34px 30px 26px; }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .final { padding: 56px 40px; }
}

@media (min-width: 768px) {
  :root { --topbar-h: 58px; }
  .topbar__label { font-size: .74rem; }
  .cd__num { font-size: 1.75rem; }

  .hero { min-height: clamp(720px, calc(100svh - var(--topbar-h)), 1000px); display: flex; align-items: center; }
  .hero__bg { inset: 0; height: auto; }
  .hero__bg img { object-position: 72% center; }
  .hero__title { font-size: clamp(3rem, 4.9vw, 4.4rem); }
  .hero__title span { white-space: nowrap; }
  .hero__bg::after {
    background:
      linear-gradient(90deg, rgba(8,15,10,.94) 0%, rgba(8,15,10,.82) 38%, rgba(8,15,10,.25) 62%, rgba(8,15,10,0) 75%),
      linear-gradient(180deg, rgba(8,15,10,0) 75%, rgba(8,15,10,.9) 100%);
  }
  .hero__inner { padding-top: 64px; padding-bottom: 72px; }
  .hero__content { max-width: 540px; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 40px; }
  .content, .expert { padding: 96px 0 104px; }
}

@media (min-width: 960px) {
  .expert__grid { grid-template-columns: 5fr 6fr; gap: 64px; }
  .expert__photo { max-width: none; }
}

@media (min-width: 1200px) {
  .hero__bg { inset: 0 0 auto 0; }
  .hero__bg img { height: auto; object-fit: fill; }
  .hero__bg::after {
    background:
      linear-gradient(90deg, rgba(8,15,10,.7) 0%, rgba(8,15,10,.35) 40%, rgba(8,15,10,0) 55%),
      linear-gradient(180deg, rgba(8,15,10,0) 80%, rgba(8,15,10,.9) 100%);
  }
  .hero__content { max-width: 580px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card__title { font-size: 1.6rem; }
  .final { padding: 72px 64px; }
}

@media (min-width: 1600px) {
  :root { --container: 1360px; }
  .hero__content { max-width: 620px; }
}

/* Sem foto no card: reduz a área visual no mobile */
@media (max-width: 639px) {
  .card__media:not(:has(img)) { aspect-ratio: 16 / 7; }
  .card__media:not(:has(img)) .card__bignum { font-size: 4.2rem; }
}
.card__media img:not([src]) { display: none; }
.form-status__link { display: block; margin-top: 6px; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
