/* landing.css — public marketing page at "/" (templates/landing.html).
 *
 * Scope: LAYOUT ONLY. Colour, typography, the page texture and the
 * .btn / .card / .font-display primitives all come from styles.css, which is
 * loaded first — that is what keeps the site and the app looking like one
 * product (doc 27, Part 2: "gold means Profit Forge, green means money, red
 * means danger — nothing else gets colour").
 *
 * The app's markup leans on the Tailwind CDN for utility classes. This page
 * deliberately does not load it: a marketing page that blocks on a 3 MB JS
 * runtime to compute its own margins is a slow first paint for no benefit.
 * Hence real class names below.
 */

/* Every landing class is prefixed .lp- so it can never collide with the app's
   ids/classes, which styles.css also serves. */

body { overflow-x: hidden; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.lp-nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.5rem;
}
.lp-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.lp-mark {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; color: #1a1408;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 4px 16px rgba(212, 169, 85, 0.3);
}
.lp-mark svg { width: 22px; height: 22px; }
.lp-brand-text strong { display: block; font-size: 1.15rem; color: var(--gold-light); line-height: 1.1; }
.lp-brand-text small {
  display: block; margin-top: 2px; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.lp-nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.lp-nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.875rem;
  font-weight: 500; transition: color 0.15s;
}
.lp-nav-links a:hover { color: var(--gold-light); }
.lp-nav .btn { text-decoration: none; }
/* [hidden] must beat .btn's display:inline-flex — the "Open the app" swap
   (inline script in landing.html) relies on it. */
.lp-nav .btn[hidden] { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative; z-index: 10;
  max-width: 880px; margin: 0 auto; padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}
.lp-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; line-height: 1.08;
  color: var(--text); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.lp-hero h1 em { font-style: normal; color: var(--gold-light); }
.lp-sub {
  max-width: 44rem; margin: 1.5rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.65; color: var(--text-muted);
}
.lp-cta-row {
  display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.25rem;
}
.lp-cta { text-decoration: none; padding: 0.75rem 1.75rem; font-size: 0.95rem; }
.lp-trust {
  display: flex; gap: 0.5rem 1.75rem; justify-content: center; flex-wrap: wrap;
  margin: 3rem 0 0; padding: 0; list-style: none;
  font-size: 0.78rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.lp-trust li { display: flex; align-items: center; gap: 0.6rem; }
.lp-trust li + li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-dark); margin-right: 0.6rem;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.lp-section {
  position: relative; z-index: 10;
  max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem;
  scroll-margin-top: 1rem;
}
.lp-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem); font-weight: 700;
  color: var(--gold-light); text-align: center; margin: 0 0 2.5rem;
}
/* Intro line under a section heading (the h2 margin absorbs the gap). */
.lp-lead {
  max-width: 44rem; margin: -1.5rem auto 2.25rem; text-align: center;
  font-size: 0.95rem; line-height: 1.65; color: var(--text-muted);
}

/* ── Workflow inversion (#how) ────────────────────────────────────────── */
.lp-versus {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  max-width: 56rem; margin: 0 auto 2.5rem;
}
.lp-versus-col {
  padding: 1.5rem; border: 1px solid var(--border); border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-2) 100%);
}
.lp-versus-col p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--text-muted); }
.lp-versus-label {
  margin: 0 0 0.75rem !important; font-size: 0.7rem !important;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim) !important;
}
.lp-versus-col--pf { border-color: var(--border-gold); box-shadow: 0 0 0 1px rgba(212, 169, 85, 0.1); }
.lp-versus-col--pf .lp-versus-label { color: var(--gold) !important; }
.lp-versus-col--pf p { color: var(--text); }

.lp-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: 56rem; margin: 0 auto; padding: 0; list-style: none;
}
.lp-steps h3 { margin: 0 0 0.4rem; font-size: 0.98rem; font-weight: 700; color: var(--text); }
.lp-steps p { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }
.lp-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 0.8rem;
  border: 1px solid var(--border-gold); border-radius: 50%;
  background: rgba(212, 169, 85, 0.08); color: var(--gold);
  font-weight: 700; font-size: 0.9rem;
}
.lp-closing-note {
  max-width: 44rem; margin: 2.25rem auto 0; text-align: center;
  font-size: 0.85rem; color: var(--text-dim);
}

/* ── Calculator tiles ─────────────────────────────────────────────────── */
.lp-tiles {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.lp-tile {
  display: block; padding: 1.1rem 1.15rem; text-decoration: none;
  border: 1px solid var(--border); border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-2) 100%);
  transition: border-color 0.15s, transform 0.15s;
}
.lp-tile:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.lp-tile h3 { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 700; color: var(--gold-light); }
.lp-tile h3::after { content: ' →'; color: var(--gold-dark); font-weight: 400; }
.lp-tile p { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--text-dim); }
.lp-grid-more {
  margin: 2rem auto 0; max-width: 44rem; text-align: center;
  font-size: 0.9rem; line-height: 1.6; color: var(--text-muted);
}

