/* Lanka Real Estate — the public site.
   Warm bone canvas, one green accent, near-black primary actions (design/TOKENS.md).
   A different surface from the agent portal on purpose: this one is read, not scanned. */
:root {
  --canvas: #E7E3DB;
  --shell: #FAF8F5;
  --surface: #FFFFFF;
  --surface-2: #F3F0EA;
  --line: #E7E2D9;
  --ink: #1A1F1C;
  --muted: #5F6A61;
  --faint: #6E766D;
  --accent: #4FC17E;
  --accent-mark: #22935C;
  --accent-deep: #0E6B4A;
  --accent-soft: #E6F4EB;
  --clay: #8F4720;
  --clay-soft: #F6E9DF;
  --bad: #A03028;
  --bad-soft: #F9E3E1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(26,31,28,.05), 0 8px 24px rgba(26,31,28,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --canvas: #14170F; --shell: #1B1F19; --surface: #222720; --surface-2: #2A302A;
    --line: #333A32; --ink: #F1EFE8; --muted: #A9B2A7; --faint: #929B90;
    --accent-soft: #16301F; --clay-soft: #33231A; --bad-soft: #331E1C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: 'Schibsted Grotesk', system-ui, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'DM Mono', ui-monospace, Menlo, monospace; }
.tnum { font-variant-numeric: tabular-nums; }
a { color: var(--accent-deep); }

/* --- shell ------------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
header.site {
  position: sticky; top: 0; z-index: 20; background: var(--shell);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--faint); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-left: 8px; }
nav.site { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav.site a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; }
nav.site a:hover { background: var(--surface-2); color: var(--ink); }
nav.site a.on { background: var(--accent-soft); color: var(--accent-deep); }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 500;
  font-size: .94rem; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
/* Primary is near-black, not green: green is reserved for state and emphasis. */
.btn.primary { background: var(--ink); color: var(--shell); border-color: var(--ink); }
.btn.primary:hover { opacity: .9; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.small { padding: 7px 14px; font-size: .86rem; }

/* --- hero -------------------------------------------------------------- */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 16px; max-width: 16ch; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.hero .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- filters ----------------------------------------------------------- */
.filters {
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: grid; gap: 12px; margin-bottom: 24px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 600; }
input, select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-mark); outline-offset: 1px; }
textarea { min-height: 96px; resize: vertical; }

/* --- stats ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; padding-bottom: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-n { font-size: 2rem; font-weight: 650; letter-spacing: -.03em; color: var(--accent-deep); line-height: 1.1; }
.stat-l { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* --- how it works ----------------------------------------------------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: 700; font-size: .9rem; margin-bottom: 12px;
}
.step strong { display: block; font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

.split { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }
.panel.quiet { background: var(--surface-2); box-shadow: none; }
.panel h2.section { margin-bottom: 8px; }
.panel p { color: var(--muted); }

.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.wrap.narrow { max-width: 780px; }

/* --- form -------------------------------------------------------------- */
.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.note { font-size: .84rem; color: var(--muted); }
.error { background: var(--bad-soft); color: var(--bad); padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.success { background: var(--accent-soft); color: var(--accent-deep); padding: 20px; border-radius: var(--radius); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: 6px; }
.loading { padding: 60px; text-align: center; color: var(--muted); }
section.block { padding: 20px 0 64px; }
h2.section { font-size: 1.5rem; letter-spacing: -.025em; margin: 0 0 4px; }
p.section-sub { color: var(--muted); margin: 0 0 22px; }
footer.site { border-top: 1px solid var(--line); background: var(--shell); padding: 32px 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
footer.site a { margin-left: auto; }
.pager { display: flex; gap: 10px; justify-content: center; padding: 32px 0; }
