:root {
  --landing-bg: #f3f1ea;
  --landing-surface: rgba(255, 255, 255, 0.84);
  --landing-surface-strong: #ffffff;
  --landing-surface-soft: rgba(245, 248, 245, 0.92);
  --landing-border: rgba(54, 89, 69, 0.14);
  --landing-border-strong: rgba(54, 89, 69, 0.24);
  --landing-shadow: 0 24px 64px rgba(24, 39, 31, 0.12);
  --landing-shadow-soft: 0 16px 34px rgba(24, 39, 31, 0.08);
  --landing-text: #203029;
  --landing-text-soft: #57645d;
  --landing-accent: #365945;
  --landing-accent-strong: #2a4636;
  --landing-radius-xl: 32px;
  --landing-radius-lg: 22px;
  --landing-radius-md: 16px;
  --landing-max-width: 1380px;
  --landing-shell-total-gap: 168px;
  --landing-shell-max-width: var(--landing-max-width);
  --landing-results-inline-padding: 28px;
  --landing-results-bottom-padding: 28px;
  --landing-page-bottom-padding: 32px;
  --landing-safe-top: env(safe-area-inset-top, 0px);
  --landing-header-gap: 8px;
  --landing-header-height: 76px;
  --landing-header-sticky-top: calc(var(--landing-safe-top) + var(--landing-header-gap));
  --landing-page-top-padding: var(--landing-header-sticky-top);
  --landing-header-offset: calc(var(--landing-header-sticky-top) + var(--landing-header-height));
  --landing-header-bottom-gap: 8px;
  --landing-header-edge-bleed: 14px;
  --landing-search-shell-height: 860px;
  --landing-results-stage-min-height: 520px;
  --landing-results-stage-max-height: 1080px;
  --landing-results-inline-start-gap: 0px;
  --landing-results-inline-end-gap: 0px;
}

html {
  background: #f8f6f0;
  scrollbar-gutter: auto;
  scroll-padding-top: var(--landing-header-offset);
  scrollbar-width: none; /* Firefox: hide width-stealing scrollbars */
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.index-landing {
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  color: var(--landing-text);
  background: var(--landing-bg);
  scrollbar-width: none; /* Firefox fallback: hide viewport scrollbar if body is the scroller */
}

body.index-landing::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.index-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 16%, rgba(235, 224, 201, 0.54), rgba(243, 241, 234, 0) 28%),
    linear-gradient(180deg, #f8f6f0 0%, var(--landing-bg) 100%);
}

body.index-landing,
body.index-landing *,
body.index-landing *::before,
body.index-landing *::after {
  box-sizing: border-box;
}

.landing-page {
  width: min(calc(100% - var(--landing-shell-total-gap)), var(--landing-shell-max-width));
  margin: 0 auto;
}

.landing-page {
  position: relative;
  padding: var(--landing-page-top-padding) 0 var(--landing-page-bottom-padding);
}

.landing-page::before,
.landing-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

.landing-page::before {
  display: none;
}

.landing-page::after {
  display: none;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: sticky;
  top: var(--landing-header-sticky-top);
  z-index: 40;
  min-height: var(--landing-header-height);
  margin: 0 calc(var(--landing-header-edge-bleed) * -1) var(--landing-header-bottom-gap);
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  transition:
    background 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    backdrop-filter 0.24s ease;
}

.landing-header.is-scrolled {
  border-color: rgba(54, 89, 69, 0.08);
  background: rgba(248, 246, 240, 0.82);
  box-shadow: 0 12px 28px rgba(24, 39, 31, 0.08);
  backdrop-filter: blur(14px);
}

