/* RentMaxxer design system, v2 ("lights on").
   Dark first: black ground, charcoal glass, one warm amber accent (a lit window) that only
   lights real things (open listings, your matches, the one main action), with ink text on it.
   EB Garamond 500 for headlines and big numbers, Geist for everything else.
   Colour and type rules: docs/brand/identity.md (the v2 README keeps the old blue ratios).
   Sections: 1 tokens, 2 base, 3 layout, 4 type, 5 chrome (strip, nav, footer, dock),
   6 controls (buttons, links, inputs, tiles, switches), 7 labels (badges, tags, pills),
   8 surfaces (cards, panels, banners, toasts, skeletons), 9 listing pieces, 10 skyline,
   11 page blocks, 12 motion, 13 utilities. */

/* ---------------------------------------------------------------- 1. tokens */
:root {
  color-scheme: dark;

  /* ground and surfaces */
  --bg: #000000;
  --bg-band: #06070A;
  --surface-1: #0E1014;
  --surface-2: #15181E;
  --surface-3: #1E222A;
  --surface-4: #282D37;
  --glass: rgba(14, 16, 20, 0.62);
  --glass-strong: rgba(10, 11, 14, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.26);
  --line-input: #646B79;
  --building: #12151B;
  --building-edge: #222733;

  /* text */
  --text: #F5F7FA;
  --text-2: #AEB4C0;
  --text-3: #8A919E;

  /* the one accent: warm amber, a lit window at night. The *-rgb triplets feed every
     tinted surface and glow (rgba(var(--accent-rgb), a)), so the hue lives only here. */
  --accent: #FFB224;
  --accent-rgb: 255, 178, 36;
  --accent-hover: #FFC14D;
  --accent-press: #E89B0C;
  --accent-glow: #FFC24A;
  --glow-rgb: 255, 194, 74;
  --glow-peak: #FFE7B0;
  --glow-peak-rgb: 255, 231, 176;
  --accent-text: #FFC65C;
  --accent-text-rgb: 255, 198, 92;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --accent-line: rgba(var(--glow-rgb), 0.55);
  --accent-deep: #241A06;
  --on-accent: #111111;

  /* states: always next to a word or an icon, never colour alone */
  --success: #3DDC97;
  --success-soft: rgba(61, 220, 151, 0.12);
  --warning: #FFB547;
  --warning-soft: rgba(255, 181, 71, 0.12);
  --danger: #FF6B61;
  --danger-soft: rgba(255, 107, 97, 0.12);

  /* type: a serif display (EB Garamond 500) carries the hierarchy; Geist does the work
     (body, UI, buttons, labels). Sizes are sized for phones first: H1 is ~34px at 390px. */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --fs-display: clamp(2.25rem, 1.6rem + 3vw, 4.75rem);      /* 36 to 76 */
  --fs-num: clamp(3.5rem, 2.6rem + 4vw, 5.5rem);            /* 56 to 88: counts */
  --fs-num-md: clamp(2rem, 1.7rem + 1.4vw, 3rem);           /* 32 to 48: stats */
  --fs-h1: clamp(2.125rem, 1.8rem + 1.4vw, 3.25rem);        /* 34 to 52 */
  --fs-h2: clamp(1.625rem, 1.4rem + 1vw, 2.5rem);           /* 26 to 40 */
  --fs-h3: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);       /* 18 to 20, Geist */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);   /* 18 to 21 */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;

  /* space (4-point) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 112px;
  --gutter: 16px;
  --maxw: 1120px;
  --nav-h: 60px;

  /* radius, by role */
  --r-xs: 8px;     /* thumbnails, small marks */
  --r-sm: 12px;    /* inputs, banners */
  --r-md: 14px;    /* choice tiles */
  --r-lg: 16px;    /* cards */
  --r-xl: 24px;    /* feature panels: skyline, closing call */
  --r-pill: 999px; /* buttons, chips, pills */

  /* depth: on black, depth is light, not shadow */
  --hl: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --lift: 0 22px 44px -24px rgba(0, 0, 0, 0.95);
  --float: 0 18px 40px -16px rgba(0, 0, 0, 0.9);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 110ms;
  --t-hover: 180ms;
  --t-enter: 320ms;
}
/* Desktop keeps the brand's 1120 px content frame (identity.md section 5). The Oct 30
   full-width override is gone: at 100% on a wide monitor the page read as a left-aligned
   sprawl (owner, Nov 4 2026: "the spacing is terrible"). */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --nav-h: 68px; }
  .section { padding-block: 56px; }
  .section--tight { padding-block: 28px 40px; }
}

