/* Process Auditor — narzędzie studia AutomationNex. System projektowy „Studio” (2026-10), wspólny ze stroną studia.
   Jasna baza, Inter, akcenty w barwach n8n (róż, koral, lawenda), ciemne sekcje jako rytm.
   Ruch: aurora w hero, płótno workflow, marquee — wyłączane przy prefers-reduced-motion. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --bg: #fbfafd;
    --surface: #ffffff;
    --surface-2: #f5f3fa;
    --text: #0f0d16;
    --muted: #5b5670;
    --faint: #8f89a3;
    --line: #e9e6f0;
    --line-strong: #d8d3e3;

    --ink: #0f0d16;
    --ink-2: #17131f;
    --ink-3: #221d2e;
    --ink-line: rgba(244, 242, 248, 0.10);
    --ink-line-strong: rgba(244, 242, 248, 0.18);
    --on-dark: #f4f2f8;
    --on-dark-muted: #aaa4bd;

    --pink: #ea4b71;
    --brand: #d6365e;          /* przyciski: kontrast z bielą 4,6:1 (czysty #ea4b71 ma 3,7:1) */
    --brand-hover: #c92a52;
    --brand-soft: rgba(234, 75, 113, 0.10);
    --coral: #ff6d5a;
    --lav: #8b7cf6;
    --lav-text: #5b49d6;
    --lav-soft: rgba(139, 124, 246, 0.12);
    --pink-light: #ff8fa8;
    --ok: #12a26f;
    --ok-text: #0b7a53;
    --ok-soft: rgba(18, 162, 111, 0.12);
    --warn: #b06d00;
    --danger: #c92a52;
    --grad: linear-gradient(100deg, var(--coral) 0%, var(--pink) 42%, var(--lav) 100%);

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius-xl: 28px;
    --radius: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 13, 22, 0.05), 0 2px 6px rgba(15, 13, 22, 0.04);
    --shadow: 0 1px 2px rgba(15, 13, 22, 0.04), 0 12px 32px -12px rgba(15, 13, 22, 0.16);
    --shadow-lg: 0 2px 4px rgba(15, 13, 22, 0.04), 0 30px 70px -24px rgba(40, 20, 70, 0.30);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 64px;
    --header-top: 12px;
    --section-y: clamp(72px, 10vw, 128px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset i typografia ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--header-top) + 24px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; font-feature-settings: "cv11", "ss01"; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
p, li { text-wrap: pretty; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
::selection { background: rgba(234, 75, 113, 0.22); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.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; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 2000; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform 0.2s var(--ease); }
.skip-link:focus { transform: none; }
.hero h1 em, .page-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Przyciski ---------- */
.btn { --btn-h: 46px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h); padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 0.97rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-icon { transition: transform 0.25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-lg { --btn-h: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 28px -10px rgba(214, 54, 94, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 16px 36px -12px rgba(214, 54, 94, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.section--dark .btn-ghost, .cta-band .btn-ghost, .site-footer .btn-ghost { color: var(--on-dark); background: rgba(255, 255, 255, 0.05); border-color: var(--ink-line-strong); box-shadow: none; }
.section--dark .btn-ghost:hover, .cta-band .btn-ghost:hover, .site-footer .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.09); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.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; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--brand); }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.text-link:hover .icon { transform: translateX(3px); }
.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); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--high { color: var(--brand-hover); background: var(--brand-soft); }
.chip--mid { color: var(--warn); background: rgba(245, 184, 61, 0.18); }
.chip--win { color: var(--ok-text); background: var(--ok-soft); }

/* ---------- Nagłówki sekcji ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--dark, .section--dark .eyebrow, .cta-band .eyebrow { color: var(--on-dark-muted); }
/* Strona główna: numeracja sekcji jak w portfolio studia */
.page-home main { counter-reset: sec; }
.page-home .section-head .eyebrow::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0.04em; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-bottom: 0; }
.section-lead { margin: 20px 0 0; font-size: clamp(1.04rem, 0.98rem + 0.25vw, 1.16rem); color: var(--muted); max-width: 64ch; }

