/* Fotos, slideshow e vídeo de fundo do site (11/10/2026).
   Componentes: .tc-band (faixa full-bleed com vídeo ou slides atrás do texto),
   .tc-marquee (fotos rolando), .tc-interlude (foto com parallax), .tc-device (vídeo do app),
   .tc-aurora (fundo vivo do hero). O JS (media.js) só liga vídeo/slides perto da tela;
   prefers-reduced-motion e economia de dados ficam com o poster parado. */

.tc-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  padding: 96px 0;
  color: #fff;
  background: var(--dark, #0f1e19);
}
.tc-band--short { min-height: min(60vh, 520px); }
.tc-band__media,
.tc-band__media > video,
.tc-band__media > img,
.tc-slides,
.tc-slides > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tc-band__media { z-index: -2; }
.tc-band[data-tc="agachamento"] .tc-band__media > video { object-position: 50% 12%; }
.tc-band__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 20, 16, .88) 0%, rgba(8, 20, 16, .62) 48%, rgba(8, 20, 16, .18) 100%),
    linear-gradient(0deg, rgba(8, 20, 16, .55) 0%, transparent 40%);
}
.tc-band--center .tc-band__veil {
  background: radial-gradient(ellipse at center, rgba(8, 20, 16, .66) 0%, rgba(8, 20, 16, .4) 75%);
}
.tc-band__inner { width: 100%; max-width: var(--max-w, 1200px); margin: 0 auto; padding: 0 24px; }
.tc-band__copy { max-width: 620px; }
.tc-band--center .tc-band__copy { margin: 0 auto; text-align: center; }
.tc-band__eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-light, #4fe0a6);
  margin-bottom: 14px;
}
.tc-band h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 18px;
  color: #fff;
}
.tc-band p {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  margin: 0 0 28px;
}
.tc-band__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.tc-band--center .tc-band__ctas { justify-content: center; }
.tc-band__ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}
.tc-band__ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.tc-band .section-title, .tc-band .section-subtitle { color: inherit; }
.tc-band .section-subtitle { color: rgba(255, 255, 255, .86); }

/* slideshow: a foto da vez cresce devagar (Ken Burns) e cruza com a próxima */
.tc-slides > img { opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease; }
.tc-slides > img.is-on { opacity: 1; animation: tc-kenburns 9s ease-out forwards; }
.tc-slides > img:nth-child(even).is-on { animation-name: tc-kenburns-alt; }
@keyframes tc-kenburns { from { transform: scale(1.12) translate3d(-1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes tc-kenburns-alt { from { transform: scale(1.02) translate3d(1%, 0, 0); } to { transform: scale(1.12) translate3d(-1%, -1%, 0); } }

/* fotos rolando em faixa contínua */
.tc-marquee { position: relative; overflow: hidden; padding: 72px 0 80px; background: var(--bg, #f4f8f6); }
.tc-marquee__head { max-width: var(--max-w, 1200px); margin: 0 auto 32px; padding: 0 24px; text-align: center; }
.tc-marquee__head .section-subtitle { margin-left: auto; margin-right: auto; }
.tc-marquee__track { display: flex; gap: 16px; width: max-content; animation: tc-marquee 70s linear infinite; }
.tc-marquee:hover .tc-marquee__track { animation-play-state: paused; }
.tc-marquee figure { margin: 0; flex: 0 0 auto; width: clamp(220px, 26vw, 340px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--bg-alt, #e9f2ee); }
.tc-marquee figure:nth-child(3n+2) { aspect-ratio: 1 / 1; align-self: center; }
.tc-marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tc-marquee figure:hover img { transform: scale(1.05); }
.tc-marquee::before, .tc-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8vw; z-index: 1; pointer-events: none; }
.tc-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg, #f4f8f6), transparent); }
.tc-marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg, #f4f8f6), transparent); }
@keyframes tc-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* foto que desliza enquanto cruza a tela */
.tc-interlude { position: relative; overflow: hidden; height: clamp(260px, 46vw, 520px); background: var(--dark, #0f1e19); }
.tc-interlude > img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.tc-interlude--slides { height: clamp(220px, 34vw, 440px); }
@supports (animation-timeline: view()) {
  .tc-interlude > img { animation: tc-parallax linear both; animation-timeline: view(); }
  @keyframes tc-parallax { from { transform: translate3d(0, -9%, 0); } to { transform: translate3d(0, 9%, 0); } }
}

/* vídeo real do app numa moldura de navegador */
.tc-device { max-width: 980px; margin: 8px auto 48px; }
.tc-device__frame { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-xl, 0 28px 72px rgba(15, 30, 25, .15)); border: 1px solid var(--border, #dfe9e4); }
.tc-device__bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-alt, #e9f2ee); }
.tc-device__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9d6d0; }
.tc-device video, .tc-device img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tc-device figcaption { margin-top: 14px; text-align: center; font-size: .95rem; color: var(--text-secondary, #4a5c54); }

/* fundo vivo do hero: dois brilhos da marca que derivam devagar */
.tc-aurora { position: relative; isolation: isolate; }
.tc-aurora::before, .tc-aurora::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  pointer-events: none;
}
.tc-aurora::before { top: -8%; right: 4%; background: radial-gradient(circle, rgba(0, 200, 83, .55), transparent 65%); animation: tc-drift 18s ease-in-out infinite alternate; }
.tc-aurora::after { bottom: -12%; left: -6%; background: radial-gradient(circle, rgba(0, 191, 165, .45), transparent 65%); animation: tc-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes tc-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6vw, 4vw, 0) scale(1.15); } }

/* CTA final sobre vídeo: o cartão vira vidro (camada real sobre vídeo em movimento) avoid-ai-design-ignore: K3 */
.tc-band .cta-box { background: rgba(10, 24, 19, .55); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.tc-band .cta-box h2, .tc-band .cta-box p { color: #fff; }

@media (max-width: 768px) {
  .tc-band { min-height: 0; padding: 88px 0 72px; }
  .tc-band__veil { background: linear-gradient(0deg, rgba(8, 20, 16, .9) 0%, rgba(8, 20, 16, .6) 60%, rgba(8, 20, 16, .35) 100%); }
  .tc-marquee { padding: 56px 0 60px; }
  .tc-marquee__track { animation-duration: 50s; }
  /* blur animado atrás do h1 atrasava o LCP no celular (PSI 90 -> 80, 11/10); o hero já tem degradê estático */
  .tc-aurora::before, .tc-aurora::after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-slides > img.is-on, .tc-marquee__track, .tc-interlude > img, .tc-aurora::before, .tc-aurora::after { animation: none !important; }
  .tc-slides > img { transition: none; }
  .tc-marquee { overflow-x: auto; }
}
