/* ProperPics public landing page (M18 → UI redesign). Consumes design tokens
   ONLY — no colour or spacing literals (brief §5). A few local custom properties
   carry layout dimensions (container width, slot proportions) in rem.
   Mobile-first; the hero + lead form go two-column at 860px, the card grids
   widen at 720px / 1000px. Everything is scoped under .landing so it can't leak
   into the app. */

main.page.landing {
  max-width: none;
  padding: 0;
  --lp-maxw: 72.5rem;      /* ~1160px content column (matches the mockup) */
  --lp-narrow: 47.5rem;    /* trust / sub-line measure */
}

.landing .lp-container {
  max-width: var(--lp-maxw);
  margin: 0 auto;
  padding-inline: var(--sp-5);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* clear a sticky topbar that may wrap to two lines on a narrow phone */
.landing [id] { scroll-margin-top: calc(var(--sp-8) + var(--sp-4)); }

/* --- marketing top bar ------------------------------------------------- */
.lp-topbar .wordmark { color: var(--ink); text-decoration: none; }
.lp-topbar .wordmark:hover { text-decoration: none; }
.lp-topbar nav a { color: var(--ink-soft); font-weight: 500; }
.lp-topbar nav a:hover { color: var(--ink); text-decoration: none; }
/* selector specific enough to win over `.topbar nav a` without !important */
.lp-topbar nav a.lp-login {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-4); color: var(--ink); font-weight: 600;
}
.lp-topbar nav a.lp-login:hover { border-color: var(--ink); color: var(--ink); }

/* --- shared section furniture ----------------------------------------- */
.landing .lp-band { padding-block: var(--sp-8); }
.landing .lp-section-h {
  font-family: var(--font-brand-display); font-weight: 500;
  font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 var(--sp-5);
}
.landing .lp-section-sub {
  color: var(--ink-soft); margin: 0 0 var(--sp-6); max-width: var(--lp-narrow);
}
.lp-accent { color: var(--accent); }

/* the petrol-teal primary CTA gains the teal-tinted lift token */
.lp-btn-cta { box-shadow: var(--shadow-cta); }
.lp-btn-lg { font-size: var(--text-md); padding: var(--sp-3) var(--sp-5); }

/* alternating section backings give vertical rhythm — all from tokens */
.lp-stats-band, .lp-services-band { background: var(--bg-card); border-block: 1px solid var(--line); }
.lp-how-band { background: var(--bg-inset); }
.lp-pricing-band { background: var(--bg); }
.lp-cta-band { background: var(--bg-inset); border-top: 1px solid var(--line); }

/* --- 1 · hero (copy-led; live before/after slider) --------------------- */
.lp-hero { padding-block: var(--sp-8) var(--sp-6); }
.lp-hero-grid {
  display: grid; gap: var(--sp-6); align-items: center;
  grid-template-columns: 1fr;
}
.lp-eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 var(--sp-4);
}
.lp-hero h1 {
  font-family: var(--font-brand-display); font-weight: 500;
  font-size: var(--text-4xl); line-height: 1.04; margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
}
.lp-lede {
  font-size: var(--text-lg); line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 var(--sp-5); max-width: 32rem;
}
.lp-hero-cta {
  margin: 0 0 var(--sp-5); display: flex; align-items: center;
  gap: var(--sp-4); flex-wrap: wrap;
}
.lp-reassure { font-size: var(--text-sm); color: var(--ink-faint-2); margin: 0; }

.lp-trust-cues {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm); color: var(--ink-faint-2);
}
.lp-trust-cues li { display: flex; align-items: baseline; gap: var(--sp-1); }
.lp-trust-cues .lp-tick { color: var(--accent); font-weight: 700; }

/* hero before/after media column */
.lp-hero-media { width: 100%; }
/* Hero before/after: a live .ba-slider (components.css owns the divider/knob/tags/
   clip) over real, cleared listing photos. Both sources are 4:3 landscape (1080x810),
   so the slider keeps the base 4:3 ratio and is capped to sit beside the copy. */
.lp-hero-ba {
  aspect-ratio: 4 / 3;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  user-select: none;
}
/* On-image CPA disclosure mark. A full-box layer sharing .ba-after's clip-path
   (inset(0 0 0 var(--ba-pos))) so it reads as part of the staged photo: the badge is
   pinned to the bottom-right of the staged side, and the divider wipes over it as it
   reveals the original — when the staged image is fully hidden, so is the mark. */
.lp-ba-mark {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: var(--sp-3);
  clip-path: inset(0 0 0 var(--ba-pos));
  pointer-events: none;
}
.lp-ba-mark > span {
  font-size: var(--text-xs); color: var(--bg-card);
  background: var(--ink); opacity: 0.72;
  border-radius: var(--radius-sm); padding: var(--sp-1) var(--sp-2);
}
.lp-ba-caption {
  text-align: center; font-size: var(--text-sm); color: var(--ink-faint-2);
  margin: var(--sp-3) 0 0;
}

/* --- 2 · stats --------------------------------------------------------- */
.lp-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-4); grid-template-columns: 1fr;
}
.lp-stat-card { margin: 0; background: var(--bg); }
.lp-stat-card .stat { gap: var(--sp-2); }
.lp-stat-card .stat-value { font-size: var(--text-3xl); }

/* --- 3 · how it works -------------------------------------------------- */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.lp-step { margin: 0; }
.lp-step h3 { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--text-lg); }
.lp-step p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.lp-step-num {
  display: grid; place-items: center; width: 2.375rem; height: 2.375rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: var(--text-md);
}