/* ---------- Sekcje ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--light { background: var(--surface); }
.section--muted { background: var(--surface-2); }
.section--dark { background: var(--ink); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 90% 0%, rgba(234, 75, 113, 0.22), transparent 70%), radial-gradient(45% 55% at 0% 100%, rgba(139, 124, 246, 0.2), transparent 70%), radial-gradient(rgba(244, 242, 248, 0.07) 1px, transparent 1.4px) 0 0 / 24px 24px; }
.section--dark .section-lead { color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--cta { background: var(--surface-2); padding-top: 0; }

/* ---------- Nagłówek (pływająca pigułka) ---------- */
.site-header { position: fixed; top: var(--header-top); left: 0; right: 0; z-index: 1000; padding-inline: 12px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 16px; width: min(100%, 1240px); height: var(--header-h); margin-inline: auto; padding: 0 10px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(233, 230, 240, 0.9); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); transition: box-shadow 0.3s, background-color 0.3s; }
.site-header.is-scrolled .nav, .nav-open .nav { background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px -14px rgba(15, 13, 22, 0.25); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 34px; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.03em; }
.brand-name b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { margin-top: 2px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-text small { color: var(--on-dark-muted); }
.nav-main { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; padding: 9px 13px; border-radius: 999px; font-size: 0.92rem; font-weight: 550; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.nav-link:hover, .nav-link.is-active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1081px) { .nav-main + .nav-actions { margin-left: 0; } }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-size: 0.86rem; font-weight: 650; text-decoration: none; color: var(--muted); }
.lang-switch:hover { color: var(--text); background: var(--surface-2); }
.lang-switch .icon { width: 17px; height: 17px; }
.nav-burger { display: none; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.burger-lines { display: grid; gap: 5px; width: 18px; margin: auto; }
.burger-lines span { height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-open .burger-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger-lines span:nth-child(2) { opacity: 0; }
.nav-open .burger-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 999; padding-top: calc(var(--header-h) + var(--header-top) + 12px); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s; }
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.mobile-nav-inner { display: grid; gap: 4px; padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.m-link { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.m-link .icon { width: 20px; color: var(--brand); }
.m-actions { display: grid; gap: 12px; margin-top: 24px; }
.m-actions .btn { white-space: normal; }

/* ---------- Aurora (tło hero) ---------- */
.hero-aurora, .hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-aurora::after, .hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(15, 13, 22, 0.09) 1px, transparent 1.3px) 0 0 / 22px 22px; mask-image: radial-gradient(70% 70% at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 30%, transparent 75%); }
.hero-aurora span, .hero-bg::before { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 18s var(--ease) infinite alternate; }
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -8vw; top: -14vw; background: radial-gradient(circle, rgba(234, 75, 113, 0.55), transparent 65%); }
.hero-aurora span:nth-child(2) { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: 22vw; top: 6vw; background: radial-gradient(circle, rgba(139, 124, 246, 0.45), transparent 65%); animation-delay: -6s; }
.hero-aurora span:nth-child(3) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: -8vw; bottom: -10vw; background: radial-gradient(circle, rgba(255, 109, 90, 0.35), transparent 65%); animation-delay: -12s; }
.hero-bg::before { content: ""; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -16vw; top: -24vw; background: radial-gradient(circle, rgba(234, 75, 113, 0.42), rgba(139, 124, 246, 0.25) 45%, transparent 70%); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-3vw, 2vw, 0) scale(1.08); } 100% { transform: translate3d(2vw, -1vw, 0) scale(0.96); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + var(--header-top) + clamp(40px, 6vw, 88px)) 0 0; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.hero-lead { font-size: clamp(1.04rem, 0.98rem + 0.32vw, 1.2rem); color: var(--muted); max-width: 60ch; margin: 0; }
.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); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-size: 0.92rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.6; }

