/*
 * Syntrio: strona pokazowa (wersja 1, 17.10.2026)
 * Tokeny przeniesione z projekt/tokens.css (system projektowy 0.2): jasna jak apple.com, czarne tylko przyciski i tekst,
 * kolor tylko z powodem (zielony: włączone, pomarańczowy: do sprawdzenia lub uzupełnienia).
 * Bez zewnętrznych czcionek, skryptów i ciasteczek.
 */

/* ---------- Tokeny ---------- */
:root {
  --accent: #1f3b63;            /* granat z logo: główne przyciski (decyzja 17.10: „trochę koloru”) */
  --brand: #1f3b63;            /* granat z symbolu logo, jedyny akcent marki, używany oszczędnie */
  --accent-hover: #162c4b;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(0, 0, 0, 0.05);

  --success: #248a3d;  --success-fill: #34c759;
  --danger:  #d70015;  --danger-fill:  #ff3b30;  --danger-soft: rgba(255, 59, 48, 0.10);
  --warning: #b25000;  --warning-fill: #ff9500;  --warning-soft: rgba(255, 149, 0, 0.16);

  --bg: #ffffff;
  --bg-alt: #f5f5f7;          /* co druga sekcja */
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;
  --tile: #f5f5f7;            /* kafle na białym tle */
  --separator: rgba(0, 0, 0, 0.08);
  --separator-strong: rgba(0, 0, 0, 0.14);
  --field-border: #d2d2d7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;          /* tylko elementy ozdobne i duży tekst */
  --focus: #1f3b63;

  --material-bar: rgba(255, 255, 255, 0.72);
  --material-blur: saturate(180%) blur(20px);

  --stage-gray: #8e8e93; --stage-blue: #007aff; --stage-indigo: #5856d6;
  --stage-purple: #af52de; --stage-green: #34c759;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-2xl: 30px; --r-full: 999px;

  --shadow-1: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 22px 50px rgba(0, 0, 0, 0.12);

  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-press: 100ms;
  --dur-fast: 180ms;
  --dur-reveal: 900ms;

  --page-max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 11vw, 136px);
  --header-h: 56px;

  color-scheme: light;
}

/* Strona marketingowa jest zawsze jasna (decyzja Łukasza 17.10). Tryb ciemny zostaje tylko w aplikacji. */

@media (prefers-reduced-transparency: reduce) {
  :root { --material-bar: var(--bg); --material-blur: none; }
}
@media (prefers-contrast: more) {
  :root { --separator: rgba(0, 0, 0, 0.3); --separator-strong: rgba(0, 0, 0, 0.4); --text-2: #3a3a3c; --field-border: #6e6e73; }
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--text); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
::selection { background: rgba(0, 0, 0, 0.14); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: var(--r-full); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-full);
  background: var(--accent); color: var(--accent-contrast); text-decoration: none; font-weight: 500;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; }

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

