/* ============================================================================
   ForeclosureBid — demand-engine landing pages (marketing arm)
   Self-contained stylesheet. Brand tokens mirror css/styles.css so a landing
   page loads only this file + fonts (no dashboard CSS/JS payload).
   Namespaced under `.lp` to avoid any collision with dashboard classes.
   ========================================================================== */

:root {
  --lp-navy: #2b3877;
  --lp-navy-dark: #011835;
  --lp-navy-deep: #020381;
  --lp-orange: #fe7e0d;
  --lp-orange-hover: #e56f00;
  --lp-ink: #101425;
  --lp-body: #3a4258;
  --lp-muted: #5b6480;
  --lp-line: #dbe3f0;
  --lp-surface: #ffffff;
  --lp-bg: #f4f7fc;
  --lp-bg-tint: #eef3fb;
  --lp-good: #0f7a52;
  --lp-radius: 14px;
  --lp-radius-sm: 9px;
  --lp-shadow: 0 10px 34px rgba(11, 24, 53, 0.09);
  --lp-shadow-lg: 0 22px 60px rgba(1, 24, 53, 0.16);
  --lp-font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --lp-font-head: "Syne", "Poppins", system-ui, sans-serif;
  --lp-maxw: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.lp {
  margin: 0;
  font-family: var(--lp-font-body);
  color: var(--lp-body);
  background: var(--lp-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.lp img {
  max-width: 100%;
  display: block;
}

.lp a {
  color: var(--lp-navy);
  text-decoration: none;
}

.lp a:hover {
  text-decoration: underline;
}

.lp-wrap {
  width: 100%;
  max-width: var(--lp-maxw);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.lp-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lp-navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 50;
}
.lp-skip:focus {
  left: 0;
}

/* --- top bar ------------------------------------------------------------- */
.lp-topbar {
  border-bottom: 1px solid var(--lp-line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.lp-topbar .lp-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lp-font-head);
  font-weight: 700;
  color: var(--lp-navy);
  font-size: 1.05rem;
}
.lp-brand:hover {
  text-decoration: none;
}
.lp-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--lp-navy);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.lp-topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}
.lp-topnav a {
  color: var(--lp-muted);
}
@media (max-width: 640px) {
  .lp-topnav a.lp-topnav-link {
    display: none;
  }
}

/* --- buttons ------------------------------------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--lp-font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lp-btn:hover {
  text-decoration: none;
}
.lp-btn:active {
  transform: translateY(1px);
}
.lp-btn-primary {
  background: var(--lp-orange);
  color: #201200;
  box-shadow: 0 8px 20px rgba(254, 126, 13, 0.28);
}
.lp-btn-primary:hover {
  background: var(--lp-orange-hover);
}
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-navy);
  border-color: var(--lp-line);
}
.lp-btn-ghost:hover {
  border-color: var(--lp-navy);
}
.lp-btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}
.lp-btn:focus-visible {
  outline: 3px solid var(--lp-navy);
  outline-offset: 2px;
}

/* --- hero ---------------------------------------------------------------- */
.lp-hero {
  background: linear-gradient(160deg, var(--lp-navy-dark) 0%, var(--lp-navy) 52%, var(--lp-navy-deep) 100%);
  color: #eef2fb;
  position: relative;
  overflow: hidden;
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 88% 8%, rgba(254, 126, 13, 0.18), transparent 60%),
    radial-gradient(40% 60% at 6% 100%, rgba(4, 97, 221, 0.22), transparent 60%);
  pointer-events: none;
}
.lp-hero .lp-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
@media (max-width: 860px) {
  .lp-hero .lp-wrap {
    grid-template-columns: 1fr;
  }
}
.lp-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffc78a;
  margin: 0 0 16px;
}
.lp-hero h1 {
  font-family: var(--lp-font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: #fff;
}
.lp-hero .lp-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #cdd6ec;
  margin: 0 0 28px;
  max-width: 34em;
}
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.lp-hero-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: #9fabca;
}

/* hero side card (form or highlight) */
.lp-hero-card {
  background: var(--lp-surface);
  color: var(--lp-body);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--lp-shadow-lg);
}
.lp-hero-card h2 {
  font-family: var(--lp-font-head);
  color: var(--lp-navy);
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.lp-hero-card .lp-card-sub {
  font-size: 0.92rem;
  color: var(--lp-muted);
  margin: 0 0 18px;
}

/* --- sections ------------------------------------------------------------ */
.lp-section {
  padding: clamp(48px, 7vw, 84px) 0;
}
.lp-section-tint {
  background: var(--lp-bg);
}
.lp-section-ink {
  background: var(--lp-navy-dark);
  color: #dfe6f5;
}
.lp-section-head {
  max-width: 40em;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.lp-section-head.lp-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.lp-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lp-orange);
  margin: 0 0 12px;
}
.lp-h2 {
  font-family: var(--lp-font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--lp-ink);
  margin: 0 0 14px;
}
.lp-section-ink .lp-h2 {
  color: #fff;
}
.lp-sub {
  font-size: 1.05rem;
  color: var(--lp-muted);
  margin: 0;
}
.lp-section-ink .lp-sub {
  color: #b9c4de;
}

