/* Neighbourhood Homes — neighbourhood.homes
   Plain CSS, no build step. */

:root {
  --cream: #fbf7f0;
  --paper: #ffffff;
  --sand: #f3ebdd;
  --sand-2: #eadfcb;
  --ink: #1d2a23;
  --ink-2: #3f4c45;
  --muted: #5b665f;
  --line: #e2d8c6;
  --green: #1f4d3a;
  --green-2: #2c6a50;
  --green-soft: #e3eee6;
  --brick: #b0432a;
  --brick-soft: #f6e2d9;
  --gold: #d99a2b;
  --sky: #dfe9ee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 42, 35, .06), 0 8px 24px rgba(29, 42, 35, .08);
  --shadow-lg: 0 2px 4px rgba(29, 42, 35, .06), 0 24px 60px rgba(29, 42, 35, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-variation-settings: "SOFT" 50, "opsz" 24; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 40em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin-bottom: .9rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.sand { background: var(--sand); }
.section.green { background: var(--green); color: #f2efe6; }
.section.green h2, .section.green h3 { color: #fff; }
.section.green a { color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.nav-links a:hover { background: var(--sand); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--green); background: var(--green-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(29,42,35,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-links .btn { margin-top: 8px; text-align: center; justify-content: center; }
}
.no-js .nav-links { display: flex; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(31, 77, 58, .22); }
.btn-primary:hover { background: var(--green-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--cream); color: var(--green); }
.nav-links .btn-primary { color: #fff; padding: 10px 18px; }
.nav-links .btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brick); font-variation-settings: "SOFT" 100, "opsz" 72; }
.hero .lede { margin-bottom: 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.street { margin-top: clamp(32px, 6vw, 72px); color: var(--green); }
.street svg { width: 100%; height: auto; max-height: 120px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-hero .lede { margin-bottom: 0; }

/* ---------- device mockup ---------- */
.device-stage { position: relative; padding: 10px 0 10px; }
.device-stage::before { content: ""; position: absolute; inset: 8% -6% 4% 8%; background: radial-gradient(closest-side, rgba(217,154,43,.22), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(31,77,58,.16), transparent 70%); filter: blur(6px); z-index: 0; }
.ipad { position: relative; z-index: 1; background: #1b1f1d; border-radius: 30px; padding: 16px; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); max-width: 600px; margin-inline: auto; }
.ipad::after { content: ""; position: absolute; top: 50%; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: #3a403d; transform: translateY(-50%); }
.screen { background: var(--paper); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; color: var(--ink); }
.ms-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f2f0ec; border-bottom: 1px solid #e6e1d8; }
.ms-dots { display: flex; gap: 4px; }
.ms-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6cfc3; display: block; }
.ms-url { flex: 1; background: #fff; border-radius: 6px; padding: 3px 8px; color: #55605a; font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-url b { color: var(--ink); font-weight: 600; }
.ms-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid #efe9df; }
.ms-nav strong { font-family: var(--serif); font-size: 13px; }
.ms-nav span { display: flex; gap: 10px; color: #6a746e; font-size: 9.5px; }
.ms-hero { position: relative; aspect-ratio: 16 / 7; background: linear-gradient(180deg, #cfe0e8 0%, #e9eff0 62%, #c9d7b7 62%, #b9cba3 100%); overflow: hidden; }
.ms-hero svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.ms-chip { position: absolute; left: 12px; bottom: 10px; background: rgba(255,255,255,.94); border-radius: 10px; padding: 7px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.ms-chip strong { display: block; font-family: var(--serif); font-size: 15px; }
.ms-chip span { color: #5b665f; font-size: 9.5px; }
.ms-tag { position: absolute; right: 10px; top: 10px; background: var(--brick); color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; }
.ms-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 9px 12px 4px; }
.ms-room { border-radius: 7px; aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.ms-room b { position: absolute; left: 5px; bottom: 4px; font-size: 8.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ms-room.r1 { background: linear-gradient(135deg, #e8c9a4, #c9946a); }
.ms-room.r2 { background: linear-gradient(135deg, #c6d6c4, #7fa086); }
.ms-room.r3 { background: linear-gradient(135deg, #d9dde6, #9aa7bd); }
.ms-room.r4 { background: linear-gradient(135deg, #efd9b9, #d9a95f); }
.ms-foot { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; padding: 6px 12px 11px; }
.ms-card { border: 1px solid #ece6db; border-radius: 8px; padding: 6px 8px; }
.ms-card h5 { margin: 0 0 3px; font-family: var(--serif); font-size: 10.5px; }
.ms-card ul { list-style: none; margin: 0; padding: 0; color: #5b665f; font-size: 9px; }
.ms-card li::before { content: "• "; color: var(--green-2); }
.ms-map { border-radius: 8px; background: #e8efe4; position: relative; overflow: hidden; }
.ms-map svg { width: 100%; height: 100%; }
.device-caption { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: .85rem; margin-top: 18px; }
@media (max-width: 520px) {
  .ipad { padding: 10px; border-radius: 22px; }
  .screen { font-size: 9px; }
  .ms-nav span { display: none; }
  .ms-foot { display: none; }
  .ms-rooms { padding-bottom: 10px; }
}

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }

.step { position: relative; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brick-soft); color: var(--brick); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.step-art { height: 130px; border-radius: var(--radius-sm); background: var(--sand); margin-bottom: 18px; display: grid; place-items: center; overflow: hidden; }
.step-art svg { height: 100%; width: auto; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .25em; }
.feature p { color: var(--ink-2); margin: 0; font-size: 1rem; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 860px; margin-inline: auto; }
@media (max-width: 720px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--green); }
.price-card .badge { position: absolute; top: -13px; left: 28px; background: var(--green); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.price-card .domain { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); margin-bottom: 6px; word-break: break-word; }
.price-card .domain b { color: var(--brick); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 4px; }
.price .amt { font-family: var(--serif); font-size: 3.6rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.price .cur { font-weight: 600; color: var(--muted); }
.price-card .once { color: var(--green); font-weight: 600; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.price-note { max-width: 860px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: .95rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: 0 1px 2px rgba(29,42,35,.04); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
code.stmt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--sand); padding: 2px 7px; border-radius: 6px; color: var(--ink); white-space: nowrap; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose .callout { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 1.4em 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.meta-line { color: var(--muted); font-size: .92rem; }

/* ---------- misc ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--brick-soft); color: var(--brick); font-weight: 600; font-size: .78rem; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.pill.green { background: var(--green-soft); color: var(--green); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.fact-list { display: grid; gap: 0; margin: 0; }
.fact-list div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); font-weight: 500; }
.fact-list dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .fact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .big { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; word-break: break-word; }
.contact-card .big a { text-decoration: none; color: var(--ink); }
.contact-card .big a:hover { color: var(--brick); }
.hub-card { position: relative; overflow: hidden; }
.hub-card .hub-art { height: 120px; margin: -30px -30px 20px; background: var(--sky); }
.hub-card .hub-art svg { width: 100%; height: 100%; }
.cta-band { border-radius: 28px; background: var(--green); color: #eef3ee; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #d9e5dc; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(217,154,43,.18); }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band .btn-row { justify-content: flex-start; } }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; color: var(--ink-2); font-size: .95rem; }
.trust-row span { display: inline-flex; gap: 8px; align-items: center; }
.trust-row svg { width: 18px; height: 18px; color: var(--green); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 30px 64px; }
.timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .step-num { position: absolute; left: 0; top: 0; margin: 0; }
.timeline h3 { padding-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: #17251e; color: #c9d3cc; padding: 64px 0 32px; font-size: .95rem; }
.site-footer a { color: #e9efe9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { color: #fff; }
.foot-brand .brand small { color: #9fb0a5; }
.foot-brand p { margin-top: 14px; max-width: 34em; color: #b5c2b9; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb0a5; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; color: #9fb0a5; font-size: .88rem; }
.foot-legal address { font-style: normal; }
.foot-legal strong { color: #e9efe9; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body { overflow-x: clip; }
.hero-grid > *, .split > *, .grid > * { min-width: 0; }
