/* KSeF Desktop - strona programu.
   Kolory wzięte z logo PcKom.net (czerwień i granat), czcionki systemowe Windows -
   strona nie pobiera niczego z zewnętrznych serwerów. */
:root {
  --ink: #131b3a;
  --paper: #f4f6fb;
  --white: #ffffff;
  --red: #d11f2a;
  --red-dark: #a8161f;
  --blue: #1e3cc0;
  --line: #d2d9e8;
  --muted: #56607a;
  --ok: #1d7a4b;
  --display: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.3rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- nagłówek ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.brand img { display: block; height: 50px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--red); }

/* ---------- przyciski ---------- */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; padding: 13px 20px; border-radius: 4px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-off { background: #e3e7f0; color: var(--muted); cursor: default; }

/* ---------- hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 68px; padding-bottom: 76px; }
.lead { font-size: 1.2rem; color: #2c3554; margin: 1.3rem 0 1.8rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.release { margin: 1.3rem 0 0; font-size: 0.93rem; color: var(--muted); max-width: 36em; }

/* okno programu narysowane w HTML - pokazuje to, co program robi najczęściej: lista i suma */
.app, .shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.app { background: var(--white); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); font-size: 0.86rem; min-width: 0; }
.app-bar { background: var(--ink); color: var(--white); padding: 7px 12px; font-size: 0.82rem; display: flex; align-items: center; gap: 8px; }
.app-bar i { width: 10px; height: 10px; background: var(--red); border-radius: 50%; }
.app-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 12px; font-size: 0.8rem; background: #eef1f7; border-bottom: 1px solid var(--line); }
.app-tools b { background: var(--white); border: 1px solid #aeb7cc; padding: 2px 9px; font-weight: 400; }
.app-tools span { color: var(--muted); margin-right: auto; }
.app-tools em { font-style: normal; border: 1px solid #aeb7cc; background: var(--white); padding: 2px 9px; border-radius: 2px; }
.app table { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.app th:nth-child(1) { width: 29%; }
.app th:nth-child(3) { width: 20%; }
.app th:nth-child(4) { width: 17%; }
.app th { text-align: left; font-weight: 600; background: #e4e9f3; padding: 6px 10px; border-bottom: 1px solid #aeb7cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app td { padding: 6px 10px; border-bottom: 1px solid #edf0f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .n { text-align: right; }
.app tr.sel td { background: var(--blue); color: var(--white); }
.app-sum { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; padding: 10px 12px; border-top: 2px solid var(--ink); background: #fff7f7; font-variant-numeric: tabular-nums; }
.app-sum b { font-family: var(--display); font-size: 1.02rem; }
.app-sum span:last-child b { color: var(--red); }
.app figcaption { padding: 5px 12px; font-size: 0.74rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- sekcje ---------- */
.block { padding: 72px 0; }
.block-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.features > div { padding: 20px 0; border-top: 1px solid var(--line); }
.features dt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 4px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; font-family: var(--body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0; color: var(--white); background: var(--red); border-radius: 3px; }
.features dd { margin: 0; color: #2c3554; max-width: 32em; }

.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 1.15rem; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 400; }
.compare td { width: 22%; white-space: nowrap; }
.compare td:last-child, .compare thead th:last-child { background: #f1f4fb; }
.compare .yes { color: var(--ok); font-weight: 600; }
.compare .no { color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: stretch; max-width: 860px; }
.plan { background: var(--white); border: 2px solid var(--ink); padding: 28px; display: flex; flex-direction: column; }
.plan-main { background: var(--ink); color: var(--white); box-shadow: 10px 10px 0 var(--red); }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 2.7rem; line-height: 1; margin: 14px 0 4px; }
.plan .period { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.plan-main .period { color: #b9c2dc; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; }
.plan-main li { border-top-color: #34406b; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan .btn { text-align: center; }
.plan-main .btn-line { border-color: var(--white); color: var(--white); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--red); display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: #2c3554; }
.contact { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
details p { color: #2c3554; padding-bottom: 6px; }

/* ---------- stopka ---------- */
.foot { background: var(--ink); color: #dfe4f2; padding: 44px 0 30px; font-size: 0.95rem; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot a { color: var(--white); }
.foot strong { color: var(--white); }
.foot .note { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid #34406b; color: #aab3cf; font-size: 0.85rem; }

/* ---------- telefon ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; padding-bottom: 56px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .block { padding: 52px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-in { flex-direction: column; align-items: flex-start; }
  .app, .shot img { box-shadow: 7px 7px 0 var(--ink); }
  .app th:nth-child(3), .app td:nth-child(3) { display: none; }
  .app th:nth-child(1) { width: 36%; }
  .app th:nth-child(4) { width: 27%; }
  .foot-in { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}