body.index-landing.no-scroll .landing-header {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

body.index-landing.no-scroll .landing-header.is-scrolled {
  border-color: rgba(54, 89, 69, 0.08);
  background: rgba(248, 246, 240, 0.94);
  box-shadow: 0 12px 28px rgba(24, 39, 31, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-mobile-tabs {
  display: none;
}

.landing-mobile-tabs[hidden] {
  display: none !important;
}

.landing-mobile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(54, 89, 69, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--landing-accent-strong);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.landing-mobile-tab[aria-pressed="true"] {
  border-color: rgba(54, 89, 69, 0.14);
  background: var(--landing-accent-strong);
  color: #f8f6f0;
  box-shadow: 0 12px 24px rgba(24, 39, 31, 0.12);
}

.landing-mobile-tab:disabled {
  opacity: 0.46;
  cursor: default;
  box-shadow: none;
}

.landing-mobile-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: rgba(54, 89, 69, 0.1);
  color: currentColor;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
}

.landing-mobile-tab__badge[hidden] {
  display: none !important;
}

.landing-mobile-tab[aria-pressed="true"] .landing-mobile-tab__badge {
  background: rgba(248, 246, 240, 0.18);
}

.landing-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.landing-brand__name {
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--landing-accent-strong);
  letter-spacing: -0.03em;
}

.landing-brand__tagline {
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--landing-text-soft);
}

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.landing-nav a,
.landing-inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--landing-accent-strong);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.9;
}

.landing-nav a:hover,
.landing-nav a:focus-visible,
.landing-inline-links a:hover,
.landing-inline-links a:focus-visible {
  color: var(--landing-accent);
  opacity: 1;
  transform: translateY(-1px);
}

.landing-stage {
  --landing-stage-pad-top: clamp(18px, 5vh, 72px);
  --landing-stage-pad-right: clamp(64px, 9.5vw, 156px);
  --landing-stage-pad-bottom: 24px;
  --landing-stage-pad-left: clamp(38px, 5.8vw, 96px);
  --landing-stage-gap: clamp(18px, 2vw, 28px);
  --landing-stage-copy-track: minmax(0, 1.14fr);
  --landing-stage-search-track: minmax(0, 1fr);
  --landing-stage-results-copy-track: minmax(0, 1fr);
  --landing-stage-results-search-track: clamp(360px, 31vw, 460px);
  display: grid;
  grid-template-columns: var(--landing-stage-copy-track) var(--landing-stage-search-track);
  gap: var(--landing-stage-gap);
  align-items: start;
  min-height: calc(
    100vh -
    var(--landing-header-offset) -
    var(--landing-header-bottom-gap) -
    var(--landing-page-bottom-padding)
  );
  padding: var(--landing-stage-pad-top) var(--landing-stage-pad-right) var(--landing-stage-pad-bottom) var(--landing-stage-pad-left);
  transition:
    grid-template-columns 0.26s ease,
    gap 0.26s ease,
    padding 0.26s ease;
}

@media (min-width: 801px) and (max-height: 860px) {
  .landing-stage {
    --landing-stage-pad-top: clamp(14px, 3.4vh, 40px);
  }
}

@media (min-width: 801px) and (max-height: 740px) {
  .landing-stage {
    --landing-stage-pad-top: 12px;
  }
}

.landing-stage[data-results-layout="visible"] {
  grid-template-columns: var(--landing-stage-results-copy-track) var(--landing-stage-results-search-track);
  gap: var(--landing-stage-gap);
  margin-left: calc(var(--landing-header-edge-bleed) * -1);
  margin-right: calc(var(--landing-header-edge-bleed) * -1);
  padding-left: 0;
  padding-right: 0;
}

.landing-search-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-xl);
  background: var(--landing-surface);
  box-shadow: var(--landing-shadow);
  backdrop-filter: blur(16px);
}

.landing-search-shell {
  animation: landing-rise 0.7s ease both;
}

.landing-copy {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 14px 0 18px;
  animation: landing-rise 0.7s ease both;
}

.landing-results-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  min-height: 28px;
}

.landing-stage[data-results-layout="visible"] .landing-results-status {
  padding-left: var(--landing-results-inline-start-gap);
  padding-right: var(--landing-results-inline-end-gap);
}

.landing-results-status__label {
  flex: 1 1 auto;
}