/* Płótno workflow (jak powstaje raport) */
.canvas { position: relative; margin: 0 clamp(24px, 3.5vw, 48px) 0 0; padding: 0 0 18px; border-radius: var(--radius-xl); background: radial-gradient(rgba(15, 13, 22, 0.10) 1px, transparent 1.3px) 0 0 / 18px 18px, var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.canvas::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(255, 109, 90, 0.7), transparent 30%, transparent 70%, rgba(139, 124, 246, 0.7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.canvas-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: rgba(255, 255, 255, 0.85); font-size: 0.8rem; }
.canvas-dots { display: flex; gap: 6px; }
.canvas-dots i { width: 10px; height: 10px; border-radius: 50%; }
.canvas-dots i:nth-child(1) { background: #ff6d5a; }
.canvas-dots i:nth-child(2) { background: #f5b83d; }
.canvas-dots i:nth-child(3) { background: #3fcf8e; }
.canvas-name { font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.canvas-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-text); font-weight: 600; flex: none; }
.canvas-flow { display: grid; gap: 22px; padding: 24px 24px 0; }
.canvas-node { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.4s, box-shadow 0.4s; }
.canvas-node:nth-child(even) { margin-left: clamp(18px, 4vw, 44px); }
.canvas-node:not(:last-child)::after { content: ""; position: absolute; left: 34px; top: 100%; width: 2px; height: 22px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 10px); }
.canvas-node:nth-child(odd):not(:last-child)::after { left: calc(34px + clamp(18px, 4vw, 44px) / 2); transform: skewX(-35deg); transform-origin: top; }
.canvas-node:nth-child(even):not(:last-child)::after { left: calc(34px - clamp(18px, 4vw, 44px) / 2); transform: skewX(35deg); transform-origin: top; }
.js .canvas-node:not(.is-on) { box-shadow: none; }
.js .canvas-node:not(.is-on) > :not(.canvas-chip) { opacity: 0.45; }
.js .canvas-node > * { transition: opacity 0.4s; }
.js .canvas-node.is-on { border-color: rgba(234, 75, 113, 0.45); box-shadow: 0 0 0 4px rgba(234, 75, 113, 0.08), var(--shadow); }
.js .canvas-node.is-on:not(:last-child)::after { background: linear-gradient(180deg, var(--pink), var(--lav)); }
.canvas-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; flex: none; }
.canvas-icon .icon { width: 20px; height: 20px; }
.canvas-node--trigger .canvas-icon { background: linear-gradient(135deg, #ff8a5c, var(--coral)); }
.canvas-node--ai .canvas-icon { background: linear-gradient(135deg, #a593ff, var(--lav)); }
.canvas-node--app .canvas-icon { background: linear-gradient(135deg, #f46b8d, var(--pink)); }
.canvas-node--human .canvas-icon { background: linear-gradient(135deg, #2b2340, var(--ink)); color: var(--pink-light); }
.js .canvas-node--human.is-on { border-color: rgba(139, 124, 246, 0.6); box-shadow: 0 0 0 4px rgba(139, 124, 246, 0.12), var(--shadow); }
.canvas-text { display: grid; min-width: 0; line-height: 1.35; }
.canvas-text strong { font-size: 0.95rem; }
.canvas-text small { font-size: 0.8rem; color: var(--muted); }
.canvas-check { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none; opacity: 0; transform: scale(0.6); transition: 0.35s var(--ease); }
.canvas-check .icon { width: 14px; height: 14px; stroke-width: 3; }
.canvas-node.is-on .canvas-check, html:not(.js) .canvas-check { opacity: 1; transform: none; }
.canvas-node--human { padding-right: 76px; }
.canvas-node--human .canvas-check { display: none; }
/* Plakietka „Human in the loop” przypięta do prawej krawędzi płótna, na wysokości kroku decyzji. */
.canvas-chip { position: absolute; z-index: 2; top: 50%; right: -26px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(15, 13, 22, 0.55), 0 0 0 4px rgba(139, 124, 246, 0.18); transform: translate(40%, -50%); animation: chip-float 5s ease-in-out infinite; }
.canvas-chip .icon { width: 16px; height: 16px; color: var(--pink-light); }
@keyframes chip-float { 0%, 100% { transform: translate(40%, -50%); } 50% { transform: translate(40%, calc(-50% - 6px)); } }
.canvas-result { 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-result-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-result-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); }
.canvas figcaption { margin: 12px 24px 0; font-size: 0.76rem; color: var(--faint); text-align: center; }

/* Marquee branż */
.marquee { display: flex; align-items: center; gap: 20px; margin-top: clamp(56px, 8vw, 96px); padding: 22px 0; border-top: 1px solid var(--line); }
.marquee-label { flex: none; margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.marquee-viewport { display: flex; gap: 12px; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; flex: none; min-width: 100%; justify-content: space-around; animation: marquee 48s linear infinite; }
.marquee-viewport:hover .marquee-track { animation-play-state: paused; }
.marquee li { padding: 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-100% - 12px)); } }

/* Spotlight na kartach */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(234, 75, 113, 0.10), rgba(139, 124, 246, 0.06) 40%, transparent 70%); }
[data-spotlight]:hover::before { opacity: 1; }

/* ---------- Obszary ---------- */
.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); }

/* ---------- Jak to działa (ciemna sekcja, 4 kroki) ---------- */
.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; }
.step-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; }
.step-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 .step-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); }

/* ---------- Raport (zakładki) ---------- */
.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) + 24px); }
.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); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.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); }

/* ---------- Zasady (human in the loop, dobrostan, przejrzystość) ---------- */
.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); }

