/* DrainReport — "Conduit": the footage strip is the spine of every page.
   Light, calm and homeowner-facing, deliberately the opposite of GasTest Log's dark panel. */
:root {
  --bg: #eef6f6;
  --surface: #ffffff;
  --fg: #11211f;
  --muted: #5a6b6a;
  --line: #d3e3e3;
  --accent: #0c7e86;
  --accent-ink: #095a60;
  --info: #7a878c;
  --low: #268c54;
  --medium: #cc8c0f;
  --high: #bd332e;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f171a;
    --surface: #1f2629;
    --fg: #f0f7f7;
    --muted: #9eb0b5;
    --line: #3b474a;
    --accent: #47bdc7;
    --accent-ink: #47bdc7;
    --info: #a3b0b5;
    --low: #5ccc85;
    --medium: #f5bd4d;
    --high: #f06b66;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 20px; }

/* top bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.bar a { color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--fg); }
.bar .id { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.bar .id img { width: 26px; height: 26px; border-radius: 7px; display: block; }

/* hero */
.hero { padding: clamp(36px, 8vw, 64px) 0 clamp(20px, 4vw, 32px); }
h1 {
  font-size: clamp(2rem, 6.2vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 700;
}
.sub { font-size: clamp(1.05rem, 3.2vw, 1.2rem); color: var(--muted); margin: 0 0 24px; max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 650;
  text-decoration: none; padding: 12px 20px; border-radius: 12px; border: 0; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent-ink); }

/* the strip */
.run {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px 14px; margin: 24px 0;
}
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.run-head b { font-size: 1.05rem; }
.run-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }
.strip { position: relative; height: 74px; }
.strip .pipe {
  position: absolute; left: 0; right: 0; top: 26px; height: 10px;
  background: var(--line); border-radius: 5px;
}
.strip .pin {
  position: absolute; top: 14px; width: 34px; height: 34px; margin-left: -17px;
  border-radius: 50%; border: 2px solid var(--surface);
  color: #fff; font-weight: 700; font-size: 0.92rem;
  display: grid; place-items: center; text-decoration: none;
}
.strip .pin span {
  position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 0.74rem; white-space: nowrap; font-weight: 500;
}
.strip .ends { position: absolute; top: 46px; width: 100%; display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.78rem; }
.sev-info { background: var(--info); } .sev-low { background: var(--low); }
.sev-medium { background: var(--medium); } .sev-high { background: var(--high); }

.chip {
  display: inline-block; border-radius: 999px; padding: 3px 11px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}

/* findings */
.finding {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px;
}
.finding .num {
  width: 30px; height: 30px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.92rem;
}
.finding h3 { margin: 2px 0 2px; font-size: 1.04rem; }
.finding .where { color: var(--muted); font-size: 0.88rem; margin: 0 0 8px; }
.finding p { margin: 0 0 6px; font-size: 0.96rem; }
.finding .rec { color: var(--muted); font-size: 0.94rem; }

/* sections */
section { padding: clamp(28px, 6vw, 46px) 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); letter-spacing: -0.02em; margin: 0 0 10px; }
h3 { font-size: 1.04rem; margin: 20px 0 4px; }
p { margin: 0 0 14px; }
.lede { color: var(--muted); max-width: 36rem; }

.steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px;
}
.steps li::before { content: counter(step); color: var(--accent); font-weight: 700; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 0.96rem; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
@media (max-width: 40rem) { .shots { grid-template-columns: repeat(2, 1fr); } }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; margin-top: 20px; }
.tool {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; text-decoration: none; color: inherit;
}
.tool:hover { border-color: var(--accent); }
.tool b { display: block; font-size: 1.04rem; margin-bottom: 4px; }
.tool span { color: var(--muted); font-size: 0.94rem; }

.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 14px 16px; color: var(--muted); font-size: 0.95rem; margin: 18px 0;
}
.note b { color: var(--fg); }

/* glossary */
.entry { border-top: 1px solid var(--line); padding: 20px 0; }
.entry:first-of-type { border-top: 0; }
.entry-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.entry-head h3 { margin: 0; font-size: 1.12rem; }
.entry .fix { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 0.95rem; }
.entry .fix b { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.entry .family { color: var(--muted); font-size: 0.82rem; }

/* form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 22px 0; }
.form h2 { margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 0.85rem; margin-top: 5px; }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; font: inherit;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 34rem) { .row { grid-template-columns: 1fr; } }
.finding-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.finding-row .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.finding-row .top b { font-size: 0.95rem; }
.link-btn { background: none; border: 0; color: var(--accent-ink); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 18px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 24px 0 56px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
footer p { margin: 0 0 6px; }

.reviewed { font-size: 0.82rem; opacity: 0.75; margin-top: 10px; }
