/* ============================================================================
   elogowanie.pl - system wizualny
   Ciemny, kontrastowy, jeden kolor akcentu. Zadnych ozdobnikow bez powodu.
   ========================================================================= */

/* ------------------------------- fonty ---------------------------------- */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/geist-latin.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: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/geist-latin-ext.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: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/geistmono-latin.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: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/geistmono-latin-ext.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;
}

/* ------------------------------- tokeny --------------------------------- */

:root {
  --bg: #000000;
  --bg-band: #16191a;
  --surface: #0c0e0f;
  --surface-2: #131718;
  --line: #23282a;
  --line-soft: #1a1e1f;

  --text: #f4f6f5;
  --muted: #9ba3a2; /* 8.2:1 na czarnym */
  --faint: #838b8a; /* 5.7:1 - najciemniejszy odcien, jakim wolno pisac tekst */

  --accent: #79ee5f;
  --accent-dim: #5bc247;
  --accent-ink: #06180a;
  --accent-wash: rgba(121, 238, 95, 0.12);

  --danger: #ff8f83;
  --danger-wash: rgba(255, 143, 131, 0.12);
  --warn: #f5cf7a;
  --warn-wash: rgba(245, 207, 122, 0.12);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* ------------------------------- baza ----------------------------------- */

*,
*::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-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}

/* Widoczny focus wszedzie, gdzie da sie kliknac lub wpisac. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------ typografia ------------------------------ */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.6rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

