/* ==========================================================================
   MAD — landing page
   Paleta „Atrament” ze znaku Dial (docs/branding w repozytorium MAD).
   Cynober (--signal) oznacza anomalię i nic więcej: nie ma go na przyciskach,
   linkach ani ozdobnikach.
   ========================================================================== */

/* ---------- Fonty (lokalne, licencja SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
:root {
  /* Atrament */
  --ink-1000: #070817;
  --ink-950: #0a0c1e;
  --ink-900: #0e1129;
  --ink-850: #121635; /* dolny stop kafla znaku */
  --ink-800: #171c42;
  --ink-700: #1f2656;
  --ink-600: #2b3474; /* górny stop kafla znaku */
  --paper: #e2e7ff; /* łuk */
  --periwinkle: #8d99e6; /* wskazówka */
  --signal: #ff5a36; /* tylko anomalia */

  --text: #c5cbef;
  --text-dim: #8e96c6;
  --text-faint: #646c9c;
  --line: rgba(226, 231, 255, 0.1);
  --line-strong: rgba(226, 231, 255, 0.18);
  --surface: rgba(226, 231, 255, 0.035);
  --surface-2: rgba(226, 231, 255, 0.06);

  /* Sekcje jasne */
  --sheet: #f3f4fb;
  --sheet-card: #ffffff;
  --sheet-ink: #121635;
  --sheet-text: #3d446e;
  --sheet-dim: #6a7199;
  --sheet-line: rgba(18, 22, 53, 0.1);
  --cobalt: #3443c4;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Baza ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv05", "cv08", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--periwinkle);
  color: var(--ink-950);
}
:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 6px;
}
.sheet :focus-visible {
  outline-color: var(--cobalt);
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink-850);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Typografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--periwinkle);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before {
  display: none;
}
.display {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(2.4rem, 5.1vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
  color: #f4f6ff;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f4f6ff;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #f4f6ff;
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
}
.h4 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: #f4f6ff;
  font-variation-settings: "opsz" 24;
}
.lead {
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
  text-wrap: pretty;
}
.muted {
  color: var(--text-dim);
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: -0.01em;
}
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--paper);
}
.sheet code {
  background: rgba(18, 22, 53, 0.07);
  color: var(--sheet-ink);
}
strong {
  font-weight: 600;
  color: #eef1ff;
}
.sheet strong {
  color: var(--sheet-ink);
}

.section {
  padding-block: var(--section);
  position: relative;
}
.section-head {
  display: grid;
  gap: 22px;
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head--center .lead {
  margin-inline: auto;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg.arrow {
  transform: translateX(3px);
}
.btn--primary {
  background: var(--paper);
  color: var(--ink-850);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 32px -12px rgba(141, 153, 230, 0.55);
}
.btn--primary:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(226, 231, 255, 0.03);
}
.btn--ghost:hover {
  border-color: rgba(226, 231, 255, 0.4);
  background: rgba(226, 231, 255, 0.07);
}
.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}
.sheet .btn--primary {
  background: var(--sheet-ink);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(18, 22, 53, 0.6);
}
.sheet .btn--primary:hover {
  background: #1d2350;
}

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 12, 30, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav__logo {
  display: inline-flex;
  color: #f4f6ff;
  flex: none;
}
.nav__logo svg {
  height: 34px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 0;
}
.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: #f4f6ff;
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Przełącznik języka */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(226, 231, 255, 0.03);
}
.lang__opt {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang__opt:hover {
  color: #f4f6ff;
}
.lang__opt[aria-current="true"] {
  background: var(--paper);
  color: var(--ink-850);
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 6px 0 var(--paper), 0 -6px 0 var(--paper);
}
@media (max-width: 1020px) {
  .nav__toggle {
    display: grid;
  }
  .nav__links {
    position: absolute;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink-950);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open .nav__links {
    display: flex;
  }
  .nav.is-open {
    background: var(--ink-950);
  }
  .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__cta .btn {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 12.5vw, 172px);
  isolation: isolate;
}
.hero::before {
  /* poświata w barwach kafla znaku */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 78% 18%, rgba(43, 52, 116, 0.6), transparent 68%),
    radial-gradient(700px 520px at 8% 0%, rgba(43, 52, 116, 0.32), transparent 70%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950) 70%);
}
.hero::after {
  /* siatka minutowa */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(226, 231, 255, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 24) 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.hero__copy .display span {
  display: block;
}
.hero__copy .display .is-dim {
  color: #a9b2ec;
}
.hero__copy .display em {
  /* jedyne słowa strony w kolorze sygnału: to one nazywają anomalię */
  font-style: normal;
  color: var(--signal);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero__facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--periwinkle);
}

