/* The public site: the landing page (/welcome) and the sales pages beside it (routes_marketing).
   Colors and spacing come from tokens.css; the markers repeat the map's own layer shapes, so every list of what
   CRE Scout holds reads like the map's legend. */
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: var(--t-title); font-weight: 700; line-height: 1.25; }
p { max-width: 64ch; }
a { color: var(--brand-900); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: var(--s2); z-index: 25; padding: var(--s2) var(--s3); border-radius: var(--r-sm); color: var(--surface); background: var(--brand-900); }
.skip:focus { left: var(--s2); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.15rem; border: 2px solid transparent; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; text-align: center; }
.button-gold { color: var(--ink); background: var(--gold-500); }
.button-gold:hover { background: #D8B23A; }
.button-line { color: var(--surface); border-color: var(--brand-100); }
.button-line:hover { color: var(--ink); background: var(--brand-100); }
.button-quiet { color: var(--brand-900); border-color: var(--brand-900); }
.button-quiet:hover { color: var(--surface); background: var(--brand-900); }
.text-link { color: var(--brand-900); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Site header: brand, the five pages, then sign in and the one call to action. On phones the pages wrap below. */
.top { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr) auto; align-items: center; gap: var(--s3) var(--s6);
  padding: var(--s3) clamp(1rem, 4vw, 3.5rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.top-brand { display: block; min-width: 0; }
.top-brand img { width: 100%; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-sm); color: var(--ink); font-size: var(--t-ui); font-weight: 650; text-decoration: none; }
.site-nav a:hover { background: var(--brand-100); }
.site-nav a[aria-current="page"] { color: var(--brand-900); box-shadow: inset 0 -3px 0 var(--gold-500); border-radius: 0; }
.top-actions { display: flex; align-items: center; gap: var(--s2); }
.top-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); color: var(--brand-900); font-weight: 700; text-decoration: none; }
.top-signin:hover { text-decoration: underline; }

/* Hero: green down to the middle of the shot, paper under its caption. The plat lines are a survey sheet's lots. */
.hero { --below: clamp(7rem, 22vw, 20rem); position: relative; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3.5rem) 0;
  background: linear-gradient(var(--brand-900) calc(100% - var(--below)), transparent 0); }
.plat { position: absolute; inset: 0 0 auto; width: 100%; height: calc(100% - var(--below)); max-width: none; pointer-events: none; }
.plat path { fill: none; stroke: var(--brand-100); stroke-opacity: .11; stroke-width: 1; }
.hero-copy, .shot { position: relative; max-width: 76rem; margin-inline: auto; }
.hero h1 { max-width: 19em; color: var(--surface); font-size: clamp(2rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.022em; text-wrap: balance; }
.hero-lede { margin-top: var(--s5); color: var(--brand-100); font-size: clamp(1.07rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-note { margin-top: var(--s3); color: var(--brand-100); font-size: var(--t-ui); }
.shot { margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 0; }
.shot img { width: 100%; border-radius: var(--r-md); box-shadow: 0 1.5rem 3.5rem rgba(23,32,28,.32); }
.shot figcaption { padding: var(--s3) 0 0; color: var(--ink-2); font-size: var(--t-meta); }
/* Pages without a screenshot: all green, ending on the plat. */
.hero.hero-plain { --below: 0px; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-plain h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

/* Shared section frame. */
.audience, .inside, .fresh, .key, .numbers, .pricing, .includes, .faq { max-width: 76rem; margin: clamp(3rem, 7vw, 5.5rem) auto; padding-inline: clamp(1rem, 4vw, 3.5rem); box-sizing: content-box; }
.section-lede { margin-top: var(--s3); color: var(--ink-2); font-size: 1.1rem; }

/* Who it's for: two sides of the business, each led by its own map markers. */
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: var(--s8); }
.audience-card { padding-top: var(--s5); border-top: 3px solid var(--brand-900); }
.audience-card .markers { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.audience-card h3 { margin-top: var(--s4); font-size: 1.5rem; }
.audience-card p { margin-top: var(--s2); color: var(--ink-2); }
.audience-card .text-link { display: inline-block; margin-top: var(--s4); }

/* What's in it: a legend with counts. Each row is a map marker, what it is, and how many CRE Scout holds. */
.inside { scroll-margin-top: var(--s4); }
.ledger-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) clamp(2rem, 5vw, 4rem); margin-top: var(--s8); }
.ledger-group h3 { padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); font-size: var(--t-heading); }
.ledger { margin: 0; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; padding-block: var(--s3); border-bottom: 1px solid var(--line-strong); }
.ledger dt { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px var(--s3); align-items: center; }
.ledger-name { font-weight: 700; }
.ledger-detail { grid-column: 2; color: var(--ink-2); font-size: var(--t-ui); }
.ledger dd { margin: 0; color: var(--brand-900); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; text-align: right; }

/* How often it updates: a timetable. */
.fresh { padding-top: var(--s6); border-top: 1px solid var(--line-strong); }
.cadence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); margin: var(--s6) 0 var(--s5); }
.cadence dt { color: var(--brand-900); font-weight: 800; }
.cadence dd { margin: var(--s1) 0 0; color: var(--ink-2); }
.fresh > p { color: var(--ink-2); }

