/* Generator faktur — page-only styles. Shared chrome stays in style.css + body.css. */

/* Failsafe: if scroll-reveal never adds .in, content still appears. */
.js-reveal .rv{animation:igRevealFailsafe .45s ease 1.1s forwards}
.js-reveal .rv.in{animation:none;opacity:1;transform:none}
@keyframes igRevealFailsafe{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .js-reveal .rv{animation:none;opacity:1;transform:none}
  .ig-switch-thumb,.ig-card.is-flash .ig-price{transition:none}
}

.ksef-e{color:#FF0000;font-style:normal}
/* keep KSeF letters tight even inside spaced kickers */

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

.dd-item.is-current{background:rgba(19,184,238,.12);box-shadow:inset 0 0 0 1px rgba(19,184,238,.28)}
.mn-pi.is-current{background:rgba(19,184,238,.12)}

/* Feature tour — 10 tabs (IDs f-*) */
#f-proc:checked~.t-chips .c-proc,#f-kontr:checked~.t-chips .c-kontr,#f-prod:checked~.t-chips .c-prod,#f-pers:checked~.t-chips .c-pers,#f-cykl:checked~.t-chips .c-cykl,#f-wal:checked~.t-chips .c-wal,#f-rab:checked~.t-chips .c-rab,#f-mail:checked~.t-chips .c-mail,#f-plat:checked~.t-chips .c-plat,#f-anal:checked~.t-chips .c-anal{background:var(--b-ink);color:var(--b-bg);border-color:var(--b-ink)}
.tour-overlay #f-proc:checked~.t-chips .c-proc,#f-kontr:checked~.t-chips .c-kontr,#f-prod:checked~.t-chips .c-prod,#f-pers:checked~.t-chips .c-pers,#f-cykl:checked~.t-chips .c-cykl,#f-wal:checked~.t-chips .c-wal,#f-rab:checked~.t-chips .c-rab,#f-mail:checked~.t-chips .c-mail,#f-plat:checked~.t-chips .c-plat,#f-anal:checked~.t-chips .c-anal{background:#13B8EE;border-color:#13B8EE;color:#fff}
#f-proc:checked~.t-chips .c-proc .t-prog,#f-kontr:checked~.t-chips .c-kontr .t-prog,#f-prod:checked~.t-chips .c-prod .t-prog,#f-pers:checked~.t-chips .c-pers .t-prog,#f-cykl:checked~.t-chips .c-cykl .t-prog,#f-wal:checked~.t-chips .c-wal .t-prog,#f-rab:checked~.t-chips .c-rab .t-prog,#f-mail:checked~.t-chips .c-mail .t-prog,#f-plat:checked~.t-chips .c-plat .t-prog,#f-anal:checked~.t-chips .c-anal .t-prog{animation:tprog 6s linear forwards}
#f-proc:checked~.t-stage .s-proc,#f-kontr:checked~.t-stage .s-kontr,#f-prod:checked~.t-stage .s-prod,#f-pers:checked~.t-stage .s-pers,#f-cykl:checked~.t-stage .s-cykl,#f-wal:checked~.t-stage .s-wal,#f-rab:checked~.t-stage .s-rab,#f-mail:checked~.t-stage .s-mail,#f-plat:checked~.t-stage .s-plat,#f-anal:checked~.t-stage .s-anal{opacity:1;transform:none}
#f-proc:checked~.t-stage .p-proc,#f-kontr:checked~.t-stage .p-kontr,#f-prod:checked~.t-stage .p-prod,#f-pers:checked~.t-stage .p-pers,#f-cykl:checked~.t-stage .p-cykl,#f-wal:checked~.t-stage .p-wal,#f-rab:checked~.t-stage .p-rab,#f-mail:checked~.t-stage .p-mail,#f-plat:checked~.t-stage .p-plat,#f-anal:checked~.t-stage .p-anal{display:block;animation:tin .45s ease}
.ig-tour.tour-overlay .t-chips{flex-wrap:wrap;width:auto;max-width:100%;overflow:visible}
.ig-tour .t-pane ul{display:none}
@media (max-width:900px){
  .ig-tour.tour-overlay .t-chips{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;border-radius:18px;scrollbar-width:none}
  .ig-tour.tour-overlay .t-chips::-webkit-scrollbar{display:none}
}

/* KSeF — light, airy; loop Klient → Faktura → KSeF → Klient */
.ig-ksef{padding-top:28px;padding-bottom:24px;background:none}
.ig-ksef-inner{
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:36px 40px;align-items:center;position:relative;padding:8px 0 8px 28px;
}
.ig-ksef-inner::before{
  content:"";position:absolute;left:0;top:12%;bottom:12%;width:2px;border-radius:2px;pointer-events:none;
  background:linear-gradient(180deg,transparent,#13B8EE 22%,#68E2B4 78%,transparent);
}
.ig-ksef-copy h2{margin:0 0 14px;font-size:clamp(26px,3vw,40px);letter-spacing:-.035em;line-height:1.08}
.ig-ksef-copy p{margin:0;font-size:16.5px;line-height:1.6;max-width:40em;color:var(--b-muted)}
.ig-badge{display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:6px 12px;border-radius:999px;
  background:rgba(104,226,180,.14);color:#68E2B4;font-size:13px;font-weight:700;letter-spacing:.02em;
  border:1px solid rgba(104,226,180,.22)}
.ig-ksef-visual{position:relative;min-height:360px;isolation:isolate}
.ig-ksef-line{position:absolute;height:1px;z-index:3;pointer-events:none;border-radius:1px}
.ig-ksef-line.l1{width:38%;top:36%;left:12%;transform:rotate(-54deg);
  background:linear-gradient(90deg,rgba(19,184,238,0),#13B8EE,rgba(19,184,238,0))}
.ig-ksef-line.l2{width:38%;top:36%;right:10%;left:auto;transform:rotate(54deg);
  background:linear-gradient(90deg,rgba(255,160,79,0),#FFA04F,rgba(255,160,79,0))}
.ig-ksef-line.l3{width:30%;top:70%;left:34%;
  background:linear-gradient(90deg,rgba(104,226,180,0),#68E2B4,rgba(104,226,180,0))}
.ig-ksef-dot{position:absolute;top:50%;left:0;width:6px;height:6px;border-radius:50%;
  transform:translate(-50%,-50%);animation:igKsefDot 3.2s ease-in-out infinite}
.ig-ksef-dot.d1{background:#13B8EE;box-shadow:0 0 8px rgba(19,184,238,.55)}
.ig-ksef-dot.d2{background:#FFA04F;box-shadow:0 0 8px rgba(255,160,79,.55);animation-delay:-1.05s}
.ig-ksef-dot.d3{background:#68E2B4;box-shadow:0 0 8px rgba(104,226,180,.55);animation:igKsefDotBack 3.2s ease-in-out infinite;animation-delay:-2.1s}
@keyframes igKsefDot{
  0%{left:6%;opacity:0}
  14%{opacity:1}
  86%{opacity:1}
  100%{left:94%;opacity:0}
}
@keyframes igKsefDotBack{
  0%{left:94%;opacity:0}
  14%{opacity:1}
  86%{opacity:1}
  100%{left:6%;opacity:0}
}
.ig-kf-card{
  position:absolute;display:flex;align-items:center;gap:10px;z-index:2;
  padding:10px 12px;border-radius:18px;
  background:rgba(14,30,42,.72);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  animation:igTeamFloat 6.4s ease-in-out infinite;
}
.ig-kf-inv{top:0;left:0;right:0;margin:0 auto;width:min(200px,48%);animation-delay:0s}
.ig-kf-cli{bottom:6%;left:0;width:min(168px,40%);animation-delay:-2.2s;border-color:rgba(104,226,180,.28)}
.ig-kf-mid{bottom:2%;right:0;width:min(220px,48%);flex-direction:column;align-items:flex-start;gap:8px;
  padding:14px 16px;border-color:rgba(19,184,238,.35);background:rgba(14,30,42,.8);animation-delay:-4s}
.ig-kf-mid-title{font-size:22px;font-weight:800;letter-spacing:-.04em;line-height:1;color:#fff}
.ig-kf-meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.ig-kf-meta b{font-size:13px;font-weight:750;color:#fff;letter-spacing:-.01em;line-height:1.2}
.ig-kf-num{font-size:12px;font-weight:650;color:var(--b-muted);letter-spacing:.04em}
.ig-kf-doc{flex:none;width:32px;height:38px;border-radius:6px;border:1px solid rgba(19,184,238,.35);
  background:linear-gradient(180deg,rgba(19,184,238,.16),rgba(14,30,42,.4));
  display:flex;flex-direction:column;justify-content:center;gap:3px;padding:8px 6px}
.ig-kf-doc span{display:block;height:2px;border-radius:1px;background:rgba(255,255,255,.28)}
.ig-kf-doc span:last-child{width:60%;background:rgba(255,255,255,.16)}
.ig-kf-step{position:absolute;z-index:2;margin:0;padding:4px 9px;border-radius:999px;
  font-size:13px;font-weight:700;letter-spacing:.02em;white-space:nowrap;pointer-events:none;
  background:rgba(14,30,42,.82);border:1px solid rgba(255,255,255,.12)}
.ig-kf-step.s1{top:28%;left:0;color:#8EE3FE}
.ig-kf-step.s2{top:28%;right:0;color:#FFC48F}
.ig-kf-step.s3{top:54%;left:50%;transform:translateX(-50%);width:auto;text-align:center;color:#68E2B4}
@keyframes igKsefDotV{
  0%{top:8%;opacity:0}
  14%{opacity:1}
  86%{opacity:1}
  100%{top:92%;opacity:0}
}
@keyframes igKsefDotVBack{
  0%{top:92%;opacity:0}
  14%{opacity:1}
  86%{opacity:1}
  100%{top:8%;opacity:0}
}

@media (max-width:768px){
  .ig-ksef-inner{grid-template-columns:1fr;gap:24px;padding:4px 0}
  .ig-ksef-inner::before{display:none}
  .ig-ksef-visual{min-height:0;padding:0;width:100%;display:block;position:relative}
  .ig-kf-cli,
  .ig-kf-inv,
  .ig-kf-card.ig-kf-cli,
  .ig-kf-card.ig-kf-inv,
  .ig-ksef-line,
  .ig-ksef-line.l1,
  .ig-ksef-line.l2,
  .ig-ksef-line.l3,
  .ig-kf-step,
  .ig-kf-step.s1,
  .ig-kf-step.s2,
  .ig-kf-step.s3,
  .ig-ksef-dot{display:none!important;animation:none!important}
  .ig-kf-mid,
  .ig-kf-card.ig-kf-mid{
    position:relative;left:auto;right:auto;top:auto;bottom:auto;
    transform:none;margin:0;animation:none;
    display:flex;flex-direction:column;align-items:flex-start;gap:12px;
    width:100%!important;max-width:none!important;
    padding:22px 20px 20px;border-radius:22px
  }
  .ig-kf-mid-title{font-size:32px;letter-spacing:-.04em;order:1}
  .ig-kf-mid::after{
    content:"Wysłanie, przyjęcie i urzędowe poświadczenie odbioru.";
    order:2;margin:0;
    font-size:15px;line-height:1.45;font-weight:500;
    color:var(--b-muted,#C9D6DE);letter-spacing:-.01em
  }
  .ig-kf-mid .ig-chips{order:3;gap:8px;margin-top:2px;flex-wrap:wrap}
  .ig-kf-mid .ig-chips i{font-size:12px;padding:5px 10px}
}

/* ksef 390 uses the simple 768 card */
@media (prefers-reduced-motion:reduce){
  .ig-kf-card{animation:none}
  .ig-ksef-dot{animation:none;opacity:.7;left:50%;top:50%}
}

/* Steps: heading above the full-width track (no empty left column) */
.ig-steps .bh{max-width:760px}
.ig-steps .sl-track{margin-top:8px}

/* ===== Pricing: premium SaaS ===== */
.ig-pricing{background:none}
.ig-notice{display:flex;gap:14px;align-items:flex-start;max-width:860px;margin:0 auto 28px;
  padding:16px 18px;border-radius:16px;background:rgba(255,160,79,.1);border:1px solid rgba(255,160,79,.32)}
.ig-notice svg{flex:none;margin-top:2px;color:#FFA04F}
.ig-notice p{margin:0;font-size:15px;line-height:1.5;color:var(--b-ink2)}

.ig-switch{
  position:relative;display:flex;flex-wrap:nowrap;gap:0;justify-content:center;margin:0 auto 40px;
  width:max-content;max-width:100%;padding:5px;border-radius:999px;
  background:rgba(255,255,255,.04);border:1px solid var(--b-line);overflow-x:auto;scrollbar-width:none;
}
.ig-switch::-webkit-scrollbar{display:none}
.ig-switch-thumb{
  position:absolute;top:5px;bottom:5px;left:0;border-radius:999px;background:#13B8EE;
  transition:transform .35s cubic-bezier(.2,.7,.2,1),width .35s cubic-bezier(.2,.7,.2,1);
  pointer-events:none;z-index:0;
}
.ig-period{
  appearance:none;border:0;background:transparent;color:var(--b-ink2);
  padding:11px 18px;border-radius:999px;font:650 14.5px/1 Geist,system-ui,sans-serif;
  cursor:pointer;display:inline-flex;align-items:center;gap:8px;position:relative;z-index:1;white-space:nowrap;
}
.ig-period:hover{color:#fff}
.ig-period.is-active{color:#fff}
.ig-period .bdg{font-size:11px;font-weight:800;padding:3px 7px;border-radius:999px;background:#68E2B4;color:#0B3B2C}
.ig-period.is-active .bdg{background:#fff;color:#0A6A8F}

.ig-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch;margin-bottom:48px}
.ig-card{
  display:flex;flex-direction:column;padding:26px 22px 22px;border-radius:24px;
  background:var(--b-card);border:1px solid var(--b-line);box-shadow:var(--b-shadow);
  min-width:0;position:relative;transform:translateY(0);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),border-color .25s,box-shadow .35s;
}
.ig-card.trial{background:linear-gradient(180deg,rgba(19,184,238,.18),var(--b-card) 48%);border-color:rgba(19,184,238,.35)}
.ig-card.s{--accent:#13B8EE}
.ig-card.m{--accent:#68E2B4}
.ig-card.l{--accent:#FFA04F}
.ig-card.s,.ig-card.m,.ig-card.l{box-shadow:var(--b-shadow),inset 0 3px 0 var(--accent)}
.ig-card.is-featured{
  border-color:rgba(255,160,79,.55);
  background:linear-gradient(180deg,rgba(255,160,79,.16),var(--b-card) 42%);
  box-shadow:0 24px 60px rgba(255,160,79,.16),0 0 0 1px rgba(255,160,79,.25),inset 0 3px 0 #FFA04F;

  z-index:1;
}
.ig-flag{
  position:absolute;top:-12px;right:18px;padding:5px 10px;border-radius:999px;
  background:#FFA04F;color:#3A1D02;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
}
.ig-name{margin:0 0 14px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--b-ink)}
.ig-card.s .ig-name{color:#8EE3FE}
.ig-card.m .ig-name{color:#68E2B4}
.ig-card.l .ig-name{color:#FFA04F}
.ig-price{margin:0 0 8px;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 10px;min-height:52px}
.ig-price .now{font-size:clamp(26px,2.3vw,36px);font-weight:750;letter-spacing:-.03em;color:#fff;line-height:1}
.ig-price .suf{font-size:14px;color:var(--b-muted);font-weight:550}
.ig-price .was{font-size:14px;color:var(--b-muted);text-decoration:line-through}
.ig-price .off{font-size:11px;font-weight:800;padding:3px 7px;border-radius:999px;background:#68E2B4;color:#0B3B2C}
.ig-card.is-flash .ig-price,.ig-card.is-flash .ig-save,.ig-card.is-flash .ig-total{
  animation:igPriceFlash .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes igPriceFlash{
  from{opacity:.35;transform:translateY(6px)}
  to{opacity:1;transform:none}
}
.ig-save{margin:0 0 2px;font-size:13.5px;font-weight:700;color:#68E2B4;min-height:20px}
.ig-save.is-off,.ig-save-empty{color:transparent}
.ig-total{margin:0 0 16px;font-size:13px;color:var(--b-muted);min-height:20px}
.ig-lead{margin:0 0 22px;font-size:14.5px;line-height:1.45;color:var(--b-ink2);flex:1}
.ig-card .btn{width:100%;justify-content:center;margin-top:auto;min-height:48px;white-space:nowrap;flex-shrink:0}
.ig-card.is-featured .btn-primary{background:#FFA04F;color:#3A1D02}
.ig-card.is-featured .btn-primary:hover{background:#ffb06a}
/* Hover must never change size, border width, padding or margin — neighbours stay put. */
.ig-card:hover,.ig-card:focus-within{transform:translateY(-6px);box-shadow:0 22px 44px rgba(0,0,0,.38);z-index:2}
.ig-card.s:hover,.ig-card.m:hover,.ig-card.l:hover,
.ig-card.s:focus-within,.ig-card.m:focus-within,.ig-card.l:focus-within{box-shadow:0 22px 44px rgba(0,0,0,.38),inset 0 3px 0 var(--accent)}
.ig-card.is-featured:hover,.ig-card.is-featured:focus-within{
  box-shadow:0 24px 60px rgba(255,160,79,.2),0 22px 44px rgba(0,0,0,.32),inset 0 3px 0 #FFA04F;
}
.ig-card .btn:hover,.ig-card .btn-primary:hover,.ig-card .btn-ghost:hover{transform:none}
.ig-card.trial .ig-price{min-height:72px}
.ig-card.trial .ig-price .now{font-size:clamp(22px,2vw,30px);line-height:1.15}

.ig-cmp-block h3{margin:0 0 16px;font-size:22px;letter-spacing:-.03em;text-align:center}
.ig-cmp-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:20px;border:1px solid var(--b-line);background:var(--b-card)}
.ig-cmp{width:100%;min-width:640px;border-collapse:collapse;font-size:13.5px}
.ig-cmp th,.ig-cmp td{padding:11px 14px;border-bottom:1px solid var(--b-line);text-align:center;vertical-align:middle}
.ig-cmp thead th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--b-muted);font-weight:750;background:rgba(255,255,255,.03)}
.ig-cmp th[scope="row"]{text-align:left;font-weight:550;color:var(--b-ink2);background:var(--b-card);position:sticky;left:0;z-index:1}
.ig-cmp tbody tr:hover th,.ig-cmp tbody tr:hover td{background:rgba(19,184,238,.06)}
.ig-cmp .feat{background:rgba(255,160,79,.07)}
.ig-cmp thead .feat{color:#FFA04F}
.ig-cmp .is-on{color:#68E2B4}
.ig-cmp .is-on svg{width:16px;height:16px;display:inline-block;vertical-align:middle}
.ig-cmp .is-off{color:#5B6D77}
.ig-cmp .ig-miss{display:inline;font-weight:600;min-height:0;height:auto;width:auto;grid-template-columns:none}
.ig-cmp .ig-extra{font-weight:700;color:#68E2B4;white-space:nowrap}
.ig-new{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#68E2B4;color:#0B3B2C;font-size:10px;font-weight:800;letter-spacing:.04em;vertical-align:middle}
.ig-notes{margin:22px auto 0;max-width:820px;text-align:center}
.ig-notes p{margin:0 0 6px;font-size:13.5px;color:var(--b-muted)}

@media (max-width:1100px){
  .ig-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .ig-cmp-scroll{position:relative}
  .ig-cmp-scroll::after{content:"";pointer-events:none;position:absolute;top:0;right:0;bottom:0;width:28px;
    background:linear-gradient(90deg,transparent,var(--b-card));border-radius:0 20px 20px 0;z-index:2}
  .ig-cmp thead th:first-child,.ig-cmp th[scope="row"]{width:38vw;max-width:38vw}
  .ig-cmp thead th:not(:first-child),.ig-cmp td{min-width:68px;width:68px}
}
@media (max-width:768px){
  .ig-pricing-head{margin-bottom:20px}
  .ig-notice{font-size:14px;margin-bottom:22px}
  .ig-switch{
    width:100%;max-width:100%;
    flex-wrap:nowrap;justify-content:stretch;
    overflow:hidden;border-radius:999px;margin:0 auto 22px;
    padding:4px
  }
  .ig-switch-thumb{display:block;top:4px;bottom:4px}
  .ig-period{
    flex:1 1 0;min-width:0;
    flex-direction:column;justify-content:center;align-items:center;
    gap:4px;padding:8px 4px;
    font-size:13px;line-height:1.15;white-space:nowrap
  }
  .ig-period > span:not(.bdg){font-size:0;line-height:0}
  .ig-period > span:not(.bdg)::after{
    font-size:13px;line-height:1.2;font-weight:650;letter-spacing:-.01em
  }
  .ig-period[data-months="1"] > span:not(.bdg)::after{content:"1 mies."}
  .ig-period[data-months="3"] > span:not(.bdg)::after{content:"3 mies."}
  .ig-period[data-months="6"] > span:not(.bdg)::after{content:"6 mies."}
  .ig-period[data-months="12"] > span:not(.bdg)::after{content:"12 mies."}
  .ig-period .bdg{font-size:10px;padding:2px 6px}
  .ig-cards{
    display:flex;grid-template-columns:none;
    overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;scroll-padding-left:16px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    gap:12px;align-items:stretch;
    width:calc(100% + 32px);
    margin:0 -16px 28px;
    padding:16px 16px 20px
  }
  .ig-cards::-webkit-scrollbar{display:none}
  .ig-card{
    flex:0 0 calc(100% - 36px);
    max-width:340px;
    scroll-snap-align:start;
    padding:22px 20px 20px
  }
  .ig-card:hover,.ig-card.trial:hover{transform:none}
  .ig-card .btn-primary:hover,.ig-card .btn-ghost:hover{transform:none}
  .ig-card .now{font-size:28px}
  .ig-card.trial .ig-price{min-height:0}
  .ig-card.trial .ig-price .now{font-size:24px;line-height:1.2;min-height:0}
  .ig-card.l .ig-flag{top:-8px;font-size:10px;padding:3px 10px}
  .ig-cmp-block{margin-top:8px}
  .ig-cmp-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}
  .ig-cmp{min-width:560px;font-size:13px}
  .ig-cmp th[scope="row"],.ig-cmp td:first-child,
  .ig-cmp thead th:first-child{
    position:sticky;left:0;z-index:2;
    min-width:148px;max-width:148px;width:148px
  }
  .ig-cmp th[scope="row"],.ig-cmp td:first-child{
    background:var(--b-card,#0E1E2A);
    box-shadow:6px 0 10px rgba(0,0,0,.22)
  }
  .ig-cmp thead th:first-child{background:rgba(7,20,28,.96)}
  .ig-cmp tbody tr:hover th[scope="row"],
  .ig-cmp tbody tr:hover td:first-child{background:var(--b-card,#0E1E2A)}
  .ig-cmp thead th:not(:first-child),.ig-cmp td{min-width:72px;width:72px}
}

/* pricing 640 handled by 768 carousel */

/* pricing 390 handled by 768 carousel */

/* Zalety: 4+3 so the last row is not a single leftover tile */
.ig-zal .zt-grid{grid-template-columns:repeat(12,1fr)}
.ig-zal .zt{grid-column:span 3}
.ig-zal .zt:nth-child(n+5){grid-column:span 4}
.ig-zal .zt-ic{background:rgba(104,226,180,.1)}
.ig-zal .zt-ic img{width:36px;height:36px;display:block}
@media (max-width:900px){
  .ig-zal .zt,.ig-zal .zt:nth-child(n+5){grid-column:span 6}
}
@media (max-width:560px){
  .ig-zal .zt,.ig-zal .zt:nth-child(n+5){grid-column:span 12}
}

/* Employees */
#pracownicy{padding-top:56px;background:none}
.ig-emp{display:grid;grid-template-columns:1fr 1.05fr;gap:36px 28px;align-items:center}
.ig-emp .ig-emp-copy p{font-size:17.5px;line-height:1.6}
.ig-emp .note{color:var(--b-muted);font-size:14.5px}
.ig-emp-visual{position:relative;min-height:560px;isolation:isolate}
.ig-emp .ig-phone{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(200px,42%);z-index:2}
.ig-phone-frame{position:relative;padding:3px;border-radius:42px;
  background:linear-gradient(160deg,#3A3D42,#0A0B0C 40%,#6A6E74);
  box-shadow:0 20px 40px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.08)}
.ig-phone-screen{position:relative;aspect-ratio:1320/2868;border-radius:39px;border:5px solid #040506;overflow:hidden;background:#0E1E2A}
.hero-v3 .mk-pscreen .mk-media{
  inset:0;width:100%;height:100%;max-width:none;max-height:none;
  object-fit:cover;object-position:top center;display:block
}
.ig-phone-screen{overflow:hidden}
.ig-phone-screen img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:top center;display:block}
.ig-phone-island{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:60px;height:18px;border-radius:12px;background:#000;z-index:2}
.ig-emp-line{position:absolute;height:1px;z-index:1;pointer-events:none;border-radius:1px;
  background:linear-gradient(90deg,rgba(19,184,238,0),rgba(19,184,238,.5),rgba(104,226,180,0))}
.ig-emp-line.l1{width:34%;top:24%;right:14%;transform:rotate(-22deg)}
.ig-emp-line.l2{width:30%;top:48%;left:10%;transform:rotate(18deg)}
.ig-emp-line.l3{width:32%;bottom:26%;right:12%;transform:rotate(16deg)}
.ig-emp-cards{position:absolute;inset:0;z-index:3;pointer-events:none}
.ig-team-card{
  pointer-events:auto;position:absolute;display:flex;align-items:center;gap:10px;
  width:min(214px,46%);padding:10px 12px 10px 10px;border-radius:18px;
  background:rgba(14,30,42,.72);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  animation:igTeamFloat 6.4s ease-in-out infinite;
}
.ig-team-owner{top:6%;right:0;animation-delay:0s}
.ig-team-worker{top:42%;left:0;animation-delay:-2.1s}
.ig-team-acc{bottom:22%;right:2%;animation-delay:-4.2s}
.ig-team-add{bottom:4%;left:2%;animation-delay:-1.2s;border-style:dashed;border-color:rgba(104,226,180,.4);
  background:rgba(14,30,42,.6)}
@keyframes igTeamFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}
.ig-ava{
  flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  font-size:13px;font-weight:800;letter-spacing:.02em;color:#07141C;
}
.av-cyan{background:#13B8EE}.av-mint{background:#68E2B4}.av-orange{background:#FFA04F}
.av-add{background:transparent;color:#68E2B4;border:1px dashed rgba(104,226,180,.7);font-size:20px;font-weight:600}
.ig-team-meta{display:flex;flex-direction:column;gap:5px;min-width:0}
.ig-team-meta b{font-size:13px;font-weight:750;color:#fff;letter-spacing:-.01em;line-height:1.2}
.ig-chips{display:flex;flex-wrap:wrap;gap:4px}
.ig-chips i{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.02em;color:#C9D6DE;
  padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}
.ig-free{font-size:11px;font-weight:700;color:#68E2B4;letter-spacing:.01em}
@media (max-width:900px){
  .ig-emp{grid-template-columns:1fr;gap:28px;align-items:start}
  .ig-emp-copy{order:0}
  .ig-emp-visual{order:1;min-height:0;display:block;position:relative}
  .ig-emp-line,
  .ig-emp .ig-phone{display:none}
  .ig-emp-cards{
    position:static;inset:auto;width:100%;pointer-events:auto;
    display:flex;flex-direction:column;gap:0;
    padding:4px 6px;
    border-radius:22px;
    background:rgba(14,30,42,.72);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 12px 28px rgba(0,0,0,.18)
  }
  .ig-team-card,
  .ig-team-owner,
  .ig-team-worker,
  .ig-team-acc,
  .ig-team-add{
    position:static;left:auto;right:auto;top:auto;bottom:auto;
    transform:none;animation:none;
    width:auto;min-width:0;
    padding:14px 12px;border-radius:0;
    background:transparent;box-shadow:none;
    border:0;border-bottom:1px solid rgba(255,255,255,.08)
  }
  .ig-team-add{
    border-bottom:0;
    justify-content:flex-start;
    background:transparent
  }
  .ig-ava{width:36px;height:36px;font-size:13px}
  .ig-team-meta b{font-size:15px}
  .ig-team-meta span,.ig-free{font-size:12.5px}
  .ig-chips{gap:6px}
  .ig-chips i{font-size:11px;padding:3px 8px}
}

/* employees 560 uses the 900 stacked layout */
@media (prefers-reduced-motion:reduce){
  .ig-team-card{animation:none}
}

/* Helper screenshot */
.ig-helper .bh{margin-bottom:28px}
.ig-helper .b-win img{width:100%;height:auto;aspect-ratio:1920/1080;object-fit:cover;object-position:top left;display:block}

.ksef{letter-spacing:0}
.kicker .ksef, .ig-badge .ksef, .ig-ksef-mark{letter-spacing:-.04em}
.ig-ksef-mark{letter-spacing:-.07em}
.ksef,.ksef-e{text-transform:none!important;letter-spacing:0!important;white-space:nowrap}
.kicker .ksef,.ig-badge .ksef{letter-spacing:.02em!important}

/* ===== App devices: same proportions as the homepage block ===== */
.app-sp .as-visual img{
  width:82%;
  height:auto;
  max-width:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  margin:0 auto;
  aspect-ratio:481/568;
}

/* ===== Continuous site background: no section-box fills, no sharp band edges ===== */
.ig-pricing,
.ig-ksef,
.ig-steps,
.ig-zal,
.ig-helper,
.ig-tour,
#pracownicy,
#taryfy,
#zalety,
#wypelnianie,
#kontakt.contact,
.app-sp,
.cta-cin{
  background:none;
  background-color:transparent;
}
/* Pricing glow is painted INSIDE the section and faded to the site bg before the bottom edge. */
.ig-pricing{position:relative;overflow:hidden;background:none;isolation:auto}
.ig-pricing::before{
  content:"";
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(900px 480px at 80% 30%,rgba(255,160,79,.10),transparent 62%),
    radial-gradient(700px 400px at 12% 62%,rgba(19,184,238,.10),transparent 64%),
    linear-gradient(180deg,transparent 0%,transparent 78%,var(--b-bg) 100%);
}
/* Helper mockup: the old 110px / .55 black shadow painted a hard dark band under the window. */
.ig-helper .b-win{box-shadow:0 12px 28px rgba(0,0,0,.16),0 0 0 1px rgba(255,255,255,.06)}
/* CTA: clip the blurred photo to the section, fade photo+overlay to the site bg inside the box.
   The overlay radial must end in transparent (not .92 opaque) or it becomes a hard lid. */
.cta-cin{overflow:hidden;background:transparent;isolation:isolate}
.cta-cin .cc-bg{
  inset:0;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 24%,#000 76%,transparent 100%);
          mask-image:linear-gradient(180deg,transparent 0%,#000 24%,#000 76%,transparent 100%);
}
.cta-cin::before{
  background:
    linear-gradient(180deg,var(--b-bg) 0%,rgba(7,20,28,0) 30%,rgba(7,20,28,0) 70%,var(--b-bg) 100%),
    radial-gradient(800px 400px at 50% 50%,rgba(7,20,28,.35),transparent 70%);
}

/* ===== Hero browser mockup: animated invoice (igm-*; markup + loop injected by _build/igm_hero.py) =====
   Nabywca from Baza kontrahentów -> items -> totals -> Wystawiona -> KSeF -> Wysłana -> Opłacona.
   Safari-safe: no backdrop-filter / filters; only opacity, transform, colour and width transitions. */
.igm-i{display:block;width:24px;height:24px;flex:none}
.igm-screen{background:#0B1A24}
.igm-inv{position:absolute;inset:0;display:flex;flex-direction:column;gap:10px;padding:0 0 12px;color:#F3F7F9;font-size:12px;line-height:1.3;
  background:radial-gradient(110% 70% at 100% 0%,rgba(19,184,238,.12),transparent 60%),radial-gradient(90% 60% at 0% 100%,rgba(255,160,79,.07),transparent 60%),#0B1A24}
.igm-h{flex:none;display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
.igm-ava{flex:none;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#3FCBF5,#0E9FD3)}
.igm-ava svg{width:17px;height:17px}
.igm-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.igm-who b{font-size:13.5px;font-weight:750;letter-spacing:-.01em}
.igm-who small{font-size:11px;color:#9FB2BC}
.igm-type{flex:none;font-size:10.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:5px 9px;border-radius:999px;white-space:nowrap;
  color:#13B8EE;background:rgba(19,184,238,.12);border:1px solid rgba(19,184,238,.4)}
.igm-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:9px;margin:0 16px;transition:opacity .35s ease,transform .35s ease}
.igm-body.is-swap{opacity:0;transform:translateY(8px)}
.igm-sheet{position:relative;flex:1;min-height:0;padding:10px 12px;display:flex;flex-direction:column;gap:8px;border-radius:16px;
  background:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.12);box-shadow:0 12px 28px rgba(0,0,0,.28);transition:border-color .35s}
.s4 .igm-sheet{border-color:rgba(104,226,180,.5)}
/* Nabywca + dropdown from the contractor base */
.igm-buyer{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}
.igm-lbl{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9FB2BC}
.igm-in{position:relative;display:flex;align-items:center;gap:8px;height:30px;padding:0 9px;border-radius:9px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.12);transition:border-color .3s,background .3s;overflow:hidden}
.dd:not(.c) .igm-in{border-color:#13B8EE;background:rgba(19,184,238,.08)}
.igm-pick{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:#9FB2BC;transition:opacity .25s,transform .3s}
.igm-pick svg{width:14px;height:14px;color:#13B8EE}
.igm-bv{position:absolute;left:9px;right:30px;top:0;bottom:0;display:flex;align-items:center;gap:10px;opacity:0;transform:translateY(6px);transition:opacity .3s,transform .35s}
.igm-bv > i{display:block;width:46%;height:7px;border-radius:4px;background:linear-gradient(90deg,#13B8EE,rgba(255,255,255,.35))}
.igm-bv small{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:700;color:#9FB2BC;flex:1}
.igm-bv small i{display:block;flex:1;max-width:70px;height:6px;border-radius:3px;background:rgba(255,255,255,.25)}
.c .igm-pick{opacity:0;transform:translateY(-6px)}
.c .igm-bv{opacity:1;transform:none}
.igm-chev{margin-left:auto;width:14px;height:14px;color:#9FB2BC;transition:transform .3s}
.dd:not(.c) .igm-chev{transform:rotate(180deg)}
.igm-dd{position:absolute;z-index:2;left:calc(100% - 100%);right:0;top:34px;display:flex;flex-direction:column;gap:4px;padding:6px;border-radius:10px;
  background:#102634;border:1px solid rgba(19,184,238,.35);box-shadow:0 14px 28px rgba(0,0,0,.4);opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .25s,transform .3s}
.igm-buyer .igm-dd{left:auto;width:calc(100% - 78px)}
.igm-dd > span{display:flex;align-items:center;height:18px;padding:0 7px;border-radius:6px}
.igm-dd > span i{display:block;width:60%;height:6px;border-radius:3px;background:rgba(255,255,255,.22)}
.igm-dd > span:nth-child(3) i{width:44%}
.igm-dd .is-hit{background:rgba(19,184,238,.16)}
.igm-dd .is-hit i{background:#13B8EE;width:52%}
.dd:not(.c) .igm-dd{opacity:1;transform:none}
/* items */
.igm-items{display:flex;flex-direction:column;gap:4px}
.igm-tr{display:grid;grid-template-columns:minmax(0,1fr) 34px 64px 34px;align-items:center;gap:8px;padding:4px 7px;border-radius:8px;font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.igm-tr > span:first-child{text-align:left}
.igm-th{padding-top:0;padding-bottom:0;font-size:9.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#7F94A0}
.igm-tr[data-r]{background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.07);opacity:.0;transform:translateY(5px);transition:opacity .3s,transform .35s,border-color .3s}
.r1 .igm-tr[data-r="1"],.r2 .igm-tr[data-r="2"]{opacity:1;transform:none}
.r1:not(.r2) .igm-tr[data-r="1"],.r2:not(.sum) .igm-tr[data-r="2"]{border-color:rgba(19,184,238,.45)}
.igm-nm{display:flex;align-items:center;gap:7px;min-width:0}
.igm-ic{flex:none;width:20px;height:20px;border-radius:6px;display:grid;place-items:center;color:#FFA04F;background:rgba(255,160,79,.12)}
.igm-ic svg{width:12px;height:12px}
.igm-nm i{display:block;width:64%;height:6px;border-radius:3px;background:rgba(255,255,255,.25)}
.igm-tr[data-r="2"] .igm-nm i{width:48%}
/* totals */
.igm-sum{margin-top:auto;display:flex;align-items:baseline;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding-top:7px;border-top:1px dashed rgba(255,255,255,.14);
  font-size:10.5px;color:#9FB2BC;opacity:.25;transition:opacity .35s}
.igm-sum b{font-weight:750;color:#D9E4EA;font-variant-numeric:tabular-nums}
.igm-tot b{font-size:15px;color:#fff;letter-spacing:-.01em}
.igm-tot em{font-style:normal}
.sum .igm-sum{opacity:1}
.igm-paid{position:absolute;right:14px;bottom:40px;display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
  color:#06281C;background:#68E2B4;opacity:0;transform:scale(.7) rotate(-6deg);transition:opacity .25s,transform .35s cubic-bezier(.3,1.6,.5,1)}
.igm-paid svg{width:13px;height:13px;stroke-width:2.2}
.s4 .igm-paid{opacity:1;transform:rotate(-4deg)}

/* status rail */
.igm-rail{flex:none;margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;position:relative}
.igm-rail::before,.igm-rail::after{content:"";position:absolute;left:12.5%;top:13px;height:2px}
.igm-rail::before{right:12.5%;background:rgba(255,255,255,.1)}
.igm-rail::after{width:0;background:linear-gradient(90deg,#13B8EE,#68E2B4);transition:width .5s ease}
.s2 .igm-rail::after{width:25%}.s3 .igm-rail::after{width:50%}.s4 .igm-rail::after{width:75%}
.igm-st{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;min-width:0}
.igm-st-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#7F94A0;background:#0F222E;border:1.5px solid rgba(255,255,255,.16);transition:color .3s,background .3s,border-color .3s,box-shadow .3s}
.igm-st-dot svg{width:14px;height:14px}
.igm-st-l{font-size:10.5px;font-weight:700;color:#7F94A0;line-height:1.15;transition:color .3s}
.s1:not(.s2) .igm-st[data-s="1"] .igm-st-dot,.s2:not(.s3) .igm-st[data-s="2"] .igm-st-dot,.s3:not(.s4) .igm-st[data-s="3"] .igm-st-dot{color:#04202C;background:#13B8EE;border-color:#13B8EE;box-shadow:0 0 0 4px rgba(19,184,238,.16)}
.s2 .igm-st[data-s="1"] .igm-st-dot,.s3 .igm-st[data-s="2"] .igm-st-dot,.s4 .igm-st[data-s="3"] .igm-st-dot{color:#13B8EE;background:rgba(19,184,238,.18);border-color:rgba(19,184,238,.5)}
.s4 .igm-st[data-s="4"] .igm-st-dot{color:#06281C;background:#68E2B4;border-color:#68E2B4;box-shadow:0 0 0 4px rgba(104,226,180,.18)}
.s1 .igm-st[data-s="1"] .igm-st-l,.s2 .igm-st[data-s="2"] .igm-st-l,.s3 .igm-st[data-s="3"] .igm-st-l,.s4 .igm-st[data-s="4"] .igm-st-l{color:#fff}
.igm-hero-mob,.igm-sprite{display:none}
@media (min-width:769px){.igm-screen .igm-body{margin-right:calc(29% + 8px)}}
@media (min-width:769px) and (max-width:1100px){.igm-type{display:none}}
@media (max-width:768px){
  .igm-hero .hero-visual{display:none}
  .igm-hero .hero-copy,.igm-hero-mob{min-width:0;max-width:100%}
  .igm-hero-mob{display:block;position:relative;width:100%}
  .igm-inv-mob{position:relative;inset:auto;height:340px;border-radius:22px;border:1px solid rgba(255,255,255,.12);overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.3)}
  .igm-inv-mob .igm-body{margin:0 12px}
  .igm-inv-mob .igm-tr{grid-template-columns:minmax(0,1fr) 30px 62px 32px;gap:6px}
}
@media (max-width:400px){.igm-inv-mob .igm-type{display:none}.igm-st-l{font-size:10px}}
@media (prefers-reduced-motion:reduce){.igm-body,.igm-in,.igm-pick,.igm-bv,.igm-chev,.igm-dd,.igm-tr[data-r],.igm-sum,.igm-paid,.igm-rail::after,.igm-st-dot,.igm-sheet{transition:none}}

/* t106 (Aleks: the tab slider jumps / label not vertically centred) — shared segmented switch fixes for every page:
   1) the pill is positioned from the padding edge, the page scripts measure from the border edge -> it sat 1px right;
   2) the label is centred on its cap height, independent of how the platform reads the font's ascent/descent
      (Safari on macOS vs other engines differ by ~2px with line-height:1). The trim removes the space above the caps
      and below the baseline; the padding gives the same amount back, so every pill keeps its height. */
.ig-switch-thumb{left:-1px}
@supports (text-box:trim-both cap alphabetic) and (padding:calc(1lh - 1em)){
  .ig-period > span:not(.bdg):not(.kl-ic),.ig-period > small{text-box:trim-both cap alphabetic;padding-block:calc((1lh - .71em) / 2)}
  /* label spans that are flex containers themselves (MIA Legal Standard | Plus, MIA Start S | M | L): trim their children */
  .ig-period > span.ml-mt:not(.bdg):not(.kl-ic),.ms-size .ig-period > span:not(.bdg):not(.kl-ic){text-box:normal;padding-block:0}
  .ig-period > .ml-mt > *,.ms-size .ig-period > span > *{text-box:trim-both cap alphabetic;padding-block:calc((1lh - .71em) / 2)}
  @media (max-width:768px){.ig-period[data-months] > span:not(.bdg){text-box:normal;padding-block:0}}
}
/* t136: phones (period tabs stacked badge + "N mies."): the label line keeps ~3.3px of empty descender room under its
   baseline, so the badge+label stack sat 1.65px above the pill centre. Give that room back (the stack is flex-centred). */
@media (max-width:768px){.ig-period[data-months] > .bdg ~ span:not(.bdg){margin-bottom:-3.3px}}
