/* === Lead magnet landing pages (e.g. /cookware-guide.html) === */
/* Loaded after variables.css and main.css. Page-specific only.  */
/* Uses the standard site header, nav and footer so the page     */
/* reads as part of the site. Two full-width bands below the nav: */
/*   .lm-hero    warm band: copy + button left, guide preview right */
/*   .lm-signup  dark band, styled like the homepage Sunday Table   */

html {
  scroll-behavior: smooth;
}

/* main.css turns every <section> into a centered flex column with its
   own padding. These bands set their own layout instead. */
section.lm-hero,
section.lm-signup {
  display: block;
  padding: 0;
}

/* === Hero band === */
.lm-hero {
  background-color: var(--color-bg-warm);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.lm-hero-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 4rem 4vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "head preview"
    "body preview"
    "cta  preview";
  grid-template-rows: auto auto 1fr;
  column-gap: 4rem;
  align-items: start;
  text-align: left;
}

.lm-signup-copy {
  text-align: left;
}

.lm-head    { grid-area: head; }
.lm-body    { grid-area: body; }
.lm-cta     { grid-area: cta; }
.lm-preview { grid-area: preview; align-self: center; }

.lm-kicker {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  margin: 0 0 1rem;
}

.lm-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
  margin: 0 0 0.85rem;
}

.lm-deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--color-text-editorial);
  margin: 0 0 1.5rem;
}

.lm-body p {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-text-primary);
  margin: 0 0 1rem;
}

.lm-jump {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  background: var(--color-brand-red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition-default);
}

.lm-jump:hover {
  background: var(--color-brand-red-hover);
}

.lm-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

/* === Signup band (matches the homepage Sunday Table banner) === */
.lm-signup {
  background-color: #1A1A1A;
  scroll-margin-top: 1rem;
}

.lm-signup-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2.75rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.lm-signup-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.35rem;
}

.lm-signup-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.lm-signup-form-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.lm-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lm-form input[type="text"],
.lm-form input[type="email"] {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0 1rem;
  height: 2.6rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: var(--color-text-primary);
  outline: none;
}

.lm-form input[type="text"]  { width: 150px; }
.lm-form input[type="email"] { width: 230px; }

.lm-form input::placeholder {
  color: #999;
}

.lm-form button {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: 2.6rem;
  padding: 0 1.4rem;
  border: none;
  border-radius: 9999px;
  background: var(--color-brand-red);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-default);
}

.lm-form button:hover {
  background: var(--color-brand-red-hover);
}

.lm-form button:disabled {
  opacity: 0.7;
  cursor: default;
}

.lm-fineprint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #999;
  margin: 0;
}

.lm-confirmation {
  margin: 0;
  text-align: right;
  color: #fff;
}

.lm-confirmation strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.lm-confirmation span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: #DDD;
  max-width: 26rem;
}

/* === Tablet and phone === */
@media (max-width: 900px) {
  .lm-hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "cta"
      "preview"
      "body";
    grid-template-rows: auto;
    row-gap: 1.75rem;
    padding: 2.5rem 6vw 3rem;
    text-align: center;
  }

  .lm-deck  { margin-bottom: 0; }
  .lm-jump  { margin: 0; }
  .lm-body  { text-align: left; }
  .lm-preview { max-width: 560px; margin: 0 auto; width: 100%; }

  .lm-signup-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.25rem;
    padding: 2.5rem 6vw;
  }

  .lm-signup-copy { text-align: center; }
  .lm-signup-form-wrap { align-items: stretch; }
  .lm-form { flex-direction: column; align-items: stretch; }
  .lm-form input[type="text"],
  .lm-form input[type="email"] { width: 100%; }
  .lm-fineprint { text-align: center; }
  .lm-confirmation { text-align: center; }
  .lm-confirmation span { margin: 0 auto; }
}

@media (max-width: 600px) {
  .lm-title { font-size: 2.1rem; }
  .lm-deck  { font-size: 1.08rem; }
}
