:root {
  --ink: #17251f;
  --forest: #1c4a3c;
  --blue: #3478e5;
  --blue-light: #eef5ff;
  --surface: #f5f7f5;
  --white: #ffffff;
  --line: #dde3df;
  --muted: #65716b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .7rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 10; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 5vw, 5.5rem); color: var(--forest); background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--forest); text-decoration: none; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 25px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.nav { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); font-size: .92rem; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--blue); }

.hero { min-height: calc(100svh - 76px); display: flex; flex-direction: column; overflow: hidden; background: var(--white); }
.hero-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); padding: 1.5rem clamp(1.25rem, 7vw, 8rem) 0; }
.hero-copy { max-width: 760px; align-self: center; padding-bottom: 1rem; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-style: normal; letter-spacing: -.02em; }
h1 { max-width: 720px; font-size: clamp(3.4rem, 5.2vw, 5.5rem); line-height: 1.02; font-weight: 700; }
.hero-copy p { max-width: 650px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; }
.hero-product { position: relative; height: min(535px, calc(100svh - 235px)); min-height: 430px; display: flex; align-items: flex-end; justify-content: center; }
.phone-backdrop { position: absolute; inset: 6rem -4rem 0; background: linear-gradient(145deg, #f3f8f5, var(--blue-light)); border-radius: 4rem 4rem 0 0; }
.hero-product img { position: relative; z-index: 1; width: min(390px, 88%); max-height: 515px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 26px 32px rgba(23, 37, 31, .15)); }

.brokerages { flex: 0 0 auto; padding: 1.25rem 0 1.45rem; color: var(--white); background: var(--forest); overflow: hidden; }
.brokerages > p { margin: 0 0 1rem; padding: 0 clamp(1.25rem, 5vw, 5.5rem); color: rgba(255,255,255,.72); font-size: .84rem; text-align: center; }
.logo-carousel { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.logo-track { display: flex; width: max-content; animation: logo-scroll 28s linear infinite; }
.logo-group { display: flex; align-items: center; gap: clamp(3.5rem, 7vw, 7.5rem); padding-right: clamp(3.5rem, 7vw, 7.5rem); }
.logo-group img { width: auto; max-width: 170px; height: 35px; object-fit: contain; }
.logo-group img[alt="Keller Williams"] { height: 42px; }
.logo-group img[alt="Intero Real Estate"] { height: 42px; }
.logo-group img[alt="Coldwell Banker"] { height: 46px; }
.logo-group img[alt="Redfin"] { height: 32px; }
.logo-group[aria-hidden="true"] img:nth-child(1) { height: 42px; }
.logo-group[aria-hidden="true"] img:nth-child(3) { height: 42px; }
.logo-group[aria-hidden="true"] img:nth-child(4) { height: 46px; }
.logo-group[aria-hidden="true"] img:nth-child(5) { height: 32px; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 clamp(1.25rem, 5vw, 5.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.results article { min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 2rem clamp(1rem, 3vw, 3.5rem); border-right: 1px solid var(--line); }
.results article:first-child { padding-left: 0; }
.results article:last-child { border: 0; }
.results strong { font-size: clamp(2.6rem, 4vw, 4.4rem); letter-spacing: -.025em; line-height: 1; }
.results span { margin-top: .75rem; color: var(--muted); font-size: .95rem; }

.capabilities { padding: clamp(5.5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5.5rem); background: var(--surface); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; max-width: 76rem; margin: 0 auto 4.5rem; }
.section-heading h2 { max-width: 650px; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: 1; font-weight: 700; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.feature-list { max-width: 76rem; margin: auto; border-top: 1px solid #cfd7d2; }
.feature { min-height: 410px; display: grid; grid-template-columns: 70px minmax(260px, .7fr) minmax(360px, 1fr); gap: clamp(1.25rem, 4vw, 4.5rem); align-items: center; padding: 3rem 0; border-bottom: 1px solid #cfd7d2; }
.feature-number { align-self: start; width: 36px; height: 36px; display: grid; place-items: center; color: var(--forest); background: var(--white); border: 1px solid #cfd7d2; border-radius: 50%; font-size: .9rem; }
.feature-copy h3 { font-size: clamp(2.2rem, 3.5vw, 3.7rem); line-height: 1.02; font-weight: 650; }
.feature-copy p { max-width: 470px; margin: 1.25rem 0 0; color: var(--muted); line-height: 1.7; }
.document-preview, .task-preview, .lead-preview { min-height: 290px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; }
.paper { position: relative; width: min(330px, 75%); min-height: 245px; padding: 2rem; background: #fbfbf7; border: 1px solid #dcded9; box-shadow: 0 16px 35px rgba(23,37,31,.1); transform: rotate(-1.5deg); }
.paper-header { display: flex; justify-content: space-between; margin-bottom: 1.5rem; color: #7a827e; font-size: .7rem; }
.paper > strong { display: block; margin-bottom: 1.3rem; font-size: .9rem; }
.paper i { display: block; width: 100%; height: 5px; margin: .6rem 0; background: #dde1dd; }
.paper i.short { width: 65%; }.paper i.medium { width: 80%; }
.paper mark { display: block; width: max-content; margin: 1rem 0; padding: .5rem .65rem; color: #22579f; background: #e8f1ff; border-left: 2px solid var(--blue); font-size: .75rem; }
.task-preview { padding: 2.5rem; place-items: stretch; align-content: center; }
.task-preview div { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.task-preview div:last-child { border: 0; }
.check, .pending { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; color: white; background: var(--forest); border-radius: 50%; font-size: .8rem; }
.pending { background: white; border: 2px solid #aeb9b3; }
.lead-preview { grid-template-columns: auto 1fr; place-content: center; gap: 1rem; padding: 2.5rem; }
.avatar { width: 54px; height: 54px; display: grid; place-items: center; color: #24559d; background: #e7f0ff; border-radius: 50%; font-weight: 650; }
.lead-preview strong, .lead-preview span { display: block; }.lead-preview span { margin-top: .4rem; color: var(--muted); font-size: .9rem; }

footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 2rem; padding: 3.5rem clamp(1.25rem, 5vw, 5.5rem); color: var(--muted); background: var(--white); border-top: 1px solid var(--line); font-size: .85rem; }
footer p { margin: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-main { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-copy { padding-bottom: 0; }
  .hero-product { height: 610px; }
  .phone-backdrop { inset: 4rem 0 0; }
  .section-heading { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 52px 1fr; }
  .feature > :last-child { grid-column: 2; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { height: 66px; }
  .brand { font-size: 1.18rem; }
  .nav { font-size: .86rem; }
  .nav a:first-child { display: none; }
  .hero-main { gap: 1.5rem; padding: 4rem 1.25rem 0; }
  h1 { font-size: clamp(2.85rem, 12vw, 3.6rem); line-height: 1.04; }
  .hero-copy p { font-size: 1rem; }
  .hero-product { height: 540px; }
  .hero-product img { width: min(360px, 92%); max-height: 520px; }
  .phone-backdrop { inset: 3rem -1.25rem 0; border-radius: 2.5rem 2.5rem 0 0; }
  .brokerages { padding: 1.4rem 0 1.6rem; }
  .brokerages > p { margin-bottom: 1.25rem; font-size: .8rem; }
  .logo-group { gap: 3.5rem; padding-right: 3.5rem; }
  .logo-group img { max-width: 145px; height: 34px; }
  .results { grid-template-columns: 1fr; }
  .results article, .results article:first-child { min-height: 130px; padding: 1.6rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { margin-bottom: 3rem; }
  .feature { grid-template-columns: 42px 1fr; min-height: 0; padding: 3rem 0; }
  .feature > :last-child { grid-column: 1 / -1; }
  .document-preview, .task-preview, .lead-preview { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .logo-track { animation: none; }
}

@keyframes logo-scroll {
  to { transform: translateX(-50%); }
}
