/* ============================================================
   LEAD YIELD, design system v1
   Paleta: petrol (#0C2321), papier (#F4F6F5), złoto (#D9A13B),
   wyciek (#C4452E). Fonty: Archivo (display), Manrope (body),
   IBM Plex Mono (dane).
   ============================================================ */

:root {
  --paper: #F4F6F5;
  --paper-2: #EAEFED;
  --ink: #0C2321;
  --petrol: #123B38;
  --petrol-2: #0E2E2B;
  --gold: #D9A13B;
  --gold-soft: #F0D9AC;
  --leak: #C4452E;
  --muted: #5C6B69;
  --line: #D5DDDA;
  --line-dark: rgba(244, 246, 245, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(12, 35, 33, 0.10);
  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.on-dark .lead { color: rgba(244, 246, 245, 0.78); }

.mono { font-family: var(--font-mono); }

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

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 35, 33, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: rgba(244, 246, 245, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--ink) !important;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { filter: brightness(1.06); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #F4F6F5; margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .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.1rem;
    display: none;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
}

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

section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-tint { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { margin: 0.7rem 0 0.9rem; }

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

.hero {
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(217, 161, 59, 0.10), transparent 60%),
    var(--ink);
  color: var(--paper);
  padding: clamp(3.6rem, 8vw, 6.5rem) 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin: 1.1rem 0 1.2rem; }
.hero h1 .accent { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.9rem 0 0; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(200deg, transparent 55%, rgba(12,35,33,0.55));
  pointer-events: none;
}
.hero-note {
  margin-top: 1.1rem; font-size: 0.85rem;
  color: rgba(244,246,245,0.55);
}

/* pasek statystyk pod hero */
.statbar {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  border-top: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.02);
}
.statbar-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-dark);
}
.stat {
  background: var(--ink);
  padding: 1.6rem 1.4rem;
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.9rem; color: rgba(244,246,245,0.7); }
.stat-src { font-size: 0.72rem; color: rgba(244,246,245,0.4); display: block; margin-top: 0.4rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .statbar-inner { grid-template-columns: 1fr; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .15s, filter .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost {
  background: transparent; color: var(--paper);
  border: 1.5px solid rgba(244,246,245,0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--petrol); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }

/* ---------- Karty wycieków ---------- */

.leak-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.leak-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  position: relative;
}
.leak-card::before {
  content: "";
  position: absolute; top: 0; left: 1.4rem; right: auto;
  width: 34px; height: 3px;
  background: var(--leak);
  border-radius: 0 0 3px 3px;
}
.leak-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.leak-card p { font-size: 0.94rem; color: var(--muted); }

@media (max-width: 860px) { .leak-grid { grid-template-columns: 1fr; } }

/* ---------- Proces / etapy ---------- */

.steps { display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 84px 1fr auto;
  gap: 1.4rem; align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--muted);
  padding-top: 0.25rem;
}
.step-num b {
  display: block; font-size: 1.6rem; font-weight: 600;
  color: var(--gold); letter-spacing: -0.02em;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.97rem; max-width: 56ch; }
.step-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--petrol);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem; border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 0.6rem; }
  .step-tag { justify-self: start; }
}

/* ---------- Mapa wycieków (tabela) ---------- */