.landing-results-status__toggle {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--landing-accent-strong);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.landing-results-status__toggle:hover,
.landing-results-status__toggle:focus-visible {
  color: var(--landing-accent);
  opacity: 1;
}

.landing-content-stage {
  display: grid;
  gap: 0;
  width: 100%;
}

.landing-content-stage__panel {
  min-width: 0;
  overflow: hidden;
  transition:
    width 0.26s ease,
    margin 0.26s ease,
    max-height 0.26s ease,
    opacity 0.22s ease,
    transform 0.24s ease,
    visibility 0s linear 0.26s;
  will-change: width, margin, max-height, opacity, transform;
}

.landing-content-stage__panel--intro {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 1600px;
}

.landing-content-stage__panel--results {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  max-height: 0;
  overflow: visible;
  will-change: opacity, max-height;
  backface-visibility: hidden;
}

.landing-content-stage[data-view="results"] .landing-content-stage__panel--intro {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  max-height: 0;
}

.landing-content-stage[data-view="results"] .landing-content-stage__panel--results {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: clamp(
    var(--landing-results-stage-min-height),
    var(--landing-search-shell-height),
    var(--landing-results-stage-max-height)
  );
  transition-delay: 0s;
}

.landing-search-shell {
  width: 100%;
  max-width: none;
  justify-self: end;
  padding: clamp(22px, 2.4vw, 30px);
  animation-delay: 0.08s;
  border-color: rgba(54, 89, 69, 0.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 46px rgba(24, 39, 31, 0.1);
  transition:
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.landing-stage[data-results-layout="visible"] .landing-search-shell {
  box-shadow: none;
}

.landing-copy::before {
  display: none;
}

.landing-copy::after {
  display: none;
}

.landing-search-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  pointer-events: none;
}

.landing-copy > *,
.landing-search-shell > *,
.index-landing #matchingSection.section > * {
  position: relative;
  z-index: 1;
}

.landing-copy__intro {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 52rem;
}

.landing-eyebrow,
.landing-search-shell__eyebrow {
  margin: 0;
  color: var(--landing-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-title {
  margin: 0;
  color: var(--landing-accent-strong);
  font-size: clamp(2.4rem, 1.92rem + 1.3vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-align: left;
  max-width: 22ch;
  text-wrap: balance;
}

.landing-title__line {
  display: block;
}

.landing-lead,
.landing-search-shell__text,
.landing-copy__support,
.landing-outline__text {
  margin: 0;
  color: var(--landing-text-soft);
  font-size: 1.04rem;
  line-height: 1.58;
}

.landing-lead {
  max-width: 60ch;
  text-wrap: pretty;
}

.landing-content-stage__panel--results #matchingSection.section {
  position: relative;
  overflow: visible;
  margin: 0;
  padding: 0 !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 100%;
  max-height: clamp(
    var(--landing-results-stage-min-height),
    var(--landing-search-shell-height),
    var(--landing-results-stage-max-height)
  );
  isolation: isolate;
}

.landing-content-stage__panel--results #matchResults {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  gap: var(--gap, 12px);
  padding: 0;
  scrollbar-gutter: auto;
}

.landing-content-stage__panel--results #resultsPagination,
.landing-content-stage__panel--results #showMoreStatus {
  flex: 0 0 auto;
}

.landing-content-stage__panel--results #loader {
  margin: 0;
  padding: 20px 0 4px;
}

.landing-content-stage__panel--results #resultsPagination {
  margin-top: 18px;
}

.landing-content-stage__panel--results #showMoreStatus {
  margin-top: 16px;
  max-width: none;
}

.landing-content-stage__panel--results #matchingSection.is-empty #showMoreStatus,
.landing-content-stage__panel--results #matchingSection.is-awaiting-input #showMoreStatus,
.landing-content-stage__panel--results #matchingSection.is-loading:not(.is-refreshing) #showMoreStatus {
  margin-top: 0;
  padding: 18px 20px;
  border: 1px solid rgba(54, 89, 69, 0.1);
  border-radius: var(--landing-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  color: var(--landing-text);
}

.landing-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  width: 100%;
  max-width: 52rem;
}

