:root {
  --ink: #15201f;
  --muted: #61706c;
  --paper: #f8f4ec;
  --white: #ffffff;
  --sage: #6c8c72;
  --sage-dark: #254d3d;
  --clay: #b96548;
  --sun: #d9a74f;
  --sky: #d8e9e8;
  --plum: #3b2c39;
  --line: rgba(23, 35, 38, 0.14);
  --shadow: 0 22px 60px rgba(23, 35, 38, 0.18);
  --soft-shadow: 0 18px 42px rgba(23, 35, 38, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 32, 31, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 32, 31, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 46px 46px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(248, 244, 236, 0.84);
  backdrop-filter: blur(18px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--clay), var(--sun), var(--sage));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    var(--sage-dark);
  color: var(--white);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(37, 77, 61, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-cta,
.button,
.quick-search button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button::after,
.nav-cta::after,
.quick-search button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.24) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.button:hover::after,
.button:focus-visible::after,
.nav-cta:hover::after,
.nav-cta:focus-visible::after,
.quick-search button:hover::after,
.quick-search button:focus-visible::after {
  transform: translateX(120%);
}

.nav-cta {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
}

.button {
  padding: 12px 18px;
}

.button svg,
.nav-cta svg,
.quick-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 42%),
    var(--sage-dark);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(52, 92, 73, 0.24);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible,
.quick-search button:hover,
.quick-search button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(23, 35, 38, 0.16);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(20px, 4vw, 54px);
  align-content: end;
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 11vw, 128px) clamp(18px, 4vw, 56px) clamp(20px, 5vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 22, 22, 0.78), rgba(19, 32, 30, 0.42) 48%, rgba(17, 28, 29, 0.04)),
    url("assets/homeground-hero.png") center / cover no-repeat;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(23, 35, 38, 0.5), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.26);
  animation: riseIn 760ms ease both;
}

.hero-compass {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 18px;
  max-width: 390px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(18, 29, 29, 0.48);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  animation: riseIn 760ms 180ms ease both;
}

.hero-compass h2 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.04;
}

.hero-compass p {
  margin-bottom: 0;
}

.compass-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: min(230px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 31%, transparent 32%),
    conic-gradient(from 20deg, var(--sun), var(--clay), var(--sage), #dcecf0, var(--sun));
  box-shadow:
    inset 0 0 0 12px rgba(21, 32, 31, 0.54),
    inset 0 0 0 14px rgba(255, 255, 255, 0.18),
    0 18px 46px rgba(0, 0, 0, 0.22);
}

.compass-dial::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  animation: compassSweep 8s linear infinite;
}

.compass-dial::after {
  content: "";
  width: 34%;
  height: 34%;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
    var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.compass-point {
  position: absolute;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compass-point.north {
  top: 18px;
}

.compass-point.east {
  right: 14px;
}

.compass-point.south {
  bottom: 18px;
}

.compass-point.west {
  left: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2d78c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.quick-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 10px;
  width: min(980px, 100%);
  grid-column: 1 / -1;
  margin-top: clamp(36px, 7vw, 82px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: riseIn 760ms 120ms ease both;
}

.quick-search label {
  display: grid;
  gap: 4px;
}

.quick-search span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.quick-search select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 10px;
}

.quick-search button {
  align-self: end;
  min-width: 112px;
  background: var(--sage-dark);
  color: var(--white);
}

.disclosure-band {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, var(--ink), var(--plum));
  color: rgba(255, 255, 255, 0.84);
}

.disclosure-band svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--sun);
}

.disclosure-band p {
  max-width: 1160px;
  margin: 0;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p,
.intro-grid p,
.network-copy p,
.partner-section p {
  color: var(--muted);
  font-size: 1.02rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  max-width: none;
  align-items: end;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.feature-row,
.idea-grid,
.guide-grid,
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-row article,
.idea-grid article,
.guide-grid article,
.brief-panel,
.property-card,
.network-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
}

.feature-row article,
.idea-grid article,
.guide-grid article,
.property-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.feature-row article:hover,
.idea-grid article:hover,
.guide-grid article:hover,
.property-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 101, 72, 0.36);
  box-shadow: 0 24px 54px rgba(23, 35, 38, 0.14);
}

.feature-row article {
  min-height: 190px;
  padding: 22px;
}

.feature-row svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--sage-dark);
}

.ideas-section {
  background: #f2eee5;
}

.idea-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.idea-grid article {
  min-height: 230px;
  padding: 22px;
}

.idea-grid svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--clay);
}

.idea-grid p {
  color: var(--muted);
}

.finder-section {
  background:
    linear-gradient(180deg, rgba(216, 233, 232, 0.94), rgba(229, 238, 235, 0.76)),
    var(--sky);
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 22px;
  align-items: start;
}

.lead-form {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 750;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfdfb;
  color: var(--ink);
  padding: 12px 13px;
  font-weight: 500;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.quick-search select:focus {
  outline: 3px solid rgba(189, 115, 84, 0.28);
  border-color: var(--clay);
}

.consent {
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start;
  color: var(--muted) !important;
  font-weight: 600 !important;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  width: 100%;
}

.brief-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.brief-output {
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  background: #f4f1e9;
  color: var(--muted);
  white-space: pre-wrap;
}

.crm-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef4ef;
  color: var(--sage-dark);
  font-weight: 750;
}

.crm-status.error {
  background: #f8ebe4;
  color: #8c3f28;
}

.directory-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(140px, 0.75fr));
  gap: 10px;
  margin-bottom: 14px;
}

.directory-tools input,
.directory-tools select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  padding-left: 40px;
}

.directory-tools input:focus,
.directory-tools select:focus {
  outline: 3px solid rgba(189, 115, 84, 0.28);
  border-color: var(--clay);
}

