/* LIR off-market portal — Phase 2 styles. Mobile-first, system fonts. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #1a3a22;
  --accent-hover: #0d2814;
  --rule: #e6e6e6;
  --soft: #f7f5f1;
  --warn-bg: #fff8d8;
  --warn-bd: #d4a200;
  --warn-fg: #6a4a00;
  --error-bg: #fef2f2;
  --error-bd: #f1b0b0;
  --error-fg: #8b1a1a;
  --max-w: 640px;
  --max-w-wide: 980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 56px 24px 96px; }
.container-wide { max-width: var(--max-w-wide); }

.brand { border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 36px; }
.brand h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand-tag { color: var(--text-muted); font-size: 16px; margin: 12px 0 0; }

.background p { margin: 0 0 20px; color: var(--text-muted); font-size: 16px; }

.opportunities { margin-top: 48px; }
.opportunities h2 { font-size: 20px; margin: 0 0 18px; letter-spacing: -0.01em; }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card { display: block; background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-1px); text-decoration: none; }
.card-photo { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: #ddd; }
.card-photo-fallback { background: linear-gradient(135deg, #4d6c52, #2a4032); }
.card-body { padding: 16px 18px; }
.card-type { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.card-loc { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.card-price { font-size: 17px; font-weight: 600; margin-top: 8px; }
.card-headline { font-size: 14px; margin-top: 8px; line-height: 1.45; }
.card-narrative { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.card-cta { font-size: 13px; color: var(--accent); margin-top: 14px; font-weight: 600; }

.empty { color: var(--text-muted); font-style: italic; }

.closings { margin-top: 56px; }
.closings h2 { font-size: 20px; margin: 0 0 16px; }
.closings-list { list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: 14px; }
.closings-list li { padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.example-tag { background: #fff8d8; color: #6a4a00; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; letter-spacing: 0.05em; margin-left: 6px; }

.placeholder-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  color: var(--warn-fg);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.have-opportunity { margin-top: 56px; }
.have-opportunity h2 { font-size: 18px; margin: 0 0 8px; }
.have-opportunity p { color: var(--text-muted); font-size: 16px; margin: 0; }

.cta { margin: 40px 0 56px; }
.cta-link {
  display: inline-block; background: var(--accent); color: #ffffff; text-decoration: none;
  padding: 14px 28px; border-radius: 6px; font-size: 16px; font-weight: 500; border: none;
  cursor: pointer; transition: background 0.15s ease;
}
.cta-link:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.cta-link:disabled { opacity: 0.5; cursor: wait; }
.btn-secondary { display: inline-block; background: #fff; color: var(--accent); border: 1px solid var(--accent); padding: 13px 28px; border-radius: 6px; font-size: 16px; cursor: pointer; text-decoration: none; }

.contact { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.contact p { margin: 4px 0; }
.contact .agents { color: var(--text); font-weight: 500; margin-bottom: 8px; }
.contact a { color: var(--text-muted); }

.back-link { font-size: 14px; margin: 0 0 14px; }

.teaser-photo { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: #ddd; border-radius: 8px; margin-bottom: 24px; }
.teaser-photo-fallback { background: linear-gradient(135deg, #4d6c52, #2a4032); }

.teaser-header { margin-bottom: 24px; }
.teaser-meta { display: flex; gap: 12px; align-items: center; color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }
.teaser-type { font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }
.teaser-headline { font-size: 28px; margin: 8px 0; letter-spacing: -0.01em; }
.teaser-price { font-size: 22px; font-weight: 600; margin-top: 8px; }

.teaser-narrative p { font-size: 17px; line-height: 1.7; }
.teaser-gated { background: var(--soft); border-radius: 8px; padding: 20px 24px; margin: 32px 0; }
.teaser-gated h2 { font-size: 16px; margin: 0 0 8px; }
.teaser-gated ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-muted); }
.teaser-gated li { margin: 4px 0; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.form-tight { gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.field-optional { color: #999; font-weight: 400; font-size: 12px; margin-left: 4px; }
.field input { padding: 12px 14px; font-size: 16px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--text); width: 100%; font-family: inherit; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.form-submit { align-self: flex-start; margin-top: 6px; }
.form-resend { margin: 6px 0 0; font-size: 13px; }
.form-error { background: var(--error-bg); border: 1px solid var(--error-bd); color: var(--error-fg); border-radius: 4px; padding: 8px 12px; font-size: 14px; margin: 8px 0 0; }

.verify-step { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.verify-step.done { opacity: 0.6; }
.verify-step h2 { font-size: 17px; margin: 0 0 6px; }
.verify-help { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }

.dev-mode-banner {
  background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-fg);
  border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}

/* NCNDA preview */
.ncnda-preview { background: var(--soft); border: 1px solid var(--rule); border-radius: 8px; padding: 28px 32px; margin: 32px 0; max-height: 560px; overflow-y: auto; }
.ncnda-title { font-size: 18px; margin: 0 0 18px; text-align: center; }
.ncnda-preview h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 22px 0 8px; }
.ncnda-preview p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.ncnda-preview ul { font-size: 14px; padding-left: 20px; }
.ncnda-preview li { margin: 6px 0; }
.asset-block { background: #fffbe7; border-left: 3px solid var(--warn-bd); padding: 8px 12px; }
.liq-block { background: #fffbe7; border-left: 3px solid var(--warn-bd); padding: 8px 12px; }

.signature-section h2 { font-size: 18px; margin: 32px 0 14px; }
.signature-section h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 22px 0 8px; }
.buyer-fields { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 18px; margin-bottom: 16px; }
.buyer-fields .kv { display: flex; gap: 14px; padding: 4px 0; font-size: 14px; }
.buyer-fields .kv .k { color: var(--text-muted); min-width: 90px; }

.agent-block { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 18px; font-size: 14px; line-height: 1.6; }

.sig-help { color: var(--text-muted); font-size: 14px; }
.sig-pad-wrap { background: #fff; border: 2px dashed #c0c0c0; border-radius: 6px; padding: 4px; margin: 12px 0 6px; }
.sig-pad { width: 100%; height: 180px; touch-action: none; cursor: crosshair; display: block; }
.sig-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Property full page */
.ncnda-banner { background: #e8f4ec; border: 1px solid #75b08d; color: #1f4a2c; padding: 10px 14px; border-radius: 6px; margin-bottom: 24px; font-size: 14px; }
.full-header { margin-bottom: 24px; }
.full-meta { display: flex; gap: 12px; color: var(--text-muted); font-size: 14px; }
.full-type { font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }
.full-address { font-size: 26px; margin: 8px 0; letter-spacing: -0.01em; }
.full-price { font-size: 22px; font-weight: 600; }

.full-photos { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0; }
@media (min-width: 720px) { .full-photos { grid-template-columns: repeat(3, 1fr); } }
.full-photo { aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: 8px; background-color: #ddd; }
.full-photo-fallback { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #4d6c52, #2a4032); border-radius: 8px; }
.full-photos-placeholder { position: relative; }
.full-photos-placeholder::before {
  content: '⚠ PHOTO PLACEHOLDERS — REPLACE BEFORE LAUNCH';
  position: absolute; top: -22px; left: 0; font-size: 11px; color: var(--warn-fg); font-weight: 600; letter-spacing: 0.04em;
}

.full-details { margin: 32px 0; }
.full-details h2 { font-size: 18px; margin: 0 0 14px; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 8px 10px; border-bottom: 1px solid var(--rule); font-size: 14px; vertical-align: top; }
.kv td.k { color: var(--text-muted); width: 200px; font-weight: 500; }
.kv td.v { color: var(--text); }
.placeholder { background: var(--warn-bg); color: var(--warn-fg); padding: 12px 14px; border-radius: 4px; font-size: 14px; }

.full-cta-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.full-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); }
.downloaded-ncnda { color: var(--text-muted); font-size: 14px; }

@media (min-width: 720px) {
  .container { padding: 96px 32px; }
  .brand h1 { font-size: 26px; }
}

/* ─── Landing page — Option C (black hero / white body / black footer) ─── */
/* All selectors prefixed lp- to avoid collision with other portal pages.    */

.lp-nav {
  background: #0d0f12;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-nav-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}
.lp-nav-brand {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.lp-nav-divider { color: #444; }
.lp-nav-label { font-size: 13px; color: #777; }

.lp-hero {
  background: #0d0f12;
  padding: 72px 32px 80px;
  color: #ffffff;
}
.lp-hero-inner { max-width: 980px; margin: 0 auto; }
.lp-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 20px;
}
.lp-hero-headline {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 22px;
  color: #ffffff;
}
.lp-hero-sub {
  font-size: 17px;
  color: #999;
  max-width: 540px;
  line-height: 1.65;
  margin: 0 0 40px;
}
.lp-hero-agents {
  font-size: 14px;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lp-hero-agents-name { color: #aaa; font-weight: 500; }

@media (max-width: 640px) {
  .lp-hero { padding: 52px 24px 60px; }
  .lp-hero-headline { font-size: 30px; }
  .lp-nav { padding: 12px 20px; }
}

.lp-body { background: #ffffff; }

.lp-section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 32px;
}
@media (max-width: 640px) {
  .lp-section-inner { padding: 48px 20px; }
}

.lp-section-heading {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

/* ─── Listing cards ─── */

.lp-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .lp-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .lp-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.lp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #1a1a1a;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.lp-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
  text-decoration: none;
}
.lp-card-photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}
.lp-card-photo-fallback {
  background: linear-gradient(135deg, #1a3a22, #0d2814);
}
.lp-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lp-card-type {
  font-size: 11px;
  font-weight: 700;
  color: #1a3a22;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lp-card-loc { font-size: 13px; color: #888; margin-top: 2px; }
.lp-card-price {
  font-size: 20px;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.lp-card-headline {
  font-size: 13px;
  color: #444;
  margin-top: 6px;
  line-height: 1.45;
}
.lp-card-t2 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.lp-card-badge {
  background: #f2f2f2;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}
.lp-card-narrative {
  font-size: 13px;
  color: #888;
  margin-top: 10px;
  line-height: 1.5;
  flex: 1;
}
.lp-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: #1a3a22;
  margin-top: 16px;
  letter-spacing: 0.01em;
}

/* ─── Closings ─── */

.lp-closings { border-top: 1px solid #f0f0f0; }
.lp-closings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #777;
  font-size: 14px;
}
.lp-closings-list li {
  padding: 9px 0;
  border-bottom: 1px dashed #ebebeb;
}

/* ─── Seller intake ─── */

.lp-seller {
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.lp-seller-intro {
  font-size: 16px;
  color: #555;
  margin: 0 0 28px;
  max-width: 520px;
  line-height: 1.65;
}
.lp-seller-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 580px;
}
@media (max-width: 580px) {
  .lp-seller-form { grid-template-columns: 1fr; }
}
.lp-field-full { grid-column: 1 / -1; }
.lp-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.lp-field input,
.lp-field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  transition: border-color 0.12s;
}
.lp-field input:focus,
.lp-field textarea:focus {
  outline: none;
  border-color: #1a3a22;
  box-shadow: 0 0 0 3px rgba(26,58,34,0.08);
}
.lp-field textarea { resize: vertical; min-height: 80px; }
.lp-seller-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lp-btn-submit {
  background: #1a3a22;
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  font-family: inherit;
}
.lp-btn-submit:hover { background: #0d2814; }
.lp-btn-submit:disabled { opacity: 0.55; cursor: wait; }
.lp-form-status { font-size: 14px; color: #666; }
.lp-form-status.success { color: #1a3a22; font-weight: 500; }
.lp-form-status.error { color: #8b1a1a; }

/* ─── Footer ─── */

.lp-footer {
  background: #0d0f12;
  color: #666;
  padding: 52px 32px;
}
.lp-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-footer-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.lp-footer-logo {
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.4;
}
.lp-footer-brand { color: #ccc; font-size: 14px; font-weight: 600; }
.lp-footer-agents { color: #aaa; font-size: 14px; font-weight: 500; }
.lp-footer-address { font-size: 13px; }
.lp-footer-links {
  font-size: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.lp-footer-links a { color: #666; text-decoration: none; }
.lp-footer-links a:hover { color: #aaa; }
.lp-footer-legal {
  font-size: 12px;
  color: #444;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #1e1e1e;
  line-height: 1.6;
  max-width: 660px;
}

@media (max-width: 640px) {
  .lp-footer { padding: 40px 20px; }
}
