/* ==========================================================================
   Finvity — institucional
   Os estilos estáticos ficam inline no HTML (fiéis ao design). Aqui mora
   apenas o que precisa de estado, :hover, media query ou animação.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: 'Albert Sans', 'Inter', system-ui, sans-serif;
  color: #2c2823;
  background: #fff;
  overflow-x: hidden;
}

a {
  color: #3f621c;
  text-decoration: none;
}

a:hover {
  color: #4d7823;
}

::selection {
  background: #bef264;
  color: #2c2823;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
blockquote,
table {
  margin: 0;
}

input,
select {
  font-family: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: #a3e635 !important;
  box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.35);
}

[hidden] {
  display: none !important;
}

.fin-mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Animações
   -------------------------------------------------------------------------- */
@keyframes finFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes waFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes waRing {
  0% {
    box-shadow:
      0 10px 26px -6px rgba(37, 211, 102, 0.5),
      0 4px 10px -4px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow:
      0 10px 26px -6px rgba(37, 211, 102, 0.5),
      0 4px 10px -4px rgba(0, 0, 0, 0.25),
      0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow:
      0 10px 26px -6px rgba(37, 211, 102, 0.5),
      0 4px 10px -4px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes finMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.fin-marquee-track {
  animation: finMarquee 38s linear infinite;
}

.fin-marquee:hover .fin-marquee-track {
  animation-play-state: paused;
}

/* Revelação ao entrar na viewport (JS remove .is-revealed-off) */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Sem JS, nada de conteúdo invisível */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Controles que só funcionam com JS (filtro e busca do blog) */
.no-js [data-js-only] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fin-marquee-track,
  .wa-float {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Header / navegação
   -------------------------------------------------------------------------- */
.nav-link:hover {
  color: #3f621c;
}

.nav-drop {
  position: absolute;
  top: 62px;
  left: -14px;
  width: 300px;
  background: #fff;
  border: 1px solid #e2e1d7;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow:
    0 20px 44px -18px rgba(44, 40, 35, 0.3),
    0 4px 12px -6px rgba(44, 40, 35, 0.12);
  transition:
    opacity 0.16s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.16s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.16s;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
}

.nav-drop.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-drop a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #2c2823;
  transition: background 0.16s;
}

.nav-drop a:hover {
  background: #f4f4ed;
  color: #2c2823;
}

.btn-dark:hover {
  background: #3a352e;
  color: #bef264;
}

.btn-lime:hover {
  background: #a3e635;
  color: #2c2823;
}

/* Hambúrguer (mobile) */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e1d7;
  border-radius: 9px;
  background: #fff;
  color: #2c2823;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.nav-burger:hover {
  background: #f4f4ed;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 20px;
  border-top: 1px solid #eceae4;
  background: #fff;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: #3a352e;
  border-bottom: 1px solid #f4f4ed;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile .nav-mobile-group {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
  padding: 16px 4px 6px;
}

/* --------------------------------------------------------------------------
   Hero — carrossel de telas
   -------------------------------------------------------------------------- */
.hero-carousel {
  --slide-w: 58vw;
  --slide-gap: 2vw;
  --arrow-size: 48px;
  --arrow-gap: 16px;
  position: relative;
  overflow: hidden;
  padding-bottom: 8px;
}

.hero-track {
  display: flex;
  gap: var(--slide-gap);
  transform: translateX(
    calc(
      50vw - var(--slide-w) / 2 - var(--i, 0) *
        (var(--slide-w) + var(--slide-gap))
    )
  );
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 var(--slide-w);
  width: var(--slide-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.4;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5d4bf;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.94);
  box-shadow: none;
}

.hero-slide.is-active .hero-slide-card {
  transform: scale(1);
  box-shadow: 0 34px 68px -30px rgba(44, 40, 35, 0.4);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -10px rgba(44, 40, 35, 0.35);
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.18s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow--prev {
  left: calc(50vw - var(--slide-w) / 2 - var(--arrow-gap) - var(--arrow-size));
}

.hero-arrow--next {
  left: calc(50vw + var(--slide-w) / 2 + var(--arrow-gap));
}

.hero-arrow.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Métricas
   -------------------------------------------------------------------------- */
.stat-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 32px 38px;
}

.stat-cell + .stat-cell {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   Recursos — feature rows
   -------------------------------------------------------------------------- */
.feat-row {
  --deck-y: -9deg;
  --deck-z: 0.6deg;
  --chip-off: 34px;
  display: grid;
  gap: 72px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.feat-media {
  order: 1;
}

.feat-text {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feat-row--alt {
  --deck-y: 9deg;
  --deck-z: -0.6deg;
}

.feat-row--alt .feat-media {
  order: 2;
}

.feat-row--alt .feat-text {
  order: 1;
}

.feat-deck {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(var(--deck-y)) rotateZ(var(--deck-z));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat-chip {
  position: absolute;
  top: -24px;
  left: calc(-1 * var(--chip-off));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e1d7;
  box-shadow: 0 26px 50px -24px rgba(44, 40, 35, 0.45);
  transform: translateZ(110px);
}

.feat-row--alt .feat-chip {
  left: auto;
  right: calc(-1 * var(--chip-off));
}

/* --------------------------------------------------------------------------
   Para quem é — cards de segmento
   -------------------------------------------------------------------------- */
.seg-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  color: #fff;
  min-height: 380px;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.seg-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(190, 242, 100, 0.4);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Sobre a Finvity
   -------------------------------------------------------------------------- */
/* Os parágrafos são propositalmente esmaecidos (.9 e .62) para dar hierarquia.
   As keywords em negrito voltam ao branco cheio para não perderem o destaque. */
.about-key {
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Depoimentos
   -------------------------------------------------------------------------- */
/* 16/9 = o mesmo enquadramento do vídeo. Com 16/10 o corte comia pela metade
   o crédito com nome e cargo que já vem gravado no rodapé do frame. */
.testi-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1f1c18;
  overflow: hidden;
  border-radius: 16px;
  transition: filter 0.18s;
}

.testi-card:hover {
  filter: brightness(1.08);
}

.testi-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Escurece só o topo: dá contraste para o rótulo e a duração sem apagar o rosto */
.testi-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 28, 24, 0.66),
    rgba(31, 28, 24, 0.1) 45%,
    rgba(31, 28, 24, 0)
  );
}

/* O frame já traz o crédito gravado, mas ele fica ilegível quando o card
   encolhe — este rótulo é texto real e continua legível em qualquer tamanho. */
.testi-label {
  position: absolute;
  left: 16px;
  right: 76px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 6px rgba(31, 28, 24, 0.55);
}

.testi-duration {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(31, 28, 24, 0.6);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.testi-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #bef264;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(31, 28, 24, 0.6);
  transition: transform 0.18s;
}

.testi-card:hover .testi-play {
  transform: translate(-50%, -50%) scale(1.06);
}

.testi-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 25, 21, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.testi-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.testi-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.testi-modal-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.testi-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Pop-up de oferta
   -------------------------------------------------------------------------- */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(44, 40, 35, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.promo-close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(44, 40, 35, 0.24);
  background: rgba(255, 255, 255, 0.5);
  color: #2c2823;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s;
}

.promo-close:hover {
  background: #fff;
}

.promo-chip {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(44, 40, 35, 0.14);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
}

.promo-alt {
  align-self: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #2c2823;
  text-decoration: underline;
}

.promo-alt:hover {
  color: #2c2823;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  font-size: 17.5px;
  font-weight: 500;
  color: #2c2823;
  transition: color 0.18s;
}

.faq-q:hover {
  color: #3f621c;
}

.faq-plus-v {
  transform-origin: 12px 12px;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.faq-item.is-open .faq-plus-v {
  opacity: 0;
  transform: rotate(90deg);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s;
}

.faq-item.is-open .faq-a {
  max-height: 420px;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   WhatsApp flutuante
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 26px -6px rgba(37, 211, 102, 0.5),
    0 4px 10px -4px rgba(0, 0, 0, 0.25);
  animation:
    waFloat 3.2s ease-in-out infinite,
    waRing 2.6s ease-out infinite;
  transition: transform 0.18s;
}

.wa-float:hover {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.foot-link {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.18s;
}

.foot-link:hover {
  color: #bef264;
}

.foot-social {
  color: #fff;
  display: inline-flex;
  transition: color 0.18s;
}

.foot-social:hover {
  color: #bef264;
}

/* --------------------------------------------------------------------------
   Páginas de conteúdo (termos de uso / política de privacidade)
   -------------------------------------------------------------------------- */
.doc {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) 24px clamp(72px, 8vw, 104px);
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0dfd6;
  background: #fafaf5;
  color: #3a352e;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.doc h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #2c2823;
  text-wrap: pretty;
  margin-bottom: 12px;
}

.doc .doc-meta {
  font-size: 14.5px;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #2c2823;
  margin: 44px 0 16px;
  text-wrap: pretty;
}

.doc p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #52525b;
  margin-bottom: 16px;
}

.doc ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.doc li {
  font-size: 16.5px;
  line-height: 1.7;
  color: #52525b;
  margin-bottom: 10px;
}

.doc strong {
  color: #3a352e;
  font-weight: 600;
}

.doc .doc-warn {
  border-left: 3px solid #bef264;
  background: #f9faf3;
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #3a352e;
}

.doc .doc-warn p {
  margin: 0;
  color: #3a352e;
  font-weight: 600;
}

.doc .doc-warn u {
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  [data-fields] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* O nav de desktop tem 7 itens e precisa de ~995px de barra. Abaixo disso o
   header estourava, então o hambúrguer entra antes do breakpoint de layout. */
@media (max-width: 1040px) {
  [data-nav] {
    display: none !important;
  }

  .nav-burger {
    display: flex;
  }
}

@media (max-width: 940px) {
  [data-row] {
    grid-template-columns: 1fr !important;
  }

  [data-grid3] {
    grid-template-columns: 1fr !important;
  }

  [data-grid4] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  [data-faq-row] {
    grid-template-columns: 1fr !important;
  }

  [data-fields] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-proof] {
    grid-template-columns: 1fr !important;
  }

  .hero-carousel {
    --slide-w: 72vw;
    --arrow-size: 40px;
    --arrow-gap: 8px;
  }

  .feat-row {
    gap: 40px;
    --chip-off: 4px;
  }

  .feat-chip {
    top: -12px;
  }

  .feat-row--alt .feat-media {
    order: 1;
  }

  .feat-row--alt .feat-text {
    order: 2;
  }

  .stat-cell + .stat-cell {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 900px) {
  [data-foot-top] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 620px) {
  [data-foot-top] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  [data-foot-seals] {
    gap: 18px !important;
  }

  [data-grid4] {
    grid-template-columns: 1fr !important;
  }

  /* Evita estouro do header: o CTA vive no menu mobile.
     !important porque o elemento carrega `display:inline-flex` inline. */
  .header-cta {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Conteúdos (blog, sala de imprensa e artigos)
   As três páginas usam a paleta creme do design (#f2f1e8), diferente da home.
   O tema entra por `body.page-conteudo` para não mexer nas páginas existentes.
   -------------------------------------------------------------------------- */
body.page-conteudo {
  background: #f2f1e8;
  color: #1a1815;
}

/* No design destas páginas o link escurece no hover, em vez de clarear */
body.page-conteudo a:hover {
  color: #1a1815;
}

@keyframes finPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.fin-pulse {
  animation: finPulse 2.4s ease-in-out infinite;
}

/* Item de nav que aponta para a seção da página atual */
.nav-current {
  font-weight: 600 !important;
  color: #2c2823 !important;
}

/* --------------------------------------------------------------------------
   Blog — barra lateral
   -------------------------------------------------------------------------- */
.cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  padding: 13px 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: #5f5a52;
  transition: color 0.18s;
}

.cat-btn:hover {
  color: #1a1815;
}

.cat-btn.is-active {
  font-weight: 600;
  color: #1a1815;
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(26, 24, 21, 0.16);
  transition: background 0.18s;
}

.cat-btn.is-active .cat-dot {
  background: #6da544;
}

.cat-count {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #a8a29a;
  transition: color 0.18s;
}

.cat-btn.is-active .cat-count {
  color: #3f621c;
}

.top-link {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 24, 21, 0.1);
  color: #1a1815;
  transition: color 0.18s;
}

.top-link:hover,
.top-link:hover span {
  color: #3f621c;
}

.field-search {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 38px;
  background: #fff;
  border: 1px solid rgba(26, 24, 21, 0.16);
  border-radius: 6px;
  font-size: 15px;
  color: #1a1815;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

/* --------------------------------------------------------------------------
   Blog — cards de artigo
   -------------------------------------------------------------------------- */
.art-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.art-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #eae9de;
  border: 1px solid rgba(26, 24, 21, 0.12);
}

.art-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.art-card:hover .art-thumb img {
  transform: scale(1.03);
}

.art-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #1a1815;
}

.art-link:hover {
  color: #1a1815;
}

.art-link h3 {
  transition: color 0.18s;
}

.art-link:hover h3 {
  color: #3f621c;
}

/* --------------------------------------------------------------------------
   Conteúdos — botões
   -------------------------------------------------------------------------- */
.btn-outline-lime {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #3f621c;
  background: transparent;
  border: 1px solid rgba(109, 165, 68, 0.42);
  border-radius: 6px;
  height: 48px;
  padding: 0 24px;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.btn-outline-lime:hover {
  background: rgba(109, 165, 68, 0.09);
  border-color: rgba(109, 165, 68, 0.62);
  color: #3f621c;
}

/* --------------------------------------------------------------------------
   Blog — newsletter
   -------------------------------------------------------------------------- */
.field-news {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid rgba(26, 24, 21, 0.16);
  border-radius: 6px;
  font-size: 15px;
  color: #1a1815;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.btn-news {
  flex-shrink: 0;
  background: #bef264;
  color: #1a1815;
  height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.18s;
}

.btn-news:hover {
  background: #a3e635;
}

.btn-news[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   Sala de imprensa
   -------------------------------------------------------------------------- */
.press-row {
  display: grid;
  grid-template-columns: 200px 1fr 130px;
  gap: 32px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid rgba(26, 24, 21, 0.12);
  color: #1a1815;
  transition: background 0.18s;
}

.press-row:hover {
  background: rgba(190, 242, 100, 0.14);
  color: #1a1815;
}

.press-out {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(26, 24, 21, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3f621c;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.press-row:hover .press-out {
  background: #fff;
  border-color: #bef264;
}

.kit-card {
  background: #f2f1e8;
  border: 1px solid rgba(26, 24, 21, 0.14);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #1a1815;
  min-height: 180px;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.kit-card:hover {
  border-color: rgba(109, 165, 68, 0.45);
  background: #fff;
  color: #1a1815;
}

/* --------------------------------------------------------------------------
   Artigo — corpo do texto
   O mesmo princípio da classe `.doc`: a tipografia repetida mora aqui, e não
   inline em cada parágrafo.
   -------------------------------------------------------------------------- */
.post-body {
  min-width: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.post-body h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: #1a1815;
  margin-top: 18px;
  scroll-margin-top: 110px;
  text-wrap: pretty;
}

.post-body h2 b,
.post-body h2 strong {
  font-weight: 600;
}

.post-body p {
  font-size: 17.5px;
  line-height: 1.75;
  color: #3a352e;
}

.post-body strong {
  font-weight: 600;
  color: #1a1815;
}

/* Lista com marcador desenhado (o do design é um ponto verde alinhado à 1ª linha) */
.post-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-body ul > li {
  display: flex;
  gap: 12px;
  font-size: 17px;
  line-height: 1.65;
  color: #3a352e;
}

.post-body ul > li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6da544;
}

.post-body ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-body ol > li {
  font-size: 17px;
  line-height: 1.65;
  color: #3a352e;
}

.post-body ol > li::marker {
  color: #7d786f;
}

.post-body blockquote {
  margin: 10px 0;
  padding: 26px 28px;
  border-left: 2px solid #bef264;
  background: #eae9de;
  border-radius: 0 12px 12px 0;
}

.post-body blockquote p {
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: #1a1815;
  text-wrap: pretty;
}

.post-body blockquote strong {
  font-weight: 600;
}

/* Tabela comparativa. O wrapper rola no eixo X para a tabela não estourar
   a largura da coluna de leitura no celular. */
.post-table {
  margin: 8px 0;
  border: 1px solid rgba(26, 24, 21, 0.14);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.post-table-scroll {
  overflow-x: auto;
}

.post-table table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
}

.post-table thead tr {
  background: #eae9de;
}

.post-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d786f;
  padding: 14px 18px;
  white-space: nowrap;
}

.post-table th + th,
.post-table td + td {
  text-align: right;
}

.post-table tbody tr {
  border-top: 1px solid rgba(26, 24, 21, 0.1);
}

.post-table td {
  font-size: 15px;
  color: #1a1815;
  padding: 15px 18px;
}

.post-table td + td {
  font-size: 14.5px;
  color: #3a352e;
}

.post-table td:last-child {
  color: #3f621c;
}

.post-table figcaption {
  font-size: 12.5px;
  line-height: 1.5;
  color: #7d786f;
  padding: 14px 18px;
  border-top: 1px solid rgba(26, 24, 21, 0.1);
}

.post-note {
  margin-top: 10px;
  border: 1px solid rgba(26, 24, 21, 0.14);
  background: #fff;
  border-radius: 12px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-note p {
  font-size: 14px;
  line-height: 1.6;
  color: #5f5a52;
}

/* Rótulo em caixa alta usado nas caixas de apoio do artigo */
.post-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3f621c;
}

/* Variante leve da citação (o padrão do design é 600) */
.post-body blockquote.post-quote-light p {
  font-weight: 300;
}

/* Bloco de dois cenários lado a lado */
.post-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 6px 0;
}

.post-compare-card {
  border: 1px solid rgba(26, 24, 21, 0.14);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-compare-card--lime {
  border-color: rgba(109, 165, 68, 0.32);
  background: rgba(190, 242, 100, 0.16);
}

.post-body .post-compare-card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #3a352e;
}

.post-compare-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 24, 21, 0.1);
}

.post-hint {
  font-size: 12.5px;
  color: #7d786f;
}

.post-stat {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1a1815;
}

/* --------------------------------------------------------------------------
   Artigo — compartilhar e relacionados
   -------------------------------------------------------------------------- */
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(26, 24, 21, 0.16);
  background: #fff;
  color: #3a352e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s,
    border-color 0.18s;
}

.share-btn:hover {
  background: rgba(190, 242, 100, 0.28);
  border-color: #bef264;
  color: #3a352e;
}

.rel-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rel-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f1e8;
  border: 1px solid rgba(26, 24, 21, 0.12);
}

.rel-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rel-card:hover .rel-thumb img {
  transform: scale(1.03);
}

.rel-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1a1815;
}

