/* ============================================================
   Corte Comigo – public/css/home.css
   Tela inicial: splash animada (fundo preto + logo) e hero.
   ============================================================ */

/* ---------------- splash ---------------- */

.splash {
  position: fixed;
  inset: 0;                       /* cobre 100% da viewport */
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash img {
  width: min(340px, 72vw);
  height: auto;
  opacity: 0;                     /* invisível até o fade-in */
  transform: scale(0.96);
  will-change: opacity, transform;
}

/* estado controlado pelo JS: dispara o surgimento suave da logo */
.splash.splash-pronta img {
  animation: logoEntra 0.9s ease forwards;
}

/* estado final: tela inteira desaparece suavemente */
.splash.splash-saindo {
  animation: splashSai 0.7s ease forwards;
  pointer-events: none;
}

@keyframes logoEntra {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes splashSai {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* fallback caso a imagem não carregue (troca por marca em texto) */
.splash-marca {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  opacity: 0;
}
.splash.splash-pronta .splash-marca {
  animation: logoEntra 0.9s ease forwards;
}
.splash-marca span { color: var(--brass); }

/* acessibilidade: quem prefere menos movimento pula a coreografia */
@media (prefers-reduced-motion: reduce) {
  .splash img,
  .splash.splash-pronta img,
  .splash-marca,
  .splash.splash-pronta .splash-marca {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
  .splash.splash-saindo { animation-duration: 0.01s; }
}

/* ---------------- hero da página revelada ---------------- */

.hero-home {
  min-height: calc(100vh - 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 64px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-home h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  margin: 10px 0 12px;
  letter-spacing: -1px;
}

.hero-home p {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 30px;
}

.hero-acoes {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-lg {
  padding: 14px 38px;
  font-size: 16.5px;
}

/* ---------------- benefícios e planos (sempre visíveis) ---------------- */

.beneficios-home,
.planos-home {
  text-align: center;
  padding: 8px 20px 72px;
  scroll-margin-top: 90px;
}

.beneficios-home h2,
.planos-home h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 10px 0 26px;
  letter-spacing: -0.5px;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.beneficio-card h3 { margin: 0 0 6px; font-size: 17px; }
.beneficio-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

.planos-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto 18px;
}

.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
  text-align: left;
}

/* card de plano público (os estilos internos vêm de components.css) */
.plan-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan-card:hover { box-shadow: var(--shadow-md); }

.plan-card-free { border-color: var(--brass); }

.plan-card a.btn,
.plan-card button.btn { margin-top: auto; }

.planos-termos {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 660px;
  margin: 22px auto 0;
}

.planos-vazio {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 420px;
  margin: 8px auto 0;
}
