/* listed-open.homes — protest landing + pre-launch portal.
   Hidden Street palette: white, ink, soft grey. Swap exact brand values here;
   nothing below hard-codes a colour. */
:root {
  --paper: #ffffff;
  --panel: #f6f6f6;
  --ink: #1b1b1b;
  --ink-2: #3a3a3a;
  --muted: #6e6e6e;
  --faint: #a3a3a3;
  --line: #e6e6e6;
  --button: #efefef;
  --button-hover: #e3e3e3;
  --skeleton: #ececec;
  --ok: #1f5f3a;
  --err: #9b1c1c;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--button); padding: .4rem .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons & form controls */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 600 .95rem/1 var(--sans);
  padding: .85rem 1.3rem;
  border: 0; border-radius: 8px;
  background: var(--button); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--button-hover); }
.button.quiet { background: transparent; border: 1px solid var(--line); font-weight: 500; }
.button.quiet:hover { background: var(--panel); }
.field, .select {
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  padding: .8rem .9rem; min-width: 0;
}
.select { appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e6e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; }
.field:focus, .select:focus { outline: none; border-color: var(--faint); }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 4rem; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.logo b { font-weight: 700; }
.logo span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 1.5rem; font-size: .95rem; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 1.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.header-cta { margin-left: auto; }
.header-cta .button { padding: .6rem 1rem; font-size: .88rem; }

