/* Free website health check (views/partials/site-check.ejs).
   Kept in its own file rather than site.css so it only loads on the one page
   that uses it. Built on the same tokens as site.css. */

.site-check {
  --sc-pass: #2F8F5B;
  --sc-pass-fill: #EAF5EF;
  --sc-warn: #C84C08;
  --sc-warn-fill: #FFF1E6;
  --sc-fail: #C2402F;
  --sc-fail-fill: #FDEDEA;
  --sc-info: #6B6259;
  background: var(--surface);
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--hairline);
}
.site-check .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.site-check-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
/* Clear the fixed site header when scrolled to (report links, results). */
.site-check, .sc-results, .sc-cloud, #sc-findings { scroll-margin-top: 110px; }

.sc-intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.sc-intro h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.15; color: var(--ink); }
.sc-intro p { margin: 0; font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; line-height: 1.65; color: var(--body-copy); }

/* ---- Form ---- */
.sc-form { margin-top: 32px; max-width: 820px; }
.sc-input-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: 0 24px 50px -34px rgba(23, 35, 51, 0.25);
  transition: border-color 180ms linear, box-shadow 180ms linear;
}
.sc-input-row:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--focus-ring), 0 24px 50px -34px rgba(23, 35, 51, 0.25); }
.sc-input-icon { flex: none; display: flex; color: var(--muted); }
.sc-input-row input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 18px; font-weight: 500; color: var(--ink); padding: 14px 4px;
}
.sc-input-row input::placeholder { color: var(--muted); }
.sc-submit {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 17px 26px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 200ms linear;
}
.sc-submit:hover { background: var(--orange); }
.sc-submit[disabled] { background: #3A342F; cursor: progress; }
.sc-smallprint { margin: 12px 2px 0; font-size: 14px; font-weight: 500; color: var(--body-copy-alt); }
.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sc-error {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; padding: 14px 16px;
  background: var(--error-fill); border: 1px solid var(--error-border); border-radius: 8px;
  color: var(--error-text); font-size: 15px; font-weight: 500; line-height: 1.5;
}
.sc-error[hidden] { display: none; }
.sc-error svg { flex: none; margin-top: 1px; color: var(--error-icon); }

@media (max-width: 599px) {
  .sc-input-row { flex-wrap: wrap; padding: 8px; }
  .sc-input-icon { display: none; }
  .sc-input-row input { flex-basis: 100%; padding: 12px 10px; }
  .sc-submit { width: 100%; justify-content: center; }
}

/* ---- Progress ---- */
.sc-progress {
  margin-top: 32px; max-width: 820px; padding: 26px 28px;
  background: var(--section-tint); border: 1px solid var(--hairline-warm-2); border-radius: 16px;
}
.sc-progress[hidden] { display: none; }
.sc-progress-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.sc-progress-title { font-size: 17px; font-weight: 500; color: var(--body-copy); overflow-wrap: anywhere; }
.sc-progress-title strong { color: var(--ink); font-weight: 600; }
.sc-progress-time { font-size: 14px; font-weight: 600; color: var(--body-copy-alt); font-variant-numeric: tabular-nums; }
.sc-progress-track { margin: 16px 0 20px; height: 4px; border-radius: 4px; background: #EFE6DE; overflow: hidden; }
.sc-progress-fill { height: 100%; width: 4%; background: var(--orange); border-radius: 4px; transition: width 600ms var(--ease-aster); }
.sc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-steps li {
  position: relative; padding-left: 30px; font-size: 16px; font-weight: 500; color: var(--muted);
  transition: color 200ms linear;
}
.sc-steps li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 5px; border: 2px solid #E3D9CF; box-sizing: border-box;
}
.sc-steps li.is-active { color: var(--ink); }
.sc-steps li.is-active::before { border-color: var(--orange); border-top-color: transparent; border-radius: 50%; animation: acSpin 800ms linear infinite; }
.sc-steps li.is-done { color: var(--body-copy); }
.sc-steps li.is-done::before { background: var(--orange); border-color: var(--orange); }
.sc-steps li.is-done::after {
  content: ''; position: absolute; left: 5px; top: 50%; width: 4px; height: 8px; margin-top: -6px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sc-progress-note { margin: 18px 0 0; font-size: 14px; font-weight: 500; color: var(--body-copy-alt); }

/* ---- Results ---- */
.sc-results { margin-top: 40px; max-width: 1180px; display: flex; flex-direction: column; gap: 28px; }
.sc-results[hidden] { display: none; }

.sc-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: 30px; border-radius: 20px; background: var(--section-tint); border: 1px solid var(--hairline-warm-2);
}
@media (max-width: 699px) { .sc-summary { grid-template-columns: 1fr; justify-items: start; padding: 24px; } }
.sc-ring { position: relative; width: 148px; height: 148px; flex: none; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring .track { stroke: #EFE6DE; }
.sc-ring .value { transition: stroke-dashoffset 1100ms var(--ease-aster); }
.sc-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sc-ring-num { font-size: 44px; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-ring-of { margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body-copy-alt); }
.sc-summary-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc-verdict { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.sc-summary-copy h3 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sc-summary-copy p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--body-copy); }
.sc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px;
  background: #fff; border: 1px solid var(--hairline); font-size: 13.5px; font-weight: 600; color: var(--body-copy);
}
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sc-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 6px; cursor: pointer;
  background: #fff; border: 1px solid #E3D9CF; color: var(--ink); font-family: inherit;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.sc-btn:hover { border-color: var(--orange); color: var(--orange-deep); }
.sc-btn.is-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.sc-btn.is-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }

