/* =====================================================
   ZWOLNIE ETATY - design system
   Premium dark, spojnosc z TN brand
   ===================================================== */

:root {
    --bg: #000;
    --bg-elev: #0a0a0a;
    --bg-card: #111111;
    --bg-form: #050505;
    --bg-hover: #1a1a1a;

    --border: #1f1f1f;
    --border-strong: #2d2d2d;
    --border-hover: #404040;

    --text: #ededed;
    --text-strong: #ffffff;
    --text-muted: #8a8a8a;
    --text-faint: #5a5a5a;

    --accent-green: #00d97e;
    --accent-green-soft: rgba(0, 217, 126, 0.12);
    --accent-red: #ff4b3e;
    --accent-red-soft: rgba(255, 75, 62, 0.12);
    --accent-yellow: #fcd34d;
    --accent-yellow-soft: rgba(252, 211, 77, 0.14);

    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-snap-type: y mandatory;
}
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* one-page scroll snap targets */
.story__scene,
.section--snap {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.footer-mini { scroll-snap-align: end; }

/* mobile: utrzymujemy y mandatory dla jeden-scroll-jeden-ekran (jak desktop) */
@media (prefers-reduced-motion: reduce) {
    html { scroll-snap-type: none; scroll-behavior: auto; }
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--text-strong); color: var(--bg); }

/* ===================== CONTAINER ===================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
.container--narrow { max-width: 880px; }

@media (max-width: 720px) {
    .container { padding: 0 20px; }
}

/* ===================== UTILS ===================== */
/* Visually hidden, dostępne dla czytników ekranu (a11y label dla textarea) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-accent-green { color: var(--accent-green); }
.text-accent-red { color: var(--accent-red); }
.text-accent-yellow { color: var(--accent-yellow); }

.label-red, .label-green {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-family: var(--sans);
}
.label-red { background: var(--accent-red-soft); color: var(--accent-red); }
.label-green { background: var(--accent-green-soft); color: var(--accent-green); }

.link-accent { color: var(--accent-green); border-bottom: 1px solid var(--accent-green); transition: opacity .15s ease; }
.link-accent:hover { opacity: 0.7; }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: all .2s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: var(--text-strong);
    color: var(--bg);
}
.btn--primary:hover {
    background: var(--accent-green);
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
    border-color: var(--text);
    background: var(--bg-elev);
}
.btn--big {
    padding: 18px 32px;
    font-size: 17px;
}
.btn__arrow {
    transition: transform .2s var(--ease);
    display: inline-block;
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== NAV ===================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top);
}
.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__brand {
    display: inline-flex;
    align-items: center;
    height: 32px;
    transition: opacity 0.25s var(--ease);
}
.nav__brand:hover { opacity: 0.78; }
.nav__logo {
    height: 100%;
    width: auto;
    display: block;
    user-select: none;
}
.nav__logo--icon { display: none; }
@media (max-width: 520px) {
    .nav__logo--full { display: block; }
    .nav__logo--icon { display: none; }
    .nav__brand { height: 24px; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav__links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s ease;
}
.nav__links a:hover { color: var(--text-strong); }
.nav__cta {
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-strong) !important;
}
.nav__cta:hover { border-color: var(--text-strong); background: var(--bg-elev); }

@media (max-width: 920px) {
    .nav__links { gap: 16px; }
    .nav__links a:not(.nav__cta) { display: none; }
}
/* ===================== STORY (storytelling hero) ===================== */
.story {
    position: relative;
    background: var(--bg);
}

/* === Atmospheric layers === */
.story__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Layer 1: Film grain — cinematic premium dark */
.story__grain {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
    mix-blend-mode: overlay;
    animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-5%, 3%); }
    50%  { transform: translate(3%, -4%); }
    75%  { transform: translate(-2%, 5%); }
    100% { transform: translate(0, 0); }
}

/* Layer 2: Floating ghost words — anti-corporate atmosphere */
.story__bg-words {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.story__bg-words span {
    position: absolute;
    font-family: var(--serif);
    font-style: italic;
    color: rgba(255, 255, 255, 0.04);
    font-size: clamp(56px, 8vw, 140px);
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
    animation: floatWord 45s linear infinite;
    will-change: transform;
}
.story__bg-words span:nth-child(1) { top: 6%;  animation-delay: 0s;   }
.story__bg-words span:nth-child(2) { top: 22%; animation-delay: -8s;  animation-duration: 55s; }
.story__bg-words span:nth-child(3) { top: 40%; animation-delay: -18s; }
.story__bg-words span:nth-child(4) { top: 58%; animation-delay: -28s; animation-duration: 50s; }
.story__bg-words span:nth-child(5) { top: 74%; animation-delay: -12s; animation-duration: 60s; }
.story__bg-words span:nth-child(6) { top: 88%; animation-delay: -35s; }
@keyframes floatWord {
    0%   { transform: translateX(-30vw); }
    100% { transform: translateX(120vw); }
}

/* Layer 3: Mouse spotlight — subtle red glow follows cursor */
.story__spotlight {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        520px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 75, 62, 0.10),
        transparent 55%
    );
    opacity: 0;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}
.story__spotlight.is-active {
    opacity: 1;
}

@media (max-width: 920px) {
    .story__bg-words { display: none; }
    .story__spotlight { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .story__grain,
    .story__bg-words span { animation: none; }
    .story__spotlight { display: none; }
}
.story__scene {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 56px;
}
.story__scene--hero {
    padding-top: 120px;
}
/* Subtle aurora blob za hero — Linear/Stripe-style depth */
.story__scene--hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(500px, 75vw, 1000px);
    aspect-ratio: 1;
    background: radial-gradient(
        circle at center,
        rgba(255, 75, 62, 0.18) 0%,
        rgba(255, 75, 62, 0.05) 35%,
        transparent 65%
    );
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    animation: auroraDrift 22s ease-in-out infinite;
    will-change: transform;
}
@keyframes auroraDrift {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33%      { transform: translate(-46%, -53%) scale(1.08); }
    66%      { transform: translate(-54%, -48%) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
    .story__scene--hero::before { animation: none; }
}
/* CTA section — kontynuacja Scene 1-3 (left-aligned, brak osobnego "box CTA") */
.story__scene--cta {
    background: transparent;
    position: relative;
}
/* Aurora subtle, przesunięta do dołu z lewej — "spływa" w button, nie odcina sekcji */
.story__scene--cta::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 25%;
    width: clamp(400px, 55vw, 800px);
    aspect-ratio: 1;
    background: radial-gradient(
        circle at center,
        rgba(0, 217, 126, 0.10) 0%,
        rgba(0, 217, 126, 0.025) 40%,
        transparent 70%
    );
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, 50%);
    animation: auroraDrift 22s ease-in-out infinite;
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .story__scene--cta::before { animation: none; }
}
.story__scene--cta .story__center {
    position: relative;
    z-index: 2;
}

/* CTA stage — LEFT-ALIGN (jak Scene 1/3/4), jeden anchor pionowy z lewej */
.cta-stage-wrap {
    text-align: left;
    max-width: 1400px;
}

/* Intro — serif italic, większy i jaśniejszy żeby gra z gigant cycling */
.cta-intro {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(26px, 3.2vw, 48px);
    color: var(--text);
    margin: 0 0 clamp(8px, 1.2vh, 16px);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

/* Stage cycling — kontener dla gigantycznego cycling word, left-aligned */
.cta-stage {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: clamp(80px, 12vw, 170px);
    width: 100%;
}

/* Gigantyczne cycling word — w jednym wierszu (mieści się najdłuższe "nie zatrudniać.") */
.cta-flip--giant {
    display: inline-grid;
    grid-template-areas: "w";
    line-height: 1;
    vertical-align: top;
    font-family: var(--sans);
    font-size: clamp(64px, 11.5vw, 160px);
    font-weight: 900;
    letter-spacing: -0.058em;
    color: var(--text-strong);
    max-width: 100%;
}
.cta-flip--giant .cta-flip__word {
    grid-area: w;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.94);
    filter: blur(6px);
    transition: opacity 0.55s ease,
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.45s ease;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}
.cta-flip--giant .cta-flip__word.is-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
/* Glow kolorystyczny per slowo: czerwony i zielony mają większy text-shadow */
.cta-flip--giant .cta-flip__word.is-active[style*="accent-red"] {
    text-shadow: 0 0 100px rgba(255, 75, 62, 0.35);
}
.cta-flip--giant .cta-flip__word.is-active[style*="accent-green"] {
    text-shadow: 0 0 100px rgba(0, 217, 126, 0.4);
}

/* Button — pod stage, left-aligned (kontynuuje oś lewą wszystkich elementów) */
.cta-action {
    margin-top: clamp(40px, 6vh, 80px);
    display: flex;
    justify-content: flex-start;
}

