/* ═══════════════════════════════════════════
   Lead magnet & legal pages — sfondo condiviso
   griglia sottile + bagliore arancione, card bianca
   ═══════════════════════════════════════════ */

body { --lm-top: clamp(96px, 14vh, 150px); }

.lm-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--lm-top) clamp(16px, 5vw, 40px) 60px;
  overflow-x: hidden;
}
.lm-page::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: var(--bg);
}
.lm-page::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 44% at 78% 10%, rgba(255,77,0,.13), transparent 70%),
    radial-gradient(40% 40% at 8% 92%, rgba(60,90,255,.06), transparent 70%),
    linear-gradient(rgba(16,17,20,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,17,20,.045) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

.lm-back {
  position: fixed; top: clamp(16px, 3vw, 32px); left: clamp(16px, 4vw, 48px);
  z-index: 5;
  font-weight: 800; font-size: 1rem; letter-spacing: -.03em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .25s;
}
.lm-back:hover { color: var(--accent); }

.lm-logo {
  position: fixed; top: calc(var(--lm-top) / 2); left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-weight: 800; font-size: clamp(1.35rem, 3.4vw, 2rem); letter-spacing: -.025em; color: var(--ink);
  text-align: center;
  transition: color .25s;
}
.lm-logo:hover { color: var(--accent); }

.lm-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px;
  background: #fff;
  border: 1px solid rgba(16,17,20,.07);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(16,17,20,.08);
  padding: clamp(28px, 5vw, 56px);
}
.lm-card:not(.lm-legal) {
  max-width: 600px;
  border-radius: 40px;
  border-color: transparent;
}

.lm-card h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 780; letter-spacing: -.03em; line-height: 1.2;
  margin-bottom: 26px;
}
.lm-card:not(.lm-legal) h1 {
  text-align: center;
  margin-bottom: 10px;
}

.lm-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  margin-bottom: 22px;
}

.lm-arrows {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 32px);
  margin-bottom: clamp(20px, 3.4vw, 32px);
  color: var(--accent);
}
.lm-arrows svg { display: block; width: 20px; height: auto; }

.lm-legal h2 {
  font-size: 1.08rem; font-weight: 720; letter-spacing: -.01em;
  margin: 30px 0 10px;
}
.lm-legal h2:first-of-type { margin-top: 0; }
.lm-legal p, .lm-legal li { font-size: .96rem; color: var(--ink-soft); line-height: 1.65; }
.lm-legal ul { margin: 6px 0 6px 20px; }
.lm-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.lm-footer {
  position: relative; z-index: 1;
  margin-top: 36px;
  font-size: .78rem; color: var(--muted);
  text-align: center;
}
.lm-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; transition: color .25s; }
.lm-footer a:hover { color: var(--accent); }

.lm-tally iframe { width: 100%; border: 0; display: block; }

/* ── native lead form ── */
.lm-form { display: flex; flex-direction: column; gap: 14px; }
.lm-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.lm-field label {
  font-size: .82rem; font-weight: 650; color: var(--ink-soft);
  letter-spacing: -.01em;
}
.lm-required { color: var(--accent); }
.lm-field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem; color: var(--ink);
  padding: 14px 18px;
  border: 1.5px solid rgba(16,17,20,.12);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: border-color .25s, box-shadow .25s;
}
.lm-field input::placeholder { color: var(--muted); }
.lm-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,77,0,.1);
}

.lm-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 1rem;
  padding: 16px 24px;
  border: 0; border-radius: 100px;
  background: var(--ink); color: #fff;
  cursor: pointer;
  transition: background .3s, box-shadow .3s, transform .2s;
  margin-top: 4px;
}
.lm-submit:hover:not(:disabled) { background: var(--accent); box-shadow: 0 12px 32px rgba(255,77,0,.28); }
.lm-submit:disabled { cursor: default; opacity: .75; }
.lm-submit.is-loading .lm-submit__label::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  animation: lm-spin .7s linear infinite;
}
@keyframes lm-spin { to { transform: rotate(360deg); } }

.lm-form__error {
  font-size: .85rem; color: #c5350c;
  background: rgba(197,53,12,.08);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}

.lm-checkbox-field { text-align: left; }
.lm-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.lm-checkbox input[type="checkbox"] {
  flex: none;
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.lm-checkbox span {
  font-size: .85rem; color: var(--ink-soft); line-height: 1.5;
}
.lm-checkbox a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lm-checkbox a:hover { color: var(--accent); }

@media (max-width: 600px) {
  body { --lm-top: 84px; }
  .lm-card { border-radius: 20px; }
  .lm-card:not(.lm-legal) { border-radius: 28px; }
}
