/* CATALYST - TopStreet demo: tokens and base for every page (Lane A). Brand read from acmerealty.example and the Investment Playbook, 18 Oct 2026:
   dark green, cream, grey-green, one mint call-to-action accent, stone rules. Montserrat is the open stand-in for their licensed type.
   Every page loads this file. Other lanes: use the variables below, add your own classes in your own file. */
@import url("assets/fonts.css");

:root {
  /* the walk's tokens: one focus ring, a type scale with a 12px floor, a space scale, and radii (rectangles 10px, cards 16px, avatars round) */
  --ring: 2px solid #17181a; --ring-on-dark: 2px solid #ffffff; --ring-offset: 2px;
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px; --fs-24: 24px; --fs-32: 32px; --fs-40: 40px; --fs-56: 56px;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px;
  --radius: 10px; --radius-card: 16px; --radius-round: 50%;
  /* brand (BRIEF section 5) */
  --haus-green: #17181a;
  --haus-green-2: #2b2c2f;
  --haus-cream: #fafaf9;
  --haus-grey: #6b6b66;
  --haus-mint: #8e1f2f;
  --haus-mint-2: #75192a;
  --haus-stone: #c9c9c2;
  --haus-line: #ecebe7;
  --haus-white: #ffffff;
  --haus-alert: #9c2b1f;
  /* short names used by the copied patterns, remapped to haus */
  --paper: var(--haus-cream);
  --stone: #f1f0ec;
  --stone-2: #e2e2d6;
  --white: #ffffff;
  --ink: var(--haus-green);
  --taupe: var(--haus-grey);
  --line: var(--haus-line);
  --oxblood: var(--haus-green);        /* the one accent of the signed-in screens */
  --oxblood-hover: var(--haus-green-2);
  --brass: var(--haus-stone);
  --brass-ink: var(--haus-grey);
  --alert: var(--haus-alert);
  --moss: #61615e;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Instrument Sans", Arial, sans-serif;
  --serif: var(--sans);
  --rail: 440px;
  --bar: 40px;                          /* height of the top demo bar; sticky offsets use it */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.num { font-variant-numeric: tabular-nums; }
.taupe { color: var(--taupe); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* type */
.display { font: 700 52px/1.08 var(--display); letter-spacing: -0.025em; }
.h1 { font: 700 38px/1.12 var(--display); letter-spacing: -0.02em; }
.h2 { font: 300 24px/1.2 var(--sans); letter-spacing: -0.015em; }
.h3 { font: 500 18px/1.3 var(--sans); }
.lede { font: 300 18px/1.65 var(--sans); color: #30302d; max-width: 36em; }
.eyebrow { font: 500 12px/1.2 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--taupe); }

/* wordmark: white letters with the stone ampersand; on light grounds the letters are green (logo-dark.svg) */
.mark { display: inline-block; width: 120px; height: 24px; background: url("brand/topstreet-dark.svg") left center / contain no-repeat; text-indent: -999px; overflow: hidden; }
.mark.light { background-image: url("brand/topstreet-light.svg"); }

/* controls: 10px rectangles, never pills (decision 0017). Mint is the single call to action on public and client pages. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; background: var(--haus-green); color: #fff; font: 600 14px var(--sans); letter-spacing: 0.02em; text-decoration: none; border: 0; border-radius: 10px; }
.btn:hover { background: var(--haus-green-2); }
.btn.cta { background: var(--haus-mint); color: #fff; }
.btn.cta:hover { background: var(--haus-mint-2); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { background: var(--stone-2); color: var(--taupe); cursor: default; }
.link { color: var(--ink); font: 600 14px var(--sans); text-decoration: underline; text-decoration-color: var(--haus-stone); text-decoration-thickness: 1.5px; text-underline-offset: 5px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration-color: var(--haus-mint); }
.link.quiet { color: var(--taupe); font-weight: 500; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font: 500 14px var(--sans); color: var(--taupe); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 16px var(--sans); color: var(--ink); }
.field textarea { padding: 12px 14px; min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }

/* status chips (signed-in logic: New solid, Waiting clay, Booked wash, Quiet stone) and cards */
.chip { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: #f1f0ec; color: #4f4f4c; }
.chip.new { background: #3a3b3f; color: #fff; }
.chip.wait { background: #F6EDE4; color: #7A4A28; }
.chip.book { background: #f0efeb; color: #3a3b3f; }
.chip.quiet { background: #F1F0EB; color: #56564F; }
.chip.bad { background: #f7e2de; color: var(--haus-alert); }
.chip.ok { background: #f6eaeb; color: #8e1f2f; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; }

/* the demo bar, the one small label and the toast, shared by every page */
.proto-bar { background: var(--haus-green); color: #dbdbd8; font: 500 12px/1 var(--sans); display: flex; align-items: center; gap: 2px; padding: 0 16px; height: var(--bar); overflow-x: auto; white-space: nowrap; position: sticky; top: 0; z-index: 90; scrollbar-width: none; }
.proto-bar::-webkit-scrollbar { display: none; }
.proto-bar .t { display: inline-flex; align-items: center; gap: 10px; margin-right: 14px; flex: none; }
.proto-bar .t img { height: 15px; width: auto; }
.proto-bar .t span { color: #a5a5a2; font-weight: 500; letter-spacing: .04em; }
.proto-bar a { color: #b9b9b6; text-decoration: none; padding: 7px 10px; flex: none; }
.proto-bar a:hover { color: #fff; }
.proto-bar a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--haus-mint); }
.proto-bar .sp { flex: 1; min-width: 12px; }
.proto-bar button { color: #b9b9b6; border: 1px solid #555552; padding: 6px 10px; font-size: 12px; border-radius: 8px; flex: none; }
.proto-bar button:hover { color: #fff; border-color: #a5a5a2; }
.demo-tag { position: fixed; right: 14px; bottom: 12px; z-index: 55; font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe); background: rgba(250, 250, 249,.92); padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; pointer-events: none; }
@media (max-width: 760px) { .proto-bar .t span { display: none; } }
@media (max-width: 959px) { .demo-tag { bottom: 76px; right: 8px; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--haus-green); color: var(--paper); padding: 13px 20px; font-size: 14px; z-index: 300; max-width: 88%; border-radius: 10px; }

/* "Not in this demo": a control with nothing behind it opens this plain sheet, never a toast */
.hz-sheet { position: fixed; inset: 0; z-index: 400; background: rgba(23, 24, 26, .38); display: flex; align-items: center; justify-content: center; padding: 20px; }
.hz-sheet__b { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 26px; box-shadow: 0 20px 60px rgba(23, 24, 26, .22); }
.hz-sheet__b h3 { font: 700 20px/1.3 var(--sans); letter-spacing: -.01em; margin-bottom: 6px; }
.hz-sheet__b p { font-size: 16px; color: var(--taupe); margin-bottom: 18px; }
@media (max-width: 640px) { .hz-sheet { align-items: flex-end; padding: 0; } .hz-sheet__b { max-width: none; border-radius: 20px 20px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); } }

/* glossary: a plain-word definition on hover, focus or tap */
.gl { border-bottom: 1px dotted currentColor; cursor: help; }
.gl:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
.gltip { position: fixed; z-index: 500; display: none; background: var(--haus-green); color: #fff; font: 400 14px/1.5 var(--sans); padding: 11px 14px; border-radius: 8px; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* quiet reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* the right rail: Ask, sliding in beside the page. Used by the client page and the shell; the shell re-skins it in ws-base.css */
#page { transition: padding-right .28s ease; }
body.rail-open #page { padding-right: var(--rail); }
.rail-tab { position: fixed; right: 0; top: 46%; transform: translateY(-50%); z-index: 70; background: var(--haus-green); color: #fff; writing-mode: vertical-rl; text-orientation: mixed; padding: 22px 12px; font: 600 14px var(--sans); letter-spacing: 0.12em; border-radius: 10px 0 0 10px; }
.rail-tab:hover { background: var(--haus-green-2); } .rail-tab .short { display: none; }
body.rail-open .rail-tab { display: none; }
.rail { position: fixed; top: var(--bar); right: 0; bottom: 0; width: var(--rail); background: #fff; border-left: 1px solid var(--line); z-index: 80; transform: translateX(100%); transition: transform .28s ease, visibility 0s .28s; visibility: hidden; display: flex; flex-direction: column; font-family: var(--sans); color: var(--ink); }
body.rail-open .rail { transform: none; visibility: visible; transition: transform .28s ease; }
.rail button { background: none; border: 0; cursor: pointer; font-family: inherit; }
.rail-h { padding: 20px 26px 14px; border-bottom: 1px solid var(--line); }
.rail-h .flex { display: flex; justify-content: space-between; align-items: center; }
.rail .h3 { font: 600 20px/1.2 var(--sans); }
.rail .link { font: 600 14px var(--sans); text-decoration: underline; }
.rail-ctx { margin-top: 8px; font-size: 14px; color: var(--taupe); }
.rail-ctx b { color: var(--ink); font-weight: 600; }
.rail-log { flex: 1; overflow-y: auto; padding: 22px 26px; display: grid; gap: 22px; align-content: start; }
.rail-empty { color: var(--taupe); font: 300 18px/1.5 var(--sans); }
.rq { font: italic 300 18px/1.4 var(--sans); }
.rq::before { content: "You asked"; display: block; font: normal 600 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe); margin-bottom: 6px; }
.ra { display: grid; gap: 10px; font-size: 16px; line-height: 1.6; }
.ra.wait { color: var(--taupe); font-style: italic; }
.ra .src { font-size: 12px; color: var(--taupe); }
.ra .note { font-size: 14px; color: var(--taupe); }
.rail-sug { padding: 0 26px 14px; display: grid; }
.rail-sug button { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.rail-sug button::after { content: "\2192"; color: var(--taupe); }
.rail-sug button:hover { color: var(--haus-green-2); }
.rail-f { padding: 14px 26px 20px; border-top: 1px solid var(--ink); }
.rail-f form { display: flex; gap: 14px; align-items: center; }
.rail-f input { flex: 1; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: 400 16px var(--sans); padding: 0; border-radius: 0; min-width: 0; color: var(--ink); }
.rail-f input:focus { outline: 0; border-bottom-color: var(--ink); }
.rail-f p { margin-top: 10px; font-size: 12px; color: var(--taupe); line-height: 1.5; }
.ra .dots { display: inline-flex; gap: 6px; align-items: center; height: 22px; padding: 0 2px; }
.ra .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); opacity: .35; animation: askDot 1.3s ease-in-out infinite; }
.ra .dots i:nth-child(2) { animation-delay: .18s; }
.ra .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes askDot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ra .dots i { animation: none; opacity: .6; } #page, .rail { transition: none; } }
@media (max-width: 760px) { :root { --rail: 100vw; } body.rail-open #page { padding-right: 0; } .rail-tab { top: auto; bottom: 16px; right: 16px; transform: none; writing-mode: horizontal-tb; min-width: 56px; min-height: 44px; padding: 12px 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); } .rail-tab .long { display: none; } .rail-tab .short { display: inline; } }

/* the walk's page pattern (strategy/PAGE-PATTERN.md): one column of reading, an eyebrow, a light headline, a grey lede, one key card, then calm cards.
   Space 8/12/16/24/32/48/72/96; content about 1000px; reading lines at most 60 characters; sentence-case labels. */
:root { --accent: var(--haus-green); }
.wp { max-width: 1120px; margin: 0 auto; padding: 64px 40px 64px; }
.wp-eb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 24px; font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.wp-eb::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }
.wp-eb .ln { flex: none; width: 28px; height: 1px; background: var(--line); }
.wp-eb .ds { font-weight: 500; letter-spacing: .1em; }
.wp > h1 { font: 700 52px/1.08 var(--display); letter-spacing: -.025em; max-width: 18em; margin: 0 0 24px; }
.wp .wp-lede { font: 300 20px/1.6 var(--sans); color: var(--taupe); max-width: 60ch; margin: 0; }
.wp-key { margin: 40px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.wp-key p { margin: 0; max-width: 60ch; font: 300 20px/1.55 var(--sans); }
.wp-key p b { font-weight: 600; }
.skip-anchor:target { outline: none; }
.wp-sec { margin-top: 64px; }
.wp-sec > h2 { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin: 0 0 24px; }
.wp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.wp-card b { display: block; font: 600 16px/1.4 var(--sans); }
.wp-card > span { display: block; font: 400 14px/1.55 var(--sans); color: var(--taupe); margin-top: 4px; }
.wp-cols { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 40px 0 0; }
.wp-cols > * { padding: 28px; border-left: 1px solid var(--line); text-decoration: none; color: inherit; display: block; }
.wp-cols > *:first-child { border-left: 0; }
a.wp-cols__c:hover { background: var(--haus-cream); }
.wp-cols i { display: block; margin-bottom: 12px; font: 600 14px/1 var(--sans); font-style: normal; color: var(--accent); }
.wp-cols b { display: block; font: 600 18px/1.35 var(--sans); }
.wp-cols > * > span { display: block; margin-top: 6px; font: 400 14px/1.55 var(--sans); color: var(--taupe); }
.wp-note { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--taupe); max-width: 60ch; }
@media (max-width: 1100px) { .wp > h1 { font-size: 40px; } .display { font-size: 40px; } .wp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wp-cols > *:nth-child(3) { border-left: 0; } .wp-cols > *:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .wp { padding: 24px 16px 64px; } .wp > h1 { font-size: 32px; } .wp .wp-lede { font-size: 18px; } .display, .h1 { font-size: 32px; } .wp-sec { margin-top: 40px; } .wp-key { margin-top: 32px; padding: 24px; } .wp-key p { font-size: 18px; } .wp-cols { grid-template-columns: 1fr; margin-top: 32px; } .wp-cols > * { border-left: 0; border-top: 1px solid var(--line); padding: 24px; } .wp-cols > *:first-child { border-top: 0; } }

/* one focus ring on the walk's own pages */
.wp a:focus-visible, .wp button:focus-visible, .wp summary:focus-visible, .wp .link:focus-visible, .gl:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the brand is always written TopStreet in lower case, even inside an upper-case eyebrow */
.wp-eb .bn, .bn-lc { text-transform: none; letter-spacing: .04em; }

/* The walk's menu, held before app.js draws it (rail-pre.js sets html.hz-pre in the head), so a page never paints full width and then jumps. The same width,
   colour and edge as the menu (the A2 dark panel); it goes the moment app.js adds hz-has-rail. On a phone, the 56px top bar's space on the walk's own pages. */
@media (min-width: 901px) {
  html.hz-pre:not(.hz-has-rail) { padding-left: 288px; }
  html.hz-pre.hz-pre-col:not(.hz-has-rail) { padding-left: 0; }
  html.hz-pre:not(.hz-has-rail)::before { content: ""; position: fixed; top: 0; left: 0; bottom: 0; z-index: 90; width: 288px; background: linear-gradient(180deg, #141413, #080808); border-right: 1px solid rgba(255, 255, 255, .08); }
  html.hz-pre.hz-pre-col:not(.hz-has-rail)::before { display: none; } /* a collapsed menu is hidden on a wide screen, so there is nothing to hold */
}
@media (max-width: 900px) {
  html.hz-pre:not(.hz-pre-home):not(.hz-has-rail) body::before { content: ""; display: block; height: 55px; background: #0d0d0c; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}
/* the page label ("19 · Why now") gets its step number from a script at the end of the page: keep it hidden until the page has run (hz-ready, set by rail-pre.js) so it does not shift sideways */
html.hz-pre:not(.hz-ready) .wp-eb { visibility: hidden; }

/* the TopStreet wordmark (brand standard: oxide square, short hairline, "TopStreet" in Archivo 800); light on the dark menu and cover */
.ts-wm { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -.01em; color: inherit; white-space: nowrap; }
.ts-wm i { width: 10px; height: 10px; background: #8e1f2f; flex: none; }
.ts-wm s { width: 16px; height: 1px; background: currentColor; opacity: .35; flex: none; }