/* Button CTA — gigant text-link, NIE pill. Zielony underline + animowany arrow */
.btn--cta-final {
    display: inline-flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    padding: clamp(18px, 2.2vw, 26px) clamp(30px, 3.8vw, 52px);
    background: rgba(0, 217, 126, 0.10);
    color: var(--text-strong);
    font-family: var(--sans);
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(0, 217, 126, 0.35);
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    transition: gap 0.4s var(--ease),
                background 0.35s var(--ease),
                border-color 0.35s var(--ease),
                color 0.3s var(--ease),
                box-shadow 0.4s var(--ease),
                transform 0.3s var(--ease);
}
.btn--cta-final:hover {
    gap: clamp(22px, 2.8vw, 36px);
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #04150c;
    box-shadow: 0 16px 50px rgba(0, 217, 126, 0.45);
    transform: translateY(-2px);
}
.btn--cta-final .btn__arrow {
    color: var(--accent-green);
    font-size: 0.86em;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.4s var(--ease), color 0.3s var(--ease);
    flex-shrink: 0;
}
.btn--cta-final:hover .btn__arrow {
    color: #04150c;
    transform: translateX(4px);
}
/* ============================================================
   CTA "Sprawdźmy ile możesz..." — RESPONSIVE TYPE LADDER
   Cel: rotujące słowo jak największe, ale najdłuższe ("nie zatrudniać.")
   ZAWSZE mieści się w jednej linii.
   Bazowa kalkulacja: Inter 900, "nie zatrudniać." ≈ 6.17em po letter-spacing -0.06em.
   Założenie: word_width ≈ font_size × 6.2; available = viewport − scene padding.
   ============================================================ */
@media (max-width: 720px) {
    .story__scene--cta { padding-left: 22px; padding-right: 22px; }
    .cta-stage-wrap { text-align: left; }
    .cta-stage {
        justify-content: flex-start;
        align-items: flex-start;
        min-height: clamp(60px, 14.5vw, 110px);
        width: 100%;
    }
    .cta-action { justify-content: flex-start; margin-top: 36px; }
    .cta-intro {
        font-size: clamp(22px, 5.5vw, 32px);
        margin-bottom: 10px;
    }
    /* 13vw × 6.2 = 80.6vw → mieści się z buforem przy padding 44px (≤8vw) */
    .cta-flip--giant {
        font-size: clamp(58px, 13vw, 94px);
        letter-spacing: -0.06em;
        line-height: 0.95;
        width: 100%;
    }
    .cta-flip--giant .cta-flip__word {
        white-space: normal;
        text-align: left;
        overflow-wrap: break-word;
        hyphens: none;
    }
    .btn--cta-final {
        font-size: clamp(20px, 5.8vw, 30px);
        padding: 16px 28px;
        gap: 14px;
        width: auto;
        max-width: none;
    }
}

/* ≤480px (typowy phone) — zachowanie głównego ratio, mniej paddingu */
@media (max-width: 480px) {
    .story__scene--cta { padding-left: 18px; padding-right: 18px; }
    .cta-flip--giant {
        font-size: clamp(50px, 13vw, 62px);
        letter-spacing: -0.062em;
    }
    .cta-stage { min-height: clamp(54px, 14vw, 70px); }
    .cta-intro { font-size: clamp(20px, 5.4vw, 26px); }
    .btn--cta-final { font-size: clamp(19px, 5.4vw, 26px); padding: 14px 24px; }
}

/* ≤380px (iPhone SE, mniejsze Androidy) */
@media (max-width: 380px) {
    .story__scene--cta { padding-left: 16px; padding-right: 16px; }
    .cta-flip--giant {
        font-size: clamp(42px, 12.6vw, 50px);
        letter-spacing: -0.065em;
    }
    .cta-stage { min-height: clamp(46px, 13.5vw, 56px); }
    .cta-intro {
        font-size: clamp(18px, 5vw, 22px);
        margin-bottom: 8px;
    }
    .btn--cta-final { font-size: clamp(18px, 5vw, 24px); padding: 13px 22px; gap: 12px; }
}

/* ≤340px (very narrow — iPhone 5/SE 1st gen, fold closed) */
@media (max-width: 340px) {
    .story__scene--cta { padding-left: 14px; padding-right: 14px; }
    .cta-flip--giant {
        font-size: clamp(36px, 12.2vw, 42px);
        letter-spacing: -0.07em;
    }
    .cta-stage { min-height: clamp(40px, 13vw, 48px); }
    .btn--cta-final { font-size: clamp(16px, 4.6vw, 20px); padding: 12px 20px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .cta-flip--giant .cta-flip__word {
        filter: none;
        transform: none;
        transition: opacity 0.3s ease;
    }
}
.story__center {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    text-align: left;
}
.story__center--narrow { max-width: 1100px; }

/* ===================== AKT 3 — comparison viz (proportional bars) ===================== */
.story__scene--compare {
    /* left-aligned, jak inne akty hero */
}
.compare-card {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

/* Lead — co-headline (action statement) */
.compare-card__lead {
    font-family: var(--sans);
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-strong);
    letter-spacing: -0.025em;
    margin: 0 0 64px;
}
/* Desktop: każda linia (przed <br>) trzyma się w jednym wierszu */
.compare-card__lead > span {
    white-space: nowrap;
}
/* Łącznik "w" / "z" — serif italic, mniejszy, echo "Twoich" z hero */
.lead-prep {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.7em;
    letter-spacing: -0.01em;
    padding: 0 0.05em;
    vertical-align: 0.04em;
}
/* Kolorystyczny akcent na słowa-bohaterów: proces (czerwony) → technologia (zielona) */
.lead-accent {
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.028em;
}
.lead-accent--red {
    color: var(--accent-red);
    text-shadow: 0 0 60px rgba(255, 75, 62, 0.3);
}
.lead-accent--green {
    color: var(--accent-green);
    text-shadow: 0 0 60px rgba(0, 217, 126, 0.3);
}

/* Comparison visualization — proportional bars */
.compare-viz {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 56px;
}
.compare-viz__row {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 24px;
    align-items: center;
}
.compare-viz__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.compare-viz__label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.compare-viz__caption {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--text);
    line-height: 1.3;
}
.compare-viz__track {
    position: relative;
    height: clamp(56px, 7vw, 88px);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.compare-viz__bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 8px 0 0 8px;
    transition: width 1.6s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: width;
}
.compare-viz__bar--red {
    background: linear-gradient(90deg,
        rgba(255, 75, 62, 0.85) 0%,
        rgba(255, 75, 62, 1) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 75, 62, 0.3),
                0 0 40px rgba(255, 75, 62, 0.18);
}
.compare-viz__bar--green {
    background: linear-gradient(90deg,
        rgba(0, 217, 126, 0.85) 0%,
        rgba(0, 217, 126, 1) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 217, 126, 0.3),
                0 0 40px rgba(0, 217, 126, 0.25);
}

/* Number labels — appear after bars fill */
.compare-viz__num {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-size: clamp(28px, 3.8vw, 48px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-strong);
    opacity: 0;
    transition: opacity 0.5s ease 1.2s;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

/* Animations — bars fill when .compare-viz becomes visible */
.compare-viz[data-reveal].is-visible .compare-viz__bar--red {
    width: 100%;
    transition-delay: 0s;
}
.compare-viz[data-reveal].is-visible .compare-viz__bar--green {
    width: 33%;
    transition-delay: 0.6s;
}
.compare-viz[data-reveal].is-visible .compare-viz__num {
    opacity: 1;
}
.compare-viz__row:nth-child(2) .compare-viz__num {
    transition-delay: 1.8s;
}

/* Body — sub-detail */
/* Numer "do 33%" w zielonej barwie */
.compare-viz__num--green {
    color: var(--accent-green);
    text-shadow: 0 0 60px rgba(0, 217, 126, 0.4);
}
/* Asterisk wewnątrz numeru kolorów zielonego — niech śledzi kolor parenta */
.compare-viz__num--green .usp__asterisk {
    color: var(--accent-green);
}

/* Punch line między paskami a footnote — "Reszta zostaje u Ciebie." */
.compare-card__punch {
    font-family: var(--sans);
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-strong);
    margin: clamp(40px, 6vh, 72px) 0 clamp(24px, 4vh, 48px);
    text-wrap: balance;
}
.compare-card__punch-accent {
    color: var(--accent-green);
    text-shadow: 0 0 50px rgba(0, 217, 126, 0.3);
}

.compare-card__body {
    font-family: var(--sans);
    font-weight: 500;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.5;
    color: var(--text-muted);
    letter-spacing: -0.005em;
    max-width: 640px;
    margin: 0;
}
.compare-card__body-strong {
    color: var(--text-strong);
    font-weight: 700;
}

/* Animacja asterisk pop+twinkle — przepięta z .usp__punch na .compare-viz */
.compare-viz[data-reveal].is-visible .usp__asterisk {
    animation:
        asteriskPop 0.6s cubic-bezier(0.34, 1.7, 0.5, 1) 1.4s forwards,
        asteriskTwinkle 2.8s ease-in-out 2.2s infinite;
}
.compare-card__body[data-reveal].is-visible .usp__asterisk--note {
    animation:
        asteriskPop 0.6s cubic-bezier(0.34, 1.7, 0.5, 1) 0.2s forwards,
        asteriskTwinkle 2.8s ease-in-out 1.4s infinite;
}

