/* lead-magnet.css — Lead magnet landing page styles.
   Extends theme.css design tokens (--bg, --surface, --gold, etc.)
*/

.nav-logo {
  text-decoration: none;
}

/* ── Hero ── */
.lm-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.lm-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(200, 169, 110, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(60, 50, 30, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.lm-hero-content {
  position: relative;
  z-index: 1;
}

.lm-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200, 169, 110, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.8rem;
}

.lm-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.lm-headline em {
  font-style: italic;
  color: var(--gold);
}

.lm-subhead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
}

/* ── Form ── */
.lm-form-wrap {
  max-width: 520px;
}

.lm-form { width: 100%; }

.lm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lm-form input[type="text"],
.lm-form input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.lm-form input::placeholder { color: var(--text-dim); }

.lm-form input:focus {
  border-color: var(--gold);
}

.lm-btn {
  width: 100%;
  background: var(--gold);
  color: #0b0d14;
  border: none;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s;
  margin-bottom: 0.9rem;
}

.lm-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.lm-btn:active:not(:disabled) { transform: translateY(0); }

.lm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-text { display: inline; }
.btn-loading { display: none; }
.lm-btn:disabled .btn-text { display: none; }
.lm-btn:disabled .btn-loading { display: inline; }

.lm-disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

.lm-error {
  font-size: 0.82rem;
  color: #e07070;
  text-align: center;
  min-height: 1.2em;
  margin-top: 0.5rem;
}

/* ── Success state ── */
.lm-success {
  display: none;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--surface);
}

.lm-success-icon { margin-bottom: 1rem; }

.lm-success-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Preview panel ── */
.lm-preview {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lm-preview-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.lm-preview-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lm-preview-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.lm-preview-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.5;
}

/* ── Fake cover art ── */
.lm-preview-cover { display: flex; justify-content: center; }

.lm-cover-art {
  width: 200px;
  height: 270px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(200, 169, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-cover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(200, 169, 110, 0.1) 0%, transparent 70%);
}

.lm-cover-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
}

.lm-cover-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.lm-cover-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.lm-cover-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0 auto 0.8rem;
}

.lm-cover-subtitle {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.lm-cover-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid rgba(200, 169, 110, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}

/* ── Features section ── */
.lm-features {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: 5rem 3rem;
}

.lm-features-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.lm-feature { text-align: center; }

.lm-feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.lm-feature h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.lm-feature p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Footer ── */
.lm-footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--divider);
}

.lm-footer p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.lm-footer strong { color: var(--text-muted); }

.lm-footer-home {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.lm-footer-home:hover { color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lm-hero {
    grid-template-columns: 1fr;
    padding: 7rem 2rem 4rem;
    gap: 3rem;
  }
  .lm-preview { display: none; }
  .lm-field-row { grid-template-columns: 1fr; }
  .lm-features-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .lm-headline { font-size: 2.6rem; }
}