/* Free website check (#check). Colors come only from the site tokens in index.html. */
#check{scroll-margin-top:82px}
#check .au-sr{position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

#check .au-card{max-width:960px; margin:0 auto; border:1px solid var(--line); border-radius:18px; background:var(--bg); overflow:hidden}

/* form */
#check .au-form{padding:18px 16px 16px}
#check .au-row{display:flex; flex-wrap:wrap; gap:10px}
#check .au-input{position:relative; flex:1 1 240px; display:flex; align-items:center; min-width:0}
#check .au-input svg{position:absolute; left:16px; color:var(--muted); pointer-events:none}
#check .au-input input{width:100%; height:48px; padding:0 18px 0 44px; border:1px solid var(--line2); border-radius:999px;
  background:var(--bg); color:var(--ink); font:inherit; font-size:16px; letter-spacing:-.01em; transition:border-color .18s, box-shadow .18s}
#check .au-input input::placeholder{color:var(--muted); opacity:1}
#check .au-input input:hover{border-color:var(--muted)}
#check .au-input input:focus{outline:none; border-color:var(--ink); box-shadow:0 0 0 4px var(--glow)}
#check .au-input input[readonly]{color:var(--muted); cursor:progress}
#check .au-input input[aria-invalid="true"]{border-color:var(--ink); border-style:dashed}
#check .btn{min-height:48px; padding:0 22px; font-size:15px}
#check .au-go{flex:1 1 100%}
#check .btn:disabled{opacity:.6; cursor:progress}
#check .btn svg{flex:none}
#check .au-hint{margin:10px 4px 0; font-size:13px; color:var(--muted)}

/* terminal log */
#check .au-term{border-top:1px solid var(--line); background:var(--bg2)}
#check .au-term-bar{display:flex; justify-content:space-between; gap:12px; padding:9px 16px; border-bottom:1px solid var(--line);
  font-size:11.5px; color:var(--muted); letter-spacing:.04em}
#check .au-timer{font-variant-numeric:tabular-nums}
#check .au-term-body{padding:14px 16px 16px; font-size:13px; line-height:1.65; color:var(--text); min-height:84px}
#check .au-ln{margin:0; display:flex; align-items:flex-start; gap:10px; overflow-wrap:anywhere}
#check .au-ln b{font-weight:500; color:var(--ink)}
#check .au-nw{white-space:nowrap}
#check .au-ln + .au-ln{margin-top:3px}
#check .au-muted{color:var(--muted)}
#check .au-ps{color:var(--muted); flex:none}
#check .au-st{flex:none; width:14px; height:21px; display:grid; place-items:center}
#check .au-step.is-ok{color:var(--muted)}
#check .au-step.is-ok .au-st{color:var(--ink)}
#check .au-step.is-run{color:var(--ink)}
#check .au-step.is-err{color:var(--ink)}
#check .au-step.is-err .au-st svg{stroke-width:2.6}
#check .au-new{animation:auIn .28s ease both}
#check .au-caret{display:inline-block; width:7px; height:14px; margin-left:2px; background:var(--ink); vertical-align:-2px; animation:auBlink 1.1s steps(1,end) infinite}
#check .au-spin{display:inline-block; flex:none; width:11px; height:11px; border:1.5px solid var(--line2); border-top-color:var(--ink); border-radius:50%; animation:auSpin .8s linear infinite}
#check .btn-primary .au-spin{border-color:var(--muted); border-top-color:var(--bg)}
@keyframes auIn{from{opacity:0; transform:translateY(3px)}}
@keyframes auBlink{0%,54%{opacity:1}54.01%,100%{opacity:0}}
@keyframes auSpin{to{transform:rotate(360deg)}}

/* results */
#check .au-out:empty{display:none}
#check .au-res{border-top:1px solid var(--line); padding:24px 16px 20px}
#check .au-res-head .kicker{margin:0 0 8px}
#check .au-domain{margin:0; font-size:clamp(22px,3vw,28px); line-height:1.15; font-weight:600; letter-spacing:-.03em; color:var(--ink); overflow-wrap:anywhere; scroll-margin-top:96px}
#check .au-domain:focus,#check .au-domain:focus-visible{outline:none}
#check .au-meta{margin:8px 0 0; font-size:12px; color:var(--muted); overflow-wrap:anywhere}

#check .au-scores{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:20px}
#check .au-score{border:1px solid var(--line); border-radius:14px; padding:16px 10px 14px; text-align:center; background:var(--bg); min-width:0}
#check .au-ring{position:relative; width:84px; height:84px; margin:0 auto 10px}
#check .au-ring svg{display:block; width:100%; height:100%; transform:rotate(-90deg)}
#check .au-ring-bg{fill:none; stroke:var(--line); stroke-width:6}
#check .au-ring-fg{fill:none; stroke:var(--ink); stroke-width:6; stroke-linecap:round; stroke-dasharray:100 100; transition:stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1)}
#check .au-score[data-band="mid"] .au-ring-fg{stroke-opacity:.55}
#check .au-score[data-band="poor"] .au-ring-fg{stroke-opacity:.28}
#check .au-score[data-band="none"] .au-ring-fg{stroke:none}
#check .au-score-n{position:absolute; inset:0; display:grid; place-items:center; font-size:24px; font-weight:600; letter-spacing:-.03em; color:var(--ink); font-variant-numeric:tabular-nums}
#check .au-score-l{margin:0; font-size:14px; font-weight:500; color:var(--ink); line-height:1.3}
#check .au-score-b{margin:4px 0 0; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}