.landing-signal {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0 0 14px;
  position: relative;
  color: var(--landing-accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.landing-signal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(54, 89, 69, 0.66);
  transform: translateY(-50%);
}

.landing-copy__support {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.04rem;
  color: rgba(40, 58, 48, 0.82);
}

.landing-outline {
  position: relative;
  margin-top: 26px;
  width: 100%;
  max-width: 50rem;
  padding-left: 24px;
}

.landing-outline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(54, 89, 69, 0.4), rgba(54, 89, 69, 0.08));
}

.landing-outline__eyebrow,
.landing-search-shell__title,
.landing-outline__title {
  margin: 0;
  color: var(--landing-accent-strong);
  font-weight: 600;
}

.landing-outline__eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(54, 89, 69, 0.78);
}

.landing-outline__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.landing-outline__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.landing-outline__step {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  color: rgba(54, 89, 69, 0.78);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.landing-outline__content {
  display: grid;
  gap: 4px;
}

.landing-outline__title {
  font-size: 1.02rem;
  line-height: 1.22;
}

.landing-outline__text {
  font-size: 0.94rem;
  max-width: 52ch;
}

.landing-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}

.landing-inline-links a {
  position: relative;
  font-weight: 600;
}

.landing-inline-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  opacity: 0.32;
}

.landing-nav a {
  position: relative;
}

.landing-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.landing-nav a:hover::after,
.landing-nav a:focus-visible::after {
  opacity: 0.3;
}

.landing-search-shell__intro {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(54, 89, 69, 0.08);
  text-align: center;
}

