/* Process Auditor — style narzędzia (strona /process-auditor/ i jej polityka prywatności).
   Ładowane tylko na stronach narzędzia, po site.css. Przeniesione z dawnej strony processauditor.automationnex.io (28.10.2026);
   klasy formularza mają prefiks af- (Butik ma własne .field/.consent/.chip w formularzu kontaktowym). */

:root {
    --faint: #8f89a3;
    --ok-text: #0b7a53;
    --ok-soft: rgba(18, 162, 111, 0.12);
    --warn: #b06d00;
    --danger: #c92a52;
}

/* Reset, którego arkusz studia nie ma (formularz, raport, wyniki) — tylko w obrębie narzędzia. */
.page-tool [hidden], .page-doc [hidden] { display: none !important; }
.page-tool fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.page-tool legend { padding: 0; }
.page-tool dl, .page-tool dd { margin: 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --pct: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pink) var(--pct), var(--line) var(--pct)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--pink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(214, 54, 94, 0.35); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--brand-soft); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.btn-row--center { justify-content: center; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; background: var(--brand-soft); color: var(--brand-hover); }
.prio { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; white-space: nowrap; }
.prio::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.prio--high { color: var(--brand-hover); background: var(--brand-soft); }
.prio--mid { color: var(--warn); background: rgba(245, 184, 61, 0.18); }
.prio--win { color: var(--ok-text); background: var(--ok-soft); }
.hero-start { margin-top: 32px; max-width: 580px; }
.hero-start-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); transition: border-color 0.2s, box-shadow 0.2s; }
.hero-start-field:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(234, 75, 113, 0.14), var(--shadow); }
.hero-start-icon { color: var(--faint); width: 20px; height: 20px; }
.hero-start input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; font-size: 1.02rem; color: var(--text); }
.hero-start input::placeholder { color: var(--faint); }
.hero-start .btn { flex: none; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 20px; }
.hero-sample { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 2px; font-weight: 600; font-size: 0.95rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.hero-sample:hover { border-color: var(--text); }
.hero-sample .icon { width: 18px; height: 18px; color: var(--brand); }
.canvas-summary { margin: 20px 24px 0; padding: 14px; border-radius: 16px; background: linear-gradient(100deg, rgba(255, 109, 90, 0.10), rgba(139, 124, 246, 0.12)); }
.canvas-summary-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.canvas-summary-label .icon { width: 15px; height: 15px; color: var(--pink); }
.canvas-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.canvas-stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.8); }
.canvas-stats dd { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.canvas-stats dt { font-size: 0.74rem; line-height: 1.3; color: var(--muted); }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.area-card { display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.25s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.area-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
.area-icon .icon { width: 22px; height: 22px; }
.area-card h3 { margin-bottom: 14px; }
.area-card p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.area-card p span { display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.area-before span { color: var(--faint); }
.area-after { margin-top: 14px !important; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--text) !important; }
.area-after span { color: var(--ok-text); }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow::before { content: ""; position: absolute; top: 49px; left: 28px; right: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--coral), var(--pink) 45%, var(--lav)); opacity: 0.5; }
.step-card { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 28px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-line); }
.step-card--human { background: linear-gradient(160deg, rgba(139, 124, 246, 0.2), rgba(234, 75, 113, 0.08)), var(--ink-2); border-color: rgba(139, 124, 246, 0.35); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.flow-num { font-size: 0.9rem; font-weight: 800; letter-spacing: 0.04em; color: var(--on-dark-muted); }
.step-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--ink-line-strong); color: var(--pink-light); }
.step-card:first-child .step-icon { background: var(--grad); border-color: transparent; color: #fff; }
.step-card--human .step-icon { background: var(--surface); color: var(--lav-text); border-color: transparent; }
.step-icon .icon { width: 21px; height: 21px; }
.flow-meta { margin: 0 0 6px !important; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-light) !important; }
.step-card--human .flow-meta { color: #c4bbff !important; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--on-dark-muted); font-size: 0.95rem; }
.scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.scope-col { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line-strong); }
.scope-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.scope-col h3 .icon { width: 20px; height: 20px; color: var(--pink-light); }
.scope-col ul { display: grid; gap: 10px; }
.scope-col li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--on-dark-muted); }
.scope-col li .icon { width: 18px; height: 18px; margin-top: 3px; }
.scope-col--yes li .icon { color: #5fe0b0; }
.scope-col--no li .icon { color: var(--on-dark-muted); }
.report { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.report-tabs { display: grid; gap: 6px; position: sticky; top: calc(var(--header-h) + var(--header-top) + 88px); }
.report-tabs button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 1px solid transparent; border-radius: 16px; background: transparent; text-align: left; font-weight: 600; font-size: 0.97rem; color: var(--muted); transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.report-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.6); }
.report-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.report-tab-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex: none; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; }
.report-tabs button[aria-selected="true"] .report-tab-num { background: var(--grad); border-color: transparent; color: #fff; }
.report-panels { position: relative; isolation: isolate; }
.report-panel { outline-offset: 6px; border-radius: var(--radius-xl); }
.report-panel:not([hidden]) { animation: fadeUp 0.4s var(--ease); }
.rp-page { position: relative; min-height: 380px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.rp-page::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--text); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rp-doc { display: inline-flex; align-items: center; gap: 8px; }
.rp-doc img { width: 18px; height: auto; }
.rp-sample { padding: 3px 9px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-hover); }
.rp-page h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 8px; letter-spacing: -0.03em; }
.rp-text { color: var(--muted); max-width: 60ch; margin-bottom: 24px; }
.rp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rp-stats div { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 16px; background: var(--surface-2); }
.rp-stats dd { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.rp-stats dt { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.rp-level { display: flex; gap: 6px; margin-top: 18px; max-width: 260px; }
.rp-level span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.rp-level .on { background: var(--grad); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.rp-table th, .rp-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rp-table thead th { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rp-table tbody th { font-weight: 600; }
.rp-quickwin { padding: 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(18, 162, 111, 0.08), rgba(139, 124, 246, 0.08)); border: 1px solid rgba(18, 162, 111, 0.25); }
.rp-qw-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok-text); }
.rp-qw-tag .icon { width: 16px; height: 16px; }
.rp-qw-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.rp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rp-facts div { padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rp-facts dt { font-size: 0.74rem; color: var(--muted); }
.rp-facts dd { font-weight: 700; }
.rp-qw-first { font-style: italic; color: var(--muted); }
.rp-bars { display: grid; gap: 16px; }
.rp-bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.rp-bar-label { font-weight: 600; font-size: 0.92rem; }
.rp-bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.rp-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left; animation: grow 0.9s var(--ease); }
.rp-bar-value { font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.rp-steps { counter-reset: rp; display: grid; gap: 10px; }
.rp-steps li { counter-increment: rp; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-weight: 500; }
.rp-steps li::before { content: counter(rp); display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; }
.rp-steps li:last-child::before { background: var(--grad); }
.report-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding-left: 284px; }
.report-disclaimer { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.86rem; color: var(--muted); }
.report-disclaimer .icon { width: 16px; height: 16px; color: var(--brand); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.principle { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius-xl); background: var(--bg); border: 1px solid var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s; }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.principle--human { background: var(--ink); color: var(--on-dark); border-color: var(--ink); overflow: hidden; }
.principle--human::after { content: ""; position: absolute; right: -35%; bottom: -45%; width: 110%; aspect-ratio: 1; z-index: -2; border-radius: 50%; background: radial-gradient(circle, rgba(234, 75, 113, 0.4), rgba(139, 124, 246, 0.22) 45%, transparent 70%); }
.principle--care { background: linear-gradient(160deg, #f5f2ff, #fff4f6); border-color: rgba(139, 124, 246, 0.25); }
.principle-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.principle-num { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }
.principle--human .principle-num { color: var(--on-dark-muted); }
.principle-label { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.principle--human .principle-label { background: var(--grad); border: 0; color: #fff; }
.principle--care .principle-label { color: var(--lav-text); border-color: rgba(139, 124, 246, 0.3); }
.principle-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 40px 0 20px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); transition: transform 0.45s var(--ease); }
.principle:hover .principle-icon { transform: rotate(-6deg) scale(1.06); }
.principle-icon .icon { width: 24px; height: 24px; }
.principle--human .principle-icon { background: rgba(255, 255, 255, 0.08); color: var(--pink-light); }
.principle--care .principle-icon { background: var(--lav-soft); color: var(--lav-text); }
.principle h3 { font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.45rem); margin-bottom: 10px; }
.principle--human h3 { color: #fff; }
.principle p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.principle--human p { color: var(--on-dark-muted); }
.principles-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: clamp(16px, 2vw, 24px); padding: 18px 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.principles-band p { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.principles-band p .icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--ink); color: var(--pink-light); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.calc-grid .section-head { margin-bottom: 20px; }
.calc-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.calc-inputs { display: grid; gap: 24px; padding: 28px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.range label, .calc-rate label { font-size: 0.9rem; font-weight: 600; }
.range output { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.calc-rate { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.calc-rate-field { display: grid; gap: 8px; }
.calc-rate input, .calc-rate select { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); font-weight: 600; font-size: 1rem; }
.calc-rate input:focus, .calc-rate select:focus { outline: none; border-color: var(--pink); background: #fff; box-shadow: 0 0 0 4px rgba(234, 75, 113, 0.14); }
.calc-result { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 28px; background: var(--ink); color: var(--on-dark); }
.calc-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(234, 75, 113, 0.35), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(139, 124, 246, 0.22), transparent 70%); }
.calc-big { margin: 0; display: grid; gap: 4px; }
.calc-big span { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: #fff; word-break: break-word; }
.calc-big small { font-size: 0.9rem; color: var(--on-dark-muted); }
.calc-small { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.calc-small div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.calc-small dt { font-size: 0.78rem; color: var(--on-dark-muted); }
.calc-small dd { font-weight: 800; font-size: 1.1rem; color: #fff; white-space: nowrap; }
.calc-result .btn { white-space: normal; text-align: center; }
.section--audit { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.audit-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.audit-aside { position: sticky; top: calc(var(--header-h) + var(--header-top) + 88px); }
.audit-aside .section-head { margin-bottom: 28px; }
.audit-benefits { position: relative; isolation: isolate; overflow: hidden; padding: 24px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.audit-benefits::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 100% 0%, rgba(234, 75, 113, 0.3), transparent 70%); }
.audit-benefits-title { margin: 0 0 12px; font-weight: 700; font-size: 1.05rem; }
.audit-benefits ul { display: grid; gap: 10px; }
.audit-benefits li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--on-dark-muted); }
.audit-benefits .icon { width: 19px; height: 19px; color: #5fe0b0; margin-top: 2px; }
.audit-trust { display: grid; gap: 8px; margin: 20px 0 0; }
.audit-trust li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.audit-trust .icon { width: 17px; height: 17px; color: var(--brand); }
.audit-help { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.audit-help a { color: var(--text); font-weight: 600; }
.audit-card { position: relative; padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); scroll-margin-top: 24px; }
.audit-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(255, 109, 90, 0.55), transparent 28%, transparent 72%, rgba(139, 124, 246, 0.55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.audit-progress { margin-bottom: 28px; }
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.stepper-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; border: 1.5px solid var(--line-strong); font-size: 0.88rem; font-weight: 700; color: var(--muted); transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.stepper-num .icon { display: none; width: 15px; height: 15px; }
.stepper li[aria-current="step"] { color: var(--text); }
.stepper li[aria-current="step"] .stepper-num { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.stepper li.is-done { color: var(--text); }
.stepper li.is-done .stepper-num { border-color: var(--ok); background: var(--ok); color: #fff; }
.stepper li.is-done .stepper-num span { display: none; }
.stepper li.is-done .stepper-num .icon { display: block; }
.progress-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 33.3%; border-radius: inherit; background: var(--grad); transition: width 0.45s var(--ease); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert, .form-note { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; font-size: 0.92rem; font-weight: 500; }
.form-alert { background: #fdecf0; color: var(--danger); border: 1px solid rgba(201, 42, 82, 0.2); }
.form-note { background: var(--surface-2); color: var(--muted); }
.form-alert .icon, .form-note .icon { width: 18px; height: 18px; }
.form-step { display: grid; gap: 22px; }
.form-step:not([hidden]) { animation: fadeUp 0.35s var(--ease); }
.af-field { display: grid; gap: 8px; }
.af-field > label, .af-field > legend { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.af-field > legend { margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field-hint { margin: -2px 0 0; font-size: 0.84rem; color: var(--muted); }
.af-field--group .field-hint { margin-top: -6px; }
.af-error { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.85rem; font-weight: 500; color: var(--danger); }
.af-error .icon { width: 16px; height: 16px; }
.field-limit { margin: 0; font-size: 0.85rem; color: var(--warn); font-weight: 500; }
.field-count { text-align: right; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field-row--rate { grid-template-columns: minmax(0, 1fr) 140px; align-items: start; }
.input { position: relative; }
.input input, .input select, .input textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); font-size: 1rem; line-height: 1.4; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.input textarea { resize: vertical; min-height: 96px; }
.input input::placeholder, .input textarea::placeholder { color: var(--faint); }
.input input:hover, .input select:hover, .input textarea:hover { border-color: #bdb6cc; }
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--pink); background: #fff; box-shadow: 0 0 0 4px rgba(234, 75, 113, 0.14); }
.input--icon > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--faint); pointer-events: none; }
.input--icon input { padding-left: 46px; }
.input--select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.input--select select:invalid { color: var(--faint); }
.select-chevron { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.af-field.has-error input, .af-field.has-error select, .af-field.has-error textarea { border-color: var(--danger); background: #fffafb; }
.af-field.has-error input:focus, .af-field.has-error select:focus { box-shadow: 0 0 0 4px var(--brand-soft); }
.af-field.is-valid input:not(:focus) { border-color: rgba(18, 162, 111, 0.55); }
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); font-size: 0.94rem; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.choice:hover .choice-box { border-color: #bdb6cc; }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--pink); outline-offset: 2px; }
.choice input:checked + .choice-box { border-color: rgba(234, 75, 113, 0.55); background: #fff5f7; box-shadow: inset 0 0 0 1px rgba(234, 75, 113, 0.55); }
.choice input:disabled + .choice-box { opacity: 0.45; cursor: not-allowed; }
.choice-text { display: grid; gap: 2px; line-height: 1.3; }
.choice-text strong { font-weight: 600; }
.choice-text small { font-size: 0.82rem; color: var(--muted); }
.choice-radio, .choice-check { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line-strong); background: var(--surface); transition: all 0.2s; }
.choice-radio { border-radius: 50%; }
.choice-check { border-radius: 6px; color: #fff; }
.choice-check .icon { width: 13px; height: 13px; opacity: 0; transform: scale(0.6); transition: all 0.2s var(--ease); }
.choice input:checked + .choice-box .choice-radio { border: 6px solid var(--brand); }
.choice input:checked + .choice-box .choice-check { background: var(--brand); border-color: var(--brand); }
.choice input:checked + .choice-box .choice-check .icon { opacity: 1; transform: none; }
.choice--card .choice-box { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
.choices--chips .choice-box { min-height: 42px; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; gap: 8px; }
.choices--chips .choice-check { width: 18px; height: 18px; border-radius: 50%; }
.af-field.has-error .choice-box { border-color: rgba(201, 42, 82, 0.45); }
.af-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.af-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-consent .choice-check { margin-top: 2px; }
.af-consent input:checked + .choice-check { background: var(--brand); border-color: var(--brand); }
.af-consent input:checked + .choice-check .icon { opacity: 1; transform: none; }
.af-consent input:focus-visible + .choice-check { outline: 2px solid var(--pink); outline-offset: 2px; }
.af-consent a { color: var(--text); font-weight: 600; }
.af-field--consent.has-error .choice-check { border-color: var(--danger); }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav [data-next], .form-nav [data-submit] { margin-left: auto; }
.form-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 0.82rem; color: var(--muted); }
.form-secure .icon { width: 15px; height: 15px; }
.is-sending [data-submit] { pointer-events: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.form-result { text-align: center; padding: 12px 0; }
.form-result:focus { outline: none; }
.form-result h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; letter-spacing: -0.03em; }
.form-result > p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.result-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; }
.result-icon .icon { width: 34px; height: 34px; }
.form-result--ok .result-icon { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 10px rgba(18, 162, 111, 0.06); animation: pop 0.5s var(--ease); }
.form-result--err .result-icon { background: var(--brand-soft); color: var(--danger); }
.form-result .af-timeline { display: grid; gap: 10px; max-width: 360px; margin: 26px auto; text-align: left; }
.form-result .af-timeline li { display: flex; align-items: center; gap: 12px; font-size: 0.94rem; color: var(--muted); opacity: 0; animation: fadeUp 0.4s var(--ease) forwards; animation-delay: calc(var(--i) * 0.25s); }
.tl-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.tl-dot .icon { width: 13px; height: 13px; opacity: 0; }
.form-result .af-timeline li.done { color: var(--text); font-weight: 600; }
.form-result .af-timeline li.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.form-result .af-timeline li.done .tl-dot .icon { opacity: 1; }
.form-result .af-timeline li.active .tl-dot { border-color: var(--pink); border-top-color: transparent; animation: spin 1s linear infinite; }
.form-result .af-timeline li.active { color: var(--text); }
.result-next { position: relative; isolation: isolate; overflow: hidden; max-width: 480px; margin: 8px auto 18px; padding: 24px; border-radius: 20px; background: var(--ink); color: var(--on-dark); text-align: left; }
.result-next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 100% 0%, rgba(139, 124, 246, 0.3), transparent 70%); }
.result-next-title { margin-bottom: 6px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.result-next p { color: var(--on-dark-muted); font-size: 0.93rem; }
.result-next .btn { margin-top: 16px; white-space: normal; }
.result-hint { font-size: 0.86rem; color: var(--muted); margin-inline: auto; }
.result-hint a { color: var(--text); font-weight: 600; }
.form-result .link-button { margin-top: 6px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-result .btn-row { margin: 22px 0 18px; }
.after-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.after-card { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius-xl); background: var(--bg); border: 1px solid var(--line); }
.after-card p { color: var(--muted); flex: 1; }
.after-card .text-link { margin-top: 10px; }
.after-card--accent { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.after-card--accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(234, 75, 113, 0.35), transparent 70%); }
.after-card--accent p { color: var(--on-dark-muted); }
.after-card--accent .area-icon { background: rgba(255, 255, 255, 0.08); color: var(--pink-light); }
.after-card--accent .text-link { color: #fff; }
.doc-updated { color: var(--muted); margin: 0; }
.doc-section { background: var(--surface); }
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + var(--header-top) + 24px); padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); font-size: 0.88rem; }
.doc-toc-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-weight: 700; list-style: none; cursor: pointer; }
.doc-toc-title::-webkit-details-marker { display: none; }
.doc-toc[open] .doc-toc-title { margin-bottom: 10px; }
.doc-toc[open] .faq-chevron { transform: rotate(180deg); }
@media (min-width: 901px) {
    .doc-toc-title { pointer-events: none; }
    .doc-toc-title .icon { display: none; }
}
.doc-toc ol { display: grid; gap: 4px; list-style: decimal; padding-left: 18px; color: var(--muted); }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover, .doc-toc a.is-active { color: var(--brand); }
.prose { max-width: 760px; color: #2a2636; }
.prose h2 { position: relative; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin: 48px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); letter-spacing: -0.03em; scroll-margin-top: calc(var(--header-h) + var(--header-top) + 20px); }
.prose h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--grad); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; display: grid; gap: 6px; }
.prose ul li::marker { color: var(--pink); }
.prose a { color: var(--brand); font-weight: 600; }
.prose code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.note-box { margin: 20px 0; padding: 18px 20px; border-radius: 0 14px 14px 0; background: var(--brand-soft); border-left: 3px solid var(--pink); }
.note-box p { margin: 0; color: var(--text); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 8px; }
.data-table th, .data-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--surface-2); font-weight: 700; color: var(--text); }
.doc-back { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) {
    .form-result .af-timeline li { opacity: 1; }
}
@media (max-width: 1080px) {
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow::before { display: none; }
    .principles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .principle--human { grid-column: 1 / -1; }
    .principle--human .principle-icon { margin-top: 24px; }
}
@media (max-width: 1000px) {
    .calc-grid, .audit-grid { grid-template-columns: minmax(0, 1fr); }
    .audit-aside { position: static; }
    .audit-benefits, .audit-trust, .audit-help { display: none; }
    .audit-aside .section-head { margin-bottom: 0; }
}
@media (max-width: 960px) {
    .area-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .report { grid-template-columns: minmax(0, 1fr); }
    .report-tabs { position: static; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
    .report-tabs::-webkit-scrollbar { display: none; }
    .report-tabs button { width: auto; flex: none; white-space: nowrap; padding: 10px 14px; scroll-snap-align: start; }
    .report-foot { padding-left: 0; }
    .rp-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .rp-page { min-height: 0; }
    .rp-page::after { display: none; }
    .scope, .after-grid { grid-template-columns: minmax(0, 1fr); }
    .doc-grid { grid-template-columns: minmax(0, 1fr); }
    .doc-toc { position: static; }
}
@media (max-width: 720px) {
    .area-grid, .flow, .principles { grid-template-columns: minmax(0, 1fr); }
    .principle-icon { margin-top: 24px; }
    .canvas-summary { margin: 18px 16px 0; padding: 12px; }
    .canvas-stats { gap: 6px; }
    .canvas-stats div { padding: 9px 8px; }
}
@media (max-width: 620px) {
    .audit-card { padding: 20px 16px; margin-inline: calc(-1 * var(--gutter) + 8px); border-radius: 22px; }
    .stepper li { flex-direction: column; gap: 6px; text-align: center; font-size: 0.8rem; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .field-row--rate { grid-template-columns: minmax(0, 1fr) 110px; }
    .choices--2, .choices--3 { grid-template-columns: minmax(0, 1fr); }
    .choice--card .choice-box { flex-direction: row; align-items: center; }
    .form-nav { flex-wrap: wrap; }
    .form-nav .btn-lg { flex: 1; }
    .form-nav [data-back] { order: 2; flex: 0 0 auto; margin-inline: auto; border-color: transparent; background: transparent; box-shadow: none; }
    .form-nav [data-next], .form-nav [data-submit] { order: 1; width: 100%; flex-basis: 100%; white-space: normal; }
    .calc { grid-template-columns: minmax(0, 1fr); }
    .calc-inputs, .calc-result { padding: 22px; }
}
@media (max-width: 560px) {
    .hero-start-field { flex-wrap: wrap; padding: 8px; border-radius: 22px; }
    .hero-start-icon { margin-left: 10px; }
    .hero-start input { height: 44px; }
    .hero-start .btn { width: 100%; }
    .rp-bars li { grid-template-columns: minmax(0, 1fr) auto; }
    .rp-bar { grid-column: 1 / -1; grid-row: 2; }
    .report-foot .btn { flex: 1 1 100%; }
    .rp-table { min-width: 0; }
    .rp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .rp-table, .rp-table tbody { display: block; }
    .rp-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .rp-table th, .rp-table td { padding: 0; border: 0; }
    .rp-table tbody th { grid-column: 1 / -1; }
    .rp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 380px) {
    .canvas-stats dt { font-size: 0.7rem; }
}

/* ---------- Integracja ze stroną studia (28.10.2026) ---------- */
.hero--tool .breadcrumbs { margin-bottom: 18px; }
.canvas-note { margin: 10px 2px 0; font-size: 0.74rem; color: var(--muted); }
.result-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 16px; }
.result-more .text-link { font-size: 0.92rem; }
.af-consent .consent-text a { color: var(--text); }
.audit-form .form-step > .af-field--consent + .af-field--consent { margin-top: -8px; }
.doc-back .btn { margin-top: 8px; }
/* Hero narzędzia: dłuższy tytuł niż na stronie głównej — mniejszy krój, żeby formularz startowy był nad zgięciem. */
.hero--tool { padding-top: calc(var(--header-h) + var(--header-top) + clamp(28px, 4vw, 56px)); }
.hero--tool h1 { font-size: clamp(2.1rem, 1.15rem + 2.7vw, 3.7rem); max-width: 16ch; }
.hero--tool .hero-lead { max-width: 58ch; }