/* Tarcza 24 h */
.dial {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  aspect-ratio: 1;
}
.dial svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dial__arc {
  stroke-dasharray: var(--arc-len);
  stroke-dashoffset: var(--arc-len);
  animation: dial-draw 1.8s 0.25s var(--ease) forwards;
}
.dial__hand {
  transform-origin: 280px 280px;
  transform: rotate(-150deg);
  animation: dial-sweep 1.6s 0.9s var(--ease) forwards;
}
.dial__dot,
.dial__pulse {
  opacity: 0;
  animation: dial-pop 0.5s 2.3s var(--ease) forwards;
}
.dial__pulse {
  transform-origin: var(--dot-x) var(--dot-y);
  animation: dial-pop 0.5s 2.3s var(--ease) forwards, dial-pulse 2.6s 2.8s ease-out infinite;
}
.dial__bars rect {
  opacity: 0;
  animation: dial-pop 0.6s var(--ease) forwards;
  animation-delay: calc(0.3s + var(--i) * 18ms);
}
@keyframes dial-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes dial-sweep {
  to {
    transform: rotate(0deg);
  }
}
@keyframes dial-pop {
  to {
    opacity: 1;
  }
}
@keyframes dial-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(3.1);
    opacity: 0;
  }
}
.dial__card {
  position: absolute;
  right: -5%;
  bottom: 80%;
  width: min(292px, 62%);
  padding: 15px 17px 16px;
  border-radius: 14px;
  background: rgba(14, 17, 41, 0.86);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(8px);
  animation: card-in 0.7s 2.5s var(--ease) forwards;
}
@keyframes card-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.dial__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dial__card-top b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--paper);
}
.dial__card-top b::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
}
.dial__card h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: #f4f6ff;
  line-height: 1.2;
}
.dial__card p {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.dial__card p span {
  color: var(--paper);
}
.dial__tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}
.dial__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.dial__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dial__legend i {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: var(--paper);
}
.dial__legend i.bar {
  width: 4px;
  height: 12px;
  background: var(--periwinkle);
  opacity: 0.7;
}
.dial__legend i.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}

/* Zrzut pod hero */
.hero__stage {
  position: relative;
  margin-top: clamp(56px, 7vw, 104px);
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: -8% 6% 30% 6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(141, 153, 230, 0.34), transparent);
  filter: blur(40px);
}

