/* Footing, the landing page. Concept: a clear morning on a new street. A pale sky ground, spruce green for
   type and structure, and the app's burnt orange kept for the one thing to press. The hero is the product's own
   idea made visible: a plan sheet that stands up into a house. Photographs are prints with soft corners. */
:root {
  --sky: #e9f1f3;            /* page ground */
  --cloud: #f8fbfb;          /* raised surfaces */
  --spruce: #173b33;         /* headings, structure */
  --ink: #18221f;            /* body text */
  --moss: #55685f;           /* secondary text */
  --rule: #cddbdb;           /* hairlines */
  --ember: #c4501a;          /* the app's accent: primary actions only */
  --ember-deep: #a84110;
  --glow: #ffd58a;           /* lit windows */
  --m-concrete: #7d8794; --m-wood: #b98545; --m-panel: #8f6a43; --m-insul: #b5677f; --m-roof: #6a6787; --m-win: #5687b0;
  --f-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --r-photo: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
ol { list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); color: var(--spruce); text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -.03em; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn.solid { background: var(--ember); color: #fff; box-shadow: 0 8px 20px -10px rgba(168, 65, 16, .8); }
.btn.solid:hover { background: var(--ember-deep); transform: translateY(-1px); }
.btn.quiet { background: transparent; color: var(--spruce); }
.btn.quiet:hover { background: rgba(23, 59, 51, .08); }
.btn.line { background: var(--cloud); color: var(--spruce); box-shadow: inset 0 0 0 1.5px var(--spruce); }
.btn.line:hover { background: #fff; transform: translateY(-1px); }
.btn.glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255, 255, 255, .28); }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gut); background: color-mix(in srgb, var(--sky) 82%, transparent); backdrop-filter: blur(12px); }
.mark { display: inline-flex; align-items: center; gap: 9px; color: var(--spruce); text-decoration: none; font: 800 24px/1 var(--f-display); letter-spacing: -.02em; }
.mark.small { font-size: 17px; gap: 7px; }
.nav-acts { display: flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(16px, 3vw, 40px) var(--gut) clamp(40px, 6vw, 88px); min-height: min(860px, calc(100vh - 66px)); }
.hero-copy { max-width: 34rem; }
.lead { margin-top: 22px; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.5; color: var(--ink); max-width: 31em; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-copy .hero-acts { margin-top: 40px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--moss); }
/* the hero's proof: the three figures that say how accurate it is */
.hero-proof { display: grid; grid-template-columns: repeat(4, max-content); gap: clamp(18px, 2.4vw, 34px); margin: clamp(30px, 4vw, 44px) 0 0; }
.hero-proof div { border-top: 3px solid var(--spruce); padding-top: 12px; }
.hero-proof dt { font: 800 clamp(1.8rem, 2.7vw, 2.5rem)/1 var(--f-display); letter-spacing: -.035em; color: var(--spruce); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-proof dt span { font-size: .55em; letter-spacing: -.01em; margin-left: 1px; }
.hero-proof dd { margin: 8px 0 0; color: var(--spruce); font-size: 14.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }

.stage { position: relative; aspect-ratio: 10 / 9; max-height: 760px; width: 100%; justify-self: end; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, #fdf3df 0%, #dcebf0 46%, #c9dfe2 100%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.stage canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.tags li { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .93); color: var(--ink); font: 600 13px/1 var(--f-body); white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(23, 59, 51, .55); opacity: 0; transition: opacity .35s; will-change: transform; }
.tags li.on { opacity: 1; }
.tags li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tally { position: absolute; left: 18px; bottom: 18px; display: grid; gap: 5px; padding: 14px 18px 15px; border-radius: 16px; min-width: 250px;
  background: rgba(255, 255, 255, .93); box-shadow: 0 10px 28px -14px rgba(23, 59, 51, .6); font-variant-numeric: tabular-nums; }
.tally-n { font: 500 15px/1 var(--f-body); color: var(--moss); }
.tally-n b { font: 800 34px/1 var(--f-display); letter-spacing: -.02em; color: var(--spruce); margin-right: 3px; }
.tally-l { font-size: 12.5px; color: var(--moss); }
.tally-bar { display: block; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; margin-top: 3px; }
.tally-bar i { display: block; height: 100%; width: 0; background: var(--ember); }
.replay { position: absolute; right: 16px; bottom: 18px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .93); color: var(--spruce); font: 600 13px/1 var(--f-body); opacity: 0; transition: opacity .3s; }
.replay.on { opacity: 1; }
.replay:hover { background: #fff; }

/* ---------------------------------------------------------------- street of homes */
.street { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 80px); }
.street h2 { padding: 0 var(--gut); max-width: 22em; margin-bottom: clamp(22px, 3vw, 38px); }
.rail { overflow: hidden; padding: 7px 0; }
.rail-track { display: flex; gap: 14px; width: max-content; animation: drift 80s linear infinite; }
.rail[data-dir="right"] .rail-track { animation-direction: reverse; animation-duration: 95s; }
.rail:hover .rail-track { animation-play-state: paused; }
.rail img { height: clamp(170px, 21vw, 290px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-photo); background: var(--rule); }
.rail img.tall { aspect-ratio: 4 / 3; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- how it works */
.how { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: clamp(36px, 6vw, 88px) var(--gut); background: var(--cloud); }
.how-photo { position: relative; }
.how-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-photo); background: var(--rule); }
.how-photo figcaption { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--sky); font: 500 13.5px/1 var(--f-body); }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.steps { counter-reset: step; margin-top: clamp(22px, 3vw, 36px); display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--spruce); color: #fff; font: 700 20px/1 var(--f-display); }
.steps h3 { align-self: end; }
.steps p { grid-column: 2; margin-top: 6px; color: var(--moss); max-width: 34em; }

