/* ============================================================
   LEAD YIELD, design system v2
   Petrol #0B1F1D / #0E2926, papier #F2F4F2, złoto #E3A83C,
   wyciek #D9583B. Archivo + Manrope + IBM Plex Mono.
   ============================================================ */

:root {
  --paper: #F2F4F2;
  --paper-2: #E9EDEA;
  --ink: #0B1F1D;
  --ink-2: #0E2926;
  --ink-3: #143530;
  --gold: #E3A83C;
  --gold-2: #C98F26;
  --gold-soft: rgba(227, 168, 60, 0.14);
  --leak: #D9583B;
  --leak-soft: rgba(217, 88, 59, 0.12);
  --muted: #556763;
  --muted-dark: rgba(238, 244, 242, 0.62);
  --faint-dark: rgba(238, 244, 242, 0.38);
  --line: #D8DFDB;
  --line-dark: rgba(238, 244, 242, 0.10);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow-card: 0 1px 2px rgba(11,31,29,.05), 0 12px 32px rgba(11,31,29,.07);
  --shadow-pop: 0 24px 70px rgba(11,31,29,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.container-narrow { width: min(768px, 92vw); margin: 0 auto; }

/* ziarno na ciemnych sekcjach */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* ---------- Typografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.25; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); text-wrap: pretty; }
.on-dark .lead { color: var(--muted-dark); }
.mono { font-family: var(--font-mono); }

.hl {
  background: linear-gradient(transparent 62%, var(--gold-soft) 62%);
  padding: 0 .1em;
}

/* ---------- Nawigacja ---------- */

.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(11, 31, 29, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-links a {
  color: rgba(238,244,242,.82); text-decoration: none;
  font-size: .9rem; font-weight: 600; transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink) !important;
  padding: .55rem 1.15rem; border-radius: 999px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(227,168,60,.35);
}
.nav-cta:hover { filter: brightness(1.07); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #F2F4F2; margin: 5px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem 4vw 1.6rem; gap: 1.05rem; display: none;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(227,168,60,.16), transparent 62%),
    radial-gradient(700px 500px at -10% 110%, rgba(20,53,48,.9), transparent 70%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(3.4rem, 7.5vw, 6rem) 0 clamp(2.8rem, 6vw, 4.6rem);
}
.hero h1 { margin: 1.15rem 0 1.25rem; }
.hero h1 .accent { color: var(--gold); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.badge {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--muted-dark);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: .38rem .8rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
.badge::before { content: "\2713"; color: var(--gold); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1rem; font-size: .84rem; color: var(--faint-dark); }

.hero-media { position: relative; align-self: stretch; min-height: 380px; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-pop);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(210deg, transparent 50%, rgba(11,31,29,.65));
  pointer-events: none;
}
.hero-chip {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  background: rgba(11,31,29,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  padding: .7rem .95rem;
  font-size: .8rem; color: var(--muted-dark);
}
.hero-chip b { display: block; font-family: var(--font-mono); color: var(--gold); font-size: 1.05rem; }

/* ---------- Statbar ---------- */

.statbar { border-top: 1px solid var(--line-dark); }
.statbar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat {
  padding: 1.9rem 1.6rem 2rem;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em; color: var(--gold);
  line-height: 1; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-bottom: .55rem;
}
.stat p { font-size: .9rem; color: var(--muted-dark); max-width: 30ch; }
.stat-src { display: block; margin-top: .5rem; font-size: .7rem; color: var(--faint-dark); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 300px; }
  .statbar-inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 800; font-size: .98rem;
  padding: .95rem 1.75rem; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .16s ease, filter .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold {
  background: linear-gradient(135deg, #F0BC58, var(--gold-2));
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(227,168,60,.38);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 14px 36px rgba(227,168,60,.5); }
.btn-ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(238,244,242,.32); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.06rem; }

/* ---------- Sekcje ---------- */

section { padding: clamp(3.6rem, 7.5vw, 6.4rem) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 660px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: .75rem 0 .95rem; }

/* ---------- Bento wycieków ---------- */

.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}
.bento-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: rgba(227,168,60,.5); }
.bento-card.wide { grid-column: span 3; }
.bento-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--leak-soft);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.bento-icon svg { width: 22px; height: 22px; stroke: var(--leak); }
.bento-card h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.bento-card p { font-size: .92rem; color: var(--muted); }
.bento-cost {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: .74rem; color: var(--leak);
  letter-spacing: .02em;
}
@media (max-width: 980px) { .bento-card, .bento-card.wide { grid-column: span 3; } }
@media (max-width: 660px) { .bento-card, .bento-card.wide { grid-column: span 6; } }