svg.i {
  width: 20px; height: 20px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Miejsca do uzupełnienia przez właściciela strony */
.todo {
  background: var(--warning-soft);
  color: var(--text);
  border-radius: 6px;
  padding: 0 5px;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Układ ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); --tile: var(--surface); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--brand);
}
.eyebrow.pill {
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--text);
  font-size: 14px;
}
.display {
  font-size: clamp(2.5rem, 1.25rem + 5.6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.title {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  margin-top: 20px;
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  line-height: 1.38;
  letter-spacing: -0.018em;
  color: var(--text-2);
  text-wrap: pretty;
}
.h3 { font-size: 21px; line-height: 1.24; letter-spacing: -0.022em; font-weight: 600; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -0.01em; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--r-full);
  font-size: 17px; font-weight: 500; letter-spacing: -0.022em; line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-press) ease-out, opacity var(--dur-fast);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: 14px; letter-spacing: -0.01em; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn .i { width: 16px; height: 16px; }

/* ---------- Pasek nawigacji ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--material-bar);
  -webkit-backdrop-filter: var(--material-blur);
  backdrop-filter: var(--material-blur);
  border-bottom: 0.5px solid transparent;
  transition: border-color var(--dur-fast);
}
.site-header.scrolled, .site-header.menu-open { border-bottom-color: var(--separator-strong); }
.nav-bar { display: flex; align-items: center; gap: var(--sp-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; border-radius: 8px; }
.brand img { width: 28px; height: 28px; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.nav-links-wrap { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-2); font-size: 14px; letter-spacing: -0.01em; text-decoration: none; transition: color var(--dur-fast); }
.nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: var(--sp-3); }
.brand + .nav-tools { margin-left: auto; }
.lang {
  display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 8px;
  border-radius: var(--r-full); color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px var(--separator-strong);
  transition: background-color var(--dur-fast);
}
.lang:hover { background: var(--accent-soft); }
.menu-btn {
  display: none; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none;
  border-radius: var(--r-full); cursor: pointer; place-items: center; color: var(--text);
}
.menu-btn .i { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }

@media (max-width: 860px) {
  .js .menu-btn { display: inline-grid; }
  .nav-links { display: none; }
  .nav-links-wrap { margin-left: 0; }
  .nav-tools { margin-left: auto; }
  .js .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-left)) 28px;
    background: var(--bg);
    border-bottom: 0.5px solid var(--separator-strong);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
    animation: menuIn 320ms var(--ease-spring) both;
  }
  .js .site-header.menu-open .nav-links a {
    display: block; padding: 14px 0; font-family: var(--font-display);
    font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text);
    border-bottom: 0.5px solid var(--separator);
  }
  .js .site-header.menu-open .nav-links li:last-child a { border-bottom: 0; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); text-align: center; overflow-x: clip; }
.hero .display { max-width: 15ch; margin-inline: auto; }
.hero .lead { max-width: 640px; margin-inline: auto; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--text-2); letter-spacing: -0.01em; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(56px, 8vw, 96px); text-align: left; list-style: none;
}
.facts li { padding: 4px 28px; border-left: 0.5px solid var(--separator-strong); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.facts span { color: var(--text-2); font-size: 15px; line-height: 1.47; letter-spacing: -0.012em; }
@media (max-width: 760px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { padding: 18px 0; border-left: 0; border-top: 0.5px solid var(--separator-strong); }
  .facts li:first-child { padding-top: 18px; }
}

/* ---------- Podgląd aplikacji (HTML i CSS, dane przykładowe) ---------- */
.preview { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1040px; text-align: left; }
.preview figcaption, .figure-caption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-2); letter-spacing: -0.006em; }
.pv {
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  font-size: 13px; line-height: 1.38; letter-spacing: -0.006em;
  user-select: none; -webkit-user-select: none;
}
.pv-bar {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px;
  border-bottom: 0.5px solid var(--separator-strong);
  background: var(--surface);
}
.pv-dots { display: flex; gap: 7px; }
.pv-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.pv-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; margin-left: 8px; }
.pv-pipe { color: var(--text-2); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.pv-pipe .i { width: 13px; height: 13px; }
.pv-new {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px;
  border-radius: var(--r-full); background: var(--accent); color: var(--accent-contrast); font-weight: 500; white-space: nowrap;
}
.pv-new .i { width: 13px; height: 13px; stroke-width: 2; }
.pv-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.pv-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; align-items: start; }
.pv-col { background: var(--surface-2); border-radius: 14px; padding: 6px; }
.pv-col-h { display: flex; align-items: center; gap: 7px; padding: 6px 6px 10px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.pv-col-h em { font-style: normal; font-weight: 400; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--stage-gray); }
.dot-blue { background: var(--stage-blue); }
.dot-indigo { background: var(--stage-indigo); }
.dot-purple { background: var(--stage-purple); }
.dot-green { background: var(--stage-green); }
.pv-cards { display: grid; gap: 6px; }
.pv-card { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-1); padding: 10px 11px; min-width: 0; }
.pv-card.selected { box-shadow: 0 0 0 2px var(--text); }
.pv-card b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pv-card .who { color: var(--text-2); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-card .val { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pv-chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-top: 7px;
  border-radius: var(--r-full); background: var(--surface-2); color: var(--text-2);
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.pv-next { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 11.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.pv-next .i { width: 12px; height: 12px; }

.pv-side { border-left: 0.5px solid var(--separator-strong); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pv-lead { display: flex; align-items: center; gap: 10px; }
.pv-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(180deg, #8e8e93 0%, #636366 100%); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.pv-lead b { display: block; font-weight: 600; font-size: 14px; }
.pv-lead b + span { display: block; color: var(--text-2); font-size: 12px; }
.pv-ai { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-2); padding: 14px; }
.pv-ai-h { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.pv-ai-h .i { width: 15px; height: 15px; }
.pv-ai-h em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.pv-player { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 5px 10px 5px 5px; border-radius: var(--r-full); background: var(--surface-2); }
.pv-play { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); }
.pv-play .i { width: 9px; height: 9px; fill: currentColor; stroke: none; margin-left: 1px; }
.pv-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 18px; min-width: 0; overflow: hidden; }
.pv-wave i { flex: 1 0 2px; max-width: 3px; height: 40%; border-radius: 2px; background: var(--text-3); opacity: 0.5; }
.pv-wave i:nth-child(3n) { height: 75%; }
.pv-wave i:nth-child(4n) { height: 55%; }
.pv-wave i:nth-child(5n) { height: 95%; }
.pv-wave i:nth-child(7n) { height: 30%; }
.pv-wave i:nth-child(-n+12) { background: var(--text); opacity: 1; }
.pv-time { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pv-ai p { color: var(--text); font-size: 12.5px; line-height: 1.5; }
.pv-changes { list-style: none; margin: 10px 0 12px; border-radius: 10px; background: var(--surface-2); }
.pv-changes li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 10px; font-size: 12px; position: relative; }
.pv-changes li + li::before { content: ""; position: absolute; top: 0; left: 10px; right: 0; height: 0.5px; background: var(--separator-strong); }
.pv-changes .k { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-changes .v { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.pv-changes .v.verify { background: var(--warning-soft); border-radius: 4px; padding: 0 4px; justify-self: start; max-width: 100%; }
.pv-tag { font-size: 10.5px; font-weight: 500; height: 18px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: var(--r-full); background: var(--surface); color: var(--text-2); white-space: nowrap; }
.pv-tag.warn { background: var(--warning-soft); color: var(--text); }
.pv-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: var(--r-full); font-weight: 500; background: var(--surface-3); color: var(--text); }
.pv-btn.primary { background: var(--accent); color: var(--accent-contrast); }
.pv-btn .i { width: 12px; height: 12px; stroke-width: 2.2; }

@media (max-width: 900px) {
  .pv-body { grid-template-columns: minmax(0, 1fr); }
  .pv-side { border-left: 0; border-top: 0.5px solid var(--separator-strong); }
  .pv-ai { max-width: 460px; }
}
@media (max-width: 560px) {
  .pv-board { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 8px; }
  .pv-col:nth-child(3) { display: none; }
  .pv-bar { padding: 0 12px; gap: 8px; }
  .pv-pipe { display: none; }
  .pv-side { padding: 12px; }
  .pv-changes li { grid-template-columns: 84px minmax(0, 1fr) auto; }
}
@media (max-width: 380px) {
  .pv-dots { display: none; }
  .pv-title { margin-left: 0; }
}

/* ---------- Jak to działa ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: step; }
.step { background: var(--tile); border-radius: var(--r-xl); padding: 32px 28px 36px; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0;
}
.step h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.024em; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Branże ---------- */
.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ind { background: var(--tile); border-radius: var(--r-xl); padding: 32px 28px; display: flex; flex-direction: column; }
.ind-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--accent); color: var(--accent-contrast);
}
.ind-ico .i { width: 24px; height: 24px; }
.ind h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.024em; font-weight: 600; margin-bottom: 8px; }
.ind > p { color: var(--text-2); margin-bottom: 18px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 16px; line-height: 1.45; letter-spacing: -0.016em; }
.ticks .i { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; color: var(--text); }
.ind.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 56px; align-items: start; padding: 40px; }
.ind.featured .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; padding-top: 4px; }
.ind.featured h3 { font-size: clamp(26px, 2.2vw + 14px, 34px); letter-spacing: -0.028em; }
.later { margin-top: 32px; text-align: center; color: var(--text-2); }
.later b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind.featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .industries { grid-template-columns: minmax(0, 1fr); }
  .ind.featured { padding: 32px 28px; }
  .ind.featured .ticks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sekcje z ilustracją obok tekstu ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .split-media { order: -1; }