/* --- 4 · services ------------------------------------------------------ */
.lp-services { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.lp-service { margin: 0; position: relative; background: var(--bg); }
.lp-service h3 { margin: 0 0 var(--sp-2); font-size: var(--text-lg); }
.lp-service p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.lp-service-free { background: var(--bg-card); border: 1.5px solid var(--accent); }
.lp-service-flag {
  position: absolute; top: calc(-1 * var(--sp-2) - 2px); left: var(--sp-4);
}

/* --- 5 · trust --------------------------------------------------------- */
.lp-trust-band { background: var(--trust-band); }
.lp-trust { max-width: var(--lp-narrow); text-align: center; }
.lp-trust p { color: var(--ink); margin: 0 auto var(--sp-4); line-height: 1.6; }
.lp-trust .lp-trust-popia { color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: 0; }

/* --- 6 · pricing ------------------------------------------------------- */
.lp-pricing { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.lp-price {
  margin: 0; display: flex; flex-direction: column; position: relative;
  border-radius: var(--radius-xl);
}
.lp-price h3 { margin: 0 0 var(--sp-1); font-size: var(--text-lg); }
.lp-price-blurb { color: var(--ink-faint-2); font-size: var(--text-sm); margin: 0 0 var(--sp-4); }
.lp-price-amount {
  font-family: var(--font-brand-display); font-size: var(--text-3xl);
  margin: 0 0 var(--sp-4); line-height: 1; font-feature-settings: var(--tnum);
}
.lp-price-cur { font-family: var(--font-ui); font-size: var(--text-lg); color: var(--ink-soft); vertical-align: baseline; }
.lp-price-unit { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 400; color: var(--ink-faint-2); }
.lp-price-features { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.lp-price-features li { color: var(--ink); font-size: var(--text-sm); padding-left: var(--sp-5); position: relative; line-height: 1.4; }
.lp-price-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.lp-price-cta { margin-top: auto; justify-content: center; }
.lp-price-top { border: 1.5px solid var(--accent); box-shadow: var(--shadow-cta); }
.lp-price-flag {
  position: absolute; top: calc(-1 * var(--sp-3)); left: 50%;
  transform: translateX(-50%); white-space: nowrap;
}

/* --- 6b · FAQ ---------------------------------------------------------- */
/* .lp-faq is a <dl>; .lp-faq-item wraps each <dt>/<dd> pair.
   Browser default gives <dd> a large margin-inline-start (~2.5rem) which
   makes the answer look indented under a separate column — reset it. */
.lp-faq {
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.lp-faq-item {
  border-bottom: 1px solid var(--line); padding-bottom: var(--sp-5);
}
.lp-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.lp-faq-q {
  font-weight: 600; color: var(--ink);
  font-size: var(--text-md); margin: 0 0 var(--sp-2);
}
.lp-faq-a {
  margin: 0; padding-left: 0; margin-inline-start: 0;
  color: var(--ink-soft); line-height: 1.6; font-size: var(--text-sm);
}

/* --- 7 · final CTA + form --------------------------------------------- */
.lp-cta { display: grid; gap: var(--sp-6); align-items: center; }
.lp-cta-copy p { color: var(--ink-soft); margin: 0; line-height: 1.6; }
.lp-form { margin: 0; box-shadow: var(--shadow-card); }
.lp-form label:first-of-type { margin-top: 0; }
.lp-form-submit { margin: var(--sp-4) 0 0; }
.lp-form-submit .lp-btn-lg { width: 100%; }
.lp-optional { color: var(--ink-faint-3); font-weight: 400; }
/* honeypot: off-screen (NOT display:none, so bots still fill it), never shown */
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 8 · footer -------------------------------------------------------- */
.lp-footer { background: var(--bg-card); border-top: 1px solid var(--line); padding-block: var(--sp-6); }
.lp-footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.lp-footer .wordmark { font-family: var(--font-brand); font-size: var(--text-lg); color: var(--ink); }
.lp-footer .wordmark .tld { color: var(--brass); }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.lp-footer nav a { color: var(--ink-soft); font-size: var(--text-sm); }
.lp-footer nav a:hover { color: var(--ink); }
/* legal links sit on their own full-width row, lighter than the primary footer nav */
.lp-footer-legal-nav { flex-basis: 100%; gap: var(--sp-3) var(--sp-4); }
.lp-footer-legal-nav a { font-size: var(--text-xs); color: var(--ink-faint-2); }
.lp-footer-legal { flex-basis: 100%; margin: 0; color: var(--ink-faint-3); }

/* --- responsive: hero + form two-column (≥860px) ----------------------- */
@media (min-width: 860px) {
  /* the 4:3 landscape slider fills its half-column edge-to-edge (original hero proportions) */
  .lp-hero-grid { grid-template-columns: 1fr 1fr; }
  .lp-cta { grid-template-columns: 1fr 1fr; }
}

/* --- responsive: tablet (≥720px) -------------------------------------- */
@media (min-width: 720px) {
  .landing .lp-container { padding-inline: var(--sp-6); }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-services { grid-template-columns: repeat(2, 1fr); }
  .lp-pricing { grid-template-columns: repeat(2, 1fr); }
}

/* --- responsive: desktop (≥1000px) ------------------------------------ */
@media (min-width: 1000px) {
  .lp-stats { grid-template-columns: repeat(4, 1fr); }
  .lp-services { grid-template-columns: repeat(4, 1fr); }
  .lp-pricing { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .lp-cta { grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); }
}