/* ---------- Proces / timeline ---------- */

.timeline { position: relative; display: grid; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem;
  position: relative; padding: 0 0 2.4rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 31px; top: 14px; bottom: -14px;
  width: 2px; background: linear-gradient(var(--line-dark), var(--line-dark));
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem;
  color: var(--gold); position: relative; z-index: 1;
}
.tl-body {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 1.5rem 1.6rem;
}
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; justify-content: space-between; margin-bottom: .5rem; }
.tl-tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(227,168,60,.4); border-radius: 999px;
  padding: .3rem .7rem; white-space: nowrap;
}
.tl-body p { color: var(--muted-dark); font-size: .95rem; max-width: 62ch; }
.tl-deliverable {
  margin-top: .9rem; font-size: .82rem; color: var(--gold);
  font-family: var(--font-mono);
}
.tl-deliverable::before { content: "\2192  "; }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 44px 1fr; gap: .9rem; }
  .tl-item::before { left: 21px; }
  .tl-dot { width: 44px; height: 44px; font-size: .85rem; }
}

/* ---------- Mapa wycieków ---------- */

.leakmap {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.leakmap-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--line-dark);
}
.leakmap-head i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.leakmap-head i:nth-child(1) { background: #E0604C; }
.leakmap-head i:nth-child(2) { background: #E3A83C; }
.leakmap-head i:nth-child(3) { background: #57A773; }
.leakmap-head span { margin-left: .6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--faint-dark); letter-spacing: .08em; }
.leakmap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.leakmap th, .leakmap td { padding: 1rem 1.3rem; text-align: left; }
.leakmap th {
  font-family: var(--font-mono); font-weight: 500; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--faint-dark); border-bottom: 1px solid var(--line-dark);
}
.leakmap td { border-bottom: 1px solid rgba(238,244,242,.06); color: rgba(238,244,242,.9); }
.leakmap tr:last-child td { border-bottom: 0; }
.leakmap tbody tr { transition: background .2s; }
.leakmap tbody tr:hover { background: rgba(227,168,60,.05); }
.leakmap .val { font-family: var(--font-mono); color: var(--gold); white-space: nowrap; }
.leakmap .bad { color: #E88A72; }
.leakbar { height: 5px; border-radius: 3px; background: rgba(238,244,242,.1); margin-top: .45rem; overflow: hidden; max-width: 130px; }
.leakbar i { display: block; height: 100%; background: linear-gradient(90deg, #E0604C, #E3A83C); border-radius: 3px; }
.leakmap-note { padding: .95rem 1.3rem; font-size: .78rem; color: var(--faint-dark); border-top: 1px solid var(--line-dark); }
@media (max-width: 720px) { .leakmap { overflow-x: auto; } .leakmap table { min-width: 620px; } }

/* ---------- Kalkulator ---------- */

.calc {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(227,168,60,.12), transparent 60%),
    var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-pop);
}
.calc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.calc-field { margin-bottom: 1.5rem; }
.calc-field:last-child { margin-bottom: 0; }
.calc label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .88rem; font-weight: 700; margin-bottom: .55rem; color: rgba(238,244,242,.88); }
.calc-value { font-family: var(--font-mono); font-size: .95rem; color: var(--gold); font-weight: 600; white-space: nowrap; }

input[type="range"] { width: 100%; appearance: none; height: 6px; border-radius: 3px; background: rgba(238,244,242,.14); outline-offset: 4px; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #F0BC58, var(--gold-2));
  border: 2px solid var(--ink);
  box-shadow: 0 2px 10px rgba(227,168,60,.5); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ink); cursor: grab;
}
.calc input[type="number"] {
  width: 100%; background: var(--ink-2);
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  color: var(--paper); font-family: var(--font-mono); font-size: 1.05rem;
  padding: .75rem .9rem;
}
.calc input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.speed-chips { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.speed-chips input { position: absolute; opacity: 0; pointer-events: none; }
.speed-chips label {
  display: block; margin: 0; cursor: pointer;
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  padding: .65rem .8rem; font-size: .82rem; font-weight: 600;
  color: rgba(238,244,242,.75); text-align: center;
  transition: border-color .2s, background .2s, color .2s;
}
.speed-chips input:checked + label {
  border-color: var(--gold); background: var(--gold-soft); color: var(--gold);
}
.speed-chips input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

.calc-result {
  background: rgba(238,244,242,.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 1.6rem 1.5rem;
}
.calc-result-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; font-family: var(--font-mono); color: var(--faint-dark); }
.calc-result-value {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em; color: var(--gold);
  margin: .6rem 0 .15rem; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}
.calc-result-sub { font-size: .86rem; color: var(--muted-dark); }
.calc-meter { height: 8px; border-radius: 4px; background: rgba(238,244,242,.1); margin: 1.1rem 0 1.3rem; overflow: hidden; }
.calc-meter i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-2), #F0BC58); border-radius: 4px; transition: width .5s ease; }
.calc-result .btn { width: 100%; }
.calc-result .btn + .btn { margin-top: .6rem; }
.calc-disclaimer { font-size: .72rem; color: var(--faint-dark); margin-top: 1rem; }
@media (max-width: 880px) { .calc-grid { grid-template-columns: 1fr; } }

