/* ============================================================
   Azaração — Home (mobile-first)
   Paleta: roxo profundo da logo
   ============================================================ */

:root {
  --az-purple-900: #2E1065;
  --az-purple-800: #3B0764;
  --az-purple-700: #4C1D95;
  --az-purple-600: #5B21B6;
  --az-purple-500: #6D28D9;
  --az-purple-100: #EDE9FE;
  --az-purple-50:  #F5F3FF;
  --az-pink-600:   #BE185D;
  --az-pink-500:   #DB2777;
  --az-ink:        #1F1235;
  --az-body:       #4B4266;
  --az-muted:      #6B6480;
  --az-line:       #E7E2F5;
  --az-white:      #FFFFFF;
  --az-gradient:   linear-gradient(135deg, var(--az-purple-700), var(--az-pink-500));
}

/* Reset escopado */
.lm-hero *, .lm-how-it-works *, .lm-features *,
.lm-community-build *, .lm-guide *, .lm-safety *,
.lm-faq *, .lm-cta-section * { box-sizing: border-box; }

/* Container com safe-area (iPhone notch) */
.lm-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left:  max(clamp(16px, 4vw, 32px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right));
}

/* Botões */
.lm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  -webkit-tap-highlight-color: transparent;
}
.lm-btn:focus-visible { outline: 3px solid var(--az-purple-500); outline-offset: 3px; }
.lm-btn-primary {
  background: var(--az-gradient); color: var(--az-white);
  box-shadow: 0 10px 24px rgba(76, 29, 149, .35);
}
.lm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(76, 29, 149, .45);
}
.lm-btn-outline {
  background: var(--az-white); color: var(--az-purple-700);
  border-color: #C4B5FD;
}
.lm-btn-outline:hover { background: var(--az-purple-50); border-color: var(--az-purple-500); }
.lm-btn-lg { padding: 0 30px; min-height: 54px; }

/* Seções */
.lm-hero, .lm-how-it-works, .lm-features,
.lm-community-build, .lm-guide, .lm-safety,
.lm-faq, .lm-cta-section {
  padding: clamp(48px, 7vw, 96px) 0;
}

/* Section header */
.lm-section-header { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.lm-section-badge {
  display: inline-block; background: var(--az-purple-50); color: var(--az-purple-700);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.lm-section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 14px 0 10px;
  line-height: 1.2; color: var(--az-ink);
}
.lm-section-subtitle { color: var(--az-body); font-size: clamp(.95rem, 1.7vw, 1.1rem); }

/* ============================================================
   HERO
   ============================================================ */
.lm-hero { position: relative; overflow: hidden; }
.lm-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 80% 0%, #DDD1F7 0%, transparent 60%),
    radial-gradient(800px 300px at 10% 30%, #C7B8F3 0%, transparent 60%);
}
.lm-hero-inner {
  position: relative; display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.lm-hero-content h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.15; margin: 18px 0; color: var(--az-ink);
}
.lm-gradient {
  background: var(--az-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lm-hero-content p {
  color: var(--az-body); font-size: clamp(.95rem, 1.7vw, 1.1rem);
  max-width: 52ch;
}
.lm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.lm-hero-stats { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 18px; }
.lm-hero-stats div { display: flex; flex-direction: column; }
.lm-hero-stats strong { font-size: 1.15rem; color: var(--az-purple-700); }
.lm-hero-stats span { font-size: .85rem; color: var(--az-muted); }

/* ============================================================
   HERO VISUAL — cards sobrepostos (desktop)
   ============================================================ */
.lm-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 40px;
}

.lm-phone {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 420px;
}

.lm-hero-card {
  position: absolute;
  top: 0;
  width: 62%;
  max-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--az-white);
  box-shadow: 0 18px 40px rgba(46, 16, 101, .25);
  transition: transform .3s ease, box-shadow .3s ease;
}

.lm-hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Card da esquerda (rapaz) — atrás, levemente para baixo */
.lm-hero-card:first-child {
  left: 0;
  top: 30px;
  z-index: 1;
  transform: rotate(-3deg);
}

/* Card da direita (mulher) — na frente, mais alto */
.lm-hero-card:last-child {
  right: 0;
  top: 0;
  z-index: 2;
  transform: rotate(2deg);
}

@media (hover: hover) {
  .lm-hero-card:first-child:hover { transform: rotate(-3deg) translateY(-6px); }
  .lm-hero-card:last-child:hover  { transform: rotate(2deg)  translateY(-6px); }
}

/* Fallback: imagem quebrada → placeholder roxo com 💜 */
img.lm-img-broken { display: none !important; }
.lm-hero-card:has(img.lm-img-broken) {
  background: linear-gradient(135deg, var(--az-purple-100), #DDD6FE);
  aspect-ratio: 4/5;
}
.lm-hero-card:has(img.lm-img-broken)::after {
  content: "💜";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--az-purple-500);
}

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.lm-steps {
  display: flex; align-items: stretch; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.lm-step {
  flex: 1 1 200px; min-width: 200px; background: var(--az-white);
  border-radius: 16px; padding: 22px; text-align: center;
  box-shadow: 0 8px 26px rgba(46, 16, 101, .08);
  position: relative;
}
.lm-step-number {
  position: absolute; top: 12px; right: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--az-purple-700); color: var(--az-white);
  font-size: .8rem; display: flex; align-items: center;
  justify-content: center; font-weight: 700;
}
.lm-step-icon { font-size: 1.8rem; margin-bottom: 8px; }
.lm-step h3 { font-size: 1.05rem; margin: 6px 0; color: var(--az-ink); }
.lm-step p { font-size: .9rem; color: var(--az-body); margin: 0; }
.lm-step-arrow { align-self: center; color: var(--az-purple-500); font-size: 1.4rem; }
.lm-steps-cta {
  text-align: center; margin-top: 36px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   FEATURES
   ============================================================ */
.lm-features { background: var(--az-purple-50); }
.lm-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.lm-feature {
  background: var(--az-white); border-radius: 16px; padding: 24px;
  box-shadow: 0 6px 22px rgba(46, 16, 101, .07);
}
.lm-feature-icon { font-size: 1.8rem; margin-bottom: 8px; }
.lm-feature h3 { font-size: 1.05rem; margin: 6px 0; color: var(--az-ink); }
.lm-feature p { font-size: .92rem; color: var(--az-body); margin: 0; }

/* ============================================================
   COMUNIDADE
   ============================================================ */
.lm-community-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 760px; margin: 32px auto 12px;
}
.lm-community-person {
  margin: 0; background: var(--az-white); border-radius: 18px;
  overflow: hidden; box-shadow: 0 8px 28px rgba(46, 16, 101, .14);
}
.lm-community-person img {
  display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover;
}
.lm-community-person:has(img.lm-img-broken) { display: none; }

/* ============================================================
   MANUAL
   ============================================================ */
.lm-guide-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px); align-items: center;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.lm-guide-block.lm-guide-reverse .lm-guide-text { order: 2; }
.lm-guide-block.lm-guide-reverse .lm-guide-visual { order: 1; }
.lm-guide-visual img {
  display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 16px; box-shadow: 0 10px 30px rgba(46, 16, 101, .14);
}
.lm-guide-step {
  display: inline-block; background: var(--az-purple-50);
  color: var(--az-purple-700); padding: 4px 12px;
  border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.lm-guide-text h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin: 10px 0 8px; color: var(--az-ink);
}
.lm-guide-list {
  padding-left: 0; list-style: none; margin: 14px 0;
  display: grid; gap: 8px;
}
.lm-guide-list li { font-size: .95rem; color: var(--az-body); }
.lm-guide-tip {
  background: var(--az-purple-50);
  border-left: 4px solid var(--az-purple-700);
  padding: 12px 14px; border-radius: 8px;
  font-size: .9rem; margin-top: 14px;
  color: var(--az-ink);
}