.sc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.sc-cat {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--hairline-warm-2); border-radius: 14px; font-family: inherit;
  transition: border-color 160ms linear, box-shadow 160ms linear;
}
.sc-cat:hover, .sc-cat.is-selected { border-color: var(--orange); box-shadow: 0 16px 34px -24px rgba(23, 35, 51, 0.22); }
.sc-cat-name { font-size: 14.5px; font-weight: 600; color: var(--body-copy); }
.sc-cat-score { font-size: 32px; font-weight: 600; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-cat-score small { font-size: 15px; font-weight: 600; color: var(--muted); }
.sc-cat-bar { height: 5px; border-radius: 5px; background: #F2EAE3; overflow: hidden; }
.sc-cat-bar span { display: block; height: 100%; border-radius: 5px; }
.sc-cat-counts { display: flex; gap: 12px; font-size: 13px; font-weight: 600; color: var(--body-copy-alt); }
.sc-cat-counts .f { color: var(--sc-fail); }
.sc-cat-counts .w { color: var(--sc-warn); }

.sc-panel { padding: 26px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--hairline-warm-2); }
.sc-panel h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: var(--ink); }
.sc-panel-sub { margin: 0 0 20px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--body-copy-alt); }
.sc-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 12px; }
.sc-gauge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 12px; background: var(--section-tint); }
.sc-gauge-num {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; border: 4px solid currentColor;
}
.sc-gauge-name { font-size: 13.5px; font-weight: 600; color: var(--body-copy); text-align: center; }
.sc-vitals { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.sc-vital { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hairline); }
.sc-vital-name { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body-copy-alt); }
.sc-vital-val { margin-top: 6px; font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-vital-tag { margin-top: 4px; font-size: 13px; font-weight: 600; }
.sc-subhead { margin: 22px 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body-copy-alt); }
.sc-opps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-opps li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 8px; background: var(--section-tint); font-size: 15px; font-weight: 500; color: var(--body-copy); }
.sc-opps li span:last-child { flex: none; font-weight: 600; color: var(--sc-warn); }

.sc-tone-pass { color: var(--sc-pass); }
.sc-tone-warn { color: var(--sc-warn); }
.sc-tone-fail { color: var(--sc-fail); }

