/* Memory-system lead magnet page. Inherits brand.css tokens.
   Wider than the audit tool: this page carries a long code block, and a
   34rem column would wrap the prompt into soup. */

.wrap { max-width: 46rem; }

main.wrap { padding-top: 2rem; }

.body { margin-top: 0.9rem; color: var(--ink); }

.intro h1 { margin-top: 0.5rem; }

section + section { margin-top: 2.5rem; }

/* ---- gate ---- */

.gate {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1.5rem 1.35rem 1.6rem;
}

.gate h2 { margin-bottom: 0.4rem; }
.gate-lede { color: var(--muted); font-size: 0.95rem; }

.gate label {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gate input[type="text"],
.gate input[type="email"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.8rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.gate input:focus { border-color: var(--gold-soft); outline: none; box-shadow: 0 0 0 2px rgba(185,137,47,0.18); }

/* honeypot: present for bots, gone for people and for screen readers */
#b_hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.gate .btn { width: 100%; margin-top: 1.25rem; }

.fine { margin-top: 0.7rem; font-size: 0.78rem; color: var(--muted); }

.err { margin-top: 0.8rem; font-size: 0.9rem; color: #a3402f; }

/* ---- the prompt block ---- */

.promptbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0.55rem 0.9rem;
  background: var(--navy-deep);
  border-radius: 2px 2px 0 0;
}

.promptlabel {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.copy {
  border: 1px solid rgba(212,176,106,0.5);
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.copy:hover { background: var(--gold-soft); color: var(--navy-deep); }
.copy.done { background: var(--gold-soft); color: var(--navy-deep); border-color: var(--gold-soft); }

pre.prompt {
  margin: 0 0 2.5rem;
  max-height: 26rem;
  overflow: auto;
  padding: 1rem 1.1rem 1.2rem;
  background: #10192a;
  color: #d9e2ee;
  border-radius: 0 0 2px 2px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

/* ---- how to / using ---- */

.howto ol { margin: 0.9rem 0 0 1.1rem; }
.howto li { margin-bottom: 0.55rem; }

.using h3, .cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--navy);
  margin-top: 1.6rem;
}

.cta {
  margin-top: 3rem;
  padding: 1.5rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.cta h2 { margin-top: 0; font-size: 1.1rem; }

/* the address is the ask, so let it carry weight */
a.mail { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* On a wide screen, let the code block break out past the reading column so the
   prompt's ~95-character lines fit without horizontal scrolling. The prose column
   stays narrow, which is what makes it readable. */
@media (min-width: 58rem) {
  .promptbar, pre.prompt {
    width: 54rem;
    margin-left: calc(50% - 27rem);
    margin-right: calc(50% - 27rem);
  }
  pre.prompt { margin-bottom: 2.5rem; max-height: 32rem; }
}
