/* ==============================================================
   McCann + Co — Edmonton Home Evaluation
   Tokens sampled from ryanmccann.ca / Seller Intelligence:
   cement #eeeeec · ink #141414 · concrete #555553 · blue #005daa
   ============================================================== */

:root {
  color-scheme: light;
  --page: #eeeeec;
  --surface: #ffffff;
  --surface-2: #f6f6f5;
  --ink: #141414;
  --ink-2: #555553;
  /* 4.52:1 against --page — the old #8c8b89 measured 2.93:1 (Lighthouse
     flagged it on the footer legal text). Checked against every surface this
     token renders on: --page 4.52:1, --surface 5.25:1, --surface-2 4.86:1. */
  --ink-3: #6c6c6c;
  --grid: #e2e2df;
  --baseline: #c7c7c3;
  --ring: rgba(20, 20, 20, .10);
  --accent: #005daa;
  --accent-dark: #004a88;
  --accent-soft: #dbe8f3;
  --good: #1c7c43;
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(24px, 5.5vw, 72px);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- legal / static prose pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) 90px; }
.legal h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.legal .legal__updated { color: var(--ink-3); font-size: 0.85rem; margin-top: 8px; }
.legal h2 { font-size: 1.15rem; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; }
.legal ul { margin: 10px 0; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: 22px var(--pad);
  position: relative;
}
.nav__logotype {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__plus { color: var(--accent); font-weight: 600; margin: 0 3px; }
.nav__links {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.83rem;
  font-weight: 500;
  margin-left: auto;
}
.nav__links a:hover { color: var(--accent); }
.nav__call { margin-left: clamp(20px, 3vw, 44px); font-size: 0.83rem; font-weight: 500; white-space: nowrap; }
.nav__call:hover { color: var(--accent); }

.nav__cta {
  margin-left: clamp(20px, 3vw, 44px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 9px 9px 18px;
  white-space: nowrap;
}
.nav__cta span {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: .8rem;
}
.nav__cta:hover { background: var(--ink); }
@media (max-width: 700px) { .nav__cta { display: none; } }

.nav__toggle-input { display: none; }
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__call { margin-left: 14px; }
  .nav__toggle-input:checked ~ .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--grid);
    padding: 18px var(--pad);
    gap: 16px;
    z-index: 60;
  }
}

/* ---------- hero ---------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 72px); }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero__kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}

/* address search */
.addr {
  position: relative;
  margin-top: 34px;
  max-width: 640px;
}
.addr__box {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 34px rgba(20, 20, 20, .07);
}
.addr__box:focus-within { border-color: var(--accent); }
.addr__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 1.02rem/1 var(--font-body);
  padding: 14px 18px;
  color: var(--ink);
  min-width: 0;
}
.addr__input::placeholder { color: var(--ink-3); font-weight: 400; }
.addr__btn {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 26px;
  white-space: nowrap;
  transition: background .15s;
}
.addr__btn:hover { background: var(--accent-dark); }
.addr__hint { margin-top: 10px; font-size: 0.8rem; color: var(--ink-3); }
.addr__sample { margin-top: 8px; font-size: 0.85rem; }
.addr__sample a { color: var(--accent); font-weight: 600; }

.addr__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 20, 20, .13);
  overflow: hidden;
  z-index: 30;
  display: none;
}
.addr__list.open { display: block; }
.addr__item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--surface-2);
  padding: 13px 18px;
  font-size: 0.95rem;
}
.addr__item:last-child { border-bottom: 0; }
.addr__item:hover, .addr__item.active { background: var(--accent-soft); }
.addr__item .nbhd { color: var(--ink-3); font-size: 0.8rem; white-space: nowrap; align-self: center; }
.addr__empty { padding: 14px 18px; color: var(--ink-3); font-size: 0.9rem; }

/* hero stats strip */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 60px);
}
.hstat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hstat span { font-size: 0.82rem; color: var(--ink-2); }

/* ---------- section scaffolding ---------- */

section { padding: clamp(40px, 6vw, 84px) 0; }
.sechead__label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}
.sechead h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 24ch; }
.sechead p { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step__num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--ink-2); }

/* variables grid */
.vars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.var {
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 9px;
}
.var::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.var--soon { color: var(--ink-3); }
.var--soon::before { background: var(--baseline); }

/* data sources */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 32px; }
.source {
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 24px;
}
.source h3 { font-size: 1.02rem; margin-bottom: 8px; }
.source p { font-size: 0.87rem; color: var(--ink-2); }
.source .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* about */
.about {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.about img { border-radius: 12px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.about p { color: var(--ink-2); font-size: 0.95rem; max-width: 60ch; }
.about .cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 12px 24px;
}
.about .cta:hover { background: var(--accent-dark); }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about img { max-width: 220px; } }