.directory-count {
  min-height: 24px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 750;
}

.property-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  background: rgba(255, 255, 255, 0.86);
}

.property-image {
  position: relative;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  transition: transform 400ms ease, filter 400ms ease;
}

.property-card:hover .property-image {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.03);
}

.property-image::after {
  content: "Directory record";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(21, 32, 31, 0.58);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.image-a {
  background-image:
    linear-gradient(rgba(52, 92, 73, 0.12), rgba(52, 92, 73, 0.12)),
    url("assets/homeground-hero.png");
}

.image-b {
  background:
    linear-gradient(135deg, rgba(220, 236, 240, 0.88), rgba(232, 185, 95, 0.32)),
    linear-gradient(45deg, transparent 48%, rgba(52, 92, 73, 0.28) 48% 52%, transparent 52%);
}

.image-c {
  background:
    radial-gradient(circle at 18% 20%, rgba(232, 185, 95, 0.7), transparent 28%),
    linear-gradient(135deg, #d7e3c8, #8ea98a 48%, #476b5a);
}

.image-d {
  background:
    linear-gradient(120deg, rgba(23, 35, 38, 0.04), rgba(23, 35, 38, 0.12)),
    repeating-linear-gradient(90deg, #f8f4ea 0 28px, #dfd8ca 28px 30px),
    linear-gradient(135deg, #8fa982, #c7d6be);
}

.property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.compare-add.is-selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.source-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 42px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.fit-signal {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(37, 77, 61, 0.15);
  border-radius: 8px;
  background: #f5f2ea;
}

.fit-signal div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fit-signal span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fit-signal strong {
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.signal-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 32, 31, 0.12);
}

.signal-track span {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--clay), var(--sun), var(--sage-dark));
}

.fit-signal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.source-line svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--sage-dark);
}

.property-card p {
  color: var(--muted);
}

.property-card dl {
  display: grid;
  gap: 10px;
  margin: auto 0 18px;
}

.property-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.property-card dt {
  color: var(--muted);
  font-weight: 700;
}

.property-card dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-section {
  background:
    linear-gradient(180deg, #f2eee5, #ece5d8);
}

.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -10px 0 18px;
}

.compare-toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 48px rgba(23, 35, 38, 0.11);
}

.compare-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    var(--ink);
  color: var(--white);
}

.compare-table tbody th {
  width: 22%;
  color: var(--muted);
}

.guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-grid article {
  min-height: 230px;
  padding: 22px;
}

.guide-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--clay);
  font-weight: 900;
}

.guide-grid p {
  color: var(--muted);
}

.network-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(310px, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background:
    linear-gradient(135deg, var(--ink), #21352e 58%, var(--plum));
  color: var(--white);
}

.network-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.network-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.network-steps div {
  min-height: 150px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.network-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 900;
}

.network-steps p {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.partner-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.partner-section div {
  max-width: 780px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  background: #e7e0d3;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    background-position: center center;
  }

  to {
    background-position: 58% center;
  }
}

@keyframes compassSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  max-width: 680px;
  margin: 0;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .quick-search,
  .directory-tools,
  .hero,
  .intro-grid,
  .finder-layout,
  .split-heading,
  .network-section,
  .partner-section {
    grid-template-columns: 1fr;
  }

  .hero-compass {
    align-self: auto;
    max-width: none;
  }

  .feature-row,
  .idea-grid,
  .property-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-panel {
    position: static;
  }

  .network-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-top: 72px;
    background-position: 62% center;
  }

  .hero-compass {
    padding: 16px;
  }

  .compass-dial {
    width: min(190px, 62vw);
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .hero-actions,
  .card-actions,
  .compare-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search,
  .form-grid,
  .idea-grid,
  .guide-grid,
  .network-steps {
    grid-template-columns: 1fr;
  }

  .disclosure-band {
    align-items: flex-start;
  }

  .property-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ---------- Subpages (legal / info) ---------- */
.page-main {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) 90px;
}

.page-main h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 6px 0 4px;
}

.page-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 30px;
}

.page-main h2 {
  margin: 38px 0 10px;
  font-size: 1.25rem;
}

.page-main p,
.page-main li {
  color: #3d4a47;
}

.page-main ul {
  padding-left: 20px;
  margin: 10px 0 18px;
}

.page-main li {
  margin-bottom: 6px;
}

.page-main a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--sage-dark);
}

.page-callout {
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Form validation ---------- */
.form-error {
  display: none;
  color: #a33a2a;
  font-size: 0.85rem;
  margin-top: 4px;
}

label.invalid .form-error {
  display: block;
}

label.invalid input,
label.invalid select {
  border-color: #a33a2a;
  outline-color: #a33a2a;
}

/* ---------- Why Homeground ---------- */
.why-section {
  max-width: 820px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.why-section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 10px 0 18px;
}

.why-copy {
  color: #3d4a47;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 14px;
  max-width: 640px;
}

/* ---------- Buyer personas ---------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.persona-grid article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.persona-grid article i {
  width: 26px;
  height: 26px;
  color: var(--sage-dark);
}

.persona-grid h3 {
  margin: 0;
}

.persona-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #3d4a47;
}

.persona-grid li {
  margin-bottom: 6px;
}

.persona-grid .button {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Area guides ---------- */
.area-guides {
  margin-top: 34px;
}

.area-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.area-links a {
  display: block;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--soft-shadow);
  transition: transform 0.15s ease;
}

.area-links a:hover {
  transform: translateY(-2px);
}

/* ---------- Changelog ---------- */
.changelog-entry {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: var(--soft-shadow);
}

.changelog-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.changelog-head time {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: auto;
}

.changelog-version {
  background: var(--sage-dark);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
}
