/* ═══════════════════════════════════════════════════
   MATERIAIS / ISCAS DIGITAIS — Lead Magnets P2
   Prefixo: .lm-  (lead magnet)
   Depende de: style.css (tokens, footer, navbar base)
═══════════════════════════════════════════════════ */

/* ─── NAVBAR ENXUTA (logo + voltar) ──────────────── */
.lm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background: rgba(20, 17, 15, 0.55);
  backdrop-filter: blur(18px);
}
.lm-nav-logo img { height: 68px; width: auto; display: block; }
.lm-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.lm-nav-back svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.lm-nav-back:hover { color: var(--amarelo); gap: 12px; }

/* ─── HERO DA ISCA (split: copy + form) ──────────── */
.lm-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-dark);
  padding: 140px 80px 100px;
}
.lm-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.lm-hero-glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(241, 90, 42, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.lm-hero-glow-2 {
  position: absolute;
  bottom: -15%; left: -8%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(251, 174, 66, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.lm-hero-watermark {
  position: absolute;
  left: -2%; bottom: -8%;
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: clamp(180px, 24vw, 340px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.022);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

.lm-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}

/* ── Coluna esquerda: promessa + bullets ── */
.lm-hero-copy { max-width: 620px; }
.lm-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(251, 174, 66, 0.12);
  border: 1px solid rgba(251, 174, 66, 0.3);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amarelo);
  margin-bottom: 26px;
}
.lm-badge svg { width: 14px; height: 14px; fill: var(--amarelo); }

.lm-hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: var(--fw-display);
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 22px;
}
.lm-hero-title .gold {
  background: linear-gradient(180deg, var(--amarelo) 0%, #d4891a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lm-hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 34px;
  max-width: 540px;
}

.lm-bullets { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.lm-bullet {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.lm-bullet-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.lm-bullet-check svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ── Coluna direita: mockup + form ── */
.lm-hero-form-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mockup 3D do PDF */
.lm-mockup {
  position: relative;
  width: 230px;
  margin-bottom: -56px;
  z-index: 3;
  filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.55));
  transform: perspective(1400px) rotateY(-16deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}
.lm-hero-form-col:hover .lm-mockup {
  transform: perspective(1400px) rotateY(-10deg) rotateX(2deg) translateY(-6px);
}
.lm-mockup img {
  width: 100%;
  display: block;
  border-radius: 6px 12px 12px 6px;
  border-left: 4px solid rgba(0, 0, 0, 0.25);
}
/* Fallback de capa quando não há imagem (placeholder com gradiente da marca) */
.lm-mockup-fallback {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  border-radius: 6px 12px 12px 6px;
  border-left: 4px solid rgba(0, 0, 0, 0.25);
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 22px;
}
.lm-mockup-fallback::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--grad-brand);
}
.lm-mockup-fallback-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amarelo);
}
.lm-mockup-fallback-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.12;
  color: #fff;
}
.lm-mockup-fallback-logo { height: 26px; width: auto; opacity: 0.85; }

/* Card do formulário */
.lm-form-card {
  width: 100%;
  background: var(--branco);
  border-radius: var(--radius-card);
  padding: 76px 36px 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  position: relative;
}
.lm-form-head { text-align: center; margin-bottom: 24px; }
.lm-form-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--marrom);
  margin-bottom: 6px;
}
.lm-form-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--cinza);
}

.lm-field { margin-bottom: 16px; }
.lm-field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--marrom);
  margin-bottom: 7px;
}
.lm-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e7e1da;
  border-radius: var(--radius-btn);
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: var(--escuro);
  background: #fcfaf8;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lm-field input::placeholder { color: #b8afa6; }
.lm-field input:focus {
  outline: none;
  border-color: var(--laranja);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(241, 90, 42, 0.1);
}
.lm-field input.lm-invalid {
  border-color: var(--vermelho);
  background: #fdf4f4;
}
.lm-field-error {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--vermelho);
  margin-top: 6px;
}
.lm-field.lm-has-error .lm-field-error { display: block; }

.lm-submit {
  width: 100%;
  margin-top: 8px;
  padding: 17px 24px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--laranja);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
}
.lm-submit svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.lm-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(241, 90, 42, 0.4); }
.lm-submit:hover svg { transform: translateX(4px); }
.lm-submit:disabled { opacity: 0.7; cursor: wait; transform: none; box-shadow: none; }

.lm-form-privacy {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  color: #a99f95;
  text-align: center;
  margin-top: 16px;
}
.lm-form-privacy a { color: var(--cinza); text-decoration: underline; }

/* Spinner do botão */
.lm-spinner {
  width: 18px; height: 18px;
  border: 2.2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lm-spin 0.7s linear infinite;
}
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* ─── ESTADO DE SUCESSO (substitui o conteúdo do card) ─── */
.lm-success { display: none; text-align: center; padding: 14px 4px 8px; }
.lm-form-card.is-success .lm-form-body { display: none; }
.lm-form-card.is-success .lm-success { display: block; animation: lm-pop 0.5s var(--ease); }
@keyframes lm-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

.lm-success-check {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(241, 90, 42, 0.35);
}
.lm-success-check svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lm-success-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--marrom);
  margin-bottom: 8px;
}
.lm-success-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cinza);
  margin-bottom: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.lm-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 17px 24px;
  border-radius: var(--radius-btn);
  background: var(--grad-brand);
  color: var(--marrom);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lm-download-btn svg { width: 19px; height: 19px; stroke: var(--marrom); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lm-download-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(251, 174, 66, 0.45); }
