/* LandMatch Pro — shared styles (beta) */
:root {
  /* Unified LandMatch Pro brand — earthy dark theme (matches the in-app portal) */
  --bg: #0d0f14;             /* app --ink */
  --panel: #15181f;          /* app dark card */
  --panel-2: #1b1f27;
  --border: #2a2e36;         /* app dark border */
  --text: #f4f2ed;           /* warm cream */
  --muted: #9ca3af;
  --brand: #e8814a;          /* terracotta accent (on dark) */
  --brand-2: #c8622a;        /* terracotta primary */
  --brand-ink: #2a1206;      /* readable text on terracotta buttons */
  --green: #34d399;          /* forest/land green — "live / included" */
  --green-2: #1a7a4a;
  --danger: #f87171;
  --link: #e8a06a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Skip link for accessibility */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #000; padding: 8px 14px; z-index: 100;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* Header */
.site-header {
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand-name em { color: var(--brand); font-style: normal; }
.site-header .wrap {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
nav.primary { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.primary a { color: var(--muted); font-weight: 500; }
nav.primary a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: background 120ms, border-color 120ms;
}
.btn:hover { background: #2a323d; text-decoration: none; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; font-weight: 700; box-shadow: 0 6px 18px -8px rgba(200,98,42,.7); }
.btn.primary:hover { background: var(--brand); border-color: var(--brand); }
.btn.block { display: block; width: 100%; text-align: center; padding: 12px 16px; font-size: 15px; }

/* Main */
main { flex: 1; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 20px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -8%, rgba(232, 129, 74, 0.18), transparent 62%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(52, 211, 153, 0.10), transparent 60%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.06; margin: 0 0 18px; letter-spacing: -0.025em; font-weight: 800;
}
.hero .accent {
  background: linear-gradient(100deg, var(--brand) 0%, #f0a878 55%, var(--green) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Trust / stat bar */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center;
  margin: 30px auto 0; max-width: 760px;
}
.trust-bar .ti { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.trust-bar .ti b { color: var(--text); }
.trust-bar .ti svg { width: 16px; height: 16px; flex: none; }

/* Sections */
section { padding: 60px 20px; border-top: 1px solid var(--border); }
section h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; }
section .sub { color: var(--muted); margin: 0 0 30px; max-width: 640px; }

/* Card grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; transition: border-color 140ms, transform 140ms, box-shadow 140ms;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--brand-2), var(--green));
  opacity: 0; transition: opacity 140ms;
}
.card:hover {
  border-color: rgba(232,129,74,.5); transform: translateY(-3px);
  box-shadow: 0 16px 34px -22px rgba(0,0,0,.8);
}
.card:hover::before { opacity: 1; }
.card .tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: rgba(232, 129, 74, 0.15); color: var(--brand);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 14px; }

/* Sample-data banner */
.sample-banner {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--danger);
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  margin-bottom: 24px; text-align: center;
}

/* How it works */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-2), var(--green-2)); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { color: var(--muted); margin: 0; }

/* Auth pages */
.auth-shell {
  min-height: calc(100vh - 140px);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px; width: 100%; max-width: 420px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 11px 12px; border-radius: 8px;
  background: #0a0d12; border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 15px;
}
.field input:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(232, 129, 74, 0.22);
}
.field .row { display: flex; gap: 8px; align-items: center; }
.field .show-pw {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 12px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600;
}
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 18px; font-size: 13px; color: var(--muted); }
.consent input[type=checkbox] { margin-top: 2px; }
.auth-msg {
  padding: 10px 12px; border-radius: 8px; font-size: 13px;
  margin-bottom: 14px; display: none;
}
.auth-msg.error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--danger); display: block; }
.auth-msg.success { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--green); display: block; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px 32px;
  color: var(--muted);
  font-size: 13px;
  background: var(--panel);
}
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h4 { color: var(--text); margin: 0 0 10px; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer .copyright { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  nav.primary { display: none; }
}

/* Doc pages (privacy, terms, about) */
.doc {
  padding: 50px 20px 80px;
}
.doc h1 { margin: 0 0 6px; font-size: 32px; }
.doc .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.doc h2 { margin: 36px 0 10px; font-size: 20px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }

/* ── Homepage v2: explainer videos ── */
.videos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.video-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.video-card:hover { border-color: rgba(232,129,74,.5); box-shadow: 0 16px 34px -22px rgba(0,0,0,.8); }
.video-card .vhead { padding: 16px 18px 6px; }
.video-card .vtag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: rgba(232,129,74,.15); color: var(--brand);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px;
}
.video-card h3 { margin: 0 0 4px; font-size: 18px; }
.video-card .vsub { color: var(--muted); font-size: 13px; margin: 0; }
.video-frame {
  position: relative; aspect-ratio: 16/9; background: #0a0d12;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 12px;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-pending {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); text-align: center; padding: 20px;
  background: radial-gradient(ellipse at center, rgba(74,222,128,.08), transparent 70%);
}
.video-card .vbody { padding: 14px 18px 18px; }
.video-card .vbody ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.video-card .vbody li strong { color: var(--text); }

/* ── Coverage map ── */
.cov-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.cov-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
.cov-dot.live { background: var(--green); }
.cov-dot.soon { background: #d8a13a; }
.coverage { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cov-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.cov-card.is-live { border-color: rgba(52,211,153,.4); }
.cov-card .cov-state { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cov-card .cov-state strong { font-size: 16px; color: var(--text); }
.cov-pill { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.cov-pill.live { background: rgba(52,211,153,.18); color: var(--green); }
.cov-pill.soon { background: rgba(216,161,58,.18); color: #e6b65a; }
.cov-card .cov-metros { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── Buyer strip ── */
.buyers-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.buyer-chip {
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin-top: 6px; }
.stat { text-align: center; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
/* Section heading accent underline */
section h2 .uline, .hero h1 .accent { display: inline; }
.video-pending { background: radial-gradient(ellipse at center, rgba(232,129,74,.08), transparent 70%) !important; }
.stat .lbl { color: var(--muted); font-size: 13px; }
@media (max-width: 700px){ .videos { grid-template-columns: 1fr; } }