/* ── Advanced-mode cards: three wide cards, not five narrow ones ──────── */
.lp-cards--modes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }

/* ── Guide band ───────────────────────────────────────────────────────── */
.lp-guide-band {
  padding: 2.75rem 1.5rem; text-align: center;
  border: 1px solid var(--border-gold); border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-2) 100%);
  box-shadow: 0 0 0 1px rgba(212, 169, 85, 0.08);
}
.lp-guide-band .lp-h2 { margin-bottom: 1rem; }
.lp-guide-band p {
  max-width: 42rem; margin: 0 auto 1.75rem;
  font-size: 0.92rem; line-height: 1.65; color: var(--text-muted);
}
.lp-guide-band .lp-cta { text-decoration: none; }
.lp-guide-chips {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.25rem;
}
.lp-guide-chips .btn { text-decoration: none; font-size: 0.8rem; }

/* ── Screenshot slots (populated at L3; harmless while absent) ────────── */
.lp-shot {
  max-width: 56rem; margin: 2rem auto 0;
  border: 1px solid var(--border-gold); border-radius: 8px; overflow: hidden;
}
/* video too: without an explicit width a 1280px recording overflows the box
   and the overflow:hidden clips its right side (owner-reported). */
.lp-shot img, .lp-shot video { display: block; width: 100%; height: auto; }
.lp-shot-cap { padding: 0.6rem 1rem; font-size: 0.78rem; color: var(--text-dim); }

/* ── Feature cards ────────────────────────────────────────────────────── */
/* auto-fit keeps the fifth card from sitting alone on a 3-wide row at most
   widths, and collapses to one column on phones without a media query. */
.lp-cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.lp-card { padding: 1.75rem 1.5rem; transition: border-color 0.15s, transform 0.15s; }
.lp-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.lp-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 1.1rem;
  border: 1px solid var(--border-gold); border-radius: 9px;
  background: rgba(212, 169, 85, 0.08); color: var(--gold);
}
.lp-icon svg { width: 22px; height: 22px; }
.lp-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 0.6rem;
}
.lp-card p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.lp-card-note {
  margin-top: 0.9rem !important; padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem !important; color: var(--text-dim) !important;
}

/* ── Honesty block ────────────────────────────────────────────────────── */
.lp-honesty { max-width: 46rem; text-align: center; }
.lp-inline-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dark); }
.lp-inline-link:hover { color: var(--gold-light); }
.lp-honesty p { font-size: 1rem; line-height: 1.75; color: var(--text-muted); margin: 0; }
.lp-honesty em { color: var(--gold-light); font-style: normal; font-weight: 600; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.lp-faq { max-width: 46rem; margin: 0 auto; }
.lp-faq dt {
  font-weight: 600; color: var(--gold-light); font-size: 0.98rem;
  margin-top: 1.75rem;
}
.lp-faq dt:first-child { margin-top: 0; }
.lp-faq dd {
  margin: 0.5rem 0 0; padding-left: 0.9rem;
  border-left: 1px solid var(--border-gold);
  font-size: 0.9rem; line-height: 1.65; color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.lp-footer {
  position: relative; z-index: 10;
  margin-top: 2rem; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.lp-footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
}
.lp-footer p { margin: 0 0 0.9rem; font-size: 0.82rem; line-height: 1.7; color: var(--text-muted); }
.lp-footer-brand {
  font-size: 0.95rem; color: var(--gold-dark);
  letter-spacing: 0.2em; margin-bottom: 1.25rem;
}
.lp-footer a { color: var(--gold); text-decoration: none; }
.lp-footer a:hover { color: var(--gold-light); text-decoration: underline; }
/* Required regardless of monetisation (doc 27, Part 3) — small, but never
   hidden or collapsed. */
.lp-disclaimer { max-width: 44rem; margin: 0 auto !important; color: var(--text-dim) !important; font-size: 0.75rem !important; }

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lp-nav { padding: 1rem; gap: 0.75rem; }
  .lp-nav-links { display: none; }          /* CTAs are the only nav that matters at this width */
  .lp-nav .btn { margin-left: auto; }
  .lp-hero { padding: 3.5rem 1.25rem 3rem; }
  .lp-cta { width: 100%; }
  .lp-trust { flex-direction: column; gap: 0.5rem; }
  .lp-trust li + li::before { display: none; }
  .lp-versus { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-card:hover, .lp-tile:hover { transform: none; }
}
