/* Styl nextrope.com: Overused Grotesk, grafit na jasnoszarym, limonkowy akcent, ostre rogi, etykiety [W NAWIASACH]. */
@font-face { font-family: "Overused Grotesk"; src: url(/static/og-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overused Grotesk"; src: url(/static/og-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Overused Grotesk"; src: url(/static/og-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #17171a;        /* tekst, ciemne tła */
  --paper: #eeeff1;      /* tło strony */
  --panel: #ffffff;
  --lime: #ccff89;       /* akcent Nextrope: akcje i „gotowe” */
  --lime-deep: #9bc95e;  /* krawędzie i obramowania akcentu */
  --line: #e4e4e4;
  --muted: #6b6b72;      /* drugi plan (#9b9b9b z nextrope.com ma za mały kontrast dla tekstu) */
  --faint: #9b9b9b;      /* etykiety i nieaktywne */
  --bad: #eb4f45;
  --warn: #e0a030;
  --font: "Overused Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* -- nagłówek: logo / produkt ............................ rola / wersja */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 40px; }
#home { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
#home .logo { display: block; }
#home .product { font-weight: 500; font-size: 15px; color: var(--ink); }
#home .product::before { content: "/"; color: var(--faint); margin-right: 14px; }
#role { font-size: 14px; color: var(--muted); }

main { max-width: 920px; margin: 8px auto 64px; padding: 0 16px; }
h1 { font-weight: 500; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 4px 0 24px; }
a { color: var(--ink); text-decoration-color: var(--lime-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.back { display: inline-block; margin: 8px 0 4px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

/* -- panele; nagłówek zwykłej sekcji jak etykieta [W NAWIASACH] z nextrope.com */
section, .card { background: var(--panel); border: 1px solid var(--line); padding: 22px 24px; margin-bottom: 12px; }
section:not(.step) > h2 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); margin: 0 0 14px; }
section:not(.step) > h2::before { content: "["; }
section:not(.step) > h2::after { content: "]"; }
.card > b { font-weight: 500; font-size: 18px; }

/* -- kroki: numer w kwadracie, tytuł, stan [W NAWIASIE] po prawej */
.step { border-left: 3px solid var(--line); }
.step.done { border-left-color: var(--lime-deep); }
.step.busy { border-left-color: var(--ink); }
.step.bad { border-left-color: var(--bad); }
.step.wait { background: #fafafb; }
.step.wait h2 { color: var(--muted); }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 6px; }
.step .n { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; background: var(--paper);
  font-size: 14px; font-weight: 500; }
.step.done .n { background: var(--lime); }
.step.busy .n { background: var(--ink); color: var(--lime); }
.step.bad .n { background: var(--bad); color: #fff; }
.step .st { margin-left: auto; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--faint); white-space: nowrap; }
.step .st::before { content: "["; }
.step .st::after { content: "]"; }
.step.todo .st { color: var(--ink); }
.step.done .st { color: #4f7a1c; }
.step.bad .st { color: var(--bad); }
.step.busy .st { color: var(--ink); }
/* krok w toku: migający piksel jak kropki na nextrope.com */
.step.busy .st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--ink);
  vertical-align: 1px; animation: pixel 1.1s steps(2, jump-none) infinite; }
.step.busy .st::after { content: ""; }
@keyframes pixel { from { opacity: 1; } to { opacity: 0.15; } }

.why { color: var(--muted); margin: 4px 0 12px; font-size: 15px; }

/* szyfrowanie i wysyłka pakietu: pasek w miejscu przycisku */
.sending { margin: 16px 0 4px; }
.sending .bar { height: 12px; border: 1px solid var(--ink); background: var(--panel); overflow: hidden; }
.sending .bar > span { display: block; height: 100%; background-color: var(--lime);
  background-image: repeating-linear-gradient(-45deg, transparent 0 8px, var(--lime-deep) 8px 16px);
  background-size: 22.6px 22.6px; animation: stripes 0.9s linear infinite; transition: width 0.6s ease; }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 22.6px 0; } }
ol.stages { list-style: none; padding: 0; margin: 14px 0 6px; }
ol.stages li { padding: 3px 0 3px 22px; position: relative; color: var(--faint); }
ol.stages li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border: 1px solid var(--faint); }
ol.stages li.done { color: var(--muted); }
ol.stages li.done::before { background: var(--lime-deep); border-color: var(--lime-deep); }
ol.stages li.now { color: var(--ink); font-weight: 500; }
ol.stages li.now::before { background: var(--ink); border-color: var(--ink); animation: pixel 1.1s steps(2, jump-none) infinite; }
.fix { color: var(--ink); font-size: 15px; }
p { margin: 8px 0; }