.accent {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

code,
.mono {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  letter-spacing: -0.01em;
}

code {
  padding: 0.15em 0.45em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: #d8ded9;
  word-break: break-word;
}

pre {
  margin: 0 0 1em;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
  tab-size: 2;
}
pre code {
  padding: 0;
  background: none;
  border: 0;
  font-size: 1em;
  color: #c9d1cb;
  white-space: pre;
}

/* -------------------------------- uklad --------------------------------- */

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

main {
  display: block;
  min-height: 60vh;
}

.section {
  padding-block: clamp(64px, 10vw, 132px);
}
.section--band {
  background: var(--bg-band);
}
.section--tight {
  padding-block: clamp(44px, 6vw, 76px);
}

.page {
  padding-block: clamp(48px, 7vw, 88px);
}
.page-head {
  margin-bottom: 40px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.narrow {
  max-width: 520px;
  margin-inline: auto;
}
.readable {
  max-width: 760px;
}

.split {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
/* Bez min-width:0 element siatki rosnie do szerokosci najszerszego dziecka -
   jeden dlugi wiersz w <pre> rozpychal cala strone w poziomie na telefonie. */
.split > *,
.cols > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--flip > :first-child {
    order: 2;
  }
}

.cols {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .cols--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stack > * + * {
  margin-top: 20px;
}

.mt-md {
  margin-top: 28px;
}
.mt-lg {
  margin-top: 36px;
}

/* ------------------------------- nawigacja ------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
  background: linear-gradient(to bottom, var(--bg) 55%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  display: block;
  flex: none;
}
.brand b {
  font-weight: 500;
}
.brand .dot {
  color: var(--accent);
}

/* Bez hamburgera: przy trzech pozycjach nie jest potrzebny, a kazde menu
   chowane za JS-em to kolejna rzecz do zepsucia na klawiaturze. */
.nav-links {
  display: flex;
  gap: 2px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
@media (min-width: 860px) {
  .nav-links {
    gap: 4px;
  }
}
.nav-links a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
@media (min-width: 480px) {
  .nav-links a {
    padding-inline: 14px;
  }
}
/* Na waskich ekranach pasek zawija sie na dwa wiersze zamiast chowac linki
   pod hamburgerem - menu ukryte za JS-em to kolejna rzecz do zepsucia na
   klawiaturze i czytniku ekranu. */
@media (max-width: 619px) {
  .nav {
    flex-wrap: wrap;
    border-radius: var(--r-lg);
    padding: 8px 10px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    margin: 2px 0 0;
    justify-content: center;
  }
  .nav-end {
    margin-left: auto;
  }
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-quiet {
  margin-left: auto;
  padding-right: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
@media (min-width: 860px) {
  .nav-end {
    margin-left: 0;
  }
}
.nav-end form {
  display: contents;
}

/* --------------------------------- guziki -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover {
  background: #8ff573;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #33393b;
}

.btn--quiet {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding-inline: 12px;
}
.btn--quiet:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(255, 143, 131, 0.4);
}
.btn--danger:hover {
  background: var(--danger-wash);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.linkish:hover {
  text-decoration: underline;
}
.linkish--muted {
  color: var(--muted);
}

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

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px);
}

.hero-top {
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 940px) {
  .hero-top {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.hero h1 {
  margin: 0;
  max-width: 15ch;
}
.hero-note {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 34ch;
  margin: 0;
}
@media (min-width: 940px) {
  .hero-note {
    padding-bottom: 0.7em;
  }
}

/* pasek standardow pod hero */
.strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: clamp(28px, 5vw, 52px);
}
@media (min-width: 720px) {
  .strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Linie rysujemy cieniem, a nie obramowaniem: nadmiarowe krawedzie po prawej
   i na dole przycina overflow kontenera, wiec nie trzeba zestawu regul
   nth-child osobno dla kazdej liczby kolumn. */
.strip li {
  list-style: none;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.strip strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

/* -------------------------- rysunek izometryczny ------------------------- */

.art {
  position: relative;
  margin-top: clamp(24px, 4vw, 40px);
}
/* w ukladzie dwukolumnowym rysunek nie moze rozpychac sie na cala szerokosc */
.split .art {
  max-width: 420px;
  margin-inline: auto;
}
.art svg {
  display: block;
  width: 100%;
  height: auto;
}
.art--float .cube-a {
  animation: drift 11s ease-in-out infinite;
}
.art--float .cube-b {
  animation: drift 13s ease-in-out infinite reverse;
}
.art--float .cube-c {
  animation: drift 15s ease-in-out infinite 0.6s;
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ------------------------------- karty ---------------------------------- */

.card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card > :last-child {
  margin-bottom: 0;
}
.card h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.card h3 {
  margin-bottom: 6px;
}

.card--flat {
  background: transparent;
}
.card--pad-lg {
  padding: clamp(26px, 4vw, 40px);
}

/* SpotlightCard (React Bits) - podswietlenie idzie za kursorem */
.card-spotlight {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(121, 238, 95, 0.13);
  overflow: hidden;
}
.card-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 72%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card-spotlight:hover::before,
.card-spotlight:focus-within::before {
  opacity: 1;
}

/* --------------------------- lista wlasciwosci --------------------------- */

.features {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.features li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}
.features .ico {
  margin-top: 3px;
  color: var(--accent);
}
.features h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
}
.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------- plakietki ----------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge--ok {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: rgba(121, 238, 95, 0.28);
}
.badge--warn {
  color: var(--warn);
  background: var(--warn-wash);
  border-color: rgba(245, 207, 122, 0.28);
}
.badge--err {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: rgba(255, 143, 131, 0.28);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* -------------------------------- formularze ----------------------------- */

.field {
  margin-bottom: 20px;
}
.field:last-of-type {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
label .opt {
  color: var(--muted);
  font-weight: 400;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='date'],
input[type='url'],
input[type='tel'],
input[type='file'],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
input:hover,
select:hover,
textarea:hover {
  border-color: #2f3537;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #171b1c;
}
input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--danger);
}

textarea {
  min-height: 104px;
  resize: vertical;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

input[type='file'] {
  padding: 9px 12px;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  margin: 0;
  flex: none;
  cursor: pointer;
}

.hint {
  margin: 7px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.legend-head {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.input-code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 1.35rem;
  letter-spacing: 0.5em;
  text-align: center;
  max-width: 12ch;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 26px 0;
}

.choice {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.choice:hover {
  border-color: #2f3537;
}
.choice:has(input:checked) {
  border-color: rgba(121, 238, 95, 0.45);
  background: rgba(121, 238, 95, 0.05);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.choice input {
  margin-top: 3px;
}
.choice strong {
  display: block;
  font-weight: 500;
}
.choice .hint {
  margin-top: 3px;
}

/* -------------------------------- komunikaty ----------------------------- */

.flash {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  margin-bottom: 24px;
  border-radius: var(--r-md);
  border: 1px solid;
  font-size: 0.9375rem;
}
.flash--ok {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: rgba(121, 238, 95, 0.28);
}
.flash--error {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: rgba(255, 143, 131, 0.3);
}
.flash--warn {
  color: var(--warn);
  background: var(--warn-wash);
  border-color: rgba(245, 207, 122, 0.28);
}
.flash svg {
  flex: none;
  margin-top: 3px;
}

.secret-box {
  padding: 16px 18px;
  margin: 20px 0;
  border: 1px solid rgba(245, 207, 122, 0.3);
  background: var(--warn-wash);
  border-radius: var(--r-md);
  color: var(--warn);
  font-size: 0.9375rem;
}
.secret-box .value {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  background: #0b0d0e;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  word-break: break-all;
  user-select: all;
}

/* --------------------------------- tabele -------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
caption {
  text-align: left;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
thead th {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom-color: var(--line);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
td .sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ------------------------------- akordeon -------------------------------- */

.accordion {
  border-top: 1px solid var(--line);
}
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  transition: color 0.18s var(--ease);
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:hover {
  color: var(--accent);
}
.accordion summary::after {
  content: '';
  flex: none;
  width: 11px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
  transition: transform 0.22s var(--ease);
}
.accordion details[open] summary::after {
  transform: rotate(135deg);
}
.accordion .body {
  padding: 0 2px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 72ch;
}

/* --------------------------- ekran zgody (OAuth) ------------------------- */

.consent-app {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.consent-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 500;
}
.consent-app h1 {
  font-size: 1.45rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.consent-app .who {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.scopes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scopes > li {
  border-bottom: 1px solid var(--line-soft);
}
.scopes > li:last-child {
  border-bottom: 0;
}
.scope {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px 2px;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}
.scope input {
  margin-top: 3px;
}
.scope input:disabled {
  opacity: 0.55;
  cursor: default;
}
.scope-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.scope-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}
.scope-warn {
  display: block;
  margin-top: 7px;
  font-size: 0.8125rem;
  color: var(--warn);
}

/* ------------------------------ spis tresci ------------------------------ */

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.toc a {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.toc a:hover {
  color: var(--text);
  border-color: #33393b;
  text-decoration: none;
}

/* naglowki sekcji nie chowaja sie pod przyklejonym paskiem po skoku z TOC */
[id] {
  scroll-margin-top: 90px;
}

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

.foot {
  border-top: 1px solid var(--line);
  padding-block: 44px 56px;
  margin-top: clamp(56px, 9vw, 110px);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}
.foot h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot li + li {
  margin-top: 9px;
}
.foot a {
  color: var(--muted);
}
.foot a:hover {
  color: var(--text);
}
.foot-blurb {
  margin-top: 14px;
  max-width: 34ch;
}
.foot-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* --------------------------- animacje (React Bits) ----------------------- */

/* ShinyText - port na czyste CSS, zeby nie dokladac drugiego silnika animacji */
.shiny-text {
  display: inline-block;
  background-image: linear-gradient(
    120deg,
    var(--shiny-base, #8f9896) 0%,
    var(--shiny-base, #8f9896) 35%,
    var(--shiny-shine, #ffffff) 50%,
    var(--shiny-base, #8f9896) 65%,
    var(--shiny-base, #8f9896) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine var(--shiny-speed, 5s) linear infinite;
}
@keyframes shine {
  0% {
    background-position: 150% center;
  }
  100% {
    background-position: -50% center;
  }
}

/* SplitText - perspektywa daje obrot liter glebie zamiast plaskiego skosu */
.split-parent {
  display: inline;
  perspective: 700px;
}
.split-char,
.split-word {
  display: inline-block;
  transform-style: preserve-3d;
}

.magnet-inner {
  display: inline-block;
}

/* Ziarno zdejmuje z ciemnych plaszczyzn efekt "gladkiego gradientu z AI".
   Swiadomie jako tlo elementu, a NIE osobna warstwa position:fixed - pelnoekranowa
   nakladka nad trescia to gotowy przepis na bledy odswiezania przy przewijaniu.
   Przezroczystosc jest wpieczona w SVG, wiec nie potrzeba drugiej warstwy. */
.grain-bg,
body,
.section--band {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* --------------------------- ograniczenie ruchu -------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-ready {
    opacity: 1;
  }
  .shiny-text {
    background: none;
    color: var(--muted);
    -webkit-text-fill-color: currentColor;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c6cccb;
    --line: #454b4d;
  }
}

/* ------------------------------- narzedzia ------------------------------- */

/* Ukrywanie na waskich ekranach musi stac NA KONCU pliku i z !important:
   elementy takie jak .badge maja wlasne `display`, ktore inaczej wygrywa
   kolejnoscia i pasek nawigacji rozpycha strone w poziomie. */
@media (max-width: 619px) {
  .nav-hide-sm {
    display: none !important;
  }
}