@media (max-width: 720px) {
    .compare-card { padding: 0 20px; }
    .compare-card__lead {
        font-size: clamp(26px, 7.2vw, 40px);
        line-height: 1.12;
        margin-bottom: 28px;
    }
    /* Mobile: pozwól na naturalny wrap — drugiej linii brakuje miejsca na nowrap */
    .compare-card__lead > span { white-space: normal; }
    .compare-viz { gap: 14px; margin-bottom: 24px; }
    .compare-viz__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .compare-viz__track {
        height: clamp(44px, 11.5vw, 60px);
    }
    .compare-viz__num { right: 14px; font-size: clamp(24px, 6.4vw, 38px); }
    .compare-viz__caption { font-size: clamp(13px, 3.6vw, 16px); }
    .compare-card__punch {
        font-size: clamp(22px, 6.4vw, 34px);
        margin: 24px 0 14px;
    }
    .compare-card__body { font-size: clamp(14px, 3.8vw, 18px); line-height: 1.4; }
}
@media (max-width: 380px) {
    .compare-card { padding: 0 16px; }
    .compare-card__lead {
        font-size: clamp(22px, 6.8vw, 28px);
        margin-bottom: 22px;
    }
    .compare-viz { gap: 12px; margin-bottom: 18px; }
    .compare-viz__track { height: clamp(40px, 11vw, 50px); }
    .compare-viz__num { font-size: clamp(20px, 5.8vw, 26px); right: 10px; }
    .compare-viz__label { font-size: 10px; letter-spacing: 0.14em; }
    .compare-viz__caption { font-size: clamp(12px, 3.4vw, 14px); }
    .compare-card__punch {
        font-size: clamp(20px, 6vw, 26px);
        margin: 18px 0 10px;
    }
    .compare-card__body { font-size: clamp(13px, 3.6vw, 15px); }
}
@media (prefers-reduced-motion: reduce) {
    .compare-viz__bar { transition: none; }
    .compare-viz__num { transition: none; opacity: 1; }
    .compare-viz[data-reveal].is-visible .usp__asterisk,
    .compare-card__body[data-reveal].is-visible .usp__asterisk--note {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Scene 1 ::: hero */
.story__me {
    --me-pad-r-init: 6px;
    --me-pad-r-final: 16px;
    --me-collapsed: 64px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    padding-right: var(--me-pad-r-init);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%),
        rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin-bottom: 28px;
    overflow: hidden;
    max-width: var(--me-collapsed);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 10px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 217, 126, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.story__me.is-visible {
    animation: meExpand 0.75s cubic-bezier(0.34, 1.42, 0.64, 1) 0.45s forwards;
}
@keyframes meExpand {
    to {
        max-width: 420px;
        padding-right: var(--me-pad-r-final);
    }
}
.story__me > div {
    opacity: 0;
    transform: translateX(-12px);
    white-space: nowrap;
}
.story__me.is-visible > div {
    animation: meTextIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}
@keyframes meTextIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .story__me.is-visible { animation: none; max-width: 420px; padding-right: var(--me-pad-r-final); }
    .story__me.is-visible > div { animation: none; opacity: 1; transform: none; }
}
.story__me img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-soft);
    flex-shrink: 0;
}
.story__me-name {
    color: var(--text-strong);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.005em;
}
.story__me-role {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.25;
    margin-top: 2px;
}
.story__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.story__tag-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
}
.story__h1 {
    font-family: var(--sans);
    font-size: clamp(48px, 11vw, 168px);
    line-height: 0.88;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 28px;
}

.story__h1 .reveal-mask__inner {
    color: var(--text-strong);
}
.story__h1 .reveal-mask__inner.story__h1-accent {
    color: var(--accent-red);
}
/* "Twoich" — connector: serif italic, mniejsze, muted */
.story__h1-line--connector .reveal-mask__inner {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 0.6em;
    line-height: 1.0;
    letter-spacing: -0.015em;
    color: var(--text-muted);
    padding-left: 0.2em;
    padding-bottom: 0.18em;
}
.story__h1-accent {
    background: none;
    -webkit-text-fill-color: var(--accent-red);
    color: var(--accent-red);
}
.story__h1-greeting {
    font-family: var(--sans);
    font-style: normal;
    font-weight: 800;
    font-size: 1em;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--accent-yellow);
    background: none;
    -webkit-text-fill-color: var(--accent-yellow);
    display: inline-grid;
    grid-template-areas: "w";
    vertical-align: top;
}
.story__h1-greeting .cta-flip__word {
    grid-area: w;
    color: var(--accent-yellow);
    background: none;
    -webkit-text-fill-color: var(--accent-yellow);
    line-height: 0.92;
    letter-spacing: -0.04em;
    white-space: nowrap;
    font-style: normal;
}
.story__sub {
    font-family: var(--serif);
    font-size: clamp(26px, 4.6vw, 56px);
    font-style: italic;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-top: 8px;
}
.story__sub-accent {
    color: var(--accent-green);
    font-weight: 500;
}
.story__address {
    margin-top: 32px;
    font-family: var(--sans);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.005em;
    line-height: 1.5;
    max-width: 540px;
}
.story__hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    z-index: 3;
}
.story__hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-faint), transparent);
    animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* Scenes 2-4 ::: narrative */
.story__eyebrow {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 26px);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 32px;
    letter-spacing: -0.005em;
}
.story__section-intro {
    font-family: var(--sans);
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.story__line {
    font-family: var(--sans);
    font-size: clamp(32px, 5.2vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text-strong);
    text-wrap: balance;
}
.story__line--list { margin-bottom: 16px; }
.story__line-accent { color: var(--accent-red); }
.story__line-accent--green { color: var(--accent-green); }
.story__line-accent--yellow { color: var(--accent-yellow); }
.story__time-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    background: var(--accent-yellow-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
    font-family: var(--sans);
    border: 1px solid var(--accent-yellow);
}
.story__line span {
    display: inline-block;
}
.story__line em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

/* Akt 3 — USP: 3-linijkowy rytm jak akt 2 + kontrast czcionek na punch line */
.story__scene--usp .usp {
    width: 100%;
    max-width: 1100px;
    text-align: left;
}
.story__line--usp {
    margin: 0;
    line-height: 1.05;
}
.story__line--usp > span {
    display: inline-block;
}
.usp__punch {
    line-height: 1;
}
.usp__prefix {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -0.005em;
    font-size: 0.6em;
    margin-right: 0.15em;
    vertical-align: middle;
}
.usp__accent {
    color: var(--accent-green);
    font-weight: 900;
    font-size: 1.32em;
    letter-spacing: -0.045em;
    white-space: nowrap;
    display: inline-block;
    padding: 0 0.03em;
    text-shadow: 0 8px 60px rgba(0, 217, 126, 0.25);
}

@media (max-width: 720px) {
    .story__scene--usp .usp {
        /* Natural height — parent .story__center centruje wertycalnie */
        display: block;
    }
    .story__line--usp {
        font-size: clamp(32px, 9.5vw, 52px);
        line-height: 1.15;
        letter-spacing: -0.04em;
    }
    .usp__addon {
        margin-top: clamp(24px, 5vh, 48px) !important;
    }
    .usp__punch {
        line-height: 1.1;
    }
    .usp__prefix {
        display: block;
        font-size: 0.55em;
        margin: 8px 0 4px;
        vertical-align: baseline;
    }
    .usp__accent {
        font-size: 1.2em;
        letter-spacing: -0.04em;
    }
    .usp__addon {
        font-size: clamp(18px, 4.8vw, 24px);
        max-width: 100%;
        margin-top: 0;
        padding-top: 0;
        line-height: 1.4;
    }
}
.usp__addon {
    font-family: var(--sans);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: #c8c8c8;
    margin: clamp(28px, 4vw, 48px) 0 0;
    max-width: 780px;
    text-wrap: balance;
}
.usp__addon-strong {
    color: var(--text-strong);
    font-weight: 700;
}
.usp__asterisk {
    color: var(--accent-green);
    font-weight: 900;
    font-size: 0.5em;
    vertical-align: 0.65em;
    line-height: 0;
    letter-spacing: 0;
    display: inline-block;
    margin-left: 0.02em;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transform-origin: center;
}
.usp__asterisk--note {
    font-size: 0.85em;
    vertical-align: 0.35em;
    margin-left: 0;
    margin-right: 0.45em;
    line-height: 0;
}
.usp__punch.is-visible .usp__asterisk {
    animation:
        asteriskPop 0.6s cubic-bezier(0.34, 1.7, 0.5, 1) 0.55s forwards,
        asteriskTwinkle 2.8s ease-in-out 1.4s infinite;
}
.usp__addon.is-visible .usp__asterisk--note {
    animation:
        asteriskPop 0.6s cubic-bezier(0.34, 1.7, 0.5, 1) 0.2s forwards,
        asteriskTwinkle 2.8s ease-in-out 1.4s infinite;
}
@keyframes asteriskPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.4) rotate(20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}
@keyframes asteriskTwinkle {
    0%, 100% {
        text-shadow: 0 0 0 rgba(0, 217, 126, 0);
        transform: scale(1) rotate(0deg);
        color: var(--accent-green);
    }
    50% {
        text-shadow:
            0 0 16px rgba(0, 217, 126, 0.7),
            0 0 4px rgba(0, 217, 126, 1);
        transform: scale(1.18) rotate(15deg);
        color: #5cffb4;
    }
}
@media (prefers-reduced-motion: reduce) {
    .usp__punch.is-visible .usp__asterisk,
    .usp__addon.is-visible .usp__asterisk--note {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.story__small {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--text-muted);
    margin-top: 32px;
    font-weight: 500;
    max-width: 720px;
}
.story__or {
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 32px);
    font-style: italic;
    color: var(--text-faint);
    margin: 16px 0;
    text-align: left;
}

