/* ichainly — landing. Jasne, oszronione szkło na zimowym krajobrazie. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-ext-400-normal.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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-ext-500-normal.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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-ext-600-normal.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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.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; }

/*
 * Paleta zimowa: Faded Denim #75889C · Sky Mist #B6C6D4 · Almond Milk #E1DBD3
 * Muted Rose #BAA49F · Rose Quartz #F2D1C8. Tekst w przyciemnionych odcieniach
 * tych samych barw, żeby trzymać kontrast WCAG AA na jasnym szkle.
 */
:root {
  --denim: #75889c;
  --sky: #b6c6d4;
  --almond: #e1dbd3;
  --rose: #baa49f;
  --quartz: #f2d1c8;

  --bg: #dfe6ed;
  --ink: #26313d;
  --muted: #485665;
  --dim: #5a6673;
  --soft: #4b5f74;
  --line: rgba(38, 49, 61, 0.11);
  --line-strong: rgba(38, 49, 61, 0.2);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(244, 241, 238, 0.52));
  --card: rgba(255, 255, 255, 0.55);
  --card-hover: rgba(255, 255, 255, 0.85);
  --surface: #fbfaf8;
  --accent: #4f6378;          /* ciemny denim: linki, akcenty tekstowe */
  --rose-ink: #7a5852;        /* przyciemniony Muted Rose: etykiety */
  --dark: #33475b;            /* przycisk główny */
  --on-dark: #f7f5f2;
  --ok: #3b7f68;
  --ok-soft: rgba(59, 127, 104, 0.12);
  --err: #b0524a;
  --err-soft: rgba(176, 82, 74, 0.1);
  --warn: #a7803c;
  --radius: 18px;
  --radius-sm: 12px;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; margin: 0; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--denim); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tło (animowane) ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #a9bbcc 0%, #c7d3de 35%, #e6dfd8 60%, #f2d6cd 74%, #f6ebe6 84%); }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .layer { will-change: transform; }
.scene .sun { animation: breathe 9s ease-in-out infinite; transform-origin: 72% 70%; }
@keyframes breathe { 50% { opacity: 0.72; } }
/* Poświaty na niebie: duże rozmyte plamy w kolorach palety, które wolno dryfują */
.aurora { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.7; will-change: transform; }
.a1 { width: 60vw; height: 40vh; left: -10vw; top: 6vh; background: radial-gradient(circle, rgba(242, 209, 200, 0.95), transparent 65%); animation: drift1 38s ease-in-out infinite alternate; }
.a2 { width: 55vw; height: 38vh; right: -12vw; top: 18vh; background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 65%); animation: drift2 46s ease-in-out infinite alternate; }
.a3 { width: 50vw; height: 34vh; left: 25vw; top: -8vh; background: radial-gradient(circle, rgba(182, 198, 212, 0.95), transparent 65%); animation: drift3 54s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(28vw, 8vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-24vw, -6vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-18vw, 10vh) scale(1.2); } }
.snowfall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.haze { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(223, 230, 237, 0.25), transparent 35%, transparent 70%, rgba(243, 244, 245, 0.35)); }

/* ---------- szkło i karty ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 30px 70px -30px rgba(51, 71, 91, 0.35), 0 2px 6px -2px rgba(51, 71, 91, 0.08);
}
.card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.card.glass { background: var(--glass); border-color: rgba(255, 255, 255, 0.7); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { font-weight: 600; font-size: 15px; }
.count { font: 500 12px var(--mono); color: var(--muted); }

.mono-label { font: 500 11px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mono-label.accent { color: var(--rose-ink); }
.mono-dim { font: 400 12px var(--mono); color: var(--dim); }
.eyebrow { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-ink); margin-bottom: 18px; }
.soft { color: var(--soft); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--dark); color: var(--on-dark); box-shadow: 0 10px 24px -12px rgba(51, 71, 91, 0.7); }
.btn-dark:hover { background: #2a3b4d; }
.btn-ghost { background: rgba(255, 255, 255, 0.6); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.9); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 14px; z-index: 20;
  width: min(1180px, calc(100% - 32px)); margin: 14px auto 0;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 18px; border-radius: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand svg { color: var(--dark); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

/* ---------- układ ---------- */
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 120px 0 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; margin-top: 22px; }
.lede.sm { font-size: 17px; }
.lede em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 62%, rgba(242, 209, 200, 0.9) 62%); }
.caption { text-align: center; color: var(--dim); font-size: 13.5px; margin: 18px auto 0; max-width: 680px; }

