/* ============================================================
   LegisPulse — landing page styles
   Design: light premium B2B SaaS; ink navy + indigo accent
   ============================================================ */

:root {
  --ink: #0B1220;
  --ink-2: #131C33;
  --ink-3: #2B3A67;
  --paper: #F7F8FC;
  --white: #FFFFFF;
  --accent: #4F46E5;
  --accent-2: #6366F1;
  --accent-soft: #EEF0FB;
  --emerald: #067647;
  --emerald-bg: #E7F6EF;
  --slate-badge: #475569;
  --slate-bg: #EEF2F7;
  --amber: #92400E;
  --amber-bg: #FEF3E2;
  --line: #E3E7F2;
  --text: #3A4460;
  --text-muted: #6B7590;
  --problem: #EBE4D6;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 4px 12px rgba(11, 18, 32, .05);
  --shadow-md: 0 4px 10px rgba(11, 18, 32, .07), 0 16px 40px rgba(11, 18, 32, .10);
  --shadow-lg: 0 8px 20px rgba(11, 18, 32, .10), 0 32px 80px rgba(11, 18, 32, .16);

  --font-body: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1140px;
  --section-pad: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ── Accessibility ─────────────────────────────── */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: #0B1220; color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font-body);
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(79, 70, 229, .45); }
.btn--outline { background: transparent; color: var(--ink); border-color: #C9CFE4; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--invert { background: #fff; color: #0B1220; box-shadow: var(--shadow-md); }
.btn--invert:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 1.06rem; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ── Badges / chips ────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.badge--gov { background: var(--emerald-bg); color: var(--emerald); }
.badge--ind { background: var(--slate-bg); color: var(--slate-badge); }
.badge--unv { background: var(--amber-bg); color: var(--amber); }

.chip {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}
.chip--scope { background: var(--accent-soft); color: var(--accent); }
.chip--date { background: #F1F3FA; color: var(--ink-3); }
.chip--date--soon { background: var(--amber-bg); color: var(--amber); }
.chip--action { background: var(--accent-soft); color: var(--accent); border: 0; cursor: default; }

/* ── Nav ───────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.28rem var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.nav__brand em { font-style: normal; color: var(--accent); }
.nav__logo { width: 32px; height: 32px; }
.nav__logo rect { fill: var(--ink); rx: 8; }
.nav__logo path { fill: var(--accent); }
.nav__logo rect:last-of-type { fill: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a:not(.btn) {
  font-size: .94rem; font-weight: 500; color: var(--ink-3); text-decoration: none;
  transition: color .15s;
}
.nav__links > a:not(.btn):hover { color: var(--accent); }
.nav__links .btn--ghost { display: none; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────── */
.hero { position: relative; padding: 148px 0 72px; background: var(--paper); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(42% 38% at 18% 22%, rgba(99, 102, 241, .16) 0%, transparent 70%),
    radial-gradient(36% 34% at 82% 16%, rgba(14, 165, 233, .12) 0%, transparent 70%),
    radial-gradient(30% 30% at 62% 78%, rgba(124, 58, 237, .10) 0%, transparent 70%);
  animation: meshFloat 18s ease-in-out infinite alternate;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11,18,32,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(11,18,32,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
}
@keyframes meshFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow--muted { color: var(--ink-3); background: #EEF1F8; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .5); }
  70% { box-shadow: 0 0 0 9px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); margin-bottom: 22px; }
.hero__lead { font-size: 1.14rem; color: var(--text); max-width: 34em; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.hero__checks li { font-size: .88rem; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.hero__checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--emerald-bg); color: var(--emerald); font-size: .68rem; font-weight: 800; }

/* Hero: product mock */
.hero__visual { position: relative; }
.mock {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .4s ease;
}
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #FAFBFE; border-bottom: 1px solid var(--line); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; }
.mock__dot--r { background: #FB6D64; } .mock__dot--y { background: #FDC046; } .mock__dot--g { background: #35CC8B; }
.mock__title { margin-left: 8px; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.mock__body { padding: 16px; display: grid; gap: 10px; }
.mock__scope { display: flex; align-items: center; justify-content: space-between; }
.mock__counter { font-size: .75rem; font-weight: 700; color: var(--accent); }
.mock__item { border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: var(--radius-sm); padding: 10px 12px; transition: transform .15s ease; }
.mock__item:hover { transform: translateX(3px); }
.mock__item--gov { border-left-color: var(--emerald); }
.mock__item--ind { border-left-color: #94A3B8; }
.mock__item--unv { border-left-color: #F59E0B; background: #FFFBF4; }
.mock__itemhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.mock__item p { font-size: .84rem; color: var(--text); line-height: 1.45; }
.mock__src { display: inline-block; margin-top: 6px; font-size: .75rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.mock__src:hover { text-decoration: underline; }
.mock__foot { display: flex; justify-content: space-between; padding: 10px 16px; background: #FAFBFE; border-top: 1px solid var(--line); }
.mock__footlabel { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.mock__footlabel--muted { font-weight: 500; }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 16px 10px 12px; box-shadow: var(--shadow-md);
}
.float strong { display: block; font: 700 .9rem var(--font-display); color: var(--ink); }
.float small { font-size: .72rem; color: var(--text-muted); }
.float__ico { font-size: 1.3rem; }
.float--coins { top: -20px; right: -8px; animation: floaty 5s ease-in-out infinite; }
.float--time { bottom: -18px; left: -14px; animation: floaty 6s .8s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__sources { position: relative; margin-top: 56px; }
.hero__sources-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-align: center; }
.hero__sources-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 760px; margin: 0 auto;
}
.hero__sources-list li {
  font: 600 .84rem var(--font-body); color: var(--ink-3);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  box-shadow: var(--shadow-sm);
}
.hero__sources-list li:last-child { color: var(--accent); border-style: dashed; }

/* ── Sections ──────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--paper); }
.section--problem { background: var(--problem); }
.section--dark { background: linear-gradient(160deg, #0B1220 0%, #101A35 60%, #0E1C3E 100%); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__sub { color: #A9B4D0; }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section__sub { color: var(--text-muted); font-size: 1.04rem; }

/* ── Grids & cards ─────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D4DAEE; }
.card--pain { border-top: 3px solid #E8503A; }
.card__ico { font-size: 1.5rem; margin-bottom: 14px; }
.card__ico--accent {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--accent-soft); border-radius: 12px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--text); }
.pain-illu, .feat-illu { width: 100%; height: auto; display: block; margin: 0 0 14px; color: var(--ink); }

/* ── Symulacje zmiany działalności (id="symulacje") ── */
.sim-flow { margin: 0 0 34px; }
.sim-flow figcaption { margin: 26px auto 10px; max-width: 760px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.sim-flow svg { width: 100%; height: auto; display: block; color: var(--ink); overflow: visible; }
.sim-flow text { font-family: var(--font-display); }
.sim-steps text { font: 600 13px var(--font-display); fill: var(--muted); letter-spacing: .02em; }
@media (max-width: 720px) {
  .sim-flow svg { min-width: 900px; }
  .sim-flow { overflow-x: auto; }
}
.pain-illu text, .feat-illu text { font-family: var(--font-display); }
.pi-stamp { font: 700 10px var(--font-display); letter-spacing: .04em; }
.pi-stamp--grupa { fill: #92400E; }
.pi-stamp--gov { fill: #067647; }
.pi-badge { font: 700 10px var(--font-display); fill: #fff; letter-spacing: .04em; }
.pi-q { font: 800 22px var(--font-display); fill: #fff; }
.pi-day { font: 800 9px var(--font-display); fill: #fff; }

/* ── Steps ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; position: relative; list-style: none; }

/* ── Ilustracja „od NIP do digestu” (SVG inline, dziedziczy motyw) ── */
.infografika { margin: 26px 0 6px; overflow-x: auto; }
.infografika svg { width: 100%; min-width: 880px; height: auto; display: block; color: var(--ink); }
.infografika text { font-family: var(--font-body); }
.ig-t { font: 700 15px var(--font-display); fill: var(--ink); }
.ig-s { font: 400 12.5px var(--font-body); fill: var(--text-muted); }
.ig-stamp { font: 700 11px var(--font-display); fill: #34D399; letter-spacing: .06em; }
.ig-bolt { font: 700 12px var(--font-display); fill: #fff; letter-spacing: .04em; }
.ig-min { font: 700 12px var(--font-display); fill: #fff; letter-spacing: .03em; }
.infografika__cap { text-align: center; color: var(--text-muted); font-size: .85rem; margin-top: 4px; }

/* ── Infografika „Jak to działa” (EPIC-306, szeroka, 3 boksy) ── */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 8px 0 56px; position: relative; }
.flow__box { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow-sm); }
.flow__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.flow__num { font: 800 1.15rem var(--font-display); color: var(--accent); }
.flow__ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.flow__ico .material-symbols-outlined { font-size: 1.25rem; }
.flow__box h3 { font-size: 1.02rem; margin: 0; }
.flow__lead { color: var(--text); font-size: .9rem; margin-bottom: 12px; }
.flow__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.flow__tags li { font-size: .78rem; color: var(--text-muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.flow__out { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink); margin: 0; border-top: 1px dashed var(--line); padding-top: 12px; }
.flow__out .material-symbols-outlined { font-size: 1rem; color: var(--accent); flex-shrink: 0; }
.flow__box:not(.flow__box--last)::after {
  content: "→"; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  font: 700 1.3rem var(--font-display); color: var(--accent); z-index: 1;
}
[data-theme="dark"] .flow__box { background: #101A2E; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 86px 26px 28px; box-shadow: var(--shadow-sm); }
.step__num {
  position: absolute; top: 20px; left: 26px;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #7C3AED); color: #fff;
  font: 800 1.05rem var(--font-display); box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: .95rem; }

/* ── Digest demo ───────────────────────────────── */
.digest { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.digest__lead { color: #A9B4D0; margin: 16px 0 22px; font-size: 1.02rem; }
.digest__lead strong { color: #fff; }
.digest__points { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.digest__points li { display: flex; gap: 12px; color: #CBD4E8; font-size: .96rem; }
.digest__points li span { color: var(--accent-2); font-weight: 800; }
.digest__frame {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,.6);
}
.digest__framebar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; background: #FAFBFE; border-bottom: 1px solid var(--line);
}
.digest__framebar strong { font: 700 .9rem var(--font-display); color: var(--ink); }
.digest__list { list-style: none; padding: 16px; display: grid; gap: 10px; counter-reset: ditem; }
.digest__list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; counter-increment: ditem; position: relative; padding-left: 40px; }
.digest__list li::before {
  content: counter(ditem, decimal-leading-zero);
  position: absolute; left: 13px; top: 12px;
  font: 700 .68rem var(--font-display); color: #A5AEC8;
}
.digest__itemhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.digest__list p { font-size: .85rem; line-height: 1.5; }
.digest__src { font-size: .76rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-block; margin-top: 5px; }
.digest__src:hover { text-decoration: underline; }

/* ── Pricing ───────────────────────────────────── */
.toggle { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.toggle__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .95rem var(--font-body); color: var(--ink-3);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 22px; cursor: pointer; transition: all .18s ease;
}
.toggle__btn.is-active { background: #0B1220; color: #fff; border-color: #0B1220; }
.toggle__save { font-size: .72rem; font-weight: 800; color: var(--emerald); background: var(--emerald-bg); padding: 2px 8px; border-radius: 999px; }
.toggle__btn.is-active .toggle__save { color: #7CE8B8; background: rgba(53, 204, 139, .15); }
.cennik__net {
  text-align: center; font-size: .9rem; color: var(--text-muted);
  max-width: 36em; margin: 0 auto 36px;
}
.cennik__net strong { color: var(--ink); font-weight: 600; }

.grid--pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: var(--accent); box-shadow: 0 12px 40px rgba(79, 70, 229, .18);
  background: linear-gradient(180deg, #FBFBFF 0%, #FFFFFF 40%);
}
.plan__ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #7C3AED); color: #fff;
  font: 700 .72rem var(--font-body); letter-spacing: .03em;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(79,70,229,.35);
}
.plan__head h3 { font-size: 1.3rem; }
.plan__tag { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 12px; }
.plan__amount { font: 800 2.7rem/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; }
.plan__cur { font: 700 1.1rem var(--font-display); color: var(--ink); }
.plan__per { font-size: .85rem; color: var(--text-muted); }
.plan__note {
  font-size: .82rem; line-height: 1.45; color: var(--text-muted);
  margin: 0 0 18px; padding: 10px 12px;
  background: var(--paper); border-radius: 10px; border: 1px solid var(--line);
}
.plan__addon {
  margin: 0; padding: 14px 16px;
  border: 2px solid var(--accent); border-radius: 14px;
  background: var(--accent-soft);
}
.plan__addon-kicker {
  font: 800 .68rem var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px;
}
.plan__addon-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0 0 6px; font-size: 1.05rem;
}
.plan__addon-row strong { color: var(--ink); }
.plan__addon-row em {
  font-style: normal; font-weight: 800; color: var(--accent); white-space: nowrap;
  background: var(--white); padding: 4px 10px; border-radius: 999px;
}
.plan__addon-hint { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--text-muted); }
.plan__feats { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan__feats li { display: flex; gap: 10px; font-size: .93rem; align-items: flex-start; }
.plan__feats li.plan__addon-item { display: block; }
.plan__feats li span { flex-shrink: 0; }
.plan__feat { display: grid; gap: 2px; }
.plan__feat strong { line-height: 1.25; }
.plan__feat small { color: var(--text-muted); font-size: .82rem; line-height: 1.35; }
.plan__feats em { font-style: normal; color: var(--text-muted); font-size: .85rem; }
.plan__btn { width: 100%; }

/* ── Kalkulator ROI ─────────────────────────────── */
.roi {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: stretch;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.roi__calc { padding: 32px 36px 32px 32px; min-width: 0; }
.roi__field { margin-bottom: 24px; }
.roi__field:last-of-type { margin-bottom: 8px; }
.roi__label-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 10px;
}
.roi__label-row label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.roi__star { color: var(--accent); }
.roi__label-row output {
  font: 700 1.05rem var(--font-display); color: var(--accent); white-space: nowrap;
}
.roi input[type="range"] {
  width: 100%; height: 8px; margin: 0; cursor: pointer;
  accent-color: var(--accent);
}
.roi__scale {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: .78rem; color: var(--text-muted);
}
.roi__hint { margin-top: 8px; font-size: .82rem; color: var(--text-muted); line-height: 1.45; }
.roi__result {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 28px 0 12px;
}
.roi__figure {
  background: var(--accent-soft); border: 1px solid transparent; border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
}
.roi__figure--year { background: var(--emerald-bg); }
.roi__figure-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.roi__figure-value { font: 800 clamp(1.4rem, 3vw, 1.85rem)/1.15 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.roi__figure--year .roi__figure-value { color: var(--emerald); }
.roi__formula { text-align: center; font-size: .85rem; color: var(--text-muted); margin: 0; }
.roi__sources {
  list-style: none; display: grid; gap: 14px; align-content: start;
  margin: 0; padding: 28px 32px;
  border-left: 1px solid var(--line);
  font-size: .8rem; color: var(--text-muted); line-height: 1.5;
}
.roi__sources li { padding-left: 1.35em; text-indent: -1.35em; }
.roi__sources b { color: var(--ink); font-weight: 700; }
.roi__sources a { color: var(--text-muted); text-underline-offset: 2px; }
.roi__sources a:hover { color: var(--accent); }

.coins { margin-top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.coins__head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.coins__head h3 { font-size: 1.2rem; margin-bottom: 6px; }
.coins__head p { color: var(--text-muted); font-size: .95rem; }
.coins__packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 720px; margin: 0 auto; }
.coins__pack {
  position: relative; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px 16px;
  transition: transform .18s, border-color .18s;
}
.coins__pack:hover { transform: translateY(-3px); border-color: #D4DAEE; }
.coins__pack strong { display: block; font: 800 1.7rem var(--font-display); color: var(--ink); }
.coins__pack span { display: block; font-size: .82rem; color: var(--text-muted); margin: 2px 0 10px; }
.coins__pack em { font-style: normal; display: inline-block; font: 700 .95rem var(--font-body); color: var(--accent); background: var(--accent-soft); padding: 5px 14px; border-radius: 999px; }
.coins__pack small { display: block; margin-top: 8px; font-size: .74rem; color: var(--text-muted); }
.coins__pack--best { border-color: var(--accent); background: linear-gradient(180deg, #FBFBFF, #fff); }
.coins__pack--best::after {
  content: "Best value"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font: 700 .68rem var(--font-body); color: #fff; background: var(--accent);
  padding: 3px 10px; border-radius: 999px;
}

/* ── FAQ ───────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; padding: 18px 22px;
  font: 600 1.02rem var(--font-body); color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -3px; }
.faq__chev { color: var(--accent); font-size: 1.2rem; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__body { padding: 0 22px 20px; }
.faq__body p { font-size: .96rem; color: var(--text); }

/* ── CTA ───────────────────────────────────────── */
.cta { padding: 40px 0 var(--section-pad); }
.cta__box {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #0B1220 0%, #16224A 55%, #1D2B6B 100%);
  border-radius: var(--radius-lg); padding: 72px 32px; box-shadow: var(--shadow-lg);
}
.cta__box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(46% 42% at 78% 12%, rgba(99, 102, 241, .35) 0%, transparent 70%),
              radial-gradient(40% 40% at 15% 90%, rgba(14, 165, 233, .22) 0%, transparent 70%);
  pointer-events: none;
}
.cta__box h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; position: relative; }
.cta__box > p { position: relative; color: #A9B4D0; font-size: 1.06rem; margin-bottom: 30px; }
.cta__box .btn { position: relative; }
.cta__mini { position: relative; margin-top: 16px; font-size: .84rem; color: #8C97B8; }

/* ── Footer ────────────────────────────────────── */
.footer { background: #0B1220; color: #A9B4D0; padding: 64px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand > p { font-size: .92rem; margin-top: 14px; max-width: 26em; }
.nav__brand--footer { color: #fff; }
.nav__brand--footer .nav__logo rect { fill: rgba(255,255,255,.08); }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { color: #fff; font: 700 .95rem var(--font-display); margin-bottom: 6px; }
.footer__col a { color: #A9B4D0; text-decoration: none; font-size: .92rem; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom p { font-size: .84rem; }
.footer__disclaimer { max-width: 60em; color: #75809F; }

/* ── Reveal animations ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal--delay1 { transition-delay: .12s; }
.reveal--delay2 { transition-delay: .24s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 76px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 640px; }
  .mock { transform: none; }
  .digest { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .steps, .grid--pricing, .coins__packs { grid-template-columns: repeat(2, 1fr); }
  .steps { gap: 18px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .flow__box:not(.flow__box--last)::after { content: "↓"; right: 50%; top: auto; bottom: -15px; transform: translateX(50%); }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links > a:not(.btn) { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 12px; justify-content: center; }
  .nav__burger { display: flex; }
  .hero { padding-top: 116px; }
  .hero__cta .btn,
  .cta__box .btn {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero__cta .btn__arrow,
  .cta__box .btn__arrow {
    display: inline;
    margin-left: 6px;
  }
  .cta__box { padding: 56px 20px; }
  .float--coins { right: 4px; top: -26px; }
  .float--time { left: 4px; }
  .grid--3, .steps, .grid--pricing, .coins__packs, .footer__inner { grid-template-columns: 1fr; }
  .roi { grid-template-columns: 1fr; }
  .roi__calc, .roi__sources { padding: 24px 20px; }
  .roi__sources { border-left: 0; border-top: 1px solid var(--line); }
  .roi__result { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

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

/* ── Strony dokumentów prawnych ───────────────── */
.legal-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 132px 0 40px; }
.legal-hero h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.legal-hero__sub { color: var(--text-muted); font-size: .92rem; }
.legal-content { max-width: 800px; margin: 0 auto; padding: 40px 24px 72px; }
.legal-content h2 { font-size: 1.22rem; margin: 34px 0 10px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.02rem; margin: 20px 0 8px; }
.legal-content p { margin: 8px 0; font-size: .97rem; }
.legal-content a { text-decoration: underline; }
.legal-content ul { padding-left: 22px; margin: 8px 0; }
.legal-content li { margin: 4px 0; font-size: .97rem; }
.footer__company { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__company p { font-size: .78rem; color: #75809F; }
.footer__company strong { color: #A9B4D0; font-weight: 600; }

/* ── Przełącznik motywu ─────────────────────────── */
.nav__theme {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: none; border: 0; cursor: pointer; color: var(--ink-3);
  border-radius: 10px; transition: color .15s, background .15s;
}
.nav__theme:hover { color: var(--accent); background: var(--accent-soft); }
.nav__theme .material-symbols-outlined { font-size: 1.35rem; }

/* ── Material Symbols Outlined (jak w legal-kanban) ── */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal;
  direction: ltr; vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  user-select: none;
}
.badge .material-symbols-outlined { font-size: .82rem; }
.float__ico .material-symbols-outlined { font-size: 1.4rem; color: var(--accent); }
.card__ico > .material-symbols-outlined { font-size: 1.6rem; color: #E8503A; }
.card__ico--accent > .material-symbols-outlined { font-size: 1.4rem; color: var(--accent); }
.plan__feats .material-symbols-outlined { font-size: 1.1rem; color: var(--accent); flex-shrink: 0; }
.digest__points .material-symbols-outlined { font-size: 1.15rem; color: var(--accent-2); flex-shrink: 0; }
.faq__chev .material-symbols-outlined { font-size: 1.3rem; }
.legal-content .material-symbols-outlined { font-size: .95rem; color: var(--accent); }
.legal-content .card { display: flex; flex-direction: column; }
.legal-content .card > p:last-child { margin-top: auto; padding-top: 18px; }

/* ── Motyw ciemny (data-theme="dark" na <html>) ── */
[data-theme="dark"] {
  --ink: #F1F5F9;
  --ink-2: #E2E8F0;
  --ink-3: #C7D0E4;
  --paper: #0D1524;
  --white: #141E33;
  --accent: #6366F1;
  --accent-2: #818CF8;
  --accent-soft: rgba(99, 102, 241, .18);
  --emerald: #34D399;
  --emerald-bg: rgba(16, 185, 129, .14);
  --slate-badge: #A9B4CC;
  --slate-bg: rgba(148, 163, 184, .16);
  --amber: #FBBF24;
  --amber-bg: rgba(245, 158, 11, .14);
  --line: #28354F;
  --text: #B8C2D9;
  --text-muted: #8B96B3;
  --problem: #1C1812;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
  --shadow-md: 0 4px 10px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 20px rgba(0,0,0,.5), 0 32px 80px rgba(0,0,0,.5);
  color-scheme: dark;
}
[data-theme="dark"] body { background: #0B1220; }
[data-theme="dark"] .nav { background: rgba(13, 21, 36, .85); }
[data-theme="dark"] .nav.is-open, [data-theme="dark"] .nav__links { background: rgba(13, 21, 36, .97); }
[data-theme="dark"] .hero__grid {
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
}
[data-theme="dark"] .hero__mesh { opacity: .55; }
[data-theme="dark"] .mock__bar,
[data-theme="dark"] .mock__foot,
[data-theme="dark"] .digest__framebar { background: #101A2E; }
[data-theme="dark"] .mock__item--unv { background: rgba(245, 158, 11, .06); }
[data-theme="dark"] .chip--date { background: #1B2740; }
[data-theme="dark"] .eyebrow--muted { background: #1B2740; }
[data-theme="dark"] .btn--outline { border-color: #33415E; }
[data-theme="dark"] .btn--outline:hover { background: var(--accent-soft); }
[data-theme="dark"] .card:hover, [data-theme="dark"] .coins__pack:hover { border-color: #3A4A6B; }
[data-theme="dark"] .pi-stamp--grupa { fill: #FBBF24; }
[data-theme="dark"] .pi-stamp--gov { fill: #34D399; }
[data-theme="dark"] .coins__pack--best { background: #141E33; border-color: var(--accent); }
[data-theme="dark"] .plan--featured { background: linear-gradient(180deg, rgba(79, 70, 229, .12) 0%, var(--white) 45%); }
[data-theme="dark"] .plan__addon { background: rgba(99, 102, 241, .16); }
[data-theme="dark"] .plan__addon-row em { background: #101A2E; }
[data-theme="dark"] .toggle__btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
[data-theme="dark"] .toggle__btn.is-active .toggle__save { color: #C7F9E8; background: rgba(255, 255, 255, .16); }
[data-theme="dark"] .section--dark { background: linear-gradient(160deg, #0A0F1D 0%, #0E1730 60%, #101E42 100%); }
[data-theme="dark"] .roi__figure--year { border-color: rgba(16, 185, 129, .28); }
[data-theme="dark"] .footer { background: #0A0F1D; }