/* hero search */
.hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero h1 { font: 400 clamp(2rem, 5vw, 3rem)/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 .5rem; }
.hero p { margin: 0 0 1.75rem; color: var(--muted); font-size: 1.05rem; }
.search-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.tabs { display: flex; gap: .25rem; margin-bottom: .9rem; }
.tabs label { cursor: pointer; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs span { display: block; padding: .45rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.tabs input:checked + span { background: var(--ink); color: var(--paper); }
.tabs input:focus-visible + span { outline: 2px solid var(--faint); }
.search-row { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; }

/* sections */
.section { padding: 3.5rem 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
.section-head a { font-size: .9rem; color: var(--muted); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: .25rem .6rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }

/* listing card (skeleton until the first campaign) */
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.card .media { aspect-ratio: 4 / 3; background: var(--skeleton); display: grid; place-items: center; color: var(--faint); position: relative; }
.card .media .pill { position: absolute; top: .75rem; left: .75rem; background: var(--paper); }
.card .body { padding: 1rem; }
.bar { height: .7rem; border-radius: 4px; background: var(--skeleton); margin-bottom: .6rem; }
.bar.w60 { width: 60%; } .bar.w80 { width: 80%; } .bar.w40 { width: 40%; height: .55rem; }
.facts { display: flex; gap: .9rem; margin-top: .9rem; }
.facts i { display: block; width: 2.4rem; height: .55rem; border-radius: 4px; background: var(--skeleton); }
@media (prefers-reduced-motion: no-preference) {
  .card .media, .bar, .facts i { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .55; } }
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { text-decoration: none; font-size: .9rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.chip:hover { background: var(--panel); }

/* band */
.band { margin-top: 3.5rem; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.band h2 { font: 400 clamp(1.6rem, 3.5vw, 2.2rem)/1.15 var(--serif); margin: 0 0 .75rem; }
.band p { margin: 0; color: var(--ink-2); max-width: 34rem; }
.band .actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }

/* city + guide cards */
.tile { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); }
.tile:hover { border-color: var(--faint); }
.tile h3 { margin: .6rem 0 .4rem; font-size: 1.1rem; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }
.tile .more { display: block; margin-top: .9rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.tile .meta { display: block; margin-top: .9rem; font-size: .82rem; color: var(--faint); }

/* results page */
.filters { border-bottom: 1px solid var(--line); background: var(--paper); }
.filters form { display: grid; grid-template-columns: 1fr repeat(4, auto) auto; gap: .5rem; padding: 1rem 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.75rem 0 1rem; flex-wrap: wrap; }
.results-head h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
.results { display: grid; grid-template-columns: 1fr 20rem; gap: 1.5rem; align-items: start; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; }
.empty svg { margin: 0 auto 1rem; color: var(--faint); }
.empty h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.empty p { margin: 0 auto 1.25rem; color: var(--muted); max-width: 28rem; }
.aside { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--panel); }
.aside h3 { font-size: 1rem; margin: 0 0 .4rem; }
.aside p { font-size: .92rem; color: var(--ink-2); margin: 0 0 1rem; }
.aside + .aside { margin-top: 1rem; }
.aside ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.aside li { padding: .45rem 0; border-top: 1px solid var(--line); }
.aside li a { text-decoration: none; }
.aside li a:hover { text-decoration: underline; }

/* sell page */
.steps { counter-reset: step; }
.steps .tile { position: relative; padding-top: 3.25rem; }
.steps .tile::before { counter-increment: step; content: counter(step); position: absolute; top: 1.1rem; left: 1.25rem; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .85rem; font-weight: 700; display: grid; place-items: center; }

/* article */
.crumbs { font-size: .85rem; color: var(--muted); padding: 1.5rem 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-head { padding: 1.5rem 0 1.5rem; max-width: 46rem; }
.article-head h1 { font: 400 clamp(1.9rem, 4.5vw, 2.7rem)/1.12 var(--serif); margin: .75rem 0 .75rem; }
.article-head .standfirst { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 1rem; }
.byline { font-size: .85rem; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 42rem) 1fr; gap: 3rem; align-items: start; border-top: 1px solid var(--line); padding-top: 2rem; }
.prose { font-family: var(--serif); font-size: 1.14rem; line-height: 1.7; }
.prose h2 { font-family: var(--sans); font-size: 1.2rem; letter-spacing: -.01em; margin: 2.5rem 0 .75rem; }
.prose p { margin: 0 0 1.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .7rem; }
.prose a { text-decoration-color: var(--faint); text-underline-offset: .18em; }
.prose a:hover { text-decoration-color: var(--ink); }
.sticky { position: sticky; top: 5rem; }
.aside form { display: grid; gap: .5rem; }

/* page head (guides, sell) */
.page-head { padding: 2.5rem 0 1.5rem; }
.page-head h1 { font: 400 clamp(1.9rem, 4.5vw, 2.6rem)/1.12 var(--serif); margin: 0 0 .5rem; }
.page-head p { margin: 0; color: var(--muted); max-width: 40rem; }

/* footer */
.site-footer { margin-top: 5rem; background: var(--panel); border-top: 1px solid var(--line); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .about { color: var(--muted); max-width: 20rem; margin: .8rem 0 0; }
.site-footer .legal { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* responsive */
@media (max-width: 60rem) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .results, .article-layout { grid-template-columns: 1fr; }
  .band .wrap { grid-template-columns: 1fr; }
  .band .actions { justify-content: flex-start; }
  .filters form { grid-template-columns: 1fr 1fr; }
  .filters form .field { grid-column: 1 / -1; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
}
@media (max-width: 40rem) {
  .grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .site-header .wrap { flex-wrap: wrap; height: auto; gap: 0; padding-top: .9rem; }
  .nav { width: 100%; gap: 1.25rem; }
  .nav a { padding: .7rem 0; }
  .header-cta { display: none; }
  .hero .wrap { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- protest */
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--ink-2); }
.button:disabled { opacity: .6; cursor: default; }

.protest-bar { background: var(--ink); color: var(--paper); font-size: .88rem; }
.protest-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.protest-bar a { color: var(--paper); font-weight: 600; text-decoration: none; white-space: nowrap; }
.protest-bar a:hover { text-decoration: underline; }
.protest-bar strong { font-variant-numeric: tabular-nums; }

.hero.protest .wrap { padding-top: 4rem; padding-bottom: 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero.protest h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 1rem 0 1.25rem; }
.hero.protest .lead { color: var(--ink-2); font-size: 1.12rem; margin: 0 0 1rem; max-width: 34rem; }
.hero.protest .jump { margin: 1.5rem 0 0; font-weight: 600; }
.hero.protest .jump a { text-decoration: none; }
.hero.protest .jump a:hover { text-decoration: underline; }

.counter-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.counter { margin: 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.counter strong { font: 400 clamp(2.8rem, 6vw, 3.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.counter span { color: var(--muted); }
.progress { height: .6rem; border-radius: 999px; background: var(--skeleton); overflow: hidden; margin: 1rem 0 .6rem; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .7s ease; }
.to-go { margin: 0 0 1.25rem; font-size: .92rem; color: var(--muted); }
.to-go b { color: var(--ink); font-variant-numeric: tabular-nums; }

.signup { display: grid; gap: .6rem; }
.signup .two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.signup .inline { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.signup .reason { width: 100%; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.check input { margin-top: .15rem; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.fine { margin: 0; font-size: .8rem; color: var(--muted); }

.section-intro { max-width: 44rem; margin-bottom: 2rem; }
.section-intro h2, .why h2 { font: 400 clamp(1.7rem, 3.6vw, 2.3rem)/1.15 var(--serif); margin: 0 0 .75rem; }
.section-intro p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }

.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.how li { counter-increment: how; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.how li::before { content: counter(how, decimal-leading-zero); display: block; font: 400 1.6rem/1 var(--serif); color: var(--faint); margin-bottom: .9rem; }
.how h3 { margin: 0 0 .5rem; font-size: 1.08rem; letter-spacing: -.01em; }
.how p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.how sup a { text-decoration: none; font-weight: 700; padding: 0 .1rem; }
.sources { margin: 1.5rem 0 0; padding-left: 1.2rem; font-size: .82rem; color: var(--muted); }
.sources li { margin-bottom: .25rem; }

.table-tools { margin-bottom: .75rem; max-width: 22rem; }
.table-tools .field { width: 100%; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty-row { text-align: center; color: var(--muted); padding: 2rem 1rem; white-space: normal; }

.quote-form { margin-top: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .9rem; }
.quote-form h3 { margin: 0; font-size: 1.05rem; }
.quote-grid { display: grid; grid-template-columns: 1.2fr .6fr 1.6fr 1fr 1fr; gap: .6rem; }
.quote-grid label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.quote-form .button { justify-self: start; }

.why { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.why p { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 1rem; max-width: 36rem; }
.principles { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--panel); }
.principles h3 { margin: 0 0 .75rem; font-size: 1rem; }
.principles ul { margin: 0; padding: 0; list-style: none; }
.principles li { padding: .6rem 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; }

.narrow { max-width: 44rem; }
.wrap.narrow.prose h2 { margin-top: 2rem; }

@media (max-width: 60rem) {
  .hero-grid, .why { grid-template-columns: 1fr; gap: 2rem; }
  .how { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  .how { grid-template-columns: 1fr; }
  .signup .two, .signup .inline, .quote-grid { grid-template-columns: 1fr; }
  .protest-bar .wrap { font-size: .82rem; }
  .hero.protest .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}
[id] { scroll-margin-top: 5rem; }
.hero .signup .form-msg { font-size: .9rem; color: inherit; margin: 0; }
.hero .signup .form-msg.ok { color: var(--ok); }
.hero .signup .form-msg.err { color: var(--err); }
.hero .signup .fine { font-size: .8rem; color: var(--muted); margin: 0; }
.hero .counter-card .to-go { font-size: .92rem; margin: 0 0 1.25rem; }
.hero.protest .meanwhile { margin: 1.75rem 0 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .95rem; color: var(--ink-2); max-width: 34rem; }
.hero.protest .meanwhile a { font-weight: 600; }
.empty-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
