/* ============================================================
   SILERS 2.0 — warstwa podstron
   Ładowana PO inline <style> strony i po v2.css. Przekłada stare
   komponenty podstron (.hero, .card, .step, .cta-box, .frame…)
   na język „dokumentacji technicznej" ze strony głównej.
   ============================================================ */

/* — stare nazwy zmiennych → tokeny v2 (jasny / ciemny z v2.css) — */
:root {
  --bg: var(--paper);
  --bg2: var(--paper);
  --panel: var(--surface);
  --panel2: var(--paper);
  --line: var(--rule);
  --line2: var(--rule-2);
  --txt: var(--ink-2);
  --txt-dim: color-mix(in srgb, var(--ink-2) 84%, var(--paper));
  --white: var(--ink);
  --blue: var(--brand);
  --cyan: var(--brand-ink);
  --green: var(--ok);
  --grad: var(--brand);
  --grad-ai: var(--brand);
}
body { background: var(--paper); color: var(--ink-2); font-family: var(--body); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); }

/* — nawigacja: resztki starych reguł #mobile-menu — */
#mobile-menu a { border-radius: 0; }
#mobile-menu a:hover { background: none; color: var(--ink); }
#mobile-menu a.act { color: var(--brand-ink); }

/* — hero podstrony — */
.hero { padding: 136px 0 64px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.glow { display: none !important; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 22px;
  background: none; border: 0; border-radius: 0;
  font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.badge::before { content: ''; width: 26px; height: 1px; background: var(--rule-2); flex-shrink: 0; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; max-width: 900px; }
.grad, .hero h1 .grad, h1 .grad, h2 .grad, .grad-ai {
  background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--brand-ink);
}
.hero p.lead, p.lead { color: var(--ink-2); }
.hero p.lead strong, p.lead strong { color: var(--ink); }
.trust { color: var(--ink-3); }
.trust strong { color: var(--ink-2); }

/* hero bez fotografii na podstronach w markupie v2 (ID Studio) */
.hero-v2.hero-page { min-height: 0; display: block; padding: 136px 0 0; border-bottom: 1px solid var(--rule); }
.hero-v2.hero-page h1 { color: var(--ink); max-width: 900px; margin-top: 14px; }
.hero-v2.hero-page h1 em { color: var(--brand-ink); }
.hero-v2.hero-page .lead { color: var(--ink-2); max-width: 680px; font-size: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero-meta b { color: var(--ink); font-weight: 500; }

/* — przyciski (stare .btn → .btn-v2) — */
.btn {
  font-family: var(--head); font-weight: 700; font-size: 14.5px; padding: 13px 22px;
  border-radius: var(--r); border: 1px solid var(--ink); background: transparent; color: var(--ink);
  box-shadow: none; transform: none;
}
.btn:hover { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }
.btn-primary, .btn-green, .btn-ai { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); box-shadow: none; }
.btn-primary:hover, .btn-green:hover, .btn-ai:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* — nagłówki sekcji: do lewej, jak na głównej — */
section.bordered { border-top: 1px solid var(--rule); }
main > section.bordered:nth-of-type(even) { background: var(--surface); }
h2.sec { text-align: left; font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1.08; max-width: 760px; margin-bottom: 14px; }
p.sub { text-align: left; margin: 0 0 40px; max-width: 680px; color: var(--ink-2); }
p.sub a, .card p a { color: var(--brand-ink); }

/* — karty, kroki, liczby — */
.card, .step, .stat, .box, .use, .fact, .level, .post, .product {
  border-radius: var(--r); box-shadow: none;
}
.card, .step, .stat { background: var(--surface); border: 1px solid var(--rule-2); }
main > section.bordered:nth-of-type(even) .card,
main > section.bordered:nth-of-type(even) .step,
main > section.bordered:nth-of-type(even) details { background: var(--paper); }
.card:hover, .post:hover, .product:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.card h3, .step h3 { font-weight: 700; letter-spacing: -.01em; }
.ico { border-radius: var(--r); background: transparent; border: 1px solid var(--rule-2); }
.ico svg { stroke: var(--brand); }
.step .n, .stat .lbl { font-family: var(--mono); }
.step .n { color: var(--ink-3); font-weight: 400; letter-spacing: .1em; }
.stat .num { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.stat .num span { color: var(--brand-ink); }
.stat .lbl { font-size: 11.5px; color: var(--ink-3); }
.chips { justify-content: flex-start; margin: 0; }
.chips span { border-radius: 999px; background: var(--surface); border-color: var(--rule-2); color: var(--ink); }

/* — zrzuty w ramce (.frame → .fig) — */
.frame { border-radius: var(--r); border: 1px solid var(--rule-2); background: var(--surface); box-shadow: none; padding: 10px; }
.frame img { border: 1px solid var(--rule); border-radius: 1px; }
.frame-bar { background: none; border-bottom: 0; padding: 0 2px 8px; }
.frame-bar span:not(.url) { width: 7px; height: 7px; border-radius: 0; background: var(--rule-2) !important; }
.frame-bar .url { font-family: var(--mono); color: var(--ink-3); }

/* — boksy wyróżnione i CTA — */
.infradesk-box, .custom-box, .honest, .disclaimer {
  background: var(--surface) !important; border: 1px solid var(--rule-2) !important; border-radius: var(--r) !important; box-shadow: none !important;
}
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--surface) !important; border: 1px solid var(--ink) !important; box-shadow: none;
}
.cta-box::before {
  content: 'SILERS · EST. 2010'; position: absolute; right: -12px; bottom: -24px;
  font-family: var(--head); font-weight: 800; font-size: 90px; letter-spacing: -.04em; white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 5%, transparent); pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { font-weight: 800; }