/* ---------------------------------------------------------------- 2. base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-synthesis: none; caret-color: var(--accent-glow);
  scrollbar-color: var(--surface-4) var(--bg);
}
main { flex: 1 0 auto; display: block; }
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(h1, h2, h3, h4) { font-weight: 700; text-wrap: balance; }
:where(p, li, dd) { text-wrap: pretty; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
::selection { background: rgba(var(--accent-rgb), 0.5); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3A404C; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transition: top var(--t-hover) var(--ease-out);
}
.skip:focus-visible { top: 12px; }

/* ---------------------------------------------------------------- 3. layout */
.container {
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.container--mid { --maxw: 920px; }
.container--narrow { --maxw: 640px; }
.container--prose { --maxw: 720px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.stack > * { min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 8px); }
.grid { display: grid; gap: var(--gap, 16px); }
.grid > * { min-width: 0; }
.cards { display: grid; gap: var(--gap, 16px); grid-template-columns: 1fr; }
.cards > * { min-width: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { --gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards--grid { --gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .cards--grid { --gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section { padding-block: var(--s-11); }
.section--tight { padding-block: var(--s-6) var(--s-8); }
.section--band { background: var(--bg-band); border-block: 1px solid var(--line); }
.section--first { padding-top: var(--s-6); }
@media (min-width: 1024px) { .section--first { padding-top: var(--s-4); } }
.grouphead { display: grid; gap: 4px; margin-bottom: 18px; }
@media (min-width: 1024px) { .grouphead { margin-bottom: 24px; } }
.rowhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
@media (min-width: 1024px) { .rowhead { margin-bottom: 28px; } }
@media (min-width: 1024px) {
  .section { padding-block: var(--s-12); }
  .section--tight { padding-block: var(--s-8) var(--s-10); }
}
.section-head { display: grid; gap: 14px; margin-bottom: var(--s-8); max-width: 44rem; }
@media (min-width: 1024px) { .section-head { margin-bottom: var(--s-9); } }
.split { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-9); align-items: start; }
  .split__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* ---------------------------------------------------------------- 4. type */
.t-display {
  font-family: var(--font-display); font-size: var(--fs-display); font-weight: 500; line-height: 1.06;
  letter-spacing: -0.01em; text-wrap: balance;
}
.t-h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.t-h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1.12; letter-spacing: -0.005em; }
.t-h3 { font-size: var(--fs-h3); font-weight: 620; line-height: 1.3; letter-spacing: -0.012em; }
.t-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 38em; }
.t-body { font-size: var(--fs-body); }
.t-small { font-size: var(--fs-small); line-height: 1.5; }
.t-micro { font-size: var(--fs-micro); line-height: 1.4; }
.t-muted { color: var(--text-2); }
.t-faint { color: var(--text-3); }
.t-strong { font-weight: 620; color: var(--text); }
.measure { max-width: 38em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.bignum {
  display: block; font-family: var(--font-display); font-size: var(--fs-num); font-weight: 500; line-height: 0.9;
  letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
.midnum {
  font-family: var(--font-display); font-size: var(--fs-num-md); font-weight: 500; line-height: 1;
  letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
.prose { display: grid; gap: 16px; color: var(--text-2); }
.prose > * { min-width: 0; }  /* a wide table never widens the text column (320px screens) */
.prose h2 { color: var(--text); font-family: var(--font-display); font-size: 1.625rem; font-weight: 500; letter-spacing: -0.005em; line-height: 1.15; margin-top: 24px; }
.prose h3 { color: var(--text); font-size: 1.0625rem; margin-top: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--accent-text); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 639px) { .prose th, .prose td { padding: 10px 8px; hyphens: auto; } }
.prose th { color: var(--text); font-weight: 600; }

/* icons: one sprite, 24-unit grid, 1.75 stroke, round caps */
.icon {
  width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em;
}
.icon--sm { width: 1em; height: 1em; vertical-align: -0.14em; }
.icon--lg { width: 1.5em; height: 1.5em; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------- 5. chrome */
/* the "not a government website" line: thin, always there, never shouting */
.gov { padding: 8px 0; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--text-2); font-size: 0.8125rem; line-height: 1.35; }
.gov__inner { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.gov__inner p { margin: 0; }
.gov__more { display: none; }
@media (min-width: 640px) { .gov__more { display: inline; } }
/* "Learn more" is a 24px target (WCAG 2.5.8): the line is 41px with its hairline, nothing flush against it */
.gov a { display: inline-flex; align-items: center; min-height: 24px; color: var(--text); text-decoration-color: var(--line-3); white-space: nowrap; }
.gov a:hover { text-decoration-color: var(--accent-text); }
.gov .icon { color: var(--text-3); }
@media (max-width: 768px) { .gov a { position: relative; } .gov a::after { content: ""; position: absolute; inset: -10px -8px; } }  /* a 44px tap area on the 24px "Learn more" link, no layout change */
@media (max-width: 480px) { .gov { font-size: 0.875rem; } }  /* 14px on a phone, the home page too */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.66); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--nav-h); }
/* Lockup, a masthead: the bare One feed mark (no tile) in the wordmark's colour at reduced
   opacity, then the name as live text in the serif (EB Garamond), the same on every page */
.brand { --mark-o: 0.6; display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; border-radius: 4px; min-height: 44px; }
.brand__mark { width: 18px; height: 18px; flex: none; opacity: var(--mark-o); }
.brand__word { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
@media (min-width: 1024px) { .brand { gap: 10px; } .brand__mark { width: 20px; height: 20px; } .brand__word { font-size: 1.5rem; } }
/* the home page's nav: the masthead and one sign-in link on the page's own paper, a hairline under it.
   The solo link is the phone's sign-in on every page (the others sit in the menu); from 1024px the
   full links show and it goes, except on the home and wizard navs, where it is the one link. */
@media (min-width: 1024px) { .nav:not(.nav--home):not(.nav--wiz) .nav__solo { display: none; } }
.nav--home { position: relative; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav--home .nav__links > :not(.nav__solo):not(.menu) { display: none; }  /* the phone menu stays: a logged-in visitor reaches Dashboard and Your account through it */
.nav--home .nav__solo { display: inline-flex; color: var(--text); padding-right: 0; }
.nav--home .nav__solo:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
/* logged out, desktop home and wizard: the quieter "Log in" sits before "Sign up free" */
.nav--home .nav__solo--login { padding-right: 12px; color: var(--text-2); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color var(--t-hover), background-color var(--t-hover);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
button.nav__link { border: 0; background: none; cursor: pointer; }
.menu__btn {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; border-radius: 12px; cursor: pointer; list-style: none;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2);
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: block; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60; display: grid; gap: 4px;
  padding: 12px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
  background: #07080B; border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
}
.menu__panel .btn { margin-bottom: 6px; }
.menu__panel form { display: contents; }
.menu__link {
  display: flex; align-items: center; min-height: 48px; padding: 0 8px; border-radius: 12px; border: 0; background: none;
  color: var(--text); font-size: 1rem; font-weight: 550; text-decoration: none; text-align: left; cursor: pointer; width: 100%;
}
.menu__link:hover { background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__form { display: contents; }
.nav__cta { margin-left: 8px; }

.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-band); padding-block: var(--s-9) var(--s-8); font-size: var(--fs-small); color: var(--text-2); }
.footer__top { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.3fr 2fr; gap: var(--s-10); } }
.footer .brand { color: var(--text); }
.footer__tagline { max-width: 26em; margin-top: 12px; color: var(--text-2); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* phones: the Cities list full width under "Find housing" (Company moves up beside it), in
   three newspaper columns, same order, 32px rows: about 8 rows instead of 22 (owner, Nov 9 2026) */
@media (max-width: 639px) {
  .footer__cols { grid-auto-flow: row dense; }
  .footer__cols > div:nth-child(2) { grid-column: 1 / -1; }
  .footer__cols > div:nth-child(2) .footer__list { display: block; columns: 3; column-gap: 16px; }  /* block: columns do nothing on a grid */
  .footer__cols > div:nth-child(2) .footer__list li { break-inside: avoid; }
  .footer__cols > div:nth-child(2) .footer__link { min-height: 32px; white-space: nowrap; }
}
.footer__head { color: var(--text); font-weight: 600; font-size: var(--fs-small); margin-bottom: 4px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; }
.footer__link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text-2); text-decoration: none; }
.footer__link:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-text); }
.footer__legal { display: grid; gap: 8px; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-micro); max-width: 72em; }
.footer__legal strong { color: var(--text-2); font-weight: 600; }
.footer__legal a { color: var(--text-2); }
@media (max-width: 480px) { .footer__legal { font-size: 0.875rem; } }

/* mobile dock: the page's one action stays under the thumb */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--glass-strong); border-top: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  display: grid; gap: 6px;
}
.dock__note { font-size: var(--fs-micro); color: var(--text-2); text-align: center; }
body.has-dock { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* Tab and arrow keys never park the focused element under the dock */
@media (max-width: 1023px) { html:has(body.has-dock) { scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }
.dock { transition: transform var(--t-enter) var(--ease-out), opacity var(--t-hover) ease; }
.dock.is-tucked { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .dock { display: none; } body.has-dock { padding-bottom: 0; } }

/* ---------------------------------------------------------------- 6. controls */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  text-align: center; text-decoration: none; cursor: pointer; user-select: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease,
              border-color var(--t-hover) ease, box-shadow var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--r-pill); }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px -10px rgba(0, 0, 0, 0.9);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 22px -10px rgba(0, 0, 0, 0.95); }
