/*
 * v3 (13/10/2026) — rolagem suave e acabamento.
 * O cabeçalho sai do fluxo (fixo) porque a rolagem suave move o conteúdo por
 * transform; a demonstração deixa de ser sticky e passa a ser presa pelo GSAP.
 */
:root {
  --header-h: 81px;
}
@media (max-width: 700px) {
  :root {
    --header-h: 73px;
  }
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.has-smoother {
  scroll-behavior: auto;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
#smooth-content {
  padding-top: var(--header-h);
}
.is-scroll-story .story-scroll {
  height: auto;
}
.is-scroll-story .story-pin {
  position: relative;
  top: auto;
  height: calc(100svh - var(--header-h));
}
.is-scroll-story .story-chapters {
  perspective: 1600px;
  perspective-origin: 70% 50%;
}
.is-scroll-story .chapter-visual {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.is-scroll-story .chapter-visual,
.is-scroll-story .chapter-copy > * {
  will-change: transform, opacity;
}

/* etapa 3: a base própria do corretor (o segundo caminho) */
.campaign-base {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef5e9;
  border: 1px solid #d6e5cf;
}
.campaign-base > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.campaign-base strong {
  font-size: 14px;
  color: #173a2b;
}
.campaign-base > div > span {
  font-size: 12.5px;
  color: #5f7366;
}
.base-ring {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(#25d366 0 300deg, #c9d7c3 300deg 360deg);
}
.base-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef5e9;
}
.base-tag {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1d6b43;
  background: #d9efce;
  border-radius: 999px;
  padding: 5px 10px;
}

/* herói: o filme como ação principal */
.hero-v2-actions {
  flex-wrap: wrap;
  row-gap: 14px;
}
.button-film {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 12px;
  cursor: pointer;
  border: 0;
  font: inherit;
  font-weight: 600;
}
.button-film small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.72;
  margin-left: -4px;
}
.film-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9ef9e;
  color: #12301f;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.film-play .icon {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}
.button-film:hover .film-play {
  transform: scale(1.1);
}
.text-link-quiet {
  opacity: 0.75;
}

/* player do filme */
.film-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.film-dialog::backdrop {
  background: rgba(8, 22, 16, 0.86);
}
.film-dialog[open] {
  animation: film-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes film-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}
.film-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0d1a20;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
.film-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1a20;
}
.film-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #12301f;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.film-close .icon {
  transform: rotate(45deg);
  width: 18px;
  height: 18px;
}
.film-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(247, 248, 242, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .film-dialog[open] {
    animation: none;
  }
}

/* etapa 3: com a linha da base, o cartão (altura fixa pelo inset) precisa caber */
.is-scroll-story .scene-promote .campaign-card {
  padding: 18px 20px;
}
.is-scroll-story .scene-promote .funding-label {
  margin-top: 12px;
}
.is-scroll-story .scene-promote .campaign-funds > div {
  padding: 10px 12px;
}
.is-scroll-story .scene-promote .meta-platform {
  margin-top: 10px;
  padding-top: 10px;
}
@media (max-height: 860px) {
  .is-scroll-story .campaign-base {
    margin-top: 8px;
    padding: 7px 12px;
  }
  .is-scroll-story .base-ring {
    width: 30px;
    height: 30px;
  }
  .is-scroll-story .scene-promote .campaign-property img {
    height: 58px;
  }
  .is-scroll-story .scene-promote .campaign-funds > div > span {
    display: none;
  }
}

/* ---- acessibilidade (revisão de 13/10/2026) ---- */

/* abas: os três painéis estão no HTML; o atributo hidden precisa vencer o display: grid */
.audience-panel[hidden] {
  display: none;
}

/* destino de âncora recebe foco por script, sem contorno no bloco inteiro */
main[tabindex="-1"]:focus,
section[tabindex="-1"]:focus {
  outline: none;
}