/* Akt 4 — dwukolumnowy split z italic "albo" w środku */
.story__choice {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: stretch;
    margin-top: 24px;
    position: relative;
}
/* Kolumna wyboru z gigantyczną numeracją 01/02 */
.choice-col {
    position: relative;
    padding-top: 12px;
}
.choice-col__num {
    display: block;
    font-family: var(--sans);
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-faint);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.choice-col:first-child .choice-col__num { color: rgba(255, 75, 62, 0.55); }
.choice-col:last-child .choice-col__num { color: rgba(0, 217, 126, 0.55); }
/* Punch poniżej wyboru — "Obojętne który — wygrywasz." */
.choice-punch {
    font-family: var(--sans);
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin: clamp(48px, 7vh, 80px) 0 0;
    text-align: center;
    letter-spacing: -0.015em;
}
.choice-punch__accent {
    color: var(--accent-green);
    font-weight: 800;
    text-shadow: 0 0 50px rgba(0, 217, 126, 0.3);
}
.story__choice::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8%;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--border-strong) 30%, var(--border-strong) 70%, transparent 100%);
    transform: translateX(-50%);
    pointer-events: none;
}
.story__choice-or {
    font-family: var(--serif);
    font-size: clamp(40px, 5vw, 72px);
    font-style: italic;
    color: var(--text-faint);
    text-align: center;
    line-height: 1;
    background: var(--bg);
    padding: 0 18px;
    position: relative;
    z-index: 1;
}
.story__choice .story__line {
    margin: 0;
}
@media (max-width: 920px) {
    .story__choice {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .story__choice::before { display: none; }
    .story__choice-or {
        padding: 0;
        font-size: clamp(28px, 5vw, 40px);
    }
    .choice-col__num { margin-bottom: 8px; }
    .choice-punch {
        font-size: clamp(18px, 5vw, 26px);
        margin-top: 36px;
    }
}

/* Scene 5 ::: CTA */
.story__cta-title {
    font-family: var(--sans);
    font-size: clamp(48px, 9vw, 128px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 40px;
}

/* CTA — jeden H2 (setup + cycling word jako jedna kompozycja) */
.cta-h {
    font-family: var(--sans);
    font-size: clamp(40px, 7vw, 96px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.035em;
    color: var(--text-strong);
    margin: 0 0 56px;
}
.cta-h__lead {
    display: block;
    margin-bottom: 6px;
}
.cta-flip {
    display: inline-grid;
    grid-template-areas: "w";
    line-height: 1.0;
    vertical-align: top;
}
.cta-flip__word {
    grid-area: w;
    color: var(--accent-yellow);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cta-flip__word.is-active {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .cta-flip__word { transition: opacity .2s linear; transform: none; }
}
.story__cta-title em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent-yellow);
    font-weight: 400;
}

/* Word-flip animation (CTA hero) */
.flip {
    display: inline-grid;
    grid-template-areas: "w";
    vertical-align: baseline;
}
.flip__word {
    grid-area: w;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
    white-space: nowrap;
}
.flip__word--active {
    opacity: 1;
    transform: translateY(0);
}
.story__cta-body {
    font-size: clamp(17px, 1.8vw, 21px);
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.5;
}
.story__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ======================================================
   SECTION "JAK TO DZIAŁA" — 3-column step grid
   ====================================================== */
.story__scene--steps {
    align-items: center;
    padding: clamp(80px, 12vh, 140px) 32px;
}
.steps-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.steps__header {
    text-align: center;
    margin-bottom: clamp(56px, 8vh, 96px);
}
.steps__header .story__eyebrow {
    margin-bottom: 16px;
    text-align: center;
}
.steps__title {
    font-family: var(--sans);
    font-size: clamp(40px, 7vw, 96px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--text-strong);
    margin: 0;
}
.steps__title-accent {
    color: var(--accent-green);
    text-shadow: 0 0 60px rgba(0, 217, 126, 0.3);
}
.steps__subtitle {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 26px);
    color: var(--text-muted);
    letter-spacing: -0.005em;
    line-height: 1.4;
    margin: clamp(20px, 3vh, 36px) 0 0;
    text-align: center;
}
.steps__subtitle em {
    font-style: italic;
    font-weight: 400;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
}
.step {
    position: relative;
    text-align: left;
    padding: 0;
}
/* POV label nad numerem: "ty" / "ja" / "razem" — serif italic, mała, akcent koloru */
.step__pov {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -0.005em;
    margin-bottom: 6px;
    line-height: 1;
    transition: color 0.4s ease;
}
.step--ty .step__pov { color: rgba(255, 75, 62, 0.7); }
.step--ja .step__pov { color: rgba(252, 211, 77, 0.75); }
.step--razem .step__pov { color: rgba(0, 217, 126, 0.75); }
/* Wrapper numer + strzałka — pozwala umieścić strzałkę w pionie z numerem */
.step__num-wrap {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
    margin-bottom: clamp(20px, 3vh, 32px);
}
.step__num {
    font-family: var(--sans);
    font-size: clamp(56px, 7vw, 104px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    transition: color 0.4s ease, transform 0.4s ease;
}
.step--ty .step__num { color: var(--text-strong); }
.step--ja .step__num { color: var(--accent-yellow); text-shadow: 0 0 40px rgba(252, 211, 77, 0.2); }
.step--razem .step__num {
    color: var(--accent-green);
    text-shadow: 0 0 40px rgba(0, 217, 126, 0.25);
    position: relative;
}
/* Pulse halo wokół "03" — partnership moment breathing (21st.dev-inspired) */
.step--razem .step__num::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 217, 126, 0.28) 0%, transparent 60%);
    filter: blur(18px);
    pointer-events: none;
    z-index: -1;
    animation: razemPulse 3.4s ease-in-out infinite;
}
@keyframes razemPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.18); }
}
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
    .step--razem .step__num::before {
        animation: none;
        opacity: 0.7;
    }
}

/* Magnetic wrapper na CTA — przycisk podąża za myszą */
.cta-magnetic {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}
@media (max-width: 720px) {
    .cta-magnetic { will-change: auto; }
}
.step:hover .step__num {
    transform: translateY(-2px);
}
/* Strzałka → między krokami (visible po prawej numeru, hidden w ostatnim) */
.step__arrow {
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 300;
    line-height: 1;
    color: var(--text-faint);
    opacity: 0.5;
    transform: translateX(0);
    transition: transform 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}
