/* ===========================================================================
   prospect-finder — warstwa bazowa
   Reset + elementy HTML. Wszystko wyrażone tokenami z tokens.css.
   Ładować ZAWSZE po tokens.css.
   =========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--pf-font-sans);
  font-size: var(--pf-text-base);
  line-height: var(--pf-leading-base);
  color: var(--pf-text);
  background: var(--pf-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--pf-space-4);
  line-height: var(--pf-leading-tight);
  font-weight: var(--pf-weight-bold);
  text-wrap: balance;
}
h1 { font-size: var(--pf-text-4xl); }
h2 { font-size: var(--pf-text-2xl); }
h3 { font-size: var(--pf-text-xl); }
h4 { font-size: var(--pf-text-lg); }

p { margin: 0 0 var(--pf-space-4); }
p, li { text-wrap: pretty; }

a { color: var(--pf-accent); text-underline-offset: 0.2em; }
a:hover { color: var(--pf-accent-hover); }

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

code, kbd, samp, pre { font-family: var(--pf-font-mono); font-size: 0.9em; }

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

hr { border: 0; border-top: 1px solid var(--pf-border); margin: var(--pf-space-8) 0; }

/* --- Tabele --------------------------------------------------------------
   Panel to w istocie tabela leadów. Cyfry tabelaryczne są wymogiem
   funkcjonalnym, nie estetycznym: kwoty w skarbonce i liczby produktów
   przy markach muszą się wyrównywać w kolumnie, inaczej nie da się ich
   porównywać wzrokiem.                                                     */
table { border-collapse: collapse; width: 100%; }
th, td {
  text-align: left;
  padding: var(--pf-space-2) var(--pf-space-3);
  border-bottom: 1px solid var(--pf-border);
  vertical-align: top;
}
th { font-weight: var(--pf-weight-medium); color: var(--pf-text-muted); font-size: var(--pf-text-sm); }

.pf-num, td.pf-num, .pf-money {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* --- Kontenery ------------------------------------------------------------ */
.pf-page  { max-width: var(--pf-width-page); margin-inline: auto; padding-inline: var(--pf-space-4); }
.pf-prose { max-width: var(--pf-width-prose); }

/* --- Treść tylko dla czytników ekranu ------------------------------------- */
.pf-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