/* -- sprawdzenia gotowości */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: 10px 0 10px 16px; border-left: 3px solid var(--line); border-bottom: 1px solid var(--line); }
ul.checks li:last-child { border-bottom: 0; }
ul.checks li b { font-weight: 500; }
ul.checks li .why { margin: 2px 0 0; font-size: 14px; }
ul.checks li.ok { border-left-color: var(--lime-deep); }
ul.checks li.warn { border-left-color: var(--warn); }
ul.checks li.bad { border-left-color: var(--bad); }

/* -- komunikaty */
.err, .warnbox { padding: 10px 14px; margin-top: 10px; border-left: 3px solid var(--bad); background: #fdf0ef; }
.warnbox { border-left-color: var(--warn); background: #fdf7ea; }
.err b, .warnbox b { font-weight: 500; }
.eta { font-weight: 500; font-size: 17px; }
.eta.why { font-weight: 400; font-size: 15px; }
.verdict { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; padding: 16px 18px; margin-top: 12px; }
.verdict.good { background: var(--lime); color: var(--ink); }
.verdict.good::before { content: "↳ "; }
.verdict.badv { background: var(--bad); color: #fff; }
.fp { font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; background: var(--paper); padding: 2px 8px; }

details { margin-top: 8px; }
summary { cursor: pointer; font-size: 14px; color: var(--muted); }
summary:hover { color: var(--ink); }
pre { background: var(--ink); color: #e9e9ec; padding: 12px 14px; overflow-x: auto; font: 12px/1.5 var(--mono);
  max-height: 300px; margin: 8px 0 0; }

/* -- formularze */
label { display: block; margin: 14px 0 4px; font-size: 14px; font-weight: 500; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid #cfd0d4; border-radius: 0; background: #fff;
  font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
input[type=checkbox] { width: auto; margin-right: 6px; accent-color: var(--ink); }
input[type=file] { padding: 7px; background: var(--paper); border-style: dashed; }
textarea { min-height: 72px; font-family: var(--mono); font-size: 14px; }

/* -- przyciski: główny limonkowy z „↳” jak „↳ Hire us”, drugorzędny obrysowany */
button { margin: 12px 8px 0 0; padding: 10px 16px; border: 1px solid var(--lime); border-radius: 0; background: var(--lime);
  color: var(--ink); font: 500 15px/1.2 var(--font); cursor: pointer; transition: background .15s, color .15s; }
button::before { content: "↳ "; }
button:hover { background: var(--ink); border-color: var(--ink); color: var(--lime); }
button.secondary { background: transparent; border-color: var(--ink); }
button.secondary::before { content: ""; }
button.secondary:hover { background: var(--ink); color: #fff; }
button:disabled, button:disabled:hover { background: var(--line); border-color: var(--line); color: var(--faint); cursor: wait; }

/* -- listy zleceń: wiersze z cienką linią jak lista kompetencji na nextrope.com */
table { border-collapse: collapse; width: 100%; }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
td:first-child { padding-left: 0; font-weight: 500; font-size: 17px; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  header.top { padding: 16px; }
  #home .product::before { margin-right: 10px; }
  section, .card { padding: 18px 16px; }
  .step h2 { font-size: 18px; flex-wrap: wrap; }
  td { display: block; padding: 2px 0; border: 0; }
  tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
main > h1 + .why { font-size: 17px; max-width: 680px; margin: -12px 0 24px; }
details.passed { margin-top: 12px; }
details.passed > summary { font-size: 15px; font-weight: 500; color: var(--ink); }
details.passed > summary::marker { color: var(--lime-deep); }

/* -- tło jak na nextrope.com: blade pikselowe X znaku Nextrope i grafitowa stopka z pikselową krawędzią */
html { background: #f3f3f3; }
body { background: transparent; display: flex; flex-direction: column; min-height: 100vh; }
body::before { content: ""; position: fixed; z-index: -1; pointer-events: none; right: -6vw; top: 96px;
  width: min(58vw, 680px); aspect-ratio: 1; background: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 8%22 shape-rendering=%22crispEdges%22 fill=%22%23e6e7ea%22><rect x=%220%22 y=%220%22 width=%221.02%22 height=%221.02%22/><rect x=%221%22 y=%220%22 width=%221.02%22 height=%221.02%22/><rect x=%226%22 y=%220%22 width=%221.02%22 height=%221.02%22/><rect x=%227%22 y=%220%22 width=%221.02%22 height=%221.02%22/><rect x=%220%22 y=%221%22 width=%221.02%22 height=%221.02%22/><rect x=%221%22 y=%221%22 width=%221.02%22 height=%221.02%22/><rect x=%222%22 y=%221%22 width=%221.02%22 height=%221.02%22/><rect x=%225%22 y=%221%22 width=%221.02%22 height=%221.02%22/><rect x=%226%22 y=%221%22 width=%221.02%22 height=%221.02%22/><rect x=%227%22 y=%221%22 width=%221.02%22 height=%221.02%22/><rect x=%221%22 y=%222%22 width=%221.02%22 height=%221.02%22/><rect x=%222%22 y=%222%22 width=%221.02%22 height=%221.02%22/><rect x=%223%22 y=%222%22 width=%221.02%22 height=%221.02%22/><rect x=%224%22 y=%222%22 width=%221.02%22 height=%221.02%22/><rect x=%225%22 y=%222%22 width=%221.02%22 height=%221.02%22/><rect x=%226%22 y=%222%22 width=%221.02%22 height=%221.02%22/><rect x=%222%22 y=%223%22 width=%221.02%22 height=%221.02%22/><rect x=%223%22 y=%223%22 width=%221.02%22 height=%221.02%22/><rect x=%224%22 y=%223%22 width=%221.02%22 height=%221.02%22/><rect x=%225%22 y=%223%22 width=%221.02%22 height=%221.02%22/><rect x=%222%22 y=%224%22 width=%221.02%22 height=%221.02%22/><rect x=%223%22 y=%224%22 width=%221.02%22 height=%221.02%22/><rect x=%224%22 y=%224%22 width=%221.02%22 height=%221.02%22/><rect x=%225%22 y=%224%22 width=%221.02%22 height=%221.02%22/><rect x=%221%22 y=%225%22 width=%221.02%22 height=%221.02%22/><rect x=%222%22 y=%225%22 width=%221.02%22 height=%221.02%22/><rect x=%223%22 y=%225%22 width=%221.02%22 height=%221.02%22/><rect x=%224%22 y=%225%22 width=%221.02%22 height=%221.02%22/><rect x=%225%22 y=%225%22 width=%221.02%22 height=%221.02%22/><rect x=%226%22 y=%225%22 width=%221.02%22 height=%221.02%22/><rect x=%220%22 y=%226%22 width=%221.02%22 height=%221.02%22/><rect x=%221%22 y=%226%22 width=%221.02%22 height=%221.02%22/><rect x=%222%22 y=%226%22 width=%221.02%22 height=%221.02%22/><rect x=%225%22 y=%226%22 width=%221.02%22 height=%221.02%22/><rect x=%226%22 y=%226%22 width=%221.02%22 height=%221.02%22/><rect x=%227%22 y=%226%22 width=%221.02%22 height=%221.02%22/><rect x=%220%22 y=%227%22 width=%221.02%22 height=%221.02%22/><rect x=%221%22 y=%227%22 width=%221.02%22 height=%221.02%22/><rect x=%226%22 y=%227%22 width=%221.02%22 height=%221.02%22/><rect x=%227%22 y=%227%22 width=%221.02%22 height=%221.02%22/></svg>") center / contain no-repeat; }
main { flex: 1; width: 100%; }
footer.foot { position: relative; margin-top: 48px; padding: 28px 40px 32px; background: var(--ink); color: #b9b9be;
  font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
  background: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 480 20%22 width=%22480%22 height=%2220%22 shape-rendering=%22crispEdges%22 fill=%22%2317171a%22><rect x=%220%22 y=%220%22 width=%2220%22 height=%2220%22/><rect x=%2260%22 y=%220%22 width=%2260%22 height=%2220%22/><rect x=%22140%22 y=%220%22 width=%2220%22 height=%2220%22/><rect x=%22180%22 y=%220%22 width=%2220%22 height=%2220%22/><rect x=%22240%22 y=%220%22 width=%2220%22 height=%2220%22/><rect x=%22300%22 y=%220%22 width=%2220%22 height=%2220%22/><rect x=%22360%22 y=%220%22 width=%2240%22 height=%2220%22/><rect x=%22420%22 y=%220%22 width=%2220%22 height=%2220%22/></svg>") 0 0 / 480px 20px repeat-x; }
footer.foot b { color: #fff; font-weight: 500; }
footer.foot .tag { text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }
@media (max-width: 640px) { body::before { width: 90vw; right: -30vw; top: 160px; } footer.foot { padding: 24px 16px; } }

/* -- operator, tryb zwykły: wybrane repozytoria/dokumentacja jako lista z usuwaniem */
.store { display: none; }
ul.picked { list-style: none; padding: 0; margin: 4px 0 8px; border-top: 1px solid var(--line); }
ul.picked li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.picked li.empty { color: var(--muted); font-size: 15px; }
ul.picked .kind { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); min-width: 108px; }
ul.picked .kind::before { content: "["; }
ul.picked .kind::after { content: "]"; }
ul.picked .path { font-weight: 500; overflow-wrap: anywhere; }
button.link { margin: 0 0 0 auto; padding: 2px 0; background: none; border: 0; color: var(--muted); text-decoration: underline;
  font-size: 14px; font-weight: 400; }
button.link::before { content: ""; }
button.link:hover { background: none; color: var(--bad); }
span.path { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
details.tech { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }

/* -- klient: zamówienie (wybór jak karty), podsumowanie, raport do pobrania */
fieldset { border: 0; padding: 0; margin: 16px 0 4px; }
legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
label.choice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 8px; padding: 12px 14px; border: 1px solid #cfd0d4;
  background: #fff; cursor: pointer; font-weight: 400; }
label.choice:hover { border-color: var(--ink); }
label.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--lime-deep); }
label.choice input { width: auto; margin-top: 4px; accent-color: var(--ink); }
label.choice b { display: block; font-weight: 500; }
label.choice .why { display: block; margin: 2px 0 0; font-size: 14px; }
table.summary td:first-child { font-weight: 400; font-size: 15px; color: var(--muted); width: 140px; }
a.cta { display: inline-block; margin: 14px 8px 0 0; padding: 10px 16px; background: var(--lime); color: var(--ink);
  font-weight: 500; text-decoration: none; }
a.cta::before { content: "↳ "; }
a.cta:hover { background: var(--ink); color: var(--lime); }