/* ---------- Ramka zrzutu ---------- */
.shot {
  position: relative;
  border-radius: var(--radius);
  background: #0c0d12;
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 50px 100px -40px rgba(0, 0, 0, 0.85), 0 24px 48px -28px rgba(7, 8, 23, 0.9);
  overflow: hidden;
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #15161d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.shot__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.shot__bar span {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot__link {
  display: block;
  position: relative;
  cursor: zoom-in;
}
.shot__link img {
  width: 100%;
}
.shot__link::after {
  content: attr(data-zoom-label);
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px 6px 30px;
  border-radius: 999px;
  background: rgba(10, 12, 30, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e7ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") 10px 50% / 14px no-repeat;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.shot__link:hover::after,
.shot__link:focus-visible::after {
  opacity: 1;
  transform: none;
}
.shot--light {
  background: #f4f4f2;
  border-color: rgba(18, 22, 53, 0.14);
  box-shadow: 0 50px 90px -44px rgba(18, 22, 53, 0.5), 0 18px 36px -24px rgba(18, 22, 53, 0.35);
}
.shot--light .shot__bar {
  background: #e9eaf2;
  border-bottom-color: rgba(18, 22, 53, 0.08);
}
.shot--light .shot__bar i {
  background: rgba(18, 22, 53, 0.16);
}
.shot--light .shot__bar span {
  color: rgba(18, 22, 53, 0.5);
}
figcaption.cap {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}
.sheet figcaption.cap {
  color: var(--sheet-dim);
}

/* ---------- Liczby ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f4f6ff;
  font-variation-settings: "opsz" 96;
  font-variant-numeric: tabular-nums;
}
.stat__num small {
  font-size: 0.42em;
  letter-spacing: -0.01em;
  color: var(--periwinkle);
  margin-left: 4px;
}
.stat__label {
  margin-top: 12px;
  font-weight: 600;
  color: var(--paper);
}
.stat__note {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.45;
}
@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Źródła ---------- */
.sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.source {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--ink-950);
}
.source__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.source__kicker b {
  font-weight: 500;
  color: var(--periwinkle);
}
.source p {
  font-size: 0.96rem;
  color: var(--text-dim);
}
.source ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.3;
}
.sheet .chip {
  background: rgba(18, 22, 53, 0.045);
  border-color: var(--sheet-line);
  color: var(--sheet-text);
}

/* Korelacja */
.corr {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(43, 52, 116, 0.34), rgba(18, 22, 53, 0.2) 60%);
}
.corr__copy {
  display: grid;
  gap: 16px;
}
.corr__copy p {
  color: var(--text);
}
.corr__lanes {
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.lane {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.lane__name {
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.lane__track {
  position: relative;
  height: 44px;
  border-radius: 10px;
  background: rgba(7, 8, 23, 0.5);
  border: 1px solid var(--line);
}
.lane__event {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  background: rgba(141, 153, 230, 0.16);
  border: 1px solid rgba(141, 153, 230, 0.38);
  color: var(--paper);
  white-space: nowrap;
}
.lane__event small {
  font-size: 11px;
  color: var(--text-dim);
}
.lane--alert .lane__track {
  border-style: dashed;
  background: transparent;
}
.lane--alert .lane__event {
  background: rgba(255, 90, 54, 0.12);
  border-color: rgba(255, 90, 54, 0.55);
}
.lane--alert .lane__event::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
}
.lane__ticks {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  color: var(--text-faint);
  font-size: 11px;
}
.lane__ticks div {
  display: flex;
  justify-content: space-between;
  padding-inline: 2px;
}

/* ---------- Funkcje ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(96px, 12vw, 176px);
}
.feature--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature--flip .feature__copy {
  order: 2;
}
.feature--flip .feature__media {
  order: 1;
}
.feature--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 4vw, 56px);
}
.feature--stack .feature__copy {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 84px);
  align-items: end;
}
.feature--stack .feature__copy > .feature__intro {
  display: grid;
  gap: 20px;
}
.feature__copy {
  display: grid;
  gap: 20px;
  align-content: center;
}
.feature__copy > p {
  color: var(--text);
  max-width: 54ch;
}
.ticks {
  display: grid;
  gap: 11px;
  margin-top: 6px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--periwinkle);
}
.sheet .ticks li {
  color: var(--sheet-text);
}
.sheet .ticks li::before {
  background: var(--cobalt);
}
.feature__media {
  position: relative;
  min-width: 0;
}
/* para: tło + pierwszy plan */
.pair {
  position: relative;
  padding-bottom: 14%;
  padding-right: 9%;
}
.pair > .shot:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66%;
}
.pair--left {
  padding-right: 0;
  padding-left: 9%;
}
.pair--left > .shot:last-child {
  right: auto;
  left: 0;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

/* ---------- Sekcje jasne ---------- */
.sheet {
  background: var(--sheet);
  color: var(--sheet-text);
}
.sheet .eyebrow {
  color: var(--cobalt);
}
.sheet .h2,
.sheet .h3,
.sheet .h4 {
  color: var(--sheet-ink);
}
.sheet .lead,
.sheet .feature__copy > p {
  color: var(--sheet-text);
}
.sheet .muted {
  color: var(--sheet-dim);
}
.sheet-edge {
  /* łagodne przejście atrament → papier */
  border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0;
}
.sheet-edge--both {
  border-radius: clamp(24px, 4vw, 48px);
}

/* Werdykty */
.verdicts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.verdict {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--sheet-card);
  border: 1px solid var(--sheet-line);
}
.verdict b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sheet-ink);
}
.verdict b::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--v, #9aa1c7);
}
.verdict span {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--sheet-dim);
}
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--sheet-line);
}
.trust div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.trust p {
  font-size: 0.93rem;
  color: var(--sheet-text);
}