/* — karty produktów (/aplikacje-saas) — */
.product { background: var(--surface) !important; border-color: var(--rule-2) !important; }
.product .shot-side { background: var(--paper) !important; border-color: var(--rule) !important; }
.pm { background: var(--surface); border-color: var(--rule-2); }
.pm:hover { border-color: var(--ink); }
.status-chip {
  font-family: var(--mono); font-weight: 500; letter-spacing: .1em; border-radius: var(--r);
  background: transparent !important; border: 1px solid currentColor; padding: 3px 8px;
}
.chip-live { color: var(--ok) !important; }
.chip-beta { color: var(--warn) !important; }
.chip-soon { color: var(--ink-3) !important; }
html[data-theme] .price-line .price {
  font-family: var(--mono); font-weight: 500; font-size: 13.5px; letter-spacing: 0;
  border-radius: var(--r); background: transparent; color: var(--ink); border: 1px solid var(--rule-2);
}

/* — FAQ — */
details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--rule-2); }
details summary { font-family: var(--head); font-weight: 700; color: var(--ink); }
details summary::after { font-family: var(--mono); }
details summary:hover { color: var(--brand-ink); }
details[open] summary::after { color: var(--brand-ink); }
details .ans a { color: var(--brand-ink); }

/* — dokumenty prawne / artykuły — */
.doc a, .post-body a, article a:not(.btn) { color: var(--brand-ink); }
.doc code, code { font-family: var(--mono); border-radius: var(--r); }
nav.toc { position: static; border-top: 0; background: none; backdrop-filter: none; }
nav.toc a { text-decoration: none; display: inline-block; grid-template-columns: none; padding: 7px 13px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--rule-2); color: var(--ink-2); font-size: 12.5px; }
nav.toc a:hover { background: var(--surface); border-color: var(--brand); color: var(--brand-ink); }

/* — tabele — */
table th { font-family: var(--mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 640px) {
  .hero { padding-top: 112px; }
  .hero-v2.hero-page { padding-top: 112px; }
  .cta-box::before { font-size: 54px; }
}
