/* Public marketing site. Plain CSS, no build step, no framework.
   The management panel has its own stylesheet at /app/panel.css — this one is
   deliberately warmer and more spacious, since it is read rather than operated. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7f6;
  --ink: #16211f;
  --ink-soft: #3d4a47;
  --muted: #66736f;
  --border: #dfe5e2;
  --primary: #1f6b58;
  --primary-dark: #17513f;
  --accent-bg: #e8f2ee;
  --radius: 6px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 640px; }

h1, h2, h3, .brand, .brand-sm, .btn, .site-nav, .footer-nav, .roadmap span {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.018em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
h3 { font-size: 1.08rem; letter-spacing: -0.008em; margin: 0 0 .6rem; }

/* An h2 with a leading .icon-sm badge, used on About's prose sections —
   the same small-icon idea as .feature-list dt, just for a heading that
   isn't part of a <dl>. */
.h2-icon { display: flex; align-items: center; gap: .7rem; }

p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.lede-sm { color: var(--ink-soft); }
.muted { color: var(--muted); }

a { color: var(--primary); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Header ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 1rem; padding-bottom: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.site-nav { display: flex; gap: 1.25rem; margin-right: auto; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: .7rem 1.3rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--primary);
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-plain {
  background: transparent; color: var(--primary);
  border: 1px solid var(--border);
}
.btn-plain:hover { background: var(--bg-alt); }

/* ---- Sections ---------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0; }
/* Two columns once there is room for the illustration beside the copy; one
   below that, illustration first so it doesn't force a long scroll past text
   before showing anything of a "real estate site" feel on a phone. */
.hero .wrap {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 360px; }
}
/* A plain block, so its left edge lines up with every section below it —
   width lives on the grid column, not here, which is also what keeps this
   from inheriting a centring max-width the way it would on .wrap itself. */
.hero-inner { max-width: 620px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* The estate illustration: a soft accent-colour wash behind a single-stroke
   line drawing, the way a boutique agency's branding uses one refined
   architectural sketch instead of a busy skyline — this is the "read as
   quality" move the admin dashboard's denser Main Street skyline doesn't
   attempt, and shouldn't here either. */
.hero-art { order: -1; }
@media (min-width: 860px) { .hero-art { order: 0; } }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art .art-blob   { fill: var(--accent-bg); }
.hero-art .art-line   { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hero-art .art-accent { fill: var(--primary); }

/* ---- Feature card icons -------------------------------------------------- */
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--accent-bg); color: var(--primary);
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---- Closing skyline ----------------------------------------------------- */
/* A quiet bookend before the footer, the same texture-not-content idea as the
   admin dashboard's watermark — aria-hidden, and in the site's own green
   rather than a copy-paste of the admin panel's warm palette. */
.skyline-band { overflow: hidden; line-height: 0; }
.skyline-band svg { display: block; width: 100%; height: 72px; color: var(--border); }
.skyline-band .skyline-back  { fill: currentColor; opacity: .7; }
.skyline-band .skyline-front { fill: var(--primary); opacity: .12; }

.band { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--border); }
.band-alt { background: var(--bg-alt); }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1rem; }

.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* ---- Cards ------------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---- Feature list ------------------------------------------------------ */
.feature-list { margin: 0; }
.feature-list dt {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 650; margin-top: 1.6rem;
  display: flex; align-items: center; gap: .7rem;
}
.feature-list dt:first-child { margin-top: 0; }
.feature-list dd {
  margin: .4rem 0 0 2.5rem; color: var(--ink-soft);
  max-width: var(--measure); font-size: .98rem;
}

/* A small icon badge before a dt or an h2 — the same idea as the homepage's
   .card-icon, just smaller so it sits comfortably inline with a heading
   instead of stacked above one. */
.icon-sm {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px;
  background: var(--accent-bg); color: var(--primary);
}
.icon-sm svg { width: 17px; height: 17px; }
/* For an .icon-sm sitting inline in running text (contact.php's email line)
   rather than beside a heading, which needs no vertical nudge of its own. */
.icon-inline { vertical-align: -8px; margin-right: .5rem; }

/* "Not built yet" dims its icons to --muted rather than --primary, so status
   reads at a glance without a word of copy changing: available now is in the
   brand colour, not yet is deliberately quieter. */
.feature-list.is-pending .icon-sm { background: var(--bg-alt); color: var(--muted); }

/* ---- Roadmap ----------------------------------------------------------- */
.roadmap { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; }
.roadmap li {
  counter-increment: step;
  display: grid; grid-template-columns: 2rem 1fr; gap: .3rem 1rem;
  padding: 1rem 0; border-top: 1px solid var(--border);
  align-items: baseline;
}
/* The numbers are real order — this is a sequence, not decoration. */
.roadmap li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.roadmap strong { font-family: system-ui, -apple-system, sans-serif; font-weight: 650; }
.roadmap span { grid-column: 2; color: var(--ink-soft); font-size: .95rem; }

/* ---- Contact ----------------------------------------------------------- */
.contact-email { font-size: 1.3rem; margin-bottom: 1.5rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---- CTA --------------------------------------------------------------- */
.cta { background: var(--accent-bg); padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.cta-inner { text-align: center; }
.cta-inner p { margin-left: auto; margin-right: auto; }
.cta-inner h2 { margin-bottom: .5rem; }
.cta .btn { margin-top: .8rem; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-inner p { margin: .3rem 0 0; font-size: .92rem; }
.brand-sm { font-weight: 700; letter-spacing: -0.02em; }
.footer-nav { display: flex; gap: 1.25rem; font-size: .93rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.footer-legal p { font-size: .87rem; margin: 0; }

/* ---- Footer legal row -------------------------------------------------- */
/* Copyright and legal links share a row on a wide screen and stack on a
   phone, so the links never sit off the edge on a narrow viewport. */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  align-items: baseline; justify-content: space-between;
}
.footer-legal-nav { display: flex; gap: 1.25rem; font-size: .87rem; }
.footer-legal-nav a { color: var(--muted); text-decoration: none; }
.footer-legal-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Legal pages ------------------------------------------------------- */
/* Terms and Privacy are long documents rather than marketing pages. They get
   tighter vertical rhythm and numbered headings that are easy to cite in an
   email — "section 5" has to be findable. */
.legal-meta { color: var(--muted); font-size: .92rem; margin-top: -.4rem; }

.legal h2 {
  font-size: 1.18rem; margin: 2.4rem 0 .7rem;
  padding-top: 1.4rem; border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.8rem; }
.legal p, .legal li, .legal dd { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.3rem; margin: .8rem 0; }
.legal li { margin-bottom: .5rem; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.legal dd { margin: .3rem 0 0; padding-left: 0; }
.legal code {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px;
  padding: .1rem .3rem; font-size: .9em;
}

/* Pulled out because the customer/tenant distinction is the thing people get
   wrong, and burying it in a paragraph guarantees it stays misunderstood. */
.callout {
  background: var(--accent-bg); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1.6rem 0;
}
.callout p { margin: 0 0 .7rem; }
.callout p:last-child { margin-bottom: 0; }