/* The markers, drawn like the map's own. */
.markers { display: grid; gap: var(--s2); align-content: start; margin: 0; padding: .2rem 0 0; list-style: none; color: var(--ink); font-size: var(--t-ui); font-weight: 600; }
.markers li { display: flex; align-items: center; gap: var(--s2); }
.mark { flex: none; display: block; width: 14px; height: 14px; background: var(--c, var(--ink)); }
.c-commercial { --c: var(--l-commercial); } .c-homes { --c: var(--l-homes); } .c-rentals { --c: var(--l-rentals); }
.c-newhomes { --c: var(--l-newhomes); } .c-foreclosure { --c: var(--l-foreclosure); } .c-parcel { --c: var(--l-parcel-line); }
.c-permits { --c: var(--l-permits); } .c-planning { --c: var(--l-planning); } .c-zoning { --c: #DDCC77; } .c-market { --c: #4175C3; }
.c-transport { --c: var(--l-transportation); }
.mark.dot { border-radius: 50%; }
.mark.round { border-radius: 4px; }
.mark.square { border-radius: 2px; }
.mark.outline { background: none; border: 2px solid var(--c); border-radius: 2px; }
.mark.diamond { width: 11px; height: 11px; margin-inline: 1.5px; transform: rotate(45deg); }
.mark.triangle { clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.mark.line { height: 3px; }
.mark.fill { box-shadow: inset 0 0 0 1px rgba(23,32,28,.25); }
.mark.star { --c: var(--brand-900); clip-path: polygon(50% 0, 62% 35%, 98% 35%, 69% 57%, 79% 92%, 50% 71%, 21% 92%, 31% 57%, 2% 35%, 38% 35%); }
.mark.clock, .mark.ring { background: none; border: 2px solid var(--brand-900); border-radius: 50%; }
.mark.ring { background: radial-gradient(circle, var(--brand-900) 2.5px, transparent 3px); }

/* Use cases read like the legend too: markers on the left, what you do with them on the right. */
.key-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s6); padding-block: var(--s6); border-top: 1px solid var(--line-strong); }
.key-row:first-of-type { margin-top: var(--s8); }
.key-row p { margin-top: var(--s2); color: var(--ink-2); }

/* A page's own counts. */
.numbers { box-sizing: border-box; width: calc(100% - 2 * clamp(1rem, 4vw, 3.5rem)); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-md); background: var(--surface); }
.numbers h2 { font-size: var(--t-title); }
.number-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s5) var(--s6); margin: var(--s5) 0; }
.number-list div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.number-list dt { color: var(--ink-2); font-size: var(--t-ui); }
.number-list dd { margin: 0; color: var(--brand-900); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Coverage: solid means core, hatched means partial, and the words say so too. */
.where { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3.5rem); background: var(--surface); }
.where { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.where-map { justify-self: end; width: 100%; max-width: 40rem; }
.where-copy { max-width: 34rem; }
.where-copy h3 { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s6); }
.where-copy p { margin-top: var(--s2); color: var(--ink-2); }
.where-copy .counties-list { color: var(--ink); font-weight: 600; }
.swatch { flex: none; display: block; width: 18px; height: 18px; border-radius: 3px; }
.swatch-core { background: var(--brand-700); }
.swatch-part { border: 1px solid var(--line-strong); background: repeating-linear-gradient(45deg, var(--line-strong) 0 2px, var(--paper) 2px 5px); }
.counties { width: 100%; }
.counties path.core { fill: var(--brand-700); stroke: var(--surface); stroke-width: 1.5; }
.counties path.part { fill: url(#hatch); stroke: var(--ink-2); stroke-width: 1; }
.counties path.state { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
.counties .city { fill: var(--gold-500); stroke: var(--surface); stroke-width: 2; }
.counties text { font-size: 15px; font-weight: 700; text-anchor: middle; }
.counties text.core { fill: var(--surface); }
.counties text.part { fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }

/* Members only, and how to join: these really are steps, so they are numbered. */
.join { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 3.5rem); color: var(--surface); background: var(--brand-900); }
.join > * { max-width: 76rem; margin-inline: auto; }
.join-lede { margin-top: var(--s3); color: var(--brand-100); font-size: 1.1rem; max-width: 76rem; }
.join-lede, .join h2 { max-width: 76rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-block: var(--s8) 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: var(--s2); color: var(--gold-500); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.steps p { margin-top: var(--s2); color: var(--brand-100); }
.steps .button { margin-top: var(--s4); }

/* Contact: a question before joining goes to Chris's request list. */
.get-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); max-width: 76rem; margin: clamp(3rem, 7vw, 5.5rem) auto; padding-inline: clamp(1rem, 4vw, 3.5rem); box-sizing: content-box; scroll-margin-top: var(--s4); }
.get-in-copy p { margin-top: var(--s3); color: var(--ink-2); font-size: 1.1rem; }
.get-in-copy .get-in-signin { margin-top: var(--s6); color: var(--ink); font-size: var(--t-body); font-weight: 600; }
.get-in-form { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e1); }
.invite-request { min-width: 0; }
.invite-request label { display: block; margin-top: var(--s4); font-weight: 650; }
.invite-request label:first-child { margin-top: 0; }
.invite-request #request-note-hint { margin-top: var(--s1); color: var(--muted); font-size: var(--t-meta); }
.invite-request input, .invite-request textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin-top: var(--s2); padding: .65rem; border: 2px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink); background: var(--surface); font: inherit; }
.invite-request input:focus-visible, .invite-request textarea:focus-visible { border-color: var(--brand-700); }
.invite-request textarea { resize: vertical; }
.invite-request button { max-width: 100%; margin-top: var(--s5); font: inherit; font-weight: 700; cursor: pointer; }
.request-error, .request-feedback { padding: var(--s3); border: 2px solid var(--gold-500); border-radius: var(--r-sm); color: var(--ink); background: var(--gold-100); }
.request-error { margin-top: var(--s2); }
.request-feedback { margin-bottom: var(--s4); overflow-wrap: anywhere; }
.request-feedback p, .request-feedback a { color: var(--ink); }
.request-feedback ul { margin: var(--s2) 0 0; padding-left: 1.25rem; }
.invite-request [aria-invalid="true"] { border-color: var(--gold-500); }
.request-feedback:focus { outline: 3px solid var(--brand-700); outline-offset: 3px; }