/* ---------- Marquee branż ---------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.05rem 0; background: #fff; }
.marquee-track {
  display: flex; gap: 2.8rem; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--muted); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 2.8rem;
}
.marquee span::after { content: "\25C6"; color: var(--gold); font-size: .55rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kwalifikacja ---------- */

.qualify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qualify-col {
  border-radius: var(--r-md); padding: 1.6rem 1.6rem;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-card);
}
.qualify-col.no { background: transparent; box-shadow: none; border-style: dashed; }
.qualify-col h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.02rem; }
.qualify-col ul { list-style: none; }
.qualify-col li { padding: .5rem 0 .5rem 1.7rem; position: relative; font-size: .94rem; color: #33453F; border-bottom: 1px dashed var(--line); }
.qualify-col li:last-child { border: 0; }
.qualify-col.yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.qualify-col.no li { color: var(--muted); }
.qualify-col.no li::before { content: "\00D7"; position: absolute; left: 0; color: var(--leak); font-weight: 800; }
@media (max-width: 780px) { .qualify-grid { grid-template-columns: 1fr; } }

/* ---------- Porównanie ---------- */

.compare { display: grid; grid-template-columns: 1fr 1.06fr; gap: 1.1rem; align-items: stretch; }
.compare-col { border-radius: var(--r-md); padding: 1.8rem 1.7rem; }
.compare-col.them { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.compare-col.us {
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(227,168,60,.14), transparent 60%),
    var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--line-dark);
  transform: translateY(-6px);
}
.compare-col h3 { margin-bottom: 1.1rem; }
.compare-col ul { list-style: none; }
.compare-col li { padding: .6rem 0 .6rem 1.8rem; position: relative; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.compare-col.us li { border-bottom: 1px dashed var(--line-dark); }
.compare-col li:last-child { border: 0; }
.compare-col.us li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.compare-col.them li::before { content: "\00D7"; position: absolute; left: 0; color: var(--leak); font-weight: 800; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } .compare-col.us { transform: none; } }

