/* Website check page — layered on site.css. All classes prefixed .sc- */

.sc { display: grid; gap: 1.4rem; }
.sc-form .sc-url { margin-bottom: 1rem; }
.sc-row-input { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: .45rem; align-items: stretch; }
.sc-row-input input { margin-top: 0; font-family: var(--mono); font-size: 1.05rem; padding: .95rem 1rem; }
.sc-row-input .btn { border-radius: 8px; padding-inline: 1.5rem; white-space: nowrap; }
.sc-form .sc-email { margin-bottom: .4rem; }
.sc-form .sc-email input { max-width: 26rem; }
.sc-form .form-status:empty { display: none; }
.sc-hint { color: var(--ink-3); font-size: .9rem; margin: .2rem 0 0; }
.sc-note { text-align: center; margin-top: 1rem; font-size: .9rem; }
.small { font-size: .9rem; }
@media (max-width: 40rem) {
  .sc-row-input { grid-template-columns: 1fr; }
  .sc-row-input .btn { justify-content: center; }
}

/* running state */
.sc-running h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.sc-running h2 .mono { color: var(--green); }
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sc-steps li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); color: var(--ink-3); transition: color .3s; }
.sc-steps li::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--line-2); box-sizing: border-box; justify-self: center; }
.sc-steps li.active { color: var(--ink); }
.sc-steps li.active::before { border-color: var(--green); border-top-color: transparent; animation: sc-spin .9s linear infinite; }
.sc-steps li.done { color: var(--ink-2); }
.sc-steps li.done::before { content: "✓"; border: 0; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; animation: sc-pop .35s var(--ease); }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* results */
.sc-results { display: grid; gap: 1.4rem; }
.sc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .6rem 2rem; }
.sc-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.sc-head h2 .mono { color: var(--green); word-break: break-all; }
.sc-head .sc-meta { color: var(--ink-3); font-size: .88rem; font-family: var(--mono); margin: 0; direction: ltr; unicode-bidi: isolate; }
.sc-flash { margin: 0; color: var(--ink-2); font-size: .95rem; }
.sc-flash.mailed::before { content: "✉ "; }

.sc-dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sc-dial { background: var(--paper-2); padding: 1.3rem 1rem 1.1rem; display: grid; justify-items: center; gap: .55rem; text-align: center; }
.sc-dial svg { width: 6rem; height: 6rem; }
.sc-dial .track { fill: none; stroke: var(--sunk); stroke-width: 7; }
.sc-dial .arc { fill: none; stroke-width: 7; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.1s var(--ease); }
.sc-dial .num { font-family: var(--display); font-weight: 700; font-size: 1.7rem; fill: var(--ink); dominant-baseline: central; text-anchor: middle; }
.sc-dial .l { font-family: var(--display); font-weight: 600; font-size: .92rem; }
.sc-dial.good .arc { stroke: var(--live); } .sc-dial.warn .arc { stroke: var(--amber); } .sc-dial.bad .arc { stroke: #C4392E; } .sc-dial.none .arc { stroke: var(--line-2); }
.sc-dial.none .num { fill: var(--ink-3); }
.sc-psi-note { margin: 0; color: var(--ink-3); font-size: .86rem; }

.sc-metrics { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-size: .92rem; color: var(--ink-2); margin: 0; }
.sc-metrics span b { font-family: var(--mono); font-weight: 500; color: var(--ink); margin-inline-start: .35rem; }
.sc-metrics span i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-inline-end: .45rem; vertical-align: middle; }
.sc-metrics .good i { background: var(--live); } .sc-metrics .warn i { background: var(--amber); } .sc-metrics .bad i { background: #C4392E; }

.sc-groups { display: grid; gap: 1.2rem; }
.sc-group { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem clamp(1.1rem, 3vw, 1.8rem) .6rem; }
.sc-group header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.sc-group h3 { font-size: 1.12rem; }
.sc-group .sc-tally { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; }
.sc-row { display: grid; grid-template-columns: 1.7rem 1fr; gap: .2rem .9rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: start; }
.sc-row .ic { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; margin-top: .1rem; }
.sc-row.good .ic { background: var(--live); } .sc-row.warn .ic { background: var(--amber); } .sc-row.bad .ic { background: #C4392E; } .sc-row.info .ic { background: var(--ink-3); }
.sc-row .lbl { font-family: var(--display); font-weight: 600; font-size: .98rem; display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; }
.sc-row .lbl .st { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.sc-row.good .st { color: var(--live); } .sc-row.warn .st { color: var(--amber); } .sc-row.bad .st { color: #C4392E; } .sc-row.info .st { color: var(--ink-3); }
.sc-row .txt { grid-column: 2; color: var(--ink-2); font-size: .95rem; margin: 0; }
.sc-row .txt .mono { font-size: .88rem; direction: ltr; unicode-bidi: isolate; }
.sc-row .fix { grid-column: 2; margin: .35rem 0 0; font-size: .9rem; color: var(--ink-2); padding: .55rem .8rem; background: var(--green-soft); border-radius: 8px; border-inline-start: 3px solid var(--green); }
.sc-row .fix b { color: var(--green); font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .1rem; }
.sc-row ul.sc-broken { margin: .3rem 0 0; padding-inline-start: 1.1rem; font-size: .84rem; font-family: var(--mono); color: var(--ink-3); direction: ltr; text-align: start; }
.sc-row ul.sc-broken li { overflow-wrap: anywhere; }

.sc-cta { background: var(--dark); color: var(--dark-ink); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.4rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.sc-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: .4rem; }
.sc-cta p { margin: 0; color: var(--dark-ink2); max-width: 40rem; }
.sc-cta .btn-solid { background: var(--live); color: #0b1f17; box-shadow: none; }
.sc-cta .btn-solid:hover { background: #2ec27e; }
.sc-again { justify-self: start; }
@media (max-width: 40rem) { .sc-cta { grid-template-columns: 1fr; } }

/* staged entrance of result blocks */
.js .sc-results > * { opacity: 0; transform: translateY(12px); animation: sc-in .6s var(--ease) forwards; }
.js .sc-results > *:nth-child(2) { animation-delay: .1s; } .js .sc-results > *:nth-child(3) { animation-delay: .2s; }
.js .sc-results > *:nth-child(4) { animation-delay: .3s; } .js .sc-results > *:nth-child(5) { animation-delay: .4s; } .js .sc-results > *:nth-child(n+6) { animation-delay: .5s; }
@keyframes sc-in { to { opacity: 1; transform: none; } }

/* explanation sections */
.sc-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.6rem 2.2rem; margin-top: 2rem; counter-reset: how; }
.sc-how div { counter-increment: how; }
.sc-how h3 { font-size: 1.05rem; margin-bottom: .4rem; display: flex; gap: .7rem; align-items: baseline; }
.sc-how h3::before { content: counter(how, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--green); font-weight: 500; }
.sc-how p { margin: 0; color: var(--ink-2); font-size: .96rem; }

@media (prefers-reduced-motion: reduce) {
  .sc-steps li.active::before { animation: none; border-top-color: var(--green); }
  .sc-dial .arc { transition: none; }
  .js .sc-results > * { opacity: 1; transform: none; animation: none; }
}

/* keep the result/running heading clear of the sticky header when scrolled into view */
.sc-running, .sc-results { scroll-margin-top: 5.5rem; }