/* pain / who list */
.lp-painlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-painlist li {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-left: 4px solid var(--lp-orange);
  border-radius: var(--lp-radius-sm);
  padding: 20px 22px;
}
.lp-painlist strong {
  display: block;
  color: var(--lp-ink);
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.lp-painlist span {
  font-size: 0.94rem;
  color: var(--lp-muted);
}

/* steps */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: lpstep;
}
.lp-step {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
}
.lp-step::before {
  counter-increment: lpstep;
  content: counter(lpstep);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--lp-navy);
  color: #fff;
  font-family: var(--lp-font-head);
  font-weight: 700;
  margin-bottom: 14px;
}
.lp-step h3 {
  font-size: 1.08rem;
  color: var(--lp-ink);
  margin: 0 0 8px;
}
.lp-step p {
  font-size: 0.94rem;
  color: var(--lp-muted);
  margin: 0;
}

/* feature grid */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.lp-feature {
  padding: 22px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
}
.lp-section-tint .lp-feature {
  background: #fff;
}
.lp-feature h3 {
  font-size: 1.05rem;
  color: var(--lp-ink);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-feature p {
  font-size: 0.94rem;
  color: var(--lp-muted);
  margin: 0;
}
.lp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lp-orange);
  flex: 0 0 auto;
}

/* honest signal strip (qualitative, no fabricated numbers) */
.lp-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--lp-line);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  overflow: hidden;
}
.lp-signal {
  background: var(--lp-surface);
  padding: 22px 20px;
}
.lp-signal .lp-signal-v {
  font-family: var(--lp-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--lp-navy);
  margin: 0 0 4px;
}
.lp-signal .lp-signal-l {
  font-size: 0.88rem;
  color: var(--lp-muted);
  margin: 0;
}

/* faq */
.lp-faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.lp-faq details {
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  padding: 4px 6px;
}
.lp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--lp-ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: "+";
  color: var(--lp-orange);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
}
.lp-faq details[open] summary::after {
  content: "\2013";
}
.lp-faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--lp-muted);
  font-size: 0.96rem;
}

/* cta band */
.lp-ctaband {
  background: linear-gradient(120deg, var(--lp-navy) 0%, var(--lp-navy-deep) 100%);
  color: #fff;
  border-radius: 18px;
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
}
.lp-ctaband h2 {
  font-family: var(--lp-font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  color: #fff;
}
.lp-ctaband p {
  color: #c6d0ea;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

/* --- lead form ----------------------------------------------------------- */
.lp-form {
  display: grid;
  gap: 14px;
}
.lp-field {
  display: grid;
  gap: 6px;
}
.lp-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-field input,
.lp-field select,
.lp-field textarea {
  font-family: var(--lp-font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--lp-ink);
  width: 100%;
}
.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
  outline: 3px solid rgba(43, 56, 119, 0.35);
  outline-offset: 1px;
  border-color: var(--lp-navy);
}
.lp-field textarea {
  min-height: 84px;
  resize: vertical;
}
.lp-form-note {
  font-size: 0.8rem;
  color: var(--lp-muted);
  margin: 2px 0 0;
}
.lp-form-msg {
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0;
}
.lp-form-msg.is-error {
  background: #fdecec;
  color: #a12222;
  border: 1px solid #f4caca;
}
.lp-form-msg.hidden {
  display: none;
}
/* honeypot — hidden from humans, catches bots */
.lp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* confirmation state */
.lp-confirm {
  text-align: center;
  padding: 8px 4px;
}
.lp-confirm .lp-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(15, 122, 82, 0.12);
  color: var(--lp-good);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.lp-confirm h3 {
  font-family: var(--lp-font-head);
  color: var(--lp-ink);
  margin: 0 0 8px;
}
.lp-confirm p {
  color: var(--lp-muted);
  margin: 0 0 6px;
  font-size: 0.96rem;
}

/* --- footer -------------------------------------------------------------- */
.lp-footer {
  border-top: 1px solid var(--lp-line);
  padding: 40px 0;
  background: var(--lp-bg-tint);
  font-size: 0.9rem;
  color: var(--lp-muted);
}
.lp-footer .lp-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.lp-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.lp-footer a {
  color: var(--lp-muted);
}
.lp-fineprint {
  max-width: 46em;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --- hub / directory ----------------------------------------------------- */
.lp-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.lp-hub-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: #fff;
  box-shadow: var(--lp-shadow);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.lp-hub-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-lg);
}
.lp-hub-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lp-orange);
}
.lp-hub-card h3 {
  font-family: var(--lp-font-head);
  color: var(--lp-navy);
  font-size: 1.15rem;
  margin: 8px 0 8px;
}
.lp-hub-card p {
  color: var(--lp-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .lp-btn,
  .lp-hub-card {
    transition: none;
  }
}