/* ---------- FAQ ---------- */

.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); margin-bottom: .65rem; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: rgba(227,168,60,.55); box-shadow: var(--shadow-card); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 1.15rem 3.2rem 1.15rem 1.35rem; position: relative; color: var(--ink);
}
.faq-q::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--gold);
  font-weight: 400; transition: transform .22s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; padding: 0 1.35rem 1.25rem; color: var(--muted); font-size: .95rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA finalne ---------- */

.cta-final { text-align: center; }
.cta-final h2 { max-width: 640px; margin: .8rem auto 1rem; }
.cta-final .lead { max-width: 560px; margin: 0 auto 2.1rem; }
.cta-phone {
  font-family: var(--font-mono); font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  color: var(--gold); text-decoration: none; font-weight: 600; letter-spacing: .01em;
  display: inline-block; margin-bottom: 1.6rem;
  border-bottom: 2px dashed rgba(227,168,60,.4);
}
.cta-contact { margin-top: 1.5rem; font-size: .92rem; color: var(--muted-dark); }
.cta-contact a { color: var(--gold); text-decoration: none; font-weight: 700; }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: .6rem; padding: .7rem 4vw calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(11,31,29,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
}
.sticky-cta .btn { flex: 1; padding: .8rem 1rem; font-size: .92rem; }
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 76px; } }

/* ---------- Stopka ---------- */

footer { background: var(--ink); color: var(--muted-dark); padding: 3.2rem 0 2rem; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.footer-grid h4 { color: var(--paper); font-size: .95rem; margin-bottom: .8rem; font-family: var(--font-display); }
.footer-grid a { color: var(--muted-dark); text-decoration: none; display: block; padding: .22rem 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid var(--line-dark); padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .76rem; color: var(--faint-dark);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Artykuły ---------- */

.article-hero { background: radial-gradient(700px 380px at 80% -20%, rgba(227,168,60,.14), transparent 60%), var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.2rem, 5vw, 3.4rem); }
.article-meta { font-family: var(--font-mono); font-size: .76rem; color: var(--faint-dark); margin-top: 1.1rem; letter-spacing: .05em; }
.article-cover { margin-top: clamp(-2rem, -3vw, -2.6rem); position: relative; z-index: 2; }
.article-cover img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
}
.article-body { padding: clamp(2.4rem, 6vw, 4.2rem) 0; }
.article-body h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.article-body h3 { margin: 1.9rem 0 .7rem; }
.article-body p { margin-bottom: 1.15rem; }
.article-body ul, .article-body ol { margin: 0 0 1.15rem 1.4rem; }
.article-body li { margin-bottom: .45rem; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.3rem;
  background: #fff; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.8rem 0; font-size: 1.05rem; font-weight: 600;
  box-shadow: var(--shadow-card);
}
.tldr {
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md); padding: 1.5rem 1.6rem;
  margin: 0 0 2.2rem; font-size: .96rem;
}
.tldr b { color: var(--gold); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; display: block; margin-bottom: .55rem; }
.figure { margin: 2rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem 1.4rem 1rem; box-shadow: var(--shadow-card); }
.figure figcaption { font-size: .78rem; color: var(--muted); font-family: var(--font-mono); margin-top: .8rem; }
.checklist { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.checklist ul { list-style: none; margin: .6rem 0 0; }
.checklist li { padding: .4rem 0 .4rem 1.7rem; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.6rem 0; background: #fff; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.data-table th { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-align: left; padding: .8rem 1rem; border-bottom: 2px solid var(--line); background: var(--paper-2); }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.data-table td.mono { color: var(--gold-2); font-weight: 600; }
.sources { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.6rem; padding-top: 1.2rem; }
.article-cta {
  background: radial-gradient(400px 220px at 90% 0%, rgba(227,168,60,.14), transparent 60%), var(--ink);
  color: var(--paper); border-radius: var(--r-lg);
  padding: 2.3rem 2rem; margin: 2.8rem 0 0; text-align: center;
  box-shadow: var(--shadow-pop);
}
.article-cta h3 { margin-bottom: .6rem; font-size: 1.35rem; }
.article-cta p { color: var(--muted-dark); margin-bottom: 1.4rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  box-shadow: var(--shadow-card);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); border-color: rgba(227,168,60,.5); }
.blog-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.blog-card-body { padding: 1.35rem 1.4rem 1.55rem; }
.blog-card h3 { font-size: 1.05rem; margin: .55rem 0 .6rem; }
.blog-card p { font-size: .89rem; color: var(--muted); }
.blog-tag { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-2); }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Strony prawne ---------- */

