/* Fakturownik KSeF — strona produktowa
   Bez zależności zewnętrznych: systemowy stos fontów, brak requestów do CDN. */

:root {
  --ink:        #131820;
  --ink-2:      #2b3543;
  --muted:      #5c6675;
  --line:       #e4e8ee;
  --line-soft:  #eef1f5;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fa;
  --accent:     #12457e;
  --accent-dk:  #0d3462;
  --accent-sf:  #eaf1f9;

  --wrap:  1080px;
  --r:     8px;
  --shadow: 0 1px 2px rgba(19, 24, 32, .04), 0 6px 20px rgba(19, 24, 32, .05);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 640;
  letter-spacing: -.018em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

img { display: block; max-width: 100%; height: auto; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- układ ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

.section { padding: 88px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--accent);
  font-size: .795rem;
  font-weight: 680;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 { font-size: clamp(1.6rem, 3.1vw, 2.1rem); }

.section-lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 62ch;
  margin-top: 14px;
}

/* ---------- nawigacja ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name {
  color: var(--ink);
  font-size: 1.01rem;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-name strong { font-weight: 680; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r);
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: var(--accent-dk);
  box-shadow: 0 4px 14px rgba(18, 69, 126, .22);
}
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-lg { padding: 15px 30px; font-size: 1.04rem; }
.btn-block { display: flex; width: 100%; }

.btn-invert { background: #fff; color: var(--accent); }
.btn-invert:hover { background: #eef3f9; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 84px;
  background:
    radial-gradient(58rem 30rem at 50% -14rem, var(--accent-sf), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-in { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px 6px 12px;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(19, 24, 32, .04);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a7f4b;
  box-shadow: 0 0 0 3px rgba(26, 127, 75, .16);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.15rem);
  font-weight: 660;
  letter-spacing: -.028em;
  line-height: 1.1;
  margin: 24px 0 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.19rem);
  line-height: 1.6;
  max-width: 60ch;
  margin: 20px auto 0;
  text-wrap: pretty;
}
.lead strong { color: var(--ink-2); font-weight: 620; }

.cta-row { margin-top: 34px; }
.cta-note {
  color: var(--muted);
  font-size: .885rem;
  margin-top: 14px;
}

.trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  list-style: none;
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.trustbar li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: .93rem;
  font-weight: 500;
}
.trustbar svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ---------- siatki ---------- */

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: #cfd8e3; box-shadow: var(--shadow); }
.card h3 { font-size: 1.045rem; font-weight: 620; }
.card p { color: var(--muted); font-size: .955rem; margin-top: 9px; }

.grid-why { gap: 34px; margin-top: 44px; }
.why { padding: 0; }
.why-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-sf);
  color: var(--accent);
  margin-bottom: 16px;
}
.why-ic svg { width: 22px; height: 22px; }
.why h3 { font-size: 1.09rem; font-weight: 640; }
.why p { color: var(--muted); font-size: .965rem; margin-top: 10px; }

/* ---------- zrzuty ekranu ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 40px;
  /* Zrzuty maja wyraznie rozne proporcje - wysoki formularz (0.969) i
     szeroki dokument (1.601). Rownamy je gora, podpis idzie tuz pod
     obrazkiem; rozciaganie do wspolnej wysokosci znieksztalciloby zrzut. */
  align-items: start;
}
.shots figure { margin: 0; }

/* Zrzuty sa niemal kwadratowe i gesto zapisane - w kolumnie tekst w srodku
   robi sie nieczytelny, wiec kazdy otwiera sie w pelnym rozmiarze. */
.shot {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.shot img { width: 100%; }
.shot:hover, .shot:focus-visible {
  border-color: #b9c6d6;
  box-shadow: 0 2px 6px rgba(19, 24, 32, .07), 0 14px 34px rgba(19, 24, 32, .10);
}

.shot-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 24, 32, .82);
  color: #fff;
  font-size: .8rem;
  font-weight: 560;
  letter-spacing: -.005em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.shot-zoom::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 3.5px 3.5px 0 -1px currentColor;
}
.shot:hover .shot-zoom,
.shot:focus-visible .shot-zoom { opacity: 1; transform: translateY(0); }

/* Bez kursora (dotyk) nie ma stanu hover - afordancja musi byc widoczna od razu. */
@media (hover: none) {
  .shot-zoom { opacity: 1; transform: none; }
}

.shots figcaption {
  color: var(--muted);
  font-size: .885rem;
  margin-top: 12px;
}

/* ---------- kroki ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px 26px;
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  counter-reset: none;
}
.steps li { position: relative; }
.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-bottom: 15px;
}
.steps h3 { font-size: 1.03rem; font-weight: 620; }
.steps p { color: var(--muted); font-size: .945rem; margin-top: 8px; }

.note {
  margin-top: 40px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--muted);
  font-size: .94rem;
}
.note strong { color: var(--ink); font-weight: 620; }

/* ---------- cena ---------- */

.price-card {
  max-width: 470px;
  margin: 44px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 34px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-label {
  color: var(--muted);
  font-size: .93rem;
  font-weight: 600;
}
.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink);
}
.price-val {
  font-size: 3.4rem;
  font-weight: 660;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-cur { font-size: 1.35rem; font-weight: 600; }
.price-sub { color: var(--muted); font-size: .91rem; margin-top: 8px; }

.price-list {
  list-style: none;
  margin: 26px 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}
.price-list li {
  position: relative;
  padding-left: 27px;
  color: var(--ink-2);
  font-size: .955rem;
  margin-bottom: 11px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .44em;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) scale(.85);
  transform-origin: center;
}
.price-fine { color: var(--muted); font-size: .845rem; margin-top: 15px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 36px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 0;
  color: var(--ink);
  font-size: 1.01rem;
  font-weight: 590;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin: .35em 2px 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq-a { padding: 0 34px 20px 0; }
.faq-a p { color: var(--muted); font-size: .96rem; }

/* ---------- CTA końcowe ---------- */

.endcta {
  background: var(--accent);
  color: #fff;
  padding: 76px 0;
  text-align: center;
}
.endcta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
}
.endcta p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.04rem;
  max-width: 52ch;
  margin: 14px auto 30px;
}

/* ---------- stopka ---------- */

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
}
.disclaimer {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.62;
  max-width: 78ch;
}
.disclaimer strong { color: var(--ink-2); font-weight: 620; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .875rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- responsywność ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 56px; }
  .hero h1 br { display: none; }
  .nav-links { display: none; }
  .trustbar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 11px;
    margin-top: 34px;
  }
  .hero-in { text-align: left; }
  .lead { margin-left: 0; }
  .price-card { padding: 30px 24px 26px; }
  .endcta { padding: 58px 0; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

/* ---------- druk ---------- */

@media print {
  .nav, .endcta, .btn { display: none; }
  body { font-size: 12pt; }
  .section, .hero { padding: 18pt 0; }
}
