/* ============================================================================
   GS1 ScanVortex — strona produktowa
   Paleta wyprowadzona z UI/AppColors.cs aplikacji:
   PageBottomDark #031020, PageTopDark #0A1F4E, PrimaryLight #2E6AE6,
   PrimaryDark #1A4FCC, ScannerCyan #00C8FF, AccentOrange #FFA000,
   TextPrimaryDark #CCE0FF.
   Bez frameworka, bez czcionek z CDN, bez JavaScriptu.
   ========================================================================= */

:root {
  --ink-900: #03080f;
  --ink-850: #031020;
  --ink-800: #061529;
  --ink-700: #0a1f4e;
  --line: #16305c;
  --line-soft: #10254a;
  /* Obramowanie KONTROLEK musi mieć >= 3:1 wobec tła (WCAG 1.4.11);
     --line i --line-soft są dekoracyjne i tego progu nie spełniają. */
  --line-ctl: #3b6aa8;

  --text: #e8f1ff;
  --text-dim: #a9c0e4;
  --text-faint: #7e95bb;

  --brand: #2e6ae6;
  --brand-bright: #5b8dff;
  --brand-deep: #1a4fcc;
  --cyan: #00c8ff;
  --amber: #ffa000;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;

  --shell: 1120px;
  --gutter: 20px;

  --shadow-lift: 0 18px 50px -24px rgba(0, 0, 0, .9);
  --ring: 0 0 0 3px rgba(91, 141, 255, .45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink-850);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Poświata tła — dwa miękkie źródła światła, bez obrazów rastrowych. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70ch 50ch at 12% -8%, rgba(46, 106, 230, .26), transparent 62%),
    radial-gradient(60ch 45ch at 92% 4%, rgba(0, 200, 255, .12), transparent 60%),
    linear-gradient(180deg, #05132b 0%, var(--ink-850) 46%, var(--ink-900) 100%);
}

img, svg { max-width: 100%; }

a { color: var(--brand-bright); text-underline-offset: 3px; }
a:hover { color: #8db1ff; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- nagłówek */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 16, 32, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -.2px;
  font-size: 17px;
  white-space: nowrap;
}
.logo .glyph {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px -8px rgba(46, 106, 230, .9);
}
.logo .glyph svg { width: 19px; height: 19px; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(46, 106, 230, .14); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(46, 106, 230, .2); }

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-ctl);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 6px;
}
.lang a {
  font-size: 13px;
  letter-spacing: .04em;
  padding: 6px 12px;
  color: var(--text-faint);
  text-decoration: none;
  border-radius: 0;
}
.lang a[aria-current="true"] { background: var(--brand); color: #fff; }
.lang a:hover:not([aria-current="true"]) { color: var(--text); background: rgba(46, 106, 230, .16); }

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

.hero { padding: clamp(46px, 9vw, 92px) 0 clamp(36px, 6vw, 64px); }

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 650;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h1 {
  font-size: clamp(38px, 7.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  margin: 0 0 10px;
  font-weight: 700;
}
.h1-sub {
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.35;
  letter-spacing: -.4px;
  color: var(--text-dim);
  font-weight: 500;
  margin: 0 0 22px;
}
.lead {
  font-size: 17.5px;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 26px;
}

.store-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 31, 78, .75), rgba(6, 21, 41, .55));
  border-radius: var(--radius);
  padding: 13px 16px;
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: 15px;
  color: var(--text-dim);
}
.store-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
.store-note strong { color: var(--text); font-weight: 650; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, #356fe4, var(--brand-deep));
  color: #fff;
  box-shadow: 0 14px 34px -16px rgba(46, 106, 230, 1);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; }
.btn-ghost {
  border-color: var(--line-ctl);
  color: var(--text);
  background: rgba(10, 31, 78, .5);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--text); }

/* ------------------------------------------------- ilustracja skanowania */

.scan-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(10, 31, 78, .9), rgba(3, 16, 32, .9));
  padding: 22px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.scan-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40ch 20ch at 50% 0%, rgba(0, 200, 255, .14), transparent 70%);
  pointer-events: none;
}

.scan-frame {
  position: relative;
  border-radius: var(--radius);
  background: #020a16;
  border: 1px solid #12325f;
  padding: 26px 20px;
  display: grid;
  place-items: center;
  min-height: 168px;
}
.scan-frame .bars { width: 100%; max-width: 280px; height: 88px; display: block; }

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 14px 2px rgba(0, 200, 255, .55);
  animation: sweep 3.4s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { top: 22%; opacity: .25; }
  50%      { top: 76%; opacity: 1; }
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cyan);
  opacity: .75;
}
.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.parsed { margin-top: 18px; display: grid; gap: 8px; }
.parsed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 650;
  margin-bottom: 2px;
}
.dot-ok {
  width: 8px; height: 8px; border-radius: 50%;
  background: #35d07f; box-shadow: 0 0 10px rgba(53, 208, 127, .8);
}
.ai-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  background: rgba(10, 31, 78, .5);
}
.ai-row .ai {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--cyan);
}
.ai-row .label { font-size: 12.5px; color: var(--text-faint); display: block; }
.ai-row .value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}