.legal-body { padding: clamp(2.4rem, 6vw, 4rem) 0; font-size: .95rem; }
.legal-body h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
.legal-body p, .legal-body li { color: #33453F; margin-bottom: .8rem; }
.legal-body ul, .legal-body ol { margin-left: 1.4rem; }

/* ---------- Animacje ---------- */
/* Treść jest domyślnie widoczna. Ukrywamy do animacji tylko, gdy JS działa (html.js). */

html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-d1 { transition-delay: .08s; }
html.js .reveal-d2 { transition-delay: .16s; }
html.js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-d1, html.js .reveal-d2, html.js .reveal-d3 { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   v2.1: smaczki, animacje, CRO
   ============================================================ */

/* pasek postępu scrolla */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-2), #F0BC58);
  z-index: 100; pointer-events: none;
  box-shadow: 0 0 12px rgba(227,168,60,.6);
}

/* delikatne unoszenie hero */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-media img { animation: floaty 9s ease-in-out infinite; }

/* licznik strat, pasek */
.ticker {
  background: var(--ink-2); color: var(--paper);
  border-block: 1px solid var(--line-dark);
  padding: 1rem 0;
}
.ticker-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; justify-content: center; text-align: center; }
.ticker-label { font-size: .86rem; color: var(--muted-dark); }
.ticker-num {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--gold); font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; white-space: nowrap;
}
.ticker-note { width: 100%; font-size: .68rem; color: var(--faint-dark); font-family: var(--font-mono); }

/* sekcja definicji, glosariusz pod GEO */
.glossary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.gloss-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.35rem 1.3rem; box-shadow: var(--shadow-card);
  transition: transform .2s, border-color .2s;
}
.gloss-card:hover { transform: translateY(-3px); border-color: rgba(227,168,60,.5); }
.gloss-card dt { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--gold-2); letter-spacing: .04em; margin-bottom: .5rem; text-transform: uppercase; }
.gloss-card dd { font-size: .88rem; color: var(--muted); }
.definition {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--r-sm); padding: 1.5rem 1.7rem;
  font-size: 1.05rem; box-shadow: var(--shadow-card);
  max-width: 820px;
}
.definition b { color: var(--ink); }
@media (max-width: 980px) { .glossary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .glossary { grid-template-columns: 1fr; } }

/* miękkie CTA po sekcji */
.soft-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.6rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--gold-2); text-decoration: none;
  border-bottom: 2px dashed rgba(201,143,38,.45);
  padding-bottom: .15rem;
  transition: gap .18s, color .2s;
}
.soft-cta:hover { gap: .8rem; color: var(--gold); }
.on-dark .soft-cta, .section-dark .soft-cta { color: var(--gold); }

