/* =========================================================
   AdPIN · arkusz stylów
   Skala typografii: Tailwind (12 14 16 18 20 24 30 36 48 60)
   Odstępy: 2 4 8 12 16 24 32 40 48 64 80 96
   ========================================================= */

/* ---------- czcionki (lokalnie, bez zewnętrznych serwerów) ---------- */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../assets/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../assets/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../assets/fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../assets/fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 700ms;

  --font: "Geist", "Manrope", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  /* motyw jasny */
  --bg: #FFFFFF;
  --surface: #F5F5F3;
  --surface-2: #EDEDEA;
  --surface-3: #E3E3DF;
  --line: #DCDCD7;
  --text: #111111;
  --muted: #5E5E5E;
  --accent: #2F5BE0;
  --accent-ink: #FFFFFF;
  --ok: #0A7040;
  --warn: #8A5600;
  --err: #C23232;
  --glass: rgba(255, 255, 255, 0.82);
  --overlay: rgba(255, 255, 255, 0.94);
  --shadow: 0 24px 48px rgba(17, 17, 17, 0.08);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --line: #313131;
  --text: #F2F2F2;
  --muted: #9B9B9B;
  --accent: #6E9BFF;
  --accent-ink: #000000;
  --ok: #3DDC84;
  --warn: #F5B83D;
  --err: #FF6B6B;
  --glass: rgba(24, 24, 24, 0.8);
  --overlay: rgba(0, 0, 0, 0.94);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #181818;
    --surface-2: #1F1F1F;
    --surface-3: #272727;
    --line: #313131;
    --text: #F2F2F2;
    --muted: #9B9B9B;
    --accent: #6E9BFF;
    --accent-ink: #000000;
    --ok: #3DDC84;
    --warn: #F5B83D;
    --err: #FF6B6B;
    --glass: rgba(24, 24, 24, 0.8);
    --overlay: rgba(0, 0, 0, 0.94);
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* przewijanie sekcja po sekcji: natywne przyciąganie przeglądarki, bez przejmowania kółka.
   Na dużych ekranach strona zawsze zatrzymuje się na sekcji, na mniejszych tylko w jej pobliżu,
   żeby nie walczyć z bezwładnością palca. Sekcje wyższe niż ekran przewijają się normalnie. */
