/* ============================================================
   PakFlow — arkusz stylów
   Motyw jasny, dopasowany do interfejsu aplikacji desktopowej:
   białe panele, jasnoszare tło, niebieski akcent.

   1. Zmienne i reset
   2. Elementy współdzielone (kontener, przyciski, nagłówki)
   3. Nawigacja
   4. Hero + makieta aplikacji
   5. Pasek faktów
   6. Funkcje
   7. Jak działa
   8. Integracja
   8b. Wersje
   9. Cennik
   9b. Tabela porównawcza
   10. FAQ
   11. Kontakt / formularz
   12. Stopka
   13. Animacje i RWD
   ============================================================ */

/* ---------- 1. Zmienne i reset ---------- */
:root {
  --bg:          #ffffff;
  --bg-2:        #f6f7fa;
  --surface:     #ffffff;
  --surface-2:   #f2f4f8;
  --line:        #e6e9ef;
  --line-strong: #d3d8e2;

  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-faint:  #94a3b8;

  --accent:      #2563eb;
  --accent-2:    #0ea5e9;
  --accent-dim:  #eff4ff;
  --danger:      #dc2626;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 2px rgba(16, 24, 40, .05);
  --shadow:      0 20px 44px -24px rgba(15, 23, 42, .3);
  --container:   1180px;
  --ease:        cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; }

.muted { color: var(--text-muted); }
.small { font-size: .85rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 2. Elementy współdzielone ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 2.5rem, 880px); }