/* texto sobre foto e vídeo: véu mais escuro atrás da legenda */
.architecture-frame:after {
  background: linear-gradient(180deg, #062211b3 0%, #06221166 26%, transparent 50%, #08291a90);
}
@media (min-width: 1000px) {
  .architecture-caption {
    right: 26%;
  }
}
.ecosystem-property-shade {
  background: linear-gradient(180deg, #132c2340, transparent 35%, #132c23e6);
}

/* contraste AA: texto normal >= 4,5:1 sobre o fundo medido */
.footer-main p { color: #697362; }
.contact-copy p { color: #5b6b4d; }
.contact-copy > .eyebrow { color: #586e4b; }
.contact-action > p { color: #5b6d4f; }
.ecosystem-map-caption { color: #60705a; }
.ecosystem-disclaimer { color: #626f59; }
.ecosystem-funding-heading > .ecosystem-kicker { color: #617057; }
.art-caption { color: #667461; }
.request-bubble > div { color: #367248; }
.app-heading div > span { color: #62735f; }
.faq-section > div > .eyebrow { color: #68745b; }
.compact .eyebrow { color: #66745e; }
.audience-text > span { color: #66755b; }
.screen-caption { color: #5f6d54; }
.mini-app-head small { color: #6a775e; }
.mini-property small { color: #657857; }
.mini-app-foot { color: #5c7b4e; }
.campaign-card .app-heading > span { color: #5c7550; }
.campaign-property div > span { color: #3f7a54; }
.campaign-property small { color: #61745a; }
.campaign-funds span { color: #5c7056; }
.conversation-handoff { color: #447a4f; }
.opportunity-card > div { color: #687a5f; }
.pipeline-art i { color: #5c7249; }
.button-film small { opacity: 0.85; }

/* v4 (alinhada ao filme): o título do topo é o gancho do filme, em 4 linhas.
   Um pouco menor no desktop para os botões seguirem na primeira dobra. */
@media (min-width: 1151px) {
  .hero-v2 h1 {
    font-size: clamp(50px, 4.85vw, 78px);
  }
}
@media (min-width: 1000px) and (max-width: 1150px) {
  .hero-v2 h1 {
    font-size: 52px;
  }
}

/* Rede (desktop): o texto da incorporadora ganhou uma linha (v3) e invadia o
   cartão da imobiliária em todas as larguras. Os cartões de baixo descem para
   380/394 px e o de cima sobe; as linhas (y 175 e 483 no SVG) seguem tocando
   os quatro. Medido de 1104 a 1920 px. */
@media (min-width: 1101px) {
  .ecosystem-developer {
    top: 0;
  }
  .ecosystem-agency {
    top: 380px;
  }
  .ecosystem-buyer {
    top: 394px;
  }
}

/* Rodapé verde (13/10): faixa inteira no verde-floresta da demonstração, só com
   branco por cima (sem verde-limão).
   Sem "Pausar animações" (o controle fica no topo) e sem o aviso de imagens
   ilustrativas. Os seletores levam .site-footer para vencer as regras antigas
   de .footer-main/.footer-bottom em styles.css, premium.css e acima. */
.site-footer {
  margin-top: 0;
  padding: 72px 0 30px;
  background:
    radial-gradient(900px 420px at 18% 0%, #1d4a37 0%, rgba(17, 46, 36, 0) 70%),
    var(--forest);
  color: rgba(255, 255, 255, 0.74);
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  align-items: start;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* No verde-escuro a marca é toda branca (símbolo, "Divulg" e "aí"), sem o
   degradê nem o verde-limão: pedido do Anderson para não variar a marca. */
.site-footer .brand,
.site-footer .brand-green,
.site-footer .brand-symbol {
  color: #fff;
}
.site-footer .footer-main p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.site-footer .footer-main .footer-claim {
  margin-top: 30px;
  max-width: none;
  font: 600 clamp(28px, 2.6vw, 38px) / 1.1 Manrope, sans-serif;
  letter-spacing: -0.045em;
  color: #fff;
}
.site-footer .footer-claim em {
  font-style: normal;
  color: #fff;
}
.site-footer .footer-nav {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}
.site-footer .footer-nav a,
.site-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .footer-nav a {
  font-size: 16px;
}
.site-footer .footer-nav a:hover,
.site-footer .footer-bottom a:hover {
  color: #fff;
}
.site-footer .footer-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.site-footer .footer-button:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}
.site-footer .footer-button .icon {
  width: 18px;
  height: 18px;
}
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.site-footer .footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.site-footer .footer-bottom .icon {
  width: 14px;
  height: 14px;
}
.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}
@media (max-width: 860px) {
  .site-footer {
    margin-top: 0;
    padding: 52px 0 26px;
  }
  .site-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
  .site-footer .footer-cta {
    align-self: start;
    justify-self: end;
  }
}
@media (max-width: 560px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-cta {
    justify-self: stretch;
  }
  .site-footer .footer-button {
    width: 100%;
    justify-content: space-between;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
