/* Etap 1 — warstwa wizualna: diagramy, ikony, protokół odbioru, okładki. */

/* Marka w nagłówku: K.O Agency × HYROS */
.brand-duo { display: flex; align-items: center; gap: 12px; }
.brand-duo .nav-ko-logo { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.brand-duo .brand-text { display: block; line-height: 1.1; }
.brand-duo .brand-name { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 680; letter-spacing: -.02em; color: var(--text-primary); }
.brand-duo .brand-x { color: var(--text-muted); font-weight: 400; font-size: 14px; }
.brand-duo .nav-hyros-logo { width: 78px; height: 22px; }
.brand-duo .brand-by { margin-top: 5px; font-size: 11.5px; }

/* Problem: jedna sprzedaż, dwa raporty */
.dup-viz { margin: 8px 0 44px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--background-secondary); }
.dup-viz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 30px; }
.dup-viz-head h3 { font-size: clamp(22px, 2.2vw, 29px); max-width: 620px; }
.dup-viz-head .kicker { display: block; margin-bottom: 12px; }
.dup-viz-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.dup-path { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.dup-path::before { content: ''; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 11px); }
.dup-path li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.dup-path .dot { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.dup-path .dot img { width: 18px; height: 18px; }
.dup-path b { display: block; font-size: 15px; line-height: 1.3; }
.dup-path small { display: block; font-size: 13px; color: var(--text-muted); }
.dup-path time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.dup-path li.is-sale .dot { background: var(--text-primary); border-color: var(--text-primary); color: #fff; font-size: 15px; }
.dup-bars { display: grid; gap: 15px; }
.dup-bar { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 14px; }
.dup-bar > span { color: var(--text-secondary); line-height: 1.3; }
.dup-bar .track { position: relative; height: 34px; border-radius: 6px; background: var(--surface); }
.dup-bar .fill { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: #fff; width: var(--w); transform-origin: left; }
.dup-bar.meta .fill { background: #8C8BF8; }
.dup-bar.google .fill { background: #8C8BF8; }
.dup-bar.sum .fill { background: var(--error); }
.dup-bar.truth .fill { background: var(--text-primary); }
.dup-bar.sum { padding-top: 15px; border-top: 1px dashed var(--border); }
.dup-bar.sum > span, .dup-bar.truth > span { color: var(--text-primary); font-weight: 600; }
.dup-viz figcaption { margin-top: 26px; font-size: 13.5px; color: var(--text-muted); }
.js-reveal .dup-bar .fill { transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.js-reveal .dup-viz.is-visible .dup-bar .fill { transform: scaleX(1); }
.js-reveal .dup-viz.is-visible .dup-bar:nth-child(2) .fill { transition-delay: .12s; }
.js-reveal .dup-viz.is-visible .dup-bar:nth-child(3) .fill { transition-delay: .3s; }
.js-reveal .dup-viz.is-visible .dup-bar:nth-child(4) .fill { transition-delay: .45s; }

/* Schemat przepływu danych */
.flow-diagram { margin: 0 0 30px; padding: clamp(18px, 2.4vw, 30px); border: 1px solid #5150f62f; border-radius: var(--radius); background: var(--product-lavender); }
.flow-diagram svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.flow-diagram .fd-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; fill: var(--text-muted); }
.flow-diagram .fd-pill { fill: #fff; stroke: #5150f633; }
.flow-diagram .fd-pill-text { font-size: 16px; font-weight: 600; fill: var(--text-primary); }
.flow-diagram .fd-pill-sub { font-size: 12.5px; fill: var(--text-muted); }
.flow-diagram .fd-hub { fill: #fff; stroke: var(--product-accent); stroke-width: 1.5; }
.flow-diagram .fd-hub-title { font-size: 19px; font-weight: 680; fill: var(--text-primary); letter-spacing: -.02em; }
.flow-diagram .fd-hub-sub { font-size: 13px; fill: var(--text-secondary); }
.flow-diagram .fd-chip { fill: var(--product-lavender); }
.flow-diagram .fd-chip-text { font-family: var(--font-mono); font-size: 11px; fill: var(--product-accent); }
.flow-diagram .fd-line { fill: none; stroke: var(--product-accent); stroke-width: 1.6; stroke-opacity: .55; }
.flow-diagram .fd-flow { fill: none; stroke: var(--product-accent); stroke-width: 2.2; stroke-dasharray: 3 14; stroke-linecap: round; animation: fd-dash 1.6s linear infinite; }
.flow-diagram .fd-return { fill: none; stroke: var(--success); stroke-width: 1.8; stroke-dasharray: 6 6; animation: fd-dash 2.4s linear infinite; }
.flow-diagram .fd-edge-text { font-size: 12.5px; fill: var(--text-secondary); }
.flow-diagram .fd-badge { fill: var(--text-primary); }
.flow-diagram .fd-badge-text { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: #fff; }
.flow-diagram .fd-report { fill: var(--text-primary); }
.flow-diagram .fd-report-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; fill: #ffffffa0; }
.flow-diagram .fd-report-t { font-size: 16px; font-weight: 600; fill: #fff; }
.flow-diagram .fd-signal { fill: #fff; stroke: #1F754F55; }
.flow-diagram .fd-signal-t { font-size: 15px; font-weight: 600; fill: var(--success); }
.flow-diagram figcaption { margin-top: 14px; font-size: 13.5px; color: var(--text-secondary); }
@keyframes fd-dash { to { stroke-dashoffset: -34; } }
.flow-diagram + .product-loop { display: none; }

/* Protokół odbioru */
.acceptance-preview .protocol { border: 1px solid var(--border); border-radius: var(--radius); background: var(--background-secondary); overflow: hidden; box-shadow: 0 18px 40px -28px #1f1e1d40; }
.protocol-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--text-muted); }
.protocol-head b { font-size: 11.5px; font-weight: 600; color: var(--text-primary); }
.acceptance-preview .protocol ol { padding: 0 20px; }
.acceptance-preview .protocol li { grid-template-columns: 35px minmax(0, 1fr) auto; align-items: start; }
.acceptance-preview .protocol li:last-child { border-bottom: 0; }
.acceptance-preview .protocol li::before { grid-row: 1 / 3; }
.protocol .status { grid-column: 3; grid-row: 1 / 3; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #1F754F14; color: var(--success); font-family: var(--font-mono); font-size: 11.5px; font-style: normal; font-weight: 600; white-space: nowrap; }
.protocol .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.protocol-foot { padding: 12px 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }

/* Proces jako oś czasu */
.process.process-timeline li:not(.process-models) { position: relative; border-top: 2px solid var(--border); padding-top: 42px; }
.process.process-timeline li:not(.process-models)::after { content: ''; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--text-primary); transition: width .8s ease; }
.process.process-timeline.is-visible li:not(.process-models)::after { width: 100%; }
.process.process-timeline li:not(.process-models):nth-child(2)::after { transition-delay: .2s; }
.process.process-timeline li:not(.process-models):nth-child(3)::after { transition-delay: .4s; }
.process.process-timeline li:not(.process-models):nth-child(4)::after { transition-delay: .6s; }
.process.process-timeline li:not(.process-models) > .number { position: absolute; top: -17px; left: 0; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--text-primary); color: #fff; font-family: var(--font-mono); font-size: 12px; }
.process-icon { width: 44px; height: 44px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 11px; background: var(--product-lavender); color: var(--product-accent); }
.process-icon svg, .trust-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Ikony w sekcji bezpieczeństwa */
.trust-icon { width: 46px; height: 46px; margin-top: 20px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--text-primary); }
.trust-grid h3 { margin-top: 18px; }

/* Linki do modeli: wcześniej ściśnięte w pierwszej, 90-pikselowej kolumnie */
.process-models .process-result { grid-column: 2 / -1; }

/* Okładki wpisów na stronie głównej */
.blog-home .blog-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.blog-cover { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.blog-cover img { width: 100%; aspect-ratio: 1020 / 330; object-fit: cover; transition: transform .5s ease; }
.blog-entry:hover .blog-cover img { transform: scale(1.03); }
.blog-entry .kicker.in-body { display: block; margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .flow-diagram .fd-flow, .flow-diagram .fd-return, .hx-live::before { animation: none; }
  .js-reveal .dup-bar .fill { transform: none; transition: none; }
  .process.process-timeline li:not(.process-models)::after { transition: none; }
}

@media (max-width: 900px) {
  .flow-diagram { display: none; }
  .flow-diagram + .product-loop { display: grid; }
  .dup-viz-body { grid-template-columns: 1fr; }
  .blog-home .blog-entry { grid-template-columns: 1fr; gap: 18px; }
  .process-models .process-result { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .brand-duo .nav-ko-logo { width: 30px; height: 30px; }
  .brand-duo .brand-name { font-size: 15px; gap: 7px; }
  .brand-duo .nav-hyros-logo, .brand-duo .brand-x, .brand-duo .brand-by { display: none; }
  .dup-bar { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: 13px; }
  .dup-path li { grid-template-columns: 36px minmax(0, 1fr); }
  .dup-path time { grid-column: 2; }
  .acceptance-preview .protocol li { grid-template-columns: 30px minmax(0, 1fr); }
  .protocol .status { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .process.process-timeline li:not(.process-models) { padding-top: 36px; }
}

/* Etap 4 — „Kto co robi” */
.roles-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 36px; border-block: 1px solid var(--border); }
.roles-stats > div { padding: 26px 24px 24px 0; }
.roles-stats > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.roles-stats strong { display: block; font-size: clamp(36px, 4vw, 54px); font-weight: 720; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.roles-stats > div span:not([data-count]) { display: block; margin-top: 10px; font-size: 14.5px; color: var(--text-secondary); }
.roles-stats p { grid-column: 1 / -1; padding: 0 0 12px; font-size: 12.5px; color: var(--text-muted); }
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.role-col { padding: 26px 26px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background-secondary); }
.role-col.is-us { background: var(--text-primary); border-color: var(--text-primary); color: #fff; transform: translateY(-10px); box-shadow: 0 28px 50px -30px #1f1e1d80; }
.role-col.is-us h3, .role-col.is-us .checks li { color: #fff; }
.role-col.is-us .checks li::before { color: #b9b8ff; }
.role-col:not(.is-us) .checks li::before { color: var(--product-accent); }
.role-col.is-us .role-lede { color: #ffffffb0; }
.role-col.is-us .role-tag { color: #b9b8ff; }
.role-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--product-accent); }
.role-col h3 { margin: 14px 0 6px; font-size: 26px; min-height: 32px; display: flex; align-items: center; }
.role-col h3 img { width: 104px; height: 30px; }
.role-lede { font-size: 15px; margin-bottom: 18px; }
.role-col .checks li { font-size: 15px; }
.roles-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 18px 36px; align-items: center; margin-top: 34px; padding: 24px 26px; border-radius: var(--radius); background: var(--product-lavender); }
.roles-how p { font-size: 15px; margin-top: 8px; }
.roles-how ul { display: flex; flex-wrap: wrap; gap: 8px; }
.roles-how li { padding: 7px 12px; border-radius: 99px; background: #fff; border: 1px solid #5150f633; font-size: 13.5px; }
.roles-note { margin-top: 18px; }
.price-guarantee { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #1F754F12; font-size: 14.5px; color: var(--text-primary); }

/* Etap 4 — animacje (wzorowane na kocapital.pl; tylko transform/opacity, wyłączane przy ograniczonym ruchu) */
/* Tekst nie wjeżdża przy przewijaniu (Etap 1 po badaniu); animujemy tylko schematy i wykresy. */
.js-motion .flow-diagram .fd-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1); }
.js-motion .flow-diagram .fd-flow, .js-motion .flow-diagram .fd-return { opacity: 0; transition: opacity .6s ease 1.1s; }
.js-motion .flow-diagram g { opacity: 0; transition: opacity .5s ease; }
.js-motion .flow-diagram.is-in .fd-line { stroke-dashoffset: 0; }
.js-motion .flow-diagram.is-in .fd-flow, .js-motion .flow-diagram.is-in .fd-return, .js-motion .flow-diagram.is-in g { opacity: 1; }
.js-motion .flow-diagram.is-in g:nth-of-type(n+7) { transition-delay: .5s; }
.js-motion .protocol .status { opacity: 0; transform: scale(.7); transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--i) * 160ms + 200ms); }
.js-motion .protocol.is-in .status { opacity: 1; transform: none; }
.seg-trap, .about-principles article, .price-card, .role-col:not(.is-us) { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease; }
@media (hover: hover) {
  .seg-trap:hover, .about-principles article:hover, .price-card:hover, .role-col:not(.is-us):hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px #1f1e1d66; }
}

@media (max-width: 900px) {
  .roles-grid { grid-template-columns: 1fr; }
  .role-col.is-us { transform: none; }
  .roles-how { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .roles-stats { grid-template-columns: 1fr; }
  .roles-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .roles-stats > div { padding: 18px 0; }
}

/* Etap 5 — podróż klienta (styl okien i konsoli jak w materiałach marki HYROS) */
.jv-root { position: relative; overflow: hidden; margin: 8px 0 40px; padding: clamp(22px, 3vw, 38px); border-radius: var(--radius); border: 1px solid #5150f62f; background: #EEEEFB url('brand/hyros-kit/zebra-lavender.svg') center / cover no-repeat; }
.jv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 22px; }
.jv-head h3 { margin-top: 12px; font-size: clamp(24px, 2.4vw, 32px); }
.jv-head .kicker { display: block; }
.jv-controls { display: flex; gap: 8px; }
.jv-controls button { min-width: 44px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid #1f1e1d22; background: #fff; font-size: 14px; }
.jv-controls .jv-play { min-width: 92px; }
.jv-controls button:hover { border-color: var(--product-accent); color: var(--product-accent); }
.jv-path { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; padding: 0; list-style: none; position: relative; }
.jv-path::before { content: ''; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 19px; height: 2px; background: #5150f62a; }
.jv-path::after { content: ''; position: absolute; left: calc(100% / 14); top: 19px; height: 2px; width: calc((100% - 100% / 7) * var(--p, 1)); background: var(--product-accent); transition: width .6s cubic-bezier(.22,1,.36,1); }
.jv-path li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--text-secondary); }
.jv-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1.5px solid #5150f640; color: var(--product-accent); transition: transform .4s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s; }
.jv-ico img { width: 18px; height: 18px; }
.jv-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jv-path li.is-done .jv-ico { border-color: var(--product-accent); }
.jv-path li.is-active .jv-ico { transform: scale(1.14); border-color: var(--product-accent); box-shadow: 0 0 0 6px #5150f61f; }
.jv-path li.is-active span:last-child { color: var(--text-primary); font-weight: 600; }
.jv-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.jv-window, .jv-console { border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 410px; }
.jv-window { background: #fff; border: 1px solid #1f1e1d1c; box-shadow: 0 24px 50px -36px #1f1e1d70; }
.jv-console { background: #161514; color: #fff; }
.jv-bar-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #1f1e1d14; background: #FCFBF8; font-family: var(--font-mono); font-size: 11.5px; color: #8B8984; }
.jv-bar-top i { width: 9px; height: 9px; border-radius: 50%; background: #EDEBE3; }
.jv-bar-top span { flex: 1; text-align: center; }
.jv-bar-top.is-dark { background: #1f1e1d; border-color: #ffffff14; color: #ffffff80; }
.jv-bar-top.is-dark i { background: #ffffff26; }
.jv-sven { width: 16px; height: 18px; image-rendering: pixelated; }
.jv-window-body { padding: 16px 18px; display: grid; gap: 14px; align-content: start; }
.jv-profile { display: grid; gap: 0; margin: 0; }
.jv-profile > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #1f1e1d10; font-size: 14px; }
.jv-profile dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #8B8984; padding-top: 2px; }
.jv-profile dd { margin: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--text-primary); }
.jv-profile dd img { width: 16px; height: 16px; }
.jv-new { padding: 1px 7px; border-radius: 99px; background: var(--product-lavender); color: var(--product-accent); font-family: var(--font-mono); font-size: 10.5px; font-style: normal; }
.jv-attr { padding: 12px 14px; border-radius: 10px; background: #FCFBF8; border: 1px solid #1f1e1d12; }
.jv-attr-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: #8B8984; margin-bottom: 8px; }
.jv-attr-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.jv-bar { position: relative; height: 24px; border-radius: 5px; background: #EDEBE3; }
.jv-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 5px; background: var(--product-accent); transform-origin: left; }
.jv-bar.is-bad i { background: var(--error); opacity: .85; }
.jv-bar b { position: relative; z-index: 1; display: block; padding: 0 8px; line-height: 24px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: #fff; width: var(--w, 100%); }
.jv-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.jv-sync b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #1F754F14; color: var(--success); font-weight: 600; font-size: 12.5px; }
.jv-sync img { width: 14px; height: 14px; }
.jv-ltv { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 12px 14px; border-radius: 10px; background: var(--text-primary); color: #fff; }
.jv-ltv span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: #ffffff99; }
.jv-ltv strong { grid-row: 1 / 3; grid-column: 2; font-size: 30px; letter-spacing: -.03em; }
.jv-log { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 9px; align-content: start; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; overflow: hidden; }
.jv-log li { display: grid; gap: 1px; color: #ffffffd9; min-width: 0; }
.jv-log li > span { overflow-wrap: anywhere; }
.jv-log time { color: #A5A4FA; font-size: 10.5px; letter-spacing: .06em; }
.jv-log time:empty { display: none; }
.jv-log i { font-style: normal; color: #A5A4FA; margin-right: 6px; }
.jv-log i::before { content: '› '; color: #ffffff59; }
.jv-log b { color: #fff; }
.jv-log em { font-style: normal; color: #7CD3A6; }
.jv-muted { color: #ffffff73; }
.jv-ko { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #ffffff; color: var(--text-primary); font-size: 10.5px; }
.jv-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jv-steps button { width: 100%; display: grid; gap: 2px; padding: 9px 10px; text-align: left; border-radius: 10px; border: 1px solid #1f1e1d18; background: #ffffffcc; font-size: 12.5px; line-height: 1.3; color: var(--text-secondary); }
.jv-steps button b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: #8B8984; }
.jv-steps button[aria-current="step"] { background: #fff; border-color: var(--product-accent); color: var(--text-primary); box-shadow: 0 10px 24px -18px #5150f6; }
.jv-steps button[aria-current="step"] b { color: var(--product-accent); }
.jv-steps p { display: none; }
.jv-caption { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid #1f1e1d14; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; color: var(--text-primary); min-height: 84px; }
.jv-caption b { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--product-accent); font-weight: 500; margin-bottom: 4px; }
.jv-note { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
/* Bez JS: wszystkie kroki widoczne jako lista z opisami */
.jv-root:not(.jv-js) .jv-steps { grid-template-columns: 1fr; }
.jv-root:not(.jv-js) .jv-steps p { display: block; margin: 4px 0 8px; font-size: 14.5px; }
.jv-root:not(.jv-js) .jv-steps button { pointer-events: none; }
/* Z JS: pokazujemy tylko to, co już się wydarzyło */
.jv-js [data-show]:not(.on) { display: none; }
.jv-js .jv-log li.on, .jv-js .jv-profile > div.on, .jv-js .jv-attr.on, .jv-js .jv-sync.on, .jv-js .jv-ltv.on { animation: jv-in .5s cubic-bezier(.22,1,.36,1) both; }
.jv-js .jv-log li.is-old, .jv-js .jv-profile > div.is-old, .jv-js .jv-attr.is-old, .jv-js .jv-sync.is-old, .jv-js .jv-ltv.is-old { animation: none; }
.jv-js .jv-log li.on.is-new { animation: jv-type .7s steps(28) both; }
.jv-js .jv-attr.on:not(.is-old) .jv-bar i { animation: jv-grow .9s .2s cubic-bezier(.22,1,.36,1) both; }
@keyframes jv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes jv-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes jv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Pakiety danych na schemacie */
.fd-packet rect { fill: #fff; stroke: var(--product-accent); stroke-width: 1.2; }
.fd-packet text { font-family: var(--font-mono); font-size: 11px; fill: var(--product-accent); }
.fd-packet.is-sale rect { fill: var(--product-accent); }
.fd-packet.is-sale text { fill: #fff; }
.fd-packet.is-signal rect { fill: var(--success); stroke: var(--success); }
.fd-packet.is-signal text { fill: #fff; }
.flow-diagram.no-packets .fd-packets { display: none; }

/* Mapa danych na stronach branżowych: impuls przechodzi przez kolejne etapy */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .segment-map.is-in > span, .js-motion .segment-map.is-in > strong { animation: seg-pulse 2.4s ease-in-out 1 both; }
  .js-motion .segment-map.is-in > i { animation: seg-arrow 2.4s ease-in-out 1 both; }
  .js-motion .segment-map.is-in > :nth-child(1) { animation-delay: 0s; }
  .js-motion .segment-map.is-in > :nth-child(2) { animation-delay: .25s; }
  .js-motion .segment-map.is-in > :nth-child(3) { animation-delay: .5s; }
  .js-motion .segment-map.is-in > :nth-child(4) { animation-delay: .75s; }
  .js-motion .segment-map.is-in > :nth-child(5) { animation-delay: 1s; }
  .js-motion .segment-map.is-in > :nth-child(6) { animation-delay: 1.25s; }
  .js-motion .segment-map.is-in > :nth-child(7) { animation-delay: 1.5s; }
}
@keyframes seg-pulse { 0%, 22%, 100% { box-shadow: 0 0 0 0 #5150f600; border-color: var(--border); } 8% { box-shadow: 0 0 0 6px #5150f626; border-color: var(--product-accent); } }
@keyframes seg-arrow { 0%, 20%, 100% { transform: translateX(0); opacity: .5; } 8% { transform: translateX(5px); opacity: 1; } }
.segment-map > strong { animation-name: seg-pulse-strong !important; }
@keyframes seg-pulse-strong { 0%, 22%, 100% { box-shadow: 0 0 0 0 #5150f600; } 8% { box-shadow: 0 0 0 8px #5150f640; } }

@media (max-width: 900px) {
  .jv-stage { grid-template-columns: 1fr; }
  .jv-window, .jv-console { min-height: 0; }
  .jv-console { order: 2; }
  .jv-log { max-height: 260px; }
  .jv-steps { grid-template-columns: repeat(7, 132px); overflow-x: auto; padding-bottom: 6px; }
  .jv-root:not(.jv-js) .jv-steps { grid-template-columns: 1fr; overflow: visible; }
}
@media (max-width: 600px) {
  .jv-path { grid-template-columns: repeat(7, 64px); overflow-x: auto; padding-bottom: 6px; }
  .jv-path::before, .jv-path::after { display: none; }
  .jv-profile > div { grid-template-columns: 1fr; gap: 2px; }
  .jv-attr-row { grid-template-columns: 1fr; gap: 4px; }
  .segment-map > i { transform: rotate(90deg); animation: none; }
}

/* Etap 6 — dashboard w hero i lejek (komponenty okien z księgi marki HYROS; dane przykładowe) */
.hx-dash { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #1f1e1d1c; box-shadow: 0 26px 50px -34px #1f1e1d80; text-align: left; }
.hx-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #FCFBF8; border-bottom: 1px solid #1f1e1d12; font-family: var(--font-mono); font-size: 11px; color: #8B8984; }
.hx-bar i { width: 8px; height: 8px; border-radius: 50%; background: #EDEBE3; }
.hx-bar span { flex: 1; text-align: center; }
.hx-live { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--success); }
.hx-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: hx-blink 1.6s ease-in-out 3; }
.hx-body { padding: 12px 14px 14px; display: grid; gap: 12px; }
.hx-nav { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-secondary); }
.hx-nav span { padding: 4px 9px; border-radius: 99px; }
.hx-nav .is-on { background: var(--product-lavender); color: var(--product-accent); }
.hx-nav em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 10px; color: #8B8984; }
.hx-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.hx-kpi { padding: 9px 10px; border-radius: 9px; background: #FCFBF8; border: 1px solid #1f1e1d10; display: grid; gap: 2px; }
.hx-kpi.is-hl { background: var(--product-lavender); border-color: #5150f633; }
.hx-kpi > span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: #8B8984; }
.hx-kpi strong { font-size: 20px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-kpi em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--product-accent); }
.hx-chart { position: relative; padding: 8px 10px 6px; border-radius: 9px; border: 1px solid #1f1e1d10; }
.hx-chart > span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: #8B8984; }
.hx-chart svg { display: block; width: 100%; height: 74px; margin-top: 4px; }
.hx-bars rect { fill: #A5A4FA; opacity: .55; transform-box: fill-box; transform-origin: bottom; }
.hx-line { fill: none; stroke: #1F1E1D; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hx-table th { padding: 6px 6px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #8B8984; text-align: right; background: #FCFBF8; border-bottom: 1px solid #1f1e1d10; }
.hx-table th:first-child, .hx-table td:first-child { text-align: left; }
.hx-table td { padding: 7px 6px; text-align: right; border-bottom: 1px solid #1f1e1d0d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-table tr:last-child td { border-bottom: 0; }
.hx-table td:first-child { display: flex; align-items: center; gap: 8px; }
.hx-table td:first-child img { width: 14px; height: 14px; }
.hx-table td:first-child b { display: block; font-weight: 600; font-size: 12px; }
.hx-table td:first-child small { display: block; font-size: 10.5px; color: #8B8984; }
.hx-roas { color: var(--product-accent); font-weight: 650; }
.workspace-crop.is-clean { aspect-ratio: auto; }
.workspace-crop.is-clean img { width: 100%; transform: none; }
/* Lejek */
.hx-funnel { padding: 16px 18px 14px; display: grid; gap: 10px; background: #fff; }
.hx-frow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px 92px; gap: 10px; align-items: center; font-size: 13px; }
.hx-frow > span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; color: #8B8984; }
.hx-frow > div { height: 22px; border-radius: 5px; background: #F6F5F0; overflow: hidden; }
.hx-frow i { display: block; height: 100%; width: var(--w); border-radius: 5px; background: #A5A4FA; transform-origin: left; }
.hx-frow:nth-child(4) i, .hx-frow:nth-child(5) i { background: var(--product-accent); }
.hx-frow b { text-align: right; font-variant-numeric: tabular-nums; }
.hx-frow em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--product-accent); }
.hx-fnote { margin-top: 4px; font-size: 12.5px; color: var(--text-secondary); }
.hx-fnote b { color: var(--text-primary); }
@keyframes hx-blink { 50% { opacity: .3; } }
@keyframes hx-grow-y { from { transform: scaleY(0); } }
@keyframes hx-grow-x { from { transform: scaleX(0); } }
@keyframes hx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hx-row-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes hx-row-hl { 0%, 20%, 100% { background: transparent; } 5%, 15% { background: #5150f60f; } }
@media (prefers-reduced-motion: no-preference) {
  .hx-bars rect { animation: hx-grow-y .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.3s + var(--i) * 22ms); }
  .hx-line { stroke-dasharray: 1; animation: hx-draw 1.4s .7s cubic-bezier(.65,0,.35,1) both; }
  .hx-table tbody tr { animation: hx-row-in .5s both, hx-row-hl 12s 2.4s infinite; animation-delay: calc(1s + var(--i) * 120ms), calc(2.4s + var(--i) * 3s); }
  .js-motion .hx-funnel i { transform: scaleX(0); transition: transform .9s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i) * 140ms); }
  .js-motion .hx-funnel.is-in i { transform: none; }
}
@media (max-width: 600px) {
  .hx-kpis { grid-template-columns: 1fr 1fr; }
  .hx-kpi.is-hl { grid-column: 1 / -1; }
  .hx-nav em, .hx-cost { display: none; }
  .hx-frow { grid-template-columns: 1fr 60px; gap: 4px 10px; }
  .hx-frow > span { grid-column: 1 / -1; }
  .hx-frow em { display: none; }
}
.report-canvas img[src*="hyros-report"] { width: 100%; transform: none; }
.contact-photo { margin: 26px 0 0; max-width: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.contact-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; }
.contact-photo + .person { margin-top: 18px; }

/* Pauza zapętlonych animacji (przycisk w podpisie i automatycznie poza ekranem) */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
.loop-toggle { margin-left: 6px; padding: 2px 10px; border: 1px solid var(--border); border-radius: 99px; background: var(--background-primary); color: var(--text-secondary); font: inherit; font-size: 12.5px; cursor: pointer; }
.loop-toggle:hover { border-color: var(--product-accent); color: var(--product-accent); }
.loop-toggle:focus-visible { outline: 2px solid var(--product-accent); outline-offset: 2px; }
.loop-toggle[aria-pressed="true"] { background: var(--product-lavender); color: var(--product-accent); }

/* Paczka 2 po audycie: formularz bezpłatnego audytu, pasek na telefonie, baner zgód */
.audit-form-wrap { margin-top: clamp(40px, 5vw, 64px); }
.audit-jump { margin-top: 28px; }
.audit-form { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--background-primary); box-shadow: 0 24px 60px -36px rgba(31, 30, 29, .35); scroll-margin-top: 90px; }
.af-head { max-width: 680px; margin-bottom: 22px; }
.af-head .kicker { display: block; margin-bottom: 10px; }
.af-head h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 8px; }
.af-head p { margin: 0; color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; }
.af-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.af-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.af-field em { font-style: normal; font-weight: 400; color: var(--text-muted); }
.af-field input, .af-field select, .af-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #1f1e1d33; border-radius: 10px; background: #fff; color: var(--text-primary); font: inherit; font-size: 16px; font-weight: 400; }
.af-field textarea { resize: vertical; min-height: 84px; }
.af-field input:focus, .af-field select:focus, .af-field textarea:focus { outline: 2px solid var(--product-accent); outline-offset: 1px; border-color: transparent; }
.af-wide { grid-column: 1 / -1; }
.af-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.af-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--product-accent); }
.af-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.af-status { margin: 12px 0 0; font-size: 14.5px; min-height: 1.4em; }
.af-status[data-state="error"] { color: var(--error); }
.af-status[data-state="success"] { color: var(--success); }
.segment-audit .segment-cta-grid { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); }
.segment-audit .audit-form { color: var(--text-primary); }
.segment-audit .audit-form .kicker { color: var(--product-accent); }
.segment-audit .audit-form h3 { color: var(--text-primary); }
.segment-audit .audit-form p, .segment-audit .af-consent { color: var(--text-secondary); }

.sticky-cta { display: none; }
@media (max-width: 900px) {
  .af-grid { grid-template-columns: 1fr; }
  .segment-audit .segment-cta-grid { grid-template-columns: 1fr; }
  .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; border-radius: 12px; background: var(--text-primary); color: #fff; font-weight: 650; font-size: 16px; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(31, 30, 29, .55); transform: translateY(140%); transition: transform .3s ease; }
  .sticky-cta.is-shown { transform: none; }
  .af-actions .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 980px; margin: 0 auto; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--background-primary); box-shadow: 0 20px 50px -20px rgba(31, 30, 29, .45); font-size: 14.5px; }
.consent-bar p { margin: 0; flex: 1 1 360px; color: var(--text-secondary); }
.consent-bar div { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-deny { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-button, 10px); background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  /* Krótsza strona na telefonie: zdjęcia dekoracyjne zostają tylko na większych ekranach */
  .contact-photo, .audit-photo { display: none; }
  .audit-card { margin: 0; }
}
body:has(.consent-bar) .sticky-cta { display: none; }
