/* ==========================================================================
   Operations Health Check.

   Loaded after case-studies.css, which supplies the shell (tokens, header,
   footer, .btn, .kicker). Only the tool's own components live here.
   ========================================================================== */

/* --- Page head ----------------------------------------------------------- */

.hc-hero { padding: 48px 0 10px; }

.hc-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(31px, 4.4vw, 56px);
  line-height: 1.02;
}
.hc-hero .hc-lead {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--soft);
  font-size: clamp(16px, 1.75vw, 20px);
  line-height: 1.6;
}
.hc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
}
.hc-facts li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
}

/* --- The app shell ------------------------------------------------------- */

.hc-app {
  margin: 36px 0 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
  min-height: 460px;
  /* The header is position:sticky, so scrollIntoView() on this element would
     park its first 75px underneath it. The browser subtracts this margin when
     it scrolls, which keeps the verdict heading visible. */
  scroll-margin-top: 95px;
}

/* --- Question view ------------------------------------------------------- */

.hc-head { margin-bottom: 26px; }

.hc-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.hc-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  transition: width .35s cubic-bezier(.2, .7, .3, 1);
}

.hc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
}
.hc-step { color: var(--muted); }
.hc-dim {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: 11px;
}

.hc-q {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(23px, 2.9vw, 34px);
  line-height: 1.12;
}
.hc-help {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 14.5px;
}

.hc-options {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.hc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: .2s;
}
.hc-option::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  transition: .2s;
}
.hc-option:hover {
  transform: translateX(3px);
  background: rgba(143, 211, 255, .1);
  border-color: rgba(143, 211, 255, .36);
}
.hc-option:hover::before { border-color: var(--accent); }
.hc-option.is-chosen::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px #0b0f17;
}

.hc-nav {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.hc-back {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.hc-back:hover { color: var(--text); border-color: rgba(143, 211, 255, .36); }

/* --- Result view --------------------------------------------------------- */

.hc-result-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.hc-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--display);
  letter-spacing: -.04em;
}
.hc-score strong {
  font-size: clamp(56px, 8vw, 86px);
  font-weight: 560;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent) 48%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hc-score span { color: var(--muted); font-size: 22px; }

.hc-verdict { flex: 1 1 280px; }
.hc-verdict h2 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 31px); }
.hc-verdict p { margin: 0; max-width: 52ch; color: var(--muted); }

.hc-dims {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.hc-dim-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
}
.hc-dim-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.hc-dim-name { font-weight: 560; font-size: 15.5px; }
.hc-dim-pct { color: var(--muted); font-size: 14px; }

.hc-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.hc-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mint);
  transition: width .6s cubic-bezier(.2, .7, .3, 1);
}
.hc-track span.is-mid { background: var(--gold); }
.hc-track span.is-low { background: #ff9d9d; }

.hc-dim-blurb {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.hc-dim-proof {
  display: inline-block;
  margin-top: 11px;
  color: var(--accent);
  font-size: 13px;
}
.hc-dim-proof:hover { text-decoration: underline; }

.hc-section-title {
  margin: 34px 0 16px;
  font-size: clamp(19px, 2.1vw, 25px);
}

.hc-priorities {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pri;
}
.hc-priorities li {
  counter-increment: pri;
  position: relative;
  padding: 20px 22px 20px 62px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .045);
}
.hc-priorities li::before {
  content: counter(pri);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 214, 165, .3);
  border-radius: 9px;
  background: rgba(255, 214, 165, .12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}
.hc-pri-dim {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hc-priorities b { display: block; margin-bottom: 7px; font-weight: 560; }
.hc-priorities p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.66;
}

.hc-clean {
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid rgba(185, 251, 192, .26);
  border-radius: 20px;
  background: rgba(185, 251, 192, .07);
  color: var(--soft);
}

.hc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.hc-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* --- Written content below the tool -------------------------------------- */

.hc-explain { padding: 66px 0 0; }
.hc-explain h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.4vw, 30px);
}
.hc-explain > p {
  margin: 0 0 30px;
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  line-height: 1.75;
}

.hc-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hc-explain-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.hc-explain-card h3 {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -.02em;
}
.hc-explain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}
.hc-explain-card a { color: var(--accent); }
.hc-explain-card a:hover { text-decoration: underline; }

/* No-JS fallback: the question list is real content, so it stays readable. */
.hc-noscript {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
}
.hc-noscript ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.hc-noscript li { margin-bottom: 8px; line-height: 1.6; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  .hc-dims, .hc-explain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hc-app { padding: 22px; border-radius: 22px; }
  .hc-q { max-width: none; }
  .hc-option { padding: 16px; font-size: 15.5px; }
  .hc-actions .btn { width: 100%; justify-content: center; }
  .hc-priorities li { padding: 18px; }
  .hc-priorities li::before { position: static; margin-bottom: 10px; }
}