/* Raporty w całości: dokument w ramce z własnym przewijaniem */
.reports {
  margin-top: clamp(72px, 9vw, 128px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--sheet-line);
  scroll-margin-top: 88px;
}
.reports__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: stretch; /* raport dobowy sięga do dołu prawej kolumny */
}
.reports__side {
  display: grid;
  gap: clamp(28px, 3.4vw, 44px);
  align-content: start;
}
.reports__note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sheet-dim);
}
.doc {
  border-radius: 18px;
  background: var(--sheet-card);
  border: 1px solid var(--sheet-line);
  box-shadow: 0 40px 80px -48px rgba(18, 22, 53, 0.45), 0 12px 28px -20px rgba(18, 22, 53, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.doc__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: start;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--sheet-line);
}
.doc__title {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.doc__title b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--sheet-ink);
  line-height: 1.25;
}
.doc__kind {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 67, 196, 0.1);
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc__open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sheet-line);
  color: var(--sheet-ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.doc__open:hover {
  background: rgba(18, 22, 53, 0.05);
  border-color: rgba(18, 22, 53, 0.24);
}
.doc__open svg {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
}
.doc__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0;
  font-size: 0.84rem;
}
.doc__meta div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.doc__meta dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sheet-dim);
}
.doc__meta dd {
  color: var(--sheet-text);
}
.doc__body {
  position: relative;
  flex: 1 1 auto;
  height: 560px;
  background: #f6f7fb;
  overflow: hidden;
}
.doc__body--tall {
  height: auto;
  min-height: clamp(620px, 78vh, 900px);
}
.doc__body iframe {
  /* main.js pomniejsza ramkę, gdy kolumna jest węższa niż raport */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f6f7fb;
  transform-origin: 0 0;
}
.doc__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 22px;
  border-top: 1px solid var(--sheet-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--sheet-dim);
}
.doc__body::after {
  /* cień u dołu: raport ciągnie się dalej */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(246, 247, 251, 0), rgba(18, 22, 53, 0.09));
  pointer-events: none;
}
.toc {
  display: grid;
  margin-top: 16px;
  counter-reset: toc;
  border-top: 1px solid var(--sheet-line);
}
.toc li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--sheet-line);
  counter-increment: toc;
}
.toc li::before {
  content: "0" counter(toc);
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt);
  padding-top: 3px;
}
.toc b {
  font-weight: 600;
  color: var(--sheet-ink);
}
.toc span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--sheet-text);
}
.toc__note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--sheet-dim);
}

/* Kwota oszczędności */
.saving {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--sheet-card);
  border: 1px solid var(--sheet-line);
}
.saving b {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  color: var(--sheet-ink);
  line-height: 1;
}
.saving span {
  font-size: 0.86rem;
  color: var(--sheet-dim);
}

