@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,500&display=swap');

:root {
  --paper: #f3efe4;
  --paper-light: #fbf8f0;
  --ink: #172820;
  --muted: #697269;
  --green: #173b2b;
  --moss: #718c6a;
  --sage: #c6d9bf;
  --coral: #e85d3f;
  --line: #d8d3c5;
  --font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --editorial: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); }
a { color: inherit; }
button, input { font: inherit; }
.landing { min-height: 100vh; }

.site-header {
  height: 84px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--green); font-family: Georgia, serif; font-size: 22px; }
.header-note, .guide-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.hero {
  min-height: calc(100vh - 84px);
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  align-items: center;
  gap: 7vw;
  padding: 70px 48px 84px;
}

.hero-copy { max-width: 670px; }
.eyebrow { margin: 0 0 20px; color: var(--coral); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .section-heading h2, .trust-card h2 { margin: 0; font-size: clamp(64px, 7.1vw, 112px); font-weight: 600; line-height: .87; letter-spacing: -.065em; }
.hero h1 em, .section-heading h2, .trust-card h2 { font-family: var(--editorial); font-weight: 500; }
.hero h1 em { color: var(--green); }
.hero-lede { max-width: 585px; margin: 38px 0 0; color: #4e5e54; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 52px; padding: 0 24px; border-radius: 100px; text-decoration: none; font-weight: 700; }
.button-primary { color: white; background: var(--coral); box-shadow: 0 9px 24px rgb(178 73 49 / 20%); }
.button-primary:hover { background: #d94e32; transform: translateY(-1px); }
.text-link { font-weight: 700; text-underline-offset: 5px; }
.subscription-note { margin: 26px 0 0; color: var(--muted); font-size: 13px; }
.subscription-note span { color: var(--coral); margin-right: 6px; }

.hero-map { position: relative; justify-self: center; width: min(100%, 590px); transform: rotate(1.5deg); filter: drop-shadow(0 24px 24px rgb(34 50 41 / 12%)); }
.hero-map svg { display: block; width: 100%; border: 10px solid var(--paper-light); border-bottom-width: 70px; background: #e8e2d3; }
.map-water { fill: #bad6d4; }
.map-park { fill: #b9d2ae; }
.map-district { stroke: #8a8d7d; stroke-width: 2; }
.district-one { fill: #e8c8ad; }.district-two { fill: #e5d1a8; }.district-three { fill: #ccd8b8; }
.map-roads path { fill: none; stroke: #faf8ee; stroke-width: 14; stroke-linecap: round; }
.map-roads path + path { stroke-width: 10; }
.map-buildings path { fill: #cf7662; stroke: #f4ead9; stroke-width: 3; }
.map-buildings path:nth-child(3n) { fill: #d3ad65; }.map-buildings path:nth-child(3n + 1) { fill: #6e917f; }
.map-pin circle { fill: var(--coral); stroke: white; stroke-width: 5; }.map-pin text { text-anchor: middle; fill: white; font: 700 24px var(--font); }
.you-marker circle:first-child { fill: #4c9eff; opacity: .23; }.you-marker circle:last-child { fill: #287fdd; stroke: white; stroke-width: 5; }
.district-label, .park-label { text-anchor: middle; fill: #5d6459; font: 700 13px var(--font); letter-spacing: 2px; }.park-label { fill: #54704f; }
.map-caption { position: absolute; left: 34px; right: 34px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; transform: rotate(-1.5deg); }
.map-caption span { color: var(--coral); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }.map-caption strong { font-size: 14px; }

.promise-strip { min-height: 94px; display: flex; align-items: center; justify-content: center; gap: 36px; padding: 22px; color: white; background: var(--green); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.promise-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

.how { max-width: 1280px; margin: 0 auto; padding: 140px 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 11vw; }
.section-heading h2 { font-size: clamp(48px, 5.3vw, 76px); line-height: .98; letter-spacing: -.045em; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-number { color: var(--coral); font-size: 12px; font-weight: 700; }
.steps h3 { margin: -5px 0 10px; font-family: var(--editorial); font-size: 29px; font-weight: 500; }
.steps p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.7; }
.trust-card { margin: 0 28px 28px; padding: 110px clamp(28px, 8vw, 130px); color: var(--paper-light); background: var(--green); border-radius: 26px; }
.trust-card .eyebrow { color: #f18b75; }.trust-card h2 { max-width: 1050px; font-size: clamp(45px, 5.4vw, 78px); line-height: 1; letter-spacing: -.045em; }
.trust-card > p:last-child { max-width: 760px; margin: 34px 0 0; color: #c9d4ce; font-size: 18px; line-height: 1.75; }
footer { max-width: 1440px; margin: 0 auto; padding: 48px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }

/* Published guide */
.guide-page { height: 100dvh; overflow: hidden; background: var(--paper-light); }
.loading-screen, .error-screen { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--paper); }
.loading-screen p { color: var(--muted); }.error-screen { padding: 30px; text-align: center; }.error-screen[hidden], [hidden] { display: none !important; }.error-screen h1 { margin: 48px 0 0; font: 500 44px/1 var(--editorial); }.error-screen p { max-width: 430px; color: var(--muted); }
.guide-shell { display: grid; grid-template-columns: 410px 1fr; height: 100dvh; }
.guide-panel { z-index: 3; min-width: 0; display: flex; flex-direction: column; background: var(--paper-light); box-shadow: 8px 0 30px rgb(35 46 39 / 12%); }
.guide-header { flex: none; height: 74px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.guide-header .brand { font-size: 17px; }.guide-header .brand-mark { width: 31px; height: 31px; font-size: 19px; }
.guide-intro { padding: 30px 27px 24px; }.guide-intro .eyebrow { max-width: 100%; margin-bottom: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.guide-intro h1 { margin: 0; font: 500 40px/.98 var(--editorial); letter-spacing: -.03em; }.guide-intro > p:last-child { margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.guide-tabs { flex: none; display: flex; padding: 0 27px; border-bottom: 1px solid var(--line); }.tab { flex: 1; padding: 14px 4px 12px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }.tab.active { color: var(--ink); border-bottom-color: var(--coral); }
.guide-content { min-height: 0; overflow: auto; padding: 0 27px 32px; overscroll-behavior: contain; }
.place-card, .area-card { padding: 21px 0; border-bottom: 1px solid var(--line); cursor: pointer; }.place-heading { display: grid; grid-template-columns: 34px 1fr auto; align-items: start; gap: 11px; }.place-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-size: 12px; font-weight: 700; }.place-card h2, .area-card h2 { margin: 1px 0 0; font: 500 21px/1.1 var(--editorial); }.category { color: var(--moss); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.place-card p, .area-card p { margin: 11px 0 0 45px; color: var(--muted); font-size: 13px; line-height: 1.55; }.place-card .tip { color: #80513f; }.place-card .distance { margin: 7px 0 0 45px; color: #3671a9; font-size: 11px; font-weight: 700; }.area-card p { margin-left: 0; }.vibe { display: inline-block; margin-top: 12px; padding: 5px 9px; border-radius: 100px; color: var(--green); background: var(--sage); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 12px; padding: 28px 0; font-size: 12px; }.legend-grid span { display: flex; align-items: center; gap: 9px; }.swatch { width: 19px; height: 19px; border-radius: 4px; background: #d3cbbb; }.swatch.residential { background: #d7b995; }.swatch.commercial { background: #d77b61; }.swatch.civic { background: #779a8a; }.swatch.historic { background: #c79a52; }.swatch.place_of_worship { background: #9178a0; }.map-credit { color: var(--muted); font-size: 11px; }
.map-stage { position: relative; min-width: 0; background: #ddd8c9; }.map-stage #map { position: absolute; inset: 0; }.maplibregl-map { font-family: var(--font); }.maplibregl-ctrl-bottom-left { display: none; }.maplibregl-ctrl-attrib { font-size: 9px; }
.map-topbar { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }.map-topbar > span { padding: 9px 13px; border-radius: 100px; background: rgb(251 248 240 / 90%); box-shadow: 0 4px 18px rgb(30 44 36 / 12%); font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }.round-button { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--green); background: var(--paper-light); box-shadow: 0 4px 18px rgb(30 44 36 / 16%); font-size: 20px; cursor: pointer; pointer-events: auto; }
.locate-button { position: absolute; z-index: 2; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); min-width: 172px; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 100px; color: white; background: var(--green); box-shadow: 0 8px 28px rgb(22 53 39 / 30%); font-weight: 700; cursor: pointer; }.locate-icon { width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 3px rgb(255 255 255 / 25%); }.locate-button.active { background: #287fdd; }
.privacy-toast { position: absolute; z-index: 3; left: 50%; bottom: 84px; transform: translateX(-50%); width: min(90%, 380px); padding: 11px 15px; border-radius: 10px; color: white; background: rgb(23 40 32 / 90%); text-align: center; font-size: 11px; }
.landmark-marker { width: 34px; height: 34px; display: grid; place-items: center; border: 4px solid white; border-radius: 50% 50% 50% 8px; color: white; background: var(--coral); box-shadow: 0 5px 12px rgb(73 56 45 / 28%); transform: rotate(-45deg); font-size: 11px; font-weight: 700; cursor: pointer; }.landmark-marker span { transform: rotate(45deg); }.user-marker { width: 24px; height: 24px; border: 5px solid white; border-radius: 50%; background: #287fdd; box-shadow: 0 0 0 12px rgb(40 127 221 / 20%), 0 3px 10px rgb(38 77 116 / 35%); }
.neighborhood-label { padding: 4px 7px; border: 0; border-radius: 3px; color: #496347; background: rgb(245 240 229 / 82%); box-shadow: 0 1px 5px rgb(53 75 52 / 10%); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.maplibregl-popup-content { max-width: 240px; padding: 13px 15px; border-radius: 12px; color: var(--ink); background: var(--paper-light); box-shadow: 0 8px 30px rgb(31 44 36 / 20%); }.popup-category { color: var(--coral); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.popup-title { margin-top: 3px; font: 500 18px var(--editorial); }

@media (max-width: 860px) {
  .site-header { height: 70px; padding: 0 22px; }.header-note { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 60px; padding: 62px 22px 70px; }.hero h1 { font-size: clamp(59px, 18vw, 90px); }.hero-lede { font-size: 17px; }.hero-map { width: min(92%, 540px); }
  .promise-strip { gap: 14px; font-size: 9px; }.promise-strip i { width: 3px; height: 3px; }
  .how { grid-template-columns: 1fr; gap: 65px; padding: 90px 24px; }.trust-card { margin: 0 12px 12px; padding: 72px 24px; border-radius: 18px; }footer { padding: 40px 24px; }
  .guide-shell { display: block; position: relative; }.map-stage { position: absolute; inset: 0 0 39dvh; }.guide-panel { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 42dvh; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 32px rgb(35 46 39 / 15%); }.guide-header { display: none; }.guide-intro { flex: none; padding: 19px 21px 13px; }.guide-intro:before { content: ''; display: block; width: 38px; height: 4px; margin: -9px auto 14px; border-radius: 8px; background: #c5c0b5; }.guide-intro .eyebrow { margin-bottom: 6px; }.guide-intro h1 { font-size: 29px; }.guide-intro > p:last-child { display: none; }.guide-tabs { padding: 0 21px; }.guide-content { padding: 0 21px 25px; }.place-card, .area-card { padding: 15px 0; }.place-card p { display: none; }.place-card .distance { display: block; margin-top: 5px; }.map-topbar { top: max(14px, env(safe-area-inset-top)); }.locate-button { bottom: 18px; }.privacy-toast { bottom: 78px; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }.button-primary { width: 100%; }.hero-map { width: 100%; }.promise-strip { overflow: hidden; white-space: nowrap; }.trust-card h2 { font-size: 42px; }footer { align-items: flex-start; flex-direction: column; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