/* ---------- tekst bezpośrednio na tle ----------
 * Nagłówki sekcji i hero nie leżą na szkle, a pod nimi przesuwa się niebo, góry i las.
 * Miękka, rozmyta poświata pod tekstem (bez widocznej ramki) i jasny cień liter trzymają kontrast. */
.on-scene { position: relative; isolation: isolate; }
.on-scene::before {
  content: ''; position: absolute; z-index: -1; inset: -36px -56px; pointer-events: none;
  background: radial-gradient(ellipse 70% 62% at 50% 50%, rgba(247, 245, 243, 0.82), rgba(247, 245, 243, 0.45) 55%, rgba(247, 245, 243, 0) 78%);
  filter: blur(6px);
}
.on-scene h1, .on-scene h2 { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 28px rgba(255, 255, 255, 0.7); }
.on-scene .lede, .on-scene .eyebrow, .on-scene p { text-shadow: 0 0 14px rgba(255, 255, 255, 0.9); }
.caption, .hero-meta { text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 2px rgba(255, 255, 255, 0.9); color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-top: 84px; text-align: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
h1 { font-size: clamp(38px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.unique-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 14px 7px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: linear-gradient(90deg, rgba(242, 209, 200, 0.95), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(186, 164, 159, 0.55);
  box-shadow: 0 8px 24px -14px rgba(139, 106, 99, 0.6);
}
.unique-pill .arrow { color: var(--rose-ink); transition: transform 0.2s; }
.unique-pill:hover .arrow { transform: translateX(3px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-ink); box-shadow: 0 0 0 0 rgba(139, 106, 99, 0.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(139, 106, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 106, 99, 0); } }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 14px; }
.hero-copy { max-width: 1120px; margin: 0 auto 56px; }
.hero-meta { margin: 0; }

/* ---------- okno aplikacji ---------- */
.window { border-radius: 18px; overflow: hidden; text-align: left; }
.win-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.35); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--sky); }
.dots i:nth-child(2) { background: var(--almond); }
.dots i:nth-child(3) { background: var(--quartz); }
.win-title { flex: 1; text-align: center; font-size: 13px; color: var(--muted); font-weight: 500; }
.kbd { font: 500 11px var(--mono); color: var(--dim); border: 1px solid var(--line-strong); padding: 3px 7px; border-radius: 6px; }
.win-body { display: grid; grid-template-columns: 220px 1fr; }

.side { border-right: 1px solid var(--line); padding: 18px 12px; background: rgba(255, 255, 255, 0.22); }
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 0 8px 14px; }
.logo-k { width: 26px; height: 26px; border-radius: 7px; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; font: 600 13px var(--mono); }
.side-label { font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding: 14px 8px 8px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.side-list li.active { background: rgba(255, 255, 255, 0.75); color: var(--ink); box-shadow: 0 1px 3px rgba(51, 71, 91, 0.08); }
.side-list .ic { width: 14px; text-align: center; color: var(--dim); font-size: 11px; }
.side-list li.active .ic { color: var(--rose-ink); }
.badge { margin-left: auto; font: 500 11px var(--mono); background: var(--quartz); color: var(--rose-ink); border-radius: 6px; padding: 1px 7px; }

.main { padding: 16px; display: grid; gap: 12px; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-right: auto; }
.crumbs button { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs .here { color: var(--ink); font-weight: 500; }
.crumbs .sep { color: var(--dim); }
.tabs { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.4); }
.tab { padding: 5px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); text-decoration: none; }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(51, 71, 91, 0.12); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 12px 14px; display: grid; gap: 4px; }
.kpi strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.kpi strong.sm { font-size: 18px; padding: 4px 0 3px; }
.kpi small { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi-note { font: 400 11.5px var(--mono); color: var(--ok); }
.kpi-note.warn { color: var(--rose-ink); }
.meter { height: 4px; border-radius: 4px; background: rgba(117, 136, 156, 0.18); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--denim), var(--ok)); border-radius: 4px; }

/* ---------- graf (Poznaj) ---------- */
.graph-card { padding: 14px 16px 18px; }
.graph-card .card-head { margin-bottom: 6px; }
.run-status { margin-left: auto; }
.run-status.done { color: var(--ok); }
.graph { position: relative; }
.edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.edges path { fill: none; stroke: rgba(83, 97, 112, 0.35); stroke-width: 1.6; transition: stroke 0.35s; }
.edges path.lit { stroke: var(--ok); }
.edges path.flow { stroke: var(--rose); stroke-dasharray: 5 6; animation: flow 0.6s linear infinite; }
.edges .port-dot { fill: var(--surface); stroke: var(--denim); stroke-width: 1.5; }
@keyframes flow { to { stroke-dashoffset: -11; } }