.leakmap {
  background: var(--petrol-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.leakmap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.leakmap th, .leakmap td { padding: 0.95rem 1.2rem; text-align: left; }
.leakmap th {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(244,246,245,0.55);
  border-bottom: 1px solid var(--line-dark);
}
.leakmap td { border-bottom: 1px solid rgba(244,246,245,0.07); color: rgba(244,246,245,0.9); }
.leakmap tr:last-child td { border-bottom: 0; }
.leakmap .val { font-family: var(--font-mono); color: var(--gold); white-space: nowrap; }
.leakmap .bad { color: #E8836F; }
.leakmap-note { padding: 0.9rem 1.2rem; font-size: 0.8rem; color: rgba(244,246,245,0.5); border-top: 1px solid var(--line-dark); }

@media (max-width: 720px) {
  .leakmap { overflow-x: auto; }
  .leakmap table { min-width: 560px; }
}

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

.calc {
  background: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--paper);
  border: 1px solid var(--line-dark);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.calc label {
  display: block; font-size: 0.86rem; font-weight: 700;
  margin: 1.3rem 0 0.45rem; color: rgba(244,246,245,0.85);
}
.calc label:first-of-type { margin-top: 0; }
.calc input[type="range"] { width: 100%; accent-color: var(--gold); }
.calc select, .calc input[type="number"] {
  width: 100%;
  background: var(--petrol-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
}
.calc select:focus, .calc input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.calc-value {
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--gold);
  float: right; font-weight: 600;
}
.calc-result {
  background: var(--petrol-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: sticky; top: 90px;
}
.calc-result-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); color: rgba(244,246,245,0.55); }
.calc-result-value {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 600; color: var(--gold);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.2rem;
  min-height: 1.2em;
}
.calc-result-sub { font-size: 0.88rem; color: rgba(244,246,245,0.65); margin-bottom: 1.2rem; }
.calc-result .btn { width: 100%; margin-top: 0.5rem; }
.calc-disclaimer { font-size: 0.74rem; color: rgba(244,246,245,0.42); margin-top: 1rem; }

@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

/* ---------- Branże ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1.05rem;
  font-size: 0.9rem; font-weight: 600;
}
.qualify {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}
.qualify ul { margin: 0.6rem 0 0 1.2rem; color: var(--muted); }

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

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.compare-col {
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}
.compare-col.them { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.compare-col.us { background: var(--ink); color: var(--paper); }
.compare-col h3 { margin-bottom: 1rem; }
.compare-col ul { list-style: none; }
.compare-col li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.compare-col.us li { border-bottom: 1px dashed var(--line-dark); }
.compare-col li:last-child { border: 0; }
.compare-col.us li::before { content: "+ "; color: var(--gold); font-weight: 700; }
.compare-col.them li::before { content: "\2212  "; color: var(--leak); font-weight: 700; }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }

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

.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  position: relative; color: var(--ink);
}
.faq-q::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); font-weight: 400;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.96rem; }
.faq-item.open .faq-a { display: block; }

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

.cta-final { text-align: center; }
.cta-final h2 { max-width: 620px; margin: 0.7rem auto 1rem; }
.cta-final .lead { max-width: 560px; margin: 0 auto 2rem; }
.cta-contact { margin-top: 1.6rem; font-size: 0.95rem; color: rgba(244,246,245,0.65); }
.cta-contact a { color: var(--gold); text-decoration: none; font-weight: 700; }

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

footer {
  background: var(--ink); color: rgba(244,246,245,0.65);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-grid a { color: rgba(244,246,245,0.65); text-decoration: none; display: block; padding: 0.2rem 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: 0.8rem;
  font-size: 0.78rem; color: rgba(244,246,245,0.42);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

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

.article-hero {
  background: var(--ink); color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.6rem);
}
.article-meta { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(244,246,245,0.55); margin-top: 1rem; }
.article-body { padding: clamp(2.6rem, 6vw, 4.4rem) 0; }
.article-body h2 { margin: 2.4rem 0 0.9rem; }
.article-body h3 { margin: 1.8rem 0 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: 0.4rem; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.8rem 1.2rem;
  background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.6rem 0; font-size: 1.02rem;
}
.tldr {
  background: var(--petrol-2); color: var(--paper);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 0 0 2.2rem;
  font-size: 0.97rem;
}
.tldr b { color: var(--gold); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; display: block; margin-bottom: 0.5rem; }
.article-cta {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  margin: 2.6rem 0 0;
  text-align: center;
}
.article-cta h3 { margin-bottom: 0.6rem; }
.article-cta p { color: rgba(244,246,245,0.7); margin-bottom: 1.3rem; }

.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(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-body { padding: 1.4rem 1.4rem 1.6rem; }
.blog-card h3 { font-size: 1.08rem; margin: 0.5rem 0 0.6rem; }
.blog-card p { font-size: 0.9rem; color: var(--muted); }
.blog-tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

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

.legal-body { padding: clamp(2.6rem, 6vw, 4rem) 0; font-size: 0.96rem; }
.legal-body h2 { font-size: 1.3rem; margin: 2rem 0 0.7rem; }
.legal-body p, .legal-body li { color: #2E3D3B; margin-bottom: 0.8rem; }
.legal-body ul, .legal-body ol { margin-left: 1.4rem; }

/* ---------- Animacje ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* fokus dla klawiatury */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