.btn--primary:active { background: var(--accent-press); }
.btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--line-2); box-shadow: var(--hl); }
.btn--secondary:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: transparent; color: var(--danger); border-color: rgba(255, 107, 97, 0.5); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn--danger-solid { background: var(--danger); color: #1A0807; }
.btn--danger-solid:hover { background: #FF8279; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .icon { width: 1.15em; height: 1.15em; }
@media (max-width: 639px) { .btn--block-sm { display: flex; width: 100%; } }

.link {
  color: var(--accent-text); text-decoration: underline; text-decoration-color: rgba(var(--accent-text-rgb), 0.45);
  text-underline-offset: 0.22em; font-weight: 500; border-radius: 4px;
  transition: text-decoration-color var(--t-hover);
}
.link:hover { text-decoration-color: var(--accent-text); }
.link--quiet { color: var(--text-2); text-decoration-color: var(--line-3); font-weight: 400; }
.link--quiet:hover { color: var(--text); text-decoration-color: var(--text-2); }
/* stand-alone links get a full tap target */
.tap { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* back link */
.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-right: 10px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: var(--fs-small); border-radius: var(--r-pill);
}
.back:hover { color: var(--text); }
.back .icon { transition: transform var(--t-hover) var(--ease-out); }
.back:hover .icon { transform: translateX(-3px); }

/* breadcrumb (listing pages): Home / City / Listing */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--text-2); min-height: 44px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--text-3, var(--text-2)); opacity: .6; }
.crumbs a { color: var(--text-2); text-decoration: none; font-weight: 500; padding: 10px 0; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text-2); opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* form fields */
.field { display: grid; gap: 8px; }
.field__label { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.field__hint { font-size: var(--fs-small); color: var(--text-2); }
.field__error { display: flex; gap: 8px; align-items: flex-start; color: var(--danger); font-size: var(--fs-small); font-weight: 500; }
.field__error .icon { margin-top: 1px; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-input); color: var(--text);
  font-size: 1.0625rem; line-height: 1.3;
  transition: border-color var(--t-hover), background-color var(--t-hover), box-shadow var(--t-hover);
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #7C8494; }
.input:focus-visible { outline: none; border-color: var(--accent-glow); box-shadow: 0 0 0 3px rgba(var(--glow-rgb), 0.35); background: var(--surface-1); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--money { padding-left: 32px; }
.input-wrap { position: relative; }
.input-wrap__prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; font-size: 1.0625rem; }
select.input { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AEB4C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
select.input option { background: var(--surface-2); color: var(--text); }

/* choice tiles: the wizard questions are taps, not typing */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(var(--tile-cols, 2), minmax(0, 1fr)); }
.tiles--1 { --tile-cols: 1; }
.tiles--5 { --tile-cols: 5; gap: 8px; }
@media (min-width: 640px) {
  .tiles--sm-2 { --tile-cols: 2; }
  .tiles--sm-5 { --tile-cols: 5; }
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 72px; padding: 14px 44px 14px 16px; border-radius: var(--r-md);
  background: var(--surface-1); border: 1px solid var(--line-2); box-shadow: var(--hl);
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out), box-shadow var(--t-hover) ease;
}
.tile:hover { border-color: var(--line-3); background: var(--surface-2); }
.tile:active { transform: scale(0.98); }
/* the hidden input covers its tile, so keyboard focus scrolls the whole tile into view */
.tile__input { position: absolute; top: 0; left: 0; opacity: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.tile__big { font-size: 1.75rem; font-weight: 760; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.tile__word { font-size: 1.25rem; font-weight: 680; line-height: 1.1; letter-spacing: -0.02em; }
.tile__label { font-size: var(--fs-small); color: var(--text-2); line-height: 1.3; }
.tile__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-micro); color: var(--text-2); }
.tile__meta b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.tile__check {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-3); display: grid; place-items: center; color: transparent;
  transition: background-color var(--t-hover), border-color var(--t-hover), color var(--t-hover);
}
.tile__check .icon { width: 14px; height: 14px; stroke-width: 3; transform: scale(0.4); transition: transform var(--t-enter) var(--ease-spring); }
.tile--radio .tile__check { border-radius: 50%; }
.tile:has(.tile__input:checked) {
  border-color: var(--accent-glow); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--accent-glow);
}
.tile:has(.tile__input:checked) .tile__check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile:has(.tile__input:checked) .tile__check .icon { transform: scale(1); }
.tile:has(.tile__input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.tile--center { align-items: center; text-align: center; padding: 14px 8px 12px; min-height: 84px; }
.tile--center .tile__check { top: 8px; right: 8px; width: 18px; height: 18px; }
.tile--center .tile__check .icon { width: 11px; height: 11px; }
/* five tiles in a row on a phone are too narrow to share a line with the check: it sits above the number */
@media (max-width: 639px) { .tiles--5 .tile--center { padding-top: 30px; } }
.tile--wide { grid-column: 1 / -1; }
/* two columns on every screen, tighter on phones, so a whole question and its Next fit one phone screen */
.tiles--compact .tile { min-height: 72px; }
@media (max-width: 639px) {
  .tiles--compact { gap: 8px; }
  .tiles--compact .tile { min-height: 68px; padding: 12px 36px 12px 14px; }
  .tiles--compact .tile__word { font-size: 1.0625rem; }
  .tiles--compact .tile__check { top: 10px; right: 10px; }
}
.tile--tall { min-height: 96px; }

/* switches (alert settings) */
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0;
  border-radius: var(--r-pill); background: var(--surface-4); border: 1px solid var(--line-input); cursor: pointer;
  transition: background-color var(--t-hover), border-color var(--t-hover);
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--text-2); transition: transform var(--t-enter) var(--ease-spring), background-color var(--t-hover);
}
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::before { transform: translateX(20px); background: var(--on-accent); }
.switch:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-row__text { display: grid; gap: 2px; }

