/* Systems Health Check landing page.
   Loads after styles.css and violet-bloom.css and only adds what this page needs.
   The memorable thing on this page is the example findings card in the hero and the
   four-rung maturity ladder; everything else stays on the home page's quiet grid. */

/* ---------- Hero ---------- */

.hc-hero { padding-block: 48px 64px; }
.hc-hero-grid { display: grid; gap: 48px; }
.hc-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-weight: 600; font-size: .9375rem; color: var(--purple);
}
.hc-kicker::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--purple); background: var(--white);
}
.page-health-check h1 { max-width: 16ch; }

.hc-facts {
  display: grid; gap: 10px;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .9375rem; line-height: 1.4; color: var(--muted);
}
.hc-facts strong { color: var(--black); font-weight: 600; }
.hc-facts li { position: relative; padding-left: 20px; }
.hc-alt { margin-top: 22px; font-size: .9375rem; color: var(--muted); }
.hc-facts li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 10px; height: 3px; border-radius: 2px; background: var(--purple);
}

/* Example findings card */
.hc-report {
  position: relative;
  width: 100%; max-width: 520px;
  padding: 24px 24px 20px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hc-report-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hc-report-title { font-weight: 600; color: var(--black); letter-spacing: -0.02em; }
.hc-report-tag {
  font-size: .75rem; font-weight: 600; color: var(--accent-text);
  background: var(--accent); padding: 3px 10px; border-radius: 999px;
}
.hc-report-meta { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.hc-report-level {
  display: grid; gap: 2px;
  margin-top: 18px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bloom-1), var(--bloom-2));
}
.hc-report-level span { font-size: .8125rem; color: var(--muted); }
.hc-report-level strong { color: var(--black); font-weight: 600; letter-spacing: -0.02em; }
.hc-report-group { margin-top: 18px; }
.hc-report-group h2 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: .9375rem; font-weight: 600; color: var(--black);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.hc-report-group h2 span { font-size: .75rem; font-weight: 500; color: var(--muted); }
.hc-report-group li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: .9rem; line-height: 1.35; color: var(--text);
}
.hc-report-group li:last-child { border-bottom: 0; }
.hc-report-group li > span { position: relative; padding-left: 18px; }
.hc-report-group li > span::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2.5px solid var(--purple);
}
.hc-report-group em {
  flex: none; font-style: normal; font-size: .75rem; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; margin-top: 1px;
}
.hc-report-group em.safe { color: var(--success); background: var(--success-bg); }
.hc-report-group em.disruptive { color: #8A4B00; background: #FFF1DC; }
@media (prefers-color-scheme: dark) {
  :root .hc-report-group em.disruptive { color: #FFC266; background: #3D2A0F; }
}
.hc-report figcaption {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .8125rem; line-height: 1.45; color: var(--muted);
}

@media (min-width: 960px) {
  .hc-hero { padding-block: 72px 96px; }
  .hc-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 64px; }
  .hc-report { justify-self: end; transform: rotate(-1deg); }
}

/* ---------- Areas (ordered groups) ---------- */

.hc-areas {
  counter-reset: group;
  display: grid; gap: 16px;
  margin-top: 44px;
}
.hc-areas > li {
  counter-increment: group;
  position: relative;
  padding: 24px 24px 24px 72px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hc-areas > li::before {
  content: counter(group);
  position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--purple); background: var(--white);
  font-weight: 600; font-size: .9375rem; color: var(--black);
}
.hc-areas h3 { font-size: 1.125rem; margin-bottom: 10px; }
.hc-areas ul { display: grid; gap: 6px; }
.hc-areas ul li { font-size: .9375rem; line-height: 1.4; color: var(--text); position: relative; padding-left: 16px; }
.hc-areas ul li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 2px; background: var(--purple); border-radius: 1px;
}
.hc-areas-note { margin-top: 28px; max-width: 42em; color: var(--muted); font-size: 1rem; }