/* kopiowanie numeru */
.copy-btn {
  background: none; border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--muted-dark); font-family: var(--font-mono); font-size: .72rem;
  padding: .4rem .85rem; cursor: pointer; margin-left: .8rem;
  transition: color .2s, border-color .2s;
  vertical-align: middle;
}
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }
.copy-btn.copied { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* dodatkowa linia w wyniku kalkulatora */
.calc-week {
  margin-top: 1rem; padding: .8rem .95rem;
  background: var(--leak-soft);
  border: 1px solid rgba(217,88,59,.3); border-radius: var(--r-sm);
  font-size: .84rem; color: #F0B4A4;
}
.calc-week b { font-family: var(--font-mono); color: #FFC9B8; }

/* mikro zapewnienie pod CTA */
.assure { display: block; margin-top: .8rem; font-size: .76rem; color: var(--faint-dark); font-family: var(--font-mono); letter-spacing: .03em; }

/* animowane paski w mapie wycieków */
.leakbar i { width: var(--w); }
html.js .leakbar i { width: 0; transition: width 1.1s cubic-bezier(.2,.7,.3,1) .2s; }
html.js .leakmap.in .leakbar i { width: var(--w); }

/* sekcja wiedzy na stronie głównej */
.home-blog .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; }
.home-blog .section-head > div { max-width: 620px; }
@media (max-width: 700px) { .home-blog .section-head { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .leakbar i { transition: none; width: var(--w); }
}

/* ============================================================
   v2.2: pinboard "Jak działamy", LinkedIn, poprawki
   ============================================================ */

/* moduł przypiętych kart z animowaną ścieżką */
.pinboard { position: relative; max-width: 1000px; margin: 0 auto; }
.pin-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.pin-path path {
  stroke: rgba(238,244,242,.28);
  stroke-width: 2; stroke-dasharray: 8 6; fill: none; stroke-linecap: round;
  animation: dashmove 3s linear infinite;
}
@keyframes dashmove { to { stroke-dashoffset: -140; } }

.pin-card {
  position: relative; width: 100%; max-width: 320px;
  margin: 0 auto 2rem;
  transition: transform .3s ease, z-index 0s;
  z-index: 2;
}
.pin-card:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 30; }
.pin-card-outer {
  background: #FDFDFC;
  border: 1px solid #E7E7E2;
  border-radius: 22px;
  padding: .7rem;
  box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
.pin-ico {
  width: 30px; height: 30px; margin: 0 auto .6rem;
  display: block; color: var(--gold-2);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.25));
}
.pin-card-inner {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.25rem;
}
.pin-num {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 2rem; color: var(--gold-2);
  display: block; margin-bottom: .7rem;
}
.pin-card-inner h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: .55rem; }
.pin-card-inner p { color: var(--muted); font-size: .87rem; line-height: 1.55; }
.pin-tag {
  display: inline-block; margin-top: .85rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-2);
  border: 1px solid rgba(201,143,38,.4); border-radius: 999px; padding: .28rem .65rem;
}

@media (min-width: 900px) {
  .pinboard { height: 980px; }
  .pin-path { display: block; }
  .pin-card { position: absolute; margin: 0; width: 300px; }
  .pin-1 { top: 0; left: 13%; transform: rotate(3.5deg); }
  .pin-2 { top: 190px; right: 13%; transform: rotate(-3.5deg); }
  .pin-3 { top: 460px; left: 15%; transform: rotate(3deg); }
  .pin-4 { top: 650px; right: 10%; transform: rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .pin-path path { animation: none; } }

/* LinkedIn */
.li-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line-dark);
  color: rgba(238,244,242,.8);
  transition: color .2s, border-color .2s, background .2s;
}
.li-link:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.li-link svg { width: 17px; height: 17px; fill: currentColor; }
.nav-links .li-link { padding: 0; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }

/* ============================================================
   v2.3: wdrożenia z planu CRO
   ============================================================ */

