/* pozyt.ai — strona publiczna (requirements/010, Goal 2).
   Układ z projektu „Strona główna / Cennik / Strona tekstowa” (Claude Design,
   ef5cf603-…). Tokeny: pozyt-tokens.css (kopia VERBATIM z aplikacji), przyciski:
   blok `.btn` wycinany przez site/build.R z apps/web/www/pozyt-app.css — jedna
   definicja przycisku dla aplikacji i strony. Ten plik trzyma wyłącznie układ. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--pz-bg); color: var(--pz-text);
  font-family: var(--pz-font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pz-brand-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--pz-brand-accent); }
a.btn { text-decoration: none; justify-content: center; }
a.btn-primary, a.btn-primary:hover { color: #fff; }
a.btn-secondary:hover { color: var(--pz-text); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; }
.pad { padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.section.alt { background: var(--pz-surface); border-top: 1px solid var(--pz-border); border-bottom: 1px solid var(--pz-border); }
.h2 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; font-weight: 700; }
.h3 { font-size: 17px; font-weight: 600; }
.lead { font-size: 16px; line-height: 1.6; color: var(--pz-text-muted); max-width: 60ch; }
.muted { color: var(--pz-text-muted); }
.subtle { color: var(--pz-text-subtle); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pz-text-muted); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Nagłówek i stopka ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 5; background: var(--pz-surface);
  border-bottom: 1px solid var(--pz-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark {
  position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--pz-brand-ink); color: var(--pz-bg); display: inline-flex;
  align-items: center; justify-content: center; font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
}
.brand-mark::after { content: ""; position: absolute; right: 4px; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: var(--pz-brand-accent); }
.brand-word { font-size: 17px; font-weight: 700; color: var(--pz-brand-ink); letter-spacing: -0.02em; }
.brand-word b { color: var(--pz-brand-accent); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.site-nav a:not(.btn) { font-size: 13px; text-decoration: none; color: var(--pz-text-muted); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--pz-text); }
.site-nav a[aria-current="page"] { font-weight: 600; }

.site-footer { background: var(--pz-surface); border-top: 1px solid var(--pz-border); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--pz-text-muted); line-height: 1.6; }
.site-footer .col a { text-decoration: none; color: var(--pz-text-muted); }
.site-footer .col a:hover { color: var(--pz-text); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; max-width: 18ch; }
.hero .lead { font-size: clamp(16px, 1.4vw, 18px); }

/* ── Schematy widoków produktu (ilustracje — dane przykładowe) ─────────── */
.mock {
  background: var(--pz-surface); border: 1px solid var(--pz-border); border-radius: var(--pz-radius-lg);
  box-shadow: var(--pz-shadow-md); overflow: hidden; font-size: 13px;
}
.mock-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--pz-border); background: var(--pz-bg); }
.mock-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-card { border: 1px solid var(--pz-border); border-radius: var(--pz-radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--pz-surface); }
.mock-card.accent { border-color: var(--pz-brand-accent); box-shadow: 0 0 0 1px var(--pz-brand-accent-soft); }
.mock-note { font-size: 11px; color: var(--pz-text-subtle); text-align: center; padding: 8px; border-top: 1px dashed var(--pz-border); }
.mock .btn { pointer-events: none; }
.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; line-height: 1.4; white-space: nowrap; }
.tag.ok { background: var(--pz-success-soft); color: var(--pz-success-text); }
.tag.info { background: var(--pz-info-soft); color: var(--pz-info-text); }
.tag.warn { background: var(--pz-warning-soft); color: var(--pz-warning-text); }
.tag.bad { background: var(--pz-danger-soft); color: var(--pz-danger-text); }
.tag.neutral { background: var(--pz-neutral-soft); color: var(--pz-neutral-text); }
.bar { height: 6px; border-radius: 9999px; background: var(--pz-border); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--pz-brand-ink); border-radius: 9999px; }
.bubble { align-self: flex-end; max-width: 85%; background: var(--pz-brand-ink); color: #fff; border-radius: 12px 12px 2px 12px; padding: 9px 12px; }
.bubble.agent { align-self: flex-start; background: var(--pz-bg); color: var(--pz-text); border: 1px solid var(--pz-border); border-radius: 12px 12px 12px 2px; }
.grid-mini { display: grid; gap: 4px; font-size: 11px; }
.grid-mini > span { padding: 6px; border-radius: 2px; }

/* ── Listy możliwości ──────────────────────────────────────────────────── */
.check li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.check li + li { margin-top: 10px; }
.check .ok { color: var(--pz-success); flex: none; }
.check .no { color: var(--pz-text-subtle); flex: none; }
.check li.off { color: var(--pz-text-subtle); }
.measures { display: flex; flex-direction: column; gap: 2px; }
.measure { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--pz-border); }
.measure:first-child { border-top: 0; }
.measure .n { font-family: var(--pz-font-mono); font-size: 12px; color: var(--pz-text-subtle); padding-top: 2px; }
.measure b { display: block; font-size: 15px; font-weight: 600; }
.measure span { font-size: 14px; color: var(--pz-text-muted); line-height: 1.55; }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.limit { background: var(--pz-surface); border: 1px solid var(--pz-border); border-radius: var(--pz-radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.limit b { font-size: 15px; }
.limit span { font-size: 14px; color: var(--pz-text-muted); line-height: 1.55; }

/* ── Pakiety ───────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.plan {
  background: var(--pz-surface); border: 1px solid var(--pz-border); border-radius: var(--pz-radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 18px;
}
.plan.featured { border: 1.5px solid var(--pz-brand-accent); box-shadow: var(--pz-shadow-md); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-size: 18px; font-weight: 600; }
.plan-flag { font-size: 11px; font-weight: 600; color: var(--pz-warning-text); background: var(--pz-brand-accent-soft); border-radius: 9999px; padding: 3px 10px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 34px; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 13px; color: var(--pz-text-muted); }
.budget { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--pz-bg); border: 1px solid var(--pz-border); border-radius: var(--pz-radius-md); }
.budget-bar { display: flex; height: 8px; border-radius: 2px; background: var(--pz-border); overflow: hidden; }
.budget-bar > span { display: block; height: 100%; background: var(--pz-brand-ink); border-radius: 2px; }
.budget p { font-size: 13px; color: var(--pz-text-muted); line-height: 1.5; }
.plan .btn { padding: 11px 16px; }
.fineprint { font-size: 12px; color: var(--pz-text-subtle); margin-top: 14px; }

.compare { border: 1px solid var(--pz-border); border-radius: var(--pz-radius-lg); overflow: hidden; background: var(--pz-surface); }
.compare summary { cursor: pointer; list-style: none; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--pz-text-muted); background: var(--pz-bg); border-bottom: 1px solid var(--pz-border); }
.compare .scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--pz-border); }
.compare th { font-size: 13px; font-weight: 600; }
.compare th:first-child { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pz-text-muted); }
.compare td:first-child { color: var(--pz-text-muted); }
.compare .hl { background: #FDF9F1; }
.compare th.hl { background: var(--pz-brand-accent-soft); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 1px; background: var(--pz-border); border: 1px solid var(--pz-border); border-radius: var(--pz-radius-lg); overflow: hidden; }
.faq details { background: var(--pz-surface); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pz-text-subtle); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { font-size: 14px; line-height: 1.6; color: var(--pz-text-muted); padding: 0 20px 18px; max-width: 70ch; }

/* ── Strona tekstowa (regulamin, polityka) ─────────────────────────────── */
.draft { display: flex; gap: 12px; align-items: flex-start; background: var(--pz-warning-soft); border-bottom: 1px solid var(--pz-border); padding-top: 14px; padding-bottom: 14px; }
.draft .wrap { display: flex; gap: 12px; align-items: flex-start; }
.draft b { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pz-warning-text); border: 1px solid var(--pz-warning); border-radius: var(--pz-radius-sm); padding: 2px 8px; flex: none; }
.draft span { font-size: 13px; line-height: 1.55; color: var(--pz-warning-text); }
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 6vw, 80px); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal .toc { position: static; order: -1; } }
.legal article { display: flex; flex-direction: column; gap: 28px; max-width: 72ch; min-width: 0; }
.legal .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--pz-text-muted); font-variant-numeric: tabular-nums; }
.legal .meta strong { color: var(--pz-text); }
.legal header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--pz-border); }
.legal h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.legal section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; }
.legal h2 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.legal .para { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; }
.legal .para .no { font-family: var(--pz-font-mono); font-size: 12px; color: var(--pz-text-subtle); padding-top: 3px; font-variant-numeric: tabular-nums; }
.legal .para p, .legal .para ul { font-size: 15px; line-height: 1.65; }
.legal .para ul { list-style: disc; padding-left: 18px; }
.legal .toc { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; }
.legal .toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--pz-border); }
.legal .toc a { font-size: 13px; line-height: 1.5; padding: 5px 12px; text-decoration: none; color: var(--pz-text-muted); border-left: 2px solid transparent; margin-left: -1px; }
.legal .toc a:hover { border-left-color: var(--pz-brand-accent); color: var(--pz-text); }
.legal .company { padding-top: 20px; border-top: 1px solid var(--pz-border); font-size: 12px; color: var(--pz-text-subtle); line-height: 1.6; }
@media print {
  .site-header, .site-footer, .legal .toc, .no-print { display: none !important; }
  body { background: #fff; }
  .legal { display: block; padding: 0; }
}

/* ── Drabina pakietów, „W każdym pakiecie” ─────────────────────────────── */
.plans { align-items: stretch; }
.plan-who { min-height: 4.5em; }
.plans .plan { padding: 22px; }
.all-in span { white-space: nowrap; }
.all-in { display: flex; gap: 8px; align-items: center; text-decoration: none; padding: 9px 12px; border-radius: var(--pz-radius-md); background: var(--pz-success-soft); color: var(--pz-success-text); font-size: 13px; font-weight: 600; }
.all-in:hover { color: var(--pz-success-text); box-shadow: inset 0 0 0 1px var(--pz-success); }
.all-in-go { margin-left: auto; font-weight: 400; }
.ladder { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ladder-base { font-size: 12px; font-weight: 600; color: var(--pz-text-muted); }
.ladder-list { display: flex; flex-direction: column; gap: 10px; }
.ladder-list li { display: flex; gap: 10px; align-items: baseline; }
.ladder-list .plus { color: var(--pz-brand-ink); font-weight: 700; flex: none; font-size: 13px; }
.ladder-list b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.ladder-list li > span > span { display: block; font-size: 12px; line-height: 1.45; color: var(--pz-text-muted); margin-top: 2px; }
.ladder-list.short { gap: 6px; font-size: 14px; }
.budget-head { display: flex; justify-content: space-between; gap: 8px; }
.budget-head b { text-transform: none; letter-spacing: 0; color: var(--pz-text); white-space: nowrap; }
.every-ribbon { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 14px 18px; border-radius: var(--pz-radius-lg); background: var(--pz-success-soft); color: var(--pz-success-text); font-size: 14px; }
.every { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.every-group { background: var(--pz-bg); border: 1px solid var(--pz-border); border-radius: var(--pz-radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.every-head { display: flex; align-items: center; gap: 10px; }
.every-head b { display: block; font-size: 16px; }
.every-head span span { display: block; font-size: 12px; color: var(--pz-text-muted); }
.every-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex: none; }
.every-icon.seo { background: var(--pz-info-soft); color: var(--pz-info-text); }
.every-icon.ai { background: var(--pz-chart-update-soft); color: var(--pz-chart-update); }
.every-icon.do { background: var(--pz-brand-accent-soft); color: var(--pz-warning-text); }
.every-icon.res { background: var(--pz-success-soft); color: var(--pz-success-text); }
.every ul { display: flex; flex-direction: column; gap: 10px; }
.every li { display: flex; gap: 8px; align-items: baseline; }
.every li .ok { color: var(--pz-success); flex: none; font-size: 13px; }
.every li b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.every li b + span { display: block; font-size: 12px; line-height: 1.45; color: var(--pz-text-muted); }
.compare table { min-width: 680px; }
.compare tr.grp th { background: var(--pz-bg); font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--pz-text); }
.compare tr.grp th span { font-weight: 400; font-size: 12px; color: var(--pz-text-subtle); margin-left: 6px; }
.compare td.yes { color: var(--pz-success); font-weight: 700; }
.compare td.no { color: var(--pz-text-subtle); }

/* ── Widoczność w AI (#ai) — schemat zakładki, dane przykładowe ────────── */
.ai-sec { background: var(--pz-brand-ink); color: #fff; padding-top: clamp(44px, 6vw, 88px); padding-bottom: clamp(44px, 6vw, 88px); }
.ai-sec .h2 { color: #fff; max-width: 24ch; }
.ai-sec .lead { color: rgba(255,255,255,.74); }
.ai-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: end; }
.ai-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.ai-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--pz-brand-accent); animation: pz-ai-pulse 2s ease-in-out infinite; }
.ai-score { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--pz-radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ai-score-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.72); }
.ai-score-top b { font-size: 40px; line-height: 1; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ai-score-bar { position: relative; height: 10px; border-radius: 9999px; background: rgba(255,255,255,.12); }
.ai-score-bar .band { position: absolute; top: 0; bottom: 0; border-radius: 9999px; background: rgba(255,255,255,.35); }
.ai-score-bar .point { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pz-brand-ink); }
.ai-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; font-size: 14px; font-weight: 600; }
.ai-tiles i { display: block; font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ai-mock { margin: 0; color: var(--pz-text); box-shadow: 0 18px 48px rgba(0,0,0,.28); font-size: 14px; }
.ai-radio { position: absolute; opacity: 0; pointer-events: none; }
.ai-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--pz-border); background: var(--pz-bg); }
.ai-tabs label { cursor: pointer; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 9999px; border: 1px solid var(--pz-border-strong); color: var(--pz-text-muted); transition: all .16s; }
.ai-tabs label:hover { color: var(--pz-text); }
#ai-v-map:checked ~ .ai-tabs label[for="ai-v-map"], #ai-v-grid:checked ~ .ai-tabs label[for="ai-v-grid"],
#ai-v-quad:checked ~ .ai-tabs label[for="ai-v-quad"], #ai-v-comp:checked ~ .ai-tabs label[for="ai-v-comp"] { background: var(--pz-brand-ink); border-color: var(--pz-brand-ink); color: #fff; }
#ai-v-map:focus-visible ~ .ai-tabs label[for="ai-v-map"], #ai-v-grid:focus-visible ~ .ai-tabs label[for="ai-v-grid"],
#ai-v-quad:focus-visible ~ .ai-tabs label[for="ai-v-quad"], #ai-v-comp:focus-visible ~ .ai-tabs label[for="ai-v-comp"] { outline: 2px solid var(--pz-brand-accent); outline-offset: 2px; }
.ai-panel { display: none; flex-wrap: wrap; }
#ai-v-map:checked ~ .ai-panels .ai-p-map, #ai-v-grid:checked ~ .ai-panels .ai-p-grid,
#ai-v-quad:checked ~ .ai-panels .ai-p-quad, #ai-v-comp:checked ~ .ai-panels .ai-p-comp { display: flex; }
.ai-chart { flex: 2 1 520px; min-width: 0; padding: clamp(14px, 2vw, 22px); border-right: 1px solid var(--pz-border); display: flex; flex-direction: column; gap: 10px; }
.ai-chart-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.ai-chart-head span { font-size: 11px; color: var(--pz-text-subtle); }
.ai-read { flex: 1 1 260px; padding: clamp(16px, 2vw, 24px); background: var(--pz-bg); display: flex; flex-direction: column; gap: 14px; }
.ai-read p { font-size: 14px; line-height: 1.6; }
.ai-read ul { display: flex; flex-direction: column; gap: 10px; }
.ai-read li { font-size: 13px; line-height: 1.55; color: var(--pz-text-muted); padding-left: 20px; position: relative; }
.ai-read li::before { content: "→"; position: absolute; left: 0; color: var(--pz-brand-ink); }
.ai-scroll { overflow-x: auto; }
.ai-note { font-size: 11px; color: var(--pz-text-subtle); line-height: 1.5; }
.ai-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--pz-text-muted); }
.ai-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }
.ai-legend .scale { width: auto; height: auto; display: inline-flex; gap: 2px; margin: 0 4px; }
.ai-legend .scale i { width: 14px; margin: 0; }
.ai-sec .k1 { --h: var(--pz-chart-heat-1); } .ai-sec .k2 { --h: var(--pz-chart-heat-2); } .ai-sec .k3 { --h: var(--pz-chart-heat-3); }
.ai-sec .k4 { --h: var(--pz-chart-heat-4); } .ai-sec .k5 { --h: var(--pz-chart-heat-5); }
.ai-legend .scale i { background: var(--h); }
.ai-map { width: 100%; min-width: 560px; height: auto; display: block; }
.ai-map .edges line { stroke: var(--pz-border-strong); stroke-width: 1; }
.ai-map .node { cursor: default; transition: opacity .16s; }
.ai-map .node circle { fill: var(--h); stroke: var(--pz-chart-heat-3); stroke-width: 1.5; transform-box: fill-box; transform-origin: center;
  animation: pz-ai-pop .56s cubic-bezier(.2,.8,.2,1.2) both; animation-delay: calc(var(--i) * 55ms); transition: stroke .16s, stroke-width .16s; }
