/* Pyk, zrobione – landing page
   Mobile-first, bez frameworka. Animacje wyłączane przez prefers-reduced-motion. */

:root {
  --paper: #f5f2ea;
  --paper-2: #ece7da;
  --card: #fffdf8;
  --ink: #121417;
  --ink-2: #1c1f24;
  --ink-3: #2a2e35;
  --muted: #565b63;
  --muted-light: #a9adb4;
  --line: #dcd6c7;
  --line-dark: #333841;
  --accent: #c8f53a;       /* „pyk” – limonka przełącznika */
  --accent-ink: #1b2a00;
  --accent-deep: #2f6b00;  /* wersja z kontrastem na jasnym tle */
  --warn: #ffb648;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(18, 20, 23, .04), 0 18px 40px -18px rgba(18, 20, 23, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Segoe UI Variable Display", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--ink :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--accent); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(120, 170, 0, .7); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(120, 170, 0, .8); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Logo: mini przełącznik ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; font-size: 1.08rem; }
.logo__switch {
  position: relative; width: 34px; height: 20px; border-radius: 999px;
  background: var(--ink); flex: none; transition: background-color .35s var(--ease);
}
.logo__switch span {
  position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: transform .45s var(--spring), background-color .35s;
}
.logo:hover .logo__switch, .logo__switch.is-on { background: var(--accent); }
.logo:hover .logo__switch span, .logo__switch.is-on span { transform: translateX(14px); background: var(--ink); }
.logo--light { color: #fff; }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav__links { display: none; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 550; color: var(--muted); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 24px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--a { width: 420px; height: 420px; background: #dcf98a; top: -120px; right: -120px; animation: float-a 16s ease-in-out infinite alternate; }
.blob--b { width: 320px; height: 320px; background: #ffe2b0; bottom: -80px; left: -120px; animation: float-b 18s ease-in-out infinite alternate; }
.blob--c { width: 520px; height: 520px; background: #c8f53a; opacity: .12; top: -200px; right: -160px; animation: float-a 20s ease-in-out infinite alternate; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(18,20,23,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,20,23,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes float-a { to { transform: translate(-60px, 70px) scale(1.1); } }
@keyframes float-b { to { transform: translate(80px, -40px) scale(.92); } }

.hero__inner { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); box-shadow: 0 0 0 4px rgba(200,245,58,.45); }
.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(200,245,58,.18); }

.hero__title { font-size: clamp(2.35rem, 9vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 22px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: line-up .9s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
.hero__title .q { margin-left: -.1em; }
.hero__title em {
  font-style: normal; position: relative; display: inline-block; z-index: 0;
}
.hero__title em::before {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .08em; height: .42em;
  background: var(--accent); border-radius: .12em;
  transform: scaleX(0); transform-origin: left; animation: highlight .7s .75s var(--ease) forwards;
}
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes highlight { to { transform: scaleX(1); } }

.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%231b2a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.hero__note { font-size: .8rem; color: var(--muted); margin-top: 18px; }

/* ---------- Demo: przed/po w arkuszu ---------- */
.demo {
  position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateX(0) rotateY(0);
  transition: transform .5s var(--ease);
}
.demo__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo__dots i:first-child { background: #ff8f7a; }
.demo__dots i:nth-child(2) { background: #ffd36b; }
.demo__dots i:nth-child(3) { background: #9be36b; }
.demo__file { font-family: var(--mono); font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demo__table { padding: 6px 10px 10px; font-size: .8rem; }
.demo__row {
  display: grid; grid-template-columns: 3.6em 1fr 5.8em 7.6em; gap: 8px; align-items: center;
  padding: 9px 6px; border-bottom: 1px dashed var(--line);
}
.demo__row:last-child { border-bottom: 0; }
.demo__row--head { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; border-bottom-style: solid; }
.demo__row .num { text-align: right; font-variant-numeric: tabular-nums; }
.demo__row [role="cell"] { position: relative; min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* stan „ręcznie”: puste komórki jak szare paski + migający kursor */
.demo:not(.is-auto) .demo__row:not(.demo__row--head) [role="cell"] { color: transparent; }
.demo:not(.is-auto) .demo__row:not(.demo__row--head) [role="cell"]::after {
  content: ""; position: absolute; left: 0; top: 50%; height: .7em; width: 70%;
  transform: translateY(-50%); border-radius: 4px; background: var(--paper-2);
}
.demo:not(.is-auto) .demo__row:not(.demo__row--head) .num::after { left: auto; right: 0; width: 80%; }
.demo:not(.is-auto) .demo__row:nth-child(2) [role="cell"]:first-child::after {
  width: 2px; background: var(--ink); animation: blink 1s steps(1) infinite; height: 1em;
}
.demo:not(.is-auto) .pill { opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }

/* stan „automatycznie”: wiersze wypełniają się kaskadowo */
.demo.is-auto .demo__row:not(.demo__row--head) { animation: row-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
.demo.is-auto .demo__row:not(.demo__row--head)::before { content: none; }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-10px); background: rgba(200,245,58,.0); }
  40% { background: rgba(200,245,58,.35); }
  to { opacity: 1; transform: none; background: transparent; }
}

.pill {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: .72rem;
  padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  transition: opacity .3s;
}
.pill::before { content: "✓"; font-size: .9em; }
.pill--warn { background: #ffe7bf; color: #6a3d00; }
.pill--warn::before { content: "!"; font-weight: 800; }
.demo.is-auto .pill { animation: pop .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 120ms + 250ms); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.demo__foot {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-top: 1px solid var(--line); background: var(--paper);
}
.demo__timer { text-align: right; line-height: 1.15; }
.demo__timer strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: color .3s; }
.demo.is-auto .demo__timer strong { color: var(--accent-deep); }
.demo__timer small { color: var(--muted); font-size: .72rem; }
.demo__pyk {
  position: absolute; left: 70px; top: -14px; pointer-events: none;
  font-weight: 800; font-size: 1.1rem; color: var(--accent-ink); background: var(--accent);
  padding: 2px 10px; border-radius: 10px 10px 10px 2px;
  opacity: 0; transform: translateY(6px) scale(.6) rotate(-6deg);
}
.demo.is-popping .demo__pyk { animation: pyk 1.1s var(--spring) both; }
@keyframes pyk {
  0% { opacity: 0; transform: translateY(6px) scale(.6) rotate(-6deg); }
  25% { opacity: 1; transform: translateY(-8px) scale(1.08) rotate(-6deg); }
  70% { opacity: 1; transform: translateY(-10px) scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: translateY(-22px) scale(.95) rotate(-4deg); }
}

/* ---------- Przełącznik (switch) ---------- */
.switch {
  display: inline-flex; align-items: center; gap: 12px; padding: 4px; margin: -4px;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 999px;
}
.switch__track {
  position: relative; width: 58px; height: 32px; border-radius: 999px; flex: none;
  background: var(--ink-3); transition: background-color .35s var(--ease);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
}
.switch__thumb {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: transform .5s var(--spring);
}
.switch[aria-checked="true"] .switch__track { background: var(--accent); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(26px); background: var(--ink); }
.switch:active .switch__thumb { width: 28px; }
.switch[aria-checked="true"]:active .switch__thumb { transform: translateX(22px); }
.switch__label { position: relative; display: grid; font-weight: 700; font-size: .95rem; }
.switch__label > span { grid-area: 1 / 1; transition: opacity .25s, transform .35s var(--ease); }
.switch__on { opacity: 0; transform: translateY(8px); }
.switch[aria-checked="true"] .switch__on { opacity: 1; transform: none; }
.switch[aria-checked="true"] .switch__off { opacity: 0; transform: translateY(-8px); }
.switch--mini .switch__track { width: 46px; height: 26px; }
.switch--mini .switch__thumb { width: 18px; height: 18px; }
.switch--mini[aria-checked="true"] .switch__thumb { transform: translateX(20px); }
.switch--mini[aria-checked="true"]:active .switch__thumb { transform: translateX(16px); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0;
  border-block: 1px solid var(--ink);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 650; font-size: 1.05rem; white-space: nowrap; }
.marquee li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.section { position: relative; padding: 80px 0; }
.section--ink { background: var(--ink); color: #f1f1ee; overflow: hidden; isolation: isolate; }
.section--soft { background: var(--paper-2); }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section h2 { font-size: clamp(1.9rem, 5.6vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }
.section--ink .section__lead { color: var(--muted-light); }

/* ---------- Karty przed/po ---------- */
.cards { display: grid; gap: 18px; }
.ba {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.ba:hover { transform: translateY(-4px); }
.ba.is-after { border-color: #b7dd3a; }
.ba__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ba__top h3 { font-size: 1.25rem; flex: 1; }
.ba__icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--paper-2); color: var(--ink); transition: background-color .35s, transform .5s var(--spring);
}
.ba__icon svg { width: 22px; height: 22px; }
.ba.is-after .ba__icon { background: var(--accent); transform: rotate(-8deg); }

.ba__panes { display: grid; flex: 1; }
.ba__pane { grid-area: 1 / 1; transition: opacity .4s var(--ease), transform .5s var(--ease), filter .4s; }
.ba__pane--after { opacity: 0; transform: translateY(14px); pointer-events: none; filter: blur(4px); }
.ba.is-after .ba__pane--before { opacity: 0; transform: translateY(-14px); pointer-events: none; filter: blur(4px); }
.ba.is-after .ba__pane--after { opacity: 1; transform: none; pointer-events: auto; filter: none; }
.ba__pane p { color: var(--muted); }
.ba__metric { margin: 0; font-size: .92rem; }
.ba__metric span { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ba__pane--after .ba__metric span { color: var(--accent-deep); }

.tag {
  display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em;
}
.tag--before { background: var(--paper-2); color: var(--muted); }
.tag--after { background: var(--accent); color: var(--accent-ink); }

/* ---------- Kroki współpracy ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; position: relative; }
.step {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark);
  transition: border-color .35s, transform .35s var(--ease);
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step__num {
  display: inline-block; font-family: var(--mono); font-size: .85rem; font-weight: 700;
  color: var(--accent); margin-bottom: 18px; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px;
}
.step h3 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.step h3 small { font-size: .55em; font-weight: 550; color: var(--muted-light); letter-spacing: 0; }
.step p { color: #c9ccd1; }
.step__meta { margin: 0; font-size: .88rem; color: var(--accent) !important; font-weight: 600; }

/* ---------- Ceny ---------- */
.prices { display: grid; gap: 18px; align-items: stretch; }
.price {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease);
}
.price:hover { transform: translateY(-4px); }
.price h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.price__amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.price__amount small { font-size: .38em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price__hint { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.price li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .96rem; }
.price li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep); transform: rotate(-45deg);
}
.price--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.price--featured h3, .price--featured .price__hint, .price--featured .price__amount small { color: var(--muted-light); }
.price--featured li::before { border-color: var(--accent); }
.price__badge {
  position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- O mnie ---------- */
.about { display: grid; gap: 36px; }
.about__copy p { color: var(--muted); font-size: 1.06rem; }
.principles { display: grid; gap: 14px; }
.principles li {
  padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.principles li:hover { transform: translateX(6px); }
.principles h3 { font-size: 1.12rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.principles h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-deep); flex: none; }
.principles p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .3s, box-shadow .3s;
}
.faq details[open] { border-color: var(--ink); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 650; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23121417' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .4s var(--spring), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--accent); }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--muted); }
.faq details[open] p { animation: fade-down .4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Kontakt ---------- */
.contact__inner { display: grid; gap: 40px; }
.contact__copy h2 { color: #fff; }
.contact__copy p { color: #c9ccd1; font-size: 1.06rem; }
.contact__copy .btn { margin: 10px 0 18px; }
.contact__mail a { color: var(--accent); text-underline-offset: 3px; }

.form {
  display: grid; gap: 14px; padding: 22px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark);
}
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: #e6e7e9; }
.opt { font-weight: 450; color: var(--muted-light); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #fff;
  background: var(--ink); border: 1.5px solid var(--line-dark); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7d828a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200,245,58,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8f7a; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: #c9ccd1; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent); }
.check.is-invalid span { color: #ffb4a6; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__status { margin: 0; font-size: .92rem; color: #c9ccd1; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #ffb4a6; }
.form__status a { color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Stopka ---------- */
.footer { background: var(--ink); color: var(--muted-light); padding: 40px 0 48px; border-top: 1px solid var(--line-dark); font-size: .92rem; }
.footer__inner { display: grid; gap: 14px; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { color: #e6e7e9; text-underline-offset: 3px; }
.footer nav a:hover { color: var(--accent); }

/* ---------- Animacje wejścia (scroll reveal) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Podstrony (polityka, 404) ---------- */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.page h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.page p, .page li { color: var(--ink-3); }
.page ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.page li { margin-bottom: 6px; }
.page .meta { color: var(--muted); font-size: .92rem; }
.page a { color: var(--accent-deep); text-underline-offset: 3px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .switch__track { display: block; margin: 0 auto 24px; animation: nf-flip 2.4s var(--ease) infinite; }
.notfound .switch__thumb { animation: nf-thumb 2.4s var(--spring) infinite; }
@keyframes nf-flip { 0%, 40% { background: var(--ink-3); } 50%, 90% { background: var(--accent); } }
@keyframes nf-thumb { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(26px); } }

/* ---------- Breakpointy ---------- */
@media (max-width: 479px) {
  .demo__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .demo__row > :first-child { display: none; }
  .demo__row .pill { font-size: .68rem; padding: 3px 8px; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .demo__table { font-size: .86rem; padding: 6px 14px 12px; }
  .form { grid-template-columns: 1fr 1fr; padding: 28px; }
  .field--full { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
  .footer nav { justify-content: flex-end; }
  .footer__copy { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .nav__links { display: flex; }
  .hero { padding: 72px 0 40px; }
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .demo:hover { transform: perspective(1200px) rotateX(2deg) rotateY(-4deg); }
  .section { padding: 112px 0; }
  .cards, .steps, .prices { grid-template-columns: repeat(3, 1fr); }
  .price--featured { transform: translateY(-12px); }
  .price--featured:hover { transform: translateY(-16px); }
  .about { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  .contact__inner { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .steps::before {
    content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 2px; z-index: -1;
    background: linear-gradient(to right, var(--accent), rgba(200,245,58,.1));
    transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 1.4s var(--ease);
  }
  .steps.is-visible::before { --progress: 1; }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important; animation-delay: 0ms !important;
  }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
