/* ==========================================================================
   Strony usług – dedykowane widoki (11.11.2026)
   Ładowane tylko na stronach usług (layout.php, $svcAssets). Markup: app/Views/site/partials/svc/*.php
   Każda usługa ma motyw (--a1, --a2, --night) i własny widżet w hero; dolna część jest wspólna w wariantach.
   ========================================================================== */

.sv { --a1: #3fb5e8; --a2: #34d399; --night: #05070b; --a-ink: #0b1220; --a-soft: #eef6fb; }
.sv-web     { --a1: #818cf8; --a2: #22d3ee; --night: #070a16; --a-ink: #3730a3; --a-soft: #eef0ff; }
.sv-backend { --a1: #fb923c; --a2: #facc15; --night: #0c0905; --a-ink: #9a3412; --a-soft: #fff4ea; }
.sv-b2b     { --a1: #2dd4bf; --a2: #fbbf24; --night: #031311; --a-ink: #0f766e; --a-soft: #e9faf6; }
.sv-desktop { --a1: #60a5fa; --a2: #fb923c; --night: #0a0d14; --a-ink: #1d4ed8; --a-soft: #edf4ff; }
.sv-api     { --a1: #38bdf8; --a2: #a78bfa; --night: #040a15; --a-ink: #0369a1; --a-soft: #ebf7fe; }
.sv-dppc    { --a1: #10b981; --a2: #84cc16; --night: #04140d; --a-ink: #047857; --a-soft: #e9f8f0; }
.sv-seo     { --a1: #c084fc; --a2: #f472b6; --night: #0d0817; --a-ink: #7e22ce; --a-soft: #f6eefe; }
.sv-ux      { --a1: #f43f5e; --a2: #8b5cf6; --night: #140a10; --a-ink: #be123c; --a-soft: #fff0f3; }
.sv-vue     { --a1: #42b883; --a2: #a7f3d0; --night: #04110c; --a-ink: #15803d; --a-soft: #eaf8f1; }
.sv-sec     { --a1: #f87171; --a2: #4ade80; --night: #070707; --a-ink: #b91c1c; --a-soft: #fef0f0; }

/* ---------- HERO (ciemny wariant korzysta z .xhero dla nagłówka) ---------- */
.sv-hero { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(64px, 7vw, 108px); background: var(--night); }
.sv-hero.xhero::before { opacity: .5; }
.sv-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.sv-hero-bg i { position: absolute; border-radius: 50%; filter: blur(80px); }
.sv-hero-bg i:nth-child(1) { width: 52vw; height: 52vw; left: -16vw; top: -24vw; background: radial-gradient(circle, color-mix(in srgb, var(--a1) 55%, transparent), transparent 65%); opacity: .75; }
.sv-hero-bg i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: 4vw; background: radial-gradient(circle, color-mix(in srgb, var(--a2) 40%, transparent), transparent 65%); opacity: .7; }
.sv-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sv-hero-stack .sv-hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.sv-hero-stack .sv-hero-copy { max-width: 860px; }
.sv-hero-copy { position: relative; z-index: 2; }
.sv-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--x-muted, #9aa7b8); }
.sv-crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.sv-crumbs a { color: inherit; text-decoration: none; }
.sv-crumbs a:hover, .sv-crumbs [aria-current] { color: #fff; }
.sv-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0; padding: 5px 14px 5px 5px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: var(--fs-xs); font-weight: 500; color: rgba(245, 247, 250, .85); }
.sv-pill-tag { padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--a1), var(--a2)); color: #07090d; font-weight: 650; white-space: nowrap; }
.sv-h1 { margin: 22px 0 0; font-size: clamp(2.2rem, 1.15rem + 3.2vw, 3.8rem); line-height: 1.03; letter-spacing: -.038em; color: #f5f7fa; text-wrap: balance; }
.sv-h1-em { display: block; background: linear-gradient(92deg, var(--a1) 5%, var(--a2) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-lead { max-width: 580px; margin: 22px 0 0; font-size: var(--fs-md); line-height: 1.65; color: #a3afc0; }
.sv-hero-stack .sv-lead { max-width: 700px; }
.sv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sv-actions-center { justify-content: center; }
.sv-btn-main { min-height: 50px; padding: 0 26px; border-radius: 999px; background: #fff; color: #05070b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 40px color-mix(in srgb, var(--a1) 40%, transparent); }
.sv-btn-main:hover { background: #fff; color: #05070b; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 16px 56px color-mix(in srgb, var(--a1) 60%, transparent); }
.sv-btn-ghost { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.sv-btn-ghost:hover { border-color: #fff; color: #fff; }
.sv-facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); list-style: none; font-size: var(--fs-xs); color: #9aa7b8; }
.sv-facts b { display: block; font-size: 1.15rem; font-weight: 650; color: #fff; }
.sv-stage { position: relative; z-index: 2; min-width: 0; }
.sv-hint { margin: 14px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: #9aa7b8; text-align: center; }

/* jasne hero (UX, DPPC) */
.sv-hero-light { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 7vw, 108px); background: var(--a-soft); color: var(--ink); }
.sv-hero-light .sv-crumbs { color: var(--muted); }
.sv-hero-light .sv-crumbs a:hover, .sv-hero-light .sv-crumbs [aria-current] { color: var(--ink); }
.sv-hero-light .sv-pill { border-color: color-mix(in srgb, var(--a-ink) 18%, transparent); background: rgba(255, 255, 255, .7); color: var(--ink-2); }
.sv-hero-light .sv-pill-tag { color: #fff; background: linear-gradient(90deg, var(--a-ink), var(--a1)); }
.sv-hero-light .sv-h1 { color: var(--ink); }
.sv-hero-light .sv-h1-em { background-image: linear-gradient(92deg, var(--a-ink) 5%, var(--a1) 85%); }
.sv-hero-light .sv-lead { color: var(--ink-2); }
.sv-hero-light .sv-btn-main { background: var(--ink); color: #fff; box-shadow: 0 12px 34px color-mix(in srgb, var(--a-ink) 28%, transparent); }
.sv-hero-light .sv-btn-main:hover { background: #000; color: #fff; }
.sv-hero-light .sv-btn-ghost { border-color: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
.sv-hero-light .sv-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.sv-hero-light .sv-facts { border-color: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--muted); }
.sv-hero-light .sv-facts b { color: var(--ink); }
.sv-hero-light .sv-hint { color: var(--muted); }

/* ---------- nagłówki sekcji ---------- */
.sv-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sv-head h2 { margin: 12px 0 0; letter-spacing: -.028em; text-wrap: balance; }
.sv-head p { margin: 16px 0 0; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.6; }
.sv .eyebrow { color: var(--a-ink); }
.sv .eyebrow::before { background: var(--a-ink); }
.sv .eyebrow-dark { color: var(--a1); }
.sv .eyebrow-dark::before { background: var(--a1); }

/* pojawianie się (services.js dodaje .is-in) */
.sv-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.sv-rv.is-in { opacity: 1; transform: none; }

/* ---------- KIEDY TO MA SENS: 3 warianty ---------- */
.sv-blocks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sv-block { position: relative; padding: 30px 28px 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.sv-block h3 { margin: 18px 0 0; font-size: 1.2rem; letter-spacing: -.015em; }
.sv-block p { margin: 12px 0 0; color: var(--ink-2); line-height: 1.65; }
.sv-block-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--a-soft); color: var(--a-ink); font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.sv-blocks-stack .sv-blocks-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.sv-blocks-stack .sv-block { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: start; padding: 34px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.sv-blocks-stack .sv-block h3 { margin: 6px 0 0; font-size: 1.35rem; }
.sv-blocks-stack .sv-block p { margin: 6px 0 0; }
.sv-blocks-stack .sv-block-n { width: auto; height: auto; background: none; font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--a-ink); }
.sv-blocks-quote .sv-blocks-grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; }
.sv-blocks-quote .sv-block:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; border: 0; background: var(--night); color: #fff; overflow: hidden; }
.sv-blocks-quote .sv-block:first-child::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--a1) 45%, transparent), transparent 55%), radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--a2) 30%, transparent), transparent 50%); }
.sv-blocks-quote .sv-block:first-child > * { position: relative; }
.sv-blocks-quote .sv-block:first-child h3 { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); color: #fff; }
.sv-blocks-quote .sv-block:first-child p { color: #c4ccd8; font-size: var(--fs-md); }
.sv-blocks-quote .sv-block:first-child .sv-block-n { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- PROCES: rail / ladder / cards / term ---------- */
.sv-process { position: relative; }
.sv-steps { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.sv-step small { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink); }
.sv-step h3 { margin: 6px 0 0; font-size: 1.2rem; letter-spacing: -.015em; }
.sv-step p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }
.sv-step-n { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--a-ink); font-weight: 700; box-shadow: 0 8px 22px rgba(11, 18, 32, .06); }

.sv-process-rail .sv-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 6px; }
.sv-process-rail .sv-steps::before, .sv-process-rail .sv-steps::after { content: ''; position: absolute; left: 28px; right: 28px; top: 34px; height: 2px; border-radius: 2px; background: var(--line); }
.sv-process-rail .sv-steps::after { right: auto; width: calc((100% - 56px) * var(--p, 0)); background: linear-gradient(90deg, var(--a-ink), var(--a1)); transition: width .25s linear; }
.sv-process-rail .sv-step { position: relative; z-index: 1; }
.sv-process-rail .sv-step > div { margin-top: 22px; }

.sv-process-ladder .sv-steps { gap: 0; max-width: 860px; }
.sv-process-ladder .sv-steps::before, .sv-process-ladder .sv-steps::after { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.sv-process-ladder .sv-steps::after { bottom: auto; height: calc((100% - 56px) * var(--p, 0)); background: linear-gradient(180deg, var(--a-ink), var(--a1)); }
.sv-process-ladder .sv-step { position: relative; z-index: 1; display: flex; gap: 28px; padding: 0 0 44px; }
.sv-process-ladder .sv-step:last-child { padding-bottom: 0; }
.sv-process-ladder .sv-step.is-lit .sv-step-n { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }

.sv-process-cards .sv-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.sv-process-cards .sv-step { position: relative; overflow: hidden; padding: 28px 24px 30px; border-radius: 24px; background: var(--a-soft); transition: transform .35s var(--ease), background-color .35s; }
.sv-process-cards .sv-step::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a1) 30%, transparent), transparent 70%); }
.sv-process-cards .sv-step:hover { transform: translateY(-6px) rotate(-.6deg); }
.sv-process-cards .sv-step-n { margin-bottom: 26px; }

.sv-process-term { background: var(--night); color: #e6ebf2; }
.sv-process-term .sv-head h2 { color: #fff; }
.sv-process-term .eyebrow { color: var(--a1); }
.sv-process-term .eyebrow::before { background: var(--a1); }
.sv-term { overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(255, 255, 255, .03); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.sv-term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #7d8898; }
.sv-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.sv-term-bar span { margin-left: 10px; }
.sv-term-step { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 2fr) auto; gap: 24px; align-items: baseline; padding: 22px 22px; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.sv-term-step:last-child { border-bottom: 0; }
.sv-term-cmd { margin: 0; font-size: 14px; color: var(--a1); }
.sv-term-cmd span { color: #7d8898; }
.sv-term-step h3 { margin: 0; font-family: var(--font); font-size: 1.05rem; color: #fff; }
.sv-term-step p { margin: 0; font-family: var(--font); color: #a3afc0; line-height: 1.6; }
.sv-term-step .sv-term-ok { font-family: inherit; font-size: 13px; color: var(--a2); opacity: 0; transition: opacity .4s; }
.sv-term-step.is-in .sv-term-ok { opacity: 1; transition-delay: calc(var(--i) * 90ms + .5s); }

/* ---------- PO WDROŻENIU ---------- */
.sv-after { position: relative; overflow: hidden; padding-block: clamp(64px, 7vw, 104px); background: var(--night); color: #fff; }
.sv-after::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 100% 0%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 60%); pointer-events: none; }
.sv-after-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sv-after h2 { margin: 12px 0 0; color: #fff; letter-spacing: -.028em; }
.sv-after-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sv-after-list li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .04); font-size: var(--fs-md); font-weight: 500; }
.sv-tick { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #06080c; }

/* ---------- FAQ ---------- */
.sv-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sv-faq-side { position: sticky; top: 110px; }
.sv-faq-side p { margin: 16px 0 0; color: var(--ink-2); }
.sv-link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--a-ink); text-decoration: none; }
.sv-link:hover { text-decoration: underline; }

/* ---------- liczby z produkcji ---------- */
.sv-proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sv-metric { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.sv-metric b { font-size: clamp(1.45rem, 1rem + 1vw, 1.95rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; background: linear-gradient(92deg, var(--a-ink), var(--a1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-metric span { color: var(--ink-2); line-height: 1.5; }
.sv-metric small { margin-top: auto; padding-top: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
a.sv-metric:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a-ink) 35%, transparent); box-shadow: 0 18px 40px rgba(11, 18, 32, .08); color: var(--ink); }

/* ---------- przełącznik usług ---------- */
.sv-switch-title { margin: 0 0 18px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sv-switch ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sv-sw { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.sv-sw i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #3fb5e8); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #3fb5e8) 18%, transparent); }
.sv-sw:hover { border-color: var(--c); transform: translateY(-2px); color: var(--ink); }
.sv-sw.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }
.sv-sw-web { --c: #6366f1; } .sv-sw-mobile { --c: #34d399; } .sv-sw-backend { --c: #f97316; } .sv-sw-b2b { --c: #14b8a6; }
.sv-sw-desktop { --c: #3b82f6; } .sv-sw-api { --c: #0ea5e9; } .sv-sw-dppc { --c: #10b981; } .sv-sw-seo { --c: #a855f7; }
.sv-sw-ux { --c: #f43f5e; } .sv-sw-vue { --c: #42b883; } .sv-sw-sec { --c: #ef4444; }

/* ---------- CTA ---------- */
.sv-final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(88px, 9vw, 150px); background: var(--night); color: #fff; text-align: center; }
.sv-final-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sv-final-art::before { content: ''; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--a1) 35%, transparent), transparent 30%, color-mix(in srgb, var(--a2) 28%, transparent), transparent 60%); filter: blur(60px); opacity: .55; animation: svSpin 26s linear infinite; }
.sv-final-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%); }
.sv-final h2 { margin: 0; font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.sv-final h2 span { background: linear-gradient(92deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-final p { max-width: 580px; margin: 20px auto 0; font-size: var(--fs-md); line-height: 1.6; color: var(--on-dark-muted); }

@keyframes svSpin { to { transform: rotate(360deg); } }
@keyframes svPulse { 50% { opacity: .35; } }
@keyframes svBlink { 50% { opacity: 0; } }
@keyframes svIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- wspólne: okno aplikacji (chrome) ---------- */
.sv-win { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: #0f1420; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.sv-win-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); font-size: 12px; color: #8792a3; }
.sv-win-bar > i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.sv-win-bar > i:nth-child(1) { background: #ff5f57; } .sv-win-bar > i:nth-child(2) { background: #febc2e; } .sv-win-bar > i:nth-child(3) { background: #28c840; }
.sv-url { flex: 1; max-width: 360px; margin: 0 auto; padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #aab4c3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #dfe6ef; font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.sv-chip-btn:hover { border-color: rgba(255, 255, 255, .35); }
.sv-chip-btn:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; }
.sv-chip-btn[aria-pressed="true"], .sv-chip-btn.is-on { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 22%, transparent); color: #fff; }
.sv-mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

/* ---------- responsywność wspólnych części ---------- */
@media (max-width: 1080px) {
  .sv-process-rail .sv-steps, .sv-process-cards .sv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .sv-process-rail .sv-steps::before, .sv-process-rail .sv-steps::after { display: none; }
  .sv-term-step { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .sv-term-step .sv-term-ok { display: none; }
}
@media (max-width: 960px) {
  .sv-hero-grid, .sv-after-grid, .sv-faq-grid { grid-template-columns: 1fr; }
  .sv-faq-side { position: static; }
  .sv-blocks-grid, .sv-blocks-quote .sv-blocks-grid { grid-template-columns: 1fr; }
  .sv-blocks-quote .sv-block:first-child { grid-row: auto; min-height: 280px; }
  .sv-blocks-stack .sv-block { grid-template-columns: 60px minmax(0, 1fr); }
  .sv-blocks-stack .sv-block p { grid-column: 2; }
}
@media (max-width: 640px) {
  .sv-process-rail .sv-steps, .sv-process-cards .sv-steps { grid-template-columns: 1fr; }
  .sv-term-step { grid-template-columns: 1fr; gap: 6px; }
  .sv-process-ladder .sv-step { gap: 18px; }
  .sv-blocks-stack .sv-block-n { font-size: 2rem; }
  .sv-after-list li { padding: 14px 16px; font-size: var(--fs-base); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-rv { opacity: 1; transform: none; transition: none; }
  .sv-final-art::before { animation: none; }
  .sv *, .sv *::before, .sv *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   WEB / SaaS – „Złóż MVP” i arkusz vs aplikacja
   ========================================================================== */
.web-stage { display: flex; flex-direction: column; gap: 18px; }
.web-win { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .6s var(--ease); }
.web-win:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.web-app { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 300px; background: #f6f7fb; color: var(--ink); font-size: 12px; }
.web-side { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; background: #111827; }
.web-logo { width: 26px; height: 26px; margin: 0 0 12px 6px; border-radius: 8px; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.web-nav { display: flex; align-items: center; gap: 8px; max-height: 0; padding: 0 8px; overflow: hidden; border-radius: 8px; color: #cbd5e1; opacity: 0; transition: max-height .45s var(--ease), opacity .35s, padding .45s var(--ease), background-color .2s; }
.web-nav em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.web-nav.is-in { max-height: 34px; padding: 7px 8px; opacity: 1; }
.web-nav.is-new { background: color-mix(in srgb, var(--a1) 30%, transparent); color: #fff; }
.web-nav:nth-child(3).is-in { background: rgba(255, 255, 255, .08); color: #fff; }
.web-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-width: 0; }
.web-top { display: flex; align-items: center; gap: 10px; }
.web-top b { margin-right: auto; font-size: 15px; }
.web-bell { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fff; color: #64748b; }
.web-bell i { position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px; border-radius: 99px; background: var(--a1); color: #fff; font-size: 9px; font-style: normal; font-weight: 700; line-height: 15px; text-align: center; }
.web-user { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-size: 10px; font-weight: 700; }
.web-kpis { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.web-kpis > span { padding: 9px 10px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(11, 18, 32, .05); }
.web-kpis small { display: block; color: #94a3b8; font-size: 10px; }
.web-kpis b { font-size: 16px; }
.web-spark { display: flex !important; align-items: flex-end; gap: 4px; }
.web-spark i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--a1), color-mix(in srgb, var(--a1) 40%, #fff)); }
.web-spark i:nth-child(1) { height: 30%; } .web-spark i:nth-child(2) { height: 45%; } .web-spark i:nth-child(3) { height: 38%; } .web-spark i:nth-child(4) { height: 60%; } .web-spark i:nth-child(5) { height: 55%; } .web-spark i:nth-child(6) { height: 78%; } .web-spark i:nth-child(7) { height: 92%; }
.web-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.web-rows li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 10px; background: #fff; }
.web-st { padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.web-st-w { background: #fef3c7; color: #92400e; } .web-st-p { background: #e0e7ff; color: #3730a3; } .web-st-d { background: #dcfce7; color: #166534; }
.web-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.web-cards span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px dashed #c7d2fe; border-radius: 10px; background: #fff; color: #3730a3; font-weight: 600; }
[data-web-w] { transition: opacity .4s, transform .4s var(--ease), filter .4s; }
[data-web-w].is-off { opacity: 0; transform: scale(.94); filter: blur(2px); pointer-events: none; }
.web-cards span.is-off { display: none; }
.web-bell.is-off { opacity: 0; transform: scale(.4); }
.web-kpis.is-off { display: none; }
.web-scope { padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.web-scope-q { margin: 0 0 12px; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.web-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.web-chips .sv-chip-btn:disabled { cursor: default; opacity: .75; }
.web-meter { margin-top: 16px; }
.web-meter-bar { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.web-meter-bar i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, var(--a2)); transition: width .45s var(--ease), background .4s; }
.web-meter[data-level="1"] .web-meter-bar i { width: 50%; background: linear-gradient(90deg, #34d399, var(--a1)); }
.web-meter[data-level="2"] .web-meter-bar i { width: 76%; background: linear-gradient(90deg, var(--a1), #fbbf24); }
.web-meter[data-level="3"] .web-meter-bar i { width: 100%; background: linear-gradient(90deg, #fbbf24, #f87171); }
.web-meter p { min-height: 2.8em; margin: 10px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: #b8c2d1; }

.web-vs-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; padding: 5px; border-radius: 999px; background: var(--a-soft); }
.web-vs-switch button { position: relative; z-index: 1; padding: 11px 22px; border: 0; background: none; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: color .3s; }
.web-vs-switch button[aria-selected="true"] { color: #fff; }
.web-vs-knob { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #b45309; transition: transform .45s var(--ease), background-color .45s; }
.web-vs[data-mode="app"] .web-vs-knob { transform: translateX(100%); background: var(--a-ink); }
.web-vs-stage { position: relative; }
.web-sheet, .web-appview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; animation: svIn .5s var(--ease); }
.web-sheet table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; box-shadow: 0 20px 50px rgba(11, 18, 32, .08); }
.web-sheet td, .web-sheet th { padding: 9px 12px; border: 1px solid #e2e8f0; text-align: left; white-space: nowrap; }
.web-sheet th, .web-sheet td:first-child { background: #f1f5f9; color: #64748b; font-weight: 500; text-align: center; }
.web-sheet tr.is-head td { font-weight: 700; }
.web-sheet td.is-bad { background: #fef2f2; color: #b91c1c; box-shadow: inset 0 0 0 2px #fca5a5; }
.web-sheet-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.web-file { padding: 6px 12px; border-radius: 8px; background: #166534; color: #fff; font-size: 13px; font-weight: 600; }
.web-warn { padding: 6px 12px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 13px; }
.web-pains, .web-gains { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.web-pains li, .web-gains li { position: relative; padding: 14px 16px 14px 46px; border-radius: 14px; background: #fff; border: 1px solid var(--line); line-height: 1.5; }
.web-pains li::before, .web-gains li::before { content: '!'; position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fee2e2; color: #b91c1c; font-weight: 700; font-size: 13px; }
.web-gains li::before { content: '✓'; background: #e0e7ff; color: var(--a-ink); }
.web-appview > div, .web-appview > ul:first-of-type { min-width: 0; }
.web-app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; grid-column: 1; padding: 0 2px 12px; }
.web-app-head b { font-size: 1.2rem; }
.web-search { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; }
.web-appview { grid-template-rows: auto 1fr; }
.web-app-list { grid-column: 1; display: grid; gap: 10px; margin: 0; padding: 18px; border-radius: 18px; background: #f6f7fb; list-style: none; box-shadow: 0 20px 50px rgba(55, 48, 163, .1); }
.web-app-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; animation: svIn .5s var(--ease) both; }
.web-app-list li:nth-child(2) { animation-delay: .08s; } .web-app-list li:nth-child(3) { animation-delay: .16s; }
.web-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e0e7ff; color: var(--a-ink); font-weight: 700; }
.web-app-c { flex: 1; min-width: 0; }
.web-app-c b { display: block; }
.web-app-c small { color: var(--muted); }
.web-gains { grid-column: 2; grid-row: 1 / 3; }
@media (max-width: 960px) {
  .web-win { transform: none; }
  .web-sheet, .web-appview { grid-template-columns: 1fr; }
  .web-gains { grid-column: 1; grid-row: auto; }
  .web-sheet table { font-size: 12px; }
  .web-sheet { overflow-x: auto; }
}
@media (max-width: 560px) {
  .web-app { grid-template-columns: 44px minmax(0, 1fr); }
  .web-nav em, .web-logo { display: none; }
  .web-nav.is-in { padding: 7px; justify-content: center; }
  .web-kpis { grid-template-columns: 1fr 1fr; }
  .web-spark { display: none !important; }
  .web-cards { grid-template-columns: 1fr; }
  .web-vs-switch button { padding: 10px 14px; font-size: var(--fs-xs); }
}
.sv [hidden] { display: none !important; }

.sv-btn-dark { min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; }
.sv-btn-dark:hover { background: #000; color: #fff; }

/* ==========================================================================
   BACKEND – strangler fig + test objawów
   ========================================================================== */
.be-stage { display: flex; flex-direction: column; gap: 14px; }
.be-flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: var(--fs-xs); color: #cbd5e1; }
.be-users, .be-router { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .04); white-space: nowrap; }
.be-router { border-color: color-mix(in srgb, var(--a1) 55%, transparent); color: #fff; }
.be-wire { position: relative; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .1), color-mix(in srgb, var(--a1) 60%, transparent)); }
.be-wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 10px var(--a2); animation: beRun 2.4s linear infinite; }
.be-wire i:nth-child(2) { animation-delay: .6s; } .be-wire i:nth-child(3) { animation-delay: 1.2s; } .be-wire i:nth-child(4) { animation-delay: 1.8s; }
@keyframes beRun { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.be-sys { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.be-box { position: relative; padding: 16px; border-radius: 18px; }
.be-old { border: 1.5px dashed rgba(251, 146, 60, .35); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .015) 0 10px, transparent 10px 20px), rgba(120, 53, 15, .14); }
.be-new { border: 1px solid color-mix(in srgb, var(--a2) 45%, transparent); background: rgba(250, 204, 21, .05); box-shadow: 0 0 60px rgba(250, 204, 21, .06) inset; }
.be-box-h { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; }
.be-box-h span { font-weight: 650; color: #fff; }
.be-box-h small { font-size: 11px; color: #9aa7b8; }
.be-box ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.be-box li { position: relative; padding: 9px 12px; border-radius: 10px; font-size: var(--fs-xs); font-weight: 600; transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .5s, color .5s, filter .5s; }
.be-old li { background: rgba(255, 255, 255, .06); color: #e8c9a8; }
.be-old li::after { content: ''; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fb923c; animation: svPulse 1.6s infinite; }
.be-new li { background: linear-gradient(90deg, color-mix(in srgb, var(--a1) 28%, transparent), color-mix(in srgb, var(--a2) 20%, transparent)); color: #fff; }
.be-new li::after { content: '✓'; position: absolute; right: 10px; color: var(--a2); }
.be-old li.is-gone { opacity: .12; transform: translateX(18px); filter: grayscale(1); }
.be-old li.is-gone::after { display: none; }
.be-new li:not(.is-here) { opacity: .08; transform: translateX(-18px); }
.be-new li.is-here { animation: beArrive .6s var(--ease); }
@keyframes beArrive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a2) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.be-ctrl { padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.be-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.be-steps button { padding: 9px 4px; border: 0; border-radius: 9px; background: none; color: #9aa7b8; font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s; }
.be-steps button:hover { color: #fff; }
.be-steps button[aria-checked="true"] { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1a0e02; }
.be-steps button:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.be-note { min-height: 3em; margin: 12px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: #d5dbe4; }
.be-live { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-xs); color: #9aa7b8; }
.be-live b { color: #fff; font-variant-numeric: tabular-nums; }
.be-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: svPulse 1.4s infinite; }

.be-check-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.be-sym { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.be-sym label { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; line-height: 1.45; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.be-sym label:hover { border-color: color-mix(in srgb, var(--a-ink) 40%, transparent); }
.be-sym input { position: absolute; opacity: 0; pointer-events: none; }
.be-box-ck { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 7px; color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.be-sym input:checked + .be-box-ck { border-color: var(--a-ink); background: var(--a-ink); color: #fff; }
.be-sym input:focus-visible + .be-box-ck { outline: 3px solid var(--a1); outline-offset: 2px; }
.be-sym label:has(input:checked) { border-color: var(--a-ink); background: var(--a-soft); }
.be-gauge { position: sticky; top: 110px; padding: 30px; border-radius: 24px; background: var(--night); color: #fff; text-align: center; }
.be-dial { position: relative; width: 220px; max-width: 100%; margin: 0 auto; }
.be-dial svg { display: block; width: 100%; }
.be-dial path { fill: none; stroke-width: 10; stroke-linecap: round; }
.be-dial-bg { stroke: rgba(255, 255, 255, .1); }
.be-dial-fg { stroke: url(#none); stroke: var(--a1); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v) * 100); transition: stroke-dashoffset .6s var(--ease), stroke .4s; }
.be-dial[data-l="3"] .be-dial-fg { stroke: #f87171; }
.be-dial[data-l="1"] .be-dial-fg { stroke: #34d399; }
.be-dial b { position: absolute; left: 0; right: 0; bottom: 0; font-size: 2.4rem; letter-spacing: -.04em; line-height: 1; }
.be-verdict-h { margin: 18px 0 0; font-size: 1.25rem; font-weight: 650; }
.be-verdict { min-height: 4.5em; margin: 10px 0 22px; color: #b8c2d1; line-height: 1.55; }
.be-gauge .sv-btn-dark { background: #fff; color: var(--ink); }
@media (max-width: 960px) {
  .be-check-grid { grid-template-columns: 1fr; }
  .be-gauge { position: static; }
}
@media (max-width: 640px) {
  .be-sym { grid-template-columns: 1fr; }
  .be-sys { gap: 8px; }
  .be-box { padding: 12px; }
  .be-steps button { font-size: 11px; padding: 8px 2px; }
  .be-flow { grid-template-columns: auto 1fr auto; font-size: 11px; }
}

/* ==========================================================================
   B2B – silnik cen + tablica zamówień
   ========================================================================== */
.b2b-stage { display: flex; flex-direction: column; gap: 14px; }
.b2b-card { padding: 18px; border-radius: 20px; background: #fbfaf7; color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.b2b-lbl { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.b2b-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.b2b-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.b2b-tabs button b { font-size: 13px; color: var(--ink); }
.b2b-tabs button small { font-size: 11px; color: var(--muted); }
.b2b-tabs button:hover { transform: translateY(-1px); }
.b2b-tabs button[aria-checked="true"] { border-color: var(--a-ink); background: var(--a-soft); }
.b2b-tabs button:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; }
.b2b-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; }
.b2b-table th { padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; }
.b2b-table th:last-child, .b2b-table td:last-child { text-align: right; }
.b2b-table td { padding: 10px 4px; border-bottom: 1px solid #efeee9; vertical-align: middle; }
.b2b-table td b { display: block; }
.b2b-table td small { color: var(--muted); font-size: 11px; }
.b2b-stock { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #dcfce7; color: #166534; font-size: 11px; font-weight: 600; }
.b2b-stock.is-low { background: #fef3c7; color: #92400e; }
.b2b-table s { display: block; font-size: 11px; color: var(--muted); }
.b2b-table td:last-child b { font-size: 15px; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.b2b-table td:last-child b.is-tick { animation: b2bTick .5s var(--ease); }
@keyframes b2bTick { 30% { color: #b45309; transform: scale(1.08); } }
.b2b-table em { display: block; font-size: 10.5px; font-style: normal; color: #a16207; }
.b2b-qty { display: grid; gap: 6px; margin-top: 14px; font-size: 13px; }
.b2b-qty b { color: var(--a-ink); font-variant-numeric: tabular-nums; }
.b2b-qty small { color: var(--muted); font-size: 11px; }
.b2b-qty input { width: 100%; accent-color: var(--a-ink); }
.b2b-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 13px; }
.b2b-sum b { display: block; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.b2b-limit { max-width: 60%; padding: 7px 11px; border-radius: 10px; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 600; line-height: 1.35; transition: background-color .3s, color .3s; }
.b2b-limit.is-over { background: #fef3c7; color: #92400e; }
.b2b-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.b2b-flow li { position: relative; padding: 10px 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: var(--fs-xs); font-weight: 600; color: #9aa7b8; text-align: center; transition: all .35s var(--ease); }
.b2b-flow li.is-done { border-color: color-mix(in srgb, var(--a1) 60%, transparent); background: color-mix(in srgb, var(--a1) 16%, transparent); color: #fff; }
.b2b-flow li.is-wait { border-color: rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .12); color: #fde68a; animation: svPulse 1.4s infinite; }

.b2b-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.b2b-col { padding: 14px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); min-height: 280px; }
.b2b-col-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-weight: 650; }
.b2b-col-h span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.b2b-col:nth-child(2) .b2b-col-h span { background: #fef3c7; border-color: #fde68a; }
.b2b-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.b2b-ord { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; box-shadow: 0 6px 16px rgba(11, 18, 32, .04); }
.b2b-ord b { color: var(--muted); font-weight: 600; }
.b2b-ord em { grid-column: 1 / -1; font-style: normal; font-weight: 700; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.b2b-ord.is-flag { border-color: #fcd34d; box-shadow: 0 0 0 3px #fef3c7; }
.b2b-ord.is-move { animation: b2bIn .6s var(--ease); }
@keyframes b2bIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@media (max-width: 960px) {
  .b2b-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .b2b-tabs { grid-template-columns: 1fr; }
  .b2b-tabs button { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .b2b-board { grid-template-columns: 1fr; }
  .b2b-col { min-height: 0; }
  .b2b-limit { max-width: none; }
  .b2b-flow li { font-size: 11px; padding: 9px 4px; }
}

/* ==========================================================================
   DESKTOP – agent importu (Windows ↔ Linux) + dobór technologii
   ========================================================================== */
.dk-stage { display: flex; flex-direction: column; gap: 14px; }
.dk-os { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.dk-os button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 9px; background: none; color: #9aa7b8; font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s; }
.dk-os button[aria-checked="true"] { background: #fff; color: #0a0d14; }
.dk-os button:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; }
.dk-win { position: relative; overflow: hidden; border-radius: 10px; background: #f3f3f3; color: #1b1b1b; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); transition: border-radius .45s var(--ease), background-color .45s; font-family: 'Segoe UI', var(--font); }
.dk-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 0 0 12px; background: #fff; border-bottom: 1px solid #e5e5e5; font-size: 12px; transition: background-color .45s, color .45s; }
.dk-app-ico { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, var(--a1), #2563eb); }
.dk-title { flex: 1; }
.dk-ctl { display: flex; height: 100%; }
.dk-ctl-win i { display: grid; place-items: center; width: 44px; font-style: normal; font-size: 11px; color: #444; }
.dk-ctl-win i:last-child:hover { background: #e81123; color: #fff; }
.dk-ctl-lin { display: none; gap: 8px; align-items: center; padding-right: 12px; }
.dk-ctl-lin i { width: 14px; height: 14px; border-radius: 50%; background: #d5d0cc; }
.dk-ctl-lin i:last-child { background: #e95420; }
.dk-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 300px; }
.dk-files { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.dk-path { margin: 0; padding: 6px 10px; border-radius: 6px; background: #fff; border: 1px solid #e1e1e1; font-size: 11.5px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-p-lin { display: none; }
.dk-files ul { display: grid; gap: 6px; flex: 1; align-content: start; margin: 0; padding: 0; list-style: none; }
.dk-file { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; background: #fff; font-size: 12px; animation: dkDrop .5s var(--ease); }
.dk-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dk-file .dk-ext { display: grid; place-items: center; width: 22px; height: 26px; border-radius: 3px; background: #e8f0fe; color: #1d4ed8; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.dk-file em { font-style: normal; font-size: 11px; color: #888; white-space: nowrap; }
.dk-file.is-busy em { color: #b45309; }
.dk-file.is-ok em { color: #15803d; font-weight: 600; }
.dk-file .dk-prog { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: #eee; overflow: hidden; }
.dk-file .dk-prog i { display: block; height: 100%; width: 0; background: var(--a1); transition: width 1.2s linear; }
.dk-file.is-ok .dk-prog i { background: #16a34a; }
@keyframes dkDrop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.dk-drop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1.5px dashed #b9c6db; border-radius: 8px; background: transparent; color: #1d4ed8; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.dk-drop:hover { background: #eef4ff; }
.dk-drop:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; }
.dk-side { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid #e3e3e3; }
.dk-dev { display: grid; gap: 6px; padding: 12px; font-size: 11.5px; }
.dk-dev span { display: flex; align-items: center; gap: 8px; }
.dk-dev i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; }
.dk-dev i.is-on { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.dk-dev b { font-variant-numeric: tabular-nums; }
.dk-log { flex: 1; min-height: 150px; margin: 0; padding: 12px; overflow: hidden; background: #0c1222; color: #9fb3c8; font-size: 10.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.dk-log .ok { color: #4ade80; } .dk-log .in { color: #93c5fd; } .dk-log .wa { color: #fbbf24; }
.dk-toast { position: absolute; right: 12px; bottom: 12px; max-width: 260px; padding: 12px 14px; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.dk-toast.is-on { opacity: 1; transform: none; }
.dk-toast::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #16a34a; }
/* Linux (GNOME) */
.dk-win[data-os="lin"] { border-radius: 14px; background: #fafafa; font-family: Ubuntu, Cantarell, var(--font); }
.dk-win[data-os="lin"] .dk-bar { justify-content: center; height: 42px; padding: 0 12px; background: #ebebeb; border-bottom-color: #d6d6d6; }
.dk-win[data-os="lin"] .dk-title { flex: 0 1 auto; font-weight: 700; text-align: center; }
.dk-win[data-os="lin"] .dk-app-ico { position: absolute; left: 14px; background: linear-gradient(135deg, #e95420, #fb923c); }
.dk-win[data-os="lin"] .dk-bar { position: relative; }
.dk-win[data-os="lin"] .dk-ctl-win { display: none; }
.dk-win[data-os="lin"] .dk-ctl-lin { display: flex; position: absolute; right: 0; top: 0; bottom: 0; }
.dk-win[data-os="lin"] .dk-p-win { display: none; }
.dk-win[data-os="lin"] .dk-p-lin { display: inline; }
.dk-win[data-os="lin"] .dk-file .dk-ext { background: #fdeee6; color: #c2410c; }
.dk-win[data-os="lin"] .dk-file .dk-prog i { background: #e95420; }
.dk-win[data-os="lin"] .dk-drop { color: #c2410c; border-color: #f0c2ab; }
.dk-win[data-os="lin"] .dk-log { background: #300a24; color: #e7d3df; }
.dk-win[data-os="lin"] .dk-toast { left: 50%; right: auto; top: 50px; bottom: auto; transform: translate(-50%, -12px); border-radius: 12px; background: #2d2d2d; color: #fff; }
.dk-win[data-os="lin"] .dk-toast.is-on { transform: translate(-50%, 0); }

.dk-pick-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dk-needs { margin: 0; padding: 6px 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; list-style: none; }
.dk-needs li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dk-needs li:last-child { border-bottom: 0; }
.dk-sw { position: relative; flex: none; width: 50px; height: 28px; padding: 0; border: 0; border-radius: 99px; background: #d7dce4; cursor: pointer; transition: background-color .25s; }
.dk-sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.dk-sw[aria-checked="true"] { background: var(--a-ink); }
.dk-sw[aria-checked="true"] i { transform: translateX(22px); }
.dk-sw:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; }
.dk-rec { position: sticky; top: 110px; padding: 30px; border-radius: 24px; background: var(--night); color: #fff; }
.dk-rec-card { animation: svIn .4s var(--ease); }
.dk-rec-card small { color: var(--a1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-xs); }
.dk-rec-card b { display: block; margin-top: 8px; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.1; }
.dk-stack { display: inline-block; margin-top: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 12px; color: #c7d2fe; }
.dk-rec-card p { margin: 14px 0 0; color: #b8c2d1; line-height: 1.6; }
.dk-bars { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.dk-bars span { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; font-size: var(--fs-xs); color: #9aa7b8; }
.dk-bars em { font-style: normal; }
.dk-bars i { display: block; height: 8px; width: var(--w, 10%); min-width: 4%; border-radius: 99px; background: linear-gradient(90deg, var(--a1), var(--a2)); transition: width .5s var(--ease); }
@media (max-width: 960px) {
  .dk-pick-grid { grid-template-columns: 1fr; }
  .dk-rec { position: static; }
}
@media (max-width: 560px) {
  .dk-body { grid-template-columns: 1fr; }
  .dk-side { border-left: 0; border-top: 1px solid #e3e3e3; }
  .dk-log { min-height: 110px; }
  .dk-needs li { padding: 14px 16px; }
}

/* ==========================================================================
   API – mapa przepływu z awarią ERP + mapowanie pól
   ========================================================================== */
.api-stage { display: grid; gap: 14px; }
.api-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 8vw, 130px); padding: 26px clamp(16px, 3vw, 34px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; background: radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, .08), transparent 65%), rgba(255, 255, 255, .02); }
.api-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.api-wires path { fill: none; stroke: rgba(148, 163, 184, .22); stroke-width: 1.5; stroke-dasharray: 4 6; animation: apiDash 1.2s linear infinite; }
.api-wires path.is-down { stroke: rgba(248, 113, 113, .5); animation: none; }
@keyframes apiDash { to { stroke-dashoffset: -20; } }
.api-col { position: relative; z-index: 1; display: grid; gap: 12px; }
.api-node { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(10, 18, 34, .92); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.api-node b { font-size: var(--fs-sm); color: #fff; }
.api-node small { font-size: 11px; color: #8b98ab; }
.api-node.is-hit { border-color: color-mix(in srgb, var(--a1) 70%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--a1) 30%, transparent); }
.api-right .api-st { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.api-node.is-down { border-color: rgba(248, 113, 113, .7); background: rgba(69, 10, 10, .7); animation: apiShake .4s; }
.api-node.is-down .api-st { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .2); animation: svPulse 1s infinite; }
@keyframes apiShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.api-hub { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 18px; border: 1px solid color-mix(in srgb, var(--a1) 50%, transparent); border-radius: 22px; background: linear-gradient(180deg, rgba(14, 40, 70, .95), rgba(10, 18, 34, .95)); text-align: center; box-shadow: 0 0 60px rgba(56, 189, 248, .15); }
.api-hub b { color: #fff; font-size: 1.05rem; }
.api-hub small { color: #8fb4d6; font-size: 12px; }
.api-hub-ring { position: absolute; inset: -8px; border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent); border-radius: 28px; animation: apiRing 3s ease-in-out infinite; pointer-events: none; }
@keyframes apiRing { 50% { inset: -14px; opacity: .3; } }
.api-q { display: block; width: 100%; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.api-q i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #f87171); transition: width .3s var(--ease); }
.api-q-lbl { font-size: 12px; color: #9aa7b8; }
.api-q-lbl b { color: #fff; font-variant-numeric: tabular-nums; }
.api-pk { position: absolute; z-index: 3; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 12px var(--a1), 0 0 3px #fff; pointer-events: none; }
.api-pk.is-b { background: var(--a2); box-shadow: 0 0 12px var(--a2), 0 0 3px #fff; }
.api-pk.is-hold { background: #fbbf24; box-shadow: 0 0 12px #fbbf24; }
.api-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; }
.api-ctrl { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.api-break { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 11px 16px; border: 1px solid rgba(248, 113, 113, .45); border-radius: 999px; background: rgba(248, 113, 113, .08); color: #fecaca; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: all .25s; }
.api-break:hover { background: rgba(248, 113, 113, .16); }
.api-break:focus-visible { outline: 2px solid #f87171; outline-offset: 3px; }
.api-break-dot { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.api-break[aria-checked="true"] { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); color: #bbf7d0; }
.api-break[aria-checked="true"] .api-break-dot { background: #34d399; }
.api-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.api-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.api-stats dt { font-size: 11px; color: #8b98ab; }
.api-stats dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.api-stats dd.is-zero { color: #34d399; }
.api-log { height: 150px; margin: 0; padding: 14px 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: #030712; color: #94a3b8; font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; }
.api-log .ok { color: #4ade80; } .api-log .er { color: #f87171; } .api-log .wa { color: #fbbf24; } .api-log .in { color: #7dd3fc; }

.api-fm { display: grid; grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr); gap: 0; align-items: stretch; }
.api-code { overflow: hidden; border-radius: 18px; background: #0b1324; color: #cbd5e1; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; box-shadow: 0 24px 60px rgba(3, 105, 161, .15); }
.api-code-erp { background: #1c1410; box-shadow: 0 24px 60px rgba(120, 53, 15, .15); }
.api-code-h { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #94a3b8; }
.api-code-h em { font-style: normal; color: var(--a1); }
.api-code-erp .api-code-h em { color: #fdba74; }
.api-code ul { margin: 0; padding: 10px 0; list-style: none; }
.api-code li { padding: 8px 16px; border-left: 3px solid transparent; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .2s, border-color .2s; outline: none; }
.api-code .k { color: #7dd3fc; } .api-code .v { color: #fde68a; }
.api-code-erp .k { color: #fdba74; } .api-code-erp .v { margin-left: 6px; color: #e7e5e4; }
.api-code li.is-on { border-color: var(--a1); background: rgba(56, 189, 248, .12); }
.api-code-erp li.is-on { border-color: #fb923c; background: rgba(251, 146, 60, .14); }
.api-rules { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 52px 10px 10px; }
.api-rules span { position: relative; display: flex; align-items: center; justify-content: center; height: 37px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; transition: color .2s; }
.api-rules span::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--line-strong); z-index: -1; }
.api-rules span { isolation: isolate; }
.api-rules b { padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; transition: border-color .2s, background-color .2s; }
.api-rules span.is-on b { border-color: var(--a1); background: var(--a-soft); }
.api-rules span.is-on { color: var(--a-ink); }
.api-rules span.is-on::before { border-top: 2px solid var(--a1); }
.api-rules span { background: none; }
@media (max-width: 1080px) {
  .api-map { gap: 26px; }
}
@media (max-width: 860px) {
  .api-map { grid-template-columns: 1fr; gap: 18px; }
  .api-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .api-right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-bottom { grid-template-columns: 1fr; }
  .api-fm { grid-template-columns: 1fr; gap: 14px; }
  .api-rules { display: none; }
}
@media (max-width: 520px) {
  .api-col { grid-template-columns: 1fr 1fr; }
  .api-node { padding: 10px; }
  .api-stats dd { font-size: 1.1rem; }
}

/* ==========================================================================
   DPPC – rekord produktu, kontrola gotowości, skan QR → paszport
   ========================================================================== */
.dp-hero { background: linear-gradient(180deg, #f2fbf6, #e9f7ef); }
.dp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(circle at 85% 20%, rgba(16, 185, 129, .16), transparent 40%), radial-gradient(circle at 10% 90%, rgba(132, 204, 22, .14), transparent 40%), radial-gradient(rgba(4, 120, 87, .12) 1px, transparent 1.4px); background-size: auto, auto, 22px 22px; }
.dp-stage { position: relative; min-height: 470px; }
.dp-record { position: relative; z-index: 1; width: min(440px, 100%); padding: 22px; border: 1px solid rgba(4, 120, 87, .14); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(4, 120, 87, .14); }
.dp-rec-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.dp-thumb { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #ecfdf5; color: var(--a-ink); }
.dp-thumb svg { width: 36px; height: 36px; }
.dp-rec-top small { display: block; font-size: 11px; color: var(--muted); }
.dp-rec-top b { font-size: 1.05rem; }
.dp-ring { position: relative; width: 58px; height: 58px; }
.dp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dp-ring circle { fill: none; stroke-width: 3.5; }
.dp-ring circle:first-child { stroke: #e5efe9; }
.dp-ring circle:last-child { stroke: #f59e0b; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v) * 100); transition: stroke-dashoffset .8s var(--ease), stroke .4s; }
.dp-ring.is-full circle:last-child { stroke: var(--a1); }
.dp-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.dp-checks { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.dp-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f6faf8; font-size: var(--fs-sm); transition: background-color .4s; }
.dp-checks i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--a1); }
.dp-checks i::after { content: ''; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.dp-checks li.is-bad { background: #fff7ed; color: #9a3412; }
.dp-checks li.is-bad i { background: #f59e0b; }
.dp-checks li.is-bad i::after { content: '!'; width: auto; height: auto; margin: 0; border: 0; transform: none; color: #fff; font-size: 12px; font-weight: 800; }
.dp-checks li span { flex: 1; }
.dp-fix { padding: 6px 10px; border: 0; border-radius: 8px; background: #9a3412; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dp-fix:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }
.dp-checks li.is-fixed { animation: dpFlash .8s var(--ease); }
@keyframes dpFlash { 0% { background: #bbf7d0; } }
.dp-actions { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px dashed #d6e5dc; }
.dp-qr { position: relative; display: block; width: 104px; height: 104px; padding: 6px; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid #e3ece7; }
.dp-qr svg { display: block; width: 100%; height: 100%; fill: #0b1220; opacity: .35; transition: opacity .5s; }
.dp-stage.is-live .dp-qr svg { opacity: 1; }
.dp-laser { position: absolute; left: 4px; right: 4px; top: 10%; height: 2px; background: #ef4444; box-shadow: 0 0 10px #ef4444; opacity: 0; }
.dp-stage.is-scan .dp-laser { opacity: 1; animation: dpLaser 1.1s ease-in-out 2; }
@keyframes dpLaser { 50% { top: 88%; } }
.dp-publish, .dp-scan { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; border-radius: 12px; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.dp-publish { border: 0; background: var(--a-ink); color: #fff; transition: opacity .3s, background-color .3s; }
.dp-publish:disabled { cursor: not-allowed; opacity: .35; }
.dp-publish.is-done { background: #065f46; }
.dp-scan { margin-top: 8px; border: 1.5px solid #cfe3d8; background: #fff; color: var(--a-ink); }
.dp-scan:hover { border-color: var(--a-ink); }
.dp-publish:focus-visible, .dp-scan:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; }
.dp-status { min-height: 2.8em; margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.dp-phone { position: absolute; right: 0; top: 30px; z-index: 2; width: 230px; padding: 9px; border-radius: 38px; background: #0b1220; box-shadow: 0 40px 80px rgba(4, 47, 34, .35); transform: translateX(30px) rotate(6deg) scale(.92); opacity: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s; pointer-events: none; }
.dp-stage.is-open .dp-phone { transform: rotate(3deg); opacity: 1; }
.dp-ph-screen { height: 440px; padding: 16px 14px; overflow: hidden; border-radius: 30px; background: #fff; font-size: 11.5px; }
.dp-ph-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 9.5px; }
.dp-langs { display: flex; gap: 2px; }
.dp-langs i { padding: 2px 4px; border-radius: 4px; font-style: normal; font-weight: 700; }
.dp-langs i.is-on { background: #d1fae5; color: var(--a-ink); }
.dp-ph-kick { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-ink); }
.dp-ph-name { display: block; margin-top: 4px; font-size: 15px; line-height: 1.2; }
.dp-ph-h { margin: 14px 0 6px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dp-mats { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.dp-mats li { display: grid; grid-template-columns: 1fr auto; gap: 3px 6px; }
.dp-mats i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: #ecfdf5; overflow: hidden; }
.dp-mats i::after { content: ''; display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--a1), var(--a2)); transition: width .8s var(--ease); transition-delay: calc(.4s + var(--i) * .12s); }
.dp-stage.is-open .dp-mats i::after { width: var(--w); }
.dp-docs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dp-docs li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; background: #f6faf8; }
.dp-docs em { padding: 2px 4px; border-radius: 4px; background: #fee2e2; color: #b91c1c; font-size: 8px; font-style: normal; font-weight: 800; }
.dp-ph-foot { margin: 14px 0 0; font-size: 9.5px; color: var(--muted); }

.dp-gather-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dp-pile { position: relative; height: 420px; }
.dp-f { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 10px 24px rgba(11, 18, 32, .07); transition: transform 1s cubic-bezier(.5, 0, .2, 1), opacity .8s; transition-delay: calc(var(--i) * 90ms); }
.dp-f i { width: 18px; height: 22px; border-radius: 3px; background: #fee2e2; }
.dp-f-img i { background: #dbeafe; } .dp-f-xls i { background: #dcfce7; } .dp-f-mail i { background: #fef3c7; border-radius: 50%; width: 20px; height: 20px; }
.dp-f:nth-of-type(1) { left: 2%; top: 4%; transform: rotate(-6deg); }
.dp-f:nth-of-type(2) { right: 4%; top: 10%; transform: rotate(5deg); }
.dp-f:nth-of-type(3) { left: 10%; top: 40%; transform: rotate(3deg); }
.dp-f:nth-of-type(4) { right: 0; top: 52%; transform: rotate(-4deg); }
.dp-f:nth-of-type(5) { left: 0; bottom: 6%; transform: rotate(-2deg); }
.dp-f:nth-of-type(6) { right: 8%; bottom: 0; transform: rotate(7deg); }
.dp-one { position: absolute; left: 50%; top: 50%; width: 250px; padding: 20px; border-radius: 20px; background: var(--night); color: #fff; box-shadow: 0 30px 70px rgba(4, 47, 34, .35); transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .7s, opacity .5s .7s; }
.dp-one small { color: var(--a2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dp-one b { display: block; margin: 4px 0 12px; font-size: 1.4rem; }
.dp-one-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #c5d6cd; }
.dp-one-row em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(16, 185, 129, .2); color: #6ee7b7; font-style: normal; font-weight: 700; font-size: 12px; }
.dp-pile.is-in .dp-f { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.3) rotate(0); opacity: 0; }
.dp-pile.is-in .dp-one { transform: translate(-50%, -50%) scale(1); opacity: 1; }
@media (max-width: 960px) {
  .dp-stage { min-height: 0; display: grid; gap: 18px; justify-items: center; }
  .dp-phone { position: relative; right: auto; top: auto; display: none; }
  .dp-stage.is-open .dp-phone { display: block; transform: none; }
  .dp-gather-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dp-actions { grid-template-columns: 1fr; justify-items: center; }
  .dp-actions > div { width: 100%; }
  .dp-pile { height: 380px; }
  .dp-f { font-size: 12px; padding: 8px 10px; }
}
.dp-record { transition: transform .7s cubic-bezier(.2, .8, .2, 1); transform-origin: left center; }
@media (min-width: 961px) {
  .dp-phone { right: -36px; }
  .dp-stage.is-open .dp-record { transform: translateX(-46px) scale(.95); }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .dp-phone { width: 200px; right: -20px; }
  .dp-ph-screen { height: 400px; }
  .dp-stage.is-open .dp-record { transform: translateX(-30px) scale(.86); }
}

/* ==========================================================================
   SEO / AI – symulator odpowiedzi asystenta + własne llms.txt
   ========================================================================== */
.seo-stage { display: flex; flex-direction: column; gap: 14px; }
.seo-chat { padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: linear-gradient(180deg, rgba(30, 18, 50, .9), rgba(14, 10, 24, .95)); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.seo-chat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.seo-orb { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 0deg, var(--a1), var(--a2), #60a5fa, var(--a1)); animation: svSpin 4s linear infinite; }
.seo-mode { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.seo-mode button { padding: 6px 12px; border: 0; border-radius: 99px; background: none; color: #b7a9cc; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .25s; }
.seo-mode button[aria-checked="true"] { background: #fff; color: #2e1065; }
.seo-mode button[data-seo-mode="after"][aria-checked="true"] { background: linear-gradient(90deg, var(--a1), var(--a2)); color: #1e0636; }
.seo-mode button:focus-visible, .seo-q-list button:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; }
.seo-q-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.seo-q-list button { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; background: transparent; color: #cdbfe0; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.seo-q-list button[aria-checked="true"] { border-color: var(--a1); color: #fff; background: rgba(192, 132, 252, .14); }
.seo-msg { padding: 12px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.55; }
.seo-user { justify-self: end; margin: 0 0 10px auto; max-width: 85%; width: fit-content; background: rgba(255, 255, 255, .1); color: #fff; border-bottom-right-radius: 6px; }
.seo-ai { min-height: 210px; background: rgba(255, 255, 255, .04); color: #e9e3f2; border: 1px solid rgba(255, 255, 255, .06); border-bottom-left-radius: 6px; }
.seo-ai p { margin: 0; }
.seo-ai [data-seo-ans]::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--a1); animation: svBlink 1s steps(1) infinite; }
.seo-ai.is-done [data-seo-ans]::after { display: none; }
.seo-cite { margin-top: 10px !important; padding: 10px 12px; border-left: 3px solid var(--a1); border-radius: 8px; background: rgba(192, 132, 252, .1); animation: svIn .5s var(--ease); }
.seo-c-n, .seo-s i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 5px; background: rgba(255, 255, 255, .12); font-size: 10px; font-style: normal; font-weight: 700; color: #fff; vertical-align: 1px; }
.seo-c-n { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1e0636; }
.seo-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.seo-s { display: inline-flex; align-items: center; padding: 5px 10px 5px 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 11.5px; color: #b7a9cc; }
.seo-s-you { display: none; border: 1px solid var(--a1); color: #fff; }
.seo-s-you i { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1e0636; }
.seo-stage.seo-on .seo-s-you { display: inline-flex; animation: svIn .5s var(--ease); }
.seo-signals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.seo-signals li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: 12.5px; color: #8f84a3; transition: all .4s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.seo-signals li:last-child { grid-column: 1 / -1; }
.seo-signals i { position: static; display: block; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #5b4f70; transition: all .4s var(--ease); transition-delay: inherit; }
.seo-stage.seo-on .seo-signals li { border-color: color-mix(in srgb, var(--a1) 40%, transparent); background: rgba(192, 132, 252, .08); color: #f3e8ff; }
.seo-stage.seo-on .seo-signals i { border-color: transparent; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 0 12px color-mix(in srgb, var(--a1) 60%, transparent); }

.seo-own-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.seo-files { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.seo-files li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.seo-files a { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; color: var(--a-ink); }
.seo-files span { color: var(--muted); font-size: var(--fs-sm); }
.seo-file { overflow: hidden; border-radius: 20px; background: #140d1f; color: #e9e3f2; box-shadow: 0 30px 70px rgba(126, 34, 206, .18); }
.seo-file-h { display: flex; justify-content: space-between; margin: 0; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #a99bbd; }
.seo-file-h em { font-style: normal; color: var(--a1); }
.seo-file pre { margin: 0; padding: 16px 18px; font-size: 12px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.seo-file .ln { display: inline-block; width: 26px; color: #5b4f70; user-select: none; }
@media (max-width: 960px) { .seo-own-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .seo-signals { grid-template-columns: 1fr; }
  .seo-chat-top { flex-wrap: wrap; }
  .seo-mode { margin-left: 0; }
}

/* ==========================================================================
   UX/UI – suwak przed/po + plac zabaw design systemu
   ========================================================================== */
.ux-hero { background: #fff6f3; }
.ux-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ux-hero-bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.ux-hero-bg i:nth-child(1) { width: 420px; height: 420px; right: -80px; top: -120px; background: #fecdd3; }
.ux-hero-bg i:nth-child(2) { width: 360px; height: 360px; right: 30%; bottom: -160px; background: #ddd6fe; }
.ux-hero-bg i:nth-child(3) { width: 260px; height: 260px; left: -60px; top: 30%; background: #fde68a; opacity: .35; }
.ux-stage { display: flex; flex-direction: column; gap: 14px; }
.ux-cmp { position: relative; height: 430px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 40px 80px rgba(190, 18, 60, .12), 0 0 0 1px rgba(11, 18, 32, .06); user-select: none; }
.ux-scr { position: absolute; inset: 0; }
.ux-before { background: #ececec; font-family: Tahoma, Verdana, sans-serif; color: #000; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ux-after { padding: 20px 22px 20px calc(var(--x) * 0 + 22px); background: #fff; clip-path: inset(0 0 0 var(--x)); }
.ub-bar { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; background: linear-gradient(#5b7fbd, #3a5a99); color: #fff; font-size: 10px; }
.ub-bar span { font-size: 9px; color: #dbe6ff; letter-spacing: -.01em; }
.ub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; padding: 8px; }
.ub-grid label { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 4px; font-size: 9.5px; }
.ub-grid i { height: 15px; border: 1px solid #8a8a8a; background: #fff; box-shadow: inset 1px 1px 0 #ccc; }
.ub-grid i.err { border-color: red; background: #ffe0e0; }
.ub-err { margin: 2px 8px; padding: 4px 6px; border: 1px solid red; background: #ffd0d0; color: #b00; font-size: 9.5px; font-weight: 700; }
.ub-tabs { display: flex; gap: 2px; margin: 8px 8px 0; }
.ub-tabs span { padding: 3px 7px; border: 1px solid #999; border-bottom: 0; background: #ddd; font-size: 9.5px; }
.ux-after { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; font-size: 13px; color: var(--ink); }
.ua-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ua-head small { display: block; color: var(--muted); font-size: 11.5px; }
.ua-head b { font-size: 18px; letter-spacing: -.02em; }
.ua-st { padding: 5px 10px; border-radius: 99px; background: #fff1f2; color: var(--a-ink); font-size: 12px; font-weight: 600; }
.ua-card { padding: 14px; border: 1px solid #f1e4e7; border-radius: 14px; background: #fffbfb; }
.ua-h { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ua-h span { color: var(--ink); }
.ua-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.ua-f { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #eee; }
.ua-f small { color: var(--muted); font-size: 11px; }
.ua-f.is-warn { border-color: #fcd34d; }
.ua-f em { margin-top: 2px; font-size: 11px; font-style: normal; color: #b45309; }
.ua-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ua-line span { flex: 1; height: 8px; max-width: 80%; border-radius: 99px; background: #f3e8ea; }
.ua-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: auto; }
.ua-ghost { color: var(--muted); font-weight: 600; }
.ua-btn { padding: 10px 16px; border-radius: 10px; background: var(--a-ink); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(190, 18, 60, .25); }
.ux-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 0 20px rgba(0, 0, 0, .2); pointer-events: none; }
.ux-handle i { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.ux-handle i::before, .ux-handle i::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.ux-handle i::before { left: 8px; border-right-color: var(--a-ink); }
.ux-handle i::after { right: 8px; border-left-color: var(--a-ink); }
.ux-tag { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; pointer-events: none; }
.ux-tag-b { left: 12px; background: #333; color: #fff; }
.ux-tag-a { right: 12px; background: var(--a-ink); color: #fff; }
.ux-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ux-range:focus-visible + * , .ux-cmp:focus-within { outline: 3px solid var(--a1); outline-offset: 4px; }
.ux-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ux-stats span { padding: 12px 14px; border: 1px solid rgba(190, 18, 60, .12); border-radius: 14px; background: rgba(255, 255, 255, .75); font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.ux-stats b { display: block; margin-bottom: 2px; font-size: 1.1rem; color: var(--a-ink); }

.ux-play-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ux-controls { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.ux-controls fieldset { margin: 0; padding: 0; border: 0; }
.ux-controls legend { margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ux-controls legend b { color: var(--ink); }
.ux-sw { display: flex; gap: 10px; }
.ux-sw button { width: 36px; height: 36px; border: 3px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease); }
.ux-sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c); transform: scale(1.08); }
.ux-sw button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ux-controls input[type="range"] { width: 100%; accent-color: var(--a-ink); }
.ux-seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--bg-soft); }
.ux-seg button { padding: 8px 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; }
.ux-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11, 18, 32, .08); }
.ux-seg button:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 1px; }
.ux-tokens { margin: 0; padding: 14px; border-radius: 14px; background: #1a1016; color: #fbcfe8; font-size: 12px; line-height: 1.6; white-space: pre; overflow-x: auto; }
.ux-preview { --c: #e11d48; --r: 10px; --pad: 16px; --gap: 14px; --bg: #f7f5f6; --card: #fff; --tx: #0b1220; --mt: #64748b; --ln: #ece6e8; display: grid; gap: var(--gap); padding: clamp(18px, 3vw, 32px); border-radius: 26px; background: var(--bg); color: var(--tx); transition: background-color .4s, color .4s; }
.ux-preview.is-dark { --bg: #111015; --card: #1c1a22; --tx: #f3f1f6; --mt: #9b97a6; --ln: #2c2934; }
.ux-preview.is-compact { --pad: 10px; --gap: 8px; }
.uxp-card { display: grid; gap: var(--gap); padding: calc(var(--pad) + 4px); border: 1px solid var(--ln); border-radius: calc(var(--r) + 6px); background: var(--card); transition: all .3s var(--ease); }
.uxp-top { display: flex; justify-content: space-between; align-items: center; }
.uxp-top b { font-size: 1.1rem; }
.uxp-badge { padding: 3px 9px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: 12px; font-weight: 700; transition: all .3s; }
.uxp-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.uxp-field input { width: 100%; padding: calc(var(--pad) - 4px) 12px; border: 1.5px solid var(--ln); border-radius: var(--r); background: var(--card); color: var(--tx); font: inherit; font-weight: 400; transition: all .3s; }
.uxp-field.is-err input { border-color: #dc2626; }
.uxp-field em { color: #dc2626; font-size: 12px; font-style: normal; font-weight: 500; }
.uxp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.uxp-chip { padding: 6px 12px; border: 1.5px solid var(--ln); border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--mt); transition: all .3s; }
.uxp-chip.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); }
.uxp-actions { display: flex; justify-content: flex-end; gap: 8px; }
.uxp-btn { padding: calc(var(--pad) - 5px) 18px; border-radius: var(--r); background: var(--c); color: #fff; font-size: 14px; font-weight: 600; transition: all .3s; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent); }
.uxp-btn-2 { background: transparent; color: var(--mt); box-shadow: none; }
.uxp-table { overflow: hidden; border: 1px solid var(--ln); border-radius: calc(var(--r) + 6px); background: var(--card); transition: all .3s; }
.uxp-tr { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: var(--pad) calc(var(--pad) + 4px); border-bottom: 1px solid var(--ln); font-size: 14px; transition: padding .3s; }
.uxp-tr:last-child { border-bottom: 0; }
.uxp-tr em { font-style: normal; color: var(--mt); font-variant-numeric: tabular-nums; }
.uxp-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: calc(var(--r) * .8); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-weight: 700; font-size: 13px; transition: all .3s; }
.uxp-dot { width: 9px; height: 9px; border-radius: 50%; }
.uxp-ok { background: #16a34a; } .uxp-wait { background: #f59e0b; } .uxp-new { background: var(--c); }
@media (max-width: 960px) { .ux-play-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ux-cmp { height: 400px; }
  .ux-stats { grid-template-columns: 1fr; }
  .ub-grid { grid-template-columns: 1fr; }
  .ub-grid label:nth-child(n+9) { display: none; }
}

/* ==========================================================================
   VUE – działający komponent z podświetlanym kodem + migracja Vue 2 → 3
   ========================================================================== */
.vue-stage { display: flex; flex-direction: column; gap: 12px; }
.vue-ide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: #0d1117; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.vue-code { min-width: 0; border-right: 1px solid rgba(255, 255, 255, .08); }
.vue-tab { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #c9d1d9; }
.vue-logo { width: 14px; height: 12px; background: linear-gradient(#42b883, #42b883) ; clip-path: polygon(0 0, 22% 0, 50% 50%, 78% 0, 100% 0, 50% 100%); }
.vue-code pre { margin: 0; padding: 14px; color: #c9d1d9; font-size: 11.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.vue-code .c { color: #7ee787; } .vue-code .k { color: #ff7b72; } .vue-code .f { color: #d2a8ff; } .vue-code .s { color: #a5d6ff; } .vue-code .b, .vue-code .n { color: #79c0ff; } .vue-code .m { color: #8b949e; }
.vue-code [data-l] { display: inline; border-radius: 4px; transition: background-color .6s; }
.vue-code [data-l].is-hot { background: rgba(66, 184, 131, .28); transition: none; }
.vue-code [data-v] { color: inherit; }
.vue-app { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; background: #f8fafc; color: var(--ink); }
.vue-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1.5px solid #dbe3ea; border-radius: 10px; background: #fff; color: var(--muted); }
.vue-search:focus-within { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(66, 184, 131, .2); }
.vue-search input { flex: 1; min-width: 0; height: 36px; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); }
.vue-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vue-check input { position: absolute; opacity: 0; }
.vue-check span { position: relative; width: 32px; height: 18px; border-radius: 99px; background: #cbd5e1; transition: background-color .25s; }
.vue-check span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.vue-check input:checked + span { background: var(--a1); }
.vue-check input:checked + span::after { transform: translateX(14px); }
.vue-check input:focus-visible + span { outline: 2px solid var(--a-ink); outline-offset: 2px; }
.vue-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.vue-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: #fff; font-size: 12px; box-shadow: 0 1px 0 rgba(11, 18, 32, .05); animation: svIn .3s var(--ease); }
.vue-list li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vue-list li span { flex: none; font-size: 11px; font-weight: 600; }
.vue-list li .ok { color: #15803d; } .vue-list li .no { color: #b91c1c; }
.vue-list mark { background: #bbf7d0; color: inherit; border-radius: 3px; }
.vue-empty { margin: 0; font-size: 12px; color: var(--muted); }
.vue-devtools { display: flex; flex-wrap: wrap; gap: 6px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11.5px; }
.vue-devtools span { padding: 5px 10px; border: 1px solid rgba(66, 184, 131, .3); border-radius: 8px; background: rgba(66, 184, 131, .08); color: #a7f3d0; }
.vue-devtools b { color: #fff; }

.vue-mig-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.vue-mig-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vue-mig-steps button { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; width: 100%; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.vue-mig-steps button span { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--a-soft); color: var(--a-ink); font-weight: 700; }
.vue-mig-steps button b { font-size: 1.05rem; }
.vue-mig-steps button small { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.vue-mig-steps button[aria-selected="true"] { border-color: var(--a-ink); background: var(--a-soft); }
.vue-mig-steps button[aria-selected="true"] span { background: var(--a-ink); color: #fff; }
.vue-mig-steps button:hover { transform: translateX(4px); }
.vue-mig-steps button:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; }
.vue-diff { overflow: hidden; border-radius: 20px; background: #0d1117; box-shadow: 0 30px 70px rgba(21, 128, 61, .15); animation: svIn .4s var(--ease); }
.vue-diff pre { margin: 0; padding: 18px 20px 18px 40px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; position: relative; }
.vue-diff pre::before { position: absolute; left: 16px; top: 18px; font-weight: 700; }
.vue-minus { background: rgba(248, 81, 73, .1); color: #ffa198; text-decoration: line-through; text-decoration-color: rgba(255, 161, 152, .35); }
.vue-minus::before { content: '−'; color: #f85149; }
.vue-plus { background: rgba(46, 160, 67, .12); color: #aff5b4; }
.vue-plus::before { content: '+'; color: #3fb950; }
@media (max-width: 960px) { .vue-mig-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .vue-ide { grid-template-columns: 1fr; }
  .vue-code { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* ==========================================================================
   SECURITY – skan, znaleziska, naprawy, ocena F → A + pozycja z raportu
   ========================================================================== */
.sec-stage { display: flex; flex-direction: column; gap: 12px; }
.sec-term { overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: #050505; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(248, 113, 113, .07); }
.sec-term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 11.5px; color: #8b8b8b; }
.sec-term-bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.sec-term-bar span { flex: 1; min-width: 0; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-grade { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #262626; color: #a3a3a3; font-family: var(--font); font-size: 18px; transition: background-color .5s, color .5s, transform .5s var(--ease); }
.sec-stage[data-grade="F"] .sec-grade.is-set { background: #7f1d1d; color: #fecaca; }
.sec-stage[data-grade="D"] .sec-grade, .sec-stage[data-grade="C"] .sec-grade { background: #78350f; color: #fde68a; }
.sec-stage[data-grade="B"] .sec-grade { background: #365314; color: #d9f99d; }
.sec-stage[data-grade="A"] .sec-grade { background: #14532d; color: #bbf7d0; transform: scale(1.12); box-shadow: 0 0 24px rgba(74, 222, 128, .4); }
.sec-out { height: 196px; margin: 0; padding: 12px 14px; overflow: hidden; color: #d4d4d4; font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.sec-out .in { color: #f87171; } .sec-out .wa { color: #fbbf24; } .sec-out .ok { color: #4ade80; }
.sec-out .cur::after { content: '▋'; color: #f87171; animation: svBlink 1s steps(1) infinite; }
.sec-finds { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sec-f { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); animation: svIn .4s var(--ease); transition: background-color .4s, border-color .4s, opacity .4s; }
.sec-sev { padding: 3px 0; border-radius: 6px; font-size: 10.5px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.sec-crit .sec-sev { background: #dc2626; color: #fff; } .sec-high .sec-sev { background: #ea580c; color: #fff; } .sec-med .sec-sev { background: #ca8a04; color: #fff; } .sec-low .sec-sev { background: #525252; color: #fff; }
.sec-title { min-width: 0; font-size: 12.5px; color: #e5e5e5; line-height: 1.35; }
.sec-title b { font-weight: 600; }
.sec-fix-txt { display: none; margin-top: 2px; color: #4ade80; font-size: 11.5px; }
.sec-fix { padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.sec-fix:hover { background: rgba(255, 255, 255, .08); }
.sec-fix:focus-visible, .sec-run:focus-visible, .sec-all:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.sec-f.is-fixed { border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .06); }
.sec-f.is-fixed .sec-sev { background: #166534; }
.sec-f.is-fixed .sec-title b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .4); color: #a3a3a3; }
.sec-f.is-fixed .sec-fix-txt { display: block; }
.sec-f.is-fixed .sec-fix { display: none; }
.sec-ctrl { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-run, .sec-all { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.sec-run { border: 0; background: #f87171; color: #1a0505; }
.sec-run:disabled { opacity: .5; cursor: progress; }
.sec-all { border: 1px solid rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .1); color: #bbf7d0; }

.sec-report-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sec-std { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sec-std li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.sec-card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(185, 28, 28, .1); }
.sec-card::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: #ea580c; }
.sec-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sec-id { font-size: 12px; color: var(--muted); }
.sec-sev-b { padding: 3px 10px; border-radius: 6px; background: #ea580c; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sec-owasp { padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); font-size: 11.5px; color: var(--ink-2); }
.sec-card h3 { margin: 14px 0 0; font-size: 1.25rem; line-height: 1.35; letter-spacing: -.015em; }
.sec-card dl { display: grid; gap: 0; margin: 18px 0 0; }
.sec-card dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sec-card dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sec-card dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.sec-card dd.sv-mono { font-size: 13px; color: var(--ink); word-break: break-word; }
.sec-ok { padding: 3px 8px; border-radius: 6px; background: #dcfce7; color: #166534; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; }
@media (max-width: 960px) { .sec-report-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .sec-f { grid-template-columns: 1fr auto; }
  .sec-sev { grid-column: 1 / -1; justify-self: start; padding: 2px 8px; }
  .sec-card dl div { grid-template-columns: 1fr; gap: 4px; }
}
