/* ============================================================================
   SimpleAgentRE — public landing + sign-in page (login.php)
   Namespaced under .lp- so it can't collide with core.css / login.css.
   Colors come from the active theme tokens (default = emerald pre-login),
   so the page stays on-brand and follows any future default-theme change.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; }

/* ---- ambient brand glow ------------------------------------------------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 0%, color-mix(in srgb, var(--color-primary) 18%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 10%, color-mix(in srgb, var(--color-accent) 10%, transparent) 0%, transparent 50%);
}
.lp-page { position: relative; z-index: 1; }

/* ---- wordmark ----------------------------------------------------------- */
.lp-wm {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; letter-spacing: 0.04em; line-height: 1;
  color: var(--color-text); text-decoration: none;
}
.lp-wm-accent { color: var(--color-accent); }

/* ---- top bar ------------------------------------------------------------ */
.lp-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
  background: color-mix(in srgb, var(--color-bg-deep) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; width: 100%; padding: 0 1.5rem; }
.lp-nav-links { display: flex; align-items: center; gap: 1.25rem; }
.lp-nav-link { font-size: 0.85rem; color: var(--color-text-muted); text-decoration: none; transition: color 0.15s; }
.lp-nav-link:hover { color: var(--color-text); }

/* ---- buttons ------------------------------------------------------------ */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  padding: 0.7rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.lp-btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.lp-btn-primary:hover { background: var(--color-primary-hover); }
.lp-btn-primary:active { transform: scale(0.99); }
.lp-btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.lp-btn-ghost:hover { background: var(--color-surface-2); }
.lp-btn-block { width: 100%; }

/* ---- hero --------------------------------------------------------------- */
.lp-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding: 4.5rem 0 3.5rem; }
.lp-eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.lp-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--color-accent); border-radius: 2px; }
.lp-hero h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 0.98; letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
}
.lp-hero h1 em { font-style: normal; color: var(--color-accent); }
.lp-hero-sub { font-size: 1.05rem; font-weight: 300; color: var(--color-text-muted); max-width: 30rem; margin-bottom: 1.8rem; }
.lp-hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---- sign-in card ------------------------------------------------------- */
.lp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px; padding: 2rem 1.9rem;
  backdrop-filter: blur(16px);
}
.lp-card-head { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.04em; margin: 0 0 0.25rem; }
.lp-card-sub { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 1.4rem; }
.lp-field { margin-bottom: 1rem; }
.lp-field label {
  display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.45rem;
}
.lp-input {
  width: 100%; background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong); border-radius: 10px;
  padding: 0.75rem 0.9rem; font-size: 0.95rem; color: var(--color-text);
  font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.15s;
}
.lp-input:focus { border-color: var(--color-primary-bright); }
.lp-input::placeholder { color: var(--color-text-faint); }
.lp-error {
  background: var(--color-danger-soft); border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
  color: #fca5a5; border-radius: 9px; padding: 0.7rem 0.9rem; font-size: 0.82rem;
  text-align: center; margin-bottom: 1rem;
}
.lp-card-foot { text-align: center; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 1.1rem; }
.lp-card-foot a { color: var(--color-primary-bright); text-decoration: none; }

/* ---- section scaffolding ------------------------------------------------ */
.lp-section { padding: 3.5rem 0; }
.lp-section-head { max-width: 38rem; margin: 0 0 2.4rem; }
.lp-section-eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.7rem; }
.lp-section-head h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 0.02em; margin: 0 0 0.6rem; }
.lp-section-head p { color: var(--color-text-muted); font-weight: 300; margin: 0; }

/* ---- feature grid ------------------------------------------------------- */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-feature {
  background: var(--color-surface); border: 1px solid var(--color-border-soft);
  border-radius: 14px; padding: 1.5rem 1.4rem; transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.lp-feature:hover { border-color: color-mix(in srgb, var(--color-primary) 35%, transparent); transform: translateY(-3px); background: var(--color-surface-2); }
.lp-feature-icon {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-soft); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  color: var(--color-primary-bright); margin-bottom: 1rem;
}
.lp-feature-icon svg { width: 21px; height: 21px; }
.lp-feature h3 { font-size: 1rem; font-weight: 500; margin: 0 0 0.4rem; }
.lp-feature p { font-size: 0.86rem; font-weight: 300; color: var(--color-text-muted); margin: 0; }

