/* =============================================================================
   DATA HEALTH CHECK  ·  page layout only (tokens + skeletons in styles.css)
   Seven questions, chip answers, a drawn score meter, honest verdicts,
   and a Netlify form that emails the result (the lead-capture step).
   ========================================================================== */

.health-intro { padding-bottom: var(--s-6); }

.health-intro__line {
  font: 400 var(--fs-h4) var(--font-sans);
  color: var(--ink-2);
  max-width: 40rem;
  margin-top: var(--s-4);
}

.health-intro__note {
  margin-top: var(--s-3);
  font: 400 0.75rem var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- questions ---- */

.hq__list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }

.hq {
  border-top: 1px solid var(--line);
  padding: var(--s-5) 0;
}

.hq:last-child { border-bottom: 1px solid var(--line); }

.hq__n {
  font: 400 0.75rem var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.hq__q {
  margin-top: var(--s-1);
  font: 500 var(--fs-h4) var(--font-sans);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
}

.hq__opts {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.hq__opt { position: relative; }

.hq__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.hq__opt label {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.hq__opt label:hover { border-color: var(--ink); color: var(--ink); }

.hq__opt input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.hq__opt input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.health__actions {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.health__missing {
  font-size: var(--fs-small);
  color: var(--accent-deep);
}

/* ---- result ---- */

.hres {
  margin-top: var(--s-7);
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-6);
  max-width: 46rem;
}

.hres[hidden] { display: none; }

.hres__kicker {
  font: 400 0.75rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hres__verdict {
  margin-top: var(--s-2);
  font: 500 var(--fs-h3) var(--font-sans);
  letter-spacing: var(--ls-tight);
}

.hres__meter {
  margin-top: var(--s-4);
  width: 100%;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--ghost);
  position: relative;
  overflow: hidden;
}

.hres__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width 700ms cubic-bezier(.2,.7,.2,1);
}

.hres__score {
  margin-top: var(--s-2);
  font: 400 0.75rem var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hres__body { margin-top: var(--s-4); color: var(--ink-2); }

.hres__fixes { margin: var(--s-4) 0 0; padding: 0; list-style: none; }

.hres__fixes li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.hres__fixes li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

.hres__fixes b { color: var(--ink); font-weight: 500; }

/* ---- email-me form inside the result ---- */

.hres__form { margin-top: var(--s-5); border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }

.hres__form p.lead { color: var(--ink-2); font-size: var(--fs-small); }

.hres__row {
  margin-top: var(--s-3);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.hres__row input[type="email"] {
  flex: 1 1 14rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--bg);
  font: 400 var(--fs-small) var(--font-sans);
  color: var(--ink);
}

.hres__row input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 45em) {
  .hres { padding: var(--s-6) var(--s-4); }
}

.hres__talk {
  margin-top: var(--s-3);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
