:root {
  --ink: #17201f;
  --muted: #5f6d68;
  --line: #dce5e1;
  --paper: #fbfaf6;
  --white: #ffffff;
  --mist: #eef5f1;
  --teal: #096b68;
  --teal-dark: #064f4d;
  --amber: #d88a24;
  --cranberry: #9d294d;
  --blue: #315f8f;
  --shadow: 0 18px 45px rgba(12, 33, 30, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-dark);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 229, 225, 0.9);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 32, 30, 0.85), rgba(8, 32, 30, 0.46) 52%, rgba(8, 32, 30, 0.22)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center/cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 246, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 112px 0 96px;
  max-width: 1120px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 700px;
  margin: 1.35rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  font-weight: 520;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-note {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.primary:hover {
  color: var(--white);
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.button.light {
  background: var(--white);
  color: var(--teal-dark);
}

.button.small {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  background: var(--teal);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.section {
  padding: 86px 0;
}

.intro-section {
  padding-top: 64px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.section h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.copy-block p:first-child {
  margin-top: 0;
}

.section-head {
  max-width: 800px;
  margin-bottom: 2rem;
}

.section-head.narrow {
  max-width: 680px;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.tool-section {
  background: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.filter-chip {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--teal);
  background: var(--mist);
  color: var(--teal-dark);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

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

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #102c2a;
  color: var(--white);
}

.comparison-table tbody th {
  width: 19%;
  color: var(--teal-dark);
  background: #f7fbf9;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card,
.quiz-card,
.contact-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(12, 33, 30, 0.07);
}

.review-card {
  padding: 1.25rem;
}

.review-card h3 {
  margin: 0.8rem 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.18;
}

.review-card h4 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
}

.review-card ul {
  padding-left: 1.1rem;
  margin: 0.35rem 0 0;
}

.service-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
}

.service-label.redfin {
  background: var(--cranberry);
}

.service-label.realtor {
  background: var(--blue);
}

.trulia-section {
  background: var(--mist);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.quiz-section {
  background:
    linear-gradient(135deg, rgba(9, 107, 104, 0.08), rgba(216, 138, 36, 0.11)),
    var(--paper);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.quiz-card {
  padding: 1.25rem;
}

.quiz-card label,
.contact-form label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.quiz-card select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

.quiz-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--teal-dark);
  font-weight: 760;
}

.method-section {
  background: var(--white);
}

.source-list {
  padding-left: 1.1rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin-bottom: 0;
}

.cta-band {
  padding: 54px 0;
  color: var(--white);
  background: #102c2a;
}

.cta-band .section-kicker {
  color: #f2b55f;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer {
  padding: 54px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  background: #111817;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-size: 1rem;
}

.site-footer h2 + a,
.site-footer a + a {
  display: block;
  margin-top: 0.35rem;
}

.legal-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
}

.compact-footer {
  padding-top: 24px;
}

.page-hero {
  padding: 92px 0 56px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 43, 41, 0.92), rgba(12, 43, 41, 0.72)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.45rem;
}

.legal-content h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.1rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 1.2rem;
}

.contact-form,
.contact-card {
  padding: 1.25rem;
}

.contact-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.contact-card h2:not(:first-child) {
  margin-top: 1.5rem;
}

.form-status {
  min-height: 1.5rem;
  color: var(--teal-dark);
  font-weight: 750;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  width: min(720px, calc(100% - 32px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-inner {
    padding: 96px 0 72px;
  }

  .two-column,
  .split-panel,
  .quiz-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner,
  .legal-line,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner div {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .section {
    padding: 62px 0;
  }

  .hero-actions,
  .filter-bar {
    flex-direction: column;
  }

  .hero-actions .button,
  .filter-chip {
    width: 100%;
  }
}