/* ---- stat strip --------------------------------------------------------- */
.lp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem;
  border-top: 1px solid var(--color-border-soft); padding-top: 2rem;
}
.lp-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: 0.02em; line-height: 1; color: var(--color-accent); }
.lp-stat-lbl { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.3rem; }

/* ---- request / contact -------------------------------------------------- */
.lp-request { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.lp-request-form .lp-field { margin-bottom: 0.9rem; }
.lp-textarea { resize: vertical; min-height: 88px; }
.lp-status { font-size: 0.84rem; margin-top: 0.6rem; min-height: 1.2rem; }
.lp-status.ok  { color: var(--color-success); }
.lp-status.err { color: #fca5a5; }
.lp-contact-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 1.8rem;
}
.lp-contact-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.03em; }
.lp-contact-role { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 1.3rem; }
.lp-contact-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; font-size: 0.92rem; text-decoration: none; color: var(--color-text); }
.lp-contact-row:hover { color: var(--color-primary-bright); }
.lp-contact-row svg { width: 17px; height: 17px; color: var(--color-primary-bright); flex-shrink: 0; }
.lp-contact-row.static:hover { color: var(--color-text); }
.lp-contact-note { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--color-border-soft); font-size: 0.82rem; font-weight: 300; color: var(--color-text-muted); }

/* ---- footer ------------------------------------------------------------- */
.lp-footer { border-top: 1px solid var(--color-border-soft); padding: 2.2rem 0; margin-top: 1rem; }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.lp-footer-small { font-size: 0.78rem; color: var(--color-text-faint); font-weight: 300; }

/* ---- CRM spotlight ------------------------------------------------------ */
.lp-spotlight { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 3rem; align-items: center; padding: 1rem 0 1.5rem; }
.lp-spotlight h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 0.02em; margin: 0.5rem 0 0.7rem; }
.lp-spotlight-sub { color: var(--color-text-muted); font-weight: 300; margin: 0 0 1.3rem; }
.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; color: var(--color-text); margin-bottom: 0.6rem; }
.lp-list svg { width: 18px; height: 18px; color: var(--color-primary-bright); flex-shrink: 0; margin-top: 1px; }

/* reminder feed mock */
.lp-rem-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; padding: 1.4rem 1.3rem; backdrop-filter: blur(16px); }
.lp-rem-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.lp-rem-head h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.25rem; letter-spacing: 0.04em; margin: 0; }
.lp-rem-head span { font-size: 0.72rem; color: var(--color-text-muted); }
.lp-rem-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--color-surface-2); border: 1px solid var(--color-border-soft); margin-bottom: 0.55rem; }
.lp-rem-mark { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--color-primary-soft); border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); color: var(--color-primary-bright); }
.lp-rem-mark svg { width: 15px; height: 15px; }
.lp-rem-body { flex: 1; min-width: 0; }
.lp-rem-name { font-size: 0.88rem; font-weight: 500; line-height: 1.3; }
.lp-rem-when { font-size: 0.74rem; color: var(--color-text-muted); margin-top: 0.1rem; }
.lp-rem-chip { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent); padding: 0.18rem 0.5rem; border-radius: 100px; align-self: center; white-space: nowrap; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 2.2rem; padding: 3rem 0 2.5rem; }
  .lp-spotlight { grid-template-columns: 1fr; gap: 1.8rem; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-request { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 560px) {
  .lp-nav-links .lp-nav-link.hide-sm { display: none; }
  .lp-features, .lp-stats { grid-template-columns: 1fr; }
  .lp-hero-cta .lp-btn { flex: 1; }
}

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