/* ==========================================================================
   pwE — Home visual (menos texto, mais experiência do app)
   Carregado somente em index.html (EN e PT-BR). Depende de styles.css.
   ========================================================================== */

section[id] { scroll-margin-top: 84px; }

/* ---------- Moldura de celular ---------- */
.phone {
  position: relative;
  border-radius: 12% / 6%;
  border: 6px solid #1b1713;
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(40, 28, 10, 0.55), 0 0 0 1.5px rgba(197, 160, 89, 0.55);
}
.phone img { display: block; width: 100%; height: auto; }

/* ---------- Hero ---------- */
.h-hero { padding: 64px 0 40px; overflow: hidden; }
.h-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.h-badge {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--border-sacred);
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-accent);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.h-title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.h-title em { color: var(--gold-accent); font-style: normal; }
.h-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 460px;
}
.h-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 14px;
}
.h-cta .btn-store {
  flex: 1 1 210px;
  min-width: 210px;
}
.h-cta .btn-web {
  flex: 1 1 100%;
}

/* Trio de celulares */
.h-phones { position: relative; width: 100%; max-width: 500px; margin: 0 auto; padding: 10px 0 20px; }
.h-phones .phone-main { width: 56%; margin: 0 auto; z-index: 3; animation: h-float 7s ease-in-out infinite; }
.h-phones .phone-side { position: absolute; top: 12%; width: 42%; z-index: 1; opacity: 0.96; }
.h-phones .phone-left { left: -2%; transform: rotate(-7deg); }
.h-phones .phone-right { right: -2%; transform: rotate(7deg); }
@keyframes h-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.h-glow {
  position: absolute; inset: 8% 6%; z-index: 0;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.38), transparent 68%);
  filter: blur(30px);
}

/* ---------- Faixa de confiança ---------- */
.h-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
  padding: 22px 24px;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-parchment-deep);
}
.h-chips span { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.h-chips span::before { content: "✠"; color: var(--gold-accent); margin-right: 7px; }

/* ---------- Cabeçalho de seção ---------- */
.h-section { padding: 84px 0; }
.h-head { text-align: center; margin-bottom: 48px; }
.h-head .section-tag { margin-bottom: 10px; }
.h-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- 4 passos ---------- */
.h-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.h-step { text-align: center; }
.h-step .phone { max-width: 236px; margin: 0 auto 20px; transition: var(--transition); }
.h-step:hover .phone { transform: translateY(-6px); }
.h-step-num { font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--gold-accent); font-weight: 700; }
.h-step-name { font-size: 1.35rem; margin: 2px 0 4px; }
.h-step-line { font-family: 'Lora', serif; font-style: italic; color: var(--text-secondary); font-size: 1.02rem; }

/* ---------- Dentro do app (faixa escura) ---------- */
.h-inside { background: #12100E; color: #F5EFEB; }
.h-inside .h-head h2 { color: #F5EFEB; }
.h-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.h-duo-item { text-align: center; }
.h-duo-item .phone { max-width: 260px; margin: 0 auto 22px; }
.h-duo-item h3 { color: #F5EFEB; font-size: 1.3rem; margin-bottom: 4px; }
.h-duo-item p { font-family: 'Lora', serif; font-style: italic; color: #B8ACA0; }

/* ---------- CTA final ---------- */
.h-final { text-align: center; padding: 90px 0; background: radial-gradient(circle at center, var(--bg-parchment-deep), var(--bg-parchment)); }
.h-final h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.h-final .h-sub { margin: 0 auto 28px; }
.h-final .h-cta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 16px;
}
.h-final .h-cta .btn-store {
  flex: 0 1 280px;
  width: 280px;
  max-width: 100%;
}
.h-note {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 30px;
}

/* ---------- Revelação ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .h-phones .phone-main { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .h-hero { padding: 36px 0 24px; }
  .h-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .h-sub { margin-left: auto; margin-right: auto; }
  .h-cta {
    flex-direction: column;
    align-items: center;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
  }
  .h-cta .btn-store {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  .h-final .h-cta {
    flex-direction: column;
    align-items: center;
    max-width: 330px;
    margin: 0 auto 14px;
  }
  .h-final .h-cta .btn-store {
    width: 100%;
    flex: 1 1 100%;
  }
  .h-steps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 20px; padding: 0 24px 16px; margin: 0 -24px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .h-steps::-webkit-scrollbar { display: none; }
  .h-step { flex: 0 0 62%; max-width: 240px; scroll-snap-align: center; }
  .h-section { padding: 56px 0; }
  .h-head { margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .h-cta { width: 100%; max-width: 100%; }
  .h-phones { max-width: 340px; }
  .h-duo { gap: 20px; }
  .h-duo-item .phone { max-width: 150px; }
  .h-duo-item h3 { font-size: 1.05rem; }
  .h-duo-item p { font-size: 0.9rem; }
  .h-chips { padding: 16px; }
  .h-chips span { font-size: 0.8rem; }
}

/* ==========================================================================
   Convicção — sintonia com a Magnifica Humanitas (Leão XIV)
   MOBILE FIRST: o estilo base vale para telas estreitas; os breakpoints
   abaixo (min-width) apenas ampliam a composição.
   ========================================================================== */
.h-creed { background: var(--bg-parchment-deep); border-top: 1px solid var(--border-card); border-bottom: 1px solid var(--border-card); padding: 48px 0; }
.h-creed .h-head { margin-bottom: 24px; }
.h-creed .h-head h2 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
.h-creed-quote {
  margin: 0 auto 28px; max-width: 640px; padding: 0 4px; text-align: center;
  font-family: 'Lora', serif; font-style: italic; font-size: 1.08rem; line-height: 1.6; color: var(--text-secondary);
}
.h-creed-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--text-muted); }
.h-creed-quote::before { content: "✠"; display: block; margin-bottom: 8px; color: var(--gold-accent); font-style: normal; }
.h-creed-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.h-creed-item {
  background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md);
  padding: 20px 18px; box-shadow: var(--shadow-sacred);
}
.h-creed-item h3 { font-size: 1.12rem; line-height: 1.25; margin: 0 0 6px; color: var(--text-primary); }
.h-creed-item p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--text-secondary); }
.h-creed-link { display: block; margin: 24px auto 0; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--gold-dark); min-height: 44px; line-height: 44px; }
.h-creed-link:hover { text-decoration: underline; }
@media (min-width: 640px) {
  .h-creed { padding: 64px 0; }
  .h-creed-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .h-creed-quote { font-size: 1.2rem; }
}
@media (min-width: 1000px) {
  .h-creed { padding: 84px 0; }
  .h-creed-list { grid-template-columns: repeat(4, 1fr); }
}