/* ---------- Kalkulator ---------- */
.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; }
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); }
.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; }

/* ---------- Opinie ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.quote { display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 2.4vw, 30px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.quote-mark { width: 30px; height: 30px; color: var(--pink); margin-bottom: 16px; }
.quote blockquote { margin: 0 0 22px; flex: 1; font-size: 1.03rem; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote figcaption > span:last-child { display: grid; line-height: 1.3; }
.quote small { color: var(--muted); font-size: 0.85rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; flex: none; }
.quotes li:nth-child(2) .avatar { background: var(--brand); }
.quotes li:nth-child(3) .avatar { background: var(--lav-text); }

/* ---------- Audyt (formularz) ---------- */
.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) + 28px); }
.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: calc(var(--header-h) + var(--header-top) + 16px); }
.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; }
.noscript { padding: 14px 16px; border-radius: 12px; background: #fff4e5; color: #7a4a00; margin-bottom: 16px; }

.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); }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.field > legend { margin-bottom: 4px; }
.field--group { gap: 10px; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field-hint { margin: -2px 0 0; font-size: 0.84rem; color: var(--muted); }
.field--group .field-hint { margin-top: -6px; }
.field-error { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.85rem; font-weight: 500; color: var(--danger); }
.field-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; }
.field--other { margin-top: -10px; }
.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; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fffafb; }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 4px var(--brand-soft); }
.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%; }
.field.has-error .choice-box { border-color: rgba(201, 42, 82, 0.45); }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .choice-check { margin-top: 2px; }
.consent input:checked + .choice-check { background: var(--brand); border-color: var(--brand); }
.consent input:checked + .choice-check .icon { opacity: 1; transform: none; }
.consent input:focus-visible + .choice-check { outline: 2px solid var(--pink); outline-offset: 2px; }
.consent a { color: var(--text); font-weight: 600; }
.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; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Wynik wysyłki */
.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); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.form-result .timeline { display: grid; gap: 10px; max-width: 360px; margin: 26px auto; text-align: left; }
.form-result .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 .timeline li.done { color: var(--text); font-weight: 600; }
.form-result .timeline li.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.form-result .timeline li.done .tl-dot .icon { opacity: 1; }
.form-result .timeline li.active .tl-dot { border-color: var(--pink); border-top-color: transparent; animation: spin 1s linear infinite; }
.form-result .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; }

/* ---------- Po raporcie ---------- */
.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; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + var(--header-top) + 40px); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.3s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 650; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }
.faq-chevron { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--surface-2); transition: transform 0.3s var(--ease), background-color 0.2s; flex: none; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--ink); color: #fff; }
.faq-body { padding: 0 22px 22px; color: var(--muted); }
.faq-item[open] .faq-body { animation: fadeUp 0.3s var(--ease); }

/* ---------- CTA końcowe ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(36px, 5vw, 68px); border-radius: 36px; background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(234, 75, 113, 0.45), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(139, 124, 246, 0.3), transparent 70%), radial-gradient(rgba(244, 242, 248, 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.cta-copy h2 { color: #fff; font-size: clamp(1.8rem, 1.25rem + 2vw, 2.9rem); }
.cta-copy p { color: var(--on-dark-muted); font-size: 1.05rem; }
.cta-actions { display: grid; gap: 12px; }
.cta-actions .btn { white-space: normal; text-align: center; }

/* ---------- Przyklejone CTA (telefon) ---------- */
.sticky-cta { display: none; }