/* Findings list */
.sc-findings-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-findings-head h3 { margin: 0; }
.sc-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-filter {
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--hairline); background: #fff; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--body-copy);
}
.sc-filter:hover { border-color: var(--orange); }
.sc-filter.is-selected { background: var(--chip-fill); border-color: var(--orange); color: var(--orange-deep); }
.sc-list { display: flex; flex-direction: column; gap: 8px; }
.sc-item { border: 1px solid var(--hairline); border-radius: 12px; background: #fff; overflow: hidden; }
.sc-item summary {
  list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; cursor: pointer;
}
.sc-item summary::-webkit-details-marker { display: none; }
.sc-item summary:hover { background: var(--section-tint); }
.sc-badge {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none;
}
.sc-badge.pass { background: var(--sc-pass-fill); color: var(--sc-pass); }
.sc-badge.warn { background: var(--sc-warn-fill); color: var(--sc-warn); }
.sc-badge.fail { background: var(--sc-fail-fill); color: var(--sc-fail); }
.sc-badge.info { background: #F4F1EE; color: var(--sc-info); }
.sc-item-title { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.sc-item-cat { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--body-copy-alt); }
.sc-chev { color: var(--muted); transition: transform 200ms var(--ease-aster); }
.sc-item[open] .sc-chev { transform: rotate(180deg); }
.sc-item-body { padding: 0 16px 16px 60px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 599px) { .sc-item-body { padding-left: 16px; } }
.sc-item-body p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--body-copy); white-space: pre-line; overflow-wrap: anywhere; }
.sc-fix { padding: 12px 14px; border-radius: 8px; background: var(--section-tint); border-left: 3px solid var(--orange); }
.sc-fix strong { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); }
.sc-empty { padding: 20px; text-align: center; font-size: 15px; font-weight: 500; color: var(--body-copy-alt); }

/* ---- Aster Cloud CTA band ---- */
.sc-cloud { background: var(--ink); color: var(--on-dark-copy); }
.sc-cloud[hidden] { display: none; }
.sc-cloud-inner {
  max-width: var(--content-max); margin: 0 auto; padding: var(--band-pad) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(36px, 5vw, 64px); align-items: start;
}
.sc-cloud-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--peach); }
.sc-cloud-copy h2 { margin: 14px 0 16px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.18; color: #fff; }
.sc-cloud-copy > p { margin: 0 0 24px; font-size: 17px; font-weight: 500; line-height: 1.65; }
.sc-cloud-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sc-cloud-list li { position: relative; padding-left: 26px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.sc-cloud-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; border-radius: 3px; background: var(--orange); }
.sc-cloud-list li:nth-child(even)::before { background: var(--pink); }
.sc-cloud-list strong { color: #fff; font-weight: 600; }
.sc-cloud-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: clamp(26px, 3vw, 36px); }
.sc-cloud-card form { display: flex; flex-direction: column; gap: 18px; }
.sc-cloud-card h3 { margin: 0; font-size: 22px; font-weight: 600; }
.sc-cloud-sub { margin: -8px 0 0; font-size: 15.5px; font-weight: 500; line-height: 1.6; color: var(--body-copy); }
.sc-optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.sc-cloud-card .sc-error { margin-top: 0; }
.sc-cloud-foot { margin: 0; text-align: center; font-size: 14.5px; font-weight: 500; color: var(--body-copy-alt); }
.sc-lead-done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 12px 4px; }
.sc-lead-done[hidden] { display: none; }
.sc-lead-done h3 { margin: 0; font-size: 22px; font-weight: 600; }
.sc-lead-done p { margin: 0; font-size: 15.5px; font-weight: 500; line-height: 1.6; color: var(--body-copy); }

@media (prefers-reduced-motion: reduce) {
  .sc-ring .value, .sc-progress-fill { transition: none; }
}

.sc-saved-note {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 8px;
  background: rgba(242, 118, 26, 0.08); border: 1px solid rgba(242, 118, 26, 0.28);
  font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--body-copy-alt);
}