/* ---------------------------------------------------------------- proof */
.proof { padding: clamp(40px, 7vw, 100px) var(--gut); }
.proof h2 { max-width: 16em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: clamp(26px, 4vw, 48px); }
.facts div { border-top: 3px solid var(--spruce); padding-top: 14px; }
.facts dt { font: 800 clamp(2rem, 3.6vw, 3.1rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--spruce); font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 10px; color: var(--moss); font-size: 15.5px; line-height: 1.45; max-width: 19em; }
.trio { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: 14px; margin-top: clamp(32px, 5vw, 64px); }
.trio img { width: 100%; height: clamp(180px, 24vw, 340px); object-fit: cover; border-radius: var(--r-photo); background: var(--rule); }

/* ---------------------------------------------------------------- close */
.close { position: relative; margin: 0 clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px); border-radius: 28px; overflow: hidden; min-height: clamp(420px, 56vw, 640px);
  display: grid; align-items: end; background: #1d2b33; }
.close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 22, 28, 0) 30%, rgba(12, 22, 28, .78) 100%); }
.close-in { position: relative; z-index: 1; padding: clamp(24px, 5vw, 64px); }
.close-in h2 { color: #fff; max-width: 15em; font-size: clamp(1.9rem, 4.2vw, 3.4rem); }

/* ---------------------------------------------------------------- footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 26px var(--gut) 34px; font-size: 14px; color: var(--moss); }
.foot .mark { margin-right: auto; }

/* ---------------------------------------------------------------- sign in */
.auth { width: min(420px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 24px; background: var(--cloud); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(12, 30, 26, .6); }
.auth::backdrop { background: rgba(14, 34, 30, .5); backdrop-filter: blur(5px); }
.auth[open] { animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.auth-in { position: relative; display: grid; gap: 18px; padding: 30px 26px 26px; }
.auth .google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--rule); box-shadow: none; }
.auth .google:hover { border-color: var(--spruce); background: #fff; }
.auth-gis { display: flex; justify-content: center; min-height: 44px; }
.auth .google:disabled { opacity: .6; cursor: progress; }
.auth-x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--moss); cursor: pointer; }
.auth-x:hover { background: var(--sky); color: var(--ink); }
.auth h2 { font-size: 1.7rem; margin-top: 4px; padding-right: 40px; }
.auth-err { padding: 10px 12px; border-radius: 10px; background: #fbe9e4; color: #8f2b0d; font-size: 14.5px; }
.auth.shake .auth-in { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .stage { aspect-ratio: 1 / 1; }
  .how { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio img:first-child { grid-column: span 2; }
}
@media (max-width: 520px) {
  .stage { aspect-ratio: 4 / 5; }
  .tally-l { font-size: 11.5px; }
  .nav .btn { padding-left: 14px; padding-right: 14px; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .hero-proof div { padding-top: 10px; border-top-width: 2px; }
  .hero-proof dd { margin: 0; }
  .tally { left: 10px; right: 10px; bottom: 10px; min-width: 0; padding: 11px 14px 12px; }
  .tally-n b { font-size: 28px; }
  .replay { bottom: auto; top: 12px; right: 12px; }
  .tags li { font-size: 12px; padding: 5px 9px 5px 7px; }
  .hero-acts .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail { overflow-x: auto; }
  .rail-track { animation: none; }
  .auth[open], .auth.shake .auth-in { animation: none; }
  .btn { transition: none; }
}

/* ---------------------------------------------------------------- what comes next: cards on a turning ring */
.next { padding: clamp(36px, 6vw, 84px) 0 clamp(24px, 4vw, 48px); background: linear-gradient(180deg, var(--sky) 0%, #dfeaec 55%, var(--sky) 100%); overflow: hidden; }
.next-head { padding: 0 var(--gut); text-align: center; max-width: 64rem; margin: 0 auto; }
.next-head p { margin-top: 10px; color: var(--moss); font-size: 1.06rem; }
.ring-stage { --cw: 300px; --ch: 368px; position: relative; height: calc(var(--ch) + 70px); margin-top: clamp(18px, 3vw, 34px);
  perspective: 1900px; perspective-origin: 50% 22%; cursor: grab; touch-action: pan-y; outline: none; }
.ring-stage:active { cursor: grabbing; }
.ring-stage:focus-visible { outline: 3px solid var(--ember); outline-offset: -6px; border-radius: 24px; }
.ring { position: absolute; left: 50%; top: 24px; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  transform-style: preserve-3d; }
/* the floor the ring stands on: a soft ellipse of shadow */
.ring-stage::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: min(760px, 90%); height: 46px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(23, 59, 51, .22), rgba(23, 59, 51, 0)); pointer-events: none; }
.rcard { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--cloud);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 22px 44px -22px rgba(15, 42, 36, .55), 0 2px 6px rgba(15, 42, 36, .08);
  user-select: none; will-change: transform, opacity; }
.rart { height: 136px; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, #eaf3f4, #dbe9eb); border-bottom: 1px solid var(--rule); }
.rart svg { width: 88%; height: auto; overflow: visible; }
.rbody { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 18px; flex: 1; }
.rbody h3 { font-size: 1.32rem; }
.rbody p { font-size: 15px; line-height: 1.45; color: var(--ink); }
.rbody .ralready { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--rule); font-size: 13.2px; color: var(--moss); display: flex; gap: 8px; align-items: flex-start; }
.rbody .ralready::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; background: var(--spruce)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.rtag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font: 600 12px/1 var(--f-body); }
.next-tag { background: var(--ember); color: #fff; }
.plan-tag { background: transparent; color: var(--moss); box-shadow: inset 0 0 0 1.5px var(--rule); }
/* card art */
.rart text { font-family: var(--f-body); font-size: 11.5px; }
.rart .lbl { fill: var(--moss); }
.rart .lbl-d { fill: var(--spruce); font-weight: 600; }
.rart .lbl-hot { fill: var(--ember); font-weight: 600; }
.rart .bar { fill: #c9d9da; }
.rart .bar-over { fill: var(--ember); }
.rart .bar-ok { fill: var(--spruce); }
.rart .gap-line { stroke: var(--ember); stroke-width: 1.5; stroke-dasharray: 3 3; }
.rart .plan { fill: #fff; stroke: var(--spruce); stroke-width: 2.5; }
.rart .plan-in { fill: none; stroke: var(--spruce); stroke-width: 1.2; opacity: .55; }
.rart .plan-add { fill: rgba(196, 80, 26, .22); stroke: var(--ember); stroke-width: 2; }
.rart .arrow { fill: none; stroke: var(--moss); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rart .delta { fill: var(--ember); }
.rart .delta-t { fill: #fff; font-weight: 700; text-anchor: middle; }
.rart .opt { fill: #fff; stroke: var(--rule); }
.rart .opt.off { fill: rgba(255, 255, 255, .55); }
.rart .tick-on { fill: var(--spruce); }
.rart .tick-off { fill: #fff; stroke: #b8c8c9; }
.rart .tick-m { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rart .price { fill: var(--ember); font-weight: 700; text-anchor: end; }
.rart .price.off { fill: #b8c8c9; }
.rart .l1 { fill: #9fb4b1; } .rart .l2 { fill: #d9c4a2; } .rart .l3 { fill: #f3d9e0; }
.rart .studs { stroke: #b98545; stroke-width: 3; }
.rart .leader { fill: none; stroke: var(--moss); stroke-width: 1; }
.rart .rsi { fill: var(--spruce); }
.rart .rsi-t { fill: #fff; font-weight: 700; text-anchor: middle; }
.rart .room-hot { fill: rgba(196, 80, 26, .14); }
.rart .heat { fill: none; stroke: var(--ember); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rart .win { stroke: #5687b0; stroke-width: 5; }
/* controls */
.ring-ctl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 4px; }
.ring-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--cloud); color: var(--spruce);
  box-shadow: 0 6px 16px -8px rgba(15, 42, 36, .5), inset 0 0 0 1px var(--rule); transition: transform .15s, background .15s; }
.ring-btn:hover { background: #fff; transform: scale(1.06); }
.ring-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ring-dots { display: flex; gap: 8px; }
.ring-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #b8cccb; cursor: pointer; transition: width .25s, background .25s; }
.ring-dots button[aria-selected="true"] { width: 26px; background: var(--ember); }
@media (max-width: 520px) {
  .ring-stage { --cw: 248px; --ch: 396px; perspective: 1100px; }
  .rbody { padding: 14px 16px 16px; }
  .rbody h3 { font-size: 1.2rem; }
  .rbody p { font-size: 14.2px; }
}
@media (prefers-reduced-motion: reduce) { .ring-btn, .ring-dots button { transition: none; } }

.next-head h2, .next-head p { text-wrap: balance; }
@media (max-width: 520px) { .next-head h2 br { display: none; } }
