/* ================================================================
   DoceFinance — Classes .lp-* ainda em uso pelas paginas publicas.
   Extraidas de landing.css (design antigo, ~95% codigo morto).
   Usadas por: LandingPage/Sobre/Recursos/... (.lp-reveal via landing-tokens.css,
   galeria .lp-cf*), LandingNav (.lp-loading-*), LandingFooter (.lp-back-top).
   ================================================================ */

:root {
  --lp-blue-400: #6b93d6;
  --lp-blue-500: #4677c8;
  --lp-blue-700: #2a4c96;
  --lp-gold-400: #f59e0b;
  --lp-white:    #ffffff;
  --lp-dark-bg:  #060d1f;
  --lp-spring:   0.35s cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Overlay de navegacao (LandingNav) ── */
.lp-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--lp-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lp-fade-in .18s ease;
}
@keyframes lp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lp-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.lp-loading-logo {
  width: 86px; height: 86px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(50, 91, 179, .24), 0 0 0 1px rgba(255, 255, 255, .07);
  animation: lp-pulse .9s ease-in-out infinite alternate;
}
@keyframes lp-pulse {
  from { transform: scale(1);    opacity: .88; box-shadow: 0 8px 40px rgba(50, 91, 179, .18); }
  to   { transform: scale(1.07); opacity: 1;   box-shadow: 0 12px 60px rgba(50, 91, 179, .36); }
}
.lp-loading-dots { display: flex; gap: 10px; }
.lp-loading-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lp-blue-500);
  animation: lp-bounce .6s infinite alternate;
}
.lp-loading-dot:nth-child(2) { animation-delay: .18s; background: var(--lp-blue-400); }
.lp-loading-dot:nth-child(3) { animation-delay: .36s; background: var(--lp-gold-400); }
@keyframes lp-bounce {
  from { transform: translateY(0) scale(1);      opacity: .65; }
  to   { transform: translateY(-12px) scale(1.1); opacity: 1; }
}

/* ── Botao "voltar ao topo" (LandingFooter) ── */
.lp-back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lp-blue-500), var(--lp-blue-700));
  color: var(--lp-white) !important;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(50, 91, 179, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform var(--lp-spring), box-shadow var(--lp-spring);
  text-decoration: none;
}
.lp-back-top:hover {
  box-shadow: 0 8px 28px rgba(50, 91, 179, .52);
  transform: translateY(-3px);
  color: var(--lp-white) !important;
  text-decoration: none;
}

/* ── Galeria coverflow "A sua arte, a nossa gestao" (interop.js -> lpGallery) ── */
.lp-cf { --lp-cf-h: 360px; }
.lp-cf__stage {
  position: relative;
  height: var(--lp-cf-h);
  max-width: 760px;
  margin: 0 auto;
  perspective: 1500px;
}
.lp-cf__item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 100%;
  margin: 0;
  border-radius: var(--df-radius-xl);
  overflow: hidden;
  background: rgb(var(--df-surface-container));
  transform: translateX(-50%) scale(.78);
  opacity: 0;
  /* So transform/opacity sao compositados; filter/box-shadow trocam sem animar. */
  transition: transform .7s cubic-bezier(.4, 0, .2, 1),
              opacity .6s ease;
  will-change: transform, opacity;
}
.lp-cf__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lp-cf__item::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15, 23, 42, .85), rgba(15, 23, 42, 0));
  pointer-events: none;
  z-index: 1;
}
.lp-cf__caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
}
.lp-cf__item.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
  box-shadow: 0 30px 60px -22px rgba(15, 23, 42, .45);
}
.lp-cf__item.is-prev,
.lp-cf__item.is-next {
  opacity: .5;
  filter: grayscale(.45) brightness(.82);
  z-index: 1;
  cursor: pointer;
}
.lp-cf__item.is-prev:hover,
.lp-cf__item.is-next:hover {
  opacity: .72;
  filter: grayscale(.15) brightness(.92);
}
.lp-cf__item.is-prev { transform: translateX(-92%) scale(.78) rotateY(22deg); }
.lp-cf__item.is-next { transform: translateX(-8%) scale(.78) rotateY(-22deg); }
.lp-cf__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.lp-cf__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--df-outline) / .45);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.lp-cf__dot.is-active {
  width: 26px;
  background: rgb(var(--df-primary-container));
}

/* ── Toggle de precos (LandingPage: mensalidade/creditos, periodo) ── */
.lp-toggle {
  display: flex;
  width: fit-content;
  gap: .25rem;
  padding: .3rem;
  background: rgb(var(--df-surface-container-low));
  border: 1px solid rgb(var(--df-outline) / .3);
  border-radius: 999px;
}
.lp-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 0;
  border: 0;
  background: transparent;
  color: rgb(var(--df-on-surface-variant));
  font-weight: 700;
  font-size: .9rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lp-toggle--sm .lp-toggle__btn { padding: .4rem .85rem; font-size: .82rem; }
.lp-toggle__btn.is-active {
  background: rgb(var(--df-primary-container));
  color: #fff;
}
.lp-toggle__save {
  font-size: .68rem;
  font-weight: 800;
  color: rgb(var(--df-primary-container));
}
.lp-toggle__btn.is-active .lp-toggle__save { color: #fff; }
@media (max-width: 480px) {
  .lp-toggle { width: 100%; }
  .lp-toggle__btn { flex: 1 1 0; justify-content: center; }
  /* .lp-toggle--sm (Mensal/Trimestral/Anual) tem um selo de desconto a mais por
     botao — em ecrãs estreitos os 3 itens em linha nao cabem lado a lado
     ("Trimestral" + "−14%"), o que forcava a fila a transbordar o ecrã.
     Empilha rotulo e selo para cada botao só precisar da largura da palavra
     mais comprida, nao da soma das duas. */
  .lp-toggle--sm .lp-toggle__btn {
    flex-direction: column;
    gap: .15rem;
    padding: .5rem .35rem;
  }
}
@media (max-width: 640px) {
  .lp-cf { --lp-cf-h: 260px; }
  .lp-cf__item { width: 78%; }
  .lp-cf__item.is-prev { transform: translateX(-102%) scale(.82) rotateY(18deg); }
  .lp-cf__item.is-next { transform: translateX(2%) scale(.82) rotateY(-18deg); }
  .lp-cf__item.is-prev,
  .lp-cf__item.is-next { opacity: .32; }
  .lp-cf__caption { font-size: .8rem; left: .9rem; right: .9rem; bottom: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-loading-logo,
  .lp-loading-dot { animation: none !important; }
  .lp-cf__item { transition: opacity .3s ease; }
}
