/* Humbak: website checker (/sprawdz-strone). Only what styles.css does not cover. */
.chk{
  --c-red:#E5484D;--c-red-t:#FDECEC;--c-red-x:#9F1D22;
  --c-amb:#F59E0B;--c-amb-t:#FEF3DC;--c-amb-x:#8A5300;
  --c-grn:#16A34A;--c-grn-t:#E4F6EA;--c-grn-x:#166534;
  --c-shadow:0 1px 2px rgba(20,18,27,.04),0 12px 32px -12px rgba(20,18,27,.10);
}
.chk__lookup .lookup__bar{margin-top:0}
.chk__go{margin-top:14px}
.chk .chk__small{margin:12px 0 0;font-size:13.5px;font-weight:500;color:rgba(20,18,27,.78)}
.chk__ts{min-height:0}
.chk__ts:empty{display:none}
.chk .btn[disabled]{opacity:.65;cursor:progress}
.chk .chk__noscript{margin:22px 0 0;font-weight:600;color:var(--ink)}

/* ---------- cards ---------- */
.chk__card{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--c-shadow);padding:28px;min-width:0}
.chk__dash{display:grid;gap:16px;margin-top:36px}
.chk__dash[hidden],.chk__msg[hidden],.chk__cta[hidden],.chk__allok[hidden],.chk__ts2[hidden],.chk__leadmsg[hidden],
.chk [hidden]{display:none!important}

/* ---------- error / info message ---------- */
.chk__msg{display:flex;align-items:flex-start;gap:14px;margin:28px 0 0;padding:20px 22px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--c-red);border-radius:20px;box-shadow:var(--c-shadow)}
.chk__msg-ico{flex:0 0 32px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--c-red-t);color:var(--c-red)}
.chk__msg-ico svg{width:18px;height:18px}
.chk .chk__msg-text{margin:4px 0 0;font-size:16px;font-weight:600;line-height:1.5;color:var(--ink)}
.chk__msg--amber{border-left-color:var(--c-amb)}
.chk__msg--amber .chk__msg-ico{background:var(--c-amb-t);color:var(--c-amb)}

