/* proSystemy Studio — system wyglądu panelu i strony sprzedażowej
   Ink (tło marki) · Graphite (powierzchnie) · Paper (tekst) · Fog (drugoplanowy)
   Ultramaryna = akcje. Skala „temperatury” leada = informacja (koral / bursztyn / błękit / szarość). */

:root {
  --ink: #0a0b0f;
  --ink-2: #0f1116;
  --graphite: #15171d;
  --graphite-2: #1b1e26;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --paper: #eef0f4;
  --fog: #8a8f9c;
  --fog-2: #5f6471;
  --ultra: #5b5bf7;
  --ultra-2: #7676ff;
  --ultra-soft: rgba(91, 91, 247, 0.14);
  --hot: #ff6b4a;
  --good: #ffb547;
  --mid: #5ba8ff;
  --low: #6b7080;
  --ok: #2fd47e;
  --bad: #ff5d6c;
  --font-d: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-b: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
::selection { background: var(--ultra); color: #fff; }
:focus-visible { outline: 2px solid var(--ultra-2); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--fog); }
.num { font-family: var(--font-d); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- Przyciski i pola ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--ultra); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--ultra-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover:not([disabled]) { border-color: var(--paper); }
.btn-soft { background: var(--graphite-2); border-color: var(--line); }
.btn-soft:hover:not([disabled]) { background: #232733; }
.btn-danger { background: transparent; border-color: rgba(255, 93, 108, 0.4); color: var(--bad); }
.btn-danger:hover { background: rgba(255, 93, 108, 0.1); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.cost { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 600; }
.btn-ghost .cost, .btn-soft .cost { background: var(--ultra-soft); color: var(--ultra-2); }
.cost.free { background: rgba(47, 212, 126, 0.14); color: var(--ok); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--fog); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px;
  background: var(--ink-2); border: 1px solid var(--line-2); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ultra); box-shadow: 0 0 0 4px var(--ultra-soft); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8f9c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fog); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ultra); width: 16px; height: 16px; flex: none; }
.check a { color: var(--paper); }