#check .au-metrics{display:grid; grid-template-columns:1fr; margin:10px 0 0; border:1px solid var(--line); border-radius:14px; overflow:hidden}
#check .au-metrics > div{display:flex; align-items:baseline; gap:12px; padding:12px 16px; min-width:0}
#check .au-metrics > div + div{border-top:1px solid var(--line)}
#check .au-metrics dt{flex:none; width:34px; font-size:11.5px; letter-spacing:.08em; color:var(--muted)}
#check .au-metrics dd{margin:0; display:flex; flex-direction:column; row-gap:2px; min-width:0}
#check .au-mv{font-size:18px; font-weight:600; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums}
#check .au-md{font-size:13px; color:var(--muted)}

#check .au-note{display:flex; gap:10px; align-items:flex-start; margin:0; padding:13px 15px; border:1px dashed var(--line2); border-radius:14px; font-size:14px; color:var(--muted); line-height:1.5}
#check .au-note svg{flex:none; margin-top:2px; color:var(--ink)}
#check .au-note-psi{margin-top:20px}

#check .au-grid{display:grid; gap:28px; margin-top:28px}
#check .au-col{min-width:0}
#check .au-h{margin:0 0 12px; font-family:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace; font-size:11.5px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}
#check .au-summary{margin:0 0 26px; font-size:17px; line-height:1.5; letter-spacing:-.015em; color:var(--ink)}

#check .au-fixes{list-style:none; margin:0; padding:0; border-bottom:1px solid var(--line)}
#check .au-fixes li{display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; padding:14px 0; border-top:1px solid var(--line)}
#check .au-num{font-size:12px; color:var(--muted); padding-top:3px}
#check .au-fix-t{margin:0; font-size:15.5px; font-weight:600; letter-spacing:-.015em; color:var(--ink); line-height:1.35}
#check .au-fix-w{margin:4px 0 0; font-size:14px; color:var(--muted); line-height:1.5}
#check .au-tag{display:inline-block; margin-top:9px; padding:2px 9px; border:1px solid var(--line2); border-radius:999px; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--text)}
#check .au-tag[data-effort="quick"]{border-color:var(--ink); color:var(--ink)}

#check .au-checks{list-style:none; margin:0; padding:0; border-bottom:1px solid var(--line)}
#check .au-ck{display:grid; grid-template-columns:22px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 0; border-top:1px solid var(--line); font-size:14.5px; color:var(--text)}
#check .au-ck-i{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; border:1px solid var(--line2); color:var(--ink)}
#check .au-ck[data-ok="0"] .au-ck-i{background:var(--ink); border-color:var(--ink); color:var(--bg)}
#check .au-ck[data-ok="0"] .au-ck-l{color:var(--ink)}
#check .au-ck-i svg{stroke-width:2.6}
#check .au-ck-d{font-size:12px; color:var(--muted); text-align:right; white-space:nowrap}

/* next steps */
#check .au-next{display:flex; flex-direction:column; align-items:flex-start; gap:16px; margin-top:30px; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--bg2)}
#check .au-next h4{margin:0 0 4px; font-size:18px; font-weight:600; letter-spacing:-.02em; color:var(--ink)}
#check .au-next p{margin:0; font-size:14px; color:var(--muted); max-width:44ch}
#check .au-next .btn{width:100%}

#check .au-lead{margin-top:12px; padding:20px; border:1px solid var(--line); border-radius:16px}
#check .au-lead .au-send{flex:1 1 100%}
#check .au-consent{display:flex; gap:10px; align-items:flex-start; margin-top:12px; font-size:13.5px; line-height:1.45; color:var(--text); cursor:pointer}
#check .au-consent input{flex:none; width:17px; height:17px; margin:1px 0 0; accent-color:var(--ink); cursor:pointer}
#check .au-consent input:focus-visible{outline:2px solid var(--ink); outline-offset:2px}
#check .au-consent input[aria-invalid="true"]{outline:1.5px dashed var(--ink); outline-offset:2px}
#check .au-lead-err{display:flex; gap:8px; align-items:center; margin:10px 0 0; font-size:13.5px; color:var(--ink)}
#check .au-lead-err:empty{display:none}
#check .au-thanks{display:flex; gap:12px; align-items:center}
#check .au-thanks svg{flex:none; color:var(--ink)}
#check .au-thanks p{margin:0; font-size:15px; color:var(--ink); overflow-wrap:anywhere}

@media (min-width:560px){
  #check .au-form{padding:24px 24px 20px}
  #check .au-go,#check .au-lead .au-send{flex:none}
  #check .au-term-bar{padding:9px 24px}
  #check .au-term-body{padding:16px 24px 18px}
  #check .au-res{padding:28px 24px 24px}
  #check .au-next,#check .au-lead{padding:22px 24px}
}
@media (min-width:720px){
  #check .au-scores{grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
  #check .au-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  #check .au-metrics > div{flex-direction:column; gap:4px}
  #check .au-metrics > div + div{border-top:0; border-left:1px solid var(--line)}
  #check .au-next{flex-direction:row; align-items:center; justify-content:space-between; gap:24px}
  #check .au-next .btn{width:auto}
}
@media (min-width:880px){
  #check .au-res{padding:32px 32px 28px}
  #check .au-form{padding:28px 32px 22px}
  #check .au-term-bar{padding:9px 32px}
  #check .au-term-body{padding:16px 32px 20px}
  #check .au-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:40px}
  #check .au-next,#check .au-lead{padding:24px 28px}
}

@media (prefers-reduced-motion:reduce){
  #check .au-new,#check .au-caret{animation:none}
}