.step:hover .step__arrow {
    transform: translateX(6px);
    opacity: 1;
    color: var(--text-muted);
}
.step__chip {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    background: var(--accent-yellow-soft);
    border: 1px solid var(--accent-yellow);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.step:nth-child(3) .step__chip {
    color: var(--accent-green);
    background: rgba(0, 217, 126, 0.1);
    border-color: var(--accent-green);
}
.step__line {
    font-family: var(--sans);
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin: 0 0 16px;
    text-wrap: balance;
}
.step__accent {
    font-weight: 800;
}
.step__accent--yellow { color: var(--accent-yellow); }
.step__accent--green {
    color: var(--accent-green);
    text-shadow: 0 0 40px rgba(0, 217, 126, 0.25);
}
.step__desc {
    font-family: var(--sans);
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    max-width: 360px;
}

/* Tablet — 3 kolumny wciąż OK, ale ciaśniej */
@media (max-width: 1024px) {
    .steps-grid {
        gap: clamp(28px, 3.5vw, 44px);
    }
    .step__arrow { display: none; }
}

/* ========================================================================
   AKT "PROCES" (#jak) — MOBILE ≤720px — PIONOWY TIMELINE (rethink)

   DLACZEGO: poprzednio akt dzielił się na 4 sceny-snap 100dvh (header + 3 kroki,
   każdy scroll-snap-stop:always) -> iOS Safari gubił środkowe kroki przy
   momentum-swipe (ten sam bug, z którym walczył /zbuduje). TERAZ: scena =
   DOKŁADNIE JEDEN snap-target 100dvh (jak pozostałe 5 aktów); 3 kroki widoczne
   NARAZ jako pionowy timeline (ciągła szyna ty->ja->razem + węzły 01/02/03).
   Zero sub-scen => zero przeskoku; zero osi poziomej; zero zależności od JS-reveal.

   Layout CZYSTYM CSS-grid (grid-template-areas) na ISTNIEJĄCYM DOM — bez zmian
   HTML => desktop nietknięty z definicji (wszystko ≤720px, scoped).
   Selektory .story__scene--steps (0,2,0) wygrywają z legacy .step (0,1,0)
   bez !important. */
@media (max-width: 720px) {

  /* --- 1. SCENA = JEDEN snap-target 100dvh (kasuje split na 4 sub-sceny).
     Naprawia też dock: actObserver (threshold 0.5) znów stabilnie trafia w scenę. */
  .story__scene--steps {
    min-height: 100dvh;
    height: 100dvh;
    align-items: stretch;
    justify-content: flex-start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    padding: calc(58px + env(safe-area-inset-top)) 22px calc(122px + env(safe-area-inset-bottom));
  }
  .story__scene--steps .steps-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  /* --- 2. HEADER wtopiony (był osobną sceną 100dvh — już NIE) --- */
  .story__scene--steps .steps__header {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    margin: 0 0 clamp(14px, 2.4vh, 22px);
    display: block;
    text-align: left;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
  .story__scene--steps .steps__header .story__eyebrow {
    margin-bottom: 6px;
    text-align: left;
    font-size: 13px;
  }
  .story__scene--steps .steps__title {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0;
  }
  /* podpis chowamy — narrację niesie szyna + chipy-czas (copy zostaje w HTML) */
  .story__scene--steps .steps__subtitle { display: none; }

  /* --- 3. TIMELINE: kroki dzielą resztę pionu sceny równo --- */
  .story__scene--steps .steps-grid {
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;            /* kotwica ciągłej szyny */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  /* 3a. JEDNA ciągła szyna na rodzicu (gradient ty->ja->razem łączy 3 węzły) */
  .story__scene--steps .steps-grid::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg,
      rgba(255,75,62,0.5) 0%,
      rgba(252,211,77,0.45) 50%,
      rgba(0,217,126,0.5) 100%);
    z-index: 0;
    pointer-events: none;
  }

  /* --- 4. WIERSZ KROKU = [węzeł 42px | treść]; neutralizacja legacy .step --- */
  .story__scene--steps .step {
    position: relative;
    overflow: visible;
    min-height: 0;
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-areas:
      "node head"
      "node line"
      "node desc";
    column-gap: 14px;
    row-gap: 3px;
    align-items: start;
    padding: clamp(6px, 1.2vh, 12px) 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
  .story__scene--steps .step:first-child { padding-top: 0; }
  .story__scene--steps .step:last-child  { padding-bottom: 0; }
  /* kasujemy poprzedni numerał-duch watermark */
  .story__scene--steps .step::before { content: none; }

  /* --- 5. WĘZEŁ = .step__num-wrap; .step__num = numerał na szynie (maska #000) --- */
  .story__scene--steps .step__num-wrap {
    grid-area: node;
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    margin: 0;
    gap: 0;
    position: relative;
    z-index: 1;
  }
  .story__scene--steps .step__arrow { display: none; } /* przepływ niesie szyna */
  .story__scene--steps .step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: normal;
    text-align: center;
    background: var(--bg);         /* #000 maskuje szynę za numerałem */
    text-shadow: none;
  }
  .story__scene--steps .step--ty    .step__num { color: var(--accent-red); }
  .story__scene--steps .step--ja    .step__num { color: var(--accent-yellow); }
  .story__scene--steps .step--razem .step__num { color: var(--accent-green); }
  /* halo przy węźle "03" (partnership moment), statyczne */
  .story__scene--steps .step--razem .step__num-wrap::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,217,126,0.30) 0%, transparent 65%);
    filter: blur(9px);
    z-index: -1;
    pointer-events: none;
  }

  /* --- 6. TREŚĆ (prawa kolumna) — zwarta, całe copy.
     head: POV (lewy) + chip (prawy) w JEDNEJ linii, ten sam cell grid (bez wrappera) */
  .story__scene--steps .step__pov {
    grid-area: head;
    justify-self: start;
    align-self: center;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
  }
  .story__scene--steps .step--ty    .step__pov { color: rgba(255,75,62,0.85); }
  .story__scene--steps .step--ja    .step__pov { color: rgba(252,211,77,0.9); }
  .story__scene--steps .step--razem .step__pov { color: rgba(0,217,126,0.9); }
  .story__scene--steps .step__chip {
    grid-area: head;
    justify-self: end;
    align-self: center;
    margin: 0;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    padding: 3px 9px;
  }
  .story__scene--steps .step__line {
    grid-area: line;
    font-size: clamp(19px, 5.4vw, 23px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 4px 0 0;
    text-wrap: balance;
  }
  .story__scene--steps .step__desc {
    grid-area: desc;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    max-width: 34ch;
    margin: 4px 0 0;
  }

  /* --- 7. ODPORNOŚĆ NA JS-REVEAL: krok nigdy niewidoczny, gdy IO nie odpali ---
     Globalne [data-reveal]{opacity:0} + unobserve dałoby TRWALE puste kroki.
     Wymuszamy widoczność twardo (data-reveal w HTML zostaje => desktop bez zmian). */
  .story__scene--steps [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- 8. ≤390px / Dynamic Type — bufor pionu na iPhone SE i powiększenie tekstu --- */
@media (max-width: 390px) {
  .story__scene--steps { padding-top: calc(50px + env(safe-area-inset-top)); }
  .story__scene--steps .steps__title { font-size: clamp(25px, 7.6vw, 32px); }
  .story__scene--steps .step__line { font-size: clamp(18px, 5.2vw, 21px); }
  .story__scene--steps .step__desc { font-size: 12.5px; line-height: 1.36; }
  .story__scene--steps .step { row-gap: 2px; padding: clamp(5px, 1vh, 10px) 0; }
}

/* ======================================================
   SCENE 2 — HOOK FINANSOWY: Infinite Loop vs One Shot
   Marquee z powtarzanym "PENSJA" (animowany czerwony)
   vs statyczne "TECHNOLOGIA" (zielony, rozjechane litery)
   ====================================================== */
.story__scene--cost {
    overflow: hidden;
}
.story__scene--cost .story__center {
    max-width: 1400px;
    text-align: center;
}
.story__eyebrow--lower {
    text-transform: lowercase;
    font-size: clamp(22px, 2.8vw, 38px);
    color: var(--text);
    margin-bottom: clamp(28px, 5vh, 56px);
    text-align: center;
}

.cost-loop {
    width: 100%;
}

/* Marquee container — wybija się poza .story__center żeby ciągnęło się od krawędzi do krawędzi */
.cost-marquee {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.cost-marquee__track {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    white-space: nowrap;
    animation: cost-marquee-scroll 32s linear infinite;
    will-change: transform;
    padding-right: 0.35em;
}
@keyframes cost-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.cost-marquee__word {
    font-family: var(--sans);
    font-size: clamp(72px, 14vw, 200px);
    font-weight: 900;
    color: var(--accent-red);
    letter-spacing: -0.05em;
    line-height: 0.95;
    text-shadow: 0 0 80px rgba(255, 75, 62, 0.22);
}
.cost-marquee__dot {
    font-family: var(--sans);
    font-size: clamp(72px, 14vw, 200px);
    font-weight: 900;
    color: var(--accent-red);
    opacity: 0.32;
    line-height: 0.95;
}

.cost-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(20px, 2.7vw, 34px);
    color: var(--text);
    letter-spacing: -0.005em;
    line-height: 1.45;
    margin-top: clamp(20px, 3vh, 36px);
    padding: 0 24px;
    text-align: center;
}
.cost-sub--once {
    color: var(--text);
}
.cost-sub__red {
    color: var(--accent-red);
    font-weight: 500;
}
.cost-sub__green {
    color: var(--accent-green);
    font-weight: 500;
}

/* "albo" divider — recycluje wzór z innych miejsc strony */
.cost-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 56px);
    margin: clamp(48px, 7vh, 88px) auto;
    max-width: 720px;
    padding: 0 24px;
}
.cost-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-faint), transparent);
}
.cost-divider__word {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Statyczny "TECHNOLOGIA" — zielony, rozjechane litery, dominujący */
.cost-once-wrap {
    text-align: center;
}
.cost-once {
    font-family: var(--sans);
    font-size: clamp(40px, 9vw, 148px);
    font-weight: 900;
    color: var(--accent-green);
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 100px rgba(0, 217, 126, 0.22);
}

/* Reduced motion — marquee zatrzymany, dodajemy wielokropek wizualnie */
@media (prefers-reduced-motion: reduce) {
    .cost-marquee__track {
        animation: none;
        justify-content: center;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Tablet — letter-spacing TECHNOLOGIA musi się zwężać żeby zmieściło */
@media (max-width: 1024px) {
    .cost-once {
        letter-spacing: 0.06em;
    }
}

/* ======================================================
   MOBILE LAYOUT (≤720px) — komplet mobile dla wszystkich scen
   ====================================================== */
@media (max-width: 720px) {
    /* Scene base: padding pod nav (84) i nad mobile dock (115 — dock ~50 + tooltip 30 + margin) */
    .story__scene {
        flex-direction: column;
        align-items: stretch;
        padding: 84px 26px calc(115px + env(safe-area-inset-bottom));
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Wszystkie sceny CENTER vertical — spójne pozycjonowanie przy snap-scroll */
    .story__center {
        display: flex;
        flex-direction: column;
        flex: 1;
        justify-content: center;
    }

    /* Hero, USP — bez editorial/top-aligned, tylko me-strip align-start poziomo */
    .story__scene--hero .story__me {
        align-self: flex-start;
        margin-bottom: clamp(20px, 4vh, 36px);
    }

    /* Wszystkie child elements: align-self start (nie stretch) — chip nie rozciąga się */
    .story__eyebrow,
    .story__line,
    .story__time-chip,
    .story__small,
    .story__ctas,
    .cta-h {
        align-self: flex-start;
    }

    /* Typografia mobile — DUŻA */
    .story__h1 {
        font-size: clamp(38px, 11vw, 80px);
        letter-spacing: -0.06em;
        margin-bottom: 0;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    /* Najdłuższe słowo "pracowników." musi się zmieścić bez ucięcia */
    .story__h1 .reveal-mask__inner {
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    .story__h1-line--connector .reveal-mask__inner {
        font-size: 0.72em;
    }
    .story__sub {
        font-size: clamp(23px, 6vw, 40px);
        margin: clamp(14px, 3vh, 26px) 0 0;
        overflow-wrap: break-word;
    }
    .story__eyebrow {
        font-size: clamp(22px, 5.6vw, 30px);
        margin-bottom: 20px;
    }
    .story__line {
        font-size: clamp(36px, 10.5vw, 58px);
        letter-spacing: -0.04em;
        line-height: 1.05;
    }
    .story__time-chip {
        font-size: 12px;
        padding: 8px 18px;
        margin-bottom: 26px;
        width: auto;
        max-width: max-content;
    }
    .story__small {
        font-size: clamp(17px, 4.5vw, 20px);
        margin-top: 28px;
    }
    .story__hint { display: none; }

    /* Me-strip (hero) */
    .story__me {
        --me-pad-r-init: 5px;
        --me-pad-r-final: 18px;
        --me-collapsed: 54px;
        padding: 5px 16px 5px 5px;
        padding-right: var(--me-pad-r-init);
        gap: 12px;
        margin-bottom: 0;
        max-width: calc(100vw - 52px);
    }
    /* Reduced motion: pigułka rozwinięta, ale nie szersza niż ekran */
    @media (prefers-reduced-motion: reduce) {
        .story__me.is-visible { max-width: calc(100vw - 52px); }
    }
    .story__me img {
        width: 42px;
        height: 42px;
    }
    .story__me-name { font-size: 13.5px; white-space: normal; }
    .story__me-role { font-size: 13px; white-space: normal; }
    /* Imię/rola mają się zawijać, nie być ucinane w pigułce */
    .story__me > div { white-space: normal; min-width: 0; }
    /* Rozwiń pigułkę do szerokości ekranu (desktop keyframe daje sztywne 420px) */
    .story__me.is-visible {
        animation-name: meExpandMobile;
    }
    @keyframes meExpandMobile {
        to {
            max-width: calc(100vw - 52px);
            padding-right: var(--me-pad-r-final);
        }
    }

    /* CTA Sprawdźmy: H2 + button razem, parent .story__center ma center default */
    .cta-h {
        font-size: clamp(38px, 11vw, 60px);
        letter-spacing: -0.045em;
        line-height: 1.0;
        margin-bottom: 36px;
        text-wrap: balance;
    }
    .cta-flip__word { white-space: normal; }

    /* Scene 2 — Cost: mobile overrides */
    .story__scene--cost { overflow-x: clip; }
    .story__scene--cost .story__center {
        max-width: 100%;
        padding: 0;
        align-items: stretch;
    }
    .story__scene--cost .story__eyebrow--lower {
        align-self: stretch;
        text-align: center;
        font-size: clamp(19px, 5.6vw, 26px);
        margin-bottom: 28px;
    }
    .cost-loop { width: 100%; }
    .cost-marquee__word,
    .cost-marquee__dot {
        font-size: clamp(52px, 16.5vw, 92px);
        letter-spacing: -0.04em;
    }
    .cost-marquee__track {
        animation-duration: 22s;
    }
    .cost-sub {
        font-size: clamp(17px, 4.8vw, 22px);
        line-height: 1.45;
        margin-top: 18px;
        padding: 0 20px;
        text-align: center;
    }
    .cost-divider {
        margin: 36px auto;
        gap: 14px;
        max-width: min(360px, 100% - 32px);
        padding: 0 16px;
    }
    .cost-once-wrap { width: 100%; }
    .cost-once {
        font-size: clamp(30px, 9.5vw, 64px);
        letter-spacing: 0.02em;
        text-align: center;
    }
}

/* Bardzo małe telefony (≤380px) — TECHNOLOGIA musi się wcisnąć bez overflowu */
@media (max-width: 380px) {
    .story__scene { padding-left: 20px; padding-right: 20px; }
    /* Hero h1: jeszcze mniejszy żeby "pracowników." mieściło się na 360-375px */
    .story__h1 {
        font-size: clamp(34px, 10.5vw, 56px);
        letter-spacing: -0.062em;
    }
    .story__sub {
        font-size: clamp(21px, 6vw, 30px);
    }
    .story__scene--cost .story__eyebrow--lower {
        font-size: clamp(17px, 5.4vw, 22px);
        margin-bottom: 22px;
    }
    .cost-marquee__word,
    .cost-marquee__dot {
        font-size: clamp(46px, 15vw, 64px);
        letter-spacing: -0.05em;
    }
    .cost-sub {
        font-size: clamp(15px, 4.4vw, 18px);
        margin-top: 14px;
        padding: 0 12px;
    }
    .cost-divider { margin: 28px auto; }
    .cost-once {
        font-size: clamp(26px, 8.4vw, 38px);
        letter-spacing: 0;
    }
}

/* ======================================================
   MOBILE NARROW (≤480px) — drobne tweaks dla małych ekranów
   ====================================================== */
@media (max-width: 480px) {
    .nav__inner { padding: 12px 16px; }
    .nav__brand { font-size: 13.5px; gap: 8px; }
    .nav__brand-dot { width: 7px; height: 7px; }
    .nav__cta { padding: 10px 14px; font-size: 12.5px; min-height: 36px; display: inline-flex; align-items: center; }

    /* Akt 4 (choice) compact dla małych ekranów — content się mieści */
    .story__line { font-size: clamp(30px, 9.5vw, 50px); }
    .story__line--list { margin-bottom: 10px; }
    .story__choice { gap: 6px; margin-top: 12px; }
    .story__choice-or { font-size: clamp(22px, 5vw, 32px); margin: 8px 0; }
    .story__eyebrow { margin-bottom: 14px; }
}

/* ===================== HERO SCROLL PROGRESS SIDEBAR ===================== */
.story__progress {
    position: fixed;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transition: opacity .5s var(--ease);
    pointer-events: auto;
}
.story__progress.is-shown {
    opacity: 1;
}
.story__progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--text-faint);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color .35s var(--ease), transform .35s var(--ease);
    cursor: pointer;
}
.story__progress-item::before {
    content: '';
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: width .35s var(--ease);
    flex-shrink: 0;
}
.story__progress-item span {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.story__progress-item em {
    font-family: var(--serif);
    font-style: italic;
    font-size: 13px;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.story__progress-item:hover {
    color: var(--text);
}
.story__progress-item.is-active {
    color: var(--text-strong);
}
.story__progress-item.is-active::before {
    width: 40px;
}
.story__progress-item.is-active em {
    opacity: 1;
    transform: translateX(0);
}
/* Mobile: bottom dock z kropkami (zamiast lewego sidebara) */
@media (max-width: 920px) {
    .story__progress {
        left: 50%;
        top: auto;
        bottom: calc(14px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        flex-direction: row;
        gap: 0;
        padding: 0 8px;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--border);
        border-radius: 999px;
        align-items: center;
    }
    .story__progress-item {
        gap: 0;
        /* Tap target ≥44px bez powiększania widocznej kropki (dot w ::before zostaje 5px) */
        padding: 14px 11px;
        min-height: 44px;
        min-width: 38px;
        justify-content: center;
        position: relative;
    }
    .story__progress-item::before {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--text-faint);
        opacity: 0.6;
        transition: width .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
    }
    .story__progress-item.is-active::before {
        width: 18px;
        border-radius: 999px;
        background: var(--accent-green);
        opacity: 1;
    }
    .story__progress-item span { display: none; }
    .story__progress-item em {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        font-size: 11px;
        font-style: normal;
        font-family: var(--sans);
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-strong);
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 4px 10px;
        border-radius: 999px;
        white-space: nowrap;
        pointer-events: none;
        border: 1px solid var(--border);
    }
    .story__progress-item.is-active em {
        transform: translateX(-50%) translateY(0);
    }
}

/* ===================== INTRO OVERLAY (sweep reveal) ===================== */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Subtle aurora blob w tle — żółta, pasuje do akcentu "Prezesie" */
.intro-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(400px, 60vw, 800px);
    aspect-ratio: 1;
    background: radial-gradient(
        circle at center,
        rgba(252, 211, 77, 0.13) 0%,
        rgba(252, 211, 77, 0.03) 40%,
        transparent 70%
    );
    filter: blur(80px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    animation: introAuroraIn 1.2s ease 200ms forwards;
}
.intro-overlay.is-hiding {
    animation: introHide 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.intro-overlay__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.5vh, 32px);
    text-align: center;
}
.intro-overlay__greeting {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(48px, 11vw, 168px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: var(--text-strong);
    margin: 0;
    padding: 0 24px;
    clip-path: inset(0 100% 0 0);
    animation: introSweep 1.6s cubic-bezier(0.65, 0, 0.35, 1) 400ms forwards;
}
/* "Prezesie" w żółtym akcent — formalna waga, "ważna osoba" */
.intro-overlay__greeting-accent {
    color: var(--accent-yellow);
    text-shadow: 0 0 90px rgba(252, 211, 77, 0.4);
}
/* Kropka po "Prezesie." pulsuje — żółte "powiadomienie / uwaga" */
.intro-overlay__dot {
    color: var(--accent-yellow);
    display: inline-block;
    transform-origin: center bottom;
    animation: introDotPulse 2.2s ease-in-out 2400ms infinite;
}
@keyframes introDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.2); }
}
.intro-overlay__followup {
    font-family: var(--serif);
    font-size: clamp(28px, 4.5vw, 64px);
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(12px);
    animation: introFollowupIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1800ms forwards;
}
.intro-overlay__followup em {
    font-style: italic;
    font-weight: 400;
}
.intro-overlay__skip {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    animation: introSkipIn 0.6s ease 2600ms forwards, introSkipPulse 2.4s ease 3500ms infinite;
    z-index: 2;
    transition: color 0.2s ease;
}
.intro-overlay:hover .intro-overlay__skip {
    color: var(--text);
}
@keyframes introSweep {
    to { clip-path: inset(0 0 0 0); }
}
@keyframes introFollowupIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes introAuroraIn {
    to { opacity: 1; }
}
@keyframes introSkipIn {
    to { opacity: 1; }
}
@keyframes introSkipPulse {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(4px); opacity: 1; }
}
@keyframes introHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
@media (max-width: 480px) {
    .intro-overlay__greeting {
        font-size: clamp(38px, 11vw, 64px);
        letter-spacing: -0.035em;
        padding: 0 18px;
    }
    .intro-overlay__followup {
        font-size: clamp(22px, 6vw, 32px);
        padding: 0 18px;
    }
    .intro-overlay__skip { bottom: 24px; font-size: 12px; letter-spacing: 0.14em; }
}
@media (prefers-reduced-motion: reduce) {
    .intro-overlay.is-hiding { animation: introHide 0.3s ease forwards; }
    .intro-overlay__greeting { animation: none; clip-path: none; }
    .intro-overlay__followup { animation: none; opacity: 1; transform: none; }
    .intro-overlay::before { animation: none; opacity: 1; }
    .intro-overlay__skip { animation: introSkipIn 0.3s ease forwards; }
}