.rel-link:hover {
  color: #1a1815;
}

.rel-link h3 {
  transition: color 0.18s;
}

.rel-link:hover h3 {
  color: #3f621c;
}

/* --------------------------------------------------------------------------
   Conteúdos — responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  [data-blog-shell] {
    grid-template-columns: 200px 1fr !important;
    gap: 48px !important;
  }

  [data-post-shell] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  [data-post-aside] {
    position: static !important;
    order: 2;
  }

  .post-body {
    order: 1;
    max-width: none;
  }
}

@media (max-width: 940px) {
  [data-blog-shell] {
    grid-template-columns: 1fr !important;
    gap: 44px !important;
  }

  [data-blog-aside] {
    position: static !important;
  }

  [data-cards] {
    grid-template-columns: 1fr !important;
  }

  [data-related] {
    grid-template-columns: 1fr !important;
  }

  [data-kit] {
    grid-template-columns: 1fr !important;
  }

  .press-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .press-row [data-press-meta] {
    justify-content: flex-start !important;
  }
}

@media (max-width: 620px) {
  [data-sec] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  [data-news] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  [data-news-row] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Empilhado, o eixo principal passa a ser o vertical — sem isto o `flex: 1`
     do campo esmagaria a altura dele (o botão não sofre porque é shrink: 0). */
  [data-news-row] .field-news {
    flex: none;
  }

  [data-cta] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  [data-compare] {
    grid-template-columns: 1fr !important;
  }
}