/* ---------- Wskaźnik leada ---------- */
.dial { --v: 0; --c: var(--low); position: relative; width: 52px; height: 52px; flex: none; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { stroke: var(--line-2); }
.dial .bar { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - var(--v)); transition: stroke-dashoffset 1.1s var(--ease); }
.dial b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-d); font-size: 16px; font-weight: 700; color: var(--paper); }
.dial.hot { --c: var(--hot); } .dial.good { --c: var(--good); } .dial.mid { --c: var(--mid); } .dial.low { --c: var(--low); }
.dial.sm { width: 40px; height: 40px; } .dial.sm b { font-size: 13px; }
.heat { font-size: 12px; font-weight: 600; }
.heat.hot { color: var(--hot); } .heat.good { color: var(--good); } .heat.mid { color: var(--mid); } .heat.low { color: var(--fog); }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 500; background: var(--graphite-2); color: var(--fog); border: 1px solid var(--line); white-space: nowrap; }
.tag svg { width: 13px; height: 13px; }
.tag.plus { color: #ffd7cc; background: rgba(255, 107, 74, 0.1); border-color: rgba(255, 107, 74, 0.22); }
.tag.minus { color: #ffc2c8; background: rgba(255, 93, 108, 0.08); border-color: rgba(255, 93, 108, 0.2); }
.tag.ok { color: var(--ok); background: rgba(47, 212, 126, 0.1); border-color: rgba(47, 212, 126, 0.25); }
.tag.pro { color: var(--ultra-2); background: var(--ultra-soft); border-color: rgba(91, 91, 247, 0.3); }

/* ================= STRONA SPRZEDAŻOWA ================= */
.lp { display: block; }
body.in-app .lp { display: none; }
.lp-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.lp-nav { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 15, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-d); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ultra); display: grid; place-items: center; }
.brand-mark svg { width: 17px; height: 17px; color: #fff; }
.brand small { color: var(--fog); font-weight: 500; font-family: var(--font-b); font-size: 13px; }
.lp-links { display: flex; gap: 22px; margin-left: 12px; font-size: 14px; color: var(--fog); }
.lp-links a { text-decoration: none; transition: color 0.2s; }
.lp-links a:hover { color: var(--paper); }
.lp-nav .spacer { flex: 1; }
@media (max-width: 820px) { .lp-links { display: none; } .lp-nav .btn-ghost { display: none; } }

.lp-hero { padding: 72px 0 90px; position: relative; overflow: hidden; }
.lp-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(91, 91, 247, 0.16), transparent); pointer-events: none; }
.lp-hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 980px) { .lp-hero-grid { grid-template-columns: 1fr; gap: 44px; } .lp-hero { padding-top: 48px; } }
.lp-hero h1 { font-size: clamp(36px, 4.3vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.lp-hero h1 .line { display: block; text-wrap: balance; }
.lp-hero .sub { margin: 24px 0 30px; font-size: 18px; color: var(--fog); max-width: 33em; }
.lp-hero .sub b { color: var(--paper); font-weight: 600; }
.lp-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lp-note { margin-top: 18px; font-size: 13px; color: var(--fog-2); }

/* Demo w hero */
.demo { background: var(--graphite); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.demo-bar .input, .demo-bar .select { height: 40px; }
.demo-bar .input { flex: 1.1; } .demo-bar .select { flex: 1; }
.demo-list { height: 404px; overflow: hidden; position: relative; padding: 6px 0; }
.demo-list::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, var(--graphite)); pointer-events: none; }
.demo-row { display: flex; align-items: center; gap: 14px; padding: 11px 16px; opacity: 0; transform: translateY(10px); animation: rowIn 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.demo-row + .demo-row { border-top: 1px solid var(--line); }
.demo-row .who { flex: 1; min-width: 0; }
.demo-row .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row .who small { color: var(--fog); font-size: 12.5px; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fog); background: var(--ink-2); }
.demo-empty { display: grid; place-items: center; height: 100%; color: var(--fog); text-align: center; padding: 30px; }

.lp-sec { padding: 96px 0; border-top: 1px solid var(--line); }
.lp-sec h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.03em; max-width: 18ch; }
.lp-sec .lead { color: var(--fog); font-size: 17px; max-width: 40em; margin-top: 14px; }
.lp-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.steps3 li { list-style: none; padding: 30px 28px 32px; counter-increment: s; position: relative; }
.steps3 li + li { border-left: 1px solid var(--line); }
.steps3 li::before { content: counter(s); font-family: var(--font-d); font-weight: 800; font-size: 54px; line-height: 1; color: var(--graphite-2); -webkit-text-stroke: 1px var(--line-2); display: block; margin-bottom: 22px; }
.steps3 h3 { font-size: 21px; margin-bottom: 8px; }
.steps3 p { color: var(--fog); }
.steps3 .cost { margin-top: 16px; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } .steps3 li + li { border-left: 0; border-top: 1px solid var(--line); } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.thumb { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-2); aspect-ratio: 4 / 5; }
.thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 1600px; border: 0; transform-origin: 0 0; pointer-events: none; }
.thumb figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(10, 11, 15, 0.82); backdrop-filter: blur(8px); font-size: 13px; }
.thumb figcaption b { font-family: var(--font-d); font-size: 15px; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 920px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); background: var(--graphite); border: 1px solid var(--line); }
.plan.popular { border-color: var(--ultra); background: linear-gradient(180deg, rgba(91, 91, 247, 0.1), var(--graphite) 45%); }
.plan .ribbon { position: absolute; top: -12px; left: 28px; padding: 3px 10px; border-radius: 7px; background: var(--ultra); color: #fff; font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 22px; }
.plan .tagline { color: var(--fog); font-size: 14px; margin-top: 4px; min-height: 42px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan .price b { font-family: var(--font-d); font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--fog); }
.plan .credits-line { font-size: 14px; color: var(--paper); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: #cfd2da; }
.plan li svg { flex: none; width: 17px; height: 17px; color: var(--ultra-2); margin-top: 2px; }
.plan .btn { width: 100%; }
.plan.current { border-color: var(--ok); }

.costs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 920px) { .costs { grid-template-columns: 1fr; } }
.panel { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cost-table td { padding: 10px 0; border-top: 1px solid var(--line); }
.cost-table tr:first-child td { border-top: 0; }
.cost-table td:last-child { text-align: right; white-space: nowrap; }
.packs { display: grid; gap: 10px; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); }
.pack b { font-family: var(--font-d); font-size: 20px; }
.pack small { color: var(--fog); display: block; font-size: 12.5px; }
.pack .price-tag { font-weight: 700; font-family: var(--font-d); font-size: 18px; }
.pack .price-tag s { color: var(--fog-2); font-size: 13px; font-weight: 500; margin-right: 6px; }

.faq-lp { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; }
@media (max-width: 860px) { .faq-lp { grid-template-columns: 1fr; gap: 24px; } }
.faq-lp details { border-bottom: 1px solid var(--line); }
.faq-lp summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 16px; }
.faq-lp summary::-webkit-details-marker { display: none; }
.faq-lp summary svg { flex: none; transition: transform 0.3s var(--ease); color: var(--fog); }
.faq-lp details[open] summary svg { transform: rotate(45deg); }
.faq-lp details p { color: var(--fog); padding: 0 0 22px; max-width: 60ch; }