/* The closing call to action on each sales page. */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s6); max-width: 76rem; margin: clamp(3rem, 7vw, 5.5rem) auto; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-md); color: var(--surface); background: var(--brand-900); box-sizing: border-box; width: calc(100% - 2 * clamp(1rem, 4vw, 3.5rem)); }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin-top: var(--s2); color: var(--brand-100); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Pricing: words until a price is set in marketing_config.py, then one column per plan. */
.price-soon { max-width: 46rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 2px solid var(--gold-500); border-radius: var(--r-md); background: var(--surface); }
.price-soon-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.price-soon p + p { margin-top: var(--s3); color: var(--ink-2); }
.price-soon .button { margin-top: var(--s5); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s6); margin: 0; padding: 0; list-style: none; }
.plan { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); border-top: 3px solid var(--brand-900); background: var(--surface); }
.plan-price strong { font-size: 2rem; font-weight: 800; }
.plan-price span, .plan-summary { color: var(--ink-2); }
.plan-includes { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }
.plan .button { align-self: flex-start; margin-top: auto; }
.include-list { display: grid; gap: var(--s3); margin: var(--s6) 0; padding: 0; list-style: none; }
.include-list li { max-width: 64ch; padding-left: var(--s6); background: linear-gradient(var(--brand-700), var(--brand-700)) 0 .55em / 12px 3px no-repeat; color: var(--ink-2); }
.include-list strong { color: var(--ink); }

/* Questions and answers. */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) clamp(2rem, 5vw, 4rem); }
.faq-item { padding-top: var(--s4); border-top: 2px solid var(--ink); }
.faq-item h3 { font-size: var(--t-heading); }
.faq-item p { margin-top: var(--s2); color: var(--ink-2); }

.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4) var(--s8); padding: var(--s8) clamp(1rem, 4vw, 3.5rem); border-top: 1px solid var(--line-strong); color: var(--ink-2); font-size: var(--t-ui); }
.foot-brand { display: flex; align-items: center; gap: var(--s3); }
.foot-brand p { max-width: 36ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: var(--brand-900); font-weight: 700; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

.hero :focus-visible, .join :focus-visible, .cta-band :focus-visible { outline: 3px solid var(--surface); outline-offset: 3px; box-shadow: none; }

@media (max-width: 64rem) {
  .top { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(-1 * var(--s3)); }
  .cadence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 52rem) {
  .key-row { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .markers { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
  .where, .get-in, .audience-grid, .ledger-groups, .faq { grid-template-columns: minmax(0, 1fr); }
  .where-map { justify-self: stretch; max-width: 36rem; margin-inline: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .top-brand { max-width: 9.5rem; }
  .top-signin { padding: 0 var(--s2); }
  .top-actions .button { padding-inline: .8rem; }
  .site-nav a { padding: 0 var(--s2); }
  .site-nav { margin-inline: calc(-1 * var(--s2)); }
  .hero { --below: 14rem; }
  .shot { max-width: 24rem; }
  .shot img { border-radius: var(--r-md); }
  .cadence { grid-template-columns: minmax(0, 1fr); }
  .counties text { font-size: 19px; }
  .counties text.part { stroke-width: 5px; }
}