.ai-map .node.k4 circle, .ai-map .node.k5 circle { stroke: #fff; }
.ai-map .node text { font-size: 12px; font-weight: 500; fill: var(--pz-text); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.ai-map:hover .node { opacity: .4; }
.ai-map .node:hover { opacity: 1; }
.ai-map .node:hover circle { stroke: var(--pz-brand-accent); stroke-width: 3; }
.ai-map .node:hover text { font-weight: 700; }
.ai-grid { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(4, minmax(70px, 1fr)); gap: 3px; min-width: 460px; font-size: 12px; }
.ai-grid .eng { font-size: 11px; font-weight: 600; color: var(--pz-text-muted); text-align: center; padding: 4px 0; }
.ai-grid .topic { padding: 12px 8px 12px 0; font-weight: 500; align-self: center; }
.ai-grid .cell { background: var(--h); display: flex; align-items: center; justify-content: center; padding: 12px 4px; border-radius: 3px; font-family: var(--pz-font-mono); font-variant-numeric: tabular-nums; animation: pz-ai-fade .4s ease both; animation-delay: calc(var(--j) * 60ms); }
.ai-grid .cell.k4, .ai-grid .cell.k5 { color: #fff; }
.ai-quad { width: 100%; min-width: 540px; height: auto; display: block; }
.ai-quad .zone { fill: var(--pz-warning-soft); }
.ai-quad .zone-label { font-size: 12px; font-weight: 600; fill: var(--pz-warning-text); text-anchor: end; }
.ai-quad .gl, .ai-trend .gl { stroke: var(--pz-border); stroke-width: 1; }
.ai-quad .split { stroke: var(--pz-text-subtle); stroke-width: 1; stroke-dasharray: 4 4; }
.ai-quad .ax, .ai-trend .ax { font-size: 10px; fill: var(--pz-text-subtle); }
.ai-quad .ax.mid { font-size: 11px; fill: var(--pz-text-muted); text-anchor: middle; }
.ai-quad .ax.end, .ai-trend .ax.end { text-anchor: end; }
.ai-quad .pt circle { fill: #fff; stroke: var(--pz-brand-ink); stroke-width: 1.8; transform-box: fill-box; transform-origin: center; animation: pz-ai-pop .5s ease both; animation-delay: calc(var(--i) * 50ms); }
.ai-quad .pt text { font-size: 11px; fill: var(--pz-text-muted); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.ai-quad .pt text.end { text-anchor: end; }
.ai-quad .pt.pri circle { fill: var(--pz-brand-ink); }
.ai-quad .pt.pri text { fill: var(--pz-text); font-weight: 700; stroke: var(--pz-warning-soft); }
.ai-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ai-comp { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 3vw, 28px); align-items: start; }
.ai-hosts { display: flex; flex-direction: column; gap: 8px; }
.ai-hosts .host { display: grid; grid-template-columns: 128px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; }
.ai-hosts .name { font-family: var(--pz-font-mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-hosts .ours .name { font-weight: 700; }
.ai-hosts .track { height: 14px; background: var(--pz-surface-2); border-radius: 3px; overflow: hidden; }
.ai-hosts .fill { display: block; height: 100%; border-radius: 3px; transform-origin: left; animation: pz-ai-grow .7s cubic-bezier(0,0,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
.ai-hosts .n { text-align: right; color: var(--pz-text-muted); font-variant-numeric: tabular-nums; }
.ai-hosts .fill.ours, .ai-legend .ours { background: var(--pz-brand-ink); }
.ai-hosts .fill.comp, .ai-legend .comp { background: var(--pz-info); }
.ai-hosts .fill.forum, .ai-legend .forum { background: var(--pz-success); }
.ai-hosts .fill.media, .ai-legend .media { background: var(--pz-text-subtle); }
.ai-trend { width: 100%; height: auto; display: block; }
.ai-trend .upd { fill: var(--pz-chart-update-soft); }
.ai-trend .upd-label { font-size: 9px; fill: var(--pz-chart-update); text-anchor: middle; }
.ai-trend .band { fill: var(--pz-chart-area); opacity: 1.2; }
.ai-trend .line { fill: none; stroke: var(--pz-chart-line); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: pz-ai-draw 1.4s cubic-bezier(0,0,.2,1) .2s forwards; }
.ai-trend .dot { fill: var(--pz-chart-line); stroke: var(--pz-chart-line); stroke-width: 1.5; }
.ai-trend .act { stroke: var(--pz-chart-marker); stroke-width: 1; stroke-dasharray: 3 3; }
.ai-trend .act-mark { fill: var(--pz-chart-marker); }
.ai-trend .act-label { font-size: 9px; fill: var(--pz-info-text); text-anchor: middle; }
.ai-funnel { border-top: 1px solid var(--pz-border); padding: 14px clamp(14px, 2vw, 22px); display: flex; flex-direction: column; gap: 8px; }
.ai-funnel > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-funnel .step { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--pz-border); background: var(--pz-bg); min-width: 92px; font-size: 11px; color: var(--pz-text-muted); }
.ai-funnel .step b { display: block; font-size: 16px; color: var(--pz-text); font-variant-numeric: tabular-nums; }
.ai-funnel .step.last { background: var(--pz-success-soft); }
.ai-funnel i { font-style: normal; color: var(--pz-text-subtle); }
.ai-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ai-principles div { border: 1px solid rgba(255,255,255,.14); border-radius: var(--pz-radius-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ai-principles b { font-size: 15px; }
.ai-principles span { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.7); }
@keyframes pz-ai-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pz-ai-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pz-ai-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pz-ai-draw { to { stroke-dashoffset: 0; } }
@keyframes pz-ai-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ai-sec *, .ai-sec *::before { animation: none !important; transition: none !important; }
  .ai-trend .line { stroke-dashoffset: 0; }
}

/* ── Przyciski: wycięte z apps/web/www/pozyt-app.css przez site/build.R ── */
/* ---------- Reusable: buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--pz-font-sans);
  font-size: 15px; font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: background var(--pz-duration-fast) var(--pz-ease), border-color var(--pz-duration-fast) var(--pz-ease);
}
.btn.sm { font-size: 13px; padding: 6px 12px; }
.btn-primary { background: var(--pz-brand-ink); color: #fff; }
.btn-primary:hover { background: var(--pz-brand-ink-hover); }
.btn-secondary { background: var(--pz-surface); color: var(--pz-text); border-color: var(--pz-border-strong); }
.btn-secondary:hover { background: var(--pz-surface-2); }
.btn-ghost { background: transparent; color: var(--pz-text-muted); }
.btn-ghost:hover { background: var(--pz-surface-2); color: var(--pz-text); }
.btn-destructive { background: transparent; color: var(--pz-danger); border-color: var(--pz-danger); }
.btn-destructive:hover { background: var(--pz-danger-soft); }

.btn .ic { width: 14px; height: 14px; }

.todo { background: var(--pz-warning-soft); color: var(--pz-warning-text); padding: 0 3px; border-radius: 2px; }
