/* Strona /o-stronie/ (Sprint 144) — według makiet docs/rozwoj/briefy/podglad_144/. Nie dziedziczy po base.html;
   tokeny z site-tokens.css (ładowany przed tym plikiem). Kolory, cienie i przezroczystości WYŁĄCZNIE z tokenów —
   strażnik config/test_style_literals.py pilnuje tego pliku. */

/* Tokeny (kolory, kroje, narożniki, skala tekstu) — w site-tokens.css, wspólnym ze stroną główną (Sprint 145). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--page); color: var(--text); font-family: var(--font-read); }
a { color: var(--accent); }

/* Pasek górny, menu, motyw, pigułki i ikony z pierścieniem — wspólne, w site-ui.css (Sprint 145). */

.eyebrow { font-family: var(--font-label); font-size: var(--fs-eyebrow); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
footer.pub-foot { text-align: center; margin-top: 64px; font: var(--fs-nav) var(--font-label); color: var(--muted); }

/* ── /o-stronie/ ─────────────────────────────────────────────────────────────────────────────────────── */
.about .wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px 64px; }
.hero { text-align: center; padding: 18px 0 0; }
.hero h1, .about-pilot .hero h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-hero); line-height: 1.1; color: var(--heading); margin-top: 10px; letter-spacing: -.01em; }
.hero h1 em, .about-pilot .hero h2 em { font-style: normal; color: var(--accent); }
.hero p { font-size: var(--fs-lead); color: var(--muted); max-width: 760px; margin: 14px auto 0; line-height: 1.5; }

.diagram { position: relative; width: 1200px; height: 660px; margin: 8px auto 0; }
.diagram > svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.links line { stroke: var(--accent-edge); stroke-width: 1.4; stroke-dasharray: 2 7; transition: stroke .3s; }
.links line.on { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.links circle { fill: var(--accent); opacity: .6; }
.brain { position: absolute; left: 330px; top: 160px; width: 540px; height: 340px; overflow: visible; }
.brain-core { fill: var(--sh2); opacity: 0; animation: core 3.3s ease-in-out infinite; }
@keyframes core { 0%, 100% { opacity: 0; } 50% { opacity: .45; } }

.mod { --c: var(--accent); --c-bg: var(--accent-dim);   /* barwa obszaru — skrypt nadpisuje per obszar */
       position: absolute; transform: translate(-50%, -38px); width: 190px; text-align: center; background: none; border: 0; cursor: pointer;
       color: var(--heading); font: 600 var(--fs-mod)/1.3 var(--font-label); }
.mod .ic { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--c-bg);
           color: var(--c); box-shadow: 0 0 0 6px var(--page), 0 0 0 7px var(--gold-line); transition: transform .25s, box-shadow .25s; }
.mod .ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mod:hover .ic, .mod:focus-visible .ic { transform: scale(1.08); }
.mod:focus-visible { outline: none; }
.mod:focus-visible .lbl { outline: 2px solid var(--accent); }
.mod .lbl { background: var(--page); padding: 1px 6px; border-radius: var(--radius-sharp); }
.mod.on .ic { box-shadow: 0 0 0 6px var(--page), 0 0 0 8px var(--c); transform: scale(1.1); }
.mod.on { color: var(--c); }

.found { display: flex; justify-content: center; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border: 1px solid var(--border); border-radius: 999px;
        background: var(--surface); font: 600 var(--fs-chip) var(--font-label); color: var(--heading); cursor: pointer; }
.chip i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-dim); display: grid; place-items: center; color: var(--accent); font-style: normal; font-size: var(--fs-sm); }
.chip.on { border-color: var(--accent); color: var(--accent); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.detail { max-width: 980px; margin: 30px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
          box-shadow: var(--shadow); padding: 26px 32px; display: grid; grid-template-columns: 1fr 260px; gap: 28px; min-height: 150px; }
.detail h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-detail-h); color: var(--heading); }
.detail p { font-size: var(--fs-body); line-height: 1.6; margin-top: 8px; }
.detail.hint { display: block; text-align: center; color: var(--muted); box-shadow: none; background: none; border-style: dashed; min-height: 0;
               padding: 18px; font-family: var(--font-label); font-size: var(--fs-chip); }

