/* Revisão HD. Vetores escaláveis e movimento sem flashes. */
.hd svg {
  image-rendering: auto;
  shape-rendering: geometricPrecision;
}
.hero .estadio {
  margin: 4px auto 0;
  max-width: 1240px;
}
.estadio .arena-hd { display: block; width: 100%; }
.estadio .ola-hd {
  position: absolute;
  bottom: 5%;
  left: 6%;
  width: 88%;
  height: auto;
  z-index: 2;
  padding: 0;
  max-width: none;
}
.ola-hd .fa {
  width: 4.5%;
  animation: ola-hd 4.4s cubic-bezier(.45,0,.2,1) infinite;
  animation-delay: var(--atraso, 0s);
}
.ola-hd .fa svg { width: 100%; max-height: none; display: block; }
.bracos-hd {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bracos-hd 4.4s cubic-bezier(.45,0,.2,1) infinite;
  animation-delay: var(--atraso, 0s);
}
.bola-voando.hd {
  width: 58px;
  opacity: .95;
  animation: bola-hd 4.6s cubic-bezier(.45,0,.2,1) infinite;
  filter: drop-shadow(0 8px 9px rgba(0,0,0,.2));
}
.arena-luzes { animation: arena-respira 8s ease-in-out infinite; }
.bandeira-hd {
  transform-box: fill-box;
  transform-origin: left center;
  animation: bandeira-hd 5s ease-in-out infinite;
}
@keyframes ola-hd {
  0%, 46%, 100% { transform: translateY(0); }
  24% { transform: translateY(-10px); }
}
@keyframes bracos-hd {
  0%, 46%, 100% { transform: scaleY(.9); }
  24% { transform: scaleY(1.06); }
}
@keyframes bola-hd {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-20px) rotate(25deg); }
}
@keyframes arena-respira { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes bandeira-hd { 0%, 100% { transform: skewY(-3deg); } 50% { transform: skewY(3deg); } }
.scene-toolbar {
  max-width: 1200px;
  padding: 22px 32px 0;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 3;
}
.scene-label, .scene-caption { font-size: 13px; color: #ffe3e5; }
.scene-caption { margin: -8px 20px 14px; text-align: center; opacity: .8; }
.motion-toggle {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px;
  background: rgba(18,6,7,.25);
  color: #fff;
  cursor: pointer;
}
.motion-toggle:hover { background: rgba(18,6,7,.5); }
.motion-paused *, .motion-paused *::before, .motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-paused .revela.aguarda { opacity: 1; transform: none; }
.led b, .led b.ouro {
  font-family: var(--display);
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 800;
  text-shadow: none;
  letter-spacing: -.02em;
}
.led b { color: #ff6c77; }
.led b.ouro { color: #ffc300; }
.led span { font-size: 15px; }
.led:before { opacity: .3; }
@media (max-width: 599px) {
  .bola-voando.hd { width: 38px; right: 6%; top: 6%; }
  .scene-toolbar { padding: 10px 20px 0; gap: 8px; align-items: start; }
  .scene-label { max-width: 16ch; font-size: 12px; padding-top: 8px; }
  .motion-toggle { font-size: 12px; padding: 8px 10px; }
  .hero .estadio { overflow: hidden; margin-top: 2px; }
  .estadio #estadio-px { width: 170%; margin-left: -35%; }
  .estadio .ola-hd { left: 1%; width: 98%; bottom: 9%; }
  .ola-hd .fa { width: 4.5%; }
  .scene-caption { font-size: 11px; margin-top: 0; }
  .led b, .led b.ouro { font-size: clamp(26px, 7vw, 35px); }
}
@media (prefers-reduced-motion: reduce) {
  .ola-hd .fa, .bracos-hd, .bola-voando.hd, .arena-luzes, .bandeira-hd {
    animation: none !important;
  }
}

.motion-paused { scroll-behavior: auto !important; }
.page-hidden *, .scene-outside * { animation-play-state: paused !important; }
.motion-toggle:disabled { cursor: default; opacity: .8; }

/* Informação antes do efeito: valores estáticos, fonte e data no mesmo cartão. */
.demo-note {
  display: block;
  margin-top: 18px;
  padding-left: 12px;
  border-left: 3px solid var(--ouro);
  font-size: 14px;
  line-height: 1.5;
  color: #ffe3e5;
}
.hero-propostas { color: #fff; text-decoration: underline; text-underline-offset: 4px; min-height: 48px; display: inline-flex; align-items: center; font-weight: 600; }
.era { position: relative; }
.era-tipo { color: var(--tinta2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.era[data-tipo="Diagnóstico"] { border-top: 6px solid #6e0208; }
.era[data-tipo="Plano"] .era-tipo { color: var(--ouro); }
.era-fonte { display: inline-flex; min-height: 48px; align-items: center; font-size: 14px; font-weight: 600; margin-top: auto; color: #b2040c; }
.era.destaque .era-fonte { color: var(--ouro); }
.finance-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 24px; }
.finance-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid #6b4548; border-radius: 6px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.finance-nav a:hover { border-color: var(--ouro); color: var(--ouro); }
.financial-callout { display: flex; align-items: center; justify-content: space-between; gap: 26px; background: #2c1215; border-left: 4px solid var(--ouro); border-radius: 8px; padding: 24px; }
.financial-callout strong { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; margin-bottom: 8px; }
.financial-callout span { display: block; font-size: 15px; color: #e6d8d9; max-width: 52ch; }
.financial-callout .btn { flex-shrink: 0; font-size: 20px; }
.led { display: flex; flex-direction: column; padding: 22px 18px; min-height: 274px; border-width: 1px; }
.led .metric-kind { color: #e8bdc1; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; max-width: none; }
.led h3 { color: #fff; font-size: 23px; line-height: 1.1; margin: 12px 0 8px; }
.led p { color: #d9cfd0; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.metric-source { display: inline-flex; align-items: center; min-height: 48px; color: #ffc300; font-size: 13px; font-weight: 600; margin-top: auto; position: relative; }
.finance-documents { padding: 36px 0; margin-top: 36px; border-top: 1px solid #583034; border-bottom: 1px solid #583034; scroll-margin-top: 90px; }
.finance-documents > p { max-width: 65ch; color: #e5d6d8; }
.documents-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0; }
.document-link { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: #fff; border: 1px solid #694449; border-radius: 8px; text-decoration: none; background: #261012; }
.document-link:hover { border-color: #ffc300; background: #35181c; }
.document-link span { font-size: 13px; }
.document-link b { color: #ffc300; font-size: 36px; font-family: var(--display); line-height: 1; }
.finance-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.finance-links a { display: inline-flex; min-height: 48px; align-items: center; color: #ffc300; font-size: 15px; font-weight: 600; }
.methodology { margin-top: 34px; scroll-margin-top: 90px; }
.audit-note { color: #e5d6d8; font-size: 15px; max-width: 90ch; }
.methodology details { border-top: 1px solid #68464a; }
.methodology summary, .privacy-inline summary { min-height: 56px; cursor: pointer; padding: 14px 30px 14px 0; font-weight: 700; }
.details-content { padding: 0 0 20px; line-height: 1.65; font-size: 15px; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 14px; }
.table-scroll caption { text-align: left; margin-bottom: 10px; font-weight: 700; }
.table-scroll th, .table-scroll td { text-align: left; padding: 12px; border: 1px solid #654448; vertical-align: top; }
.table-scroll a { color: #ffc300; min-height: 32px; display: inline-flex; align-items: center; }
.glossary dt { color: #ffc300; font-weight: 700; margin-top: 16px; }
.glossary dd { margin: 4px 0 14px; max-width: 84ch; }
.finance-updated { font-size: 12px; color: #c9b4b8; margin-top: 24px; }
.proposal-tools { border: 1px solid #71494d; padding: 24px; border-radius: 8px; margin: 28px 0; background: #241013; }
.proposal-search label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.proposal-search input { width: 100%; min-height: 48px; font: 16px var(--fonte); padding: 10px 14px; border: 2px solid #d8cdd0; border-radius: 6px; color: var(--noite); background: #fff; }
.proposal-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.proposal-filters button, .proposal-actions button { min-height: 48px; padding: 10px 16px; border: 1px solid #896268; border-radius: 6px; font-size: 15px; font-weight: 600; color: #fff; background: transparent; cursor: pointer; }
.proposal-filters button[aria-pressed="true"] { background: #ffc300; color: var(--noite); border-color: #ffc300; }
.proposal-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.proposal-actions p { font-size: 14px; margin: 0; }
#proposal-empty { color: #ffe3e5; font-size: 15px; margin: 16px 0 0; }
.card .meta small { display: block; color: var(--tinta2); font-family: var(--fonte); font-weight: 500; font-size: 11px; margin-bottom: 5px; }
.selected-theme { padding: 14px; border: 1px solid #d0b8b0; background: #fff3e3; border-radius: 6px; font-size: 14px; color: var(--noite); }
.draft-control { background: #f4f1ed; border-radius: 6px; padding: 14px; margin-bottom: 20px; }
.draft-control label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; font-weight: 600; }
.draft-control input { width: 20px; height: 20px; accent-color: #b2040c; flex-shrink: 0; }
.draft-control p { font-size: 12px; line-height: 1.5; margin: 8px 0 0; color: var(--tinta2); }
.privacy-inline { margin: 18px 0; padding: 0 14px; border: 1px solid #b5a8a7; border-radius: 6px; background: #f7f4f1; }
.privacy-inline summary { font-size: 14px; }
.cartao a { color: #b2040c; }
.campo label.chk { display: flex; align-items: flex-start; gap: 10px; }
.campo label.chk input { flex-shrink: 0; margin-top: 4px; }
:focus-visible { outline: 3px solid #120607; outline-offset: 3px; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid #120607; outline-offset: 3px; }
.hero :focus-visible, .topo :focus-visible, .placar-sec :focus-visible, .propostas :focus-visible, footer :focus-visible { outline-color: #ffc300; }
.propostas .proposal-search input:focus-visible { outline-color: #120607; }
.btn.ouro:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #120607; }
@media (max-width: 899px) {
  .documents-grid { grid-template-columns: repeat(3, 1fr); }
  .financial-callout { align-items: start; flex-direction: column; gap: 18px; }
}
@media (max-width: 599px) {
  .linha-tempo { grid-template-columns: 1fr; gap: 16px; }
  .era { min-height: 0; padding: 20px; gap: 10px; }
  .era .icone { position: absolute; top: 16px; right: 18px; width: 30px; height: 30px; }
  .era b { font-size: 29px; padding-right: 18px; }
  .era p { font-size: 15px; }
  .era-fonte { margin-top: 0; }
  .finance-nav { gap: 8px; }
  .finance-nav a { flex: 1 1 calc(50% - 8px); justify-content: center; font-size: 13px; padding: 8px; }
  .financial-callout { padding: 20px 16px; }
  .led { min-height: 0; padding: 16px 12px; }
  .led .metric-kind { font-size: 10px; }
  .led h3 { font-size: 22px; }
  .led p { font-size: 13px; }
  .metric-source { font-size: 12px; }
  .documents-grid { grid-template-columns: repeat(2, 1fr); }
  .document-link { padding: 16px; }
  .proposal-tools { padding: 18px 14px; }
  .proposal-actions { align-items: start; flex-direction: column; gap: 12px; }
  .proposal-actions button { width: 100%; }
}

.hero h1 > span, .hero h1 > em { display: block; }
.proposal-actions { flex-wrap: wrap; }
.draft-control label { min-height: 48px; }
@media (min-width: 600px) and (max-width: 1039px) { .hero .acoes { display: grid; grid-template-columns: 1fr 1fr; } .hero-propostas { grid-column: 1 / -1; } }

.accounting-context { color: #e5d6d8; padding: 18px 20px; border-left: 3px solid #ff6c77; background: #251014; font-size: 15px; line-height: 1.6; margin-bottom: 32px; }
.accounting-context a { color: #ffc300; display: inline-flex; min-height: 48px; align-items: center; }

@media (max-width: 599px) { .hero h1 { font-size: clamp(38px, 10.6vw, 52px); max-width: none; letter-spacing: -.025em; } }

@media (min-width: 1040px) { .hero h1 { font-size: clamp(80px, 7vw, 104px); max-width: none; } }

.led p { overflow-wrap: anywhere; }
