/* ==========================================================================
   style.css — tokeny, reset, typografia, layout, przyciski, formularze
   Styl: premium, minimalistyczny, B2B / SaaS. Paleta neutralna + jeden akcent.
   ========================================================================== */

/* --- Tokeny ------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #fafafb;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --surface-3: #eff1f4;
  --line: #e6e7ea;
  --line-soft: #eeeff2;
  --line-strong: #d7d9de;

  --ink: #0e1116;
  --ink-2: #1b2027;
  --muted: #5b6472;
  --faint: #8a929e;

  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff4ff;
  --accent-line: #c9daff;

  --ok: #137a4b;
  --ok-soft: #e8f5ee;
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --alert: #a32222;
  --alert-soft: #fbeded;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(14, 17, 22, 0.04);
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px -12px rgba(14, 17, 22, 0.1);
  --shadow-md: 0 2px 4px rgba(14, 17, 22, 0.04), 0 24px 48px -24px rgba(14, 17, 22, 0.22);
  --shadow-app: 0 1px 1px rgba(14, 17, 22, 0.04), 0 12px 32px -8px rgba(14, 17, 22, 0.14),
    0 48px 80px -40px rgba(14, 17, 22, 0.3);

  --shell: 1200px;
  --nav-h: 68px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

body.is-locked {
  overflow: hidden;
}

/* --- Typografia --------------------------------------------------------- */
h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

.text-ink-soft {
  color: var(--muted);
}

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

/* --- Layout ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--ink);
  color: #fff;
  border-bottom: 0;
}

.section-head {
  max-width: 720px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 10px;
}

.section-head__desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.section-foot {
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}

.section-foot a {
  color: var(--accent);
  font-weight: 500;
}

.section-foot a:hover {
  text-decoration: underline;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Przyciski ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

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

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

.btn--secondary:hover {
  border-color: rgba(14, 17, 22, 0.25);
  background: var(--bg-soft);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

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

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* --- Plakietki, chipy, listy -------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

.pill--soft {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-strong);
  font-weight: 500;
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pill__sep {
  width: 1px;
  height: 12px;
  background: currentColor;
  opacity: 0.35;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

button.chip:hover,
.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip--static {
  background: var(--bg-soft);
  cursor: default;
}

.chip .num {
  color: var(--faint);
}

.chip.is-active .num {
  color: rgba(255, 255, 255, 0.7);
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.checklist .icon {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.checklist--sm li {
  font-size: 13px;
}

.checklist--light li {
  color: rgba(255, 255, 255, 0.72);
}

.checklist--light .icon {
  color: rgba(255, 255, 255, 0.55);
}

.pain-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
}

.pain-list .icon {
  flex: none;
  margin-top: 4px;
  color: var(--faint);
}

.note-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.note-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.note-list .icon {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* --- Bloki informacyjne ------------------------------------------------- */
.note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.note-box--center {
  justify-content: center;
  text-align: center;
}

.note-box--accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 500;
}

.note-box--strong {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.note-box .icon {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.banner--plain {
  background: transparent;
  box-shadow: none;
}

.banner__title {
  font-size: 17px;
  font-weight: 600;
}

.banner__desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 62ch;
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Formularze --------------------------------------------------------- */
.form {
  margin-top: 8px;
}

.form__grid {
  display: grid;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
}

.field .req {
  color: var(--alert);
}

.field .opt {
  font-weight: 400;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 120px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6472' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9.5 12 15l6-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(163, 34, 34, 0.55);
}

.field__error {
  color: var(--alert);
  font-size: 12.5px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.checkbox input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.checkbox a {
  color: var(--accent);
  font-weight: 500;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.form__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.form__note .icon {
  color: var(--accent);
}

.form__info {
  margin-top: 18px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 14px;
}

.alert--success {
  background: var(--ok-soft);
  border-color: rgba(19, 122, 75, 0.2);
  color: var(--ok);
}

.alert--error {
  background: var(--alert-soft);
  border-color: rgba(163, 34, 34, 0.2);
  color: var(--alert);
}

.alert .icon {
  flex: none;
  margin-top: 1px;
}

/* --- Dostępność --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 13px;
}

.skip-link:focus {
  left: 0;
}

.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;
}

[hidden] {
  display: none !important;
}

/* --- Animacje wejścia (IntersectionObserver + CSS) ---------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Bez JavaScriptu treść ma być widoczna od razu. */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --- Odciski (print) ---------------------------------------------------- */
@media print {
  .nav,
  .mobile-cta,
  .footer__columns {
    display: none;
  }
}