.lm-success-mail {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--cinza);
  margin-top: 16px;
}

/* ─── SEÇÃO: O QUE VOCÊ VAI ENCONTRAR ────────────── */
.lm-content {
  background: var(--branco);
  padding: 110px 80px;
}
.lm-content-inner { max-width: 1180px; margin: 0 auto; }
.lm-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 60px;
}
.lm-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laranja);
}
.lm-sec-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: var(--fw-display);
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--grad-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lm-sec-sub { font-size: 18px; color: var(--cinza); max-width: 600px; line-height: 1.6; }

.lm-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.lm-topic {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 28px;
  border-radius: var(--radius-card);
  background: var(--off-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lm-topic:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(34, 30, 26, 0.1); }
.lm-topic-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 13px;
  background: rgba(251, 174, 66, 0.15);
  display: grid; place-items: center;
}
.lm-topic-icon svg { width: 24px; height: 24px; stroke: var(--laranja); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lm-topic-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--marrom);
  margin-bottom: 7px;
}
.lm-topic-text { font-size: 15px; line-height: 1.6; color: var(--cinza); }

/* ─── SEÇÃO: PROVA / AUTORIDADE ──────────────────── */
.lm-proof {
  background: var(--off-white);
  padding: 90px 80px;
}
.lm-proof-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
  text-align: center;
}
.lm-proof-stat { display: flex; flex-direction: column; gap: 6px; }
.lm-proof-num {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lm-proof-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--cinza);
  max-width: 200px;
}
.lm-proof-divider { width: 1px; height: 60px; background: rgba(34, 30, 26, 0.12); }

/* ─── HUB: materiais.html ────────────────────────── */
.lm-hub-hero {
  position: relative;
  background: var(--grad-dark);
  padding: 180px 80px 90px;
  overflow: hidden;
  text-align: center;
}
.lm-hub-hero .lm-hero-noise,
.lm-hub-hero .lm-hero-glow { z-index: 0; }
.lm-hub-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.lm-hub-title {
  font-family: 'Raleway', sans-serif;
  font-weight: var(--fw-display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  margin: 22px 0 20px;
}
.lm-hub-title .gold {
  background: linear-gradient(180deg, var(--amarelo) 0%, #d4891a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lm-hub-sub {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  max-width: 600px;
  margin: 0 auto;
}

.lm-hub-grid-section { background: var(--off-white); padding: 90px 80px 110px; }
.lm-hub-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.lm-card {
  display: flex;
  background: var(--branco);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lm-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(34, 30, 26, 0.14); }
.lm-card-cover {
  flex-shrink: 0;
  width: 158px;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.lm-card-cover::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand);
}
.lm-card-cover img { width: 100%; height: auto; border-radius: 4px; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.4)); transform: perspective(800px) rotateY(-10deg); }
.lm-card-cover-fallback {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}
.lm-card-body { flex: 1; padding: 28px 28px 26px; display: flex; flex-direction: column; }
.lm-card-badge {
  align-self: flex-start;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laranja);
  background: rgba(241, 90, 42, 0.1);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.lm-card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  background: var(--grad-title);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}
.lm-card-desc { font-size: 14.5px; line-height: 1.6; color: var(--cinza); margin-bottom: 18px; flex: 1; }
.lm-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--laranja);
}
.lm-card-link svg { width: 17px; height: 17px; stroke: var(--laranja); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.lm-card:hover .lm-card-link svg { transform: translateX(5px); }

/* ─── REVEAL ─────────────────────────────────────── */
.lm-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.lm-reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .lm-hero-inner { grid-template-columns: 1fr 420px; gap: 50px; }
}

@media (max-width: 1024px) {
  .lm-nav, .lm-hero, .lm-content, .lm-proof,
  .lm-hub-hero, .lm-hub-grid-section { padding-left: 40px; padding-right: 40px; }
  .lm-nav { height: 80px; }
  .lm-nav-logo img { height: 52px; }
  .lm-hero {
    padding-top: 130px;
    padding-bottom: 70px;
  }
  .lm-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 560px;
  }
  .lm-hero-copy { max-width: 100%; text-align: center; margin: 0 auto; }
  .lm-badge, .lm-hero-sub { margin-left: auto; margin-right: auto; }
  .lm-bullets { max-width: 420px; margin: 0 auto; text-align: left; }
  .lm-hero-watermark { display: none; }
  .lm-topics-grid { grid-template-columns: 1fr; }
  .lm-hub-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 600px) {
  .lm-nav, .lm-hero, .lm-content, .lm-proof,
  .lm-hub-hero, .lm-hub-grid-section { padding-left: 20px; padding-right: 20px; }
  .lm-nav { height: 72px; }
  .lm-nav-logo img { height: 42px; }
  .lm-nav-back span { display: none; }
  .lm-form-card { padding: 70px 22px 28px; }
  .lm-content, .lm-proof { padding-top: 70px; padding-bottom: 70px; }
  .lm-proof-inner { gap: 36px; }
  .lm-proof-divider { display: none; }
  .lm-card { flex-direction: column; }
  .lm-card-cover { width: 100%; height: 160px; padding: 18px; }
  .lm-card-cover img { width: 110px; }
  .lm-hub-hero { padding-top: 130px; }
}