/* plain checkbox (delete confirmation, move-in) */
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 10px; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px;
  border: 1.5px solid var(--line-input); background: var(--surface-2); display: grid; place-items: center; cursor: pointer;
}
.check input::after { content: ""; width: 10px; height: 6px; border: 2.5px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--t-enter) var(--ease-spring); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* filter chips (radio inputs in a GET form) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip { position: relative; flex: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--line-2); color: var(--text-2); font-size: 0.9375rem; font-weight: 520;
  white-space: nowrap; cursor: pointer; transition: background-color var(--t-hover), border-color var(--t-hover), color var(--t-hover);
}
.chip span:hover { color: var(--text); border-color: var(--line-3); }
.chip b { font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: #05060A; }
.chip input:checked + span b { color: #3B414D; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* the four-question progress */
.progress { display: grid; grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 6px; }
.progress__seg { height: 4px; border-radius: 999px; background: var(--surface-4); overflow: hidden; position: relative; }
.progress__seg.is-done, .progress__seg.is-current { background: var(--accent); }


/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0;
  cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #fff; }
.faq__q .icon { color: var(--text-2); transition: transform var(--t-enter) var(--ease-out); }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); color: var(--text); }
.faq__a { padding: 0 0 22px; color: var(--text-2); max-width: 46em; }
.disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--text); border-radius: 8px;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .icon { color: var(--text-2); transition: transform var(--t-enter) var(--ease-out); }
.disclosure[open] > summary .icon { transform: rotate(45deg); }
.disclosure__body { padding-top: 6px; color: var(--text-2); max-width: 46em; }

/* ---------------------------------------------------------------- 7. labels */
.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: var(--r-pill);
  font-size: var(--fs-micro); font-weight: 560; line-height: 1; white-space: nowrap;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line);
}
.badge .icon { width: 15px; height: 15px; }
.badge--glass {
  background: rgba(6, 7, 10, 0.62); border-color: rgba(255, 255, 255, 0.16); color: #fff;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
}
.badge--senior { background: var(--warning-soft); border-color: rgba(255, 181, 71, 0.3); color: var(--warning); }
.badge--glass.badge--senior { background: rgba(6, 7, 10, 0.62); border-color: rgba(255, 181, 71, 0.55); color: #ffd28a; }
.badge--accessible { background: var(--accent-soft); border-color: rgba(var(--glow-rgb), 0.35); color: var(--accent-text); }
.badge--glass.badge--accessible { background: rgba(6, 7, 10, 0.62); border-color: rgba(var(--glow-rgb), 0.55); color: #fff; }
.tag--perfect { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag--likely { background: var(--success-soft); border-color: rgba(61, 220, 151, 0.28); color: var(--success); }
.tag--possible { background: var(--warning-soft); border-color: rgba(255, 181, 71, 0.28); color: var(--warning); }
.tag--unlikely { background: var(--surface-3); color: var(--text-2); }
.tag--estimate { background: transparent; border-color: var(--line-3); color: var(--text-2); }
.tag--veterans { background: transparent; border-color: var(--line-3); color: var(--text-1, inherit); }
/* deadline pills are badges with a state: <span class="badge pill--soon"> */
.pill--soon { background: var(--warning-soft); border-color: rgba(255, 181, 71, 0.3); color: var(--warning); }
.pill--today { background: var(--danger-soft); border-color: rgba(255, 107, 97, 0.35); color: var(--danger); }
.pill--open { background: var(--success-soft); border-color: rgba(61, 220, 151, 0.28); color: var(--success); }
.pill--closed { background: var(--surface-2); color: var(--text-2); }
.badge--glass.pill--soon { background: rgba(40, 28, 8, 0.86); }
.badge--glass.pill--today { background: rgba(48, 16, 14, 0.9); }
.badge--glass.pill--open { background: rgba(8, 34, 24, 0.86); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: var(--fs-small); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16); }

/* reason lines: why a listing may fit */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-small); color: var(--text-2); }
.reasons li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.reasons .icon { width: 18px; height: 18px; margin-top: 1px; }
.reason--ok .icon { color: var(--success); }
.reason--check .icon { color: var(--warning); }
.reason--no .icon { color: var(--danger); }
.reason--info .icon { color: var(--accent-text); }
.reasons--lg { font-size: var(--fs-body); gap: 12px; color: var(--text); }
.reasons--lg li { grid-template-columns: 20px 1fr; }
.reasons--lg .icon { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- 8. surfaces */
.card { position: relative; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hl); }
.card--pad { padding: var(--s-5); }
@media (min-width: 640px) { .card--pad { padding: var(--s-6); } }
.glass {
  background: var(--glass); border: 1px solid var(--line-2); box-shadow: var(--hl);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
.panel { border-radius: var(--r-xl); padding: var(--s-6); }
@media (min-width: 1024px) { .panel { padding: var(--s-8); } }
.panel--accent {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(var(--accent-rgb), 0.32), transparent 60%),
    var(--surface-1);
  border: 1px solid var(--line-2);
}
.divider { height: 1px; background: var(--line); border: 0; }

.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: var(--fs-small); line-height: 1.5;
}
.banner .icon { width: 20px; height: 20px; margin-top: 0; }
.banner--info { background: var(--accent-soft); border-color: rgba(var(--glow-rgb), 0.35); }
.banner--info .icon { color: var(--accent-text); }
.banner--success { background: var(--success-soft); border-color: rgba(61, 220, 151, 0.3); }
.banner--success .icon { color: var(--success); }
.banner--warning { background: var(--warning-soft); border-color: rgba(255, 181, 71, 0.3); }
.banner--warning .icon { color: var(--warning); }
.banner--danger { background: var(--danger-soft); border-color: rgba(255, 107, 97, 0.38); }
.banner--danger .icon { color: var(--danger); }
.banner__body { display: grid; gap: 4px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 16px 12px 14px;
  border-radius: var(--r-pill); background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--float);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-weight: 560; font-size: 0.9375rem;
  transform: translateX(-50%); animation: toast-in var(--t-enter) var(--ease-out) both;
}
.toast .icon { color: var(--success); }
.toast.is-leaving { animation: toast-out 200ms ease-in both; }
body.has-dock .toast { bottom: calc(112px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-dock .toast { bottom: 24px; } }

.skeleton {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 300% 100%; border-radius: var(--r-xs); animation: shimmer 1.4s linear infinite;
}
.skeleton--text { height: 14px; }
.skeleton--title { height: 22px; width: 70%; }
.skeleton--media { aspect-ratio: 16 / 10; border-radius: 0; }

.empty { display: grid; justify-items: start; gap: 14px; padding: var(--s-8) var(--s-6); text-align: left; }
.empty__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }

/* ---------------------------------------------------------------- 9. listing pieces */
.lcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hl);
  transition: transform var(--t-hover) var(--ease-out), border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.lcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--hl), var(--lift); }