/* ----------------------------------------------------------------- sekcje */

section { padding: clamp(46px, 7vw, 82px) 0; }
section + section { border-top: 1px solid var(--line-soft); }

.sec-head { max-width: 62ch; margin: 0 0 clamp(26px, 4vw, 42px); }
.sec-head .kicker {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-bright);
  font-weight: 650;
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(27px, 4.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -.9px;
  margin: 0 0 12px;
  font-weight: 700;
}
.sec-head p { color: var(--text-dim); margin: 0; font-size: 17px; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 31, 78, .62), rgba(6, 21, 41, .42));
  padding: 22px;
  position: relative;
}
.card h3 {
  font-size: 18px;
  margin: 14px 0 8px;
  letter-spacing: -.2px;
  font-weight: 650;
}
.card p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(46, 106, 230, .17);
  border: 1px solid rgba(91, 141, 255, .28);
}
.card .icon svg { width: 20px; height: 20px; display: block; }

/* pasek liczb */
.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(3, 16, 32, .5);
}
.stat b {
  display: block;
  font-size: clamp(24px, 3.4vw, 31px);
  letter-spacing: -.8px;
  line-height: 1.1;
  color: var(--text);
}
.stat span { font-size: 13.5px; color: var(--text-faint); }

/* lista kroków */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: rgba(10, 31, 78, .4);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(0, 200, 255, .12);
  border: 1px solid rgba(0, 200, 255, .3);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin: 0 0 6px; font-weight: 650; }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(10, 31, 78, .45);
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 78ch;
}
.callout strong { color: var(--text); }

/* wezwanie końcowe */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 46px);
  background:
    radial-gradient(50ch 26ch at 18% 0%, rgba(46, 106, 230, .3), transparent 65%),
    linear-gradient(180deg, rgba(10, 31, 78, .9), rgba(3, 16, 32, .8));
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-dim); margin: 0 auto 22px; max-width: 52ch; }
.cta-band .cta-row { justify-content: center; }

/* --------------------------------------------------- strona dokumentowa */

/* Uwaga: .doc-head siedzi na TYM SAMYM elemencie co .shell, więc marginesu
   bocznego nie wolno ruszać skrótem `padding` — zerowałby gutter strony. */
.doc-head { padding-block: clamp(40px, 6vw, 68px) 8px; }
.doc-head h1 {
  font-size: clamp(31px, 5vw, 44px);
  letter-spacing: -1.1px;
  margin-bottom: 14px;
}
.doc-meta {
  color: var(--text-faint);
  font-size: 14.5px;
  margin: 0;
}
.doc-meta strong { color: var(--text-dim); font-weight: 600; }

.identity {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 31, 78, .8), rgba(6, 21, 41, .55));
  padding: 18px 20px;
  margin: 26px 0 0;
  max-width: 72ch;
}
.identity dl { margin: 0; display: grid; gap: 10px; }
@media (min-width: 620px) {
  .identity dl { grid-template-columns: max-content minmax(0, 1fr); column-gap: 20px; align-items: baseline; }
}
.identity dt {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 650;
}
.identity dd { margin: 0; color: var(--text); font-size: 16px; font-weight: 600; }
.identity dd small { display: block; font-weight: 400; font-size: 13.5px; color: var(--text-faint); }

.doc { padding-top: clamp(28px, 4vw, 40px); }
.doc-wrap {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px) {
  .doc-wrap { grid-template-columns: 240px minmax(0, 1fr); }
  .toc { position: sticky; top: 88px; }
}

.toc {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(10, 31, 78, .38);
  padding: 16px 18px;
}
.toc h2 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 10px;
  font-weight: 650;
}
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; }
.toc a:hover { color: var(--brand-bright); text-decoration: underline; }

.prose { max-width: 70ch; }
.prose section {
  padding: 0;
  border: 0;
  margin: 0 0 34px;
  scroll-margin-top: 92px;
}
.prose section:last-of-type { margin-bottom: 0; }
.prose h2 {
  font-size: 22px;
  letter-spacing: -.3px;
  margin: 0 0 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.prose h2 .num { color: var(--brand-bright); font-variant-numeric: tabular-nums; }
.prose p { margin: 0 0 14px; color: var(--text-dim); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 650; }

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

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 52px;
  background: rgba(2, 8, 18, .55);
}
.foot-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.foot-grid h2 {
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
  font-weight: 650;
}
.foot-brand p { color: var(--text-faint); font-size: 14.5px; margin: 12px 0 0; max-width: 42ch; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-list a, .foot-list span { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.foot-list a:hover { color: var(--brand-bright); text-decoration: underline; }
.foot-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
}