/* ===================== REVEAL ANIMATIONS ===================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cinematic mask reveal — tekst wynurza się z dołu spod horyzontu */
[data-reveal].reveal-mask {
    opacity: 1;
    transform: none;
    overflow: hidden;
    display: block;
    transition: none;
}
.reveal-mask__inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    padding-bottom: 0.12em;
}
[data-reveal].reveal-mask.is-visible .reveal-mask__inner {
    transform: translateY(0);
}
.story__h1-line { line-height: 0.92; margin-bottom: -0.05em; }

/* Direction modifiers */
[data-reveal][data-reveal-from="right"] {
    transform: translateX(80px);
}
[data-reveal][data-reveal-from="right"].is-visible {
    transform: translateX(0);
}
[data-reveal][data-reveal-from="left"] {
    transform: translateX(-80px);
}
[data-reveal][data-reveal-from="left"].is-visible {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 120px 0;
    position: relative;
}
.section--snap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 60px;
}
/* Formularz może być wyższy niż viewport — nie centruj, nie kotwicz */
#formularz.section--snap {
    justify-content: flex-start;
    scroll-snap-stop: normal;
}
.section--dark {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section__head {
    max-width: 880px;
    margin-bottom: 64px;
}
.section__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section__title {
    font-family: var(--sans);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.0;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 28px;
}
.section__intro {
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 720px;
}

@media (max-width: 720px) {
    .section { padding: 80px 0; }
    .section__head { margin-bottom: 48px; }
}

/* ===================== ROLES GRID ===================== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.role-card {
    background: var(--bg-elev);
    padding: 36px 32px;
    transition: background .2s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.role-card:hover {
    background: var(--bg-card);
}
.role-card__num {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}
.role-card__title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.role-card__before,
.role-card__after {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
}
.role-card__before { color: var(--text-muted); }

/* ===================== STEPS ===================== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    transition: border-color .2s ease;
}
.step:hover { border-color: var(--border-hover); }
.step__num {
    font-family: var(--serif);
    font-size: 72px;
    line-height: 1;
    color: var(--accent-yellow);
    font-style: italic;
    margin-bottom: 16px;
}
.step__time {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-yellow);
    background: var(--accent-yellow-soft);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.step__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.step__body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
}
.step__small {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

@media (max-width: 920px) {
    .steps { grid-template-columns: 1fr; }
}

/* ===================== STATS ===================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}
.stat {
    padding: 32px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all .2s ease;
}
.stat:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
}
.stat__num {
    font-family: var(--sans);
    font-size: 56px;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}
.stat__num-unit {
    font-size: 0.5em;
    color: var(--text-muted);
    margin-left: 2px;
    font-weight: 600;
}
.stat__label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    letter-spacing: -0.005em;
}

@media (max-width: 920px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
}

/* ===================== CASES ===================== */
.cases {
    display: grid;
    gap: 16px;
}
.case {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: border-color .2s ease;
}
.case:hover { border-color: var(--border-hover); }
.case__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.case__tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.case__verdict {
    font-size: 14px;
    color: var(--text);
    padding: 4px 12px;
    background: var(--accent-red-soft);
    border-radius: 999px;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}
.case__verdict strong { color: var(--text-strong); margin-left: 4px; }
.case__body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

/* ===================== FORM ===================== */
.section--form {
    background:
        radial-gradient(ellipse at top, var(--accent-red-soft), transparent 60%),
        var(--bg);
}
.brief {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
}
.brief__field { margin-bottom: 28px; }
.brief__field:last-of-type { margin-bottom: 0; }
.brief__field--big { margin-bottom: 36px; }
.brief__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 10px;
    letter-spacing: -0.005em;
}
.brief__label-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}
.brief__hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.brief__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
.brief__row:last-of-type { margin-bottom: 0; }

