:root {
  color-scheme: dark;
  --ink: #101a22;
  --sheet: #17242e;
  --line: #2a3a46;
  --line-soft: #24323c;
  --green: #58b95c;
  --text: #eaf0f4;
  --muted: #aab7c2;
  --faint: #7d8c98;
  --danger: #e07a7a;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
}

img { max-width: none; }

button, input { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fit {
  width: 100%;
  overflow: hidden;
}

.board { transform-origin: 0 0; }

.shot { position: relative; }
.shot.clip { overflow: hidden; }

.shot > img.section { display: block; }

.desktop-board { width: 1440px; }
.desktop-board .section { width: 1440px; height: auto; }

.phone-board { width: 390px; }
.phone-board .section { width: 390px; height: auto; }

@media (min-width: 768px) {
  .phone-fit { display: none; }
}

@media (max-width: 767px) {
  .desktop-fit { display: none; }
}

.hit {
  position: absolute;
  background: transparent;
  color: transparent;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.hit:focus-visible,
.field:focus-visible,
.choice:focus-within,
.sheet-close:focus-visible,
.sheet-submit:focus-visible,
.sheet-cancel:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.desktop-nav {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 1440px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 250px 0 520px;
}

.desktop-nav a {
  position: static;
  height: 36px;
  color: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 36px;
  white-space: nowrap;
}

.desktop-launch {
  position: absolute;
  z-index: 4;
  top: 26px;
  right: 72px;
  width: 176px;
  height: 40px;
}

.hero-email {
  position: absolute;
  z-index: 4;
  left: 92px;
  top: 586px;
  width: 276px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101a22;
  color: #fff;
  padding: 0 16px 0 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%237d8c98' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 7 9-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
}

.hero-email::placeholder { color: #7d8c98; }

.hero-submit {
  position: absolute;
  z-index: 4;
  left: 378px;
  top: 586px;
  width: 214px;
  height: 54px;
}

.hero-scene,
.disc-clip,
.desktop-trust,
.compare-slot,
.phone-stage,
.phone-trust,
.phone-homes {
  display: none;
}

.hero-scene {
  position: absolute;
  z-index: 2;
  left: 600px;
  top: 70px;
  width: 820px;
  height: 940px;
  overflow: hidden;
  background: #101a22;
}

.hero-scene-zoom {
  position: absolute;
  inset: 0;
  background: url("assets/desktop/hero.webp") -600px -70px / 1440px 1020px no-repeat;
  transform-origin: 58% 58%;
}

.disc-clip {
  position: absolute;
  z-index: 2;
  left: 72px;
  top: 321.6px;
  width: 1296px;
  height: 760px;
  overflow: hidden;
  pointer-events: none;
}

.disc-mask {
  position: absolute;
  background: #142029;
}

.disc-mask.clusters { left: 36px; top: 64px; width: 340px; height: 700px; }
.disc-mask.labeled { left: 420px; top: 42px; width: 386px; height: 780px; }

.disc-sprite {
  position: absolute;
  z-index: 2;
  background: url("assets/desktop/discovery.webp") 0 0 / 1440px auto no-repeat;
  transform-origin: center center;
}

.disc-sprite.clusters {
  left: 36px;
  top: 64px;
  width: 340px;
  height: 700px;
  background-position: -108px -385.6px;
}

.disc-sprite.labeled {
  left: 420px;
  top: 42px;
  width: 386px;
  height: 780px;
  background-position: -492px -363.6px;
}

.trust-stage {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  background: #101a22;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.desktop-trust {
  left: 72px;
  top: 1140px;
  width: 640px;
  height: 400px;
}

.trust-score,
.trust-sources {
  position: absolute;
  display: block;
  object-fit: cover;
  object-position: left top;
  border-radius: 16px;
}

.trust-score { left: 28px; top: 36px; width: 280px; height: 250px; }
.trust-sources { left: 340px; top: 36px; width: 270px; height: 250px; }

.trust-gap {
  position: absolute;
  left: 28px;
  top: 310px;
  width: 280px;
  margin: 0;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.compare-slot {
  position: absolute;
  z-index: 2;
  height: 110px;
  background: #131e27;
  overflow: hidden;
}

.compare-slot.apt { left: 716px; top: 385px; width: 217px; }
.compare-slot.house { left: 933px; top: 385px; width: 217px; }

.compare-slot img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: left top;
}

.invite-email {
  position: absolute;
  z-index: 3;
  left: 868px;
  top: 292px;
  width: 230px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  padding: 0 12px 0 36px;
}

.invite-email::placeholder { color: transparent; }

.invite-submit {
  position: absolute;
  z-index: 3;
  left: 1108px;
  top: 286px;
  width: 168px;
  height: 56px;
}

.footer-policies {
  position: absolute;
  z-index: 2;
  left: 1080px;
  top: 0;
  width: 300px;
  height: 230px;
}

.footer-policies a {
  position: absolute;
  left: 0;
  width: 300px;
  height: 24px;
  color: transparent;
  font-size: 13px;
  line-height: 24px;
  font-weight: 600;
}

.footer-policies a:nth-child(1) { top: 88px; }
.footer-policies a:nth-child(2) { top: 116px; }
.footer-policies a:nth-child(3) { top: 144px; }
.footer-policies a:nth-child(4) { top: 172px; }
.footer-policies a:nth-child(5) { top: 200px; }

.phone-launch {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 16px;
  width: 168px;
  height: 40px;
}

.phone-hero-launch {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 78px;
  width: 220px;
  height: 52px;
}

.phone-stage {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  background: #101a22;
}

.phone-stage.hero { left: 61px; top: 8px; width: 268px; height: 548px; }
.phone-stage.discovery { left: 61px; top: 59px; width: 268px; height: 548px; }

.phone-zoom {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 390px auto;
}

.phone-stage.hero .phone-zoom { background-position: -61px -8px; }
.phone-stage.discovery .phone-zoom { background-position: -61px -59px; }

.phone-trust {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 1614px;
  width: 350px;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
}

.phone-trust .trust-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: 400px;
  transform: scale(0.546875);
  transform-origin: 0 0;
  border-radius: 16px;
}

.phone-homes {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 258px;
  width: 350px;
  height: 220px;
  background: #101a22;
  border-radius: 18px;
}

.phone-homes img {
  position: absolute;
  top: 16px;
  width: 156px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
}

.phone-homes .apt { left: 12px; }
.phone-homes .house { left: 182px; }

.phone-homes p {
  position: absolute;
  margin: 0;
  width: 156px;
}

.phone-homes .apt-name { left: 0; top: 140px; color: #fff; font-size: 13px; font-weight: 700; }
.phone-homes .apt-kind { left: 0; top: 160px; color: var(--muted); font-size: 11px; }
.phone-homes .house-name { left: 194px; top: 140px; color: #fff; font-size: 13px; font-weight: 700; }
.phone-homes .house-kind { left: 194px; top: 160px; color: var(--muted); font-size: 11px; }

.phone-signup-launch {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: 36px;
  height: 56px;
}

.phone-policies {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 0;
  width: 350px;
  height: 140px;
}

.phone-policies a {
  position: absolute;
  left: 0;
  width: 350px;
  height: 24px;
  color: transparent;
  font-size: 13px;
  line-height: 24px;
  font-weight: 600;
}

.phone-policies a:nth-child(1) { top: 498px; }
.phone-policies a:nth-child(2) { top: 522px; }
.phone-policies a:nth-child(3) { top: 548px; }
.phone-policies a:nth-child(4) { top: 574px; }
.phone-policies a:nth-child(5) { top: 600px; }

.motion-hero-scene { animation: heroScene 900ms var(--ease-out) both; }
.motion-discovery { animation: discoveryIn 1.2s var(--ease-out) both; }
.motion-trust-score { animation: trustScore 1.9s var(--ease-out) both; }
.motion-trust-sources { animation: trustSources 1.9s var(--ease-out) both; }
.motion-trust-gap { animation: trustGap 1.9s var(--ease-out) both; }
.motion-compare-apt { animation: compareApt 800ms var(--ease-in-out) both; }
.motion-compare-house { animation: compareHouse 800ms var(--ease-in-out) both; }
.motion-phone-hero { animation: phoneHero 900ms var(--ease-out) both; }
.motion-phone-discovery { animation: phoneDiscovery 1.2s var(--ease-out) both; }
.motion-phone-apt { animation: phoneApt 800ms var(--ease-in-out) both; }
.motion-phone-house { animation: phoneHouse 800ms var(--ease-in-out) both; }

@keyframes heroScene {
  from { transform: translate(28px, 64px) rotate(-7deg) scale(0.86); }
}

@keyframes discoveryIn {
  from { transform: translateY(40px) scale(0.82) rotate(-5deg); }
}

@keyframes trustScore {
  from { width: 250px; height: 168px; }
}

@keyframes trustSources {
  from { left: 28px; top: 220px; width: 580px; height: 110px; }
}

@keyframes trustGap {
  from { opacity: 0; }
}

@keyframes compareApt {
  from { transform: translateX(-88px); }
}

@keyframes compareHouse {
  from { transform: translateX(94px); }
}

@keyframes phoneHero {
  from { transform: translate(18px, 64px) rotate(-9deg) scale(0.784); }
}

@keyframes phoneDiscovery {
  from { transform: translate(12px, 48px) rotate(-7deg) scale(0.82); }
}

@keyframes phoneApt {
  from { transform: translateX(-12px); }
}

@keyframes phoneHouse {
  from { transform: translateX(32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .motion-hero-scene,
  .motion-discovery,
  .motion-trust-score,
  .motion-trust-sources,
  .motion-trust-gap,
  .motion-compare-apt,
  .motion-compare-house,
  .motion-phone-hero,
  .motion-phone-discovery,
  .motion-phone-apt,
  .motion-phone-house,
  .sheet {
    animation: none !important;
  }
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 10, 14, 0.76);
}

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

.sheet {
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--sheet);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  padding: 28px 28px 24px;
}

.scrim.is-open .sheet { animation: sheetIn 500ms var(--ease-out) both; }
.scrim.is-closing .sheet { animation: sheetOut 500ms var(--ease-out) both; }

@keyframes sheetIn {
  from { transform: translateY(110%); }
}

@keyframes sheetOut {
  to { transform: translateY(110%); }
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.38;
}

.sheet h2 {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.sheet-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #101a22;
  color: #c5d0d8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sheet-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.field-label {
  display: block;
  margin: 22px 0 8px;
  color: #c5d0d8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.field {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101a22;
  color: #fff;
  padding: 0 14px;
}

.sheet.is-invalid .field { border-color: var(--danger); }

.field-error {
  display: none;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.sheet.is-invalid .field-error,
.sheet.is-failure .send-error { display: block; }

.send-error {
  display: none;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.optional {
  margin: 16px 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.agent-q {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.agent-help {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #101a22;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.choice input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 2px solid #3d5160;
  border-radius: 50%;
  background: transparent;
}

.choice input:checked {
  border-color: var(--green);
  box-shadow: inset 0 0 0 3px #101a22, inset 0 0 0 8px var(--green);
}

.sheet-submit {
  display: flex;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #101a22;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sheet-cancel {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.fine {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

.sheet.is-success .form-body,
.sheet.is-success .sheet-lead,
.sheet.is-success .eyebrow,
.sheet.is-success #signup-title,
.sheet.is-failure .sheet-lead { display: none; }

.success-body { display: none; }

.sheet.is-success .success-body { display: block; }

.success-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: #1d3528;
  color: var(--green);
  font-weight: 700;
}

.success-body h2 { margin-top: 18px; }

.success-body p {
  margin: 10px 0 0;
  color: #c5d0d8;
  font-size: 15px;
  line-height: 1.5;
}

.policy {
  min-height: 100vh;
  background: #0c141b;
  color: var(--text);
}

.policy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px;
  border-bottom: 1px solid #1e2d38;
}

.policy-bar a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.policy main {
  max-width: 720px;
  padding: 48px 24px 80px;
}

.policy h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.policy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
