/* Lektoro — strona marki. Tokeny kolorów zgodne z docs/marka/IDENTYFIKACJA.md */
:root {
  --bg: #f6f3ec;
  --bg-2: #efeadf;
  --surface: #fffdf8;
  --ink: #0e2a33;
  --text: #22343a;
  --muted: #5a6a6f;
  --line: rgba(14, 42, 51, 0.12);
  --line-strong: rgba(14, 42, 51, 0.22);
  --teal: #0f4c5c;
  --teal-soft: rgba(15, 76, 92, 0.08);
  --amber: #f0a531;
  --amber-ink: #8a5300;
  --amber-soft: rgba(240, 165, 49, 0.34);
  --band: #0e2a33;
  --band-text: #f3efe6;
  --shadow: 0 1px 2px rgba(14, 42, 51, 0.06), 0 12px 32px -12px rgba(14, 42, 51, 0.18);
  --shadow-lg: 0 2px 4px rgba(14, 42, 51, 0.05), 0 32px 64px -24px rgba(14, 42, 51, 0.3);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1b21;
    --bg-2: #0e232a;
    --surface: #102830;
    --ink: #f3efe6;
    --text: #d6dcda;
    --muted: #97a8ab;
    --line: rgba(243, 239, 230, 0.1);
    --line-strong: rgba(243, 239, 230, 0.2);
    --teal: #6fc0cf;
    --teal-soft: rgba(111, 192, 207, 0.1);
    --amber-ink: #f6c272;
    --amber-soft: rgba(240, 165, 49, 0.3);
    --band: #071419;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1b21;
  --bg-2: #0e232a;
  --surface: #102830;
  --ink: #f3efe6;
  --text: #d6dcda;
  --muted: #97a8ab;
  --line: rgba(243, 239, 230, 0.1);
  --line-strong: rgba(243, 239, 230, 0.2);
  --teal: #6fc0cf;
  --teal-soft: rgba(111, 192, 207, 0.1);
  --amber-ink: #f6c272;
  --amber-soft: rgba(240, 165, 49, 0.3);
  --band: #071419;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
::selection {
  background: var(--amber-soft);
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
}

/* ---------- typografia ---------- */
h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.display {
  font-family: var(--serif);
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
em.serif {
  font-family: var(--serif);
  font-style: italic;
}

/* zakreślacz — znak marki */
.hl {
  background-image: linear-gradient(
    100deg,
    transparent 0.2em,
    var(--amber-soft) 0.3em,
    var(--amber-soft) calc(100% - 0.3em),
    transparent calc(100% - 0.2em)
  );
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 86%;
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.js .hl.sweep {
  background-size: 0 0.42em;
  transition: background-size 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.25s;
}
.js .hl.sweep.on {
  background-size: 100% 0.42em;
}

/* ---------- przyciski / odznaki ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary .arrow {
  transition: transform 0.2s ease;
}
.btn-primary:hover .arrow {
  transform: translateX(3px);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--teal-soft);
}
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--sans);
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge.amber {
  background: var(--amber-soft);
  color: var(--amber-ink);
  border-color: transparent;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font: 600 19px/1 var(--sans);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font: 600 12px/1 var(--mono);
}
.icon-btn:hover {
  background: var(--teal-soft);
}
.menu-btn {
  display: none;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .nav-tools {
    margin-left: auto;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  padding: 72px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero .display {
  margin: 22px 0 24px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 960px) {
  .reader {
    transform: perspective(1600px) rotateX(2deg);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero {
    padding: 40px 0 72px;
  }
}

/* „czytnik” — animowana scena w hero (main.js przełącza klasy kroków: on → s-scan → s-mark → s-find → s-fix → out) */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #1f5c46;
}
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 28px 8px 44px 24px;
  transition: --accent 0.9s ease;
}
.hero-visual .glow {
  position: absolute;
  inset: -6% -8% -10% -4%;
  background:
    radial-gradient(48% 52% at 62% 46%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%),
    radial-gradient(30% 34% at 22% 82%, rgba(240, 165, 49, 0.18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.reader {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  overflow: hidden;
  outline-offset: 4px;
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  transform-origin: 60% 50%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reader:hover,
.reader:focus-visible {
  transform: perspective(1600px) rotateY(-2deg) rotateX(1deg);
}
.reader:focus-visible {
  border-radius: 22px;
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.scene {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0.45s;
}
.scene.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease 0.1s;
}
.scene.on.out {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.reader-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  white-space: nowrap;
  min-width: 0;
}
.reader-bar .dots {
  display: flex;
  gap: 6px;
  flex: none;
}
.reader-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.bar-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--accent);
  flex: none;
}
.reader-bar .status {
  margin-left: auto;
  display: grid;
  justify-items: end;
  color: var(--teal);
  flex: none;
}
.status > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}
.st-r::before,
.st-f::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.st-r::before {
  animation: pulse 1.4s infinite;
}
.st-f {
  color: var(--amber-ink);
  opacity: 0;
}
.s-mark .st-r {
  opacity: 0;
}
.s-mark .st-f {
  opacity: 1;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
.reader-body {
  padding: 22px 22px 6px;
}
.doc {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.doc h4 {
  margin: 2px 0 8px;
  font: 600 15px/1.3 var(--sans);
  color: var(--ink);
}
.doc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.rows {
  margin: 0;
  display: grid;
  gap: 0;
  font-size: 13.5px;
}
.rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.rows > div:last-child {
  border-bottom: 0;
}
.rows dt {
  color: var(--muted);
  min-width: 0;
}
.rows dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.code {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font: 500 12px/1.7 var(--mono);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
/* zakreślacz w scenie */
mark.mk {
  --mk: color-mix(in srgb, var(--amber) 62%, transparent);
  color: var(--ink);
  background-image: linear-gradient(100deg, transparent 0.1em, var(--mk) 0.2em, var(--mk) calc(100% - 0.2em), transparent calc(100% - 0.1em));
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0 0.62em;
  padding: 0 0.08em;
  transition: background-size 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.s-mark mark.mk {
  background-size: 100% 0.62em;
}
.fx {
  display: inline-grid;
  justify-items: end;
}
.fx > * {
  grid-area: 1 / 1;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.fx-old {
  color: var(--amber-ink) !important;
  font-style: italic;
}
.fx-new {
  opacity: 0;
  transform: translateY(6px);
  color: var(--teal);
}
.s-fix .fx-old {
  opacity: 0;
  transform: translateY(-6px);
}
.s-fix .fx-new {
  opacity: 1;
  transform: none;
}
.fx-row {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.fx-row dt,
.fx-row dd {
  color: var(--teal) !important;
  font-weight: 600;
}
.s-fix .fx-row {
  opacity: 1;
  transform: none;
}
.fx-ins {
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 4px;
  opacity: 0.0;
  transition: opacity 0.4s ease;
}
.s-fix .fx-ins {
  opacity: 1;
}
/* linia skanowania */
.scanline {
  position: absolute;
  left: -22px;
  right: -22px;
  top: 0;
  height: 34px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 16%, transparent) 70%, color-mix(in srgb, var(--accent) 55%, transparent) 96%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  opacity: 0;
  pointer-events: none;
}
.s-scan:not(.s-mark) .scanline {
  animation: scan 1.35s cubic-bezier(0.45, 0, 0.4, 1) forwards;
}
@keyframes scan {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  12% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--scan-to, 110px));
  }
}
.finding {
  margin: 16px 0 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  padding: 14px 16px 12px;
  background: var(--bg);
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.s-find .finding {
  opacity: 1;
  transform: none;
}
.finding b {
  color: var(--ink);
  font-weight: 600;
}
.finding .meta {
  font: 500 11.5px/1.45 var(--mono);
  color: var(--muted);
  margin-top: 6px;
}
.finding .suggest {
  margin-top: 9px;
  color: var(--ink);
}
.finding .suggest s {
  color: var(--muted);
}
.finding code {
  font: 500 12px/1.4 var(--mono);
  background: var(--teal-soft);
  border-radius: 4px;
  padding: 1px 4px;
  word-break: break-word;
}
.finding-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.act {
  display: inline-grid;
  font: 600 12.5px/1 var(--sans);
}
.act > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.act-a {
  background: var(--ink);
  color: var(--bg);
}
.act-b {
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  opacity: 0;
  transform: scale(0.9);
}
.s-fix .act-a {
  opacity: 0;
  transform: scale(0.94);
}
.s-fix .act-b {
  opacity: 1;
  transform: none;
}
.act.ro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 500;
}
.act.ro svg {
  width: 15px;
  height: 15px;
}
.reader-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px 18px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.reader-foot > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pills {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.pill {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 35%, var(--line));
  overflow: hidden;
  transition: width 0.4s ease;
}
.pill.on {
  width: 30px;
}
.pill b {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.pill.on b {
  transform: scaleX(1);
}
.playing .pill.on b {
  animation: pill var(--dur, 6300ms) linear forwards;
}
.paused .pill.on b,
.paused .scanline {
  animation-play-state: paused;
}
@keyframes pill {
  from {
    transform: scaleX(0);
  }
}
.float-chip {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.float-chip svg {
  flex: none;
}
.chip-a {
  left: 28px;
  bottom: -4px;
  transform: rotate(-2deg);
}
.chip-b {
  right: -8px;
  top: 2px;
  transform: rotate(2deg);
}
.scene-toggle {
  position: absolute;
  right: 14px;
  bottom: 2px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 500 12px/1 var(--sans);
  cursor: pointer;
}
.scene-toggle:hover {
  background: var(--bg-2);
}
.scene-toggle .i-play,
.scene-toggle[aria-pressed="true"] .i-pause {
  display: none;
}
.scene-toggle[aria-pressed="true"] .i-play {
  display: block;
}
@media (max-width: 520px) {
  .float-chip {
    display: none;
  }
  .hero-visual {
    padding: 0 0 22px;
  }
  .hero-visual .glow {
    inset: 0;
  }
  .reader-body {
    padding: 18px 16px 4px;
  }
  .reader-foot {
    padding: 12px 16px 16px;
  }
  .reader-foot > span:first-child {
    font-size: 12px;
  }
  .reader-foot > span:first-child svg {
    display: none;
  }
  .doc {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }
  .thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .thumb svg {
    width: 24px;
    height: 24px;
  }
  .scene-toggle {
    right: 6px;
    bottom: -8px;
  }
  .reader,
  .reader:hover {
    transform: none;
  }
  .reader-bar {
    padding: 12px 14px;
  }
  .reader-bar .dots {
    display: none;
  }
}

/* ---------- sekcje ---------- */
.section {
  padding: 88px 0;
}
.section-sm {
  padding: 72px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}
.section-head .lede {
  justify-self: end;
}
@media (max-width: 860px) {
  .section {
    padding: 72px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-head .lede {
    justify-self: start;
  }
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* zasady */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle {
  padding: 34px 32px 38px 0;
}
.principle + .principle {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.principle .num {
  font: 500 12px/1 var(--mono);
  color: var(--amber-ink);
  letter-spacing: 0.1em;
}
.principle h3 {
  margin: 16px 0 10px;
}
.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
@media (max-width: 860px) {
  .principles {
    grid-template-columns: 1fr;
  }
  .principle,
  .principle + .principle {
    padding: 26px 0;
    border-left: 0;
  }
  .principle + .principle {
    border-top: 1px solid var(--line);
  }
}

/* filtry i siatka aplikacji */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover {
  background: var(--teal-soft);
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
}
.app-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.app-card:hover::after {
  transform: scaleX(1);
}
.app-card[hidden] {
  display: none;
}
.app-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #f6f3ec;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  flex: none;
}
.app-card h3 {
  font: 600 18px/1.25 var(--sans);
  letter-spacing: -0.01em;
}
.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.app-card .foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
}
.app-card .go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: all 0.25s;
}
.app-card:hover .go {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* jak to działa */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: s;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step .art {
  height: 132px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
}
.line {
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  opacity: 0.6;
}
.line.hlx {
  background: var(--amber);
  opacity: 0.8;
}
.line.ok {
  background: var(--teal);
  opacity: 0.55;
}
.step h3 {
  font: 600 18px/1.3 var(--sans);
}
.step h3 span {
  font: 500 12px/1 var(--mono);
  color: var(--amber-ink);
  margin-right: 8px;
  letter-spacing: 0.08em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.toggle-art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
}
.toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--teal);
  position: relative;
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

/* ciemny pas */
.band {
  background: var(--band);
  color: var(--band-text);
  border-radius: 28px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 165, 49, 0.22), transparent 65%);
}
.band h2 {
  color: #f6f3ec;
}
.band .lede {
  color: rgba(243, 239, 230, 0.72);
}
.band .eyebrow {
  color: #f6c272;
}
.band-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(243, 239, 230, 0.14);
  border-radius: 16px;
  overflow: hidden;
}
.fact {
  background: var(--band);
  padding: 22px;
}
.fact b {
  display: block;
  color: #f6f3ec;
  font-weight: 600;
  margin-bottom: 6px;
}
.fact span {
  color: rgba(243, 239, 230, 0.66);
  font-size: 14.5px;
}
.band a.inline {
  color: #f6c272;
}
@media (max-width: 860px) {
  .band {
    padding: 40px 24px;
    border-radius: 22px;
  }
  .band-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* CTA */
.cta {
  text-align: center;
  padding: 112px 0 120px;
}
.cta .h2 {
  max-width: 16ch;
  margin: 18px auto 18px;
}
.cta .lede {
  margin: 0 auto 32px;
}
.cta .hero-cta {
  justify-content: center;
}

/* ---------- stopka ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font: 600 13px/1 var(--sans);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-grid a {
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--ink);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- strona aplikacji ---------- */
.crumbs {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.app-hero {
  padding: 40px 0 80px;
  position: relative;
}
.app-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.app-hero .display {
  font-size: clamp(42px, 6vw, 76px);
  margin: 18px 0 22px;
}
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.icon-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  justify-self: end;
  width: 100%;
  display: grid;
  place-items: center;
}
.icon-stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin 60s linear infinite;
}
.icon-stage::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  filter: blur(20px);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.icon-stage .big {
  position: relative;
  z-index: 1;
  width: 62%;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
}
.icon-stage .big svg {
  width: 100%;
  height: auto;
}
.orbit {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.orbit.o1 {
  top: 12%;
  left: 0;
}
.orbit.o2 {
  bottom: 14%;
  right: 0;
}
@media (max-width: 960px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
  }
  .icon-stage {
    justify-self: center;
    max-width: 320px;
    order: -1;
  }
}

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--teal-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15.5px;
}
.callout svg {
  flex: none;
  margin-top: 2px;
}
.overview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.overview .h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.overview .prose-lg {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 28px;
}
@media (max-width: 860px) {
  .overview {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.features li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16.5px;
  align-items: center;
}
.features .n {
  font: 500 12px/1 var(--mono);
  color: var(--amber-ink);
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .screens {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .screens {
    grid-template-columns: 1fr;
  }
}
.screen {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.screen .frame {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px;
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 10px;
}
.screen .frame img {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.screen .side {
  border-radius: 8px;
  background: var(--bg-2);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.screen .main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 4px 0;
}
.screen .side .line {
  height: 6px;
}
.screen .main .line {
  height: 7px;
}
.screen .main .card-mini {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}
.screen .txt {
  padding: 18px 20px 22px;
}
.screen .txt b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.screen .txt span {
  font-size: 14px;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1000px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.plan.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}
.plan.featured::before {
  content: attr(data-label);
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--amber);
  color: #3a2300;
  font: 600 11px/1 var(--sans);
  padding: 6px 10px;
  border-radius: 999px;
}
.plan h3 {
  font: 600 17px/1 var(--sans);
}
.price {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--ink);
}
.price small {
  font: 400 14px/1 var(--sans);
  color: var(--muted);
  margin-left: 4px;
}
.plan .trial {
  font-size: 13px;
  color: var(--teal);
  min-height: 18px;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
  font-size: 14.5px;
}
.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.plan li svg {
  margin-top: 4px;
  color: var(--teal);
}
.plans-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.faq {
  max-width: 860px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font: 500 18px/1.4 var(--sans);
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}
.faq .answer {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 72ch;
}
.faq .answer p {
  margin: 0;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) {
  .related {
    grid-template-columns: 1fr;
  }
}

/* ---------- strony prawne ---------- */
.draft-banner {
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  padding: 10px 16px;
}
.legal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 96px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-right: 8px;
}
.toc b {
  display: block;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.toc a {
  text-decoration: none;
  color: var(--muted);
}
.toc a:hover {
  color: var(--ink);
}
@media (max-width: 960px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
  }
}
.prose {
  max-width: 76ch;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16.5px;
  line-height: 1.75;
}
.prose h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  margin: 10px 0 24px;
}
.prose h2 {
  font: 600 23px/1.3 var(--sans);
  letter-spacing: -0.01em;
  margin: 52px 0 14px;
  scroll-margin-top: 90px;
}
.prose h3 {
  font: 600 18px/1.35 var(--sans);
  margin: 34px 0 10px;
  scroll-margin-top: 90px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}
.prose li {
  margin: 4px 0;
}
.prose a {
  color: var(--teal);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--amber);
  background: var(--bg-2);
  border-radius: 0 10px 10px 0;
}
.prose code {
  font: 13.5px var(--mono);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose .table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.legal-hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) {
  .legal-hub {
    grid-template-columns: 1fr;
  }
}

/* ---------- ciemny pas: 12 aplikacji ---------- */
.dark-band {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--band);
  color: var(--band-text);
  padding: 104px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 60%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 60%, #000 20%, transparent 75%);
}
.dark-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  left: 50%;
  top: 58%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 165, 49, 0.14), rgba(15, 76, 92, 0.18) 40%, transparent 68%);
}
.dark-band h2 {
  color: #f6f3ec;
}
.dark-band .lede {
  color: rgba(243, 239, 230, 0.7);
}
.dark-band .eyebrow {
  color: #f6c272;
}
.icon-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.icon-wall a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  color: rgba(243, 239, 230, 0.82);
  font-size: 13.5px;
  line-height: 1.3;
  text-align: center;
  background: rgba(243, 239, 230, 0.035);
  border: 1px solid rgba(243, 239, 230, 0.08);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    color 0.3s ease;
}
.icon-wall a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 96px;
  height: 96px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(26px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.icon-wall img {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 22%;
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.icon-wall span {
  position: relative;
}
.icon-wall a:hover,
.icon-wall a:focus-visible {
  background: rgba(243, 239, 230, 0.07);
  border-color: color-mix(in srgb, var(--accent) 60%, rgba(243, 239, 230, 0.2));
  color: #f6f3ec;
  transform: translateY(-3px);
}
.icon-wall a:hover::before,
.icon-wall a:focus-visible::before {
  opacity: 0.85;
}
.icon-wall a:hover img,
.icon-wall a:focus-visible img {
  transform: scale(1.06) rotate(-3deg);
}
.js .icon-wall.reveal {
  opacity: 1;
  transform: none;
}
.js .icon-wall.reveal li {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.6s ease calc(var(--i) * 45ms),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 45ms);
}
.js .icon-wall.reveal.on li {
  opacity: 1;
  transform: none;
}
@media (max-width: 1000px) {
  .icon-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .dark-band {
    padding: 72px 0 64px;
  }
  .icon-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .icon-wall a {
    padding: 16px 4px 14px;
    gap: 10px;
    font-size: 12px;
    border-radius: 16px;
  }
  .icon-wall img {
    width: 56px;
    height: 56px;
  }
  .icon-wall a::before {
    width: 64px;
    height: 64px;
    top: 14px;
  }
}

/* katalog z filtrami pod pasem */
.catalog {
  padding-top: 72px;
}
.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.catalog-head .filters {
  margin: 0;
}

/* ---------- jak to działa: postęp sterowany przewijaniem ---------- */
.how {
  padding-top: 24px;
}
.how-track {
  position: relative;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.how-rail {
  height: 2px;
  margin: 0 0 22px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.how-rail i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform-origin: left;
}
.step .art {
  position: relative;
}
.step .scanline {
  left: 0;
  right: 0;
  height: 28px;
  --accent: var(--teal);
  opacity: 0;
}
@media (max-width: 860px) {
  .how-rail {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .how-track {
      view-timeline: --how block;
    }
    .js .how .step.reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
    .how-rail i {
      animation: rail linear both;
      animation-timeline: --how;
      animation-range: entry 70% cover 55%;
    }
    @keyframes rail {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }
    .how .step {
      animation: step-in linear both;
      animation-timeline: --how;
    }
    .how .s1 {
      animation-range: entry 60% entry 100%;
    }
    .how .s2 {
      animation-range: entry 90% cover 40%;
    }
    .how .s3 {
      animation-range: cover 35% cover 52%;
    }
    @keyframes step-in {
      from {
        opacity: 0.25;
        transform: translateY(24px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    .how .s1 .scanline {
      animation: step-scan linear both;
      animation-timeline: --how;
      animation-range: entry 70% cover 40%;
    }
    @keyframes step-scan {
      0% {
        opacity: 0;
        transform: translateY(-10px);
      }
      20%,
      80% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform: translateY(100px);
      }
    }
    .how .s2 .hlx {
      transform-origin: left;
      animation: grow linear both;
      animation-timeline: --how;
      animation-range: cover 28% cover 45%;
    }
    @keyframes grow {
      from {
        transform: scaleX(0);
      }
    }
    .how .s3 .toggle {
      animation: toggle-on linear both;
      animation-timeline: --how;
      animation-range: cover 46% cover 54%;
    }
    .how .s3 .toggle::after {
      animation: knob linear both;
      animation-timeline: --how;
      animation-range: cover 46% cover 54%;
    }
    @keyframes toggle-on {
      from {
        background: var(--line-strong);
      }
    }
    @keyframes knob {
      from {
        transform: translateX(-18px);
      }
    }
    @media (max-width: 860px) {
      .how .step,
      .how .s1,
      .how .s2,
      .how .s3 {
        animation-timeline: view();
        animation-range: entry 10% entry 90%;
      }
      .how .s2 .hlx,
      .how .s3 .toggle,
      .how .s3 .toggle::after,
      .how .s1 .scanline {
        animation-timeline: view();
        animation-range: entry 60% cover 50%;
      }
    }
  }
}

/* ---------- galeria feature images ---------- */
.gallery {
  padding-top: 24px;
}
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.gallery-nav {
  display: flex;
  gap: 8px;
  flex: none;
}
.gallery-nav .icon-btn {
  width: 44px;
  height: 44px;
}
.strip {
  --pad: max(24px, calc((100% - var(--max)) / 2 + 24px));
  list-style: none;
  margin: 0;
  padding: 6px var(--pad) 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(500px, 82vw);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.strip:focus-visible {
  outline-offset: -4px;
}
.slide {
  scroll-snap-align: start;
}
.slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.slide .shot {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--accent);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide a:hover .shot,
.slide a:focus-visible .shot {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-lg),
    0 18px 40px -18px var(--accent);
}
.slide .cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px 0;
  font-size: 14px;
  color: var(--muted);
}
.slide .cap b {
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
}
.slide .cap .arrow {
  margin-left: auto;
  transition: transform 0.25s ease;
}
.slide a:hover .cap .arrow {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .slide {
      animation: slide-fx linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 100%;
    }
    @keyframes slide-fx {
      from {
        opacity: 0.35;
        scale: 0.92;
      }
    }
  }
}
@media (max-width: 640px) {
  .strip {
    --pad: 16px;
    gap: 14px;
  }
  .gallery-nav {
    display: none;
  }
}

/* ---------- strona aplikacji: feature image ---------- */
.app-visual {
  position: relative;
  isolation: isolate;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 600px;
}
.app-visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% -8% 6%;
  border-radius: 40px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  filter: blur(30px);
  z-index: -1;
}
.app-visual .feat {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--accent);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.app-visual .feat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-icon {
  position: absolute;
  left: -18px;
  top: -22px;
  width: 72px;
  height: 72px;
  border-radius: 22%;
  overflow: hidden;
  box-shadow:
    0 14px 30px -12px rgba(0, 0, 0, 0.55),
    0 0 0 4px var(--bg);
  rotate: -6deg;
}
.app-icon svg {
  width: 100%;
  height: 100%;
}
.app-visual .orbit.o1 {
  top: auto;
  bottom: -18px;
  left: 24px;
}
.app-visual .orbit.o2 {
  bottom: auto;
  top: -16px;
  right: 18px;
}
@media (max-width: 960px) {
  .app-visual {
    justify-self: stretch;
    max-width: none;
    margin-top: 12px;
  }
  .app-icon {
    left: 10px;
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 520px) {
  .app-visual .orbit {
    display: none;
  }
  .app-icon {
    width: 52px;
    height: 52px;
    top: -18px;
  }
}

/* ---------- prawdziwe zrzuty w ramce przeglądarki ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.shot-card {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-card.wide {
  grid-column: 1 / -1;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.browser-bar .dots {
  display: flex;
  gap: 6px;
}
.browser-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.browser-bar .addr {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
  font: 500 11.5px/1 var(--mono);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-view {
  display: block;
  background: #f1f1f1;
  cursor: zoom-in;
}
.browser-view img {
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shot-card:hover .browser-view img {
  transform: scale(1.012);
}
.browser-view {
  overflow: hidden;
}
.shot-card .txt {
  padding: 16px 20px 20px;
}
.shot-card .txt b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.shot-card .txt span {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

/* ---------- przejścia między stronami (View Transitions, progresywnie) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}
.site-header {
  view-transition-name: site-header;
}
::view-transition-old(root) {
  animation: 0.22s ease both vt-out;
}
::view-transition-new(root) {
  animation: 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both vt-in;
}
::view-transition-group(*) {
  animation-duration: 0.42s;
}
@keyframes vt-out {
  to {
    opacity: 0;
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- animacje wejścia ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.on {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .hl.sweep {
    background-size: 100% 0.42em;
  }
}

/* ---------- zgoda na cookies (GA4) ---------- */
.consent {
  position: fixed;
  z-index: 80;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin-left: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  font-size: 15px;
}
.consent[hidden] {
  display: none;
}
.consent p {
  margin: 0 0 14px;
}
.consent a {
  color: var(--teal);
}
.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.consent .btn {
  height: 42px;
  padding: 0 18px;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
