/* Landing page. The one structural idea: the survey canvas. A faint
   measurement grid sits behind the hero, and the elevation scale from
   the app's own legend is used once, as the rule under the section
   about reading the shape of a floor. Everything else is quiet so
   those two carry. */

.section { padding: 5.5rem 1.5rem; }
.section > .inner { max-width: 68rem; margin: 0 auto; }
.section--wash { background: var(--wash); }
@media (max-width: 700px) { .section { padding: 3.5rem 1.25rem; } }

.eyebrow {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600; font-size: .78rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--brand);
  margin: 0 0 1rem;
}
h2.head {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  letter-spacing: -.015em; line-height: 1.18;
  margin: 0 0 1rem; text-wrap: balance;
}
h3.sub {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em;
  margin: 0 0 .6rem; text-wrap: balance;
}
.body { font-size: 1.02rem; color: var(--muted); margin: 0 0 1rem; max-width: 34rem; }
.body strong { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: 4.5rem 1.5rem 5rem; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 44px);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.hero .inner {
  position: relative; max-width: 68rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 3.5rem; align-items: center;
}
.hero h1 {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.15rem);
  line-height: 1.08; letter-spacing: -.025em;
  margin: 0 0 1.1rem; text-wrap: balance;
}
.hero .lede { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.9rem; max-width: 32rem; }
.cta-row { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.cta-row .quiet { color: var(--brand); text-decoration: none; font-weight: 500; }
.cta-row .quiet:hover { text-decoration: underline; }
.trust-line {
  margin: 1.4rem 0 0; font-size: .89rem; color: var(--muted);
  padding-left: .9rem; border-left: 2px solid var(--signal); max-width: 30rem;
}
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

/* ── Screenshot presentation ──────────────────────────────────────── */

.shot {
  margin: 0; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--wash); box-shadow: var(--shadow); overflow: hidden;
}
.shot img { display: block; width: 100%; max-width: 100%; height: auto; }
.shot--dark { background: #000; border-color: #000; }
.shot figcaption {
  font-size: .8rem; color: var(--muted);
  padding: .6rem .9rem; border-top: 1px solid var(--rule); background: var(--paper);
}

/* ── Problem band ─────────────────────────────────────────────────── */

.problem .head, .problem .body { max-width: 46rem; }
.problem .body { font-size: 1.08rem; }

/* ── Two inspections ──────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.75rem;
}
.tag {
  display: inline-block; font-family: "Chakra Petch", sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint);
  padding: .3rem .6rem; border-radius: 5px; margin-bottom: 1rem;
}
.card .body { margin-bottom: 0; max-width: none; }
@media (max-width: 700px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ── Feature rows ─────────────────────────────────────────────────── */

.rows { display: grid; gap: 5rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 3.25rem; align-items: center; }
.row--flip .copy { order: 2; }
.row--narrow { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.row--text { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
@media (max-width: 860px) {
  .rows { gap: 3.25rem; }
  .row, .row--narrow { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .row--flip .copy { order: 0; }
}

/* The app's elevation scale, warm above the datum to cool below. */
.scale-rule {
  height: 7px; border-radius: 4px; margin: 0 0 1.25rem; max-width: 22rem;
  background: linear-gradient(to right,
    #8B1A1A, #B32222, #D93A3A, #E96A6A, #F0A0A0, #F6C8C8, #FAE5E5,
    #EFEFF3,
    #DCE7F7, #B9D0F2, #8FB5EC, #5C93E3, #2F6FD6, #1F53AE, #16407F, #102C57);
}

/* ── Trust band ───────────────────────────────────────────────────── */

.band { background: var(--band); color: var(--band-ink); }
.band .head, .band .body, .band .callout { max-width: 52rem; }
.band .eyebrow { color: var(--signal); }
.band h2.head { color: var(--band-ink); }
.band .body { color: var(--band-muted); max-width: none; font-size: 1.05rem; }
.callout {
  margin-top: 2rem; padding: 1.4rem 1.6rem;
  background: rgba(255,255,255,.08); border-left: 3px solid var(--signal);
  border-radius: 0 10px 10px 0;
}
.callout p { margin: 0; color: var(--band-ink); font-size: .98rem; }
.callout .lead { font-family: "Chakra Petch", sans-serif; font-weight: 600; }

/* ── Field grid + audiences ───────────────────────────────────────── */

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; margin-top: 2.5rem; }
.tile h4, .col h4 {
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 600; font-size: 1.02rem; margin: .85rem 0 .4rem;
}
.tile p, .col p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile svg { display: block; color: var(--brand); }
@media (max-width: 860px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }
@media (max-width: 480px) { .grid4 { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* ── Notify ───────────────────────────────────────────────────────── */

.notify .inner { max-width: 40rem; text-align: center; }
.notify .body { margin-left: auto; margin-right: auto; }
.signup { display: flex; gap: .7rem; margin: 2rem 0 1rem; }
.signup input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: .8rem 1rem;
}
.signup input::placeholder { color: var(--muted); opacity: .8; }
.fineprint { font-size: .85rem; color: var(--muted); margin: 0; }
.done {
  display: none; align-items: flex-start; gap: .7rem; text-align: left;
  margin: 2rem 0 1rem; padding: 1.1rem 1.25rem;
  background: var(--paper); border: 1px solid var(--rule);
  border-left: 3px solid var(--signal); border-radius: 0 10px 10px 0;
}
.done.on { display: flex; }
.done .mark { color: var(--signal); font-size: 1.15rem; line-height: 1.35; }
.done p { margin: 0; font-size: .95rem; }
@media (max-width: 560px) { .signup { flex-direction: column; } }

/* ── Reveal ───────────────────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Two rows carry a narrow, tall image beside the copy: the elevation
   legend, and the printed report's pages. */
.row--legend { grid-template-columns: minmax(0, .4fr) minmax(0, 1fr); }
.row--report { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); }
@media (max-width: 860px) {
  .row--legend, .row--report { grid-template-columns: minmax(0, 1fr); }
  .row--legend .shot, .row--report .shot { max-width: 16rem; }
}

html { scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media (max-width: 700px) { .hero { padding: 3rem 1.25rem 3.5rem; } }

/* Honeypot: off-screen for people, irresistible to form-filling bots. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