html { scroll-snap-type: y proximity; }
@media (min-width: 900px) and (min-height: 640px) {
  html { scroll-snap-type: y mandatory; }
}
.hero, #uslugi, .service + .service, #jak-pracuje, #o-mnie, #faq, #kontakt { scroll-snap-align: start; }
.tagline { scroll-snap-align: center; }
.footer { scroll-snap-align: end; }
/* sekcje bez dużego górnego odstępu: miejsce na pływającą nawigację */
.service { scroll-margin-top: 32px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .h2, .h3 { text-wrap: balance; font-weight: 600; }
p, li, dd { text-wrap: pretty; }
b { font-weight: 600; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
i.ph { line-height: 1; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 12px 16px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 600;
  transform: translateY(-200%);
  transition: transform 400ms var(--ease);
}
.skip:focus { transform: none; }

/* ---------- typografia ---------- */
.h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.015em; }
@media (min-width: 768px) {
  .h2 { font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
  .h3 { font-size: 30px; line-height: 36px; }
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 9999px; border: 1px solid transparent;
  font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap;
  transition: transform 500ms var(--ease), background-color 500ms var(--ease),
              border-color 500ms var(--ease), color 500ms var(--ease), opacity 500ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn--sm { font-size: 14px; line-height: 20px; }
.btn--lg { min-height: 48px; padding: 12px 24px; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn--soft { background: var(--surface-3); border-color: var(--line); }
.btn--soft:hover { background: var(--line); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn i.ph { font-size: 18px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 9999px;
  border: 1px solid var(--line); background: transparent;
  transition: background-color 500ms var(--ease), transform 500ms var(--ease), opacity 500ms var(--ease);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn i { font-size: 18px; grid-area: 1 / 1; }

/* przełącznik motywu: ikony obracają się zamiast znikać */
.theme-toggle i { transition: transform 700ms var(--ease), opacity 500ms var(--ease); }
.theme-toggle .icon-sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .icon-sun { transform: none; opacity: 1; }
:root[data-theme="dark"] .theme-toggle .icon-moon { transform: rotate(90deg) scale(.4); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { transform: none; opacity: 1; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { transform: rotate(90deg) scale(.4); opacity: 0; }
}

/* ---------- nawigacja: wyspa ---------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: center; padding-inline: 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  margin-top: 16px; width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 16px; border-radius: 9999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: background-color var(--dur) var(--ease);
}
@media (min-width: 768px) { .nav { margin-top: 24px; } }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: -0.01em; }
.brand__mark { width: 24px; height: 24px; color: var(--text); flex: none; }
.nav .brand { margin-right: 8px; min-height: 44px; }
.nav__links { display: none; gap: 4px; margin-right: 8px; }
.nav__links a {
  display: block; padding: 12px 12px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
  transition: color 500ms var(--ease), background-color 500ms var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--surface-3); }
.nav__links a[aria-current="true"] { color: var(--text); background: var(--surface-3); }
.nav__cta { display: none; }

.burger {
  position: relative; width: 44px; height: 44px; border-radius: 9999px;
  border: 1px solid var(--line); background: transparent;
}
.burger span {
  position: absolute; left: 14px; width: 14px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 700ms var(--ease), top 700ms var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
}
/* podstrony: przycisk telefonu jest widoczny zawsze */
.page .nav__cta { display: inline-flex; }

/* menu pełnoekranowe */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: var(--overlay);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease), visibility 0s; }
.menu__list { display: grid; gap: 8px; text-align: center; }
.menu__list > li {
  transform: translateY(24px); opacity: 0;
  transition: transform 600ms var(--ease), opacity 600ms var(--ease);
  transition-delay: 0ms;
}
.menu.is-open .menu__list > li {
  transform: none; opacity: 1;
  transition-delay: calc(60ms + var(--i) * 40ms);
}
.menu__list a:not(.btn) { display: block; padding: 8px 16px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.menu__list a[aria-current="true"]:not(.btn) { color: var(--accent); }
.menu__cta { margin-top: 24px; }

/* ---------- hero ---------- */
.hero { padding: 128px 0 64px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__title {
  max-width: 680px;
  font-size: 36px; line-height: 40px; letter-spacing: -0.03em; font-weight: 600;
}
.hero__sub { max-width: 620px; margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--muted); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__proof { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.hero__proof i { font-size: 18px; color: var(--ok); }

@media (min-width: 768px) {
  .hero { padding: 176px 0 96px; }
  .hero__title { font-size: 60px; line-height: 1; }
  .hero__sub { font-size: 20px; line-height: 28px; }
}
@media (min-width: 1080px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: 144px 0 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; }
}

/* objawy: z czym dzwonić */
.triage {
  border-radius: 24px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.triage__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 12px 12px 8px;
}
.triage__title { font-size: 14px; line-height: 20px; font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
}
.chip__dot { width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.chip.is-open { color: var(--ok); }
.triage__list { display: grid; }
.triage__list li + li { border-top: 1px solid var(--line); }
.triage__row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  padding: 16px 12px; border-radius: 16px;
  transition: background-color 500ms var(--ease);
}
.triage__row:hover { background: var(--surface-2); }
.triage__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-3); font-size: 20px;
}
.triage__text { display: grid; gap: 2px; }
.triage__name { font-size: 15px; line-height: 20px; font-weight: 600; }
.triage__meta { font-size: 13px; line-height: 18px; color: var(--muted); }
.triage__go { font-size: 18px; color: var(--muted); transition: transform 500ms var(--ease), color 500ms var(--ease); }
.triage__row:hover .triage__go { transform: translateX(4px); color: var(--text); }

/* ---------- sekcje ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--surface); }
.section__title { max-width: 680px; margin-bottom: 48px; }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 28px; }

/* ---------- usługi ---------- */
.services { padding-bottom: 32px; }
.services .section__title { margin-bottom: 16px; }
.service {
  display: grid; gap: 32px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.services .section__title + .service { border-top: 0; padding-top: 24px; }
.service__lead { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 24px; max-width: 480px; }
.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.ticks b { color: var(--text); }
.ticks i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 9999px; background: var(--surface-3); color: var(--ok); font-size: 12px; }

@media (min-width: 1000px) {
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; padding: 80px 0; }
  .service--flip .service__copy { order: 2; }
}

/* ---------- dema wewnątrz usług ---------- */
.demo {
  min-width: 0;
  border-radius: 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 16px; align-content: start;
}
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.demo__file { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.demo__file i { font-size: 16px; }
.demo__summary {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 14px; line-height: 20px; color: var(--muted);
  min-height: 40px;
}
.demo__summary i { font-size: 18px; margin-top: 1px; flex: none; }
.demo__summary.is-ok { color: var(--ok); }
.demo__summary.is-warn { color: var(--warn); }

/* demo PC */
.pc-list { display: grid; gap: 4px; }
.pc-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 8px; border-radius: 10px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 500ms var(--ease), background-color 500ms var(--ease);
}
.pc-row__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-3); font-size: 18px; grid-row: span 2; }
.pc-row__name { font-size: 14px; line-height: 20px; font-weight: 500; }
.pc-row__val { font-size: 12px; line-height: 16px; color: var(--muted); text-align: right; white-space: nowrap; }
.pc-row__bar { grid-column: 2 / 4; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.pc-row__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--muted); transform-origin: left; transform: scaleX(0); transition: transform 1100ms var(--ease), background-color 500ms var(--ease); }
.pc-row.is-testing .pc-row__bar { animation: breathe 1.2s var(--ease) infinite; }
.pc-row.is-ok .pc-row__bar i { background: var(--ok); }
.pc-row.is-ok .pc-row__val { color: var(--ok); }
.pc-row.is-warn { box-shadow: inset 0 0 0 1px var(--warn); }
.pc-row.is-warn .pc-row__bar i { background: var(--warn); }
.pc-row.is-warn .pc-row__val { color: var(--warn); }
@media (max-width: 520px) {
  .pc-row { grid-template-columns: 32px minmax(0, 1fr); }
  .pc-row__icon { grid-row: span 3; }
  .pc-row__val { text-align: left; white-space: normal; }
  .pc-row__bar { grid-column: 2; }
}
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* demo WEB */
/* makieta przeglądarki jest samym obiektem, bez dodatkowej karty wokół */
.demo--web { padding: 0; gap: 12px; background: none; border: 0; }
.demo--web .demo__summary { padding: 0 4px; min-height: 0; }
.browser { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 4px; }
.browser__dots i { width: 8px; height: 8px; border-radius: 9999px; background: var(--surface-3); }
.browser__url {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px; background: var(--surface-2);
  font-size: 12px; line-height: 16px; color: var(--muted);
}
.seg {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 12px 12px 0; padding: 2px; border-radius: 9999px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg__btn {
  position: relative; z-index: 1; min-height: 36px; padding: 8px; border: 0; background: transparent; border-radius: 9999px;
  font-size: 13px; line-height: 16px; font-weight: 600; color: var(--muted);
  transition: color 500ms var(--ease);
}
.seg__btn[aria-selected="true"] { color: var(--bg); }
.seg__pill {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 3);
  border-radius: 9999px; background: var(--text);
  transition: transform 600ms var(--ease);
}
.browser__stage { position: relative; height: 272px; }
.view {
  position: absolute; inset: 0; padding: 16px;
  animation: view-in 500ms var(--ease);
}
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* szkic rysowany na żywo */
.view--wire { padding: 12px; }
.wire { display: block; width: 100%; height: 100%; overflow: visible; }
.wire__grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0; }
.wire .draw {
  fill: none; stroke: var(--muted); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
}
.wire .draw--heavy { stroke: var(--text); stroke-width: 9; }
.wire .draw--mid { stroke-width: 4; }
.wire .draw--thin { stroke: var(--muted); stroke-width: 4; }
.wire .draw--faint { stroke: var(--line); }
.wire .draw--accent { stroke: var(--accent); stroke-width: 1.5; }
.wire .note {
  fill: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 500;
  opacity: 0;
}
.wire .note--center { text-anchor: middle; }
.wire__ripple { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wire__cursor { opacity: 0; }
.wire__cursor path { fill: var(--text); stroke: var(--bg); stroke-width: 1; stroke-linejoin: round; }

.view--wire.is-on .wire__grid line { animation: wire-fade 600ms var(--ease) forwards; }
.view--wire.is-on .draw { animation: wire-draw 700ms var(--ease) var(--t, 0ms) forwards; }
.view--wire.is-on .note { animation: wire-note 600ms var(--ease) var(--t, 0ms) forwards; }
.view--wire.is-on .wire__cursor { animation: wire-cursor 2600ms var(--ease) forwards; }
.view--wire.is-on .wire__ripple { animation: wire-ripple 700ms var(--ease) 2500ms forwards; }

@keyframes wire-fade { to { opacity: 1; } }
@keyframes wire-draw {
  0% { opacity: 0; stroke-dashoffset: 1; }
  8% { opacity: 1; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes wire-note { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes wire-cursor {
  0%   { opacity: 0; transform: translate(300px, 230px); }
  8%   { opacity: 1; transform: translate(300px, 230px); }
  24%  { transform: translate(440px, 26px); }
  44%  { transform: translate(232px, 72px); }
  62%  { transform: translate(462px, 156px); }
  80%  { transform: translate(310px, 236px); }
  100% { opacity: 1; transform: translate(68px, 144px); }
}
@keyframes wire-ripple {
  0% { opacity: .9; transform: scale(.4); }
  100% { opacity: 0; transform: scale(2.2); }
}

.view--code pre { margin: 0; font-size: 12px; line-height: 20px; white-space: pre; overflow-x: auto; }
.view--code code { display: block; }
.view.is-on.view--code code { animation: type 1600ms steps(28) both; }
@keyframes type { from { clip-path: inset(0 100% 100% 0); } 40% { clip-path: inset(0 0 70% 0); } to { clip-path: inset(0 0 0 0); } }
.c-t { color: var(--accent); }
.c-a { color: var(--warn); }
.c-s { color: var(--ok); }

.mini-nav { display: flex; gap: 12px; align-items: center; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 24px; }
.mini-nav b { color: var(--text); margin-right: auto; font-size: 14px; line-height: 20px; }
.mini-h { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.mini-p { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.mini-btn {
  display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 9999px;
  background: var(--text); color: var(--bg); font-size: 12px; line-height: 16px; font-weight: 600;
}
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mini-stats span {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px;
  border: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ok);
}

/* demo SIEĆ */
.net { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--surface-2); }
.net__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.net__lines line {
  stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  transition: stroke 600ms var(--ease), opacity 600ms var(--ease);
}
.net__lines line.is-ok { stroke: var(--ok); }
.net__lines line.is-err { stroke: var(--err); stroke-dasharray: 4 4; }
.net__lines line.is-hidden { opacity: 0; }
.node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 2px;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.node__dot {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 18px;
  transition: border-color 500ms var(--ease), color 500ms var(--ease), background-color 500ms var(--ease), transform 500ms var(--ease);
}
.node__label { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.node__ping { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); min-height: 16px; white-space: nowrap; }
.node--hub .node__dot { width: 48px; height: 48px; font-size: 22px; background: var(--text); color: var(--bg); border-color: var(--text); }
.node.is-ok .node__dot { border-color: var(--ok); color: var(--ok); }
.node.is-ok .node__ping { color: var(--ok); }
.node.is-err .node__dot { border-color: var(--err); color: var(--err); }
.node.is-err .node__ping { color: var(--err); }
.node.is-scanning .node__dot { transform: scale(1.12); }
.node--ap.is-hidden { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
@media (max-width: 520px) {
  .node__label { display: none; }
  .node__dot { width: 32px; height: 32px; font-size: 16px; }
}

/* ---------- tagline ---------- */
.tagline { padding: 96px 0; border-block: 1px solid var(--line); }
.tagline__text {
  max-width: 900px;
  font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em;
}
.tagline__text .w {
  color: color-mix(in srgb, var(--text) 50%, var(--bg));
  transition: color 600ms var(--ease);
}
.tagline__text .w.is-on { color: var(--text); }
@media (min-width: 768px) { .tagline { padding: 160px 0; } .tagline__text { font-size: 48px; line-height: 1.05; } }
@media (min-width: 1080px) { .tagline__text { font-size: 60px; line-height: 1.05; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- jak pracuję ---------- */
.steps { display: grid; gap: 32px; }
.step { padding-top: 24px; border-top: 2px solid var(--text); }
.step__num {
  display: block; margin-bottom: 16px;
  font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.step__title { font-size: 20px; line-height: 28px; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 360px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.promises {
  margin-top: 64px; display: grid; gap: 16px;
  padding: 24px; border-radius: 24px; background: var(--surface);
}
.promises li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); }
.promises li i { font-size: 24px; color: var(--accent); flex: none; }
.promises b { display: block; color: var(--text); font-size: 16px; line-height: 24px; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px; } }

/* FAQ */
.faq { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: 128px; }
}
.faq__list { display: grid; gap: 8px; }
.qa { border-radius: 16px; background: var(--bg); border: 1px solid var(--line); transition: border-color 500ms var(--ease); }
.qa[open] { border-color: var(--muted); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; font-size: 16px; line-height: 24px; font-weight: 600;
  border-radius: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; font-size: 20px; color: var(--muted); transition: transform 600ms var(--ease); }
.qa[open] summary i { transform: rotate(45deg); }
.qa__body { padding: 0 24px 24px; color: var(--muted); max-width: 640px; }
.qa[open] .qa__body { animation: qa-in 500ms var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* CTA */
.cta { padding: 96px 0; }
.cta__card {
  display: grid; justify-items: center; text-align: center; gap: 24px;
  padding: 48px 24px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.cta__phone {
  font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 500ms var(--ease);
}
.cta__phone:hover { color: var(--accent); }
.hours { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 8px; }
.hours div { display: grid; gap: 2px; }
.hours dt { font-size: 12px; line-height: 16px; color: var(--muted); }
.hours dd { font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.cta__now { font-size: 14px; line-height: 20px; color: var(--muted); }
.cta__now.is-open { color: var(--ok); }
@media (min-width: 768px) {
  .cta__card { padding: 80px 48px; }
  .cta__phone { font-size: 72px; line-height: 1; }
}

/* O mnie */
.about__grid { display: grid; gap: 48px; align-items: center; }
.about__lead { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 28px; }
.about__text { margin-top: 16px; max-width: 680px; color: var(--muted); }
.about__card {
  padding: 32px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.about__id { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.about__avatar {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em;
}
.about__name { font-size: 20px; line-height: 28px; font-weight: 600; }
.about__role { font-size: 14px; line-height: 20px; color: var(--muted); }
.about__facts { display: grid; gap: 16px; }
.about__facts dt { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.about__facts dt i { font-size: 16px; color: var(--accent); }
.about__facts dd { margin-top: 4px; font-size: 16px; line-height: 24px; font-weight: 500; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; } }

/* stopka */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer__meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer__links a { display: inline-block; padding: 12px 0; font-size: 14px; line-height: 20px; color: var(--muted); transition: color 500ms var(--ease); }
.footer__links a:hover { color: var(--text); }

/* mobilny pasek połączenia */
.callbar { display: none; }
@media (max-width: 899px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--glass); border-top: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transform: translateY(100%);
    transition: transform 500ms var(--ease);
  }
  .callbar.is-on { transform: none; }
  .callbar .btn { width: 100%; }
  body:has(.callbar) .footer { padding-bottom: 104px; }
}

/* ---------- strony pomocnicze ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page__main { flex: 1; padding: 144px 0 96px; }
.prose { max-width: 680px; }
.prose h2 { font-size: 20px; line-height: 28px; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 24px; display: grid; gap: 4px; }
.notfound { display: grid; justify-items: start; gap: 24px; max-width: 680px; }
.notfound__code { font-size: 96px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
  .tagline__text .w { color: var(--text); }
}