/* ---------- Detektory ---------- */
.detectors {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.det {
  grid-column: span 4;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
}
.det:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.det--wide {
  grid-column: span 8;
}
.det__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.det__count {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 2.6rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--periwinkle);
  font-variant-numeric: tabular-nums;
}
.det__src {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}
.det ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.noise {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.noise div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.noise p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- Przeglądarka ekranów ---------- */
.explorer {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.explorer__tabs {
  display: grid;
  gap: 2px;
  position: sticky;
  top: 96px;
}
.explorer__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.93rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.explorer__tab span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.explorer__tab:hover {
  background: var(--surface);
  color: var(--paper);
}
.explorer__tab[aria-selected="true"] {
  background: var(--surface-2);
  color: #f4f6ff;
  box-shadow: inset 2px 0 0 var(--periwinkle);
}
.explorer__panel {
  display: grid;
  gap: 18px;
}
.explorer__panel[hidden] {
  display: none;
}
.explorer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}
.explorer__meta p {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 70ch;
}
.no-js .explorer {
  grid-template-columns: minmax(0, 1fr);
}
.no-js .explorer__tabs {
  display: none;
}
.no-js .explorer__panel + .explorer__panel {
  margin-top: 56px;
}

/* Motywy */
.themes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
.themes figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.themes figcaption i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--sw);
}
.themes .shot {
  border-radius: 10px;
}

/* Telefony */
.devices {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 26px);
  align-items: start;
}
.phone {
  position: relative;
  padding: 7px;
  border-radius: clamp(22px, 3vw, 36px);
  background: linear-gradient(160deg, #2a2f52, #101326);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 40px 70px -34px rgba(0, 0, 0, 0.9);
}
.phone:nth-child(2) {
  margin-top: 13%;
}
.phone:nth-child(3) {
  margin-top: 26%;
}
.phone a {
  display: block;
  cursor: zoom-in;
  border-radius: clamp(16px, 2.4vw, 30px);
  overflow: hidden;
}
.phone img {
  width: 100%;
}

/* ---------- Jak to działa ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
  counter-reset: step;
}
.flow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 92%, transparent);
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: clamp(14px, 2vw, 28px);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--paper);
}
.step--ai::before {
  background: var(--paper);
  color: var(--ink-850);
  border-color: var(--paper);
}
.step p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.step small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(56px, 7vw, 104px);
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.arch__copy {
  display: grid;
  gap: 16px;
  align-content: start;
}
.arch__stack {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.arch__row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.arch__row:last-child {
  border-bottom: 0;
}
.arch__row dt {
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.arch__row dd {
  color: var(--paper);
  line-height: 1.5;
}

/* ---------- Zalety ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.benefit {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.benefit:hover {
  background: var(--surface);
}
.benefit__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--periwinkle);
  margin-bottom: 14px;
}
.benefit p {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ---------- Wdrożenie ---------- */
.deploy {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.req {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.req li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.req li:first-child {
  border-top: 1px solid var(--line);
}
.req b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 3px;
}
.req span {
  color: var(--text);
}
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #080914;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.terminal__copy {
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.terminal__copy:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}
.terminal pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: #cfd5f7;
  tab-size: 2;
}
.terminal pre code {
  padding: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}
.terminal pre .c {
  color: var(--text-faint);
}
.terminal pre .p {
  color: var(--periwinkle);
  user-select: none;
}

.modes {
  margin-top: clamp(56px, 7vw, 96px);
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
table.modes__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.modes__table th,
.modes__table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.modes__table tr:last-child td,
.modes__table tr:last-child th {
  border-bottom: 0;
}
.modes__table thead th {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 620;
  color: #f4f6ff;
  background: var(--surface);
}
.modes__table thead th small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.modes__table tbody th {
  width: 22%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 18px;
}
.modes__table td {
  color: var(--text);
}
.modes__table .is-rec {
  background: rgba(141, 153, 230, 0.075);
}
.modes__table thead .is-rec small {
  color: var(--periwinkle);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}
.faq__aside {
  display: grid;
  gap: 22px;
  align-content: start;
}
.faq__aside p {
  color: var(--text-dim);
  max-width: 34ch;
}
.faq__aside a {
  color: var(--paper);
  text-underline-offset: 4px;
}
.faq__list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #f4f6ff;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--periwinkle);
  border-bottom: 2px solid var(--periwinkle);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}
.faq details p {
  padding: 0 40px 24px 0;
  color: var(--text-dim);
  max-width: 68ch;
}