/* ---------- rings (score + gauges) ---------- */
.chk__ring{position:relative;flex:none;width:148px;height:148px;color:var(--vio)}
.chk__ring--g{width:96px;height:96px;margin:0 auto}
.chk__svg{display:block;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.chk__svg circle{fill:none;stroke-width:12;r:68px}
.chk__ring--g .chk__svg circle{stroke-width:8;r:44px}
.chk__track{stroke:var(--mist2)}
.chk__arc{stroke:currentColor;stroke-linecap:round;
  transition:stroke-dashoffset 900ms var(--ease),stroke .3s ease,opacity .2s ease}
.chk__ring.is-red{color:var(--c-red)}
.chk__ring.is-amber{color:var(--c-amb)}
.chk__ring.is-green{color:var(--c-grn)}
.chk__ring.is-spin .chk__arc{stroke-dashoffset:0;transition:none;opacity:1;
  transform-box:view-box;transform-origin:50% 50%;animation:chk-spin 1.1s linear infinite}
.chk__ring.is-spin .chk__score,.chk__ring.is-spin .chk__gval{visibility:hidden}
@keyframes chk-spin{to{transform:rotate(360deg)}}

.chk__score{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:baseline;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.chk__score-n{font-size:44px;font-weight:800;color:var(--ink);letter-spacing:-.03em}
.chk__score-d{font-size:18px;font-weight:600;color:var(--mut);margin-left:2px}
.chk__gval{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:baseline;line-height:1;font-size:22px;font-weight:800;color:var(--ink);letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}
.chk__gunit{font-size:13px;font-weight:700;color:var(--mut);letter-spacing:0}

/* ---------- card A: summary ---------- */
.chk__sum{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center}
.chk__sumtxt{min-width:0}
.chk .chk__domain{margin:0 0 6px;font-size:14px;font-weight:600;letter-spacing:.01em;color:var(--mut);overflow-wrap:anywhere}
.chk .chk__head{margin:0;font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.02em;color:var(--ink);text-wrap:balance;overflow-wrap:anywhere;outline:none}
.chk .chk__loadtxt{margin:0;font-size:20px;line-height:1.3;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.chk__tiles{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chk .chk__tile{margin:0;border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-width:0;transition:opacity .2s ease}
.chk__tile-n{font-size:28px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.chk__tile-l{font-size:13px;line-height:1.25;font-weight:600}
.chk .chk__tile--pilne{background:var(--c-red-t);color:var(--c-red-x)}
.chk .chk__tile--do_poprawy{background:var(--c-amb-t);color:var(--c-amb-x)}
.chk .chk__tile--ok{background:var(--c-grn-t);color:var(--c-grn-x)}
.chk .chk__tile.is-zero{opacity:.55}
.chk .chk__tile--sk{height:66px}
.chk .chk__allok{margin:14px 0 0;padding:14px 16px;border-radius:16px;background:var(--c-grn-t);color:var(--c-grn-x);font-size:15px;line-height:1.5;font-weight:600}

/* ---------- card B: PageSpeed ---------- */
.chk__gauges{display:grid;grid-template-columns:repeat(2,minmax(0,150px));justify-content:center;gap:24px}
.chk__gauges.is-one{grid-template-columns:minmax(0,150px)}
.chk__gauge{text-align:center;min-width:0}
.chk .chk__glabel{margin:10px 0 0;font-size:14px;line-height:1.35;font-weight:600;color:var(--ink2)}
.chk .chk__loadspeed{margin:18px 0 0;text-align:center;font-size:14px;font-weight:600;color:var(--ink2)}
.chk .chk__note{margin:16px auto 0;max-width:560px;text-align:center;font-size:13.5px;line-height:1.5;color:var(--mut)}
.chk__gauges[hidden]+.chk__loadspeed,.chk__gauges[hidden]~.chk__note{margin-top:0}

/* ---------- card C: findings ---------- */
.chk__find{padding-top:12px;padding-bottom:12px}
.chk__rows{list-style:none;margin:0;padding:0}
.chk .chk__row{margin:0;display:grid;grid-template-columns:32px 1fr auto;grid-template-areas:"ico txt pill";gap:14px;align-items:center;padding:16px 4px;border-top:1px solid var(--line)}
.chk .chk__row:first-child{border-top:0}
.chk__ico{grid-area:ico;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;align-self:start;margin-top:-1px}
.chk__ico svg{width:16px;height:16px}
.chk .chk__txt{grid-area:txt;margin:0;font-size:16px;line-height:1.5;color:var(--ink);min-width:0}
.chk .chk__row--ok .chk__txt{color:var(--ink2)}
.chk__pill{grid-area:pill;justify-self:end;padding:4px 11px;border-radius:999px;font-size:12.5px;line-height:1.3;font-weight:700;white-space:nowrap}
.chk__row--pilne .chk__ico,.chk__row--pilne .chk__pill{background:var(--c-red-t)}
.chk__row--pilne .chk__ico{color:var(--c-red)}
.chk__row--pilne .chk__pill{color:var(--c-red-x)}
.chk__row--do_poprawy .chk__ico,.chk__row--do_poprawy .chk__pill{background:var(--c-amb-t)}
.chk__row--do_poprawy .chk__ico{color:var(--c-amb)}
.chk__row--do_poprawy .chk__pill{color:var(--c-amb-x)}
.chk__row--ok .chk__ico,.chk__row--ok .chk__pill{background:var(--c-grn-t)}
.chk__row--ok .chk__ico{color:var(--c-grn)}
.chk__row--ok .chk__pill{color:var(--c-grn-x)}
.chk__row.is-new{animation:chk-in 260ms var(--ease) both}
@keyframes chk-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* skeleton rows */
.chk .chk__row--sk{grid-template-columns:32px 1fr;grid-template-areas:none}
.chk__row--sk .chk__sk-ico{width:28px;height:28px;border-radius:50%}
.chk__sk-lines{display:grid;gap:9px}
.chk__sk-bar{height:12px;border-radius:6px}
.chk__sk-bar:first-child{width:70%}
.chk__sk-bar:last-child{width:45%}

/* shimmer */
.chk__shim{background:linear-gradient(90deg,#ECE8F4 0,#F8F6FB 50%,#ECE8F4 100%);background-size:200% 100%;animation:chk-shim 1.4s linear infinite}
@keyframes chk-shim{from{background-position:100% 0}to{background-position:-100% 0}}

/* ---------- CTA (dark card) ---------- */
.chk__cta{margin:40px 0 0;max-width:none}
.chk__cta h2{color:#fff}
.chk__cta .form-card__sub{color:rgba(255,255,255,.76)!important}
.chk__cta .form-grid{margin-top:26px}
.chk__cta .check a{color:#C7D2FE;text-decoration:underline}
.chk__ts2{min-height:65px}
.chk__cta-small{font-size:14.5px}
.chk__leadmsg{margin-top:16px;font-size:16px;font-weight:600;line-height:1.5}
.chk__leadmsg.is-success{color:#B6F0C4}
.chk__leadmsg.is-error{color:#FFB4A6}

/* ---------- empty state before the first check (decorative, aria-hidden) ---------- */
.chk__empty{margin-top:36px}
.chk .chk__empty-cap{margin:0 0 12px;font-size:15px;line-height:1.4;font-weight:700;color:var(--ink2)}
/* muted with explicit greys (no opacity/filter, so the labels keep AA contrast) */
.chk .chk__dash--empty{margin-top:0;pointer-events:none;user-select:none}
.chk__dash--empty .chk__card{box-shadow:none;background:#FAFAFB;border-style:dashed;border-color:#D9D7E0}
.chk__dash--empty .chk__track{stroke:#ECEBF0}
.chk__dash--empty .chk__score-n,.chk__dash--empty .chk__gval{color:#A9A6B4;font-weight:700}
.chk .chk__dash--empty .chk__tile{background:#F1F0F4;color:#5E5A6E}
.chk__dash--empty .chk__tile-n{color:#A9A6B4}
.chk .chk__dash--empty .chk__glabel{color:#5E5A6E}

/* ---------- what we check (always on the page) ---------- */
.chk__what{margin-top:40px}
.chk .chk__what h2{margin:0;font-size:22px;line-height:1.3}
.chk .chk__what-list{margin:16px 0 0;padding-left:22px;display:grid;gap:8px}
.chk .chk__what-list li{margin:0;font-size:16px;line-height:1.5;color:var(--ink)}
.chk .chk__what-note{margin:16px 0 0;font-size:14px;line-height:1.5;color:var(--mut)}
@media (min-width:761px){.chk .chk__what-list{display:block;columns:2;column-gap:40px}.chk .chk__what-list li{break-inside:avoid;margin-bottom:8px}}

/* the header sentence already names the domain */
.chk .chk__domain{display:none!important}
.chk .chk__head{text-wrap:pretty}

/* ---------- wide screens: summary and PageSpeed side by side ---------- */
@media (min-width:1024px){
  .chk__dash{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:stretch}
  .chk__dash>.chk__find{grid-column:1/-1}
  .chk__ps{display:flex;flex-direction:column;justify-content:center}
}

/* ---------- mobile ---------- */
@media (max-width:760px){
  .chk__card{border-radius:22px;padding:20px}
  .chk__find{padding-top:6px;padding-bottom:6px}
  .chk__msg{padding:18px 18px 18px 16px}
  .chk__sum{grid-template-columns:1fr;gap:18px;justify-items:center;text-align:center}
  .chk__sumtxt{width:100%}
  .chk__ring--big{width:128px;height:128px}
  .chk__ring--big .chk__svg circle{r:58px}
  .chk__ring--g{width:84px;height:84px}
  .chk__ring--g .chk__svg circle{r:38px}
  .chk .chk__head{font-size:20px}
  .chk .chk__tile{padding:12px 10px;align-items:center;text-align:center}
  .chk__tile-n{font-size:22px}
  .chk .chk__allok{text-align:left}
  .chk__gauges{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .chk__gauges.is-one{grid-template-columns:minmax(0,1fr)}
  .chk__gunit{font-size:12px}
  .chk .chk__row{grid-template-columns:28px 1fr;grid-template-areas:"ico pill" "ico txt";gap:6px 14px;align-items:start}
  .chk__pill{justify-self:start}
  .chk .chk__row--sk{grid-template-columns:28px 1fr;grid-template-areas:none;gap:14px}
  .chk__cta{padding:32px 22px 30px;border-radius:26px}
  .chk__cta .form-grid{grid-template-columns:1fr}
  .chk__cta .btn{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .chk__arc{transition:none}
  .chk__ring.is-spin .chk__arc{animation-duration:3s}
  .chk__row.is-new{animation:none}
  .chk__shim{animation:none;background:var(--mist2)}
}