.split .title { margin-bottom: 4px; }
.points { list-style: none; display: grid; gap: 22px; margin-top: 36px; }
.points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.points .i { width: 24px; height: 24px; margin-top: 1px; }
.points b { display: block; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.points li > span > span { color: var(--text-2); }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
}

/* Ilustracja ustawień w stylu iOS */
.ios {
  background: var(--bg-alt); border-radius: var(--r-2xl); padding: clamp(20px, 3vw, 32px);
  font-size: 15px; letter-spacing: -0.012em; user-select: none; -webkit-user-select: none;
}
.section-alt .ios { background: var(--bg); }
.ios-label { margin: 0 16px 8px; font-size: 13px; color: var(--text-2); font-weight: 500; letter-spacing: -0.004em; }
.ios-label + .ios-group { margin-bottom: 22px; }
.ios-group { list-style: none; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.ios-group:last-child { margin-bottom: 0; }
.ios-group li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; position: relative; }
.ios-group li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--separator-strong); }
.ios-group.icons li + li::before { left: 58px; }
.ios-group .val { margin-left: auto; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ios-group .val .i { width: 14px; height: 14px; color: var(--text-3); }
.ios-group .from { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.ios-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); flex: none; }
.ios-ico .i { width: 17px; height: 17px; }
.switch { margin-left: auto; width: 46px; height: 28px; border-radius: var(--r-full); background: var(--surface-3); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.switch.on { background: var(--success-fill); }
.switch.on::after { left: 20px; }
.ios-group .grip { color: var(--text-3); width: 16px; height: 16px; }
.ios-group .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule {
  margin-left: auto; display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--r-full); background: var(--surface-2); color: var(--text-2);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
@media (max-width: 420px) {
  .ios { padding: 14px 10px; border-radius: var(--r-xl); }
  .ios-group li { padding: 8px 12px; gap: 10px; }
  .ios-group .grip { display: none; }
  .ios-group .name { flex: 0 0 auto; }
  .rule { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 24px; font-size: 11px; padding: 0 8px; }
  .ios-label { margin-left: 12px; }
}

/* ---------- Moduły ---------- */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mod { background: var(--tile); border-radius: var(--r-xl); padding: 32px 28px; }
.mod.wide, .mod.wide-lg { grid-column: span 2; }
.mod-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: var(--accent); color: var(--accent-contrast); }
.mod-ico .i { width: 22px; height: 22px; }
.mod h3 { font-size: 22px; line-height: 1.22; letter-spacing: -0.024em; font-weight: 600; margin-bottom: 8px; }
.mod p { color: var(--text-2); }
.mod .later-note { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.core {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: -24px auto 48px; max-width: 820px;
}
.core li { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: var(--r-full); background: var(--tile); font-size: 15px; font-weight: 500; letter-spacing: -0.012em; }
.pricing-note { margin-top: 40px; text-align: center; color: var(--text-2); }
.pricing-note b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod.wide { grid-column: 1 / -1; }
  .mod.wide-lg { grid-column: auto; }
}
@media (max-width: 640px) {
  .modules { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Historia ---------- */
.story { max-width: 760px; margin-inline: auto; }
.story .title { margin-bottom: 32px; }
.story p { font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem); line-height: 1.5; letter-spacing: -0.02em; color: var(--text-2); }
.story p + p { margin-top: 20px; }
.story p strong { color: var(--text); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 7vw, 80px); }
.value { border-top: 0.5px solid var(--separator-strong); padding-top: 24px; }
.value h3 { font-size: 21px; line-height: 1.24; letter-spacing: -0.022em; font-weight: 600; margin-bottom: 8px; }
.value p { color: var(--text-2); font-size: 16px; letter-spacing: -0.016em; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Wczesny dostęp i formularz ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.signup-intro .lead { margin-top: 20px; }
.signup-intro .note { margin-top: 28px; padding: 16px 18px; border-radius: var(--r-md); background: var(--tile); font-size: 15px; letter-spacing: -0.012em; }
.signup-intro .alt-contact { margin-top: 20px; font-size: 15px; color: var(--text-2); }
.form-card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-2); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.field label .opt { color: var(--text-2); font-weight: 400; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--field-border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); font-size: 17px; letter-spacing: -0.022em;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.field input:hover, .field select:hover { border-color: var(--text-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--text); }
.field input::placeholder { color: var(--text-2); opacity: 1; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); letter-spacing: -0.004em; }
.field-error:empty { display: none; }
.consents { grid-column: 1 / -1; display: grid; gap: 14px; margin-top: 6px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; letter-spacing: -0.012em; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check .muted { display: block; font-size: 13px; }
.check-wrap .field-error { margin: 6px 0 0 34px; display: block; }
.check-wrap .field-error:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.form-foot .btn { align-self: flex-start; }
.form-legal { font-size: 13px; line-height: 1.45; color: var(--text-2); letter-spacing: -0.004em; }
.form-legal a { color: var(--text); }
.req-note { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); margin-top: -4px; }
.form-status { grid-column: 1 / -1; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.error { color: var(--danger); }
.form-done { text-align: left; padding: 8px 0; }
.form-done .done-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); margin-bottom: 20px; }
.form-done .done-ico .i { width: 26px; height: 26px; stroke-width: 2.2; }
.form-done h3 { font-size: 26px; letter-spacing: -0.026em; font-weight: 600; margin-bottom: 8px; }
.form-done p { color: var(--text-2); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .signup { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { align-self: stretch; }
}

/* ---------- Stopka ---------- */
.site-footer { background: var(--bg-alt); border-top: 0.5px solid var(--separator-strong); padding: 56px 0 40px; font-size: 13px; line-height: 1.5; letter-spacing: -0.004em; color: var(--text-2); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 0.5px solid var(--separator-strong); }
.footer-brand p { margin-top: 12px; max-width: 30ch; }
.footer-col h2 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: -0.004em; color: var(--text); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; }
.footer-bottom a { color: var(--text-2); }
.company { margin-top: 20px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Strony prawne i strona po wysłaniu formularza ---------- */
.doc { max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; }
.doc h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.024em; font-weight: 600; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.doc .updated { color: var(--text-2); }
.draft-note { margin: 28px 0 8px; padding: 16px 18px; border-radius: var(--r-md); background: var(--warning-soft); font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 48px; color: var(--text); font-weight: 500; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.result { max-width: 620px; margin-inline: auto; padding-block: clamp(64px, 12vw, 140px); }
.result h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; }
.result p { color: var(--text-2); font-size: 19px; line-height: 1.45; letter-spacing: -0.02em; }
.result ul { margin-top: 16px; padding-left: 22px; color: var(--danger); display: grid; gap: 6px; }
.result .btn { margin-top: 36px; }

/* ---------- Ruch przy przewijaniu ---------- */
.reveal { transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-spring); }
.js .reveal.pending { opacity: 0; transform: translateY(28px); }
.js .reveal.pending.scale { transform: translateY(28px) scale(0.98); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal.pending, .js .reveal.pending.scale { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
  .js .site-header.menu-open .nav-links { animation: none; }
}

@media print {
  .site-header, .skip-link, .form-card, .preview { display: none !important; }
  body { color: #000; background: #fff; }
}


/* =====================================================================
   Kolor (decyzja Łukasza 17.10: „trochę koloru ta strona potrzebuje”)
   Biel dominuje. Granat z logo w przyciskach i linkach, kolorowe ikony
   jak w iOS, kolorowy podgląd aplikacji, delikatnie przyciemnione sekcje.
   ===================================================================== */
:root {
  --brand-soft: rgba(31, 59, 99, 0.08);
  --tint: #eef3f9;                  /* jasnoniebieskoszare tło jednej sekcji */
  --stage-orange: #ff9500; --stage-teal: #30b0c7; --stage-pink: #ff2d55;
}

/* Granat w akcjach i linkach */
.btn-outline { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.eyebrow.pill { background: var(--brand-soft); color: var(--brand); }
.ticks .i { color: var(--brand); }
main p a, .form-note a, label a, .footer-legal a { color: var(--brand); text-underline-offset: 2px; }
.pv-card.selected { box-shadow: 0 0 0 2px var(--brand); }

/* Tła sekcji: subtelny granat w hero, błękitnoszare moduły, gradient w zapisie */
.hero {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(31, 59, 99, 0.12), transparent 70%),
    radial-gradient(700px 360px at 85% 30%, rgba(90, 120, 255, 0.07), transparent 70%),
    var(--bg);
}
#funkcje { background: var(--tint); --tile: var(--surface); }
#dostep { background: linear-gradient(180deg, #f3f7fc 0%, #e4ecf7 100%); --tile: var(--surface); }

/* Kolorowe ikony jak ikony aplikacji iOS (biały znak na nasyconym gradiencie) */
.mod-ico, .ind-ico, .ios-ico { background: linear-gradient(180deg, var(--g1, #3a4a63), var(--g2, #1f3b63)); color: #fff; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 6px 14px -6px var(--g2, rgba(31, 59, 99, 0.6)); }
.ico-ai      { --g1: #a37bff; --g2: #6e44ff; }
.ico-phone   { --g1: #5ee27a; --g2: #28b446; }
.ico-social  { --g1: #6f8bff; --g2: #3b55e6; }
.ico-chat    { --g1: #3ddc84; --g2: #12a454; }
.ico-mail    { --g1: #4fb0ff; --g2: #0a6cff; }
.ico-cal     { --g1: #ff6b61; --g2: #e3342a; }
.ico-planner { --g1: #ff5fa8; --g2: #a24dff; }
.ico-chart   { --g1: #ffbf47; --g2: #ff8a00; }
.ico-mobile  { --g1: #4a6a99; --g2: #1f3b63; }
.ico-mcp     { --g1: #3fd0e0; --g2: #1592ad; }
.ico-car     { --g1: #ffa94d; --g2: #ff6a00; }
.ico-home    { --g1: #3fe0cf; --g2: #0fa39b; }
.ico-sun     { --g1: #a8dc3c; --g2: #5aa51a; }
.ico-b2b     { --g1: #7d8bff; --g2: #4a55e6; }
.ico-build   { --g1: #ffbf47; --g2: #e08a00; }
.ico-undo    { --g1: #ffbf47; --g2: #ff8a00; }

/* Podgląd aplikacji z kolorem */
.dot-orange { background: var(--stage-orange); }
.dot-teal { background: var(--stage-teal); }
.pv-chip.c-orange { background: rgba(255, 149, 0, 0.14); color: #a85300; }
.pv-chip.c-blue   { background: rgba(0, 122, 255, 0.12); color: #0057c2; }
.pv-chip.c-teal   { background: rgba(48, 176, 199, 0.15); color: #0b6f82; }
.pv-chip.c-purple { background: rgba(175, 82, 222, 0.13); color: #7a2fa8; }
.pv-avatar { background: linear-gradient(180deg, #7d96ff 0%, #3b55e6 100%); }
.pv-chart { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-2); padding: 14px; }
.pv-chart-h { display: flex; align-items: baseline; gap: 6px; font-weight: 600; }
.pv-chart-h em { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--text-2); }
.pv-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: 12px 0 10px; }
.pv-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); }
/* wysokości i kolory słupków tutaj, nie w atrybucie style: polityka CSP (.htaccess) blokuje style wpisane w HTML */
.pv-bars i:nth-child(1) { --h: 38%; --c: var(--stage-blue); }
.pv-bars i:nth-child(2) { --h: 52%; --c: var(--stage-blue); }
.pv-bars i:nth-child(3) { --h: 46%; --c: var(--stage-orange); }
.pv-bars i:nth-child(4) { --h: 70%; --c: var(--stage-orange); }
.pv-bars i:nth-child(5) { --h: 62%; --c: var(--stage-purple); }
.pv-bars i:nth-child(6) { --h: 90%; --c: var(--stage-green); }
.pv-chart-f { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.pv-chart-f b { color: var(--text); font-weight: 600; }
.pv-chart-f .up { color: var(--success); font-weight: 600; }

/* Logowanie i demo w nagłówku (aplikacja pod app.crm-syntrio.com) */
.nav-login { color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; padding: 0 4px; transition: color var(--dur-fast); }
.nav-login:hover { color: var(--brand); }
.nav-links li.only-mobile { display: none; }
@media (max-width: 860px) {
  .js .nav-login { display: none; }
  .js .site-header.menu-open .nav-links li.only-mobile { display: block; }
  .js .site-header.menu-open .nav-links a.menu-demo { color: var(--brand); }
}