/* ============================================================
   SEGURANÇA
   ============================================================ */
.lm-safety { background: var(--az-purple-50); }
.lm-safety-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.lm-safety-card {
  background: var(--az-white); border-radius: 16px; padding: 22px;
  box-shadow: 0 6px 22px rgba(46, 16, 101, .07);
}
.lm-safety-icon { font-size: 1.7rem; margin-bottom: 6px; }
.lm-safety-card h4 { font-size: 1rem; margin: 6px 0; color: var(--az-ink); }
.lm-safety-card p { font-size: .9rem; color: var(--az-body); margin: 0; }

.lm-safety-tips {
  margin-top: 40px; background: var(--az-white); border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 8px 26px rgba(46, 16, 101, .08);
}
.lm-safety-tips h3 { margin: 0 0 16px; font-size: 1.15rem; color: var(--az-ink); }
.lm-safety-tips-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; font-size: .92rem; color: var(--az-body);
}

/* ============================================================
   FAQ
   ============================================================ */
.lm-faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.lm-faq-item {
  background: var(--az-white); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(46, 16, 101, .06);
  border: 1px solid var(--az-line);
}
.lm-faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; list-style: none; color: var(--az-ink);
  min-height: 44px;
}
.lm-faq-item summary::-webkit-details-marker { display: none; }
.lm-faq-arrow { transition: transform .2s ease; color: var(--az-purple-700); }
.lm-faq-item[open] .lm-faq-arrow { transform: rotate(180deg); }
.lm-faq-answer { margin-top: 12px; color: var(--az-body); font-size: .95rem; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.lm-cta-section {
  background: var(--az-gradient); color: var(--az-white); text-align: center;
  padding-bottom: max(clamp(48px, 7vw, 96px), env(safe-area-inset-bottom));
}
.lm-cta-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem); margin: 0 0 12px; color: var(--az-white);
}
.lm-cta-content p { max-width: 640px; margin: 0 auto 24px; opacity: .95; }
.lm-cta-content .lm-btn-primary {
  background: var(--az-white); color: var(--az-purple-700);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}
.lm-cta-content .lm-btn-outline {
  background: transparent; color: var(--az-white); border-color: var(--az-white);
}
.lm-cta-content .lm-btn-outline:hover { background: rgba(255, 255, 255, .12); }
.lm-cta-note { display: block; margin-top: 14px; font-size: .85rem; opacity: .85; }

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* Tablets e celulares grandes — hero vira 1 coluna, mas visual ainda aparece */
@media (max-width: 900px) {
  .lm-hero-inner { grid-template-columns: 1fr; }
  .lm-hero-visual { order: -1; }
  .lm-phone { max-width: 380px; height: 380px; }
  .lm-guide-block { grid-template-columns: 1fr; }
  .lm-guide-block.lm-guide-reverse .lm-guide-text { order: 0; }
  .lm-guide-block.lm-guide-reverse .lm-guide-visual { order: 0; }
}

/* Celulares grandes */
@media (max-width: 560px) {
  .lm-community-gallery { grid-template-columns: 1fr; gap: 12px; }
  .lm-hero-cta .lm-btn,
  .lm-steps-cta .lm-btn { flex: 1 1 100%; }
  .lm-step-arrow { display: none; }
  .lm-hero-stats { gap: 14px 22px; }
}

/* Celulares pequenos — esconde TODO o bloco visual do hero */
@media (max-width: 480px) {
  .lm-hero-visual { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-btn, .lm-faq-arrow, .lm-hero-card { transition: none; }
}
