/* Homepage. Follows the design mock-up: a 1600px canvas with a 1372px content
   column and small, dense sections. Tokens, buttons and the footer come from
   css/index.css; the colours here are the mock-up's, in light and dark.

   Brand colours are --orange and --grad-brand, the same as the nav button. White
   on them is below 4.5:1, as it is in the nav: a brand decision, see
   docs/homepage-seo.md. */
:root {
  --hm-ink: #191919;
  --hm-soft: #565c6e;
  --hm-bg: #fff;
  --hm-card: #fff;
  --hm-peach: #fdf3ea;
  --hm-line: #f2e7dc;
  --hm-field: #fff;
  --hm-body: #3f4557;
  --hm-flow: #fdf6f1;
  --hm-glow: linear-gradient(100deg, #fff8f2 0%, #fdefe3 55%, #fce6d6 100%);
  --hm-lift: 0 6px 20px rgba(120, 66, 28, .08);
  --hm-pop: #fdf0e6;
  --hm-gut: clamp(32px, 22.8vw - 250px, 114px);   /* 114 at 1600, as the mock-up; 32 by 1240 */
  --hm-scrim: rgba(36, 22, 12, .5);
  --hm-shadow: 0 10px 30px rgba(52, 28, 10, .14);
}
[data-theme="dark"] {
  --hm-ink: #f6f3ef;
  --hm-soft: #aaa49b;
  --hm-bg: #0f0e0c;
  --hm-card: #181613;
  --hm-peach: #1f1711;
  --hm-line: rgba(255, 255, 255, .1);
  --hm-field: #201d19;
  --hm-body: #c9c3ba;
  --hm-flow: transparent;
  --hm-glow: linear-gradient(100deg, #1b1612 0%, #231810 100%);
  --hm-lift: none;
  --hm-pop: #1d1712;
  --hm-scrim: rgba(10, 7, 4, .66);
  --hm-shadow: 0 12px 34px rgba(0, 0, 0, .55);
}

body { background: var(--hm-bg); color: var(--hm-ink); }
body::before, body::after { display: none; }   /* the mock-up's page is plain, without the site's glow */
.hm-sprite { position: absolute; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-skip { position: fixed; top: -60px; left: 12px; z-index: 1100; padding: .6rem 1rem; border-radius: 8px; background: var(--hm-card); color: var(--hm-ink); font-weight: 600; }
.hm-skip:focus { top: 12px; }
main svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hm-wrap { width: 100%; max-width: calc(1372px + 2 * var(--hm-gut)); margin-inline: auto; padding-inline: var(--hm-gut); }
.hm-sec { margin-top: 24px; scroll-margin-top: 76px; }
.hm-sec h2, .hm-band h2, .hm-owner h2 { color: var(--hm-ink); font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }

/* ── Moving between the tabs ──────────────────────────────────────────── */
/* Rent, Roommates and Partner are separate pages, so the browser holds the old one on
   screen until the next is ready, then slides them across each other. The nav stays
   still. Each page opts in with a one-line script at the top of its <head>.
   They run Rent, Roommates, Partner, left to right: --hm-slide-from is where the page
   arriving comes from, flipped in roommates.css and partner.css. js/tab-slide.js fetches
   the other pages ahead so they arrive complete. Browsers without cross-page view
   transitions load the next page as normal. */
:root { --hm-slide-from: -100%; }
/* Named only during a slide: at rest the name would stop the header's glass blurring the page. */
:root:active-view-transition .rr-site-nav.navbar { view-transition-name: rr-nav; }
@keyframes hm-slide-in { from { transform: translateX(var(--hm-slide-from)); } }
@keyframes hm-slide-out { to { transform: translateX(calc(-1 * var(--hm-slide-from))); } }
/* Starts and stops gently. A curve that starts fast crosses most of the page in the
   first 120ms, which reads as a blink rather than a slide. */
::view-transition-old(root) { animation: hm-slide-out .7s cubic-bezier(.65, 0, .35, 1) both; }
::view-transition-new(root) { animation: hm-slide-in .7s cubic-bezier(.65, 0, .35, 1) both; }
::view-transition-group(rr-nav), ::view-transition-new(rr-nav) { animation: none; }
::view-transition-old(rr-nav) { display: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* One hero for Rent (index.html) and Roommates (roommates.html): only the photo and
   the words differ. Keep every size here so the two pages cannot drift apart.
   The search bar sits over the part of each photo where the mock-up's own bar was cut
   out, so above 1600px it grows with the photo to keep covering it. */
.hm-hero { position: relative; z-index: 2; isolation: isolate; display: flex; min-height: max(306px, 19.125vw); margin-top: 84px; }
.hm-hero__photo { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; border-radius: 0 0 22px 22px; background: var(--hm-peach); }
.hm-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
[data-theme="dark"] .hm-hero__photo img { filter: brightness(.5) saturate(.9); }
/* Keeps the headline clear of whatever is behind it. */
.hm-hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253, 243, 234, .9) 0 40%, transparent 62%); }
[data-theme="dark"] .hm-hero__photo::after { background: linear-gradient(90deg, rgba(10, 7, 4, .78) 0 42%, transparent 68%); }
/* The Rent photo is darker behind the end of its longer headline, so the fade runs just
   past the text (about 50% + 140px at any width) and leaves the balcony view clear. */
@media (min-width: 1101px) {
  .hm-hero--rent .hm-hero__photo::after { background: linear-gradient(90deg, rgba(253, 243, 234, .94) 0 calc(50% + 140px), transparent calc(50% + 300px)); }
  [data-theme="dark"] .hm-hero--rent .hm-hero__photo::after { background: linear-gradient(90deg, rgba(10, 7, 4, .82) 0 calc(50% + 140px), transparent calc(50% + 300px)); }
}
.hm-hero__inner { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 14px; padding: 36px var(--hm-gut) 13px; }
.hm-hero__copy { width: min(1372px, 100%); padding-left: 60px; }
/* Stops short of the first person in the Roommates photo, who moves left as the window narrows. */
.hm-hero h1 { color: var(--hm-ink); font-size: clamp(2.25rem, 5vw - 19px, 3.125rem); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.hm-hero h1 span { color: var(--orange); }
.hm-hero__sub { max-width: calc(100vw - 800px); margin-top: 6px; color: var(--hm-body); font-size: clamp(1rem, .9rem + .3vw, 1.3125rem); font-weight: 500; line-height: 1.35; }

.hm-search { display: flex; flex-direction: column; align-items: center; width: min(max(1088px, 68vw), 100%); }
:root { --hm-pill-glass: rgba(255, 255, 255, .62); --hm-pill-edge: rgba(255, 255, 255, .72); --hm-pill-line: rgba(25, 25, 25, .13); --hm-pill-hover: rgba(25, 25, 25, .07); }
[data-theme="dark"] { --hm-pill-glass: rgba(24, 20, 18, .55); --hm-pill-edge: rgba(255, 255, 255, .16); --hm-pill-line: rgba(255, 255, 255, .17); --hm-pill-hover: rgba(255, 255, 255, .12); }
/* The same glass pill as the header's centre, in css/site-nav.css. */
.hm-tabs { position: relative; display: flex; width: min(620px, 100%); padding: 6px; border: 1px solid var(--hm-pill-edge); border-radius: 999px; background: var(--hm-pill-glass); box-shadow: 0 10px 30px rgba(52, 28, 10, .16), inset 0 1px 0 var(--hm-pill-edge); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
.hm-tab { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border-radius: 999px; color: var(--hm-ink); font-size: .9375rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.hm-tab + .hm-tab { margin-left: 9px; }
.hm-tab + .hm-tab::before { content: ''; position: absolute; left: -5px; top: 13px; bottom: 13px; width: 1px; background: var(--hm-pill-line); }
.hm-tab svg { width: 20px; height: 20px; }
.hm-tab:not(.is-active):hover { background: var(--hm-pill-hover); }
.hm-tab.is-active { color: #fff; font-weight: 700; background: linear-gradient(135deg, #e84b19, #fc9b04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 16px rgba(255, 68, 0, .38); }
.hm-form { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px 13px 10px; border-radius: 20px; background: var(--hm-field); box-shadow: var(--hm-shadow); }
.hm-field { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding-inline: 14px; color: var(--hm-ink); }
.hm-field[hidden] { display: none; }
.hm-field:not(.hm-field--where)::before { content: ''; position: absolute; left: -6px; top: 8px; bottom: 8px; width: 1px; background: var(--hm-line); }
.hm-field > svg:first-child { flex: none; width: 19px; height: 19px; color: var(--hm-soft); }
.hm-field--where > svg:first-child { color: var(--orange); }
.hm-field input, .hm-field select { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; appearance: none; background: transparent; color: inherit; font: 600 1rem/1.2 var(--font); }
/* Shows once the city is cleared: what the location field is for. */
.hm-field input::placeholder { color: var(--hm-soft); font-weight: 500; opacity: 1; }
/* The × that empties the location field (js/places.js). */
.hm-clear { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--hm-soft); cursor: pointer; }
.hm-clear[hidden] { display: none; }
.hm-clear:hover { background: var(--hm-peach); color: var(--hm-ink); }
.hm-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hm-field--chips { gap: 6px; }
/* Several places at once (js/places.js, multiple): the first as a chip, "+2" for the rest. */
/* The typing space gives way to the chip until the field is in use. */
.hm-field--chips input { flex: 1 1 0; min-width: 0; }
.hm-field--chips input:focus { min-width: 56px; }
.hm-chips { display: flex; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; }
.hm-chips:empty { display: none; }
.hm-chip { display: inline-flex; flex: none; align-items: center; gap: 2px; min-width: 0; max-width: 100%; padding: 3px 3px 3px 10px; border: 1px solid var(--hm-line); border-radius: 999px; background: var(--hm-peach); color: var(--hm-ink); font: 600 .8125rem/1.2 var(--font); white-space: nowrap; }
.hm-chips .hm-chip { flex: 0 1 auto; padding: 3px 1px 3px 8px; font-size: .78rem; }
.hm-chips .hm-chip button { width: 18px; height: 18px; }
.hm-chip > span { overflow: hidden; text-overflow: ellipsis; }
.hm-chip button { flex: none; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--hm-soft); cursor: pointer; }
.hm-chip button:hover { background: var(--hm-line); color: var(--hm-ink); }
.hm-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hm-more { flex: none; height: 24px; padding: 0 7px; border: 1px solid var(--orange); border-radius: 999px; background: transparent; color: var(--orange); cursor: pointer; font: 700 .8125rem/1 var(--font); }
.hm-more:hover, .hm-more[aria-expanded="true"] { background: var(--orange); color: #fff; }
/* Every chosen place, opened from "+2". Placed like the suggestions. */
.hm-chosen { position: absolute; left: 0; top: calc(100% + 5px); z-index: 5; width: max(100%, 300px); padding: 10px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-field); box-shadow: var(--hm-shadow); text-align: left; }
.hm-chosen[hidden] { display: none; }
.hm-chosen__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--hm-soft); font: 600 .75rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; }
.hm-chosen__head button { padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--orange); cursor: pointer; font: 700 .8125rem/1.2 var(--font); text-transform: none; letter-spacing: 0; }
.hm-chosen__head button:hover { background: var(--hm-peach); }
.hm-chosen__list { display: flex; flex-wrap: wrap; gap: 6px; }
/* The select fills the whole control, icons included, so a click anywhere on it opens the list. */
.hm-field select { position: absolute; inset: 0; padding: 0 36px 0 43px; cursor: pointer; text-overflow: ellipsis; }
.hm-field option { background: var(--hm-field); color: var(--hm-ink); }
.hm-field__chev { position: absolute; right: 10px; width: 18px; height: 18px; pointer-events: none; }
.hm-field:focus-within { border-radius: 10px; outline: 2px solid var(--orange); outline-offset: -2px; }
/* Place suggestions. The hero must not clip this, so its photo does the clipping. */
.hm-suggest { position: absolute; left: 0; right: -60px; top: calc(100% + 5px); z-index: 5; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-field); box-shadow: var(--hm-shadow); list-style: none; text-align: left; }
.hm-suggest[hidden] { display: none; }
.hm-suggest__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--hm-ink); cursor: pointer; font-size: .9375rem; font-weight: 600; }
.hm-suggest__item:hover, .hm-suggest__item[aria-selected="true"] { background: var(--hm-peach); }
.hm-suggest__item small { flex: none; color: var(--hm-soft); font-size: .75rem; font-weight: 500; }
.hm-suggest__item small.is-soon { color: var(--orange); font-weight: 700; }
.hm-soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 12px; width: 100%; margin-top: 8px; padding: 9px 14px; border-radius: 10px; background: var(--hm-field); color: var(--hm-soft); font-size: .875rem; line-height: 1.4; box-shadow: var(--hm-shadow); }
.hm-soon[hidden] { display: none; }
.hm-soon strong { color: var(--hm-ink); font-size: .9375rem; font-weight: 700; }
.hm-soon a { color: var(--orange); font-weight: 700; text-underline-offset: 3px; }
.hm-go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding-inline: 28px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #e84b19, #fc9b04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 16px rgba(255, 68, 0, .38); color: #fff; cursor: pointer; font: 700 1rem/1 var(--font); white-space: nowrap; }
.hm-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hm-go:hover { filter: brightness(1.05); }

