/* =========================================================================
   AkceptujFaktury.pl na telefonie + scena integracji Integratora z serwisem.

   Telefon i animacja akceptacji pochodzą z ilustracji na akceptujfaktury.pl
   (kursor dojeżdża do „Zatwierdź”, klika, pierwsza faktura robi się zielona,
   licznik 3 → 2). Tam animacja startuje po najechaniu; tu gra w pętli, żeby
   działała też na telefonie i bez myszy. Markup: includes/af-phone.php.

   Zmienne kolorów (--ink, --cyan, …) bierzemy z baza.css.
   Jeden cykl = --afp-cycle; wszystkie elementy mają ten sam czas trwania,
   więc telefon i panel w przeglądarce akceptują faktury równo.
   ========================================================================= */

:root { --afp-cycle: 10s; }

/* ── Telefon (iPhone) ───────────────────────────────────────────────── */
.afp-phone {
  position: relative;
  width: 158px;
  padding: 5px;
  border-radius: 30px;
  background: linear-gradient(160deg, #1a1c20, #08090b 45%, #121418);
  box-shadow:
    0 0 0 1.5px #a7adb5, 0 0 0 3px #4a4f57, 0 0 0 3.6px #1d2024,
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 30px 60px rgba(0, 0, 0, .45), 0 0 38px rgba(56, 189, 248, .22);
  color: var(--ink-text, #e7ecf4);
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 11px;
  line-height: 1.3;
  text-align: left;
  pointer-events: none;
}
.afp-phone, .afp-phone *, .afp-phone *::before, .afp-phone *::after { box-sizing: border-box; }
.afp-screen > * { min-width: 0; }
.afp-side {
  position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #5b6068, #b7bcc4 55%, #6b7078);
}
.afp-side--action   { left: -5px;  top: 58px;  height: 14px; }
.afp-side--vol-up   { left: -5px;  top: 82px;  height: 24px; }
.afp-side--vol-down { left: -5px;  top: 112px; height: 24px; }
.afp-side--power    { right: -5px; top: 92px;  height: 34px; }
.afp-screen {
  position: relative; display: grid; gap: 6px; padding: 7px 8px 6px;
  border-radius: 25px; overflow: hidden;
  background: linear-gradient(170deg, #11284a, #0d1d35);
}
.afp-status {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px;
  height: 14px; margin: 0 2px 2px; color: #fff;
}
.afp-time { font-size: 9.5px; font-weight: 700; line-height: 1; }
.afp-island {
  position: relative; width: 46px; height: 13px; border-radius: 99px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.afp-island::after {
  content: ""; position: absolute; right: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a5c, #05070c 70%);
}
.afp-sys { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.afp-sys svg { display: block; height: 7px; width: auto; fill: #fff; }
.afp-batt {
  position: relative; width: 14px; height: 7px; padding: 1px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 2.5px;
}
.afp-batt i { display: block; width: 78%; height: 100%; border-radius: 1px; background: #fff; }
.afp-batt::after {
  content: ""; position: absolute; right: -3px; top: 1.5px; width: 1.5px; height: 2.5px;
  border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55);
}
.afp-home { display: block; width: 44%; height: 3px; margin: 3px auto 0; border-radius: 99px; background: rgba(255, 255, 255, .6); }

.afp-bar { display: flex; align-items: center; justify-content: space-between; }
.afp-bar b { font-size: 12.5px; color: #fff; }
.afp-badge {
  display: inline-grid; min-width: 18px; padding: 1px 6px; border-radius: 99px;
  font-size: 10.5px; font-weight: 800; color: var(--ink, #0a1628); background: var(--cyan, #6fd3ff);
  animation: afp-badge-bg var(--afp-cycle) infinite;
}
.afp-badge > span, .afs-swap > span { grid-area: 1 / 1; text-align: center; }
.afp-tabs { display: flex; gap: 4px; }
.afp-tabs span {
  flex: 1; padding: 3px 0; text-align: center; border-radius: 7px; font-size: 9.5px; white-space: nowrap;
  color: var(--ink-muted, #94a3b8); border: 1px solid var(--ink-line, rgba(255, 255, 255, .1));
}
.afp-tabs .on { color: #fff; background: rgba(111, 211, 255, .16); border-color: rgba(111, 211, 255, .4); }
.afp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 6px 7px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06);
}
.afp-row > div { min-width: 0; }
.afp-row b { display: block; font-size: 10.5px; color: #fff; white-space: nowrap; }
.afp-row small { display: block; font-size: 9.5px; color: var(--ink-muted, #94a3b8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afp-slot { display: grid; grid-template-columns: minmax(0, 1fr); }
.afp-slot > * { grid-area: 1 / 1; }
.afp-dl { display: grid; align-content: center; gap: 5px; padding: 6px 7px; border: 1px dashed rgba(111, 211, 255, .45); background: rgba(111, 211, 255, .07); animation: afp-dl-vis var(--afp-cycle) infinite; }
.afp-dl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.afp-dl-top b { font-size: 10px; color: var(--cyan, #6fd3ff); white-space: nowrap; }
.afp-dl-top small { font-size: 9px; color: var(--ink-muted, #94a3b8); white-space: nowrap; }
.afp-dl-track { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.afp-dl-track i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, #6fd3ff); animation: afp-dl-bar var(--afp-cycle) infinite; }
.afp-row--1 { animation: afp-row-vis var(--afp-cycle) infinite, afp-row-ok var(--afp-cycle) infinite; }
.afp-chk { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; color: #4ade80; opacity: 0; animation: afp-chk var(--afp-cycle) infinite; }
.afp-pill {
  display: inline-block; padding: 1px 6px; border-radius: 999px; border: 1px solid transparent;
  font-style: normal; font-size: 9px; font-weight: 600; white-space: nowrap;
}
.afp-pill--wait { color: #fcd34d; background: rgba(252, 211, 77, .12); border-color: rgba(252, 211, 77, .3); }
.afp-pill--ask  { color: #7dd3fc; background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .3); }
.afp-pill--1    { color: #fcd34d; background: rgba(252, 211, 77, .12); border-color: rgba(252, 211, 77, .3); animation: afp-pill-ok var(--afp-cycle) infinite; }
.afp-act { position: relative; display: flex; gap: 5px; margin-top: 2px; }
.afp-btn {
  flex: 1; padding: 6px 0; text-align: center; border-radius: 8px; font-size: 10px; font-weight: 700;
  border: 1px solid var(--ink-line-2, rgba(255, 255, 255, .18)); color: var(--ink-text, #e7ecf4);
}
.afp-btn--ok { color: #052e16; background: #4ade80; border-color: #4ade80; animation: afp-press var(--afp-cycle) infinite; }
.afp-cursor { position: absolute; left: 22%; top: 38%; z-index: 6; width: 0; height: 0; opacity: 0; pointer-events: none; animation: afp-cur var(--afp-cycle) infinite; }
.afp-cursor svg { position: absolute; left: -2px; top: -2px; width: 20px; height: 20px; transform-origin: 2px 2px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); animation: afp-tap var(--afp-cycle) infinite; }
.afp-cursor::after {
  content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(111, 211, 255, .95); opacity: 0; transform: scale(.3); animation: afp-ripple var(--afp-cycle) infinite;
}

/* sekwencja (cykl 10 s): 0–22 % pobieranie z KSeF (pasek postępu), 22–26 % nowa faktura
   wskakuje na listę, licznik 2 → 3; 34–45 % kursor dojeżdża, 47 % klik „Zatwierdź”;
   50–90 % faktura zatwierdzona, licznik 3 → 2; 96–100 % powrót do stanu wyjściowego */
@keyframes afp-cur {
  0%, 32%   { opacity: 0; transform: translate(46px, -96px); }
  34%       { opacity: 1; transform: translate(46px, -96px); }
  45%, 86%  { opacity: 1; transform: translate(0, 0); }
  92%, 100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes afp-tap    { 0%, 45% { transform: scale(1); } 47% { transform: scale(.78); } 50%, 100% { transform: scale(1); } }
@keyframes afp-ripple { 0%, 46% { opacity: 0; transform: scale(.3); } 47% { opacity: .95; transform: scale(.3); } 56%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes afp-press  { 0%, 45% { transform: none; filter: none; } 47% { transform: scale(.9); filter: brightness(1.15); } 50% { transform: scale(1.04); } 53%, 100% { transform: none; filter: none; } }
@keyframes afp-row-ok {
  0%, 46%   { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .06); }
  50%, 90%  { background: rgba(74, 222, 128, .13);  border-color: rgba(74, 222, 128, .55); }
  97%, 100% { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .06); }
}
@keyframes afp-pill-ok {
  0%, 46%   { color: #fcd34d; background: rgba(252, 211, 77, .12); border-color: rgba(252, 211, 77, .3); }
  50%, 90%  { color: #86efac; background: rgba(74, 222, 128, .16); border-color: rgba(74, 222, 128, .45); }
  97%, 100% { color: #fcd34d; background: rgba(252, 211, 77, .12); border-color: rgba(252, 211, 77, .3); }
}
@keyframes afp-badge-bg { 0%, 47% { background: var(--cyan, #6fd3ff); } 52%, 88% { background: #4ade80; } 97%, 100% { background: var(--cyan, #6fd3ff); } }
@keyframes afp-sw-0 { 0%, 21% { opacity: 1; } 23%, 96% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes afp-sw-a { 0%, 22% { opacity: 0; } 24%, 45% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes afp-sw-b { 0%, 46% { opacity: 0; } 48%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes afp-chk  { 0%, 49% { max-width: 0; margin-left: 0; opacity: 0; } 52%, 90% { max-width: 1.2em; margin-left: 4px; opacity: 1; } 97%, 100% { max-width: 0; margin-left: 0; opacity: 0; } }
@keyframes afp-tr-ok { 0%, 46% { background: transparent; } 50%, 90% { background: rgba(74, 222, 128, .09); } 97%, 100% { background: transparent; } }
/* pobieranie z KSeF: baner z paskiem postępu ustępuje nowej fakturze (ten sam slot, więc telefon nie zmienia wysokości) */
@keyframes afp-dl-vis { 0% { opacity: 0; } 2%, 21% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes afp-dl-bar { 0%, 3% { width: 0; } 20%, 100% { width: 100%; } }
@keyframes afp-row-vis { 0%, 21% { opacity: 0; transform: translateY(-8px); } 25%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes afp-sk-vis { 0% { opacity: 0; } 2%, 21% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes afp-tx-vis { 0%, 21% { opacity: 0; } 25%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.afp-sw-0, .afs-sw-0 { animation: afp-sw-0 var(--afp-cycle) infinite; }
.afp-sw-a, .afs-sw-a { animation: afp-sw-a var(--afp-cycle) infinite; }
.afp-sw-b, .afs-sw-b { animation: afp-sw-b var(--afp-cycle) infinite; }

/* ── Telefon w karcie kaskadowej w hero ─────────────────────────────── */
.hero-shot .afp-phone--hero {
  position: absolute; right: -4%; top: 17%; z-index: 5;
  transform-origin: 100% 0; transform: scale(.82) rotate(3deg);
  transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}
.hero-shot:hover .afp-phone--hero,
.hero-shot:focus-visible .afp-phone--hero { transform: translateY(-8px) scale(.86) rotate(5deg); }
/* telefon stoi po prawej, więc podpowiedź galerii przechodzi na lewą stronę */
.hero-shot .hero-shot-hint { right: auto; left: 14px; }
@media (max-width: 1100px) { .hero-shot .afp-phone--hero { right: -2%; transform: scale(.7) rotate(3deg); } }
@media (max-width: 900px)  { .hero-shot .afp-phone--hero { right: 0; top: 24%; transform: scale(.62) rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
  .afp-phone *, .afp-phone, .afs-swap *, .afs-tr--1, .afs-tr--1 *, .afs-pill--1, .afs-flow-dot, .afs-hd * { animation: none !important; }
  .afp-dl, .afp-sw-a, .afp-sw-b, .afs-sw-a, .afs-sw-b, .afs-cell-sk, .afs-hd-b, .afs-st-b { opacity: 0 !important; }
  .afp-cursor { display: none; }
}

/* =========================================================================
   Scena integracji: komputer (Integrator) ⇄ AkceptujFaktury.pl ⇄ klient
   (panel w przeglądarce + telefon). Sekcja „04 / Integracja z AkceptujFaktury.pl”.
   ========================================================================= */
.afs {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(150px, .5fr) minmax(0, 1.15fr);
  align-items: center; gap: 12px;
  padding: 34px 30px 30px; border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(111, 211, 255, .14), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(74, 222, 128, .10), transparent 45%),
    linear-gradient(160deg, #0d1d35, #0a1628);
  border: 1px solid var(--ink-line-2, rgba(255, 255, 255, .18));
  box-shadow: 0 30px 70px rgba(10, 22, 40, .28);
  color: var(--ink-text, #e7ecf4);
}
.afs-stage { position: relative; min-width: 0; }
.afs-tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-family: var(--mono, 'JetBrains Mono', monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted, #94a3b8);
}
.afs-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan, #6fd3ff); box-shadow: 0 0 10px rgba(111, 211, 255, .8); }
.afs-tag--client i { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, .8); }

/* komputer: monitor ze zrzutem Integratora */
.afs-monitor { position: relative; padding: 9px 9px 0; border-radius: 12px 12px 4px 4px; background: #1b2638; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.afs-monitor img { display: block; width: 100%; height: auto; border-radius: 4px 4px 0 0; }
.afs-monitor-bar { height: 10px; margin: 0 -9px; background: linear-gradient(180deg, #2a3750, #1b2638); border-radius: 0 0 4px 4px; }
.afs-stand { width: 22%; height: 14px; margin: 0 auto; background: linear-gradient(180deg, #2a3750, #1b2638); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.afs-foot { width: 42%; height: 5px; margin: 0 auto; border-radius: 3px; background: #2a3750; }
.afs-cap { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted, #94a3b8); }
.afs-cap strong { color: #fff; font-weight: 600; }

/* przepływ między aplikacjami */
.afs-flow { display: grid; gap: 14px; justify-items: center; text-align: center; }
.afs-hub {
  padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; color: #fff;
  background: rgba(111, 211, 255, .14); border: 1px solid rgba(111, 211, 255, .5);
  box-shadow: 0 0 26px rgba(56, 189, 248, .25);
}
.afs-hub small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; color: var(--cyan, #6fd3ff); }
.afs-lane { position: relative; width: 100%; padding-top: 16px; }
.afs-lane-label { position: absolute; left: 0; right: 0; top: 0; font-size: 10.5px; color: var(--ink-muted, #94a3b8); letter-spacing: .02em; }
.afs-lane-track { position: relative; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(111, 211, 255, .55) 0 6px, transparent 6px 12px); }
.afs-lane-track::after { content: "▸"; position: absolute; right: -6px; top: -9px; font-size: 16px; line-height: 1; color: var(--cyan, #6fd3ff); }
.afs-lane--back .afs-lane-track { background: repeating-linear-gradient(90deg, rgba(74, 222, 128, .6) 0 6px, transparent 6px 12px); }
.afs-lane--back .afs-lane-track::after { content: "◂"; right: auto; left: -6px; color: #4ade80; }
.afs-flow-dot {
  position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan, #6fd3ff); box-shadow: 0 0 12px rgba(111, 211, 255, .9);
  animation: afs-dot-fwd var(--afp-cycle) linear infinite;
}
.afs-lane--back .afs-flow-dot { background: #4ade80; box-shadow: 0 0 12px rgba(74, 222, 128, .9); animation-name: afs-dot-back; }
@keyframes afs-dot-fwd  { 0% { left: 0; opacity: 0; } 3% { opacity: 1; } 20% { left: calc(100% - 10px); opacity: 1; } 22%, 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes afs-dot-back { 0%, 50% { left: calc(100% - 10px); opacity: 0; } 53% { opacity: 1; } 68% { left: 0; opacity: 1; } 70%, 100% { left: 0; opacity: 0; } }

/* klient: panel w przeglądarce + telefon */
.afs-client { position: relative; padding-bottom: 6px; }
.afs-browser { width: 68%; border-radius: 10px; overflow: hidden; background: #0d1d35; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.afs-browser-top { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #14233d; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.afs-browser-top i { width: 7px; height: 7px; border-radius: 50%; background: #3b4b66; }
.afs-url { margin-left: 8px; flex: 1; padding: 2px 10px; border-radius: 99px; font-size: 10.5px; color: var(--ink-muted, #94a3b8); background: rgba(255, 255, 255, .06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afs-browser-body { padding: 10px 12px 12px; }
.afs-browser-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.afs-browser-head b { font-family: var(--mono, monospace); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted, #94a3b8); font-weight: 600; }
.afs-browser-head b, .afs-count { white-space: nowrap; }
.afs-count { display: inline-grid; padding: 2px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 800; color: var(--ink, #0a1628); background: var(--cyan, #6fd3ff); animation: afp-badge-bg var(--afp-cycle) infinite; }
.afs-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.afs-table th { text-align: left; padding: 4px 6px; font-family: var(--mono, monospace); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted, #94a3b8); font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.afs-table td { padding: 6px; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.afs-table tr:last-child td { border-bottom: 0; }
.afs-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.afs-table th:nth-child(2), .afs-table td:nth-child(2) { display: none; }
.afs-tr--1 td { animation: afp-tr-ok var(--afp-cycle) infinite; }
.afs-cell { display: inline-grid; vertical-align: middle; }
.afs-cell > * { grid-area: 1 / 1; }
.afs-cell-sk { display: block; align-self: center; height: 8px; width: 80%; border-radius: 4px; background: linear-gradient(90deg, rgba(111, 211, 255, .12), rgba(111, 211, 255, .38), rgba(111, 211, 255, .12)); animation: afp-sk-vis var(--afp-cycle) infinite; }
.afs-cell-tx { animation: afp-tx-vis var(--afp-cycle) infinite; }
.afs-hd { display: inline-grid; }
.afs-hd > * { grid-area: 1 / 1; }
.afs-hd-a { animation: afp-hd-a var(--afp-cycle) infinite; }
.afs-hd-b { color: var(--cyan, #6fd3ff); animation: afp-dl-vis var(--afp-cycle) infinite; }
@keyframes afp-st-a { 0%, 48% { opacity: 1; } 50%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
.afs-st { display: inline-grid; }
.afs-st > * { grid-area: 1 / 1; text-align: center; }
.afs-st-a { animation: afp-st-a var(--afp-cycle) infinite; }
.afs-st-b { opacity: 0; animation: afp-sw-b var(--afp-cycle) infinite; }
@keyframes afp-hd-a { 0%, 21% { opacity: 0; } 25%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.afs-pill { display: inline-grid; padding: 1px 8px; border-radius: 999px; border: 1px solid transparent; font-style: normal; font-size: 10px; font-weight: 600; white-space: nowrap; }
.afs-pill--wait { color: #fcd34d; background: rgba(252, 211, 77, .12); border-color: rgba(252, 211, 77, .3); }
.afs-pill--ok   { color: #86efac; background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .3); }
.afs-pill--ask  { color: #7dd3fc; background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .3); }
.afs-pill--1    { animation: afp-pill-ok var(--afp-cycle) infinite; color: #fcd34d; background: rgba(252, 211, 77, .12); border-color: rgba(252, 211, 77, .3); }
.afs-client .afp-phone { position: absolute; right: -2px; bottom: -4px; z-index: 3; transform: scale(.9); transform-origin: 100% 100%; }

/* opis funkcji pod sceną */
.afs-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.afs-point { padding: 18px 20px; border-radius: 14px; background: var(--paper, #fff); border: 1px solid var(--line, #e2e5ec); }
.afs-point-num { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--ink, #0a1628); background: var(--cyan, #6fd3ff); }
.afs-point h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; color: var(--text, #0a1628); }
.afs-point p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2, #354360); }
.afs-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.afs-links .btn svg { flex: none; }
.afs-links .btn-outline { border-color: var(--line-strong, #8f9bb0); }

/* wejście do interaktywnej prezentacji integracji (docs/integrator-ksef-akceptacja-faktur.php) */
.afs-prez { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 26px;
  padding: 18px; border-radius: 18px; text-decoration: none; color: #e7ecf4;
  background: radial-gradient(ellipse at 0 0, rgba(56,182,240,.22), transparent 60%), linear-gradient(135deg, #0a1628, #132744 60%, #0a1628);
  border: 1px solid rgba(111,211,255,.35); box-shadow: 0 18px 44px rgba(7,24,43,.22); transition: transform .25s, box-shadow .25s, border-color .25s; }
.afs-prez:hover, .afs-prez:focus-visible { transform: translateY(-3px); border-color: #6fd3ff; box-shadow: 0 24px 56px rgba(7,24,43,.32), 0 0 0 3px rgba(111,211,255,.25); }
.afs-prez-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1200 / 630; background: #0a1628; }
.afs-prez-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.afs-prez:hover .afs-prez-thumb img { transform: scale(1.04); }
.afs-prez-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 4px; color: #0a1628;
  background: linear-gradient(135deg, #6fd3ff, #38b6f0); box-shadow: 0 0 0 8px rgba(111,211,255,.25), 0 10px 26px rgba(2,10,24,.5);
  animation: afs-prez-pulse 2.4s ease-in-out infinite; }
@keyframes afs-prez-pulse { 50% { box-shadow: 0 0 0 14px rgba(111,211,255,.08), 0 10px 26px rgba(2,10,24,.5); } }
.afs-prez-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.afs-prez-kicker { font: 600 11.5px/1.3 var(--mono, "JetBrains Mono", Consolas, monospace); letter-spacing: 1.4px; text-transform: uppercase; color: #6fd3ff; }
.afs-prez-title { font: 700 22px/1.25 "Space Grotesk", Inter, sans-serif; color: #fff; }
.afs-prez-text { font-size: 14.5px; line-height: 1.6; color: #c9d6e6; }
.afs-prez-cta { align-self: flex-start; margin-top: 6px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: #0a1628; background: linear-gradient(135deg, #6fd3ff, #38b6f0); }
@media (max-width: 760px) {
  .afs-prez { grid-template-columns: 1fr; gap: 16px; }
  .afs-prez-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .afs-prez-play { animation: none; } }

@media (max-width: 1000px) {
  .afs { grid-template-columns: 1fr; padding: 26px 18px 22px; gap: 22px; }
  .afs-flow { grid-template-columns: 1fr; }
  .afs-lane { max-width: 300px; }
  .afs-monitor, .afs-browser { max-width: 560px; }
  .afs-browser { width: 100%; }
  .afs-client { padding-bottom: 0; }
  .afs-client .afp-phone { position: relative; right: auto; bottom: auto; margin: -34px 0 0 auto; transform-origin: 100% 0; }
  .afs-points { grid-template-columns: 1fr; }
}