.landing-search-shell__title {
  font-size: clamp(1.28rem, 1.08rem + 0.52vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.landing-search-shell__text {
  font-size: 0.98rem;
  max-width: none;
  font-weight: 400;
  line-height: 1.45;
}

.landing-search-shell__text-line {
  display: block;
}

.index-landing .guided-search {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.index-landing .guided-search__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.index-landing .guided-search__filters > .flow-card {
  margin: 0;
}

.index-landing .flow-action {
  grid-column: 1 / -1;
  margin-top: 14px;
}

.index-landing .landing-search-shell .flow-action--standalone {
  margin-bottom: 0;
}

.index-landing .flow-card {
  height: 100%;
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(54, 89, 69, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(24, 39, 31, 0.06);
}

.index-landing .flow-card--goal {
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(54, 89, 69, 0.08);
}

.index-landing .flow-card--goal .flow-card__header {
  margin-bottom: 12px;
}

.index-landing .flow-card--goal .flow-card__body {
  gap: 8px;
}

.index-landing .flow-card--goal .flow-block {
  gap: 12px;
}

.index-landing .flow-card__header {
  margin-bottom: 16px;
}

.index-landing .flow-card--accordion {
  padding: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(54, 89, 69, 0.08);
  background: transparent;
  box-shadow: none;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.index-landing .flow-card--accordion.is-open {
  border-color: rgba(54, 89, 69, 0.08);
  background: transparent;
  box-shadow: none;
}

.index-landing .flow-card__header--accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.index-landing .flow-card__intro {
  order: 1;
  min-width: 0;
}

.index-landing .flow-card__header--accordion:hover {
  background: transparent;
}

.index-landing .flow-card__header--accordion:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(54, 89, 69, 0.12);
}

.index-landing .flow-card--accordion.is-open .flow-card__header--accordion {
  background: transparent;
}

.index-landing .flow-card__title {
  font-size: 1.16rem;
}

.index-landing .flow-card__meta {
  margin: 4px 0 0;
  color: var(--landing-text-soft);
  font-size: 0.92rem;
  line-height: 1.38;
}

.index-landing .flow-card__summary-row {
  order: 2;
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  align-items: center;
  justify-items: end;
  min-width: 0;
  padding-left: 12px;
}

.index-landing .flow-card__summary {
  color: rgba(42, 70, 54, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  max-width: 22ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-landing .flow-card__toggle-icon {
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: rgba(42, 70, 54, 0.9);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.index-landing .flow-card--accordion.is-open .flow-card__toggle-icon {
  transform: rotate(-135deg) translateY(-1px);
}

.index-landing .flow-card--accordion.is-collapsed {
  padding-bottom: 0;
}

.index-landing .flow-card--accordion.is-collapsed .flow-card__header {
  margin-bottom: 0;
}

.index-landing .flow-card__body {
  gap: 12px;
}

.index-landing .flow-card--accordion .flow-card__body {
  padding: 6px 0 10px;
  border-top: 1px solid rgba(54, 89, 69, 0.08);
}

.index-landing .flow-card--accordion.is-open .flow-card__body {
  padding-top: 0;
  border-top: 0;
}

.index-landing .flow-card__body[hidden] {
  display: none !important;
}

.index-landing #goalFeedbackMessage {
  color: #4b6354;
  min-height: calc(1.4em * 2);
}

.index-landing .flow-card label {
  color: var(--landing-accent-strong);
}

.index-landing .flow-card #client_goal,
.index-landing .flow-card .field-input,
.index-landing .flow-card .availability-input-half {
  border-radius: 14px;
}

.index-landing .flow-card--goal #client_goal {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(54, 89, 69, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.index-landing .flow-card #client_goal {
  min-height: 88px;
  max-height: 88px;
}

.index-landing .landing-search-shell .flow-block {
  gap: 8px;
}

.index-landing .landing-search-shell label + .button-group {
  margin-top: 0;
}

.index-landing .landing-search-shell .button-group.availability {
  margin-top: 0;
}

.index-landing .landing-search-shell .budget-block #budgetSliderWrapper {
  margin-top: 6px;
  margin-bottom: 10px;
}

.index-landing .landing-search-shell .collab-heading,
.index-landing .landing-search-shell .availability-heading,
.index-landing .landing-search-shell .budget-block > label {
  display: block;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(32, 48, 41, 0.92);
}

.index-landing .flow-card .button-group {
  gap: 8px;
}

.index-landing .flow-card .button-group button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-color: rgba(54, 89, 69, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(32, 48, 41, 0.92);
}

.index-landing .flow-card .button-group button:hover {
  background: rgba(54, 89, 69, 0.06);
  border-color: rgba(54, 89, 69, 0.26);
}

.index-landing .flow-card .button-group button.active {
  background: rgba(54, 89, 69, 0.14) !important;
  border-color: rgba(54, 89, 69, 0.3) !important;
  color: rgba(32, 48, 41, 0.98) !important;
}

.index-landing .flow-card .feedback-message {
  justify-content: flex-start;
}

.index-landing .flow-card .location-radius {
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: center;
}

.index-landing .flow-card #map {
  max-width: 150px;
  min-height: 110px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.index-landing .flow-card .budget-toolbar {
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: stretch;
}

.index-landing .flow-card #budgetPresets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.index-landing .flow-card #budgetPresets button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.index-landing .flow-card .budget-mode-toggle {
  min-height: 38px;
}

.index-landing .flow-card .budget-mode-info {
  min-height: 22px;
}

.index-landing .flow-card .budget-mode-panel {
  max-width: 100%;
}

@container flow-card (max-width: 24rem) {
  .index-landing .flow-card #budgetPresets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-landing .flow-card #budgetPresets #presetCustom {
    display: none;
  }
}

.index-landing .flow-action .match-btn {
  width: 100%;
  margin: 0;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #3f624d 0%, #32503f 100%);
  box-shadow: 0 14px 28px rgba(54, 89, 69, 0.18);
}

.index-landing .flow-action .match-btn:hover {
  background: linear-gradient(180deg, #3e614b 0%, #2d4a3a 100%);
}

.index-landing .flow-action .match-btn[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.82);
  color: var(--landing-accent);
  border: 1px solid rgba(54, 89, 69, 0.28);
  box-shadow: none;
}

.index-landing #matchingSection.section {
  margin: 0;
  padding: 0 !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-stage,
  .landing-copy,
  .landing-search-shell,
  .landing-content-stage__panel,
  .landing-nav a,
  .landing-inline-links a,
  .landing-results-status__toggle {
    animation: none;
    transition: none;
  }
}

@media (min-width: 1800px) {
  :root {
    --landing-shell-total-gap: 120px;
    --landing-shell-max-width: 1560px;
  }

  .landing-stage {
    --landing-stage-pad-right: clamp(48px, 4.8vw, 112px);
    --landing-stage-pad-left: clamp(24px, 2.4vw, 48px);
    --landing-stage-gap: clamp(30px, 3.2vw, 52px);
    --landing-stage-results-search-track: clamp(380px, 27vw, 480px);
  }
}

@media (max-width: 1500px) {
  :root {
    --landing-shell-total-gap: 124px;
  }

  .landing-stage {
    --landing-stage-gap: 18px;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    padding: clamp(18px, 4.8vh, 56px) clamp(48px, 7vw, 108px) 24px clamp(26px, 3.8vw, 60px);
  }

  .landing-copy {
    padding-right: 0;
  }

  .landing-copy__intro,
  .landing-signal-row,
  .landing-outline {
    max-width: 100%;
  }

  .landing-title {
    max-width: 21ch;
  }

  .landing-copy__support {
    max-width: 56ch;
  }

  .landing-outline__text {
    max-width: 46ch;
  }

}

@media (max-width: 1360px) {
  :root {
    --landing-shell-total-gap: 108px;
    --landing-shell-max-width: 1240px;
  }

  .landing-stage {
    --landing-stage-pad-top: clamp(14px, 3.6vh, 42px);
    --landing-stage-pad-right: clamp(30px, 4.2vw, 58px);
    --landing-stage-pad-bottom: 24px;
    --landing-stage-pad-left: clamp(16px, 2.2vw, 32px);
    --landing-stage-gap: 16px;
    --landing-stage-copy-track: minmax(0, 1.1fr);
    --landing-stage-search-track: minmax(400px, 1fr);
    --landing-stage-results-search-track: clamp(340px, 32vw, 420px);
    grid-template-columns: var(--landing-stage-copy-track) var(--landing-stage-search-track);
    padding: var(--landing-stage-pad-top) var(--landing-stage-pad-right) var(--landing-stage-pad-bottom) var(--landing-stage-pad-left);
  }

  .landing-title {
    max-width: 19.4ch;
    font-size: clamp(2.45rem, 1.95rem + 1.25vw, 3.35rem);
  }

  .landing-lead {
    max-width: 54ch;
  }

  .landing-copy__support {
    max-width: 56ch;
  }

  .landing-outline {
    max-width: 44rem;
  }

}

@media (max-width: 1024px) {
  :root {
    --landing-shell-total-gap: 48px;
  }

  .landing-stage {
    --landing-stage-pad-right: var(--landing-header-edge-bleed);
    --landing-stage-pad-left: var(--landing-header-edge-bleed);
    --landing-stage-gap: 14px;
    --landing-stage-copy-track: minmax(0, 1.04fr);
    --landing-stage-search-track: minmax(320px, 1fr);
    --landing-stage-results-search-track: clamp(320px, 44vw, 400px);
    grid-template-columns: var(--landing-stage-copy-track) var(--landing-stage-search-track);
  }
}

@media (max-width: 800px) {
  :root {
    --landing-shell-total-gap: 72px;
    --landing-shell-max-width: var(--landing-max-width);
    --landing-mobile-panel-gap: 14px;
  }

  .landing-mobile-tabs:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
  }

  .landing-stage {
    --landing-stage-pad-top: 10px;
    --landing-stage-pad-right: 0px;
    --landing-stage-pad-bottom: 24px;
    --landing-stage-pad-left: 0px;
    --landing-stage-copy-track: 1fr;
    --landing-stage-search-track: 1fr;
    --landing-stage-results-copy-track: 1fr;
    --landing-stage-results-search-track: 1fr;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--landing-stage-pad-top) var(--landing-stage-pad-right) var(--landing-stage-pad-bottom) var(--landing-stage-pad-left);
  }

  .landing-stage[data-results-layout="visible"] {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--landing-stage-pad-left);
    padding-right: var(--landing-stage-pad-right);
  }

  .landing-stage[data-mobile-view="initial"],
  .landing-stage[data-mobile-view="search"],
  .landing-stage[data-mobile-view="results"] {
    gap: var(--landing-mobile-panel-gap);
  }

  .landing-stage[data-mobile-view="results"] .landing-search-shell {
    display: none;
  }

  .landing-stage[data-mobile-view="results"] .landing-copy {
    display: block;
  }

  .landing-stage[data-mobile-view="results"] .landing-content-stage {
    display: grid;
    gap: 0;
  }

  .landing-stage[data-mobile-view="results"] .landing-content-stage__panel--intro {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
  }

  .landing-stage[data-mobile-view="results"] .landing-content-stage__panel--results {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    margin-top: var(--landing-mobile-panel-gap);
  }

  .landing-copy {
    max-width: none;
    padding: 0;
  }

  .landing-content-stage,
  .landing-content-stage__panel,
  .landing-content-stage__panel--results #matchingSection.section {
    width: 100%;
    max-width: none;
  }

  .landing-stage[data-results-layout="visible"] .landing-results-status {
    padding-left: 0;
    padding-right: 0;
  }

  .landing-title {
    max-width: 22ch;
  }

  .landing-results-status {
    display: none;
  }

  .landing-search-shell {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    padding: 28px;
  }

  .landing-search-shell__title {
    font-size: clamp(1.18rem, 4.8vw, 1.5rem);
    line-height: 1.14;
  }

  .landing-results-status__toggle {
    display: none;
  }

  .landing-inline-links {
    display: none;
  }

  .landing-content-stage[data-view="results"] .landing-content-stage__panel--results,
  .landing-content-stage__panel--results #matchingSection.section {
    max-height: none;
    height: auto;
  }

  .landing-stage[data-mobile-view="results"] .landing-content-stage__panel--results #matchingSection.section {
    padding: 0 !important;
  }

  .landing-content-stage__panel--results #matchResults {
    overflow: visible;
    padding-right: 0;
  }

  .landing-stage[data-mobile-view="results"] .landing-content-stage__panel--results #matchResults,
  .landing-stage[data-mobile-view="results"] .landing-content-stage__panel--results #showMoreStatus {
    width: 100%;
    max-width: none;
  }

  .landing-stage[data-mobile-view="results"] .landing-content-stage__panel--results #showMoreStatus {
    margin-top: 0;
  }

  .index-landing .guided-search {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  :root {
    --landing-shell-total-gap: 32px;
    --landing-mobile-panel-gap: 22px;
    --landing-header-gap: 0px;
    --landing-header-height: 88px;
    --landing-page-bottom-padding: 24px;
    --landing-header-bottom-gap: 10px;
  }

  html {
    scrollbar-gutter: auto;
  }

  body.index-landing {
    overflow-x: hidden;
  }

  .landing-page {
    width: 100%;
    max-width: none;
    padding: var(--landing-page-top-padding) 16px var(--landing-page-bottom-padding);
  }

  .landing-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    top: var(--landing-header-sticky-top);
    min-height: auto;
    margin: 0 0 var(--landing-header-bottom-gap);
    padding: 10px 14px;
    border-radius: 20px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .landing-header.is-scrolled {
    border-color: rgba(54, 89, 69, 0.08);
    background: rgba(248, 246, 240, 0.86);
    box-shadow: 0 12px 24px rgba(24, 39, 31, 0.08);
    backdrop-filter: blur(14px);
  }

  .landing-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px 12px;
  }

  .landing-brand__tagline {
    font-size: 0.92rem;
  }

  .landing-stage {
    gap: var(--landing-mobile-panel-gap);
    padding: 4px 0 20px;
  }

  .landing-title {
    max-width: none;
    font-size: clamp(2rem, 8.2vw, 2.42rem);
    line-height: 1.01;
  }

  .landing-copy__intro {
    gap: 6px;
  }

  .landing-title__line {
    display: block;
  }

  .landing-eyebrow {
    display: none;
  }

  .landing-search-shell__text-line {
    display: inline;
  }

  .landing-lead,
  .landing-copy__support,
  .landing-outline {
    max-width: none;
  }

  .landing-search-shell,
  .index-landing #matchingSection.section {
    border-radius: 24px;
  }

  .landing-search-shell {
    padding: 18px 16px;
  }

  .index-landing .flow-card__header--accordion {
    align-items: flex-start;
  }

  .landing-signal-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .landing-signal {
    padding-left: 16px;
    white-space: nowrap;
  }

  .landing-outline__list {
    gap: 16px;
  }

  .landing-outline__item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }

  .index-landing .flow-card,
  .index-landing #matchingSection.section {
    padding: 16px !important;
  }

  .landing-stage[data-mobile-view="results"] .landing-content-stage__panel--results #matchingSection.section {
    padding: 0 !important;
  }

  .index-landing .guided-search,
  .index-landing .guided-search__filters,
  .index-landing .flow-card,
  .index-landing .flow-card__header,
  .index-landing .flow-card__header--accordion,
  .index-landing .flow-card__body,
  .index-landing .flow-block,
  .index-landing .flow-card__intro {
    min-width: 0;
    max-width: 100%;
  }

  .index-landing .flow-card--accordion .flow-card__body {
    padding: 8px 0 4px;
  }

  .index-landing .flow-card--accordion.is-open .flow-card__body {
    padding-top: 0;
  }

  .index-landing .flow-card__header--accordion {
    padding: 12px 0;
  }

  .index-landing .flow-card .button-group button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.98rem;
  }

  .index-landing .flow-card .budget-mode-toggle {
    min-height: 44px;
  }

  .index-landing .flow-card .budget-mode-info {
    min-height: 22px;
  }

  .index-landing .flow-card .location-radius {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .index-landing .flow-card #map {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  .index-landing .flow-card .budget-toolbar {
    align-items: stretch;
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --landing-shell-total-gap: 28px;
    --landing-header-gap: 0px;
    --landing-header-height: 84px;
    --landing-page-bottom-padding: 22px;
  }

  .landing-page {
    padding: var(--landing-page-top-padding) 14px var(--landing-page-bottom-padding);
  }

  .landing-title {
    font-size: clamp(1.96rem, 7.6vw, 2.18rem);
    max-width: none;
  }

  .landing-title__line {
    display: block;
  }

  .landing-copy__support,
  .landing-outline__text {
    font-size: 1rem;
  }

  .index-landing .flow-card__header--accordion {
    display: block;
    padding: 8px 0;
  }

  .index-landing .flow-card__header--accordion::after {
    content: "";
    display: block;
    clear: both;
  }

  .index-landing .flow-card__summary-row {
    float: right;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: min(48%, 15rem);
    margin: 2px 0 2px 12px;
    padding-left: 0;
  }

  .index-landing .flow-card__summary {
    text-align: right;
    max-width: none;
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .index-landing .flow-card--budget .flow-card__summary-row {
    max-width: min(62%, 17rem);
  }

  .landing-nav a,
  .landing-inline-links a {
    width: auto;
    justify-content: flex-start;
  }

  .landing-inline-links {
    flex-direction: column;
    gap: 18px;
  }

  .landing-signal {
    font-size: 0.82rem;
  }

  .index-landing .flow-card .button-group.collab-buttons {
    grid-template-columns: 1fr;
  }

  .index-landing .flow-card #budgetPresets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .index-landing .flow-card .button-group.collab-buttons button {
    white-space: normal;
  }

  .index-landing .flow-card #budgetPresets button {
    padding-inline: 4px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .index-landing .flow-card .feedback-message {
    justify-content: flex-start;
    text-align: left;
  }

  .index-landing .flow-action .match-btn {
    min-height: 54px;
  }
}
