/* HomeFlow Neighborhood — "Solar Modern" design system
   Deep teal + solar yellow + mint on bright white. Space Grotesk display / Inter text.
   All text/background pairs target WCAG 2.2 AA. */
:root {
  --teal: #0E3B43; --teal-900: #072429; --teal-700: #0E5A66; --teal-500: #2E7F8A;
  --sun: #F4C542; --sun-600: #E0AE22; --sun-50: #FFF6D6; --sun-ink: #2A2000;
  --mint: #7FD1C3; --mint-50: #E6F5F2; --mist: #F3F8F7;
  --ink: #0B1F23; --ink-2: #2D4449; --muted: #50666B; --line: #E1ECEA; --line-2: #CFE0DE;
  --white: #FFFFFF; --danger: #A8332B; --ok: #1F6B4A;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 22px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(14 59 67 / .05), 0 12px 40px rgb(14 59 67 / .08);
  --shadow-lg: 0 30px 80px rgb(14 59 67 / .18);
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--sun-600); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); letter-spacing: -0.045em; line-height: .98; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.eyebrow { font: 600 .8rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin: 0 0 14px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hl { background: linear-gradient(180deg, transparent 62%, var(--sun) 62%); padding: 0 .06em; }
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.bg-mist { background: var(--mist); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 12px; font: 600 1rem/1 var(--text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-900); color: #fff; box-shadow: 0 10px 24px rgb(14 59 67 / .25); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: var(--sun-600); color: var(--sun-ink); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: #fff; color: var(--teal); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 600 .88rem/1.2 var(--text); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"], .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--sun-50); color: #5C4300; font: 600 .82rem/1.2 var(--text); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 600 .75rem/1.4 var(--text); background: var(--mint-50); color: var(--teal-700); }
.tag-sun { background: var(--sun-50); color: #6B4E00; }
.tag-warn { background: #FCEBD9; color: #7A3E00; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem/1 var(--display); letter-spacing: -0.03em; }
.brand small { display: block; font: 600 .62rem/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--mist); color: var(--teal); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 0; }
.hero .lead { margin: 24px 0 32px; }
.hero-media { position: relative; min-height: 560px; }
.hero-photo { position: absolute; right: 0; top: 0; width: 90%; height: 480px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; }
.float-spec { left: 0; bottom: 0; width: 340px; }
.float-spec header { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.float-spec .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--mint-50); display: grid; place-items: center; flex: none; }
.spec-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--mist); border-radius: 10px; font-size: .88rem; margin-top: 8px; }
.spec-row b { font-weight: 600; color: #6B4E00; } .spec-row b.blue { color: var(--teal-700); }
.float-quotes { right: 20px; bottom: 44px; background: var(--teal); color: #fff; padding: 16px 20px; }
.float-quotes span { display: block; font-size: .78rem; color: #A9CFC9; }
.float-quotes strong { font: 600 2rem/1.1 var(--display); }
.float-quotes em { font-style: normal; color: var(--sun); font-size: 1rem; }
.trustline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--muted); font-size: .92rem; }
.trustline span { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- concierge demo ---------- */
.concierge { background: var(--mist); border-radius: 30px; padding: 48px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.concierge-form { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 13px 14px; min-height: 50px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgb(127 209 195 / .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.spec-out { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow); min-height: 100%; }
.spec-out[hidden] { display: none; }
.spec-out ol { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; counter-reset: i; }
.spec-out li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; background: var(--mist); border-radius: 12px; font-size: .93rem; counter-increment: i; }
.spec-out li::before { content: counter(i); width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 600 .78rem/1 var(--display); color: var(--teal); }
.notes { display: grid; gap: 8px; margin-top: 10px; }
.note { font-size: .88rem; padding: 10px 12px; border-radius: 10px; background: var(--sun-50); color: #5C4300; }
.note.blue { background: var(--mint-50); color: var(--teal-700); }
.spec-empty { display: grid; place-items: center; text-align: center; color: var(--muted); border: 2px dashed var(--line-2); border-radius: 22px; padding: 40px; min-height: 320px; }

/* ---------- cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 26px; }
.card-body p { color: var(--ink-2); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head h2 { max-width: 760px; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { counter-increment: s; }
.step .card-media { aspect-ratio: 4/3; border-radius: 18px; }
.step h3 { margin: 18px 0 8px; display: flex; gap: 10px; align-items: baseline; }
.step h3::before { content: "0" counter(s); font: 600 .9rem/1 var(--display); color: var(--sun-ink); background: var(--sun); padding: 6px 8px; border-radius: 8px; }
.step p { color: var(--ink-2); font-size: .96rem; }

/* comparison preview */
.compare { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 28px; border: 1px solid var(--line); }
.compare table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare th { text-align: left; font: 600 .72rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 8px; border-bottom: 1px solid var(--line); }
.compare td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.compare tr.total td { border-bottom: 0; border-top: 2px solid var(--teal); font: 600 1.05rem/1.2 var(--display); }
.ok { color: var(--ok); font-weight: 600; } .bad { color: var(--danger); font-weight: 600; } .warn { color: #8A5A00; font-weight: 600; }
.alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #FCEBD9; color: #7A3E00; font-size: .9rem; }

/* dark band */
.band-dark { background: var(--teal); color: #fff; border-radius: 32px; padding: 64px; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: #BFD8D4; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.stat strong { display: block; font: 600 3rem/1 var(--display); color: var(--sun); letter-spacing: -0.03em; }
.stat p { margin: 10px 0 0; font-size: .96rem; }

/* scenic ribbon */
.ribbon { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 28px 18px; scrollbar-width: thin; }
.ribbon figure { margin: 0; scroll-snap-align: start; border-radius: 18px; overflow: hidden; position: relative; background: var(--mist); }
.ribbon img { width: 100%; height: 150px; object-fit: cover; }
.ribbon figcaption { position: absolute; left: 12px; bottom: 12px; background: rgb(11 31 35 / .72); color: #fff; font: 600 .82rem/1 var(--text); padding: 8px 11px; border-radius: 999px; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink-2); }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--mint-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5A66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

/* promo cards */
.promo { border-radius: 26px; padding: 44px; display: flex; flex-direction: column; gap: 12px; }
.promo-sun { background: var(--sun-50); } .promo-sun p { color: #4F4320; }
.promo-mint { background: var(--mint-50); } .promo-mint p { color: #2D4D52; }
.promo .btn { align-self: flex-start; margin-top: 8px; }
.progress { height: 10px; border-radius: 999px; background: #EADFB8; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--teal); border-radius: 999px; }

/* neighborhoods */
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.nb { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s; }
.nb:hover { border-color: var(--teal-500); transform: translateY(-2px); color: var(--teal); }
.nb span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.wide-banner { border-radius: 30px; overflow: hidden; position: relative; }
.wide-banner img { width: 100%; height: 420px; object-fit: cover; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1.5px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font: 600 1.15rem/1.4 var(--display); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-700); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* page hero (inner pages) */
.page-hero { padding: 72px 0 56px; }
.page-hero .grid-2 { align-items: center; gap: 56px; }
.page-hero-img { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* plans */
.plan { border: 1.5px solid var(--line); border-radius: 22px; padding: 30px; background: #fff; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan .price { font: 600 2.4rem/1 var(--display); margin: 12px 0 16px; letter-spacing: -0.03em; }

/* join form */
.form-card { background: #fff; border: 1.5px solid var(--line); border-radius: 26px; padding: 36px; box-shadow: var(--shadow); }
.tabs { display: inline-flex; background: var(--mist); border-radius: 14px; padding: 5px; margin-bottom: 26px; }
.tabs button { border: 0; background: transparent; padding: 12px 20px; border-radius: 10px; font: 600 .95rem/1 var(--text); color: var(--ink-2); cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--teal); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); margin: 6px 0 18px; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 6px 0 18px; }
.check-grid label { display: flex; gap: 8px; align-items: center; font-size: .94rem; font-weight: 500; }
.check-grid input { width: 18px; height: 18px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.ok { background: var(--mint-50); color: var(--teal-700); }
.form-status.err { background: #FBE7E5; color: var(--danger); }
.form-status:empty { display: none; }

/* prose (legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }

/* footer */
.site-footer { background: var(--teal-900); color: #B9CFCB; padding: 80px 0 32px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8FB0AA; }
.site-footer h4 { color: #fff; font: 600 .78rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #D4E4E1; text-decoration: none; display: block; padding: 5px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.tagline { font: 600 1.3rem/1.3 var(--display); color: var(--sun); margin: 18px 0 0; letter-spacing: -0.02em; }
.fine { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 56px; padding-top: 24px; font-size: .82rem; line-height: 1.6; color: #8FB0AA; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* reveal on scroll (progressive; content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .concierge, .page-hero .grid-2 { grid-template-columns: 1fr; }
  .hero-media { min-height: 500px; }
  .steps, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { flex-wrap: wrap; height: auto; min-height: 76px; padding: 14px 0; gap: 12px; }
  .nav-links, .nav-cta { display: none; width: 100%; }
  .nav.open .nav-links { display: flex; flex-direction: column; }
  .nav.open .nav-cta { display: flex; margin: 0 0 8px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .stats, .form-grid, .check-grid, .footer-top { grid-template-columns: 1fr; }
  .hero-media { min-height: 460px; }
  .hero-photo { width: 100%; height: 340px; }
  .float-spec { width: 88%; }
  .float-quotes { right: 10px; bottom: auto; top: 280px; }
  .concierge, .band-dark, .promo, .form-card { padding: 26px; border-radius: 22px; }
  .ribbon { grid-auto-columns: 84%; padding: 4px 20px 16px; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .wide-banner img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .js .reveal { opacity: 1; transform: none; } }
@media print { .site-header, .site-footer, .btn { display: none !important; } }
.footer-note { margin-top: 14px; }
/* keep grid children from growing past the viewport on small screens */
.split > *, .hero-grid > *, .concierge > *, .grid-2 > *, .grid-3 > *, .page-hero .grid-2 > * { min-width: 0; }
.compare { overflow-x: auto; }
@media (max-width: 640px) { .compare table { font-size: .82rem; } .compare th, .compare td { padding: 10px 5px; } }
.spec-empty[hidden], [hidden] { display: none !important; }
.ribbon img { transform: scale(1.08); } .ribbon { padding-left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px)); scroll-padding-left: 28px; }
@media (max-width: 640px) { .float-quotes { top: 16px; right: 16px; bottom: auto; padding: 12px 16px; } .float-quotes strong { font-size: 1.6rem; } }