.why { margin-top: 88px; }
.why .eyebrow { text-align: center; display: block; }
.why h2 { text-align: center; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-why-h); color: var(--heading); margin: 8px 0 34px; }
.lead { max-width: 900px; margin: 0 auto 40px; font-size: var(--fs-lead); line-height: 1.65; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-card-h); color: var(--heading); line-height: 1.25; }
.card p { font-size: var(--fs-base); line-height: 1.6; margin-top: 10px; }
.closing { text-align: center; margin-top: 56px; font-family: var(--font-display); font-size: var(--fs-closing); color: var(--heading); }
.closing a { display: inline-block; margin-top: 12px; font-family: var(--font-label); font-size: var(--fs-chip); text-decoration: none; }

/* ── /o-autorze/ ─────────────────────────────────────────────────────────────────────────────────────── */
.author-card { display: grid; grid-template-columns: 320px 1fr; gap: 64px; }
.author-card aside { position: sticky; top: 32px; align-self: start; }
.author-card aside img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.author-card .name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); color: var(--heading); margin-top: 22px; }
.author-card .role { font-family: var(--font-label); font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.author-card article h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2); color: var(--heading); margin: 8px 0 20px; }
.author-card article h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); color: var(--heading); margin: 34px 0 6px; }
.author-card article p { font-size: var(--fs-lg); line-height: 1.7; margin-top: 14px; max-width: 72ch; }
.author-card article .sign { font-style: italic; color: var(--heading); }

/* /o-stronie/ ma części „O aplikacji” i „O autorze” z przełącznikiem u góry, na telefonie i komputerze
   (decyzja właściciela 2026-10-26; osobnej strony /o-autorze/ i pozycji w menu nie ma). */