/* ── Trust strip ──────────────────────────────────────────────────────── */
.hm-trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; padding-block: 15px; border-radius: 14px; background: var(--hm-peach); list-style: none; }
.hm-trust li { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; padding-inline: 12px; }
.hm-trust li + li { border-left: 1px solid var(--hm-line); }
[data-theme="light"] .hm-trust li + li { border-left-color: #eadccd; }
.hm-trust svg { flex: none; width: 32px; height: 32px; color: var(--orange); stroke-width: 1.6; }
.hm-trust span { min-width: 0; color: var(--hm-soft); font-size: .8125rem; line-height: 1.35; }
.hm-trust strong { display: block; color: var(--hm-ink); font-size: 1rem; font-weight: 700; line-height: 1.3; }

/* ── Localities ───────────────────────────────────────────────────────── */
[data-theme="dark"] .hm-blog__image img, [data-theme="dark"] .hm-owner > img { filter: brightness(.82); }

/* ── Why Roomrr ────────────────────────────────────────────────────────
   One set of words, two layouts, as in the two mock-ups: cards beside the copy in
   light, and a row under the copy in dark. Each theme shows its own artwork. */
.hm-why { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) 276px; align-items: center; gap: 16px; min-height: 304px; overflow: hidden; padding: 20px 0 20px 34px; border-radius: 14px; background: #fcf1e8; }
.hm-why__copy { position: relative; z-index: 1; padding-bottom: 28px; }
.hm-why__eyebrow { color: var(--orange); font-size: .875rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.hm-why h2 { margin-top: 8px; color: var(--hm-ink); font-size: clamp(1.625rem, 2.1vw, 1.875rem); line-height: 1.15; letter-spacing: -.025em; }
.hm-why__sub { margin-top: 10px; color: var(--hm-soft); font-size: 1rem; line-height: 1.45; }
.hm-why__list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; }
.hm-why__list li { padding: 14px 14px 16px; border-radius: 14px; background: var(--hm-card); box-shadow: 0 6px 18px rgba(120, 72, 30, .07); }
.hm-why__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fde7d3; color: var(--orange); }
.hm-why__icon svg { width: 25px; height: 25px; }
.hm-why h3 { margin-top: 10px; color: var(--hm-ink); font-size: .9375rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.hm-why li p { margin-top: 6px; color: var(--hm-soft); font-size: .8125rem; line-height: 1.4; }
/* The whole picture, never cropped: the band is tall enough for the phone. */
.hm-why__art { position: absolute; right: 8px; top: 8px; width: 272px; height: calc(100% - 8px); object-fit: contain; object-position: right bottom; }
.hm-why__art--dark { display: none; }

/* The light-theme phone: drawn in HTML, not a picture, so its screen stays sharp
   and reads like the app. Purely decorative inside (aria-hidden); the wrapper's
   role="img" label carries the meaning. */
.hm-phone { display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.hm-phone__blob { position: absolute; right: 6px; bottom: -70px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fbd7b8, #f8c59c 70%); opacity: .75; }
.hm-phone__spark { position: absolute; left: 22px; top: 12px; width: 34px; height: 34px; color: var(--orange); stroke-width: 2.4; transform: rotate(-20deg); }
.hm-phone__device { position: relative; width: 172px; height: 318px; margin-bottom: -34px; padding: 6px; border-radius: 34px; background: linear-gradient(145deg, #2b2724, #131110); box-shadow: 0 0 0 1.5px #4a433d inset, 0 22px 40px rgba(110, 56, 18, .28), 0 4px 10px rgba(110, 56, 18, .16); transform: rotate(5deg); transform-origin: bottom center; }
.hm-phone__screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0 9px; border-radius: 28px; background: #fff; font-family: inherit; }
.hm-phone__status { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 2px 6px 0; color: #191919; font-size: 8px; font-weight: 700; }
.hm-phone__island { width: 44px; height: 13px; border-radius: 99px; background: #131110; }
.hm-phone__bars { display: flex; align-items: flex-end; gap: 1.5px; height: 7px; }
.hm-phone__bars b { width: 2.5px; border-radius: 1px; background: #191919; }
.hm-phone__bars b:nth-child(1) { height: 3px; } .hm-phone__bars b:nth-child(2) { height: 5px; } .hm-phone__bars b:nth-child(3) { height: 7px; }
.hm-phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 1px 7px; }
.hm-phone__logo { display: inline-flex; align-items: center; color: #191919; font-size: 13px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hm-phone__logo img { width: 21px; height: auto; margin: 0 .5px; }
.hm-phone__fav { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fdf0e6; color: var(--orange); }
.hm-phone__fav svg { width: 11px; height: 11px; stroke-width: 2.2; }
.hm-phone__photo { position: relative; height: 104px; flex: none; overflow: hidden; border-radius: 13px; background: #f4e6da; }
.hm-phone__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hm-phone__badge { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px 3px 4px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: #1a7f4b; font-size: 7.5px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.hm-phone__badge svg { width: 10px; height: 10px; stroke-width: 2.4; }
.hm-phone__dots { position: absolute; left: 50%; bottom: 6px; display: flex; gap: 3px; transform: translateX(-50%); }
.hm-phone__dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.hm-phone__dots i:first-child { width: 10px; border-radius: 99px; background: #fff; }
.hm-phone__body { display: flex; flex-direction: column; gap: 5px; padding: 8px 2px 0; }
.hm-phone__title { color: #191919; font-size: 11.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.hm-phone__place { display: flex; align-items: center; gap: 3px; color: #6b7080; font-size: 8px; }
.hm-phone__place svg { width: 9px; height: 9px; color: var(--orange); stroke-width: 2.2; }
.hm-phone__chips { display: flex; gap: 4px; margin-top: 1px; }
.hm-phone__chips em { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 99px; background: #f6f1ec; color: #3f4557; font-size: 7.5px; font-style: normal; font-weight: 600; }
.hm-phone__chips svg { width: 9px; height: 9px; stroke-width: 2; }
.hm-phone__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding-top: 7px; border-top: 1px solid #f2e7dc; }
.hm-phone__rent { color: #191919; font-size: 12.5px; font-weight: 800; letter-spacing: -.02em; }
.hm-phone__rent small { margin-left: 1px; color: #6b7080; font-size: 7.5px; font-weight: 500; }
.hm-phone__cta { display: inline-flex; align-items: center; gap: 3px; padding: 5px 9px; border-radius: 99px; background: var(--grad-brand, linear-gradient(90deg, #e8562a, #f39020)); color: #fff; font-size: 8px; font-weight: 700; box-shadow: 0 3px 8px rgba(232, 86, 42, .32); }
.hm-phone__cta svg { width: 9px; height: 9px; stroke-width: 2.2; }
.hm-phone__match { position: absolute; left: 0; top: 96px; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 7px 10px 7px 7px; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(110, 56, 18, .18); transform: rotate(-3deg); }
.hm-phone__faces { display: flex; }
.hm-phone__faces i { display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: #f39020; color: #fff; font-size: 8px; font-style: normal; font-weight: 800; }
.hm-phone__faces i + i { margin-left: -7px; background: #e8562a; }
.hm-phone__match strong { display: block; color: #1a7f4b; font-size: 10.5px; font-weight: 800; line-height: 1.1; }
.hm-phone__match small { display: block; margin-top: 1px; color: #6b7080; font-size: 7.5px; white-space: nowrap; }
.hm-why__city { position: absolute; left: 0; bottom: 0; width: 370px; height: auto; pointer-events: none; }

[data-theme="dark"] .hm-why { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto; gap: 14px 0; min-height: 250px; padding: 26px 0 22px 34px; border: 1px solid var(--hm-line); background: linear-gradient(100deg, #231c16, #1b140f); }
[data-theme="dark"] .hm-why__eyebrow, [data-theme="dark"] .hm-why__city, [data-theme="dark"] .hm-why__art--light { display: none; }
[data-theme="dark"] .hm-why__copy { padding-bottom: 0; }
[data-theme="dark"] .hm-why h2 { margin-top: 0; }
[data-theme="dark"] .hm-why h2 span { color: #ef8000; }
[data-theme="dark"] .hm-why__sub { margin-top: 6px; color: #d9d3cb; }
[data-theme="dark"] .hm-why__list { grid-column: 1; gap: 0; }
[data-theme="dark"] .hm-why__list li { display: flex; align-items: flex-start; gap: 12px; padding: 2px 14px; border: 0; border-radius: 0; background: none; box-shadow: none; }
[data-theme="dark"] .hm-why__list li + li { border-left: 1px solid var(--hm-line); }
[data-theme="dark"] .hm-why__list li:first-child { padding-left: 0; }
[data-theme="dark"] .hm-why__icon { flex: none; width: 46px; height: 46px; background: #3a2619; color: #ef8000; }
[data-theme="dark"] .hm-why h3 { margin-top: 0; }
[data-theme="dark"] .hm-why li p { margin-top: 4px; color: #bdb6ac; font-size: .75rem; }
[data-theme="dark"] .hm-why__art--dark { display: block; right: 0; top: 0; width: 360px; height: 100%; object-position: right bottom; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%); mask-image: linear-gradient(to right, transparent, #000 14%); }

/* ── Latest blog ──────────────────────────────────────────────────────── */
.hm-blog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-card); }
.hm-blog__image { display: block; min-height: 300px; overflow: hidden; }
.hm-blog__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hm-blog:hover .hm-blog__image img { transform: scale(1.03); }
.hm-blog__body { display: flex; flex-direction: column; justify-content: center; padding: 28px 36px; }
.hm-blog__label { color: var(--orange); font-size: .8125rem; font-weight: 700; }
.hm-blog h2 { margin-top: 8px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.2; }
.hm-blog h2 a { color: inherit; text-decoration: none; }
.hm-blog h2 a:hover { color: var(--orange); }
.hm-blog__body > p:not(.hm-blog__label):not(.hm-blog__by) { margin-top: 10px; color: var(--hm-soft); font-size: .9375rem; line-height: 1.55; }
.hm-blog__by { margin-block: 10px 16px; color: var(--hm-soft); font-size: .8125rem; }
.hm-blog__by a { color: var(--hm-ink); font-weight: 600; text-underline-offset: 3px; }

/* ── Sections after the mock-up: same scale, same colours ─────────────── */
#why-roomrr, #how-it-works, #find-roommate, #find-tenant, #waitlist, #latest-blog, #faq, .hm-popular { margin-top: 40px; }
#friends { scroll-margin-top: 76px; }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; background: var(--grad-brand); color: #fff; font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-btn:hover { filter: brightness(1.05); color: #fff; }
.hm-btn--line { border: 1px solid var(--orange); background: transparent; color: var(--orange); }
.hm-btn--line:hover { background: var(--orange); }
.hm-link { color: var(--orange); font-size: .9375rem; font-weight: 600; text-underline-offset: 3px; }
.hm-note { margin-top: 8px; color: var(--hm-soft); font-size: .8125rem; line-height: 1.45; }
main a:focus-visible, .hm-go:focus-visible, .qa summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 8px; }

/* ── Places ───────────────────────────────────────────────────────────────
   Built for a full city: js/home.js filters, sorts and pages the rows here, 8 at a
   time. The API sends up to 100 a city, and says when it cut any off. */
.hm-places__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hm-places__view { display: flex; align-items: center; gap: 12px; flex: none; }
.hm-places__view[hidden], .hm-filters[hidden] { display: none; }
html:not(.js) .hm-places__view, html:not(.js) .hm-filters, html:not(.js) .hm-places { display: none; }
.rooms__city { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--hm-soft); font-size: .9375rem; font-weight: 600; }
.rooms__city svg { flex: none; width: 17px; height: 17px; color: var(--orange); }
.hm-pick { position: relative; display: flex; align-items: center; gap: 9px; height: 44px; padding-inline: 14px 12px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-peach); color: var(--hm-ink); cursor: pointer; }
.hm-pick:hover { border-color: var(--orange); }
.hm-pick:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.hm-pick > svg:first-child { flex: none; width: 19px; height: 19px; }
.hm-pick select { position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: calc(100% + 2px); padding: 0 32px 0 43px; border: 0; outline: 0; appearance: none; background: transparent; color: inherit; cursor: pointer; font: 600 .9375rem/1.2 var(--font); text-overflow: ellipsis; }
.hm-pick option { background: var(--hm-field); color: var(--hm-ink); }
.hm-pick__chev { position: absolute; right: 10px; width: 17px; height: 17px; pointer-events: none; }
.hm-pick--sort { flex: none; width: 200px; background: var(--hm-card); }
.hm-pick--sort select { padding-left: 15px; }
.hm-filters { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.hm-filters .hm-pick { flex: 1 1 0; min-width: 0; }

.rooms__status { margin-top: 16px; color: var(--hm-soft); font-weight: 500; }
.rooms__status:empty { display: none; }
.rooms__status.is-panel { display: grid; place-content: center; padding: 20px; text-align: center; border: 1px dashed var(--hm-line); border-radius: 10px; }
.rooms__status a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.hm-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; list-style: none; }
.hm-places:empty { display: none; }
.place { position: relative; min-width: 0; }
.place__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 12px; background: var(--hm-card); color: var(--hm-ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.place__link:hover { border-color: var(--orange); box-shadow: 0 8px 22px rgba(80, 44, 14, .1); }
.place__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hm-peach); }
.place__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .place__media.is-default img { filter: brightness(.82); }
.place__kind { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 64px); padding: 4px 10px 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .95); color: #191919; font-size: .8125rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place__kind svg { flex: none; width: 15px; height: 15px; color: var(--orange); }
.place__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; }
.place__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.place__dots i:first-child { background: #fff; }
.place__save { position: absolute; right: 10px; top: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #191919; cursor: pointer; }
.place__save svg { width: 21px; height: 21px; }
.place__save[aria-pressed="true"] { color: var(--orange); }
.place__save[aria-pressed="true"] svg { fill: currentColor; }
.place__save:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.place__body { display: flex; flex-direction: column; flex: 1; gap: 5px; padding: 12px 14px 14px; }
.place__title { overflow: hidden; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.place__where { display: flex; align-items: center; gap: 6px; color: var(--hm-soft); font-size: .875rem; line-height: 1.35; }
.place__where svg { flex: none; width: 16px; height: 16px; color: var(--orange); }
.place__flag { color: var(--orange); font-size: .8125rem; font-weight: 600; }
.place__rent { margin-top: 2px; color: var(--hm-soft); font-size: .875rem; }
.place__rent strong { color: var(--hm-ink); font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.place__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.place__chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--hm-line); border-radius: 8px; color: var(--hm-ink); font-size: .75rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.place__chip svg { flex: none; width: 15px; height: 15px; stroke-width: 1.6; }
.place--ghost { display: grid; gap: 8px; }
.place--ghost .place__media, .place--ghost .place__body { border-radius: 12px; background: var(--hm-peach); }
.place--ghost .place__body { min-height: 7.5rem; }
.hm-places__none { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 36px 20px; border: 1px dashed var(--hm-line); border-radius: 12px; color: var(--hm-ink); text-align: center; }
.hm-places__none button { padding: 8px 16px; border: 1px solid var(--orange); border-radius: 10px; background: transparent; color: var(--orange); cursor: pointer; font: 600 .875rem/1.2 var(--font); }
.hm-places__none a { padding: 8px 16px; border: 1px solid var(--orange); border-radius: 10px; background: transparent; color: var(--orange); font: 600 .875rem/1.2 var(--font); text-decoration: none; }


.hm-pages { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 20px; }
.hm-pages[hidden] { display: none; }
.hm-pages button { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-card); color: var(--hm-ink); cursor: pointer; font: 600 .9375rem/1 var(--font); }
.hm-pages button svg { width: 17px; height: 17px; stroke-width: 2.2; }
.hm-pages button.is-back svg { transform: rotate(180deg); }
.hm-pages button:not(:disabled):hover { border-color: var(--orange); color: var(--orange); }
.hm-pages button[aria-current="page"] { border-color: transparent; background: var(--grad-brand); color: #fff; }
.hm-pages button:disabled { opacity: .45; cursor: default; }
.hm-pages button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hm-pages__gap { min-width: 22px; color: var(--hm-soft); text-align: center; }

/* How it works, compatibility and owners share one warm panel, from the mock-up. */
.hm-flow { margin-top: 40px; padding-block: 34px 44px; background: linear-gradient(180deg, transparent, var(--hm-flow) 56px, var(--hm-flow) calc(100% - 56px), transparent); }
.hm-flow > .hm-sec:first-child { margin-top: 0; }
.hm-sec .hm-howtitle { position: relative; padding-right: 30px; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: 800; }
.hm-howtitle svg { position: absolute; top: -10px; right: 0; width: 26px; height: 26px; color: var(--orange); stroke-width: 2.6; }

.hm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; }
.hm-steps li { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: start; gap: 18px; padding: 22px 24px; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-card); box-shadow: var(--hm-lift); counter-increment: step; scroll-margin-top: 76px; }
.hm-step__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-top: 16px; border-radius: 14px; background: var(--hm-peach); color: var(--orange); }
.hm-step__icon svg { width: 32px; height: 32px; stroke-width: 1.6; }
.hm-steps h3 { display: flex; align-items: center; gap: 9px; color: var(--hm-ink); font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.hm-steps h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-peach); color: var(--orange); font-size: .875rem; font-weight: 700; }
.hm-steps p { margin-top: 8px; color: var(--hm-body); font-size: .9375rem; line-height: 1.5; }

.hm-band { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 16px 40px; padding: 24px 26px; border-radius: 10px; background: var(--hm-peach); }
.hm-band p:not(.hm-note) { margin-top: 6px; color: var(--hm-soft); font-size: .9375rem; line-height: 1.5; }
.hm-band--city .hm-actions { justify-content: flex-end; }
.hm-band--match { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.7fr) minmax(max-content, .98fr); align-items: stretch; gap: 0; overflow: hidden; padding: 0; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-glow); }
.hm-band__art { align-self: end; display: block; width: 100%; height: auto; padding: 12px 6px 0 12px; }
.hm-band__copy, .hm-band--match .hm-actions { position: relative; display: flex; flex-direction: column; justify-content: center; }
.hm-band__copy { padding: 26px 34px; }
.hm-band__copy::before, .hm-band--match .hm-actions::before { content: ""; position: absolute; top: 26px; bottom: 26px; left: 0; width: 1px; background: rgba(214, 150, 104, .32); }
.hm-band--match h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: 800; line-height: 1.15; text-wrap: balance; }
.hm-band--match p:not(.hm-note) { margin-top: 8px; color: var(--hm-body); }
.hm-band--match .hm-note { margin-top: 12px; }
.hm-band--match .hm-actions { align-items: stretch; gap: 12px; padding: 26px 24px; }
.hm-band--match .hm-btn { min-height: 50px; padding-inline: 14px; border-radius: 12px; text-align: center; }
.hm-band--match .hm-btn:not(.hm-btn--line) { font-size: 1rem; }
.hm-band--match .hm-btn--line { background: var(--hm-card); }
.hm-band--match .hm-btn--line:hover { background: var(--orange); color: #fff; }
.hm-link--go { display: inline-flex; align-items: center; gap: 8px; }
.hm-link--go svg { flex: none; width: 18px; height: 18px; stroke-width: 2; transition: transform .16s ease; }
.hm-link--go:hover svg { transform: translateX(3px); }
.hm-band--match .hm-link--go { align-self: flex-start; white-space: nowrap; }
.hm-cities { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hm-cities a { display: inline-block; padding: 6px 13px; border: 1px solid var(--hm-line); border-radius: 999px; background: var(--hm-card); color: var(--hm-ink); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.hm-cities a:hover, .hm-cities a.is-live { border-color: var(--orange); color: var(--orange); }

.hm-owner { display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-card); box-shadow: var(--hm-lift); }
.hm-owner > img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: 60% center; }
.hm-owner__body { align-self: center; padding: 28px 40px; }
.hm-owner h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: 800; }
.hm-owner__body > p:not(.hm-note) { margin-block: 10px 20px; color: var(--hm-body); font-size: .9375rem; line-height: 1.55; }
.hm-owner .hm-btn { min-width: 200px; min-height: 48px; border-radius: 12px; font-size: 1rem; }
.hm-note--info { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.hm-note--info svg { flex: none; width: 16px; height: 16px; stroke-width: 2; }

.hm-flow > #faq { margin-top: 0; }
.qa__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; }
.qa__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--orange) 13%, transparent); color: var(--orange); font-size: .875rem; font-weight: 600; }
.qa__pill svg { width: 20px; height: 20px; stroke-width: 2; }
.hm-sec.qa h2 { margin-top: 14px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.qa__lead { margin-top: 12px; color: var(--hm-body); font-size: 1rem; line-height: 1.55; }
.qa__lead a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.qa__art { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 18px; }
.qa__list { display: grid; align-content: start; gap: 12px; padding-top: 8px; }
.qa details { border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-card); box-shadow: var(--hm-lift); transition: border-color .15s ease; }
.qa details:hover, .qa details[open] { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: var(--hm-glow); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 24px; color: var(--hm-ink); cursor: pointer; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
/* A drawn plus, so the bars stay crisp and the upright one can collapse into a minus. */
.qa summary::after { content: ''; flex: none; width: 20px; height: 20px; background: linear-gradient(var(--orange), var(--orange)) center / 100% 2.5px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 2.5px 100% no-repeat; transition: background-size .15s ease; }
.qa details[open] summary::after { background-size: 100% 2.5px, 2.5px 0; }
.qa details p { padding: 0 24px 18px; color: var(--hm-body); font-size: .9375rem; line-height: 1.6; }

.hm-sec.hm-popular { margin-top: 32px; }
.hm-popular__panel { margin-inline: -20px; padding: 24px 20px 26px; border-radius: 22px; background: var(--hm-pop); }
.hm-sec.hm-popular h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); font-weight: 800; }
.hm-popular__tile { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--orange) 13%, transparent); color: var(--orange); }
.hm-popular__tile svg { width: 26px; height: 26px; stroke-width: 2; }
.hm-popular ul { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 20px; list-style: none; }
.hm-popular a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 21px 8px 18px; border: 1px solid var(--hm-line); border-radius: 999px; background: var(--hm-card); box-shadow: var(--hm-lift); color: var(--hm-ink); font-size: .9375rem; font-weight: 600; line-height: 1.25; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.hm-popular a svg { flex: none; width: 21px; height: 21px; color: var(--orange); stroke-width: 1.9; }
.hm-popular a:hover { border-color: color-mix(in srgb, var(--orange) 45%, transparent); color: var(--orange); }
main .hm-popular a:focus-visible { border-radius: 999px; }
.footer .container { max-width: calc(1372px + 2 * var(--hm-gut)); padding-inline: var(--hm-gut); }

/* A laptop: narrow cards and a phone that still shows whole. */
@media (max-width: 1400px) {
  .hm-why { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr) 256px; gap: 12px; padding-left: 28px; }
  .hm-why__list { gap: 10px; }
  .hm-why__list li { padding: 12px; }
  .hm-why h2 { font-size: 1.5625rem; white-space: nowrap; }
  .hm-why h3 { font-size: .875rem; }
  .hm-why__sub { font-size: .9375rem; }
  .hm-why__art { width: 252px; }
  [data-theme="dark"] .hm-why { grid-template-columns: minmax(0, 1fr) 296px; }
  [data-theme="dark"] .hm-why__art--dark { width: 330px; }
}

/* Keeps the three-column compatibility headline to two lines. */
@media (min-width: 1241px) and (max-width: 1519px) {
  .hm-band--match h2 { font-size: 1.75rem; }
}

/* The people in the Roommates photo would run under the headline, so on both pages
   the photo goes on top. */
@media (max-width: 1100px) {
  .hm-hero { display: block; min-height: 0; }
  .hm-hero__photo { position: relative; z-index: 0; aspect-ratio: 1400 / 430; border-radius: 0; }
  .hm-hero__photo::after, [data-theme="dark"] .hm-hero__photo::after { inset: 40% 0 0; background: linear-gradient(to bottom, transparent, var(--hm-bg)); }
  .hm-hero__photo img { object-position: center top; }
  .hm-hero__inner { gap: 18px; padding-top: 6px; }
  .hm-hero h1 { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.125rem); }
  .hm-hero__sub { max-width: none; }
  /* All three headlines keep the same number of lines at every width, so the tabs stay put
     between Rent, Roommates and Partner. One line down to 581px, then two, sized to the
     longest (Rent). Change these together with the wording. */
  @media (min-width: 581px) and (max-width: 899px) { .hm-hero h1 { font-size: min(clamp(2.25rem, 1.5rem + 2vw, 3.125rem), calc((100vw - 64px) / 18.8)); } }
  @media (max-width: 580px) { .hm-hero h1 { max-width: 13.5em; } }
  @media (max-width: 520px) { .hm-hero__sub { max-width: 24em; } }
  @media (max-width: 389px) { .hm-hero h1 { font-size: calc((100vw - 32px) / 10.7); } }
}

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .hm-hero__copy { padding-left: 0; }
  .hm-trust li { gap: 10px; padding-inline: 8px; }
  .hm-trust svg { width: 26px; height: 26px; }
  .hm-trust span { font-size: .75rem; }
  .hm-trust strong { font-size: .9375rem; }
  .hm-why, [data-theme="dark"] .hm-why { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; padding: 20px 24px; }
  .hm-why__list li { padding: 14px; }
  .hm-why h3 { font-size: .9375rem; }
  .hm-why h2 { font-size: 1.75rem; }
  .hm-why__copy, [data-theme="dark"] .hm-why__copy { min-height: 270px; padding: 0 270px 0 0; align-self: center; }
  [data-theme="dark"] .hm-why__copy { min-height: 170px; }
  .hm-why__list, [data-theme="dark"] .hm-why__list { grid-column: 1; grid-row: 2; }
  .hm-why__art { top: 12px; width: 252px; height: 270px; }
  [data-theme="dark"] .hm-why__art--dark { top: 0; width: 330px; height: 174px; }
  .hm-why__city { display: none; }
  .hm-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-filters { flex-wrap: wrap; }
  .hm-filters .hm-pick { flex: 1 1 150px; }
  /* Below this the actions column leaves the copy too narrow, so they move under it. */
  .hm-band--match { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .hm-band--match .hm-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 16px; }
  .hm-band--match .hm-actions .hm-btn { flex: 1 1 260px; }
  .hm-band--match .hm-link--go { flex-basis: 100%; }
  .hm-band--match .hm-actions::before { display: none; }
}
@media (max-width: 1000px) {
  .hm-trust { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .hm-trust li:nth-child(odd) { border-left: 0; }
  .hm-why__list, [data-theme="dark"] .hm-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  [data-theme="dark"] .hm-why__list li, [data-theme="dark"] .hm-why__list li:first-child { padding: 2px 0; }
  [data-theme="dark"] .hm-why__list li + li { border-left: 0; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-step__icon { margin-top: 0; }
  .hm-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hm-places__head { flex-direction: column; }
  .hm-places__view { width: 100%; }
  .hm-blog { grid-template-columns: minmax(0, 1fr); }
  .hm-blog__image { min-height: 0; aspect-ratio: 16 / 9; }
  .hm-blog__body { padding: 20px; }
  .hm-band:not(.hm-band--match), .qa__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-band--city .hm-actions { justify-content: flex-start; }
  .hm-owner__body { padding: 24px 28px; }
  .qa__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 24px; }
  .qa__art { margin-top: 0; }
  .hm-popular__panel { margin-inline: -8px; padding-inline: 8px; }
}

/* ── Phone: the search stacks ─────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --hm-gut: 16px; }
  .hm-hero__inner { padding-inline: 16px; }
  .hm-tabs { width: 100%; padding: 4px; }
  .hm-tab { gap: 6px; min-height: 44px; font-size: .875rem; }
  .hm-tab + .hm-tab { margin-left: 5px; }
  .hm-tab + .hm-tab::before { left: -3px; }
  .hm-tab svg { width: 18px; height: 18px; }
  .hm-form { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 10px 12px; border-radius: 0 0 16px 16px; }
  .hm-field { flex: none; height: 44px; }
  .hm-field:not(.hm-field--where)::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .hm-go { height: 44px; margin-top: 8px; }
  .hm-trust { row-gap: 14px; padding-block: 14px; }
  .hm-trust li { align-items: flex-start; justify-content: flex-start; gap: 8px; padding-inline: 12px 6px; }
  .hm-trust li + li { border-left: 0; }
  .hm-trust svg { width: 22px; height: 22px; }
  .hm-trust span { font-size: .75rem; }
  .hm-trust strong { font-size: .8125rem; }
  .hm-places { grid-template-columns: minmax(0, 1fr); }
  .hm-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .hm-filters::-webkit-scrollbar { display: none; }
  .hm-filters .hm-pick { flex: 0 0 auto; width: 150px; }
  .hm-filters .hm-pick:first-child { width: 186px; }
  .hm-pick--sort { flex: 1; width: auto; min-width: 0; }
  .hm-pages { justify-content: center; }
  .hm-owner { grid-template-columns: 1fr; }
  .hm-owner > img { min-height: 0; height: 190px; object-position: center; }
  .hm-owner__body { padding: 18px; }
  .hm-band { padding: 18px; }
  .hm-band--match { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .hm-band__art { justify-self: center; max-width: 340px; padding: 16px 16px 0; }
  .hm-band__copy { padding: 20px 18px 8px; }
  .hm-band__copy::before { display: none; }
  .hm-band--match .hm-actions { flex-direction: column; align-items: stretch; padding: 12px 18px 20px; }
  .hm-band--match .hm-actions .hm-btn { flex: none; }
  .hm-band--match .hm-link--go { flex-basis: auto; white-space: normal; }
  .hm-steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .hm-step__icon { width: 48px; height: 48px; }
  .hm-step__icon svg { width: 26px; height: 26px; }
  .hm-flow { padding-block: 16px 28px; }
  .hm-note--info { align-items: flex-start; }
  .qa__intro { grid-template-columns: minmax(0, 1fr); }
  .qa__art { justify-self: center; max-width: 250px; }
  .qa summary { min-height: 56px; padding: 12px 16px; font-size: 1rem; }
  .qa details p { padding: 0 16px 16px; }
  .hm-popular__panel { padding: 18px 8px 20px; border-radius: 18px; }
  .hm-popular ul { gap: 8px; margin-top: 16px; }
  .hm-popular a { gap: 7px; min-height: 44px; padding-inline: 11px 13px; font-size: .8125rem; }
  .hm-popular a svg { width: 18px; height: 18px; }
  .hm-actions .hm-btn { flex: 1 1 100%; padding: 8px 14px; white-space: normal; text-align: center; }
  .hm-suggest { right: 0; }
  .hm-why, [data-theme="dark"] .hm-why { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .hm-why h2 { font-size: 1.625rem; white-space: normal; }
  .hm-why__copy, [data-theme="dark"] .hm-why__copy { min-height: 0; padding: 0; }
  .hm-why__list, [data-theme="dark"] .hm-why__list { gap: 10px; }
  .hm-why__list li { padding: 12px; }
  .hm-why__art { position: static; width: 100%; height: 320px; margin-bottom: -10px; object-position: center bottom; }
  .hm-phone { position: relative; height: 300px; margin-bottom: -18px; overflow: hidden; }
  .hm-phone__blob { right: auto; left: 50%; transform: translateX(-50%); }
  .hm-phone__match { left: calc(50% - 150px); }
  .hm-phone__spark { left: calc(50% - 120px); }
  [data-theme="dark"] .hm-why__art--dark { position: static; width: calc(100% + 32px); height: auto; margin: 0 -16px -18px; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 360px) {
  .hm-tab { gap: 4px; font-size: .8125rem; }
  .hm-tab svg { display: none; }
}
