/* ─── LEAD MAGNET — Atelier Muse & Co. — Editorial preview page ───────── */
:root {
  --lm-bg: #F5EDE0;             /* warm linen/cream — matches --buy-bg */
  --lm-bg-card: #fffaf0;        /* printable cream sheet */
  --lm-ink: #2C1A0E;            /* deep readable ink */
  --lm-burgundy: #3D1A2E;       /* deep plum */
  --lm-burgundy-deep: #2a131f;
  --lm-gold: #C9A96E;           /* warm brass */
  --lm-mauve: #C4949A;          /* dusty rose */
  --lm-rule: rgba(61, 26, 46, 0.12);
  --lm-font-display: 'Cormorant Garamond', Georgia, serif;
  --lm-font-body: 'DM Sans', system-ui, sans-serif;
  --lm-pad: clamp(1.5rem, 5vw, 5rem);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--lm-bg);
  color: var(--lm-ink);
  font-family: var(--lm-font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* ─── Page grid ─── */
.lm {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ─── Brand bar ─── */
.lm__brand {
  padding: 1.75rem var(--lm-pad);
  border-bottom: 1px solid var(--lm-rule);
  font-family: var(--lm-font-display);
  font-style: italic;
  color: var(--lm-burgundy);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: none;
}

.lm__brand--preview {
  border-bottom-color: transparent;
}

/* ─── Main column ─── */
.lm__main {
  padding: clamp(2.5rem, 6vw, 6rem) var(--lm-pad) clamp(3rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5.5rem);
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.lm__main--preview {
  max-width: 720px;
}

/* ─── Eyebrow / accent rule ─── */
.lm__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--lm-gold);
  margin-bottom: 1.5rem;
  display: inline-block;
  font-weight: 500;
}

.lm__accent-rule {
  display: block;
  width: clamp(2.5rem, 8vw, 4.5rem);
  height: 1px;
  background: var(--lm-mauve);
  margin: 0.5rem 0 2rem;
  opacity: 0.85;
}

/* ─── Hero ─── */
.lm__hero {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.lm__hero .lm__accent-rule {
  margin-left: auto;
  margin-right: auto;
}

.lm__title {
  font-family: var(--lm-font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 3.85rem);
  line-height: 1.15;
  color: var(--lm-burgundy);
  margin: 0 0 1.25rem;
  letter-spacing: 0.005em;
}

.lm__lede {
  margin: 0 auto;
  font-family: var(--lm-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--lm-burgundy);
  line-height: 1.5;
  max-width: 34rem;
}

.lm__email-echo {
  background: rgba(201, 169, 110, 0.18);
  padding: 0.05em 0.4em;
  border-radius: 2px;
  font-style: italic;
}

.lm__h2 {
  font-family: var(--lm-font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--lm-burgundy);
  margin: 0 0 2rem;
  letter-spacing: 0.005em;
}

/* ─── Form card ─── */
.lm__form-card {
  background: var(--lm-bg-card);
  border: 1px solid rgba(196, 148, 154, 0.4);
  border-radius: 4px;
  padding: clamp(2rem, 4.5vw, 3rem);
  text-align: center;
  box-shadow: 0 1px 0 rgba(61, 26, 46, 0.04), 0 24px 60px -32px rgba(61, 26, 46, 0.3);
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
}

.lm__form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.lm__field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.lm__label {
  font-family: var(--lm-font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--lm-burgundy);
  letter-spacing: 0.02em;
}

.lm__radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lm__radio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(196, 148, 154, 0.4);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.lm__radio-row:hover {
  border-color: var(--lm-burgundy);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.lm__radio-row input[type="radio"] {
  margin: 0.25rem 0 0;
  accent-color: var(--lm-burgundy);
  flex-shrink: 0;
}

.lm__radio-label {
  font-family: var(--lm-font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--lm-burgundy);
  line-height: 1.45;
}

.lm__input {
  font-family: var(--lm-font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(196, 148, 154, 0.55);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--lm-ink);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.lm__input:focus {
  outline: none;
  border-color: var(--lm-burgundy);
  background: #fff;
}

.lm__micro {
  margin: 0;
  font-size: 0.82rem;
  color: var(--lm-ink);
  opacity: 0.65;
  font-style: italic;
  font-family: var(--lm-font-display);
}

/* ─── CTA button ─── */
.lm__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--lm-burgundy);
  color: var(--lm-bg);
  padding: 1rem 2rem;
  border: 1px solid var(--lm-burgundy);
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--lm-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, color 200ms ease;
  min-width: 240px;
}

.lm__cta:hover {
  background: var(--lm-burgundy-deep);
  transform: translateY(-1px);
}

.lm__cta:focus-visible {
  outline: 2px solid var(--lm-gold);
  outline-offset: 3px;
}

.lm__cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.lm__cta--secondary {
  background: transparent;
  color: var(--lm-burgundy);
}

.lm__cta--secondary:hover {
  background: rgba(61, 26, 46, 0.06);
  transform: translateY(-1px);
}

/* ─── Thanks card ─── */
.lm__thanks-card {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
}

.lm__cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem auto;
}

.lm__cta-stack .lm__cta {
  width: 100%;
  max-width: 360px;
}

.lm__signoff {
  margin: 2rem auto 0;
  font-family: var(--lm-font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--lm-ink);
  opacity: 0.8;
  max-width: 30rem;
  line-height: 1.55;
}

/* ─── Footer ─── */
.lm__footer {
  padding: 1.5rem var(--lm-pad);
  border-top: 1px solid var(--lm-rule);
  text-align: center;
  font-family: var(--lm-font-body);
  font-size: 0.82rem;
  color: var(--lm-burgundy);
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.lm__footer a {
  color: var(--lm-burgundy);
  text-decoration: underline;
  text-decoration-color: var(--lm-gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.lm__footer a:hover {
  color: var(--lm-burgundy-deep);
}

/* ─── Preview view — checklist + worksheet content ─── */
.lm__preview {
  text-align: left;
  background: var(--lm-bg-card);
  border: 1px solid rgba(196, 148, 154, 0.35);
  border-radius: 4px;
  padding: clamp(2rem, 4.5vw, 3rem);
  box-shadow: 0 1px 0 rgba(61, 26, 46, 0.04), 0 24px 60px -32px rgba(61, 26, 46, 0.3);
}

.lm__preview .lm__eyebrow,
.lm__preview .lm__title,
.lm__preview .lm__lede {
  text-align: left;
}

.lm__preview .lm__accent-rule {
  margin-left: 0;
}

.lm__checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lm__checklist-item {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  font-family: var(--lm-font-display);
  font-size: 1.15rem;
  color: var(--lm-burgundy);
  line-height: 1.55;
}

.lm__check {
  color: var(--lm-gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.lm__checklist-text {
  flex: 1;
}

.lm__worksheet-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0 0 1.5rem;
}

.lm__worksheet-block {
  border-top: 1px solid var(--lm-rule);
  padding-top: 1.5rem;
}

.lm__worksheet-title {
  font-family: var(--lm-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--lm-burgundy);
  margin: 0 0 0.85rem;
}

.lm__worksheet-prompts {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lm-prompt;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lm__worksheet-prompt {
  font-family: var(--lm-font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--lm-ink);
  padding-left: 2rem;
  position: relative;
}

.lm__worksheet-prompt::before {
  counter-increment: lm-prompt;
  content: counter(lm-prompt);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--lm-font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lm-mauve);
  padding-top: 0.2em;
}

.lm__preview-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lm-rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .lm__main {
    gap: clamp(2.5rem, 6vw, 4rem);
  }

  .lm__title {
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .lm__brand {
    padding: 1.4rem var(--lm-pad);
    font-size: 0.85rem;
  }

  .lm__cta {
    min-width: 100%;
    padding: 1rem 1.25rem;
  }

  .lm__form-card {
    padding: 1.75rem 1.35rem;
  }
}

/* ─── Print styles — strip noise so the page saves as a clean PDF ─── */
@media print {
  body, .lm__preview-body {
    background: #fff !important;
    color: #000 !important;
  }

  .lm__brand,
  .lm__footer,
  .lm__preview-cta {
    display: none !important;
  }

  .lm__main,
  .lm__main--preview {
    padding: 0 !important;
    max-width: none !important;
  }

  .lm__preview {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