.lcard:has(.lcard__link:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.lcard__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.lcard:hover .lcard__media img { transform: scale(1.035); }
.lcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, transparent 34%, transparent 66%, rgba(0,0,0,0.3) 100%); pointer-events: none; }
.lcard__chips { position: absolute; inset: 12px 12px auto 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; }
.lcard__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; flex: 1; }
.lcard__title { font-size: 1.125rem; font-weight: 640; line-height: 1.25; letter-spacing: -0.015em; }
.lcard__link { text-decoration: none; }
.lcard__link:focus-visible { outline: none; }
.lcard__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.placeline { display: flex; align-items: flex-start; gap: 8px; }
.placeline .icon { margin-top: 3px; flex: none; }
.lcard__place { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-2); margin-top: -6px; }
.lcard__place .icon { width: 15px; height: 15px; color: var(--text-3); }
.lcard__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.lcard__stats dt { font-size: var(--fs-micro); color: var(--text-3); }
.lcard__stats dd { margin: 2px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.3; }
.lcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lcard--closed .lcard__media img { filter: grayscale(1) brightness(0.6); }
.lcard--compact .lcard__media { aspect-ratio: 4 / 3; }
.lcard--compact .lcard__chips { inset: 8px 8px auto 8px; flex-direction: column; align-items: flex-start; }
.lcard--compact .badge { min-height: 24px; padding: 0 8px; font-size: 0.75rem; gap: 5px; }
.lcard--compact .badge .icon { width: 13px; height: 13px; }
.lcard--compact .lcard__body { gap: 6px; padding: 12px 12px 14px; }
.lcard--compact .lcard__title { font-size: 0.9375rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard--compact .lcard__place { margin-top: 0; font-size: var(--fs-micro); }
.lcard--compact .lcard__place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) {
  .lcard--compact .lcard__media { aspect-ratio: 16 / 11; }
  .lcard--compact .lcard__chips { flex-direction: row; justify-content: space-between; inset: 10px 10px auto 10px; }
  .lcard--compact .lcard__body { padding: 14px 16px 16px; }
  .lcard--compact .lcard__title { font-size: 1.0625rem; }
}
.lcard__rent { margin-top: auto; padding-top: 6px; font-size: var(--fs-small); color: var(--text-2); }
.lcard__rent b { font-size: 1.125rem; font-weight: 720; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.mchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mchip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 9px 0 7px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 560; line-height: 1; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
}
.mchip .icon { width: 13px; height: 13px; stroke-width: 2.25; }
.mchip--ok .icon { color: var(--success); }
.mchip--check { background: var(--warning-soft); border-color: rgba(255, 181, 71, 0.28); color: var(--warning); }
.mchip--no .icon { color: var(--danger); }
.lcard--closed { background: var(--bg-band); }
.nophoto {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px;
  background: radial-gradient(80% 80% at 50% 30%, #161A22, #0B0D11); color: var(--text-3); font-size: var(--fs-micro);
}
.nophoto .icon { width: 28px; height: 28px; }
/* .facade: the no-photo placeholder (photo_status "none"), an abstract front of a building
   drawn in CSS (docs/brand/identity.md), never a stock photo */
.facade {
  --wall: #8B4A38; --win: #2B3A42; --win-2: #3E5560; --sky: #C9D7DE; --trim: #6E3628; --street: #8F8A80;
  --cols: 5; --rows: 6;
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; max-width: 100%;
  background-color: var(--wall);
  background-image:
    linear-gradient(var(--sky) 0 13%, var(--trim) 13% 16%, transparent 16% 90%, var(--trim) 90% 92%, var(--street) 92%),
    repeating-linear-gradient(90deg, var(--wall) 0 calc(100% / var(--cols) * .28), transparent calc(100% / var(--cols) * .28) calc(100% / var(--cols))),
    repeating-linear-gradient(180deg, var(--wall) 0 calc(100% / var(--rows) * .34), transparent calc(100% / var(--rows) * .34) calc(100% / var(--rows))),
    linear-gradient(165deg, var(--win-2), var(--win));
}
.facade--stucco { --wall: #E2C7A4; --win: #2F4A52; --win-2: #57767E; --sky: #CFE3EC; --trim: #C9A77F; --street: #9A958C; --cols: 4; --rows: 4; }
.facade--painted { --wall: #9DB4C2; --win: #23323A; --win-2: #4B6470; --sky: #E3EBEF; --trim: #F1EFEA; --street: #8D8A84; --cols: 3; --rows: 4; }
.facade--stone { --wall: #B7AE9E; --win: #27323A; --win-2: #46555F; --sky: #D5DEE3; --trim: #8E8576; --street: #85817A; --cols: 6; --rows: 7; }
.facade--glass { --wall: #5E6B71; --win: #9FB7C2; --win-2: #D5E2E8; --sky: #E4ECEF; --trim: #48545A; --street: #8C8984; --cols: 7; --rows: 8; }
.facade--brown { --wall: #6B4A3A; --win: #23302F; --win-2: #44574F; --sky: #D2DCD6; --trim: #4F3428; --street: #8A867E; --cols: 4; --rows: 5; }
.lcard__media > .facade, .gallery__facade { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.lcard--closed .lcard__media .facade { filter: grayscale(1) brightness(0.6); }
/* the only trace of where a found photo came from: street-level images say so */
.photo-caption {
  position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 2px 7px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.6875rem; line-height: 1.5; pointer-events: none;
}
.photo-caption--top { top: 52px; bottom: auto; }

/* listing page */
.listing-top { padding-block: 12px 0; }
.gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery--empty { aspect-ratio: 16 / 10; }
@media (max-width: 639px) { .gallery { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); border-inline: 0; } }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -3px; }
.gallery__slide { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; margin: 0; overflow: hidden; background: #07080B; }
@media (min-width: 640px) { .gallery__slide { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .gallery__slide { aspect-ratio: auto; height: min(560px, 62vh); } }
.gallery__ambient { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(34px) brightness(0.5) saturate(1.25); }
.gallery__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gallery--empty { min-height: 220px; }
.gallery__btn {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; cursor: pointer;
  background: rgba(6, 7, 10, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color var(--t-hover), transform var(--t-press) var(--ease-out);
}
.gallery__btn:hover { background: rgba(6, 7, 10, 0.82); }
.gallery__btn:active { transform: scale(0.94); }
.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.thumbs { display: none; }
@media (min-width: 1024px) {
  .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
  .thumb { flex: none; width: 88px; aspect-ratio: 4 / 3; border-radius: var(--r-xs); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); opacity: 0.6; transition: opacity var(--t-hover), border-color var(--t-hover); }
  .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .thumb:hover { opacity: 1; }
  .thumb[aria-current="true"] { border-color: var(--accent-glow); opacity: 1; }
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { display: grid; align-content: start; gap: 8px; padding: 16px 18px 18px; background: var(--surface-1); min-width: 0; }
.stat__label { font-size: var(--fs-micro); color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.stat__label .icon { width: 15px; height: 15px; color: var(--text-3); }
.stat__value { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); font-weight: 760; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.42em; font-weight: 560; letter-spacing: -0.01em; color: var(--text-2); margin-left: 2px; }
.stat__note { font-size: var(--fs-micro); color: var(--text-2); }
.stat__value--word { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); letter-spacing: -0.025em; }
.stat__value--none { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); line-height: 1.6; }
.stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats--4 .stat__value { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); }  /* "$122K–$154K" wraps after the dash instead of being cut off */
.stats--4 .stat__value--word { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
@media (min-width: 768px) { .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.apply-row { display: grid; gap: 10px; }
@media (max-width: 639px) { .apply-row .btn { width: 100%; } }
@media (min-width: 640px) { .apply-row { grid-template-columns: auto 1fr; align-items: center; gap: 18px; } }
.units-slot:empty { display: none; }
.units-slot { overflow-x: auto; border-radius: var(--r-lg); }
.units-slot table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; background: var(--surface-1); }
.units-slot th, .units-slot td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.units-slot th { color: var(--text-2); font-weight: 560; font-size: var(--fs-micro); background: var(--surface-2); }
.folds { display: grid; border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; min-height: 60px; padding: 10px 0;
  cursor: pointer; list-style: none; border-radius: 8px;
}
.fold__head::-webkit-details-marker { display: none; }
.fold__title { font-size: 1.0625rem; font-weight: 620; letter-spacing: -0.01em; }
.fold__meta { font-size: var(--fs-small); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.fold__icon { width: 20px; height: 20px; color: var(--text-2); transition: transform var(--t-enter) var(--ease-out); }
.fold[open] > .fold__head .fold__icon { transform: rotate(90deg); }
.fold__body { padding: 4px 0 22px; }
.fold--cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 0; }
.fold__line { grid-column: 1 / -1; }
.listing-body { padding-top: var(--s-6); padding-bottom: var(--s-8); }
.stat--accent .stat__value { color: #fff; }

/* bars: rent per home size against your budget; income limits against your range */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: var(--fs-small); }
@media (min-width: 640px) { .bar { grid-template-columns: 110px minmax(0, 1fr) 96px; } }
.bar__label { color: var(--text-2); }
.bar__value { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; color: var(--text); }
.bar__track { position: relative; height: 12px; border-radius: 999px; background: var(--surface-3); }
.bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 999px; background: var(--text); }
.bar__range { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); min-width: 6px; border-radius: 999px; background: var(--text); }
.bar__band {
  position: absolute; top: -6px; bottom: -6px; left: var(--a); width: calc(var(--b) - var(--a)); min-width: 4px;
  border-radius: 6px; border: 1.5px solid var(--accent-glow); background: rgba(var(--accent-rgb), 0.22);
}
.bars__key { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-micro); color: var(--text-2); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key__swatch { width: 18px; height: 10px; border-radius: 999px; background: var(--text); }
.key__swatch--band { background: rgba(var(--accent-rgb), 0.3); border: 1.5px solid var(--accent-glow); }

.countdown { display: flex; align-items: flex-end; gap: 12px; }
.countdown__num { font-size: var(--fs-num); font-weight: 800; line-height: 0.82; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.countdown__unit { font-size: 1.125rem; font-weight: 600; color: var(--text-2); padding-bottom: 6px; line-height: 1.2; }
.countdown--soon .countdown__num, .countdown--soon .stat__value { color: var(--warning); }
.countdown--today .countdown__num, .countdown--today .stat__value { color: var(--danger); }

.apply { display: grid; gap: 14px; }
.apply__note { font-size: var(--fs-micro); color: var(--text-2); }

.setasides { display: flex; flex-wrap: wrap; gap: 8px; }
.setasides li { list-style: none; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 10. (the v2 skyline lived here; no page draws it since the editorial home, 2026-10-22) */

/* ---------------------------------------------------------------- 11. page blocks */
/* landing hero */
.hero { position: relative; padding-block: 28px var(--s-8); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; pointer-events: none;
  background: radial-gradient(50% 50% at 70% 30%, rgba(var(--accent-rgb), 0.16), transparent 70%);
}
.hero__grid { position: relative; display: grid; gap: var(--s-8); }
@media (min-width: 1024px) {
  .hero { padding-block: 56px var(--s-9); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-10); align-items: center; }
}
.hero__copy { display: grid; gap: 20px; align-content: start; }
.hero__actions { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
@media (max-width: 639px) { .hero__actions .btn { width: 100%; } }
.hero__fine { font-size: var(--fs-small); color: var(--text-2); }
.hero__proof {
  display: block; max-width: 34em; margin-top: 4px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2);
  text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 0.25em; border-radius: 4px;
}
.hero__proof:hover { color: var(--text); text-decoration-color: var(--accent-text); }
.hero .t-display { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-small); color: var(--text-2); }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .icon { color: var(--success); width: 16px; height: 16px; }

/* how it works: three real steps, each with a slice of the real interface */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step { display: grid; grid-template-rows: auto 1fr; gap: 18px; padding: 20px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--hl); }
@media (min-width: 1024px) { .step { padding: 24px; } }
.step__demo { position: relative; min-height: 132px; display: grid; align-content: center; gap: 8px; padding: 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.step__demo .btn { pointer-events: none; }
.step__title { display: flex; align-items: center; gap: 12px; }
.step__n { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.step__text { display: grid; gap: 8px; align-content: start; }
.mini-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-tile { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 0.75rem; color: var(--text-2); }
.mini-tile b { font-size: 1.125rem; color: var(--text); font-weight: 760; letter-spacing: -0.03em; line-height: 1; }
.mini-tile.is-on { border-color: var(--accent-glow); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent-glow); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 0.8125rem; }
.mini-row__name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* how lotteries work: three short lines */
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 1024px) { .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.kind { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); }
.kind__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(var(--glow-rgb), 0.3); color: var(--accent-text); flex: none; }
.kind__title { display: flex; align-items: center; gap: 10px; }

/* cities */
.cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .cities { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.city {
  position: relative; display: grid; gap: 6px; padding: 16px; min-height: 100%;
  border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--hl);
  text-decoration: none; transition: transform var(--t-hover) var(--ease-out), border-color var(--t-hover), box-shadow var(--t-hover);
}
@media (min-width: 1024px) { .city { padding: 20px 22px; } }
.city:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--hl), var(--lift); }
.city__name { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.city__n { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 780; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.city__n small { font-size: 0.4em; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.city__src { font-size: var(--fs-micro); color: var(--text-3); }

/* promises */
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 1024px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promise { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 20px; background: var(--surface-1); font-size: 1rem; line-height: 1.45; }
.promise .icon { width: 22px; height: 22px; color: var(--success); margin-top: 1px; }
@media (min-width: 1024px) { .promise:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* closing call */
.closer { text-align: center; display: grid; justify-items: center; gap: 18px; padding: var(--s-9) var(--s-6); }
@media (min-width: 1024px) { .closer { padding: var(--s-11) var(--s-8); } }

/* wizard */
.wizard { display: grid; gap: 24px; padding-block: 20px 32px; }
@media (min-width: 1024px) { .wizard { gap: 32px; padding-block: 40px 64px; } }
.wizard__top { display: grid; gap: 14px; }
.wizard__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.wizard__step { font-size: var(--fs-small); color: var(--text-2); font-weight: 520; font-variant-numeric: tabular-nums; }
.wizard__q { display: grid; gap: 10px; }
.wizard__q:focus { outline: none; }
.wizard fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.wizard legend { padding: 0; margin-bottom: 8px; }
.wizard__part { display: grid; gap: 14px; }
.wizard__part + .wizard__part { margin-top: 12px; }
.why { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface-1); border: 1px dashed var(--line-2); font-size: var(--fs-small); color: var(--text-2); }
.why .icon { width: 20px; height: 20px; color: var(--accent-text); }
.actionbar { display: grid; gap: 12px; }
@media (max-width: 1023px) {
  .actionbar--sticky {
    position: sticky; bottom: 0; z-index: 20; margin-inline: calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
    background: var(--glass-strong); border-top: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  }
  /* a tile reached by Tab or the arrow keys scrolls clear of the bar */
  html:has(.actionbar--sticky) { scroll-padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
}
.actionbar__note { font-size: var(--fs-micro); color: var(--text-2); text-align: center; }
@media (min-width: 1024px) { .actionbar { justify-items: start; } .actionbar .btn { min-width: 240px; } .actionbar__note { text-align: left; } }

/* matches: the reward */
.reward { display: grid; gap: 18px; padding-block: 32px 8px; }
@media (min-width: 1024px) { .reward { padding-block: 64px 16px; } }
.reward__count { display: grid; gap: 4px; }
.reward__pre { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 680; letter-spacing: -0.025em; line-height: 1.1; }
.reward__num { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.reward__num .bignum { font-size: clamp(5.5rem, 3.6rem + 8vw, 6rem); color: #fff; }
.reward__post { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 680; letter-spacing: -0.025em; line-height: 1.1; }
.summary-line { font-size: var(--fs-small); color: var(--text-2); }
.groupbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.groupbar__n { color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 6px; }

/* list header (listings, city) */
.pagehead { display: grid; gap: 14px; padding-block: 28px 8px; }
@media (min-width: 1024px) { .pagehead { padding-block: 56px 16px; } }
.pagehead__count { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filters { display: grid; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); }
@media (min-width: 1024px) { .filters { padding: 16px 20px; } }
.filters__group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
@media (min-width: 1024px) { .filters .filters__group { grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px; } }
.filters__label { font-size: var(--fs-micro); color: var(--text-2); font-weight: 600; }
.results.htmx-request .lcard { opacity: 0.45; }
.results.htmx-request .lcard__media::before { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; }
.pager__now { font-size: var(--fs-small); color: var(--text-2); font-variant-numeric: tabular-nums; }

/* account */
.acct { display: grid; gap: 20px; }
@media (min-width: 1024px) { .acct { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; } .acct__wide { grid-column: 1 / -1; } }
.acct-card { display: grid; gap: 18px; padding: 20px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--hl); scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (min-width: 640px) { .acct-card { padding: 24px; } }
.acct-card__head { display: grid; gap: 6px; }
.danger-zone { border-color: rgba(255, 107, 97, 0.28); }
.confirm[open] { border-radius: var(--r-md); border: 1px solid var(--line-2); padding: 12px; }
.confirm > summary { list-style: none; cursor: pointer; }
.confirm > summary::-webkit-details-marker { display: none; }

/* auth */
.auth { display: grid; gap: 22px; padding: 24px 20px; }
@media (min-width: 640px) { .auth { padding: 36px; } }
.auth__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(var(--glow-rgb), 0.35); }
.auth__icon .icon { width: 28px; height: 28px; }

/* errors */
.oops { display: grid; gap: 18px; justify-items: start; padding-block: var(--s-10); }
.oops__code { font-size: clamp(5rem, 3rem + 10vw, 6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.85; color: var(--line-input); font-variant-numeric: tabular-nums; }  /* 3.92:1 on black, large text */

/* admin */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-1); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--text-2); font-weight: 560; font-size: var(--fs-micro); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; }
.kpis { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.status-ok { color: var(--success); }
.status-warn { color: var(--warning); }
.status-bad { color: var(--danger); }

/* ---------------------------------------------------------------- 12. motion */
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 10px) scale(0.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .wizard.is-entering .wizard__q, .wizard.is-entering .wizard__answers { animation: rise var(--t-enter) var(--ease-out) both; }
  .wizard.is-entering .wizard__answers { animation-delay: 50ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .btn:active, .tile:active, .lcard:hover, .city:hover { transform: none; }
  .lcard:hover .lcard__media img { transform: none; }
}

/* ---------------------------------------------------------------- 13. utilities */
.hide { display: none !important; }
@media (max-width: 639px) { .hide-sm { display: none !important; } }
@media (min-width: 640px) { .only-sm { display: none !important; } }
@media (max-width: 1023px) { .only-lg { display: none !important; } }
@media (min-width: 1024px) { .hide-lg { display: none !important; } }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 40px; } .mt-10 { margin-top: 64px; }
.center { text-align: center; }
.full { width: 100%; }
.nowrap { white-space: nowrap; }
.self-start { justify-self: start; align-self: start; }
.gap-2 { --gap: 8px; } .gap-3 { --gap: 12px; } .gap-4 { --gap: 16px; } .gap-5 { --gap: 20px; } .gap-6 { --gap: 24px; } .gap-8 { --gap: 40px; }
.between { justify-content: space-between; }
.wrap-anywhere { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- 14. lock and paywall */
.locked { position: relative; display: grid; }
.locked__teaser { position: relative; max-height: 240px; overflow: hidden; pointer-events: none; }
.locked__teaser::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, var(--bg) 100%);
}
.locked__card { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: center; text-align: center; }
.locked__teaser + .locked__card { margin-top: -72px; }
.locked--cards .cards { position: relative; }
.locked--cards .cards::after {
  content: ""; position: absolute; left: -8px; right: -8px; bottom: -2px; height: 58%; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 55%, var(--bg) 78%);
}
.locked--cards .locked__card { margin-top: -56px; }
.locked__more { display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
.locked__more .midnum { color: #fff; }
.paywall {
  width: 100%; display: grid; gap: 18px; justify-items: center; padding: 28px 20px; border-radius: var(--r-xl);
  background: radial-gradient(120% 100% at 50% 0%, rgba(var(--accent-rgb), 0.28), transparent 65%), var(--surface-1);
  border: 1px solid var(--accent-line); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.95);
}
@media (min-width: 640px) { .paywall { padding: 36px 32px; } }
.paywall__line { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); font-weight: 680; letter-spacing: -0.02em; line-height: 1.25; max-width: 24em; text-wrap: balance; }
.paywall__actions { display: grid; gap: 10px; width: 100%; max-width: 420px; }
@media (min-width: 640px) { .paywall__actions { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- 15. why us (landing pitch) */
.pitch { border-block: 1px solid var(--line); background: var(--bg-band); }
.pitch__title { margin-bottom: var(--s-6); }
.pitch__block { display: grid; gap: 16px; padding-block: var(--s-7); border-top: 1px solid var(--line); }
.pitch__block:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .pitch__block { padding-block: var(--s-9); gap: 20px; } }
.pitch__sub { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

/* a source link under a number (the landing page's "Why a lottery win is worth it") */
.squeeze__src { font-size: 0.75rem; color: var(--text-3); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
a.squeeze__src:hover { color: var(--text-2); }

/* lock in your rent */
.lockin__line { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; max-width: 36em; }
.lockin .link { justify-self: start; }

/* what you'd be winning: the saving as a bond */
.bonds { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 640px) { .bonds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bond { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px; padding: 16px 18px; background: var(--surface-1); }
@media (min-width: 640px) { .bond { grid-template-columns: 1fr; gap: 6px; padding: 22px 24px; } }
.bond__save { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bond__eq { color: var(--text-3); }
@media (min-width: 640px) { .bond__eq { display: none; } }
.bond__num { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.bond__label { grid-column: 3; font-size: var(--fs-micro); color: var(--text-2); }
@media (min-width: 640px) { .bond__label { grid-column: auto; } }

/* without / with */
.vs { display: grid; gap: 12px; }
@media (min-width: 768px) { .vs { grid-template-columns: 1fr 1fr; gap: 16px; } }
.vs__col { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--r-lg); }
@media (min-width: 1024px) { .vs__col { padding: 24px; } }
.vs__col--without { background: var(--surface-1); border: 1px solid var(--line); color: var(--text-2); }
.vs__col--with { background: radial-gradient(120% 120% at 0% 0%, rgba(var(--accent-rgb), 0.22), transparent 60%), var(--surface-1); border: 1px solid var(--accent-line); }
.vs__head { font-weight: 700; letter-spacing: -0.01em; font-size: 1rem; }
.vs__col--without .vs__head { color: var(--text-2); }
.vs__col--with .vs__head { color: #fff; }
.vs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; line-height: 1.4; }
.vs__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.vs__list .icon { width: 18px; height: 18px; margin-top: 1px; }
.vs__col--without .icon { color: var(--text-3); }
.vs__col--with .icon { color: var(--accent-text); }
.vs__col--with li { color: var(--text); font-weight: 520; }
.vs__foot { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 650; letter-spacing: -0.015em; color: var(--text); }

/* the closing call carries one line under its headline */
.closer .t-lead { max-width: 34em; margin-inline: auto; }

/* ---------------------------------------------------------------- 16. savings (from market rents, when the backend provides them) */
.lcard__save, .save-line {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; font-size: 0.875rem; font-weight: 650; color: var(--success); line-height: 1.35;
}
.lcard__save span, .save-line span { font-weight: 500; color: var(--text-2); }
.save-line { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem); }

/* reward screen: the draws you are in */
.draws { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.draws li { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-1); border: 1px solid var(--line-2); font-size: var(--fs-small); color: var(--text-2); }
.draws b { font-size: 1.125rem; font-weight: 760; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 17. plans */
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; } }
.plan {
  display: flex; flex-direction: column; gap: 18px; padding: 22px 20px; border-radius: var(--r-xl);
  background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--hl);
}
@media (min-width: 1024px) { .plan { padding: 28px 26px; } }
.plan--pick {
  background: radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb), 0.26), transparent 62%), var(--surface-1);
  border-color: var(--accent-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 60px -32px rgba(0, 0, 0, 0.95);
}
@media (min-width: 1024px) { .plan--pick { transform: translateY(-8px); } }
.plan__top { display: grid; gap: 8px; }
.plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; }
.plan__price { display: flex; align-items: baseline; gap: 4px; }
.plan__num { font-size: clamp(2.25rem, 1.9rem + 1.4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__per { font-size: var(--fs-small); color: var(--text-2); font-weight: 560; }
.plan__alt { font-size: var(--fs-micro); color: var(--text-2); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; line-height: 1.4; }
.plan__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan__list .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--success); stroke-width: 2.25; }
.plan--pick .plan__list .icon { color: var(--accent-text); }
.plan__note { font-size: var(--fs-micro); color: var(--text-2); }
.plan__cta { margin-top: auto; }
.plans__foot { margin-top: 18px; font-size: var(--fs-small); color: var(--text-2); text-align: center; }