.lp-final { padding: 100px 0; text-align: center; border-top: 1px solid var(--line); }
.lp-final h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; margin: 0 auto 26px; letter-spacing: -0.035em; }
.lp-foot { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--fog); font-size: 13px; }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.lp-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-foot a { text-decoration: none; } .lp-foot a:hover { color: var(--paper); }

/* ================= APLIKACJA ================= */
#app { display: none; }
body.in-app #app { display: block; }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--ink); }
.side .brand { padding: 4px 8px 20px; }
.nav-item { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 11px; border-radius: 10px; text-decoration: none; color: var(--fog); font-weight: 500; transition: background 0.2s, color 0.2s; position: relative; }
.nav-item:hover { background: var(--graphite); color: var(--paper); }
.nav-item.active { background: var(--graphite-2); color: var(--paper); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ultra); }
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item .badge { margin-left: auto; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--graphite-2); color: var(--fog); }
.side .grow { flex: 1; }
.credit-card { padding: 14px; border-radius: var(--r-md); background: var(--graphite); border: 1px solid var(--line); }
.credit-card .row { display: flex; justify-content: space-between; align-items: baseline; }
.credit-card b { font-family: var(--font-d); font-size: 26px; font-weight: 700; }
.credit-card small { color: var(--fog); font-size: 12.5px; }
.meter { height: 6px; border-radius: 6px; background: var(--ink); overflow: hidden; margin: 10px 0 12px; }
.meter i { display: block; height: 100%; background: var(--ultra); border-radius: 6px; transition: width 0.8s var(--ease); }
.credit-card .btn { width: 100%; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; font-size: 13px; }
.user-chip .av { width: 32px; height: 32px; border-radius: 50%; background: var(--graphite-2); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.user-chip .who { min-width: 0; flex: 1; }
.user-chip .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who small { color: var(--fog); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; }
.topbar { display: none; }
.view { padding: 34px clamp(18px, 3.4vw, 46px) 80px; max-width: 1240px; animation: viewIn 0.35s var(--ease); }
.view.wide { max-width: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.page-head p { color: var(--fog); margin-top: 6px; }

.demo-banner { display: flex; gap: 12px; align-items: center; padding: 11px 14px; margin-bottom: 22px; border-radius: 12px; background: rgba(255, 181, 71, 0.08); border: 1px solid rgba(255, 181, 71, 0.22); color: #ffd99c; font-size: 13.5px; }
.demo-banner svg { flex: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 70; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(10, 11, 15, 0.94); backdrop-filter: blur(14px); justify-content: space-around; }
  .side .brand, .side .grow, .credit-card, .user-chip, .nav-item.desk { display: none; }
  .nav-item { flex-direction: column; height: auto; gap: 3px; padding: 6px 6px; font-size: 10.5px; flex: 1; justify-content: center; }
  .nav-item .badge { display: none; }
  .nav-item.active::before { display: none; }
  .nav-item.active { background: transparent; color: var(--ultra-2); }
  .topbar { display: flex; position: sticky; top: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px; height: 58px; padding: 0 16px; background: rgba(10, 11, 15, 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .view { padding: 22px 16px 110px; }
}
.credits-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--graphite); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.credits-pill svg { width: 16px; height: 16px; color: var(--ultra-2); }

/* Karty i siatki panelu */
.grid { display: grid; gap: 16px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-main { grid-template-columns: 1.45fr 1fr; }
@media (max-width: 1080px) { .g-3 { grid-template-columns: 1fr 1fr; } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g-3, .g-2 { grid-template-columns: 1fr; } }
.card { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.card h2 { font-size: 18px; letter-spacing: -0.01em; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head a { font-size: 13px; color: var(--fog); text-decoration: none; }
.card-head a:hover { color: var(--paper); }

.stat-big { display: flex; flex-direction: column; gap: 2px; }
.stat-big b { font-family: var(--font-d); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat-big span { color: var(--fog); font-size: 13px; }

.pipeline { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--ink-2); gap: 2px; }
.pipeline i { display: block; height: 100%; transition: flex-grow 0.8s var(--ease); min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--fog); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--paper); font-weight: 600; }

.checklist { display: grid; gap: 4px; }
.checklist a { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; transition: background 0.2s; }
.checklist a:hover { background: var(--graphite-2); }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); color: var(--ink); }
.checklist .done span { color: var(--fog); text-decoration: line-through; text-decoration-color: var(--fog-2); }
.checklist svg { width: 13px; height: 13px; }

.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; min-width: 0; }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.list-row .grow small { color: var(--fog); font-size: 12.5px; }
.empty { text-align: center; padding: 34px 20px; color: var(--fog); }
.empty h3 { color: var(--paper); font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Wyszukiwarka */
.search-box { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 22px; }
.search-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .search-form { grid-template-columns: 1fr; } }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.chip { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--fog); transition: all 0.2s; }
.chip svg { width: 15px; height: 15px; }
.chip:hover { color: var(--paper); border-color: var(--fog-2); }
.chip.on { background: var(--ultra-soft); border-color: var(--ultra); color: var(--paper); }
.search-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--fog); }
.recent { display: flex; gap: 8px; flex-wrap: wrap; }
.recent button { font-size: 12.5px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px dashed var(--line-2); background: transparent; color: var(--fog); cursor: pointer; }
.recent button:hover { color: var(--paper); border-color: var(--fog); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar .left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar h2 { font-size: 20px; }
.toolbar .select { width: auto; height: 36px; font-size: 13.5px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 12px; border: 0; background: transparent; border-radius: 8px; color: var(--fog); cursor: pointer; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--graphite-2); color: var(--paper); }
.seg button svg { width: 16px; height: 16px; }

