/* Strona sprzedażowa: jeden arkusz, mobile-first, bez zależności.
   Paleta z systemu ALUK (public/CLAUDE.md): jasny motyw, akcent #226BFD, Inter. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('inter-pl.woff2') format('woff2');
}

:root {
  --bg: #f8fbfe;
  --surface: #ffffff;
  --ink: #141826;
  --muted: #4d5468;
  --faint: #8a91a5;
  --line: #e6ebf3;
  --line-strong: #d3dae6;
  --accent: #226bfd;
  --accent-deep: #1450c8;
  --accent-soft: #eaf1ff;
  --ok: #1f9d55;
  --ok-soft: #e6f5ec;
  --ok-strong: #146c3a;
  --warn: #b7791f;
  --warn-soft: #fbf1df;
  --warn-strong: #7c5113;
  --danger: #d6455d;
  --danger-soft: #fceaed;
  --danger-strong: #a02a3e;
  --graphite: #5b6178;
  --graphite-soft: #eef0f5;
  --r-sm: 8px;
  --r: 12px;
  --r-card: 16px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20, 24, 38, 0.04), 0 4px 16px rgba(20, 24, 38, 0.05);
  --shadow-pop: 0 2px 4px rgba(20, 24, 38, 0.06), 0 12px 32px rgba(20, 24, 38, 0.1);
  --wrap: 1120px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'calt', 'kern';
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6.4vw, 3.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 12px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* --- Nagłówek --- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
}

/* Lockup marki (znak „Oś zmian” + logotyp v5: Outfit 700, K ze szczeliną) zamiast tekstu
   nazwy: w nagłówku i mniejszy w stopce („© ” zostaje tekstem). CSS, nie znacznik, więc
   obejmuje też strony bloga bez zmian w ich HTML. Tekst nazwy zostaje w DOM dla czytników
   ekranu i wyszukiwarek, wizualnie ma rozmiar 0. Proporcje pliku: 701 × 141. */
.brand {
  gap: 0;
  font-size: 0;
}

.brand::before,
.foot .wrap > span:first-child::after {
  content: "";
  flex: none;
  width: 120px;
  height: 24px;
  background: url("/assets/logo-kadryhr.svg") left center / contain no-repeat;
}

.foot .wrap > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 3px; /* × 2: tekst nazwy (rozmiar 0) jest osobnym elementem flex */
  font-size: 0;
}

.foot .wrap > span:first-child::before {
  content: "©" / "";
  font-size: 0.875rem;
}

.foot .wrap > span:first-child::after {
  width: 80px;
  height: 16px;
}

.nav {
  display: none;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--ink);
}

/* Akcje w nagłówku: logowanie i próba */
.top-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-cta .login {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.top-cta .login:hover {
  color: var(--ink);
}

/* Najwęższe telefony: logo, „Zaloguj” i przycisk muszą zmieścić się w jednym wierszu. */
@media (max-width: 399px) {
  .top .wrap {
    gap: 10px;
  }

  .top-cta {
    gap: 10px;
  }

  .top-cta .login,
  .top-cta .btn-sm {
    font-size: 0.875rem;
  }

  .top-cta .btn-sm {
    padding: 0 12px;
  }
}

/* --- Przyciski --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--graphite);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition:
      background-color 160ms var(--ease),
      border-color 160ms var(--ease);
  }
}

/* --- Sekcje --- */
.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 32px;
}

.hero {
  padding: 40px 0 56px;
}

.hero-copy {
  max-width: 42rem;
}

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