/* 03: twarz i imię przy punkcie decyzji */
.person { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; }
.person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(227,168,60,.55); }
.person div { font-size: .84rem; color: var(--muted-dark); line-height: 1.45; }
.person b { display: block; color: var(--paper); font-family: var(--font-display); font-size: .92rem; }
.person.on-light div { color: var(--muted); }
.person.on-light b { color: var(--ink); }
.person.center { justify-content: center; text-align: left; }

/* 04: dowód przy przycisku */
.proof-line {
  display: block; margin-top: .9rem;
  font-size: .82rem; color: var(--muted-dark);
}
.proof-line b { color: var(--gold); font-family: var(--font-mono); font-weight: 600; }

/* 06: SMS tylko na mobile */
.btn-sms { display: none; }
@media (max-width: 720px) { .btn-sms { display: inline-flex; } }

/* 07: wyjaśnienie personalizacji */
.explain {
  font-size: .76rem; color: var(--faint-dark);
  margin-top: .8rem; padding-top: .8rem;
  border-top: 1px dashed var(--line-dark);
}

/* 01 (adaptacja): micro-commitment w wyniku kalkulatora */
.context-chips { margin: 1.1rem 0 .2rem; }
.context-chips p { font-size: .8rem; color: var(--muted-dark); margin-bottom: .55rem; font-weight: 700; }
.context-chips .row { display: flex; flex-wrap: wrap; gap: .45rem; }
.context-chips button {
  background: none; border: 1px solid var(--line-dark); border-radius: 999px;
  color: rgba(238,244,242,.78); font-family: var(--font-body); font-weight: 600;
  font-size: .76rem; padding: .45rem .8rem; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.context-chips button:hover { border-color: var(--gold); color: var(--gold); }
.context-chips button.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.context-chips button.urgent { border-color: rgba(227,168,60,.6); color: var(--gold); }
.context-chips button.urgent.active { background: var(--gold); color: var(--ink); }

/* 09: wyróżniony case na stronie głównej */
.case-feature {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-pop);
  margin-bottom: 1.4rem;
  text-decoration: none;
  transition: transform .22s;
}
.case-feature:hover { transform: translateY(-4px); }
.case-feature img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.case-feature-body { padding: 2rem 2rem 2.1rem; display: flex; flex-direction: column; justify-content: center; }
.case-feature-body h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: .6rem 0 .7rem; }
.case-feature-body p { color: var(--muted-dark); font-size: .93rem; }
.case-stats { display: flex; gap: 1.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.case-stats b { display: block; font-family: var(--font-mono); font-size: 1.25rem; color: var(--gold); font-weight: 600; }
.case-stats span { font-size: .74rem; color: var(--faint-dark); }
@media (max-width: 820px) { .case-feature { grid-template-columns: 1fr; } }

/* strona case study: nawigacja modułów i moduły */
.module-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.2rem; }
.module-nav a {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem;
  transition: border-color .2s, color .2s;
}
.module-nav a:hover { border-color: var(--gold); color: var(--gold-2); }
.module { margin: 2.4rem 0; }
.module-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
  border: 1px solid rgba(201,143,38,.4); border-radius: 999px;
  padding: .3rem .75rem; margin-bottom: .7rem;
}
.module h2 { margin-top: .2rem !important; }
.case-note {
  background: var(--paper-2); border: 1px dashed var(--line);
  border-radius: var(--r-sm); padding: 1rem 1.2rem;
  font-size: .82rem; color: var(--muted); margin: 0 0 2rem;
}
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; }
.result-card {
  background: var(--ink); color: var(--paper); border-radius: var(--r-md);
  padding: 1.3rem 1.3rem 1.4rem; border: 1px solid var(--line-dark);
}
.result-card b { display: block; font-family: var(--font-mono); font-size: 1.5rem; color: var(--gold); font-weight: 600; margin-bottom: .3rem; }
.result-card span { font-size: .82rem; color: var(--muted-dark); }
@media (max-width: 760px) { .result-grid { grid-template-columns: 1fr; } }