.results { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--graphite); overflow: hidden; }
.res { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(8px); animation: rowIn 0.45s var(--ease) forwards; animation-delay: calc(min(var(--i), 12) * 45ms); }
.res:first-child { border-top: 0; }
.res .info { min-width: 0; }
.res .name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res .name b { font-size: 15.5px; font-weight: 600; }
.res .addr { color: var(--fog); font-size: 13px; margin-top: 2px; display: flex; gap: 14px; flex-wrap: wrap; }
.res .addr span { display: inline-flex; gap: 5px; align-items: center; }
.res .addr svg { width: 13px; height: 13px; }
.res .reasons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.res .acts { display: flex; gap: 8px; align-items: center; }
.res.saved { background: linear-gradient(90deg, rgba(91, 91, 247, 0.06), transparent 40%); }
@media (max-width: 760px) { .res { grid-template-columns: auto 1fr; } .res .acts { grid-column: 1 / -1; justify-content: flex-end; } }
.more-row { display: flex; justify-content: center; padding: 16px; border-top: 1px solid var(--line); }
.skeleton { background: linear-gradient(90deg, var(--graphite) 0%, var(--graphite-2) 50%, var(--graphite) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-row { display: flex; gap: 16px; align-items: center; padding: 18px; border-top: 1px solid var(--line); }
.sk-row:first-child { border-top: 0; }

/* Generowanie */
.gen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(10, 11, 15, 0.86); backdrop-filter: blur(10px); animation: fade 0.25s; }
@keyframes fade { from { opacity: 0; } }
.gen-box { width: min(420px, 100% - 40px); text-align: center; }
.gen-orb { width: 110px; height: 110px; margin: 0 auto 28px; position: relative; }
.gen-orb span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--ultra-2); animation: spin 1.1s linear infinite; }
.gen-orb span:nth-child(2) { inset: 14px; border-top-color: var(--hot); animation-duration: 1.6s; animation-direction: reverse; }
.gen-orb span:nth-child(3) { inset: 28px; border-top-color: var(--good); animation-duration: 2.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen h3 { font-size: 22px; margin-bottom: 18px; }
.gen-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: left; }
.gen-steps li { display: flex; gap: 12px; align-items: center; color: var(--fog-2); transition: color 0.3s; }
.gen-steps li i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; }
.gen-steps li i svg { width: 12px; height: 12px; opacity: 0; }
.gen-steps li.now { color: var(--paper); }
.gen-steps li.now i { border-color: var(--ultra-2); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.gen-steps li.done { color: var(--fog); }
.gen-steps li.done i { background: var(--ok); border-color: var(--ok); color: var(--ink); }
.gen-steps li.done i svg { opacity: 1; }

/* Edytor */
.editor { display: grid; grid-template-columns: 380px 1fr; height: 100vh; }
@media (max-width: 1100px) { .editor { grid-template-columns: 340px 1fr; } }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; height: auto; } }
.ed-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: var(--ink); }
.ed-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ed-top .t { min-width: 0; flex: 1; }
.ed-top .t b { display: block; font-family: var(--font-d); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-top .t small { color: var(--fog); font-size: 12.5px; }
.tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { height: 38px; padding: 0 10px; border: 0; background: transparent; color: var(--fog); cursor: pointer; font-weight: 500; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs button svg { width: 15px; height: 15px; }
.tabs button.on { color: var(--paper); border-bottom-color: var(--ultra); }
.ed-body { flex: 1; overflow-y: auto; padding: 18px 16px 40px; display: grid; gap: 18px; align-content: start; }
@media (max-width: 900px) { .ed-body { overflow: visible; } }
.ed-label { font-size: 12.5px; color: var(--fog); font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; background: var(--ink-2); aspect-ratio: 4 / 3.3; padding: 0; transition: border-color 0.2s, transform 0.2s var(--ease); text-align: left; }
.tpl:hover { transform: translateY(-2px); }
.tpl.on { border-color: var(--ultra); }
.tpl iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 1056px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tpl .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 9px; background: linear-gradient(transparent, rgba(10, 11, 15, 0.92) 40%); font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.tpl .lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 11, 15, 0.55); }
.tpl .lock span { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 8px; background: var(--ink); font-size: 12px; font-weight: 600; color: var(--ultra-2); border: 1px solid rgba(91, 91, 247, 0.4); }
.tpl .lock svg { width: 13px; height: 13px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; font-size: 13px; }
.sw.on { border-color: var(--ultra); background: var(--ultra-soft); }
.sw .dots { display: flex; }
.sw .dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -6px; }
.sw .dots i:first-child { margin-left: 0; }
.acc { border: 1px solid var(--line); border-radius: 12px; background: var(--graphite); }
.acc > summary { list-style: none; cursor: pointer; padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary svg { transition: transform 0.25s; color: var(--fog); width: 16px; height: 16px; }
.acc[open] > summary svg { transform: rotate(180deg); }
.acc .acc-body { padding: 4px 14px 16px; display: grid; gap: 12px; }
.acc .sub-item { padding: 12px; border-radius: 10px; background: var(--ink-2); display: grid; gap: 8px; }
.acc .input, .acc .textarea { font-size: 13.5px; }
.save-state { font-size: 12px; color: var(--fog); display: inline-flex; align-items: center; gap: 6px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save-state.saving i { background: var(--good); animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.ed-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #07080b; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stage-bar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.stage { flex: 1; display: grid; place-items: start center; padding: 22px; overflow: auto; }
@media (max-width: 900px) { .stage { height: 78vh; padding: 12px; } }
.frame { width: 100%; height: 100%; min-height: 600px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); transition: width 0.5s var(--ease), border-radius 0.5s var(--ease); }
.frame.tablet { width: 820px; max-width: 100%; }
.frame.mobile { width: 390px; max-width: 100%; border-radius: 28px; border-width: 8px; border-color: #1f222b; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.msg-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.msg-box { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; }
.msg-box .subj { font-weight: 600; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.msg-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.script h4 { font-family: var(--font-b); font-size: 13px; color: var(--fog); margin: 14px 0 6px; }
.script h4:first-child { margin-top: 0; }
.script ol, .script ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.locked-note { padding: 14px; border-radius: 12px; border: 1px dashed rgba(91, 91, 247, 0.4); color: var(--fog); font-size: 13px; }
.locked-note a { color: var(--ultra-2); }

/* Strony */
.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.site-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--graphite); overflow: hidden; text-decoration: none; display: block; transition: border-color 0.2s, transform 0.25s var(--ease); }
.site-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.site-card .shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.site-card .shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.site-card .meta { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-card .meta b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card .meta small { color: var(--fog); font-size: 12.5px; }

/* Leady */
.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.status-tabs button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--fog); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.status-tabs button i { width: 8px; height: 8px; border-radius: 50%; }
.status-tabs button.on { background: var(--graphite-2); color: var(--paper); border-color: var(--line-2); }
.status-tabs b { font-weight: 600; color: var(--paper); }
.lead-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.lead-row:first-child { border-top: 0; }
.lead-row .select { height: 34px; width: 150px; font-size: 13px; }
.lead-row .note { color: var(--fog); font-size: 12.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52ch; }
@media (max-width: 760px) { .lead-row { grid-template-columns: auto 1fr; } .lead-row > :nth-child(3), .lead-row > :nth-child(4) { grid-column: 2; } }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* Kredyty */
.plan-now { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
@media (max-width: 760px) { .plan-now { grid-template-columns: 1fr; } }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ultra) calc(var(--p) * 1%), var(--ink-2) 0); transition: --p 1s; position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--graphite); }
.ring div { position: relative; text-align: center; }
.ring b { display: block; font-family: var(--font-d); font-size: 30px; line-height: 1; }
.ring small { color: var(--fog); font-size: 12px; }
.split-credits { display: grid; gap: 8px; font-size: 14px; }
.split-credits div { display: flex; justify-content: space-between; gap: 30px; }
.split-credits span { color: var(--fog); }
.ledger td { padding: 10px 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
.ledger td.delta { text-align: right; font-weight: 600; font-family: var(--font-d); }
.ledger td.delta.plus { color: var(--ok); }
.ledger td small { color: var(--fog); display: block; }
.ledger { width: 100%; border-collapse: collapse; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; background: radial-gradient(800px 500px at 50% -10%, rgba(91, 91, 247, 0.14), transparent); }
.auth-card { width: min(420px, 100%); background: var(--graphite); border: 1px solid var(--line-2); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); animation: viewIn 0.4s var(--ease); }
.auth-card .brand { margin-bottom: 22px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { color: var(--fog); margin-bottom: 22px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn-primary { width: 100%; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--fog); }
.auth-alt a { color: var(--paper); }
.gift { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 12px; background: rgba(47, 212, 126, 0.08); border: 1px solid rgba(47, 212, 126, 0.22); font-size: 13.5px; margin-bottom: 18px; color: #bff2d6; }

/* Modal i toast */
.modal-bg { position: fixed; inset: 0; z-index: 300; background: rgba(5, 6, 8, 0.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; animation: fade 0.2s; }
.modal { width: min(480px, 100%); max-height: 90vh; overflow: auto; background: var(--graphite); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); animation: pop 0.3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--fog); }
.modal .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modal .body { display: grid; gap: 14px; margin-top: 16px; }
.toasts { position: fixed; z-index: 400; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(380px, calc(100% - 36px)); }
@media (max-width: 900px) { .toasts { bottom: 86px; } }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border-radius: 13px; background: var(--graphite-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: toastIn 0.35s var(--ease); }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
.toast svg { flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--ok); } .toast.err svg { color: var(--bad); } .toast.info svg { color: var(--ultra-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.credit-float { position: fixed; z-index: 450; pointer-events: none; font-family: var(--font-d); font-weight: 700; color: var(--hot); animation: floatUp 1.1s var(--ease) forwards; }
@keyframes floatUp { to { opacity: 0; transform: translateY(-36px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; color: var(--fog); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }

.legal { max-width: 760px; margin: 0 auto; padding: 50px 20px 80px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: #c9ccd4; margin-bottom: 8px; }
.legal .warn { padding: 12px 14px; border-radius: 12px; background: rgba(255, 181, 71, 0.08); border: 1px solid rgba(255, 181, 71, 0.25); color: #ffd99c; margin: 18px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
}