.nodes {
  list-style: none; margin: 0; padding: 22px 0 36px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 64px; position: relative;
}
.nodes > li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.nodes > li:nth-child(even) { transform: translateY(46px); }
.node {
  width: 100%; max-width: 160px; text-align: left; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px;
  background: var(--surface); position: relative; box-shadow: 0 4px 14px -8px rgba(51, 71, 91, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.node:hover { border-color: var(--denim); }
.node.selected { border-color: var(--dark); box-shadow: 0 0 0 3px rgba(117, 136, 156, 0.25); }
.node.trigger { border-radius: 18px 18px 12px 12px; border-color: var(--rose); background: linear-gradient(180deg, #fdf3ef, var(--surface)); }
.node .n-label { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.25; }
.node .n-sub { display: block; font-size: 11.5px; color: var(--dim); margin-top: 3px; line-height: 1.3; }
.node .n-state { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
.node.running { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(242, 209, 200, 0.85), 0 0 24px -2px rgba(186, 164, 159, 0.7); }
.node.running .n-state { background: var(--rose); color: #fff; border-color: var(--rose); }
.node.done { border-color: rgba(59, 127, 104, 0.55); }
.node.done .n-state { background: var(--ok); color: #fff; border-color: var(--ok); }
.node.expandable::after { content: '⤵'; position: absolute; bottom: 6px; right: 9px; font-size: 11px; color: var(--rose-ink); }
.edge-label {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; z-index: 2;
  font: 500 10.5px var(--mono); padding: 2px 7px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
}
.edge-label.lit { color: var(--ok); border-color: rgba(59, 127, 104, 0.45); }
.product-chip {
  margin-top: 10px; font: 500 11px var(--mono); color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, 0.5);
}
.product-chip.lit { color: var(--ok); border-color: rgba(59, 127, 104, 0.5); border-style: solid; }

.lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.panel { padding: 16px; min-height: 200px; }
.panel h3 { font-size: 18px; margin: 6px 0 12px; }
.io { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.io div { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; background: rgba(255, 255, 255, 0.5); }
.io b { display: block; font-weight: 500; font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.why { font-size: 14px; color: var(--muted); }
.why strong { color: var(--ink); font-weight: 500; }
.panel-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.concept-example { font: 500 13px var(--mono); background: #fdf3ef; border: 1px solid rgba(186, 164, 159, 0.45); border-radius: 9px; padding: 9px 12px; margin-top: 10px; color: var(--rose-ink); }

.todo { padding: 16px; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.todo-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.todo-list li:last-child { border-bottom: 0; }
.todo-list .mono-dim { margin-left: auto; white-space: nowrap; font-size: 11.5px; }
.ring { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--denim); flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.err { background: var(--err); } .dot.warn { background: var(--warn); } .dot.ok { background: var(--ok); }

/* ---------- problem ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 22px; display: grid; gap: 10px; align-content: start; }
.stat .big { font-size: 54px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--dark); }
.stat .big small { font-size: 26px; color: var(--soft); }
.stat .big .vs { font-size: 24px; color: var(--dim); letter-spacing: -0.01em; }
.stat p { color: var(--muted); font-size: 14.5px; }
.errors { grid-column: 1 / -1; padding: 22px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr 48px; gap: 18px; align-items: center; }
.bar-text b { display: block; font-weight: 500; font-size: 14.5px; }
.bar-text span { font-size: 13px; color: var(--dim); }
.bar { height: 8px; border-radius: 6px; background: rgba(117, 136, 156, 0.16); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--rose), #d7a99d); transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.errors.seen .bar i { width: var(--v); }
.pct { font: 500 14px var(--mono); text-align: right; }
.source { font-size: 12px; color: var(--dim); margin-top: 18px; }

/* ---------- na tle rynku ---------- */
.unique { padding: 36px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.unique::before { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 209, 200, 0.85), transparent 70%); pointer-events: none; }
.unique-head { position: relative; }
.unique-stats { position: relative; display: grid; gap: 12px; }
.unique-stats div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.unique-stats strong { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--soft); }
.unique-stats span { font-size: 14px; color: var(--muted); }
.unique-stats .hl { background: var(--dark); border-color: var(--dark); box-shadow: 0 16px 30px -18px rgba(51, 71, 91, 0.8); }
.unique-stats .hl strong { color: var(--quartz); }
.unique-stats .hl span { color: #e7ecf1; font-weight: 500; }

.compare-wrap { margin-top: 16px; padding: 10px 10px 18px; overflow-x: auto; }
.compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare th, .compare td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font: 500 11px/1.35 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink); width: 34%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .us { background: rgba(242, 209, 200, 0.42); }
.compare thead .us { border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 12px 12px; }
.us-pill { display: inline-block; font: 600 13px var(--sans); letter-spacing: -0.01em; text-transform: none; color: var(--on-dark); background: var(--dark); border-radius: 8px; padding: 5px 12px; }
.compare i { font-style: normal; }
.compare .y { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; font-weight: 600; }
.compare .us .y { background: var(--dark); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7); }
.compare .n { color: rgba(83, 97, 112, 0.5); font-size: 16px; }
.compare .p { font-size: 12.5px; color: var(--dim); }
.compare .us-note { color: var(--rose-ink); font-weight: 500; }
.compare .complement th { color: var(--muted); font-weight: 400; }
.compare-wrap .source { padding: 0 14px; }

/* ---------- jak działa ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 14.5px; flex: 1; }
.mini-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mini-chain i { font: 500 11px var(--mono); font-style: normal; border: 1px solid var(--line-strong); border-radius: 7px; padding: 3px 8px; color: var(--muted); background: rgba(255, 255, 255, 0.6); }
.mini-chain i.hl { color: var(--ok); border-color: rgba(59, 127, 104, 0.5); }
.mini-chain b { width: 14px; height: 1.5px; background: var(--ok); }
.mini-crumbs { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.mini-crumbs span { color: var(--dim); margin: 0 3px; }
.mini-crumbs em { font-style: normal; color: var(--rose-ink); font-weight: 500; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.t-err { font: 500 11px var(--mono); color: var(--err); background: var(--err-soft); border: 1px solid rgba(176, 82, 74, 0.25); padding: 3px 8px; border-radius: 7px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { color: var(--muted); font-size: 14.5px; padding: 0 4px; }
.facts b { color: var(--ink); font-weight: 500; }

/* ---------- demo (Ćwicz) ---------- */
.demo-body { padding: 22px; display: grid; gap: 20px; }
.scenario { display: grid; gap: 8px; max-width: 760px; }
.scenario p { color: var(--muted); }
.scenario b { color: var(--ink); font-weight: 500; }
.demo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.chain { display: flex; flex-direction: column; align-items: stretch; }
.cnode {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; font-size: 14.5px;
  background: var(--surface); display: grid; gap: 3px; animation: pop 0.3s ease-out; box-shadow: 0 4px 14px -10px rgba(51, 71, 91, 0.4);
}
.cnode.trigger { border-color: var(--rose); border-radius: 18px 18px 12px 12px; background: linear-gradient(180deg, #fdf3ef, var(--surface)); }
.cnode.ok { border-color: rgba(59, 127, 104, 0.5); }
.cnode .mono-label { font-size: 10px; }
.cnode.ok .mono-label { color: var(--ok); }
.clink { align-self: center; display: flex; flex-direction: column; align-items: center; height: 38px; justify-content: center; position: relative; }
.clink::before { content: ''; width: 1.6px; height: 100%; background: var(--ok); position: absolute; }
.clink span { position: relative; font: 500 10.5px var(--mono); color: var(--ok); background: var(--surface); border: 1px solid rgba(59, 127, 104, 0.4); border-radius: 6px; padding: 1px 7px; }
.cslot { margin-top: 12px; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px; text-align: center; color: var(--dim); font-size: 13.5px; background: rgba(255, 255, 255, 0.3); }
.cnode.product { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

.picker { display: grid; gap: 12px; }
.detector { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; background: rgba(255, 255, 255, 0.55); transition: border-color 0.25s, background 0.25s; }
.detector p { font-size: 14.5px; color: var(--muted); }
.detector p b { color: var(--ink); font-weight: 500; }
.detector.err { border-color: rgba(176, 82, 74, 0.45); background: #fbeeec; }
.detector.err .mono-label { color: var(--err); }
.detector.ok { border-color: rgba(59, 127, 104, 0.4); background: #ecf5f1; }
.detector.ok .mono-label { color: var(--ok); }
.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.options { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  min-height: 48px; padding: 10px 14px; border-radius: 11px; font-size: 14.5px;
  border: 1px solid var(--line); background: var(--card); transition: background 0.15s, border-color 0.15s;
}
.opt:hover { background: var(--card-hover); border-color: var(--denim); }
.opt .plus { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; background: #fff; }
.opt.tried { border-color: rgba(176, 82, 74, 0.35); }
.opt.tried .plus { color: var(--err); border-color: rgba(176, 82, 74, 0.4); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* ---------- korepetytor ---------- */
.tutor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list-card { padding: 24px; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 14.5px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks b { color: var(--ink); font-weight: 500; }
.report { grid-column: 1 / -1; padding: 22px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--rose-ink); font-size: 20px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- kontakt ---------- */
.contact { padding: 36px; display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 40px; align-items: start; }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); }
.next-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.next-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.next-steps .num { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 12.5px var(--mono); background: var(--quartz); color: var(--rose-ink); }
.direct { margin-top: 28px; font-size: 14px; color: var(--muted); }
.direct a { color: var(--ink); font-weight: 500; }
.copy { font: inherit; font-size: 12.5px; color: var(--dim); background: none; border: 0; padding: 2px 4px; margin-left: 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copy:hover { color: var(--ink); }
.hint { font-size: 12.5px; color: var(--dim); }
.hint:empty { display: none; }
.hint button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.more summary { cursor: pointer; width: fit-content; font-size: 14px; color: var(--muted); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '+ '; }
.more[open] summary::before { content: '− '; }
.more summary:hover { color: var(--ink); }
.more summary:focus-visible { outline: 2px solid var(--denim); outline-offset: 4px; border-radius: 4px; }
.more-body { display: grid; gap: 18px; padding-top: 18px; }
.privacy { font-size: 12.5px; color: var(--dim); }

.form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field i { font-style: normal; font-weight: 400; color: var(--dim); font-size: 12.5px; margin-left: 4px; }
.field input[type='text'], .field input[type='email'], .field input[type='tel'], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field 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% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input::placeholder, .field textarea::placeholder { color: #8d98a4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--denim); box-shadow: 0 0 0 3px rgba(117, 136, 156, 0.22); }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-input label { position: relative; cursor: pointer; }
.chips-input input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips-input span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; color: var(--muted); transition: all 0.15s; }
.chips-input label:hover span { border-color: var(--denim); color: var(--ink); }
.chips-input input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.chips-input input:focus-visible + span { outline: 2px solid var(--denim); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err-msg { display: none; color: var(--err); font-size: 12.5px; }
.invalid .err-msg, .err-msg.show { display: block; }
.invalid input, .invalid select { border-color: var(--err) !important; }
.invalid .chips-input span { border-color: rgba(176, 82, 74, 0.5); }
.form-foot { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.error { color: var(--err); }
.form-done { display: grid; gap: 12px; place-items: start; padding: 28px; background: #ecf5f1; border: 1px solid rgba(59, 127, 104, 0.35); border-radius: 16px; }
.form-done .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 20px; }
.form-done h3 { font-size: 22px; }
.form-done p { color: var(--muted); }

.footer { width: min(1180px, calc(100% - 32px)); margin: 100px auto 0; padding: 22px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 13.5px; }

/* ---------- mobile ---------- */
@media (max-width: 980px) {
  .win-body { grid-template-columns: 1fr; }
  .side { display: none; }
  .lower, .demo-cols, .tutor-grid, .contact, .unique { grid-template-columns: 1fr; }
  .problem-grid, .steps-grid, .facts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero { padding-top: 56px; }
  .unique-pill { font-size: 13px; }
  .section { padding-top: 88px; }
  .on-scene::before { inset: -24px -16px; }
  .main { padding: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:nth-child(3) { display: none; }
  .kpi strong { font-size: 22px; }
  .kpi strong.sm { font-size: 15px; }
  /* przebieg z góry na dół, jak w aplikacji na telefonie */
  .nodes { flex-direction: column; align-items: stretch; gap: 36px; padding: 16px 0 6px; }
  .nodes > li { align-items: flex-start; }
  .nodes > li:nth-child(even) { transform: none; align-items: flex-end; }
  .node { max-width: 78%; }
  .io { grid-template-columns: 1fr 1fr; }
  .io div:last-child { grid-column: 1 / -1; }
  .bars li { grid-template-columns: 1fr 44px; gap: 6px 12px; }
  .bars .bar { grid-column: 1 / 2; grid-row: 2; }
  .bars .pct { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .unique, .contact { padding: 22px; }
  .unique-stats div { grid-template-columns: 56px 1fr; }
  .unique-stats strong { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .demo-body { padding: 16px; }
  .win-title { font-size: 12px; }
  .kbd { display: none; }
}

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