/* Układ: jedna kolumna treści 72rem, sekcje jak pasy magazynowe; dane (SKU, kwoty) zawsze w kroju mono. */
:root {
  --bg: #f2f4f1;
  --surface: #ffffff;
  --ink: #14231f;
  --muted: #53625d;
  --line: #d3dbd7;
  --accent: #0b6657;
  --accent-ink: #ffffff;
  --tape: #f3c443;
  --tape-ink: #2a2205;
  --alert: #b93c0c;
  --alert-bg: #fdebe2;
  --ok: #187141;
  --ok-bg: #e2f3e8;
  --shadow: 0 1px 2px rgba(20, 35, 31, .06), 0 8px 24px rgba(20, 35, 31, .06);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --hl: 62%;
  --radius: 10px;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1614; --surface: #15201d; --ink: #e5ece9; --muted: #9bada6; --line: #2a3833;
    --accent: #3db39a; --accent-ink: #06201a; --tape: #e3b83c; --tape-ink: #241c03;
    --alert: #f38b5e; --alert-bg: #3a1f14; --ok: #5fcf8c; --ok-bg: #12301f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --hl: 86%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1614; --surface: #15201d; --ink: #e5ece9; --muted: #9bada6; --line: #2a3833;
  --accent: #3db39a; --accent-ink: #06201a; --tape: #e3b83c; --tape-ink: #241c03;
  --alert: #f38b5e; --alert-bg: #3a1f14; --ok: #5fcf8c; --ok-bg: #12301f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --hl: 86%;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
figure { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, select:focus-visible {
  outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: var(--s-8); }
.band + .band { border-top: 1px solid var(--line); }
.eyebrow {
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before { content: ""; width: 14px; height: 6px; background: var(--tape); border-radius: 1px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); max-width: 46rem; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font: 600 1rem/1 var(--f-body); padding: .95rem 1.35rem; border-radius: 8px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* Nagłówek */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 4rem; }
.logo { font: 700 1.2rem/1 var(--f-display); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-2); }
.logo-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--accent); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 6px 5px; border-top: 3px solid var(--tape); border-bottom: 3px solid var(--accent-ink); }
.nav { display: flex; gap: var(--s-5); margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.top .btn { padding: .7rem 1rem; font-size: .92rem; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-7); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); min-width: 0; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent var(--hl), var(--tape) var(--hl), var(--tape) 94%, transparent 94%); color: inherit; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--muted); font-size: .95rem; padding: 0; margin: 0; list-style: none; }
.facts li { display: inline-flex; gap: var(--s-2); align-items: center; }
.facts li::before { content: "✓"; color: var(--ok); font-weight: 700; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Panel z danymi (podgląd działania integracji) */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; min-width: 0;
}
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: .7rem 1rem; border-bottom: 1px solid var(--line);
  font: 500 .8rem/1.2 var(--f-mono); color: var(--muted);
}
.panel-bar strong { color: var(--ink); font-weight: 500; }
.pill { font: 500 .72rem/1 var(--f-mono); padding: .3rem .5rem; border-radius: 99px; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-alert { background: var(--alert-bg); color: var(--alert); }
.pill-tape { background: var(--tape); color: var(--tape-ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats div { padding: .8rem 1rem; display: grid; gap: 2px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { font: 600 1.35rem/1.1 var(--f-mono); }
.stats span { font-size: .78rem; color: var(--muted); }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.rows { list-style: none; margin: 0; padding: .4rem 0; font: 400 .85rem/1.4 var(--f-mono); }
.rows li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: var(--s-2); padding: .38rem 1rem; align-items: baseline; }
.rows .op { font-weight: 600; }
.rows .op-new { color: var(--ok); }
.rows .op-upd { color: var(--accent); }
.rows .op-zero { color: var(--alert); }
.rows .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .name small { color: var(--muted); font-size: .78rem; margin-left: .4rem; }
@media (max-width: 480px) { .rows .name { white-space: normal; } .rows .name small { display: block; margin-left: 0; } }
.rows .val { text-align: right; font-variant-numeric: tabular-nums; }
.panel-foot { padding: .65rem 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

.table-scroll { overflow-x: auto; }
table.report { width: 100%; border-collapse: collapse; font: 400 .84rem/1.35 var(--f-mono); font-variant-numeric: tabular-nums; min-width: 27rem; }
.report th, .report td { padding: .55rem .6rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report th { font: 500 .72rem/1.2 var(--f-body); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.report th:first-child, .report td:first-child { text-align: left; }
.report td:first-child { white-space: normal; min-width: 9rem; }
.report td .pill { display: inline-block; margin-top: .25rem; }
.report tr.flag td { background: var(--alert-bg); }
.report tr.flag td.m { color: var(--alert); font-weight: 600; }
.report tr.warn td.m { color: var(--muted); }
.report tfoot td { font-weight: 600; border-bottom: 0; }

/* Problemy */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-7); }
.problem { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.problem .quote { font: 600 1.2rem/1.35 var(--f-display); }
.problem p { color: var(--muted); }
.problem p b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .problems { grid-template-columns: 1fr; } }

/* Dema */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-7); align-items: start; }
.demo + .demo { margin-top: var(--s-8); }
.demo-copy { display: grid; gap: var(--s-4); }
.demo-tag { font: 500 .8rem/1 var(--f-mono); color: var(--accent); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 1.9rem 1fr; gap: var(--s-3); counter-increment: s; }
.steps li::before {
  content: counter(s); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 .85rem/1 var(--f-mono); border: 1.5px solid var(--line); color: var(--muted);
}
.result { background: var(--ok-bg); color: var(--ink); border-radius: 8px; padding: var(--s-3) var(--s-4); font-size: .97rem; }
.result b { color: var(--ok); }
.demo-media { display: grid; gap: var(--s-3); min-width: 0; }
.film {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .92rem;
}
.film .play { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); position: relative; }
.film .play::after { content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%); border-left: 11px solid var(--bg); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film a { font-weight: 600; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Jak pracuję */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: 0; padding: 0; list-style: none; counter-reset: p; }
.process li { display: grid; gap: var(--s-2); align-content: start; counter-increment: p; position: relative; padding-top: var(--s-6); }
.process li::before { content: "Krok " counter(p); position: absolute; top: 0; font: 500 .78rem/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.process li::after { content: ""; position: absolute; top: 1.3rem; left: 0; right: calc(-1 * var(--s-5)); height: 2px; background: var(--line); }
.process li:last-child::after { right: 0; }
.process li > span { font: 500 .85rem/1.3 var(--f-mono); color: var(--accent); }
.process p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .process li::after { right: 0; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.trust div { display: grid; gap: var(--s-2); }
.trust h3 { font-size: 1.05rem; }
.trust p { color: var(--muted); font-size: .97rem; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; } }

/* Cennik */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-4); grid-template-rows: auto auto 1fr auto; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s-3); }
.price { font: 600 1.6rem/1.15 var(--f-mono); font-variant-numeric: tabular-nums; }
.price small { display: block; font: 400 .85rem/1.4 var(--f-body); color: var(--muted); margin-top: var(--s-1); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); font-size: .97rem; align-content: start; }
.plan li { display: grid; grid-template-columns: 1.1rem 1fr; gap: var(--s-2); }
.plan li::before { content: "+"; font: 600 1rem/1.5 var(--f-mono); color: var(--accent); }
.plan .btn { width: 100%; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
.extra { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.extra p { color: var(--muted); font-size: .95rem; flex: 1 1 16rem; }
.extra b { font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); display: block; }
.extra .mono { font-weight: 600; font-size: 1.1rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: var(--s-4); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .extras { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s-4) 0; font: 600 1.08rem/1.4 var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.3rem/1 var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--s-4); color: var(--muted); max-width: 44rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-7); }
.contact-side { display: grid; gap: var(--s-5); align-content: start; }
.booking { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-3); }
.booking p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.booking .btn { background: var(--tape); color: var(--tape-ink); justify-self: start; }
.direct { display: grid; gap: var(--s-1); font-size: .97rem; }
.direct .mono { font-size: 1rem; }
form.lead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-1); }
.field label, .field legend { font-weight: 600; font-size: .93rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 7px; padding: .7rem .8rem; width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.chips label { font-weight: 400; display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); border-radius: 99px; padding: .4rem .8rem; cursor: pointer; font-size: .93rem; white-space: nowrap; }
.chips input { accent-color: var(--accent); margin: 0; }
.chips label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .85rem; color: var(--muted); }
.form-status { font-size: .95rem; border-radius: 7px; padding: var(--s-3) var(--s-4); }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--alert-bg); color: var(--alert); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Stopka */
.foot { border-top: 1px solid var(--line); padding-block: var(--s-6); font-size: .9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); }
.foot a { color: var(--muted); }

/* Strony tekstowe (polityka prywatności, podziękowanie) */
.doc { max-width: 46rem; display: grid; gap: var(--s-4); padding-block: var(--s-7); }
.doc h2 { font-size: 1.35rem; margin-top: var(--s-4); }
.doc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s-1); }