.brief textarea,
.brief input[type="text"],
.brief input[type="email"],
.brief input[type="tel"],
.brief select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-strong);
    font-size: 15px;
    line-height: 1.5;
    transition: border-color .15s ease, background .15s ease;
}
.brief textarea {
    resize: vertical;
    min-height: 200px;
    font-family: var(--sans);
    line-height: 1.6;
}
.brief textarea:focus,
.brief input:focus,
.brief select:focus {
    outline: none;
    border-color: var(--accent-green);
    background: var(--bg-form);
}
.brief textarea::placeholder,
.brief input::placeholder {
    color: var(--text-faint);
}
.brief select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238a8a8a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.brief__counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}
.brief__divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 36px 0;
}
.brief__submit {
    text-align: center;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.brief__small {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .brief { padding: 28px 20px; }
    .brief__row { grid-template-columns: 1fr; gap: 28px; }
}

/* ===================== FAQ ===================== */
.faq {
    display: grid;
    gap: 12px;
}
.faq__item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s ease;
}
.faq__item:hover { border-color: var(--border-hover); }
.faq__item[open] { border-color: var(--accent-green); }
.faq__item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-strong);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform .25s var(--ease);
}
.faq__item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent-green);
}
.faq__item p {
    padding: 0 24px 24px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}
.faq__item p strong { color: var(--text-strong); }

/* ===================== CTA FINAL ===================== */
.cta-final {
    padding: 140px 0;
    text-align: center;
    background:
        radial-gradient(ellipse at center top, var(--accent-yellow-soft), transparent 50%),
        var(--bg);
    border-top: 1px solid var(--border);
}
.cta-final__title {
    font-family: var(--sans);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 28px;
}
.cta-final__title em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent-yellow);
    font-weight: 400;
}
.cta-final__body {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.5;
}
.cta-final__body strong { color: var(--text-strong); }

@media (max-width: 720px) {
    .cta-final { padding: 80px 0; }
}

/* ===================== MINI FOOTER ===================== */
.footer-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    font-size: 11px;
    color: var(--text-faint);
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.footer-mini a {
    color: var(--text-faint);
    transition: color .2s ease;
}
.footer-mini a:hover {
    color: var(--text-muted);
}
/* Mobile: linki stopki = tap target ≥44px (padding nie psuje desktopu) */
@media (max-width: 720px) {
    .footer-mini {
        gap: 4px;
        padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    }
    .footer-mini a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* =====================================================
   PANEL STYLES (panel/* + dziekuje + klient/*)
   ===================================================== */

.panel {
    min-height: 100vh;
    background: var(--bg);
}
.panel__nav {
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.panel__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-strong);
}
.panel__brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
}
.panel__nav-links {
    display: flex;
    gap: 20px;
}
.panel__nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all .15s ease;
}
.panel__nav-links a:hover { color: var(--text-strong); background: var(--bg-hover); }
.panel__nav-links a.active { color: var(--text-strong); background: var(--bg-hover); }

.panel__main {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}
.panel__head {
    margin-bottom: 32px;
}
.panel__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.panel__subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

/* INBOX TABLE */
.leads-table {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.leads-table__head {
    display: grid;
    grid-template-columns: 100px 1.2fr 1fr 100px 100px 120px 100px;
    gap: 16px;
    padding: 14px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.leads-table__row {
    display: grid;
    grid-template-columns: 100px 1.2fr 1fr 100px 100px 120px 100px;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    cursor: pointer;
    transition: background .15s ease;
    font-size: 14px;
    color: var(--text);
}
.leads-table__row:last-child { border-bottom: 0; }
.leads-table__row:hover { background: var(--bg-card); }
.leads-table__row strong { color: var(--text-strong); font-weight: 600; }
.leads-table__empty {
    padding: 80px 24px;
    text-align: center;
    color: var(--text-muted);
}
.leads-table__empty strong { color: var(--text-strong); display: block; margin-bottom: 8px; font-size: 18px; }

@media (max-width: 920px) {
    .leads-table__head { display: none; }
    .leads-table__row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px;
    }
    .leads-table__row > *::before {
        content: attr(data-label) ': ';
        color: var(--text-muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-right: 6px;
    }
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.status--new { background: var(--accent-yellow-soft); color: var(--accent-yellow); }
.status--analyzing { background: rgba(123,179,255,0.15); color: #7bb3ff; }
.status--proposal { background: rgba(168,127,255,0.15); color: #a87fff; }
.status--won { background: var(--accent-green-soft); color: var(--accent-green); }
.status--lost { background: rgba(255,255,255,0.06); color: var(--text-faint); }

/* DASHBOARD CARDS */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.metric {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.metric__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.metric__value {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}
.metric__delta {
    font-size: 13px;
    color: var(--text-muted);
}
.metric__delta--up { color: var(--accent-green); }
.metric__delta--down { color: var(--accent-red); }

.charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 920px) {
    .charts { grid-template-columns: 1fr; }
}
.chart {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.chart__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 20px;
}
.chart__bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chart__bar {
    display: grid;
    grid-template-columns: 140px 1fr 40px;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}
.chart__bar-label { color: var(--text); }
.chart__bar-fill {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.chart__bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--bar-pct, 0%);
    background: var(--accent-green);
    border-radius: 999px;
    transition: width .6s var(--ease);
}
.chart__bar-value {
    text-align: right;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* LEAD DETAIL */
.lead-detail {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}
@media (max-width: 920px) {
    .lead-detail { grid-template-columns: 1fr; }
}
.lead-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.lead-card__title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.lead-section { margin-bottom: 28px; }
.lead-section:last-child { margin-bottom: 0; }
.lead-section__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.lead-section__value {
    font-size: 15px;
    color: var(--text-strong);
}
.lead-section__problem {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}
.lead-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.lead-meta__cell {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}
.lead-meta__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.lead-meta__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-strong);
}

.ai-block {
    background: var(--bg);
    border: 1px solid var(--accent-green);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}
.ai-block::before {
    content: 'AI';
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--accent-green);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.ai-block h4 {
    font-size: 14px;
    color: var(--accent-green);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.ai-block p, .ai-block li {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}
.ai-block ul { padding-left: 20px; }
.ai-block ul li { margin-bottom: 6px; }

.notes textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100px;
    font-family: var(--sans);
    resize: vertical;
    margin-bottom: 12px;
}
.notes textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}
.notes__list { margin-top: 16px; }
.notes__item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}
.notes__item-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.status-control {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.status-control button {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    transition: all .15s ease;
    letter-spacing: 0.03em;
}
.status-control button:hover { color: var(--text-strong); border-color: var(--border-hover); }
.status-control button.active { background: var(--accent-green); color: var(--bg); border-color: var(--accent-green); }

/* DZIEKUJE PAGE */
.thanks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    background:
        radial-gradient(ellipse at top, var(--accent-green-soft), transparent 50%),
        var(--bg);
}
.thanks__inner {
    max-width: 720px;
    text-align: center;
}
.thanks__check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-green-soft);
    border: 2px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: var(--accent-green);
    font-size: 40px;
}
.thanks__title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.thanks__title em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent-green);
    font-weight: 400;
}
.thanks__body {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
}
.thanks__body strong { color: var(--text-strong); }
.thanks__link {
    display: block;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}