/* ---------- Stopka ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 104px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.94rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 100% 0%, rgba(234, 75, 113, 0.22), transparent 70%), radial-gradient(40% 50% at 0% 0%, rgba(139, 124, 246, 0.16), transparent 70%); }
.footer-cta { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--ink-line); }
.footer-cta-kicker { margin: 0 0 10px !important; font-weight: 600; color: var(--on-dark-muted); }
.footer-cta-title { margin: 0 0 8px !important; padding-bottom: 0.08em; font-size: clamp(2.4rem, 1.2rem + 5vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-cta .btn-row { margin-top: 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin: 18px 0; max-width: 42ch; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ink-line-strong); color: #fff; transition: 0.2s; }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.socials .icon { width: 18px; height: 18px; }
.footer-title { margin: 0 0 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a, .footer-col .link-button { color: var(--on-dark-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover, .footer-col .link-button:hover { color: #fff; }
.footer-col .link-button { text-align: left; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 0.86rem; }
.footer-bottom p { margin: 0; }
.made-by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-dark-muted); }
.made-by img { width: 22px; height: auto; }
.made-by strong { color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.made-by strong b { color: var(--pink); font-weight: 800; }

/* ---------- Baner cookies ---------- */
.cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 1100; width: min(440px, calc(100% - 32px)); display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: opacity 0.3s, transform 0.3s var(--ease); }
.cookie-banner.is-hiding { opacity: 0; transform: translateY(12px); }
.cookie-icon { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.cookie-banner p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.cookie-banner p a { color: var(--text); font-weight: 600; }
.cookie-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Strony dokumentów i 404 ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + var(--header-top) + clamp(36px, 6vw, 72px)) 0 clamp(44px, 6vw, 72px); background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4rem); margin-bottom: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 0.86rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }
.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); }
.todo-fill { background: #fef3c7; border-bottom: 2px dashed #d97706; color: #78350f; font-weight: 700; padding: 0 4px; border-radius: 3px; }
.doc-back { margin-top: 40px; }
.page-hero--404 { min-height: 78vh; display: grid; align-items: center; text-align: center; border-bottom: 0; }
.nf { display: grid; justify-items: center; }
.nf-code { margin: 0 0 12px; font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .hero-lead { margin: 0 auto 28px; }

/* ---------- Animacje ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Hero bez animacji przezroczystości — H1 to element LCP. Ruch daje płótno i aurora. */
.js .canvas { animation: rise-in 1s 0.15s var(--ease) both; }
@keyframes rise-in { from { transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .form-result .timeline li { opacity: 1; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1180px) {
    .nav-link { padding: 9px 10px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
    :root { --header-h: 58px; --header-top: 10px; }
    .nav-main { display: none; }
    .nav-burger { display: grid; place-items: center; }
    .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; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .canvas { max-width: 600px; }
}
@media (max-width: 1000px) {
    .calc-grid, .audit-grid, .faq-grid, .cta-band { 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; }
    .faq-grid .section-head { position: static; margin-bottom: 8px; }
    .cta-actions { justify-items: start; }
}
@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, .quotes, .after-grid { grid-template-columns: minmax(0, 1fr); }
    .doc-grid { grid-template-columns: minmax(0, 1fr); }
    .doc-toc { position: static; }
}
@media (max-width: 720px) {
    :root { --section-y: 64px; }
    body { font-size: 0.98rem; }
    .nav { padding-left: 14px; }
    .brand-text small { display: none; }
    .nav-cta { display: none; }
    .area-grid, .flow, .principles { grid-template-columns: minmax(0, 1fr); }
    .principle-icon { margin-top: 24px; }
    .btn-row .btn { flex: 1 1 100%; }
    .btn { white-space: normal; text-align: center; }
    .canvas { margin-right: 0; }
    .canvas-flow { padding: 20px 16px 0; gap: 20px; }
    .canvas-result { margin: 18px 16px 0; padding: 12px; }
    .canvas figcaption { margin-inline: 16px; }
    .canvas-bar { padding: 12px 14px; }
    .canvas-name { display: none; }
    /* Telefon: plakietka zostaje na krawędzi karty, ale nie wychodzi poza ekran. */
    .canvas-node--human { padding-right: 14px; padding-bottom: 30px; }
    .canvas-chip { top: auto; bottom: -14px; right: -6px; padding: 7px 11px; font-size: 0.74rem; transform: none; animation-name: chip-float-sm; }
    @keyframes chip-float-sm { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -5px); } }
    .canvas-stats { gap: 6px; }
    .canvas-stats div { padding: 9px 8px; }
    .marquee { flex-direction: column; align-items: flex-start; gap: 12px; }
    .marquee-viewport { width: 100%; }
    .sticky-cta { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 900; display: block; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform 0.4s var(--ease); }
    .sticky-cta.is-visible { transform: none; }
    .nav-open .sticky-cta { transform: translateY(140%); }
    .page-home .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; }
    .cookie-actions .btn { flex: 1; }
}
@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) {
    .lang-switch { padding: 9px 10px; }
    .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%; }
    /* Tabela procesów jako karty */
    .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) {
    .brand-name { font-size: 1rem; }
    .canvas-stats dt { font-size: 0.7rem; }
}
@media print {
    .site-header, .sticky-cta, .cookie-banner, .hero-aurora, .hero-bg, .marquee, .cta-band, .footer-cta { display: none !important; }
    .reveal { opacity: 1; transform: none; }
    .hero, .page-hero { padding-top: 24px; }
    .section--dark, .site-footer { color: #000; background: #fff; }
}