/* ---------- CTA końcowe ---------- */
.final {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 104px) clamp(24px, 6vw, 96px);
  border-radius: clamp(24px, 4vw, 44px);
  background: linear-gradient(140deg, var(--ink-600), var(--ink-850) 62%);
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.final__copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.final__mark {
  justify-self: end;
  width: min(100%, 300px);
  opacity: 0.95;
}
.final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ---------- Stopka ---------- */
.footer {
  padding: 56px 0 44px;
  margin-top: var(--section);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 40px;
}
.footer__brand {
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 46ch;
}
.footer__brand svg {
  height: 34px;
  width: auto;
  color: #f4f6ff;
}
.footer h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer li + li {
  margin-top: 9px;
}
.footer a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
}
.footer__note {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 6, 16, 0.94);
  color: var(--paper);
}
.lightbox::backdrop {
  background: rgba(5, 6, 16, 0.6);
}
.lightbox__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.lightbox__btns {
  display: flex;
  gap: 8px;
}
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__btn:hover {
  background: var(--surface-2);
}
.lightbox__btn svg {
  width: 18px;
  height: 18px;
}
.lightbox__stage {
  display: grid;
  place-items: center;
  padding: 0 20px 24px;
  min-height: 0;
  cursor: zoom-out;
}
.lightbox__stage img {
  /* wymiary liczone od okna: procent wysokości w siatce o wierszu „auto” nie ogranicza obrazu */
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px -30px #000;
}

/* ---------- Wejścia przy przewijaniu ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsywność ---------- */
@media (max-width: 1020px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dial {
    width: min(100%, 460px);
  }
  .dial__card {
    right: 0;
    bottom: 76%;
  }
  .hero__visual {
    padding-top: 96px;
  }
  .reports__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature,
  .feature--flip,
  .feature--stack .feature__copy,
  .corr,
  .devices,
  .arch,
  .deploy,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature--flip .feature__copy {
    order: 0;
  }
  .sources {
    grid-template-columns: minmax(0, 1fr);
  }
  .det,
  .det--wide {
    grid-column: span 6;
  }
  .noise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .explorer {
    grid-template-columns: minmax(0, 1fr);
  }
  .explorer__tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 8px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .explorer__tabs::-webkit-scrollbar {
    display: none;
  }
  .explorer__tab {
    width: auto;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
  }
  .explorer__tab span {
    display: none;
  }
  .explorer__tab[aria-selected="true"] {
    box-shadow: none;
    border-color: var(--periwinkle);
  }
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 44px;
  }
  .flow::before {
    display: none;
  }
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }
  .final {
    grid-template-columns: minmax(0, 1fr);
  }
  .final__mark {
    display: none;
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .dial__card {
    position: relative;
    inset: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }
  .dial {
    aspect-ratio: auto;
  }
  .dial svg {
    aspect-ratio: 1;
    height: auto;
  }
  .pair,
  .pair--left {
    padding: 0;
    display: grid;
    gap: 14px;
  }
  .pair > .shot:last-child {
    position: relative;
    width: 100%;
  }
  .trio,
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .det,
  .det--wide {
    grid-column: span 12;
  }
  .noise,
  .benefits,
  .verdicts {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .req li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .arch__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .lane,
  .lane__ticks {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }
  .lane__event small {
    display: none;
  }
  .lane__event {
    /* na wąskim ekranie zdarzenia stoją jedno pod drugim; godziny zostają w tekście */
    left: 8px !important;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lane__ticks {
    display: none;
  }
  .hero__visual {
    padding-top: 0;
  }
  .terminal__bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
  }
  .shot__bar {
    height: 28px;
  }
  .shot__bar span {
    display: none;
  }
  .shot__link::after {
    display: none;
  }
  .faq details p {
    padding-right: 0;
  }
  .doc__head {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 14px;
  }
  .doc__open {
    justify-self: start;
  }
  .doc__body,
  .doc__body--tall {
    height: 540px;
    min-height: 0;
  }
  .doc__foot {
    padding: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .nav,
  .lightbox {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
