/* ════════════════════════════════════════════════════════════════════
   Strony lead magnetów (zapis + pobieranie) w stylu „papier”
   /humanizator/, /profil/, /25/, /wycena/, /wideo/, /automat/, /8/, /excel/
   ════════════════════════════════════════════════════════════════════
   Dodatek do papier.css (zmienne, fonty, przyciski, pola formularza i starsze
   nazwy klas są tam, w sekcji 19). HTML tych stron zostaje taki sam jak
   w ciemnej wersji; skrypt to nadal ../script.js (animacja pisania w oknie
   i zapis do MailerLite).

   Okno „przed i po” jest ciemne celowo: to jedyny ciemny element strony,
   tak jak blok kontaktu na stronie głównej.

   SPIS: 01 rama strony · 02 góra: tytuł i formularz · 03 okno z pisaniem ·
   04 kroki · 05 strona pobierania
   ════════════════════════════════════════════════════════════════════ */

/* ── 01. RAMA STRONY ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 244, 238, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nl-page { padding: clamp(2rem, 1.25rem + 3.5vw, 4.5rem) 0 var(--section-pad); }
.lm-page .container { position: relative; }

.site-footer { padding-bottom: 2.5rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ink);
  color: var(--ink-3);
  font-size: 0.86rem;
}
.footer-note { font-size: 0.74rem; letter-spacing: 0.04em; }

/* ── 02. GÓRA: TYTUŁ I FORMULARZ ──────────────────────────────────── */
.nl-grid { display: grid; gap: 2.25rem; }
.nl-grid > * { min-width: 0; }

.section-head-tight { margin-bottom: 1.75rem; }
.lm-page .section-title {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  max-width: 14em;
}
/* Krótkie pociągnięcie zakreślaczem pod tytułem */
.lm-page .section-title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.5rem;
  margin-top: 1.1rem;
  border-radius: 2px;
  background: var(--accent);
}
.section-lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 36rem;
  text-wrap: pretty;
}

.lm-list { display: grid; gap: 0.8rem; }
.lm-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.lm-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.22em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--accent) var(--check) center / 72% no-repeat;
}
.lm-list b { color: var(--ink); font-weight: 650; }

/* Formularz: kartka z twardym cieniem, jak przycisk-stempel */
.nl-form {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 5px 0 var(--ink);
}
.nl-form > * { min-width: 0; }
.nl-form .btn { white-space: normal; text-align: center; line-height: 1.2; }
.nl-form .form-input { background: var(--paper); }
.nl-form .form-status { font-family: var(--font-body); }
.lm-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 56rem) {
  .nl-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
}

.lm-section { margin-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); }
.lm-section > .kicker { display: block; margin-bottom: 1.4rem; }

/* ── 03. OKNO Z PISANIEM ──────────────────────────────────────────── */
/* Okno jak na Macu: pasek z trzema kropkami i tytułem, w środku rozmowa z AI.
   Linie wpisuje po kolei ../script.js (klasy is-animating, is-shown, is-typing). */
.terminal {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 5px 0 rgba(16, 20, 12, 0.22);
  overflow: hidden;
}
.lm-compare { max-width: 46rem; }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(241, 244, 238, 0.14);
  background: #1b2116;
}
.terminal-dots { display: inline-flex; gap: 0.42rem; }
.terminal-dots i {
  width: 0.68rem; height: 0.68rem;
  border-radius: 50%;
  background: rgba(241, 244, 238, 0.28);
}
.terminal-dots i:first-child { background: var(--accent); }
.terminal-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(241, 244, 238, 0.6);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  padding: 1.35rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
}
.t-line { display: flex; gap: 0.65rem; align-items: baseline; }
.t-line .t-text { min-width: 0; overflow-wrap: break-word; }
.t-prompt { flex-shrink: 0; color: rgba(241, 244, 238, 0.5); }
.t-user .t-text { color: rgba(241, 244, 238, 0.78); }
.t-ai .t-prompt { color: var(--accent); }
.t-ai .t-text { color: var(--paper); }
/* Odpowiedź „bez pliku”: przygaszona, z czerwonawym znakiem */
.lm-bad .t-prompt { color: #ff9d8a; }
.lm-bad .t-text { color: rgba(241, 244, 238, 0.5); }
.lm-example .t-text b { color: var(--accent); font-weight: 500; }

/* Migający kursor podczas pisania */
.t-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.5em; height: 1.05em;
  margin-left: 0.15em;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: mrugaj 0.9s steps(1) infinite;
}
@keyframes mrugaj { 50% { opacity: 0; } }

/* Linie chowamy dopiero, gdy działa skrypt (bez niego widać całą rozmowę) */
.js .terminal.is-animating .t-line { visibility: hidden; }
.js .terminal.is-animating .t-line.is-shown { visibility: visible; }

/* ── 04. KROKI ────────────────────────────────────────────────────── */
/* Trzy kolumny z grubą kreską u góry, jak punkty programu na podstronach */
.lm-steps { display: grid; gap: 1.75rem 2.5rem; }
.lm-steps .step {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1.5px solid var(--ink);
}
.step-num { font-size: 0.78rem; font-weight: 600; color: var(--accent-deep); }
.step-title {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.42rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lm-steps .step p { color: var(--ink-2); font-size: 0.98rem; }

@media (min-width: 52rem) {
  .lm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 05. STRONA POBIERANIA ────────────────────────────────────────── */
.lm-files { display: grid; gap: 1.25rem; margin-top: 2rem; }
.lm-files.lm-single { max-width: 34rem; }
.lm-file {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}
.lm-file-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lm-file-name span { color: var(--accent-deep); }
.lm-file > p:not([class]) { color: var(--ink-2); font-size: 0.97rem; }
.lm-file .btn { justify-self: start; max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }

.lm-note { margin-top: 2.5rem; color: var(--ink-2); max-width: 46rem; }
.lm-note b { color: var(--ink); }

@media (min-width: 47.5rem) {
  .lm-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lm-files.lm-single { grid-template-columns: 1fr; }
}