.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.6rem); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .55);
}
.btn-primary:hover { background: #1d4fd8; box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .6); }

.btn-ghost {
  background: #fff; border-color: var(--line-strong); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.05rem; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 3. Nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 12px rgba(16, 24, 40, .05);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .6);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-weight: 500; letter-spacing: -.02em; font-size: 1.15rem; }
.logo-text strong { font-weight: 800; }
.logo-tag {
  padding-left: .7rem; margin-left: .1rem; border-left: 1px solid var(--line-strong);
  font-size: .78rem; color: var(--text-muted); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav > a { font-size: .93rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav > a:hover { color: var(--accent); }
.nav .nav-cta { color: #fff; }

.burger { display: none; background: none; border: 0; padding: .4rem; }
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(620px 320px at 20% 25%, rgba(37, 99, 235, .10), transparent 70%),
    radial-gradient(560px 300px at 80% 8%, rgba(14, 165, 233, .09), transparent 70%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; margin-bottom: 1.4rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: .82rem; color: var(--text-muted);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, .5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.lead { font-size: clamp(1.02rem, 1.5vw, 1.13rem); color: var(--text-muted); max-width: 34em; }
.lead-sm { color: var(--text-muted); font-size: 1.02rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; font-size: .88rem; color: var(--text-muted); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: .9rem; }

/* --- Makieta aplikacji (odwzorowuje okno programu) --- */
.hero-visual { position: relative; }

.app-window {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-10px); } }

.app-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.tl { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.tl.red { background: #ff5f57; } .tl.yellow { background: #febc2e; } .tl.green { background: #28c840; }
.app-title { margin-left: .7rem; font-size: .78rem; color: var(--text-muted); font-weight: 500; }

.app-body { padding: 1.1rem; }

.app-order { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.app-order .muted { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.order-id { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }

.pill { padding: .28rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.pill-live { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(37, 99, 235, .2); }

.scanbox {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1rem; margin-bottom: 1rem;
  border: 1px dashed rgba(37, 99, 235, .35); border-radius: var(--radius-sm);
  background: var(--accent-dim);
}
.barcode { width: 150px; height: 44px; color: #334155; }
.scan-hint { font-size: .78rem; color: var(--text-muted); }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 78%; } }

.app-items { display: grid; gap: .4rem; margin-bottom: 1rem; }
.app-items li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .6rem;
  padding: .55rem .7rem; border-radius: 8px; font-size: .86rem;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid transparent;
}
.app-items .tick { text-align: center; font-weight: 700; }
.app-items .done { color: var(--text); }
.app-items .done .tick { color: #16a34a; }
.app-items .active {
  background: var(--accent-dim); border-color: rgba(37, 99, 235, .3); color: var(--text);
}
.app-items .active .tick { color: var(--accent); }
.app-items .it-qty { font-variant-numeric: tabular-nums; font-weight: 600; }

.app-foot { display: flex; align-items: center; gap: .8rem; }
.progress { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .65rem;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: var(--shadow); font-size: .82rem;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.3; }
.float-card .fc-ico {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700;
}
.fc-ico.ok  { background: #dcfce7; color: #16a34a; }
.fc-ico.bad { background: #fee2e2; color: var(--danger); }
.fc-1 { top: -18px; right: -14px; animation: floaty 6s ease-in-out infinite .4s; }
.fc-2 { bottom: -22px; left: -22px; animation: floaty 6.5s ease-in-out infinite 1.1s; }

/* ---------- 5. Pasek faktów ---------- */
.stats { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat { padding: 1.6rem 1.2rem; text-align: center; background: var(--bg-2); }
.stat-num {
  display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat-lab { font-size: .85rem; color: var(--text-muted); }

/* ---------- 6. Funkcje ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  padding: 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 18px 36px -22px rgba(37, 99, 235, .5);
}
.card-ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem;
  border-radius: 11px; background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(37, 99, 235, .15);
}
.card-ico svg { width: 22px; height: 22px; }
.card p { color: var(--text-muted); font-size: .93rem; margin: 0; }
.card-list { display: grid; gap: .45rem; margin: 0; }
.card-list li { display: flex; gap: .55rem; font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.card-list li::before { content: "✓"; flex: none; color: var(--accent); font-weight: 700; font-size: .8rem; margin-top: .15rem; }

/* ---------- 7. Jak działa ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  content: ""; position: absolute; top: 14px; left: 0; right: -1.5rem; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step:last-child::before { right: 0; }
.step-num {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(37, 99, 235, .25); color: var(--accent);
  font-size: .75rem; font-weight: 700;
}
.step p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* wariant z dziewięcioma krokami — kafelki zamiast osi czasu */
.steps-9 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps-9 .step {
  display: flex; align-items: flex-start; gap: .9rem; padding: 1.15rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s var(--ease);
}
.steps-9 .step:hover { border-color: rgba(37, 99, 235, .35); transform: translateY(-3px); }
.steps-9 .step::before { display: none; }
.steps-9 .step-num { position: static; flex: none; }
.steps-9 .step p { color: var(--text); font-size: .93rem; }

/* ---------- 8. Integracja ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.checklist { display: grid; gap: .7rem; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.checklist li::before {
  content: "✓"; flex: none;
  display: grid; place-items: center; width: 20px; height: 20px; margin-top: .15rem;
  border-radius: 50%; background: var(--accent-dim); color: var(--accent);
  font-size: .7rem; font-weight: 700;
}

.flow { display: grid; gap: .3rem; }
.flow-node {
  display: grid; gap: .15rem; padding: 1.2rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.flow-node.accent {
  border-color: rgba(37, 99, 235, .4); background: var(--accent-dim);
  box-shadow: 0 14px 30px -20px rgba(37, 99, 235, .7);
}
.flow-ico { font-size: 1.5rem; }
.flow-arrow { display: grid; justify-content: center; gap: 3px; padding: .25rem 0; }
.flow-arrow span {
  display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  opacity: .3; animation: down 1.8s infinite;
}
.flow-arrow span:nth-child(2) { animation-delay: .2s; }
.flow-arrow span:nth-child(3) { animation-delay: .4s; }
@keyframes down { 50% { opacity: 1; } }

.note {
  margin: 1.6rem 0 2rem; padding: 1.1rem 1.3rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--accent-dim);
  font-size: .92rem; color: var(--text-muted); line-height: 1.6;
}
.note strong { display: block; color: var(--text); margin-bottom: .2rem; }

/* ---------- 8b. Wersje ---------- */
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: stretch; }
.version {
  padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.version-accent { border-color: rgba(37, 99, 235, .35); box-shadow: 0 18px 40px -28px rgba(37, 99, 235, .6); }
.version-tag {
  display: inline-block; margin-bottom: .9rem; padding: .25rem .8rem;
  border: 1px solid rgba(37, 99, 235, .2); border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--accent);
  background: var(--accent-dim);
}
.version p { color: var(--text-muted); font-size: .95rem; }
.version p strong { color: var(--text); }
.version .checklist { margin-bottom: 0; }

/* ---------- 9. Cennik ---------- */
/* uwaga: centrowanie przez margin auto, a nie translateX —
   klasa .reveal.visible ustawia transform: none i zniosłaby przesunięcie */
.billing-toggle {
  display: flex; width: max-content; gap: .25rem; padding: .25rem; margin: 0 auto 2.5rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
}
.bt-opt {
  padding: .5rem 1.2rem; border: 0; border-radius: 999px; background: none;
  color: var(--text-muted); font-size: .9rem; font-weight: 600; transition: .2s;
}
.bt-opt.is-active { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.save { font-size: .72rem; opacity: .8; }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.6rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan-featured {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 24px 50px -30px rgba(37, 99, 235, .75);
}
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: .25rem .8rem; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
}
.plan-desc { color: var(--text-muted); font-size: .9rem; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: .25rem; margin: .6rem 0 .2rem; }
.amount { font-size: 2.35rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cur { font-size: 1.1rem; font-weight: 600; }
.per { color: var(--text-muted); font-size: .9rem; }
.plan-note { color: var(--text-muted); font-size: .85rem; }
.plan-feats { display: grid; gap: .6rem; margin: 1.4rem 0 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.plan-feats li { display: flex; gap: .6rem; font-size: .9rem; color: var(--text-muted); }
.plan-feats li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; }
.price-foot { text-align: center; margin-top: 1.6rem; color: var(--text-muted); font-size: .85rem; }

/* blok „plugin na zamówienie" pod cennikiem */
.addon {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: 2.2rem; padding: 1.8rem 2rem;
  border: 1px solid rgba(37, 99, 235, .3); border-radius: var(--radius);
  background:
    radial-gradient(520px 200px at 8% 0%, rgba(37, 99, 235, .09), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.addon-copy { max-width: 62ch; }
.addon-copy h3 { margin-bottom: .4rem; font-size: 1.25rem; }
.addon-copy p { margin: 0; color: var(--text-muted); font-size: .93rem; }
.addon-tag {
  display: inline-block; margin-bottom: .7rem; padding: .25rem .8rem;
  border-radius: 999px; background: var(--accent-dim); color: var(--accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.addon .btn { flex: none; }

/* ---------- 9b. Tabela porównawcza ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.compare-wrap {
  overflow-x: auto; max-width: 880px; margin-inline: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch;
}
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .84rem; }
.compare thead th {
  position: sticky; top: 0; z-index: 1;
  padding: .7rem .8rem; text-align: center; white-space: nowrap;
  background: var(--surface-2); border-bottom: 1px solid var(--line-strong);
  font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text);
}
.compare thead th:first-child { text-align: left; }
.compare tbody th {
  padding: .5rem .8rem; text-align: left; font-weight: 500; color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.compare tbody td { padding: .5rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover th { color: var(--text); }
.compare tbody tr:hover th, .compare tbody tr:hover td { background: var(--bg-2); }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no  { color: var(--text-faint); }
.compare .val { font-weight: 600; color: var(--text); }
.scroll-hint { display: none; }   /* podpowiedź tylko tam, gdzie tabela faktycznie się przewija */

/* ---------- 10. FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item.open { border-color: rgba(37, 99, 235, .4); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1.1rem 1.3rem; background: none; border: 0; color: var(--text);
  font-size: 1rem; font-weight: 600; text-align: left;
}
.faq-ico { position: relative; flex: none; width: 14px; height: 14px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 2px; border-radius: 2px;
  background: var(--accent); transition: transform .25s var(--ease);
}
.faq-ico::after { transform: rotate(90deg); }
.faq-item.open .faq-ico::after { transform: rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--text-muted); font-size: .95rem; }
.faq-a code {
  padding: .1rem .4rem; border-radius: 6px; font-size: .88em;
  background: var(--surface-2); color: var(--accent); word-break: break-all;
}

/* ---------- 11. Kontakt ---------- */
.cta-box {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.8rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(600px 260px at 10% 0%, rgba(37, 99, 235, .07), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.cta-copy p { color: var(--text-muted); }
.cta-contacts { display: grid; gap: .35rem; margin-top: 1.2rem; font-size: .92rem; }
.cta-contacts a { color: var(--accent); font-weight: 500; }
.cta-contacts a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-content: start; }
/* align-content: start — bez tego pole bez komunikatu błędu rozciąga się
   do wysokości sąsiada w tym samym wierszu siatki */
.field { display: grid; gap: .35rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text); }
.opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; font-size: .92rem;
  color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
/* min-height zrównuje wysokość <input> i <select> — natywny select jest niższy.
   Checkbox musi zostać wykluczony, inaczej rozciąga się na 48 px i ucieka od etykiety. */
.field input:not([type="checkbox"]), .field select { min-height: 48px; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.err { min-height: 1em; font-size: .78rem; color: var(--danger); }

/* pułapka na boty — ukryta przed ludźmi, widoczna dla automatów */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .85rem; color: var(--text-muted); font-weight: 400; }
.check input { width: 16px; height: 16px; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.consent .err { margin-top: .2rem; }

.form .btn { grid-column: 1 / -1; }

/* Komunikat po wysłaniu — pusty nie zajmuje miejsca, wypełniony jest wyraźnym panelem */
.form-status { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
/* zero wysokości zamiast display:none — element zostaje w drzewie dostępności,
   dzięki czemu czytniki ekranu odczytają wstawiony komunikat (aria-live) */
.form-status:empty { height: 0; margin: 0; overflow: hidden; }
.form-status.ok, .form-status.bad {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 500; line-height: 1.5;
}
.form-status.ok, .form-status.bad { animation: status-in .35s var(--ease); }
@keyframes status-in { from { opacity: 0; transform: translateY(-6px); } }

.form-status.ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.form-status.bad { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.form-status.ok::before, .form-status.bad::before {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.form-status.ok::before  { content: "✓"; background: #10b981; }
.form-status.bad::before { content: "!"; background: var(--danger); }

/* ---------- 11c. Podstrony sprzedażowe (landing) ---------- */
.landing-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(37, 99, 235, .09), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.landing-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: .6rem; }
.landing-hero .lead { max-width: 58ch; }
.landing-hero .hero-actions { margin-bottom: 0; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: 1.4rem; font-size: .85rem; color: var(--text-muted);
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

.landing-body { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); }
.landing-body > p { color: var(--text-muted); font-size: 1rem; max-width: 68ch; }
.landing-body h2 { margin: 2.8rem 0 1.2rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.landing-body > p:first-child { margin-top: 0; }
.landing-body .checklist { margin: 0 0 1rem; }
.landing-body .checklist li { font-size: .97rem; }
.landing-steps { grid-template-columns: repeat(2, 1fr); }
.landing-body .addon { margin-top: 3rem; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-item {
  display: grid; gap: .35rem; padding: 1.2rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s;
}
.related-item:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .35); }
.related-item strong { font-size: .98rem; line-height: 1.35; }
.related-item span {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text-muted); font-size: .87rem; line-height: 1.5;
}

/* ---------- 11d. Poradnik ---------- */
.post-meta { margin: 1rem 0 0; color: var(--text-muted); font-size: .87rem; }

.posts { display: grid; gap: 1rem; }
.post-card {
  display: grid; gap: .5rem; padding: 1.5rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.post-card:hover {
  transform: translateY(-3px); border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 18px 36px -22px rgba(37, 99, 235, .45);
}
.post-card-meta {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}
.post-card strong { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
.post-card-lead { color: var(--text-muted); font-size: .94rem; line-height: 1.6; }
.post-card-more { color: var(--accent); font-size: .9rem; font-weight: 600; }

/* treść artykułu */
.post-body h2 { margin-top: 2.4rem; }
.post-body .note { margin: 1.8rem 0; }
.post-body .addon-copy h3 { font-size: 1.1rem; line-height: 1.4; }
.post-body .addon-copy a { color: var(--accent); text-decoration: underline; }

.numbered { display: grid; gap: .7rem; margin: 0 0 1rem; counter-reset: n; }
.numbered li {
  display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start;
  font-size: .97rem; color: var(--text-muted);
}
.numbered li::before {
  counter-increment: n; content: counter(n);
  display: grid; place-items: center; width: 24px; height: 24px; margin-top: .1rem;
  border-radius: 50%; background: var(--accent-dim); color: var(--accent);
  font-size: .78rem; font-weight: 700;
}

/* ---------- 11b. Podstrony tekstowe (regulamin, polityka) ---------- */
.legal { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-head { margin-bottom: 2.5rem; }
.legal-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.legal-updated { color: var(--text-muted); font-size: .88rem; }
.legal-body { font-size: .96rem; }
.legal-body h2 {
  margin: 2.4rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: 1.2rem;
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { margin: 1.4rem 0 .5rem; font-size: 1rem; }
.legal-body p { color: var(--text-muted); }
.legal-body ul, .legal-body ol { display: grid; gap: .5rem; margin: 0 0 1rem; padding-left: 1.3rem; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { color: var(--text-muted); }
.legal-body li::marker { color: var(--accent); }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body strong { color: var(--text); }
.legal-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: .9rem; }
.legal-body th, .legal-body td {
  padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top;
}
.legal-body th { color: var(--text); font-weight: 600; }
.legal-body td { color: var(--text-muted); }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--text-muted); }
.legal-back:hover { color: var(--accent); }

/* ---------- 12. Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.5fr 1.3fr; gap: 2rem; }
.footer-grid h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .9rem; }
.footer-h4-gap { margin-top: 1.6rem; }
.footer-grid > div > a:not(.logo) { display: block; font-size: .9rem; color: var(--text-muted); padding: .22rem 0; transition: color .2s; }
.footer-grid > div > a:not(.logo):hover { color: var(--accent); }
.footer-grid .logo { display: inline-flex; margin-bottom: .8rem; }
.footer-about { max-width: 36ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s, color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 13. Animacje i RWD ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .pricing .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .pricing .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4), .pricing .reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(5) { transition-delay: .3s; }
.cards .reveal:nth-child(6) { transition-delay: .36s; }
.stats .reveal:nth-child(2) { transition-delay: .08s; }
.stats .reveal:nth-child(3) { transition-delay: .16s; }
.stats .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 1024px) {
  .logo-tag { display: none; }   /* inaczej logo wypycha menu */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 1rem auto 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .step:nth-child(2)::before { right: 0; }
  .steps-9 { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .versions { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.6rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(16, 24, 40, .25);
    transform: translateY(-130%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-cta { margin-top: 1rem; border-bottom: 0; justify-content: center; }
  .burger { display: block; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; }
  .scroll-hint { display: block; }
  .addon { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 1.5rem; }
  .related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .step { padding-top: 0; padding-left: 3rem; }
  .step-num { top: 2px; }
  .steps-9, .landing-steps { grid-template-columns: 1fr; }
  .steps-9 .step { padding: 1.15rem 1.3rem; }
  .version { padding: 1.4rem; }
  .related { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .plan-featured { order: -1; }
  .plan-desc { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .float-card { display: none; }
  .cards .reveal, .steps .reveal, .pricing .reveal, .stats .reveal { transition-delay: 0s !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