.thanks__link-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.thanks__link-url {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    color: var(--accent-green);
    font-size: 14px;
    word-break: break-all;
}

/* KLIENT VIEW */
.client {
    min-height: 100vh;
    background: var(--bg);
}
.client__hero {
    padding: 60px 32px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
}
.client__hero-inner {
    max-width: 880px;
    margin: 0 auto;
}
.client__greeting {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.client__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.client__title em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent-green);
    font-weight: 400;
}
.client__status-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.client__main {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    gap: 24px;
}
.client__card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.client__card-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.timeline {
    list-style: none;
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    background: var(--border);
}
.timeline li {
    position: relative;
    padding-bottom: 24px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-strong);
}
.timeline li.done::before {
    background: var(--accent-green);
    border-color: var(--accent-green);
}
.timeline li.current::before {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 6px var(--accent-yellow-soft);
}
.timeline__title {
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 4px;
}
.timeline__body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =====================================================
   BRIEF WIZARD (multi-step form)
   ===================================================== */

.bw-section {
    background: radial-gradient(ellipse at top, var(--accent-red-soft), transparent 60%), var(--bg);
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 0 60px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: none;
}
.bw-section.is-revealed {
    display: flex;
    animation: bw-section-reveal .6s var(--ease) both;
}
@keyframes bw-section-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Progress fixed top */
.bw-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.06);
    z-index: 200;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.bw-progress.is-visible { opacity: 1; }
.bw-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-green);
    box-shadow: 0 0 12px rgba(0,217,126,0.5);
    transition: width .45s var(--ease);
}

/* Shell + frame */
.bw-shell {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bw-frame {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Step container */
.bw-step {
    display: none;
    flex-direction: column;
    gap: 24px;
    animation: bw-fadeIn .35s var(--ease) both;
}
.bw-step.is-active { display: flex; }
@keyframes bw-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Me strip */
.bw-me {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bw-me img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 0 3px var(--accent-green-soft);
    flex-shrink: 0;
}
.bw-me__name {
    color: var(--text-strong);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
}
.bw-me__role {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.25;
    margin-top: 2px;
}

/* Typography */
.bw-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}
.bw-headline {
    font-family: var(--sans);
    font-size: clamp(28px, 4.4vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-strong);
    margin: 0;
}
.bw-lead {
    font-size: 16px;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.55;
}
.bw-footer-note {
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    margin: 12px 0 0;
}
.bw-form { display: flex; flex-direction: column; gap: 14px; }

/* Label */
.bw-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

/* Inputs */
.bw-input,
.bw-textarea {
    width: 100%;
    display: block;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--text-strong);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.bw-input::placeholder,
.bw-textarea::placeholder { color: var(--text-faint); }
.bw-input:hover,
.bw-textarea:hover { border-color: var(--border-hover); }
.bw-input:focus,
.bw-textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(0,217,126,0.04);
    box-shadow: 0 0 0 3px var(--accent-green-soft);
}
.bw-textarea {
    min-height: 160px;
    resize: vertical;
}

/* Hero input (pulsing) */
.bw-input--hero {
    border-color: rgba(0,217,126,0.3);
    animation: bw-inputPulse 2.6s ease-in-out infinite;
}
.bw-input--hero:focus,
.bw-input--hero:not(:placeholder-shown) {
    animation: none;
    border-color: rgba(0,217,126,0.7);
    background: rgba(0,217,126,0.04);
    box-shadow: 0 0 0 3px var(--accent-green-soft);
}
@keyframes bw-inputPulse {
    0%, 100% {
        border-color: rgba(0,217,126,0.25);
        box-shadow: 0 0 0 0 rgba(0,217,126,0);
    }
    50% {
        border-color: rgba(0,217,126,0.55);
        box-shadow: 0 0 0 6px rgba(0,217,126,0.08);
    }
}
@media (prefers-reduced-motion: reduce) {
    .bw-input--hero { animation: none; border-color: rgba(0,217,126,0.45); }
}

.bw-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-top: 8px;
    display: none;
}
.bw-error.is-shown { display: block; }

/* Row two cols */
.bw-row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) {
    .bw-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Options (radio-like cards) */
.bw-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bw-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s var(--ease);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    text-align: left;
    width: 100%;
}
.bw-opt:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
}
.bw-opt.is-selected {
    background: rgba(0,217,126,0.06);
    border-color: var(--accent-green);
}
.bw-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.bw-opt.is-selected .bw-dot { border-color: var(--accent-green); }
.bw-opt.is-selected .bw-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
}
.bw-opt-title { font-weight: 500; color: var(--text-strong); flex: 1; }

/* Button */
.bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    background: var(--text-strong);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    transition: all .2s;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}
.bw-btn:hover {
    background: var(--accent-green);
    transform: translateY(-1px);
}
.bw-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: var(--bg-card);
    color: var(--text-muted);
}
.bw-btn-text { display: inline-flex; align-items: center; gap: 8px; }
.bw-btn-loading .bw-btn-text { display: none; }
.bw-btn-loading .bw-btn-spin { display: inline-flex; }
.bw-btn-spin { display: none; }
.bw-spin {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: var(--bg);
    border-radius: 50%;
    animation: bw-spin .8s linear infinite;
}
@keyframes bw-spin { to { transform: rotate(360deg); } }

.bw-arrow {
    display: inline-block;
    font-weight: 700;
    transition: transform .2s var(--ease);
}
.bw-btn:hover .bw-arrow { transform: translateX(3px); }

/* Back */
.bw-btn-back {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-family: var(--sans);
    font-size: 14px;
    padding: 10px 14px 10px 0;
    margin-left: -4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    min-height: 40px;
}
.bw-btn-back:hover { color: var(--text-strong); }

/* Counter */
.bw-counter {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}
.bw-counter.is-ok { color: var(--accent-green); }

/* Attachments */
.bw-attachments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bw-attachments-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: -2px 0 4px;
}
.bw-files-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 22px 18px;
    border: 1.5px dashed var(--border-strong);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease);
    text-align: center;
}
.bw-files-drop:hover {
    border-color: var(--accent-green);
    background: rgba(0,217,126,0.04);
}
.bw-files-icon {
    font-size: 26px;
    line-height: 1;
    color: var(--accent-green);
    font-weight: 300;
}
.bw-files-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-strong);
}
.bw-files-formats {
    font-size: 12px;
    color: var(--text-muted);
}
.bw-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bw-files-list:empty { display: none; }
.bw-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 13px;
}
.bw-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-strong);
}
.bw-file-size {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.bw-file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color .2s var(--ease);
}
.bw-file-remove:hover { color: var(--accent-red); }

/* Done */
.bw-done {
    align-items: center;
    text-align: center;
    gap: 18px;
    padding-top: 32px;
}
.bw-done-circle {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green) 0%, #00a85f 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 8px var(--accent-green-soft), 0 12px 32px rgba(0,217,126,0.3);
    animation: bw-doneIn .55s var(--ease) both;
}
.bw-done-circle::after {
    content: '';
    position: absolute;
    inset: -28px;
    background: radial-gradient(circle, rgba(0,217,126,0.35) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}
.bw-done-circle svg {
    width: 38px;
    height: 38px;
    color: var(--bg);
}
@keyframes bw-doneIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}
.bw-done-headline {
    font-family: var(--sans);
    font-size: clamp(28px, 4.4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-strong);
    text-align: center;
    margin: 0;
}
.bw-done-sub {
    color: var(--text-muted);
    font-size: 16px;
    text-align: center;
    max-width: 420px;
    margin: 0;
}