/* ---------------------------------------------------------------- spacing pass (Oct 2026)
   Body copy stops at a readable measure everywhere; centred lines centre their box too. */
main p, .footer__legal p, .faq__a p, .disclosure__body, .ut__legend { max-width: 68ch; }
.reasons > li, .pricing-why > li { max-width: 72ch; }
.center p, .closer p, .locked__card p, .plans__foot, .actionbar__note { margin-inline: auto; }
.lhero__fine { max-width: none; }
@media (min-width: 1024px) { .actionbar__note { margin-inline: 0; } }
.t-lead { max-width: 40em; }
.save-line { flex-direction: column; align-items: flex-start; }
.save-line span { font-size: 0.875em; }
.units-slot { margin-top: 16px; }
@media (min-width: 1024px) { .units-slot { margin-top: 24px; } }
.pagehead { gap: 16px; padding-block: 32px 12px; }
.pagehead .cluster { margin-top: 4px; }
.pagehead .t-lead + * { margin-top: 4px; }
/* ---------------------------------------------------------------- 18. serif display
   The headline voice: EB Garamond 500, near-zero tracking (never the sans' tight -0.03em),
   lining figures for money and counts. Kept last so it wins over the per-block sizes above. */
.countdown__num, .bond__num, .plan__num, .city__n, .oops__code, .stat__value, .tier__n {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
}
.stat__value--word { letter-spacing: 0; }
.reward__pre, .reward__post, .pitch__sub, .paywall__line {
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0; line-height: 1.2;
}
.reward__pre, .reward__post { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); }
.pitch__sub, .paywall__line { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); }
:where(.t-display, .t-h1, .t-h2, .bignum, .midnum, .prose h2) em { font-style: italic; }

