/* ============================================================
   landing.css — the public landing page only.
   ============================================================
   Loaded solely by landing.php (via $seo['extra_css']), so the
   app pages never pay for it. Every colour and face here comes
   from the hearthlit system already declared in style.css —
   this file adds layout, not a second design language.

   Class prefix: .lp-  — nothing here can collide with an app
   page, and anything named lp- can be deleted with the landing
   page if it is ever rebuilt.
   ============================================================ */

.lp {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.lp-hero { text-align: center; padding: 2rem 0 3rem; }

.lp-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin: 0 0 1.25rem;
}

.lp-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.12;
  margin: 0 auto .9rem;
  max-width: 15ch;
  text-shadow: 0 3px 18px rgba(0,0,0,.85);
}

.lp-sub {
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-size: 1.12rem;
  color: var(--vellum);
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}

.lp-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.lp-btn-big { padding: .8rem 1.9rem; font-size: 1.02rem; }
.lp-cta-note { margin: .9rem 0 0; font-size: .85rem; color: var(--ash); }

/* The signature: a taste of actual play, set like a page of the
   chronicle it produces. Deliberately the first *content* a
   visitor reads — showing the product beats describing it. */
.lp-scroll {
  margin: 3rem auto 0;
  max-width: 660px;
  text-align: left;
  background: rgba(20,18,15,.9);
  border: 1px solid var(--iron);
  border-left: 3px solid var(--ember);
  border-radius: 3px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 6px 26px rgba(0,0,0,.55);
}
.lp-scroll-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ash); margin: 0 0 1rem;
}
.lp-dm { margin: 0 0 1rem; color: var(--vellum); }
.lp-you {
  margin: 0 0 1rem;
  padding-left: .9rem;
  border-left: 2px solid var(--woad);
  color: var(--ash);
}
.lp-you span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--woad); margin-bottom: .2rem;
}
.lp-scroll > :last-child { margin-bottom: 0; }

/* ── Fast facts ───────────────────────────────────────────── */
.lp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--iron);
  border: 1px solid var(--iron);
  border-radius: 3px;
  margin: 3.5rem 0;
  overflow: hidden;
}
.lp-facts div {
  background: rgba(20,18,15,.92);
  padding: 1.3rem .9rem;
  text-align: center;
}
.lp-facts strong {
  display: block;
  font-family: 'IM Fell English', serif;
  font-size: 1.75rem;
  color: var(--ember-2);
  line-height: 1.1;
}
.lp-facts span { display: block; font-size: .82rem; color: var(--ash); margin-top: .3rem; }

/* ── Sections ─────────────────────────────────────────────── */
.lp-section { margin: 0 0 3.75rem; }
.lp-section > h2 { font-size: 1.75rem; margin-bottom: .2rem; }
.lp-section > .rule-ember { margin-bottom: 1.5rem; }
.lp-lead { max-width: 58ch; color: var(--ash); margin: 0 0 1.5rem; }

/* ── Steps (numbered because it genuinely is a sequence) ──── */
.lp-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  counter-reset: none;
}
.lp-steps li {
  background: rgba(20,18,15,.92);
  border: 1px solid var(--iron);
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
  position: relative;
}
.lp-step-n {
  display: block;
  font-family: 'IM Fell English', serif;
  font-size: 2.4rem; line-height: 1;
  color: var(--ember); opacity: .5;
  margin-bottom: .5rem;
}
.lp-steps h3 { margin-bottom: .4rem; }
.lp-steps p { margin: 0 0 .4rem; }
.lp-steps p:last-child { margin-bottom: 0; }

/* ── Feature cards ────────────────────────────────────────── */
.lp-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.lp-card {
  background: rgba(20,18,15,.92);
  border: 1px solid var(--iron);
  border-top: 2px solid var(--ember);
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
}
.lp-card h3 { color: var(--vellum); margin-bottom: .5rem; }
.lp-card p { margin: 0 0 .65rem; }
.lp-card p:first-of-type { color: var(--vellum); }
.lp-card p:not(:first-of-type) { color: var(--ash); font-size: .95rem; }
.lp-card p:last-child { margin-bottom: 0; }

/* ── Era gallery ──────────────────────────────────────────── */
.lp-eras {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.lp-eras figure {
  margin: 0;
  background: rgba(20,18,15,.92);
  border: 1px solid var(--iron);
  border-radius: 3px;
  overflow: hidden;
}
.lp-eras img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.9) brightness(.88);
  transition: filter .25s ease, transform .25s ease;
}
.lp-eras figure:hover img { filter: none; transform: scale(1.02); }
.lp-eras figcaption { padding: .85rem 1rem; font-size: .92rem; color: var(--ash); }
.lp-eras figcaption strong {
  display: block; color: var(--vellum);
  font-family: 'IM Fell English', serif; font-size: 1.1rem; font-weight: 400;
}

/* ── Pricing ──────────────────────────────────────────────── */
.lp-price .lp-lead { margin-bottom: 1rem; color: var(--vellum); }
.lp-ticks { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.lp-ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; color: var(--ash); }
.lp-ticks li::before {
  content: "◆"; position: absolute; left: 0; top: 0;
  color: var(--ember); font-size: .7rem; line-height: 1.9;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.lp-faq details {
  background: rgba(20,18,15,.92);
  border: 1px solid var(--iron);
  border-radius: 3px;
  margin-bottom: .6rem;
}
.lp-faq summary {
  cursor: pointer;
  padding: .95rem 1.2rem;
  font-family: 'IM Fell English', serif;
  font-size: 1.08rem;
  color: var(--vellum);
  list-style: none;
  display: flex; align-items: center; gap: .7rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::before {
  content: "+"; color: var(--ember);
  font-family: 'IBM Plex Mono', monospace; font-size: 1.1rem;
  flex: 0 0 auto;
}
.lp-faq details[open] summary::before { content: "−"; }
.lp-faq summary:hover { color: var(--ember-2); }
.lp-faq summary:focus-visible { outline: 2px solid var(--woad); outline-offset: -2px; }
.lp-faq p { margin: 0; padding: 0 1.2rem 1.15rem 2.6rem; color: var(--ash); }

/* ── Close + footer ───────────────────────────────────────── */
.lp-close {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
  margin-bottom: 2.5rem;
}
.lp-close h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  max-width: 22ch; margin: 0 auto 1.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}

.lp-footer { text-align: center; }
.lp-footer nav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.lp-footer p { max-width: 62ch; margin: 0 auto; }

/* ── Narrower screens ─────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-steps, .lp-features, .lp-eras { grid-template-columns: repeat(2, 1fr); }
  .lp-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lp { padding: 1.5rem 1.1rem 3rem; }
  .lp-hero { padding: 1rem 0 2rem; }
  .lp-steps, .lp-features, .lp-eras { grid-template-columns: 1fr; }
  .lp-scroll { padding: 1.25rem 1.2rem; }
  .lp-cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-eras img { transition: none; }
  .lp-eras figure:hover img { transform: none; }
}