.about-tabs { margin: 4px 0 18px; }   /* wygląd pigułek: .pills / .pill w site-ui.css */
.about-author { max-width: 1180px; margin: 72px auto 0; padding-top: 40px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
/* Z JavaScriptem widać jedną część naraz — „O autorze” bez linii i odstępu, które oddzielały ją od „O aplikacji”. */
body.parts .about-author { margin-top: 24px; padding-top: 0; border-top: 0; }
#o-aplikacji { scroll-margin-top: 16px; }
.detail .basis { border-left: 1px solid var(--border); padding-left: 24px; font-family: var(--font-label); font-size: var(--fs-sm); color: var(--muted); }
.detail .basis b { display: block; font-size: var(--fs-2xs); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.detail .basis span { display: block; color: var(--heading); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; margin-bottom: 5px; }
.detail.single { grid-template-columns: 1fr; }
/* Ramka nie zmienia wysokości przy przechodzeniu między obszarami (najechanie) — inaczej treść niżej skacze. */
@media (min-width: 1261px) {
  .detail:not(.hint) { min-height: 240px; }   /* najwyższa ramka: Klasyfikacja AI Act (pięć pozycji podstawy) */
  .detail:not(.hint):not(.single) { grid-template-columns: 1fr 330px; }
}

/* ── Telefon i wąskie okna ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1260px) {
  .about .wrap { padding: 0 16px 48px; }
  .hero h1, .about-pilot .hero h2 { font-size: var(--fs-2xl); }
  .hero p { font-size: var(--fs-base); }
  .diagram { width: 100%; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
  .diagram > svg.links { display: none; }
  .brain { position: static; grid-column: 1 / -1; width: 100%; height: 200px; margin: 6px 0 4px; }
  .mod { position: static; transform: none; width: auto; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface);
         border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; font-size: var(--fs-caption); }
  .mod .ic { width: 40px; height: 40px; margin: 0; flex: none; box-shadow: none; }
  .mod .ic svg { width: 20px; height: 20px; }
  .mod .lbl { background: none; padding: 0; }
  .mod.on { border-color: var(--c); }
  .mod.on .ic { box-shadow: none; transform: none; }
  .found { margin-top: 14px; gap: 8px; }
  .chip { font-size: var(--fs-nav); padding: 6px 12px 6px 6px; }
  .detail { grid-template-columns: 1fr; padding: 20px; gap: 14px; }
  .diagram > .detail { grid-column: 1 / -1; margin: 0; max-width: none; }   /* ramka pod wierszem dotkniętego kafelka */
  .diagram > .detail.hint { padding: 12px; }   /* zachęta pod mózgiem */
  .detail .basis { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
  .detail h2 { font-size: var(--fs-detail-h-tel); }
  .detail p { font-size: var(--fs-base); }
  .why { margin-top: 56px; }
  .why h2 { font-size: var(--fs-detail-h); }
  .lead { font-size: var(--fs-base); text-align: left; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 1fr; gap: 24px; }
  .author-card aside { position: static; text-align: center; }
  .author-card aside img { width: 180px; }
  .author-card article p { font-size: var(--fs-base); }
  .about-author { margin-top: 56px; padding-top: 32px; }
}

/* ── Część „Pilotaż” (/o-stronie/#pilotaz, Sprint 146) — makieta docs/rozwoj/briefy/podglad_146/pilotaz.html ──── */
.about-pilot { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border); scroll-margin-top: 16px; }
body.parts .about-pilot { margin-top: 0; padding-top: 0; border-top: 0; }   /* z JavaScriptem widać jedną część naraz */
.about-pilot .pz-cta { display: inline-flex; margin-top: 22px; }
.pz-share { cursor: pointer; }
.pz-share[hidden] { display: none; }   /* .pill ustawia display — bez tego atrybut hidden nie działa */
.pz-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pz-contact { text-align: center; margin-top: 28px; font-family: var(--font-label); font-size: var(--fs-chip); color: var(--muted); }
/* Film: na komputerze obok trzech zdań, na telefonie pod nagłówkiem na całą szerokość. */
.pz-film { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 48px auto 0; }   /* film, pod nim hasło */
.pz-under { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pz-caption { font-family: var(--font-display); font-size: var(--fs-card-h); color: var(--heading); }
/* Dwa filmy (2026-10-31): domyślna ramka to pionowy, nagrany na telefon — w jego proporcji, żeby obraz wypełniał ją bez
   pasów po bokach; na komputerze poziomy .pz-video-wide. Proporcję zmienia jedna zmienna --pz-ratio; wysokość
   ograniczona do 78% okna, żeby film mieścił się na ekranie. */
.pz-video { --pz-ratio: 9 / 16; position: relative; aspect-ratio: var(--pz-ratio); width: min(420px, calc(78vh * (var(--pz-ratio))));
            justify-self: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
            border: 1px solid var(--border); }
.pz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pz-video-wide { --pz-ratio: 16 / 9; width: min(960px, 100%, calc(78vh * (var(--pz-ratio)))); }
.pz-video-phone { display: none; }

.pz-section { margin-top: 88px; }
.pz-section > .eyebrow { display: block; text-align: center; }
.pz-section > h2 { text-align: center; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-why-h); color: var(--heading); margin: 8px 0 34px; }

/* Zakres: cztery etapy oceny systemu — numer etapu i ikona w pierścieniu. */
.pz-scope { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pz-scope .card { display: flex; flex-direction: column; }
.pz-scope .ring-ic { margin: 7px 0 18px 7px; }
.pz-scope .num { font-family: var(--font-label); font-size: var(--fs-2xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pz-more { text-align: center; margin-top: 26px; font-family: var(--font-label); font-size: var(--fs-chip); }
.pz-more a { text-decoration: none; }

/* Przebieg: oś czterech kroków. */
.pz-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: k; position: relative; }
.pz-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 22px; border-top: 1px solid var(--gold-line); }
.pz-steps li { position: relative; text-align: center; padding: 0 8px; }
.pz-steps li::before { counter-increment: k; content: counter(k); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px;
                       border-radius: 50%; background: var(--page); border: 1px solid var(--accent); color: var(--accent);
                       font: 600 var(--fs-base) var(--font-label); position: relative; }
.pz-steps h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-card-h); color: var(--heading); line-height: 1.25; }
.pz-steps p { font-size: var(--fs-base); line-height: 1.55; margin-top: 8px; }

/* Po Twojej stronie / po naszej stronie. */
.pz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1180px; margin: 0 auto; }
.pz-two ul { margin: 12px 0 0 18px; }
.pz-two li { font-size: var(--fs-base); line-height: 1.6; margin-top: 6px; }

@media (max-width: 1260px) {
  .pz-scope { grid-template-columns: 1fr 1fr; }
  .pz-section { margin-top: 56px; }
  .pz-section > h2 { font-size: var(--fs-detail-h); }
}
@media (max-width: 900px) {
  .pz-film { margin-top: 28px; }
  .pz-video { width: min(100%, calc(78vh * (var(--pz-ratio)))); }   /* telefon: na szerokość kolumny */
  .pz-video-wide { display: none; }
  .pz-video-phone { display: block; }
  .pz-scope, .pz-two { grid-template-columns: 1fr; }
  .pz-steps { grid-template-columns: 1fr; gap: 0; }
  .pz-steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 1px solid var(--gold-line); }
  .pz-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; text-align: left; padding: 0 0 22px; }
  .pz-steps li::before { grid-row: 1 / span 2; margin: 0; }
  .pz-steps p { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .brain-core, .links line.on { animation: none; }
  .mod .ic, button.ts-half { transition: none; }
}