/* ---------------------------------------------------------------- 19. phone type scale (Oct 2026)
   At 480px and under the whole scale steps down ~10-15% so a phone screen breathes: body 15px,
   headlines and big numbers smaller. Nothing set here goes under 13px. Desktop is untouched. */
@media (max-width: 480px) {
  :root {
    --fs-display: 1.9375rem;  /* 31 */
    --fs-num: 3rem;           /* 48 */
    --fs-num-md: 1.75rem;     /* 28 */
    --fs-h1: 1.8125rem;       /* 29 */
    --fs-h2: 1.4375rem;       /* 23 */
    --fs-h3: 1.0625rem;       /* 17 */
    --fs-lead: 1rem;          /* 16 */
    --fs-body: 0.9375rem;     /* 15 */
    --fs-small: 0.8125rem;    /* 13 */
    --fs-micro: 0.8125rem;    /* 13 */
  }
  .btn--lg { font-size: 1rem; }
  .faq__q { font-size: 0.9688rem; min-height: 56px; padding: 15px 0; }
  .plan__name { font-size: 1rem; }
  .plan__num { font-size: 2rem; }
  .plan__list { font-size: 0.875rem; }
  .plan { gap: 16px; }
  .reward__pre, .reward__post { font-size: 1.3125rem; }
  .pitch__sub, .paywall__line { font-size: 1.1875rem; }
}
