:root {
  --accent: var(--steel, #4e7191);
  --text: #2b3f54;
  --muted: #2b3f54;
  --border: var(--steel_extralight, #D2DAE1);
  --bg: #ffffff;
  --bg-soft: var(--highlight_dim, #F3F5F8);
  --card: #ffffff;
  --card_dimmed: rgba(255, 255, 255, 0.92);
  --radius: 2px;
  --space: 1.5rem;
  --max: 720px;
  --wide: 1120px;
  --footer-height: 3.5rem;
  --base_color: #fe5457;
  --steel: #4e7191;
  --green: #52B1B1;
  --steel_dark: #405366;
  --steel_light: #b6c5d4;
  --steel_extralight: #D2DAE1;
  --highlight: #387CC4;
  --highlight_dim: #F3F5F8;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Don't block first paint on Prata (vendor uses font-display: block) */
@font-face {
  font-family: 'Prata';
  src:
    url('../vendor/g-estates/fonts/prata/fonts/Prata-Regular.woff2') format('woff2'),
    url('../vendor/g-estates/fonts/prata/fonts/Prata-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--footer-height);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: NunitoSans, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.funnel-main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: NunitoSans, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  font-feature-settings: "liga" on;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
  /* font-family: Prata, Georgia, serif; */
}

h1.fancy, h2.fancy, h3.fancy, .section-header h1 {
  font-family: Prata, Georgia, serif;
}

.container {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space);
}

.container.narrow { max-width: var(--max); }

/* Content column matches results / personalized matches width (header stays full-bleed) */
.funnel-page .funnel-main .container,
.funnel-page .funnel-main .container.narrow,
.funnel-page .site-footer .container {
  max-width: var(--wide);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0.85rem var(--space);
  box-sizing: border-box;
  background: transparent;
  background-color: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Leave (height → 0): 4× faster */
  transition:
    height 0.1125s ease,
    border-color 0.1125s ease;
}

.site-header.is-scrolled {
  background: transparent;
  background-color: transparent;
}

.site-header.is-scrolled::before {
  height: 100%;
  border-bottom-color: var(--border);
  transition:
    height 0.45s ease,
    border-color 0.45s ease;
}

/* Wide screens: logo/menu sit outside the content column — no frosted bar needed */
@media (min-width: 1501px) {
  .site-header.is-scrolled::before {
    height: 0;
    border-bottom-color: transparent;
    transition:
      height 0.1125s ease,
      border-color 0.1125s ease;
  }
}

.site-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-header-end {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}

.site-header-inner > .brand {
  position: relative;
  z-index: 2;
}

.site-header-status-clip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header-status {
  margin: 0;
  max-width: min(52vw, 28rem);
  padding: 0 0.5rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: balance;
  transform: translateY(-80px);
  transition: transform 0.5s ease, color 0.25s ease, background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

html[data-viewport]:not([data-viewport=""]) .site-header-status {
  transform: translateY(0);
}

html[data-viewport="hero"] .site-header-status,
html[data-viewport="hero"] .site-header-status-line::before {
  color: #fff;
}

.site-header.is-scrolled .site-header-status,
.site-header.is-scrolled .site-header-status-line::before,
html[data-viewport="hero"] .site-header.is-scrolled .site-header-status,
html[data-viewport="hero"] .site-header.is-scrolled .site-header-status-line::before {
  color: var(--text);
}

.site-header-status-line[data-l10n] {
  display: none;
}

html[data-header-copy="looking"] .site-header-status-line--looking[data-l10n],
html[data-header-copy="shortlist"] .site-header-status-line--shortlist[data-l10n] {
  display: inline;
}

html:not([data-header-copy="looking"]):not([data-header-copy="shortlist"]) .site-header-status,
html:not([data-header-copy="looking"]):not([data-header-copy="shortlist"]) .site-header-status-clip {
  visibility: hidden;
  pointer-events: none;
}

html:not([data-header-copy="looking"]):not([data-header-copy="shortlist"]) .site-header-status-clip {
  display: none;
}

@media (max-width: 720px) {
  .site-header-end {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.55rem;
  }

  .site-header-status-clip {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .site-header-status {
    max-width: 100%;
    padding: 0;
    font-size: 0.68rem;
    text-align: right;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.site-header.is-scrolled .site-header-status-clip {
  overflow: visible;
}

.site-header.is-scrolled .site-header-status {
  background: var(--bg-soft);
  padding: 6px 15px;
  border-radius: 999px;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(43, 63, 84, 0.16);
  overflow: visible;
}

.site-header.is-status-suppressed .site-header-status,
html[data-viewport] .site-header.is-status-suppressed .site-header-status {
  transform: translateY(-80px);
  opacity: 0;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
  padding: 0 0.5rem;
}

.site-header.is-status-suppressed .site-header-status-clip {
  visibility: hidden;
}

@media (max-width: 720px) {
  .site-header.is-status-suppressed .site-header-status-clip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-status {
    transition: color 0.2s ease, background-color 0.2s ease;
  }
}

/* —— Site nav (hamburger popover) —— */
.site-nav {
  position: relative;
  z-index: 1100;
}

.site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.funnel-page--snap .site-header:not(.is-scrolled) .site-nav-toggle {
  color: #fff;
}

.site-header.is-scrolled .site-nav-toggle {
  color: var(--accent);
}

.site-nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.25rem;
}

.site-nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .site-nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav-burger span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 1200;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(20, 28, 36, 0.16);
  box-sizing: border-box;
}

.site-nav-panel[hidden] {
  display: none !important;
}

.site-nav-view[hidden] {
  display: none !important;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 10px 10px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.site-nav-list > li {
  margin-bottom:-10px;
}

.site-nav-list > li.site-nav-sep {
  margin-top: calc(0.35rem + 10px);
  margin-bottom: -10px;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.site-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.site-nav-item:hover {
  background: var(--highlight_dim, #F3F5F8);
}

.site-nav-item-main {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.site-nav-item-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav-chevron {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  opacity: 0.75;
}

.site-nav-view-head {
  margin-bottom: 0.15rem;
}

.site-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.site-nav-back:hover {
  background: var(--highlight_dim, #F3F5F8);
}

.site-nav-back-chevron {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.site-nav-check {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.site-nav-item.is-active .site-nav-check,
.lang-switch-option.is-active .site-nav-check {
  opacity: 1;
}

.site-nav .lang-flag,
.lang-flag {
  flex-shrink: 0;
  display: block;
  width: 1.5rem;
  height: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-flag--en { background-image: url(../img/flags/en.svg); }
.lang-flag--hu { background-image: url(../img/flags/hu.svg); }
.lang-flag--de { background-image: url(../img/flags/de.svg); }
.lang-flag--fr { background-image: url(../img/flags/fr.svg); }
.lang-flag--nl { background-image: url(../img/flags/nl.svg); }
.lang-flag--da { background-image: url(../img/flags/da.svg); }
.lang-flag--no { background-image: url(../img/flags/no.svg); }
.lang-flag--sv { background-image: url(../img/flags/sv.svg); }

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
}

.brand-logo--negative {
  display: none;
}

/* Over dark hero: negative logo until scrolled */
.funnel-page--snap .site-header:not(.is-scrolled) .brand-logo--positive {
  display: none;
}

.funnel-page--snap .site-header:not(.is-scrolled) .brand-logo--negative {
  display: block;
}

.brand-text {
  font-family: NunitoSans, system-ui, sans-serif;
  font-weight: 600;
  color: var(--accent);
}

.section {
  padding: 1rem 0 1rem 0;
}

/* Full-viewport snap hero */
html.funnel-snap-root {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.funnel-page--snap .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
}

.funnel-main.funnel-snap {
  /* document scroll + snap; main stays normal flow */
}

.hero-panel {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--footer-height));
  height: calc(100dvh - var(--footer-height));
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #111;
  padding: 0rem var(--space) 4.5rem;
  box-sizing: border-box;
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-media-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0.35;
  pointer-events: none;
}

.hero-copy-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-panel h1 {
  font-family: Prata, Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.hero-panel .subtitle {
  font-size: clamp(1.15rem, 2.6vw, 2.3rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

/* Hide hero copy until typewriter prepares — avoids full-text → clear → retype flash */
.hero-panel.js-tw h1:not(.tw-prepared),
.hero-panel.js-tw .subtitle:not(.tw-prepared) {
  opacity: 0;
}
.hero-panel.js-tw h1.tw-prepared,
.hero-panel.js-tw .subtitle.tw-prepared {
  opacity: 1;
}

/* Typing effect uses .tw-char opacity; keep the heading visible if JS/assets stall. */

.hero-panel .tw-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-panel .tw-char {
  opacity: 0;
  position: relative;
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
}

.hero-panel .tw-char.tw-space {
  white-space: pre;
}

.hero-panel .tw-char.tw-kern-yo {
  margin-left: -0.05em;
}

.hero-panel .tw-char.is-on {
  opacity: 1;
}

.hero-panel .tw-char.is-caret::after {
  content: "";
  position: absolute;
  left: calc(100% + 0.05em);
  top: var(--tw-caret-top, 0.14em);
  width: 0.08em;
  height: var(--tw-caret-h, 0.7em);
  background: currentColor;
  animation: thanks-caret 0.8s steps(1) infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel .tw-char {
    opacity: 1;
  }

  .hero-panel .tw-char.is-caret::after {
    content: none;
    animation: none;
  }
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero-scroll-mouse {
  font-size: 2rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.hero-scroll-arrow {
  font-size: 2.1rem;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  animation: hero-arrow-bob 1.5s ease-in-out infinite;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

@keyframes hero-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.55rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow {
    animation: none;
  }
  html.funnel-snap-root {
    scroll-behavior: auto;
  }
}

.section-questionnaire {
  scroll-snap-align: start;
}

.funnel-page--snap .section-questionnaire {
  scroll-snap-stop: always;
  min-height: calc(100vh - var(--footer-height));
  min-height: calc(100dvh - var(--footer-height));
  box-sizing: border-box;
  overflow-anchor: none;
}

/* Keep viewport height while scoring — collapsing here was jumping the title */
.funnel-page--snap .section-questionnaire.is-complete {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* Only after matches are on screen */
.funnel-page--snap .section-questionnaire.is-scored {
  min-height: 0;
  padding-bottom: 0.5rem;
}

/* Bottom placeholder while match-progress runs */
.results-spacer {
  height: 0;
  overflow: hidden;
  pointer-events: none;
  flex-shrink: 0;
  background: var(--bg-soft);
  overflow-anchor: none;
}

.results-spacer.is-active {
  height: calc(100vh + 80px);
  height: calc(100dvh + 80px);
}

.section-questionnaire .section-title-row {
  scroll-margin-top: 5.5rem;
}

.section-results .section-title-row,
.section-results h2 {
  scroll-margin-top: 5.5rem;
}

.funnel-questionnaire-done .section-results:not(.hidden) {
  padding-top: 0.75rem;
}

html.funnel-snap-root.funnel-snap-done {
  scroll-snap-type: none;
}

.section-header + .section-questionnaire {
  background: var(--bg-soft);
  padding-top: 3.5rem;
}

.funnel-page--snap .section-header + .section-questionnaire {
  padding-top: 4rem;
}

.section-header h1 {
  font-size: clamp(1.8rem, 5vw, 5.15rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-weight: 400;
}

.value-prop {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.intro { color: var(--muted); margin: 0; font-size: 0.98rem; }

.hero-benefits {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.98rem;
}

.hero-benefits li::before {
  content: "\e668";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

.hero-cta {
  margin: 1.5rem 0 0;
}

.carousel-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Carousel */
.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  touch-action: pan-y;
}

.carousel-card {
  flex: 0 0 min(100%, 320px);
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: none;
}

@media (min-width: 768px) {
  .carousel-card { flex: 0 0 calc(33.333% - 0.67rem); }
}

.carousel-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.carousel-body { padding: 1.25rem; }

.carousel-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.tagline { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.75rem; }

.bullets {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.bullets li { margin-bottom: 0.25rem; }

.price {
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
}

.carousel-dots button.active { background: var(--accent); }

/* 3 cards visible at once (desktop): only (N − 2) dot positions exist */
@media (min-width: 768px) {
  .section-carousel .carousel:has(.carousel-card:nth-child(3)) .carousel-dots button:nth-last-child(-n+2) {
    display: none;
  }

  .section-carousel .carousel:has(.carousel-card:nth-child(2):last-child) .carousel-dots button:nth-last-child(1) {
    display: none;
  }
}

/* Questionnaire */
.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.section-title-row h2 {
  margin: 0;
  flex: 1 1 auto;
}

.section-questionnaire h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.section-title-row .section-questionnaire h2,
.section-questionnaire .section-title-row h2 {
  margin: 0;
  padding-top: 3.5rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.35rem;
}

.lead-form .field .field-label-row {
  margin-bottom: 0.35rem;
}

.lead-form .field .field-label-row + input {
  margin-top: 0;
}

.match-progress {
  margin-top: 1.25rem;
  padding: 0;
}

.match-progress.hidden {
  display: none !important;
}

.match-progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.match-progress-phase {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  flex: 1 1 auto;
  min-height: 1.4em;
  overflow: hidden;
}

.match-progress-phase.is-animating-in {
  animation: q-list-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.match-progress-pct {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.match-progress-bar {
  height: 12px;
  background: #e2e2de;
  border-radius: 999px;
  overflow: hidden;
}

.match-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .match-progress-phase.is-animating-in {
    animation: none;
  }
}

.section-lead {
  color: var(--muted);
  margin: 0 0 2rem;
}

.section-questionnaire .section-lead {
  margin-bottom: 1.25rem;
}

.questionnaire-progress {
  margin-bottom: 1.25rem;
  opacity: 1;
  max-height: 12rem;
  transition:
    opacity 0.4s ease,
    max-height 0.45s ease,
    margin-bottom 0.45s ease;
}

.questionnaire-progress.is-fading-out {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .questionnaire-progress {
    transition: none;
  }
}

/* Viewport entrance: title, progress, questions stay hidden until in view */
.section-questionnaire .q-viewport-pending {
  opacity: 0;
  transform: translateY(1.35rem);
  pointer-events: none;
}

.section-questionnaire .q-viewport-in {
  animation: q-list-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--q-stagger, 0) * 70ms);
  pointer-events: auto;
}

.section-questionnaire .questionnaire-form:not(.q-viewport-ready) .question-block:not(.is-hidden) {
  opacity: 0;
  transform: translateY(1.35rem);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .section-questionnaire .q-viewport-pending {
    opacity: 0;
    transform: none;
  }

  .section-questionnaire .q-viewport-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .section-questionnaire .questionnaire-form:not(.q-viewport-ready) .question-block:not(.is-hidden) {
    opacity: 0;
    transform: none;
  }
}

.questionnaire-progress-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.questionnaire-progress-bar {
  height: 10px;
  background: #e2e2de;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.questionnaire-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.questionnaire-progress-steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  padding: 0;
}

.questionnaire-progress-step {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
}

.questionnaire-progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.19rem;
  height: 1.19rem;
  border-radius: 50%;
  background: #e2e2de;
  color: #666;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1;
  transform: translateX(50%);
  transition: background 0.25s ease, color 0.25s ease;
}

.questionnaire-progress-step.is-answered .questionnaire-progress-dot {
  background: #3d8b5a;
  color: #fff;
}

.question-block.is-hidden {
  display: none;
}

.question-block.is-animating-in,
.question-block.is-animating-out {
  overflow: hidden;
}

.question-block .q-anim-item {
  will-change: transform, opacity;
}

/* List (text): in from bottom, out upward — staggered per row */
@keyframes q-list-in {
  from {
    opacity: 0;
    transform: translateY(1.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes q-list-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-1.35rem);
  }
}

.question-block.q-motion-list.is-animating-in .q-anim-item {
  animation: q-list-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--q-stagger, 0) * 70ms);
}

.question-block.q-motion-list.is-animating-out .q-anim-item {
  animation: q-list-out 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: calc(var(--q-stagger, 0) * 70ms);
}

/* Icons / photos: in from right, out to left — staggered per card */
@keyframes q-grid-in {
  from {
    opacity: 0;
    transform: translateX(1.75rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes q-grid-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-1.75rem);
  }
}

.question-block.q-motion-grid.is-animating-in .q-anim-item {
  animation: q-grid-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--q-stagger, 0) * 70ms);
}

.question-block.q-motion-grid.is-animating-out .q-anim-item {
  animation: q-grid-out 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: calc(var(--q-stagger, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  .question-block.q-motion-list.is-animating-in .q-anim-item,
  .question-block.q-motion-list.is-animating-out .q-anim-item,
  .question-block.q-motion-grid.is-animating-in .q-anim-item,
  .question-block.q-motion-grid.is-animating-out .q-anim-item {
    animation: none !important;
  }
}

.questionnaire-form.is-complete .question-block {
  display: none;
}

.answers-summary {
  margin-top: 0.25rem;
  scroll-margin-top: 5.5rem;
}

.answers-summary.hidden {
  display: none;
}

.answers-summary-title {
  scroll-margin-top: 5.5rem;
  margin: 0;
  padding: 0.15rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--steel, var(--accent));
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}

.answers-summary-title::-webkit-details-marker {
  display: none;
}

.answers-summary-title::before {
  content: "\e5cf";
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
}

.answers-summary[open] .answers-summary-title {
  margin-bottom: 0.75rem;
}

.answers-summary[open] .answers-summary-title::before {
  content: "\e5ce";
}

.answers-summary-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.answers-summary-row {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.answers-summary-row dt,
.answers-summary-row dd {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.answers-summary-row dt {
  font-weight: 400;
}

.answers-summary-row .q-num {
  display: inline;
  padding: 0;
  margin-right: 0.3em;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
}

.answers-summary-row dd {
  font-weight: 700;
}

.answers-summary-row dd::before {
  content: " ";
}

.questionnaire-form--steps .q-num {
  display: none;
}

.questionnaire-form--steps .answers-summary-row .q-num {
  display: inline;
}

.question-block {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.question-block legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Questionnaire: list layout (default) */
.answers--list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answers--list .answer-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease;
  border-radius: 5px;
}

.answers--list .answer-option:hover {
  border-color: #d8d8d8;
}

.answers--list .answer-option input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.answers--list .answer-option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.scoring-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 28, 0.35);
  backdrop-filter: blur(2px);
}

.scoring-overlay[hidden] {
  display: none !important;
}

.scoring-overlay-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  min-width: min(280px, 90vw);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.scoring-spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.85rem;
  border: 3px solid #e6e6e6;
  border-top-color: var(--accent, #4e7191);
  border-radius: 50%;
  animation: scoring-spin 0.7s linear infinite;
}

.scoring-overlay-text {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

@keyframes scoring-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scoring-spinner {
    animation: none;
    border-top-color: #e6e6e6;
  }
}

/* Questionnaire: grid + icons / grid + images */
.answers--grid_icons,
.answers--grid_images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .answers--grid_icons,
  .answers--grid_images {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.answers--grid_icons .answer-option,
.answers--grid_images .answer-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-height: 120px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.answers--grid_icons .answer-option input,
.answers--grid_images .answer-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.answers--grid_icons .answer-option:has(input:checked),
.answers--grid_images .answer-option:has(input:checked) {
  border-color: var(--accent);
  background: #f4f9f7;
  box-shadow: 0 0 0 2px rgba(44, 95, 79, 0.15);
}

.answer-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.answers--grid_icons .material-symbols-outlined {
  font-size: 2.25rem;
  color: var(--accent);
  line-height: 1;
}

.answer-visual--image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}

.answer-visual--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f0f0f0;
}

.answers--grid_icons .answer-label,
.answers--grid_images .answer-label {
  font-size: 0.85rem;
  line-height: 1.35;
}

.answer-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-soft);
}

.btn,
a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:focus {
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: NunitoSans, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  width: 100%;
  border-radius: 999px;
}

.btn-primary:hover {
  background: #3f9a9a;
  opacity: 1;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hidden { display: none !important; }

/* Results */
.results-lead-wrap {
  background: var(--bg-soft);
}

.results-lead-wrap > .section-results,
.results-lead-wrap > #lead.section {
  background: transparent;
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}

.results-lead-wrap > #lead.section {
  padding-top: 0.35rem;
}

.funnel-questionnaire-done .results-lead-wrap > .section-results:not(.hidden) {
  padding-top: 0.75rem;
}

.section-results {
  background: var(--bg-soft);
  overflow: visible;
}

.section-results.is-revealing {
  animation: results-reveal 0.55s ease both;
}

@keyframes results-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-results.is-revealing {
    animation: none;
  }
}

.section-results .container {
  overflow: visible;
  max-width: var(--wide);
}

.section-results h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  text-align: left;
  padding-top: 2rem;
}

.section-results .section-title-row {
  margin-bottom: 0.65rem;
}

.section-results .results-intro {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}

.results-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
  justify-items: stretch;
  padding: 1rem 0 1.5rem;
  overflow: visible;
}

@media (min-width: 900px) {
  .results-grid {
    --result-tuck: 1.25rem;
    grid-template-columns: 1.6fr 1.32fr 0.72fr;
    gap: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    align-items: center;
  }
}

.result-image-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  overflow: visible;
}

.result-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #ececec;
}

.result-card.second .result-image {
  height: 160px;
}

.result-card.avoid .result-image {
  height: 140px;
  filter: grayscale(1) brightness(1.28) contrast(0.95);
}

.result-badge {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 50%;
  right: auto;
  z-index: 2;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.45rem 0.4rem;
  box-sizing: border-box;
  transform: translate(-50%, 50%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.result-card.best .result-badge {
  background: #3d8b5a;
}

.result-card.second .result-badge {
  background: #387CC4;
}

.result-badge-num {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  text-indent: 0.2em;
  color: #fff;
}
.result-badge-num:after {
  content:".";
}

.result-badge-label {
  font-size: calc(0.5rem + 2px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #fff;
}

.result-ref {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 3px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.result-card-face {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.result-card.best,
.result-card.second {
  overflow: visible;
}

.result-card.best .result-image,
.result-card.second .result-image {
  border-radius: 12px 12px 0 0;
}

.result-card.best .result-card-body,
.result-card.second .result-card-body {
  border-radius: 0 0 12px 12px;
  /* Half the 5.6rem badge hangs below the image + 15px gap to the title */
  padding-top: calc(2.8rem + 15px);
}

.result-card.best {
  z-index: 3;
  box-shadow: 0 16px 40px rgba(20, 28, 36, 0.18);
}

.result-card.second {
  z-index: 2;
  box-shadow: 0 12px 28px rgba(20, 28, 36, 0.14);
}

.result-card.avoid {
  z-index: 1;
  box-shadow: none;
}

@media (min-width: 900px) {
  .result-card.best {
    transform: none;
  }

  .result-card.second {
    margin-left: calc(var(--result-tuck, 1.25rem) * -1);
    width: calc(100% + var(--result-tuck, 1.25rem));
  }

  /* Keep text clear of the card stacked above */
  .result-card.second .result-card-body {
    padding-left: calc(1.15rem + var(--result-tuck, 1.25rem));
  }

  /* Same tuck under 2nd as 2nd under 1st; 30% may bleed past the page edge */
  .result-card.avoid {
    margin-left: calc(var(--result-tuck, 1.25rem) * -1);
    width: calc(130% + var(--result-tuck, 1.25rem));
    max-width: none;
    min-height: 0;
    margin-top: 0;
    margin-right: -30%;
    transform: none;
  }

  .result-card.avoid .result-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.85rem 1rem 1rem;
    padding-left: calc(1rem + var(--result-tuck, 1.25rem));
  }

}

@media (min-width: 1100px) {
  .results-lead-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20.5rem, 24rem);
    column-gap: 2rem;
    align-items: start;
    padding-left: max(var(--space), calc((100% - var(--wide)) / 2 + var(--space)));
    padding-right: max(var(--space), calc((100% - var(--wide)) / 2 + var(--space)));
  }

  .results-lead-wrap > .section-results,
  .results-lead-wrap > #lead.section {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .results-lead-wrap > .section-results .container,
  .results-lead-wrap > #lead .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  .results-lead-wrap > #lead.section {
    position: sticky;
    top: 5.5rem;
    z-index: 4;
  }

  .results-lead-wrap > #lead .container {
    background: #fff;
    padding: 1.25rem 1.35rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(20, 28, 36, 0.1);
  }

  .results-lead-wrap > #lead .lead-cta-step .btn-primary {
    margin: 0;
    max-width: none;
  }

  .results-lead-wrap .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0 0.5rem;
  }

  .results-lead-wrap .result-card.second,
  .results-lead-wrap .result-card.avoid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    transform: none;
  }

  .results-lead-wrap .result-card.second .result-card-body,
  .results-lead-wrap .result-card.avoid .result-card-body {
    padding-left: 1.15rem;
  }
}

@media (max-width: 899px) {
  .results-grid {
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .result-card.best,
  .result-card.second,
  .result-card.avoid {
    transform: none;
    width: 100%;
    max-width: none;
    height: auto !important;
    margin-top: 0;
  }

  .result-card.avoid .result-image {
    height: 160px;
  }

  .result-card.avoid .result-card-body {
    flex: 0 0 auto;
  }
}

.result-card-body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.15rem 1.2rem;
  background: var(--card);
  flex: 1;
  min-height: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-card-body h3,
.result-card-body p,
.result-card-body li,
.result-card-body .result-tagline,
.result-card-body .summary,
.result-card-body .result-confirmation,
.result-card-body .result-lifestyle-pct-note,
.result-card-body .result-highlights,
.result-card-body .result-meta,
.result-card-body .result-avoid-reason,
.result-card-body .result-avoid-label,
.result-card-body .result-more-toggle,
.result-card-body .result-community-link,
.result-card-body .result-community-link a {
  font-size: inherit;
  line-height: inherit;
}

.result-card h3 {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.result-avoid-label {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

.result-tagline {
  margin: 0 0 0.65rem;
  font-weight: 500;
  color: var(--steel, var(--accent));
  font-style: italic;
}

.result-card .summary {
  margin: 0.35rem 0 0.5rem;
  color: var(--muted);
}

.result-avoid-reason {
  color: var(--muted);
  margin: 0;
}

.result-detail {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.result-detail dt {
  font-weight: 600;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.result-detail dd {
  margin: 0.1rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.result-project {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.result-project-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-project-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.result-block h4 {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-bullets {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.result-bullets li {
  margin-bottom: 0.15rem;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.result-gallery-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}

.result-highlights {
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
}

.result-highlights li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.result-highlights li::before {
  content: "\e668";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.05em;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

.result-meta {
  margin: 0.35rem 0 0;
}

.result-meta strong {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
  margin: 0;
}

.result-meta--muted {
  color: var(--muted);
}

.result-card.avoid .result-avoid-reason {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

/* Lead form */
.lead-benefits {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.lead-benefits li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lead-benefits li::before {
  content: "\e668";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.1em;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

.lead-next-steps {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.lead-next-steps--after {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.lead-next-steps h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.lead-next-steps ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.lead-next-steps li {
  margin-bottom: 0.25rem;
}

.channel-recommended {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lead-good-news {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text);
}

.result-confirmation {
  margin: 0 0 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

.result-lifestyle-pct {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.result-lifestyle-pct-value {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
}

.result-lifestyle-pct-note {
  margin: 0;
  color: var(--muted);
}

.result-lifestyle-pct--compact {
  margin: 0 0 0.45rem;
  padding: 0;
  background: none;
}

.result-lifestyle-pct--compact .result-lifestyle-pct-value {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.result-more {
  margin-top: 0.25rem;
}

.result-more-toggle {
  cursor: pointer;
  font-weight: 600;
  color: var(--highlight, var(--accent));
  list-style: none;
}

.result-more-toggle::-webkit-details-marker {
  display: none;
}

.result-more-toggle::after {
  content: "\e5cf";
  display: inline-block;
  margin-left: 0.15rem;
  vertical-align: middle;
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.result-more[open] .result-more-toggle::after {
  content: "\e5ce";
}

.result-more-body {
  margin-top: 0.65rem;
}

.result-community-link {
  margin: 0.65rem 0 0;
}

.result-community-link a {
  color: var(--highlight, var(--accent));
  font-weight: 600;
  text-decoration: none;
}

.result-community-link a:hover {
  text-decoration: underline;
}

#lead .lead-intro > p.section-lead {
  margin-bottom: 1rem;
}

.btn.is-loading {
  opacity: 0.85;
  cursor: wait;
  position: relative;
}

.result-price {
  margin: 0 0 0.75rem;
}

.field-budget {
  border: none;
  margin: 0.75rem 0 1rem 0;
  padding: 0;
}

.field-budget legend {
  padding: 0;
}

.budget-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}

.budget-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: left;
}

.budget-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-soft);
}

.budget-option input {
  accent-color: var(--accent);
  flex-shrink: 0;
  margin: 0;
}

/* Lead form */
.section-lead h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.lead-cta-step {
  margin-top: 0.5rem;
}

.lead-cta-step .btn-primary {
  max-width: 22rem;
  margin: 0 auto;
  display: flex;
}

.btn-cta-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1;
}

.btn-cta-chevron > *,
.btn-cta-chevron [data-l10n],
.btn-cta-chevron .l10n {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-cta-chevron::after {
  content: "\e5cc";
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-feature-settings: 'rlig' 1, 'liga' 1;
  font-feature-settings: 'rlig' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-right: 10px;
  flex-shrink: 0;
  animation: lead-cta-chevron-pulse 1.2s ease-in-out infinite;
}

@keyframes lead-cta-chevron-pulse {
  0%, 100% { translate: 0 0.08em; }
  50% { translate: 10px 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta-chevron::after {
    animation: none;
  }
}
.lead-form .field {
  display: block;
  /* margin-bottom: 1rem; */
}

.lead-fields-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}

.lead-fields-row .field {
  min-width: 0;
}

.lead-form > .field-label {
  margin: 0 0 0.35rem;
}

.lead-form .field > span:not(.field-label-row),
.lead-form .field .field-label-row > span:first-child,
.lead-form .field-budget legend {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: inherit;
  font-family: inherit;
}

.lead-form .field .field-label-row > span:first-child {
  margin-bottom: 0;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.channel-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.channel-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.channel-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg-soft);
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.form-message.success { background: #e8f5e9; color: #2e7d32; }
.form-message.error { background: #ffebee; color: #c62828; }

/* Modal feedback (replaces alert/confirm) */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.popup.is-open {
  display: flex;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: default;
}

.popup-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.popup-panel--success {
  border-color: #a5d6a7;
}

.popup-panel--error {
  border-color: #ef9a9a;
}

.popup-message {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.popup-actions {
  display: flex;
  justify-content: flex-end;
}

/* Thanks page */
.thanks-page .section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.thanks-page .thanks-typed-block {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.thanks-page .section-thanks.thanks-typed-block {
  padding-top: 0.85rem;
  padding-bottom: 0.45rem;
}

.thanks-typed-block.is-pending {
  display: none;
}

.thanks-typed-block.is-active,
.thanks-typed-block.is-done {
  display: block;
  opacity: 1;
}

.thanks-typed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.thanks-typed-title {
  margin: 0;
  flex: 1 1 auto;
}

.thanks-typed-title.is-typing::after,
.thanks-checklist li.is-typing::after,
[data-typed="line"].is-typing::after {
  content: "▋";
  display: inline-block;
  margin-left: 1px;
  color: var(--accent);
  animation: thanks-caret 0.8s steps(1) infinite;
}

@keyframes thanks-caret {
  50% { opacity: 0; }
}

.thanks-after-matches.is-pending,
#thanks-matches-section.is-pending,
#thanks-matches-mount.is-pending {
  display: none;
}

#thanks-matches-section,
#thanks-matches-mount > .section-thanks-matches,
.thanks-after-matches {
  opacity: 0;
  transition: opacity 1.4s ease;
}

#thanks-matches-section.is-revealed,
#thanks-matches-mount > .section-thanks-matches.is-revealed,
.thanks-after-matches.is-revealed {
  opacity: 1;
}

.thanks-meantime-title {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  #thanks-matches-section,
  #thanks-matches-mount > .section-thanks-matches,
  .thanks-after-matches {
    transition: none;
  }
}

.section-thanks h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.thanks-lead,
.thanks-reassure,
.section-thanks-caveat p,
.section-thanks-close p {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.thanks-checklist {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.thanks-checklist li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0;
  color: var(--text);
  min-height: 1.35em;
}

.thanks-checklist li::before {
  content: "\e668";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

.thanks-checklist[data-typed="list"] li::before {
  content: none;
}

.thanks-checklist[data-typed="list"] li.is-typing::before,
.thanks-checklist[data-typed="list"] li.is-typed::before {
  content: "\e668";
}

.thanks-matches {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.thanks-match {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  position: relative;
}

.thanks-match-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #ececec;
}

.thanks-match-body {
  padding: 1.25rem;
}

@media (min-width: 700px) {
  .thanks-match:has(.thanks-match-image) {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .thanks-match:has(.thanks-match-image) .thanks-match-image {
    width: 42%;
    min-width: 220px;
    height: auto;
    min-height: 200px;
    flex-shrink: 0;
  }

  .thanks-match:has(.thanks-match-image) .thanks-match-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.thanks-rank {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.thanks-match .thanks-rank {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  margin-bottom: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.thanks-match-label {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.thanks-match h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.thanks-match .btn {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.section-thanks-caveat {
  background: var(--bg-soft);
}

.section-thanks-close h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.thanks-cta-fallback {
  display: none;
}

a.brand {
  color: var(--accent);
  text-decoration: none;
}

/* Community page */
.section-match-banner {
  background: var(--bg-soft);
}

.match-banner-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.match-banner-fallback {
  display: none;
}

.match-reasons {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.match-reasons li {
  margin-bottom: 0.4rem;
}

.match-banner-close {
  margin: 0;
  font-weight: 500;
  color: var(--accent);
}

.community-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .community-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.community-gallery-item {
  min-height: 180px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}

.community-intro-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}

.community-intro-heading .fancy {
  margin: 0;
  font-size: calc(2rem + 5pt);
  vertical-align: baseline;
  text-wrap: balance;
}

.community-living .intro {
  margin: 0 0 1rem;
  font-size: calc(0.98rem + 3px);
  line-height: calc(0.98rem * 1.65 + 3px);
}

.community-tagline {
  font-style: normal;
  color: var(--steel, var(--accent));
  font-weight: 500;
  margin: 0;
  vertical-align: baseline;
}

.section-community-fit {
  padding-top: 0;
}

.community-fit {
  margin-top: 1rem;
}

.community-fit h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.community-fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.community-fit-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.98rem;
}

.community-fit-list--love li::before {
  content: "\e668";
  flex: 0 0 auto;
  color: var(--accent);
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

.community-fit-list--prefer li {
  align-items: baseline;
}

.community-fit-list--prefer li::before {
  content: "•";
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
  font-size: 0.85em;
  transform: translateY(0.08em);
}

.development-developer {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.listing-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.listing-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.listing-row.is-extra.is-collapsed {
  display: none;
}

.listing-row-media {
  display: block;
  flex: 0 0 168px;
  min-height: 132px;
  background-size: cover;
  background-position: center;
  background-color: #ececec;
}

.listing-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem 0.9rem 0;
}

.listing-row-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.listing-row-title a {
  color: inherit;
  text-decoration: none;
}

.listing-row-title a:hover {
  color: var(--accent);
}

.listing-row-meta {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.listing-row-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.listing-row-price {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.listing-row-btn {
  width: auto;
  min-width: 8.5rem;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 640px) {
  .listing-row {
    flex-direction: column;
  }

  .listing-row-media {
    flex-basis: 180px;
    min-height: 180px;
  }

  .listing-row-body {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem 1rem;
  }

  .listing-row-aside {
    align-items: stretch;
  }

  .listing-row-price {
    text-align: left;
  }

  .listing-row-btn {
    width: 100%;
  }
}

.developments-acc {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.development-acc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.development-acc.is-extra.is-collapsed {
  display: none;
}

.development-acc-summary {
  list-style: none;
  cursor: pointer;
  display: block;
}

.development-acc-summary::-webkit-details-marker {
  display: none;
}

.development-acc-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
}

.development-acc-summary-inner::before {
  content: "\e5cf";
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
}

.development-acc[open] .development-acc-summary-inner::before {
  content: "\e5ce";
}

.development-acc-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.development-acc-title {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.development-acc-size {
  font-size: 0.88rem;
  color: var(--muted);
}

.development-acc-price {
  flex-shrink: 0;
  font-weight: 600;
  text-align: right;
  color: var(--text);
  font-size: 0.98rem;
}

@media (max-width: 520px) {
  .development-acc-price {
    max-width: 42%;
    font-size: 0.88rem;
  }
}

.development-acc-body {
  padding: 0 1.1rem 1.15rem;
}

.development-acc-hero {
  height: 330px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: #ececec;
}

.development-acc-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.development-acc-thumb {
  min-height: 114px;
  border-radius: calc(var(--radius) - 2px);
  background-size: cover;
  background-position: center;
  background-color: #ececec;
}

.development-acc-cta {
  margin: 0.9rem 0 0;
}

.development-acc-btn {
  display: flex;
  text-align: center;
  text-decoration: none;
}

.community-dev-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.community-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.community-back-arrow {
  font-weight: 600;
  line-height: 1;
}

.community-back-link:hover {
  text-decoration: underline;
}

.community-dev-actions .see-all-developments-btn {
  margin-left: auto;
}

.see-all-developments-btn {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.see-all-developments-btn:hover {
  text-decoration: underline;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: 100%;
  height: var(--footer-height);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: visible;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.results-scroll-cue {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--footer-height) + 0.65rem);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.results-scroll-cue[hidden] {
  display: none !important;
}

.results-scroll-cue.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.results-scroll-mouse {
  font-size: 1.75rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

.results-scroll-arrow {
  font-size: 1.85rem;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  animation: results-arrow-bob 1.5s ease-in-out infinite;
}

@keyframes results-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.4rem); }
}

@media (max-width: 640px) {
  .results-scroll-cue {
    flex-direction: row;
    right: 0.65rem;
    bottom: calc(var(--footer-height) + 0.4rem);
    gap: 0;
  }

  .results-scroll-mouse,
  .results-scroll-arrow {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .results-scroll-arrow {
    animation: none;
  }

  .results-scroll-cue {
    transition: none;
  }
}

.site-footer p {
  margin: 0;
  min-width: 0;
  text-align: left;
}


.listing-page .listing-main {
  padding-bottom: 3rem;
}

.listing-page .section-listing-hero {
  padding-bottom: 0;
}

.listing-page .section-listing-details {
  padding-top: calc(0.9rem + 30px);
}

.listing-back {
  margin: 0 0 1rem;
}

.listing-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.listing-back-arrow {
  font-weight: 600;
  line-height: 1;
}

.listing-back a:hover {
  text-decoration: underline;
}

.listing-gallery {
  margin: 0 0 0.85rem;
}

.listing-gallery-stage {
  position: relative;
  margin: 0;
}

.listing-gallery-frame {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  height: min(68vh, 720px);
  border-radius: var(--radius);
  background: #ececec;
}

.listing-gallery-layer {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  z-index: 0;
}

.listing-gallery-layer.is-front {
  opacity: 1;
  z-index: 1;
}

.listing-gallery-layer.is-entering {
  opacity: 1;
  z-index: 2;
  transition: opacity 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .listing-gallery-layer {
    transition: none !important;
  }
}

.listing-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: -1.3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--steel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(64, 83, 102, 0.16);
}

.listing-gallery-nav .material-symbols-outlined {
  font-size: 1.7rem;
  line-height: 1;
}

.listing-gallery-nav--prev { left: 0.85rem; }
.listing-gallery-nav--next { right: 0.85rem; }

.listing-gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.listing-gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.listing-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--steel_light, #b6c5d4);
  border-radius: 999px;
}

.listing-gallery-thumb,
.listing-side-thumb {
  flex: 0 0 78px;
  width: 78px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 2px;
  background: #ececec center/cover no-repeat;
  cursor: pointer;
  padding: 0;
}

.listing-gallery-thumb {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.listing-gallery-thumb.is-active {
  border-width: 4px;
  border-color: var(--highlight);
}

.listing-side-thumb.is-active {
  border-color: var(--highlight);
}

.listing-details {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr);
  gap: 2.5rem;
  align-items: start;
}

.listing-title {
  margin: 0 0 0.75rem;
  font-size: calc(2rem + 5px);
  line-height: 1.25;
  text-wrap: balance;
}

.listing-title .wab {
  white-space: nowrap;
}

.listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--steel);
}

.listing-specs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.listing-specs i {
  font-size: calc(1.55rem * 1.5);
  line-height: 1;
  color: var(--highlight);
}

.listing-specs li[data-label="bedrooms"] i:before { content: "\e906"; }
.listing-specs li[data-label="bathrooms"] i:before { content: "\e904"; }
.listing-specs li[data-label="property-size"] i:before { content: "\e903"; }
.listing-specs li[data-label="land-size"] i:before { content: "\e943"; }

.listing-specs > li[data-value=""],
.listing-specs > li[data-value="0"] {
  display: none;
}

.listing-specs[data-tps*="[1]"] > li[data-label="land-size"] {
  display: none;
}

.listing-specs em {
  font-style: normal;
  font-weight: 500;
  font-size: 1.35rem;
}

.listing-specs li[data-label="bedrooms"] [data-l10n],
.listing-specs li[data-label="bathrooms"] [data-l10n] {
  font-size: 1rem;
  font-weight: 400;
}

.listing-details-main h2,
.listing-details-side h2 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--highlight);
  text-transform: uppercase;
}

.listing-details-main h2:first-of-type,
.listing-details-side h2:first-child {
  margin-top: 0;
}

.listing-details-main h2:has([data-l10n="funnel.listing.description"]) {
  margin-top: 20px;
}

.listing-details-main h2:has([data-l10n="funnel.listing.neighborhood"]) {
  margin-top: calc(1.6rem + 20px);
}

.listing-details-side h2:has([data-l10n="funnel.listing.features"]) {
  margin-top: 20px;
}

.listing-description {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.listing-description p {
  margin: 0 0 0.9rem;
}

.listing-neighborhood,
.listing-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-neighborhood {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
  margin: 0 0 1rem;
  align-items: start;
}

.listing-neighborhood[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.listing-neighborhood[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listing-neighborhood[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-neighborhood[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.listing-neighborhood li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.listing-neighborhood-head {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.listing-neighborhood i {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  background: center / contain no-repeat;
  font-family: inherit !important;
}

.listing-neighborhood i:before { content: none; }

.listing-neighborhood em {
  display: block;
  min-width: 0;
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.listing-neighborhood span {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

.listing-nearby h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.95rem;
}

.listing-distances {
  display: flex;
  flex-direction: column;
  gap: calc(0.55rem - 5px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-distance {
  display: flex;
  align-items: baseline;
  width: 100%;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.92rem;
}

.listing-distance-place {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text);
  font-weight: 400;
  line-height: 1.35;
}

.listing-distance-leader {
  flex: 1 1 0;
  min-width: 1rem;
  align-self: baseline;
  height: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--text) 42%, transparent);
  /* sit on text baseline (was center + translateY → too high) */
  transform: none;
}

.listing-distance-value {
  flex: 0 0 auto;
  font-family: inherit;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  color: var(--text);
  white-space: nowrap;
}

.listing-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(0.55rem * 0.8) calc(1rem * 0.8);
}

.listing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.listing-features i {
  width: calc(22px * 1.2 * 1.2);
  height: calc(22px * 1.2 * 1.2);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-family: inherit !important;
  transform: scale(1.1);
  transform-origin: left center;
}

.listing-features i:before { content: none; }

.listing-features em {
  font-style: normal;
  font-size: 0.92rem;
}

.listing-details-side .listing-features {
  grid-template-columns: 1fr;
}

.listing-side-block {
  margin-bottom: 0.75rem;
}

.listing-side-block--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.listing-details-side .listing-side-block--row > h2 {
  margin: 0;
  flex: 0 0 auto;
  vertical-align: baseline;
}

.listing-side-block--row > p,
.listing-side-block--row > ul,
.listing-side-block--row > .listing-ref {
  margin: 0;
  text-align: right;
  vertical-align: baseline;
}

.listing-ref {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  cursor: pointer;
}

.listing-ref:hover {
  text-decoration: underline;
}

.listing-ref.is-copied {
  color: var(--green);
}

.listing-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--steel_dark);
}

.listing-address {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: calc(1.65 * 0.85);
}

.listing-address li {
  margin: 0 0 calc(0.2rem * 0.85);
}

.listing-address li:last-child {
  margin-bottom: 0;
}

.listing-flag {
  vertical-align: -1px;
  margin-right: 0.3rem;
}

.listing-key-ready {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--steel_dark);
}

.listing-side-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.listing-side-gallery .listing-side-thumb {
  width: 100%;
  flex: none;
  height: 68px;
}

.listing-side-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 860px) {
  .listing-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .listing-gallery-frame {
    min-height: 340px;
    height: min(52vh, 440px);
  }

  .listing-title {
    font-size: calc(1.55rem + 5px);
  }

  .listing-features {
    grid-template-columns: 1fr;
  }

  .listing-neighborhood,
  .listing-neighborhood[data-count="2"],
  .listing-neighborhood[data-count="3"],
  .listing-neighborhood[data-count="4"] {
    grid-template-columns: 1fr;
  }
}

.home main { padding: 4rem 0; text-align: center; }
