/* Housing Radar – one stylesheet for all pages. No build step. */

/* ---------- Fonts (stored in /fonts, no outside requests) ---------- */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Colours and sizes ---------- */
:root {
  --paper: #faf9f6;
  --ink: #26241f;
  --surface: #f0efe9;
  --line: #d9d7cf;
  --muted: #6b6963;
  --slate: #3a4a5a;
  --slate-soft: #e3e8ed;
  --sage: #4a7a5a;
  --sage-soft: #e4ece5;
  --lake: #3f6e8c;
  --lake-soft: #e1eaf0;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Small pill buttons ---------- */
.pill {
  display: inline-block;
  padding: 9px 30px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.pill:hover { background: var(--line); }

/* ---------- First screen ---------- */
.hero {
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: 16px var(--gutter) 40px;
  text-align: center;
}

.topbar {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.lang {
  position: absolute;
  right: 0;
  top: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.lang a { text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang [aria-current] { color: var(--ink); }

.hero-middle {
  align-self: center;
  width: 100%;
  padding: 40px 0;
}

.wordmark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.14em;
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-weight: 900;
  font-size: 13.4vw;
  line-height: 0.8;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark .w2 {
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
}
.wordmark .mark {
  width: 0.66em;
  height: 0.66em;
  flex: none;
}

.tagline {
  margin-top: clamp(20px, 3vw, 40px);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
}

/* ---------- Shared section layout ---------- */
.section {
  padding: clamp(72px, 11vw, 160px) var(--gutter) 0;
  max-width: 1240px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}

.lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
}

/* ---------- How it works: four cards ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}

.step {
  border-radius: var(--radius);
  padding: 16px 16px 28px;
  background: var(--surface);
}
.step.slate { background: var(--slate-soft); }
.step.sage  { background: var(--sage-soft); }
.step.lake  { background: var(--lake-soft); }

.step .num {
  display: block;
  margin: 22px 8px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.step h3 {
  margin: 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p {
  margin: 8px 8px 0;
  font-size: 16px;
  color: var(--muted);
}

/* The small drawn app screens. Sample data is invented. */
.screen {
  height: 250px;
  border-radius: 16px;
  background: var(--paper);
  padding: 16px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
}
.row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
}
.row .end {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
}

.chip {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.listing {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--paper);
}
.listing b { display: block; font-size: 14px; }
.listing span { color: var(--muted); }

.pile {
  position: relative;
  height: 112px;
}
.pile .listing {
  position: absolute;
  left: 8%;
  right: 8%;
}
.pile .listing:nth-child(1) { top: 4px;  transform: rotate(-5deg); }
.pile .listing:nth-child(2) { top: 26px; transform: rotate(4deg); }
.pile .listing:nth-child(3) { top: 50px; transform: rotate(-1deg); }

.arrow {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.listing.one { border-color: var(--slate); border-width: 2px; }

.score-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--paper);
  font-size: 22px;
  font-weight: 800;
  flex: none;
}
.score.small {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.score.mid { background: var(--lake); }

.checks li {
  padding-left: 20px;
  position: relative;
  font-weight: 600;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}
.reason {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}

.notif {
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
}
.notif small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
}
.notif b { font-size: 14px; }

.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.feed-row:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-row .end {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- What the app shows / does not show ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 64px);
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.panel h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 16px;
}
.panel li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.panel.no li { color: var(--muted); }
.panel .note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Note from the founders ---------- */
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
}
.letter p + p { margin-top: 1em; }
.letter .sign {
  margin-top: 28px;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.people {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.people b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  color: var(--ink);
}

/* ---------- Join the beta ---------- */
.beta {
  margin-top: clamp(32px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 4vw, 56px);
}
.beta iframe {
  width: 100%;
  border: 0;
}

/* Placeholders. The site must not go public while one is visible. */
.todo {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  background: #ffe9a8;
  color: #5a4300;
  font-weight: 700;
}
.todo-block {
  display: block;
  padding: 40px 20px;
  border: 2px dashed #c9a53a;
  border-radius: 16px;
  background: #fff6d6;
  color: #5a4300;
  font-weight: 700;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(72px, 11vw, 160px);
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Text page (privacy and legal notice) ---------- */
.text-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
}
.text-page .back {
  display: inline-block;
  margin-bottom: 48px;
}
.text-page h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.text-page h2 {
  margin-top: 40px;
  font-size: 20px;
}
.text-page p { margin-top: 12px; }
.text-page hr {
  margin: 64px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  body { font-size: 17px; }

  .hero { min-height: calc(100svh - 90px); }

  .topbar { justify-content: flex-start; }

  .wordmark {
    flex-direction: column;
    align-items: center;
    gap: 0.04em;
    font-size: 27vw;
  }

  .steps { grid-template-columns: 1fr; }
  .two-col,
  .note-grid { grid-template-columns: 1fr; }
}