.fine {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.hero-shot {
  margin: 40px 0 0;
}

/* Na wąskim ekranie makieta pokazuje czwartek–niedzielę, żeby naruszenie było widać bez przewijania. */
@media (max-width: 599px) {
  .grid-scroll .sched {
    min-width: 0;
  }

  .grid-scroll .sched tr > :nth-child(2),
  .grid-scroll .sched tr > :nth-child(3),
  .grid-scroll .sched tr > :nth-child(4) {
    display: none;
  }
}

/* --- Karta --- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

/* --- Makieta siatki grafiku (CSS, bez obrazów) --- */
.mock {
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}

.mock-bar strong {
  font-size: 0.9375rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill.is-ok {
  background: var(--ok-soft);
  color: var(--ok-strong);
}

.pill.is-warn {
  background: var(--warn-soft);
  color: var(--warn-strong);
}

.pill.is-danger {
  background: var(--danger-soft);
  color: var(--danger-strong);
}

.pill.is-neutral {
  background: var(--graphite-soft);
  color: var(--graphite);
}

.grid-scroll {
  overflow-x: auto;
}

.sched {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 620px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.sched th,
.sched td {
  padding: 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  height: 38px;
}

.sched thead th {
  font-weight: 500;
  color: var(--muted);
  height: 44px;
  line-height: 1.25;
}

.sched thead th span {
  display: block;
  font-size: 0.6875rem;
  color: var(--faint);
}

.sched thead th.we {
  color: var(--accent-deep);
}

.sched th[scope='row'] {
  text-align: left;
  padding: 0 12px 0 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}

.sched th[scope='row'] small {
  display: block;
  font-weight: 400;
  color: var(--faint);
  font-size: 0.6875rem;
}

.c {
  display: grid;
  place-items: center;
  margin: 3px;
  height: 30px;
  border-radius: 6px;
  font-weight: 500;
}

.c-r {
  background: var(--ok-soft);
  color: var(--ok-strong);
}

.c-p {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.c-w {
  color: var(--faint);
}

.c-u {
  background: var(--warn-soft);
  color: var(--warn-strong);
}

.c-l4 {
  background: var(--danger-soft);
  color: var(--danger-strong);
}

.c-x {
  background: var(--graphite-soft);
  color: var(--graphite);
}

.c-bad {
  box-shadow: inset 0 0 0 2px var(--danger);
}

.mock-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.vio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.vio b {
  display: block;
  color: var(--danger-strong);
  font-weight: 600;
}

/* --- Ból --- */
.pains {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pains li {
  padding: 20px;
}

.pains h3 {
  margin-bottom: 6px;
}

.pains p {
  margin: 0;
  color: var(--muted);
}

/* --- Kroki --- */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: krok;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: krok;
  padding: 20px;
}

.steps li::before {
  content: counter(krok);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* --- Funkcje --- */
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature {
  border-top: 1px dashed var(--line-strong);
}

.feature ul {
  padding-left: 1.1em;
  margin: 0;
  color: var(--muted);
}

.feature li + li {
  margin-top: 6px;
}

.feature li strong {
  color: var(--ink);
  font-weight: 600;
}

/* Telefon pracownika */
.phone {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 28px;
  background: var(--ink);
}

.phone-screen {
  background: var(--bg);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  font-size: 0.8125rem;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.notif {
  padding: 10px 12px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}

.notif small {
  display: block;
  color: var(--faint);
  font-size: 0.6875rem;
}

.tile {
  padding: 12px;
}

.tile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tile h4 {
  margin: 0;
  font-size: 0.875rem;
}

.tile p {
  margin: 4px 0 10px;
  color: var(--muted);
}

.fake-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
}

.fake-btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* Pasek wypłaty */
.slip {
  padding: 20px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  font-size: 0.875rem;
}

.slip dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
}

.slip dt,
.slip dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.slip dt {
  color: var(--muted);
}

.slip dd {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.slip .minus {
  color: var(--danger-strong);
}

.slip .total {
  border-bottom: 0;
  padding-top: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

/* Lista z eksportami */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- Dla kogo --- */
.who {
  display: grid;
  gap: 16px;
}

.who article {
  padding: 24px;
}

.who p {
  color: var(--muted);
  margin: 0;
}

/* --- Porównanie --- */
.compare-scroll {
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg);
}

.compare tbody th {
  font-weight: 600;
  width: 26%;
}

.compare td:nth-child(2) {
  color: var(--muted);
  width: 34%;
}

.compare td:nth-child(3) {
  width: 40%;
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

/* Telefon: każdy wiersz porównania jako blok, obie odpowiedzi pod sobą z etykietą. */
@media (max-width: 599px) {
  .compare {
    min-width: 0;
  }

  .compare thead {
    display: none;
  }

  .compare tr,
  .compare tbody th,
  .compare td {
    display: block;
    width: auto !important;
  }

  .compare tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .compare tr:last-child {
    border-bottom: 0;
  }

  .compare tbody th,
  .compare td {
    padding: 0;
    border: 0;
  }

  .compare tbody th {
    margin-bottom: 8px;
  }

  .compare td + td {
    margin-top: 6px;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--faint);
  }

  .compare td:nth-child(3)::before {
    color: var(--accent-deep);
  }
}

/* --- Cena --- */
.price {
  padding: 28px 24px;
  display: grid;
  gap: 20px;
}

.price-value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.price ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}

/* --- FAQ --- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 48rem;
}

.faq details {
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 16px;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details > div {
  padding-bottom: 18px;
  color: var(--muted);
}

.faq details > div p:last-child {
  margin: 0;
}

/* --- CTA końcowe --- */
.final {
  text-align: left;
  padding: 32px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card);
}

.final p {
  color: #c9cedb;
  max-width: 36rem;
}

.final .btn-primary {
  margin-top: 8px;
}

/* --- Stopka --- */
.foot {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a {
  color: var(--muted);
}

/* --- Blog --- */
.article {
  max-width: 44rem;
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
}

.article h1 {
  font-size: clamp(1.75rem, 5.4vw, 2.5rem);
}

.article h2 {
  font-size: clamp(1.3rem, 3.6vw, 1.625rem);
  margin-top: 1.8em;
}

.article h3 {
  margin-top: 1.4em;
}

.article p,
.article li {
  font-size: 1.0625rem;
}

.article ul,
.article ol {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}

.article li + li {
  margin-top: 6px;
}

.crumbs {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.crumbs a {
  color: var(--muted);
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.box {
  padding: 20px;
  margin: 28px 0;
}

.box p:last-child {
  margin: 0;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 0 0 1.4em;
}

.article th,
.article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.post-list li {
  padding: 24px;
}

.post-list h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.post-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-list h2 a:hover {
  color: var(--accent-deep);
}

.post-list p {
  margin: 0;
  color: var(--muted);
}

/* --- Szersze ekrany --- */
@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }

  .nav {
    display: flex;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .pains {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .who {
    grid-template-columns: repeat(3, 1fr);
  }

  .price {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 36px;
  }

  .final {
    padding: 48px;
  }
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .feature.flip > :first-child {
    order: 2;
  }

  .pains {
    grid-template-columns: repeat(3, 1fr);
  }
}