/* footer */
footer {
  border-top: 1px solid var(--grid);
  padding: 36px var(--pad) 44px;
  font-size: 0.78rem;
  color: var(--ink-3);
}
footer p + p { margin-top: 8px; }
footer .foot-brand { font-weight: 600; color: var(--ink-2); }

/* ==============================================================
   Evaluation flow (overlay)
   ============================================================== */

.flow {
  position: fixed;
  inset: 0;
  background: rgba(238, 238, 236, .97);
  z-index: 100;
  display: none;
  overflow-y: auto;
}
.flow.open { display: block; }
.flow__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) var(--pad) 80px;
}
.flow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.flow__close {
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: 999px;
  width: 38px; height: 38px;
  font-size: 1rem;
  color: var(--ink-2);
}
.flow__close:hover { border-color: var(--ink-3); }

/* progress */
.prog { display: flex; gap: 8px; margin-bottom: 30px; }
.prog i {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--baseline);
}
.prog i.done { background: var(--accent); }

.card {
  background: var(--surface);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: 0 14px 40px rgba(20, 20, 20, .06);
}
.card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.card .lede { color: var(--ink-2); font-size: 0.93rem; margin-bottom: 26px; }

/* prefill banner */
.prefill {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.85rem;
  color: var(--accent-dark);
  margin-bottom: 26px;
}
.prefill b { font-weight: 600; }

/* form grid */
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.field label .pf {
  font-weight: 500;
  color: var(--accent);
  font-size: 0.7rem;
  margin-left: 6px;
}
.field input, .field select {
  font: 400 0.95rem var(--font-body);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--grid);
  border-radius: 9px;
  padding: 11px 12px;
  outline: 0;
  width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--accent); background: #fff; }

fieldset.fset { border: 0; margin-top: 30px; }
fieldset.fset legend {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* chip multiselect */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--grid);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: all .12s;
}
.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--grid); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.seg button.on { background: var(--ink); color: #fff; }

/* flow nav buttons */
.flow__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 14px; }
.btn {
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  transition: background .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary:disabled { background: var(--baseline); cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink-2); padding: 14px 18px; }
.btn--ghost:hover { color: var(--ink); }

/* computing */
.computing { text-align: center; padding: 60px 20px; }
.computing .ring {
  width: 54px; height: 54px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 26px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.computing p { color: var(--ink-2); font-size: 0.92rem; min-height: 1.5em; }

/* teaser */
.teaser__addr { font-size: 0.85rem; color: var(--ink-3); margin-bottom: 4px; }
.teaser__range {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
}
.teaser__range .dash { color: var(--baseline); margin: 0 6px; }
.teaser__mid { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 20px; }
.teaser__mid b { color: var(--accent); }
.teaser__note { font-size: 0.78rem; color: var(--ink-3); max-width: 620px; margin-bottom: 28px; }

/* blurred preview of the full report */
.locked {
  position: relative;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 30px;
}
.locked__fake {
  filter: blur(7px);
  opacity: .65;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  pointer-events: none;
  user-select: none;
}
.locked__fake .fk {
  background: var(--surface-2);
  border: 1px solid var(--grid);
  border-radius: 10px;
  height: 92px;
  padding: 12px;
}
.locked__fake .fk b { display: block; font-size: 1.2rem; margin-top: 26px; }
.locked__fake .fk span { font-size: .7rem; color: var(--ink-3); }
.locked__fake .fk--chart { grid-column: 1/-1; height: 150px; }
.locked__veil {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.72));
  font-weight: 600;
}
.locked__veil .lock-ic { font-size: 1.5rem; }
.locked__veil p { font-size: .85rem; color: var(--ink-2); font-weight: 400; max-width: 40ch; text-align: center; }

/* unlock form */
.unlock { border-top: 1px solid var(--grid); padding-top: 28px; }
.unlock h3 { font-size: 1.25rem; margin-bottom: 6px; }
.unlock .sub { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 20px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: 16px;
}
.consent input { margin-top: 3px; accent-color: var(--accent); }
.unlock__privacy { font-size: 0.76rem; color: var(--ink-3); margin-top: 10px; }
.unlock__privacy a { color: var(--ink-3); text-decoration: underline; }

/* done */
.done { text-align: center; padding: 40px 12px; }
.done .tick {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.done h2 { margin-bottom: 10px; }
.done p { color: var(--ink-2); font-size: 0.95rem; max-width: 48ch; margin: 0 auto 8px; }

.err { color: #b3261e; font-size: 0.82rem; margin-top: 10px; display: none; }
.err.show { display: block; }
