/* Nadyuk Systems — /health-check layer.
   Loaded after styles.css, pain-pages.css and funnel.css by health-check.html only.
   Reuses from funnel.css: .demo-tag, .vs (comparison table).
   Adds: the question list, the result card and the 12-month stops. */

/* Without JavaScript the check can't add anything up, so it steps aside for the price list. */
.js .hc-nojs { display: none; }
html:not(.js) .hc, html:not(.js) .hc-progress { display: none; }

/* ---------- Progress, in the sticky head (desktop) ---------- */
.hc-progress { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.hc-progress-line { position: relative; display: flex; align-items: center; gap: 18px; }
.hc-progress-line::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--ink); }
.hc-progress-line i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); border: 4px solid var(--ink); transition: background-color 0.2s; }
.hc-progress-line i.is-on { background: var(--ink); }
.hc-progress-line i.is-skip { background: var(--sand); border-style: dotted; opacity: 0.45; }
.hc-progress-line i:last-child.is-on { background: var(--vermilion); border-color: var(--vermilion); }
.hc-progress-text { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Questions: each one is a stop on the line, and fills when answered ---------- */
.hc { margin-top: 0 !important; }
.hc-q[hidden] { display: none; }
.hc-q h2 { margin-top: 48px; font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
.hc-q h2::before { transition: background-color 0.2s; }
.hc-q.is-answered h2::before { background: var(--ink); }
.hc-q .fine { margin-top: 8px; }
.hc-opts { display: grid; gap: 8px; margin-top: 14px; }
.hc-opt { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 54px; padding: 12px 18px; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-sm); corner-shape: squircle; font-weight: 560; line-height: 1.35; color: var(--ink); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.hc-opt::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; }
.hc-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hc-opt:hover { background: var(--sand-2); }
.hc-opt:has(input:checked) { background: var(--ink); color: var(--card); }
.hc-opt:has(input:checked)::before { border-color: var(--card); background: var(--card); box-shadow: inset 0 0 0 4px var(--ink); }
.hc-opt:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* "How big is it?" box: appears only when one answer points to the bigger job. */
.hc-size[hidden] { display: none; }
.hc-size { margin-top: 36px; }
.hc-size-label { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.hc-size-label span { margin-left: 8px; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.hc-size .fine { margin-top: 6px; }
.hc-size-input { display: block; width: 100%; min-height: 96px; margin-top: 12px; padding: 12px 14px; resize: vertical; line-height: 1.5; background: var(--card); color: var(--ink); border: var(--line) solid var(--ink); border-radius: var(--r-sm); corner-shape: squircle; }
.hc-size-input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.hc-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.hc-status { font-weight: 600; font-size: 0.95rem; color: var(--ink) !important; min-height: 1.5em; }

/* ---------- Result ---------- */
.hc-result { margin-top: 40px !important; background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-card); corner-shape: squircle; padding: clamp(20px, 3vw, 32px); }
.hc-result > * + * { margin-top: 14px; }
.hc-result h2 { margin-top: 18px; }
.hc-result h2::before { display: none; }
.hc-result h2:focus { outline: none; }
.hc-result .demo-tag { border-radius: calc(12px * var(--sq, 1)); corner-shape: squircle; }
.hc-result h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin-top: 34px; padding-top: 22px; border-top: var(--line) solid var(--ink); }
.hc-findings { display: grid; gap: 10px; }
.hc-findings li { position: relative; padding-left: 26px; color: var(--ink-2); }
.hc-findings li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--vermilion); }
.hc-findings li.is-mild::before { background: var(--card); border: 3px solid var(--ink-3); }
.hc-findings li.is-clear::before { background: var(--green); }
.hc-working { font-size: 0.95rem; }
.hc-working:empty, .hc-next-note:empty { display: none; }
.hc-tier-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3) !important; }
.hc-tier-name { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink) !important; margin-top: 4px; }
.hc-price { font-size: clamp(2.5rem, 5.6vw, 3.9rem); font-weight: 660; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink) !important; margin-top: 6px; }
.hc-price small { display: inline-block; white-space: nowrap; font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--ink-2); }
.hc-tier > p + p { margin-top: 10px; }
.hc-tier .hc-tier-name, .hc-tier .hc-price { margin-top: 4px; }
.hc-terms { font-size: 0.95rem; }
.hc-start { font-size: 0.95rem; border-left: 3px solid var(--ink); padding-left: 12px; }

/* Twelve months as twelve stops. Text in the table below carries the same facts. */
.hc-year { display: grid; gap: 10px; padding: 16px 18px; background: var(--sand); border-radius: var(--r-sm); corner-shape: squircle; }
.hc-year-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 12px; }
.hc-year-name { font-size: 0.875rem; font-weight: 620; color: var(--ink); }
.hc-year-dots { position: relative; display: flex; justify-content: space-between; align-items: center; }
.hc-year-dots::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); }
.hc-year-dots i { position: relative; width: 13px; height: 13px; border-radius: 50%; background: var(--sand); border: 3px solid var(--ink); }
.hc-year-dots.is-monthly i, .hc-year-dots.is-flat i:first-child { background: var(--ink); }
.hc-year-key { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ink-3) !important; margin: 0; }

.hc-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px !important; padding-top: 24px; border-top: var(--line) solid var(--ink); }
.hc-next a:not(.btn) { font-weight: 600; }
.hc-next-note { font-size: 0.95rem; }
.hc-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 0.95rem; font-weight: 600; }
.hc-linkish { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.hc-linkish:hover { color: var(--ink); }

@media (max-width: 960px) {
  .hc-progress { margin-top: 20px; }
}
@media (max-width: 520px) {
  .hc-go .btn, .hc-next .btn { width: 100%; }
  .hc-opt { padding: 12px 14px; gap: 12px; }
  .hc-year-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hc-year-dots i { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hc-result:not([hidden]) { animation: hc-in 0.4s var(--ease) both; }
}
@keyframes hc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media print {
  .hc-go, .hc-mail { display: none; }
}