@media (min-width: 720px) {
  .hc-areas { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .hc-areas { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hc-areas > li { padding: 28px 28px 28px 80px; }
  .hc-areas > li::before { left: 26px; top: 26px; }
}

/* ---------- Report deliverables ---------- */

.hc-deliverables {
  display: grid; gap: 28px 48px;
  margin-top: 44px; padding-top: 36px;
  border-top: 1px solid var(--line);
}
.hc-deliverables h3 { font-size: 1.125rem; margin-bottom: 8px; }
.hc-deliverables p { font-size: 1rem; line-height: 1.5; max-width: 30em; }
@media (min-width: 720px) { .hc-deliverables { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .hc-deliverables { grid-template-columns: repeat(3, 1fr); } }

.hc-promise {
  margin-top: 44px; padding: 22px 26px;
  max-width: 44em;
  border-left: 4px solid var(--purple);
  background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.0625rem; font-weight: 500; color: var(--black); line-height: 1.5;
}

/* ---------- Maturity ladder (dark section) ---------- */

.hc-ladder {
  display: grid; gap: 14px;
  margin-top: 48px;
}
.hc-ladder li {
  position: relative;
  padding: 22px 22px 22px 24px;
  border: 1px solid var(--dark-line); border-radius: var(--radius-sm);
  background: color-mix(in srgb, #fff 4%, transparent);
}
.hc-ladder-level {
  display: inline-block; margin-bottom: 10px;
  font-size: .8125rem; font-weight: 600; color: var(--lilac);
}
.hc-ladder h3 { font-size: 1.125rem; margin-bottom: 8px; }
.hc-ladder p { font-size: .9375rem; line-height: 1.5; color: var(--dark-text); }

@media (min-width: 960px) {
  .hc-ladder { grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
  /* Each rung stands a little taller than the last. */
  .hc-ladder li:nth-child(1) { padding-top: 22px; }
  .hc-ladder li:nth-child(2) { padding-top: 46px; }
  .hc-ladder li:nth-child(3) { padding-top: 70px; }
  .hc-ladder li:nth-child(4) { padding-top: 94px; background: color-mix(in srgb, var(--lilac) 14%, transparent); border-color: color-mix(in srgb, var(--lilac) 50%, transparent); }
}

/* ---------- How it works ---------- */

.hc-steps {
  counter-reset: hcstep;
  display: grid; gap: 0;
  margin-top: 48px;
}
.hc-steps li {
  counter-increment: hcstep;
  position: relative;
  padding: 0 0 36px 68px;
}
.hc-steps li:last-child { padding-bottom: 0; }
.hc-steps li::before {
  content: counter(hcstep);
  position: absolute; left: 0; top: -4px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 3px solid var(--purple); background: var(--white); color: var(--black);
  font-weight: 600; font-size: 1.0625rem;
}
.hc-steps li::after {
  content: ""; position: absolute; left: 21px; top: 40px; bottom: 0;
  width: 2px; background: var(--line);
}
.hc-steps li:last-child::after { display: none; }
.hc-steps h3 { font-size: 1.25rem; margin-bottom: 10px; }
.hc-steps p { line-height: 1.5; max-width: 34em; }

@media (min-width: 1080px) {
  .hc-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .hc-steps li { padding: 68px 0 0; }
  .hc-steps li::before { top: 0; }
  .hc-steps li::after { left: 44px; right: -40px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .hc-steps p { font-size: 1rem; }
}

.hc-after {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line);
  max-width: 44em;
}
.hc-after h3 { font-size: 1.25rem; margin-bottom: 12px; }

/* ---------- Who ---------- */

.hc-who { display: grid; gap: 40px; margin-top: 32px; align-items: center; }
@media (min-width: 960px) {
  .hc-who { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 80px; }
  .hc-who .partner-logo { justify-self: end; }
}

/* ---------- FAQ ---------- */

.hc-faq { margin-top: 40px; max-width: 46em; border-top: 1px solid var(--line); }
.hc-faq details { border-bottom: 1px solid var(--line); }
.hc-faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0;
  font-weight: 600; font-size: 1.0625rem; color: var(--black);
}
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple);
  transform: rotate(45deg); margin-top: -6px;
  transition: transform .2s ease;
}
.hc-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.hc-faq summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.hc-faq details p { padding: 0 0 22px; max-width: 40em; line-height: 1.55; }

/* ---------- Contact section (white here, not tinted) ---------- */

.page-health-check #contact .enquiry { background: var(--card); }
