:root {
  --ink: #161514; --muted: #6d6a66; --line: #e7e3dd; --paper: #fbfaf8; --sand: #f3efe8; --accent: #161514;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1120px; --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 500 15px var(--sans); text-decoration: none; transition: transform .15s ease, background-color .2s ease, opacity .2s ease; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: .88; }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--sand); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Nawigacja */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 500 19px var(--serif); text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.nav ul { display: none; list-style: none; gap: 28px; margin: 0; padding: 0; font-size: 14px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (min-width: 860px) { .nav ul { display: flex; } }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; }
.hero .lead { margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.platforms { margin-top: 36px; font-size: 13px; color: var(--muted); }
.platforms strong { display: block; margin-bottom: 8px; font-weight: 500; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink); }
@media (min-width: 900px) { .hero { padding: 72px 0 104px; } .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; } }

/* Makieta iPhone'a z oknem przymierzalni (rysowana w CSS, bez grafik) */
.phone { position: relative; width: min(300px, 68vw); margin: 0 auto; aspect-ratio: 71.6 / 146.6; border-radius: 17.5% / 8.6%; padding: 3.4%; background: #0c0c0d;
  box-shadow: inset 0 0 0 1.5px #6a6a6e, inset 0 0 0 3.5px #1c1c1e, 0 0 0 1px #2a2a2c, 0 40px 80px -30px rgba(22,21,20,.5); }
.phone::before { content: ""; position: absolute; left: -1.1%; top: 18%; width: 1.1%; height: 24%; border-radius: 2px 0 0 2px;
  background: linear-gradient(#2e2e30, #2e2e30) 0 0 / 100% 13% no-repeat, linear-gradient(#2e2e30, #2e2e30) 0 30% / 100% 27% no-repeat, linear-gradient(#2e2e30, #2e2e30) 0 100% / 100% 27% no-repeat; }
.phone::after { content: ""; position: absolute; right: -1.1%; top: 27%; width: 1.1%; height: 11.5%; border-radius: 0 2px 2px 0; background: #2e2e30; }
.screen { position: relative; height: 100%; border-radius: 15.1% / 7.1%; overflow: hidden; background: var(--sand); }
.status { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 7.4%; padding: 0 8.5% 1.5% 11.5%; display: flex; align-items: flex-end; justify-content: space-between; font: 600 11.5px var(--sans); color: var(--ink); }
.status span { display: flex; gap: 4px; align-items: center; }
.status svg { height: 9.5px; width: auto; }
.island { position: absolute; z-index: 3; left: 50%; top: 2%; transform: translateX(-50%); width: 31%; height: 4%; border-radius: 999px; background: #000; }
.island::after { content: ""; position: absolute; right: 13%; top: 50%; width: 10%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #33415c, #0a0d14 62%); }
.home { position: absolute; z-index: 3; left: 50%; bottom: 1.2%; transform: translateX(-50%); width: 35%; height: 4px; border-radius: 999px; background: #111; }
.shop { position: absolute; inset: 0; padding: 16% 5.5% 0; }
.shop .ph { height: 58%; border-radius: 6px; background: linear-gradient(160deg, #e9e2d6, #d9cfbf); }
.shop .ln { height: 9px; border-radius: 4px; background: #e0d9ce; margin-top: 12px; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 82%; background: #fff; border-radius: 20px 20px 0 0; padding: 15px 14px 24px; box-shadow: 0 -10px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 10px; animation: up 1s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; font: 600 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.stage { position: relative; flex: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #f4f1ec, #ebe5dc); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.badge { z-index: 1; position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.86); font-size: 9px; font-weight: 500; }
.save { z-index: 1; position: absolute; right: 8px; bottom: 8px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sheet .b1, .sheet .b2 { height: 36px; border-radius: 4px; display: grid; place-items: center; font: 600 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.sheet .b1 { background: var(--ink); color: #fff; }
.sheet .b2 { border: 1px solid var(--ink); }
.mock { position: relative; }
.float { position: absolute; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px -12px rgba(22,21,20,.3); font-size: 13px; line-height: 1.35; }
.float b { display: block; font-weight: 600; }
.f1 { left: -9%; top: 9.5%; }
.f2 { right: -11%; bottom: 37%; }
/* Na telefonie etykiety stoją pod makietą, żeby niczego nie zasłaniały. */
@media (max-width: 899px) { .mock { text-align: center; } .float { position: static; display: inline-block; margin: 16px 5px 0; text-align: left; font-size: 12.5px; padding: 8px 12px; } }

section { padding: 72px 0; }
.head { max-width: 720px; margin-bottom: 40px; }
.head h2 { margin-top: 12px; }
.head .lead { margin-top: 16px; }

/* Przykład przed / po: trzy małe kadry obok siebie, także na telefonie */
.ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; }
.ex figure { margin: 0; }
.ex img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--sand); }
.ex figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.ex figcaption b { display: block; color: var(--ink); font-weight: 500; }
.note { margin-top: 20px; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .ex { gap: 6px; } .ex figcaption { font-size: 11.5px; } }
@media (max-width: 700px) { section { padding: 48px 0; } .hero { padding: 28px 0 44px; } .head { margin-bottom: 26px; } }

/* Jak to działa */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; margin-bottom: 18px; font: 400 15px var(--serif); color: var(--muted); }
.step p { margin-top: 10px; color: var(--muted); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Zalety */
.band { background: var(--sand); }
.feats { display: grid; gap: 36px 48px; }
.feat { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; }
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { font-size: 20px; }
.feat p { margin-top: 8px; color: var(--muted); }
@media (min-width: 800px) { .feats { grid-template-columns: repeat(2, 1fr); } }

/* Platformy */
.plats { display: grid; gap: 12px; }
.plat { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.plat b { font: 400 22px var(--serif); }
.plat span { color: var(--muted); text-align: right; font-size: 15px; }
.code { margin-top: 28px; padding: 20px; border-radius: var(--r); background: var(--ink); color: #eae6df; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.code .c { color: #9b968e; }

/* Prywatność */
.priv { display: grid; gap: 40px; align-items: start; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.list svg { width: 22px; height: 22px; margin-top: 1px; }
@media (min-width: 860px) { .priv { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* FAQ */
details:not(.menu) { border-bottom: 1px solid var(--line); }
details:not(.menu) > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font: 400 20px var(--serif); }
details:not(.menu) > summary::-webkit-details-marker { display: none; }
details:not(.menu) > summary::after { content: "+"; font-family: var(--sans); color: var(--muted); transition: transform .2s ease; }
details:not(.menu)[open] > summary::after { transform: rotate(45deg); }
details:not(.menu) p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* Kontakt */
.final { text-align: center; }
.final .lead { margin: 16px auto 0; }
.final .cta { justify-content: center; }
footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Podstrony */
.nav ul a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 40px; padding: 0 14px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 48px; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(22,21,20,.25); display: grid; }
.menu nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.menu nav a[aria-current="page"], .menu nav a:hover { background: var(--sand); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.nav .cta-top { display: none; }
@media (min-width: 860px) { .menu { display: none; } .nav .cta-top { display: inline-flex; } }
.logo img { height: 24px; width: auto; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 58px); margin-top: 14px; }
.page-head .lead { margin-top: 18px; }

/* Cennik */
.plans { display: grid; gap: 14px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.plan.hi { border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(22,21,20,.35); position: relative; }
.plan.hi::before { content: "Najczęściej wybierany"; position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.plan h3 { font-size: 24px; }
.price { font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.price small { font: 400 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .alt { font-size: 13px; color: var(--muted); margin-top: -6px; }
.plan .inc { font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); flex: 1; }
.plan li::before { content: "✓"; color: var(--ink); margin-right: 8px; }
.plan .btn { width: 100%; }
.small-print { margin-top: 22px; font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; background: #fff; border-radius: var(--r); overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { font-weight: 500; color: var(--muted); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }

.custom { margin-top: 40px; padding: 26px; border-radius: var(--r); background: #fff; display: grid; gap: 18px; align-items: center; }
.custom p { margin-top: 8px; color: var(--muted); max-width: 40em; }
@media (min-width: 800px) { .custom { grid-template-columns: 1fr auto; padding: 30px 34px; } }

.plat b { display: flex; align-items: center; gap: 14px; }
.plat { min-height: 81px; } /* równe wiersze także tam, gdzie zamiast nazwy jest logo */
.plat .pl { width: 28px; height: 28px; flex: none; }
.plat .pl svg { width: 28px; height: 28px; }
/* Logo, które jest samym napisem (Shoper): zastępuje ikonę i nazwę, bez dopisków obok (księga znaku). */
.plat .wm { height: 25px; width: auto; max-width: none; flex: none; } /* bez max-width: wąski ekran ściskał logo */
.plat .wm-idosell { height: 19px; } /* same wielkie litery i wydłużenia górne: przy tej wysokości wygląda jak 25 px Shopera */
/* Najwęższe telefony (320 px): nazwa platformy i opis mieszczą się bez przewijania w bok. */
@media (max-width: 359px) { .plat b { font-size: 17px; gap: 10px; } }
.legal-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; }

/* Dokumenty */
.legal { max-width: 780px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: #3d3a37; }
.legal p + p { margin-top: 10px; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 0; }
.legal a { text-underline-offset: 2px; }
.draft { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 8px; background: #fff4e5; color: #8a4b00 !important; font-size: 13px; }
footer .legal-links { flex-basis: 100%; }

/* Formularze: test, konto */
.acc-link { font-size: 14px; color: var(--muted); text-decoration: none; margin-right: 6px; }
.acc-link:hover { color: var(--ink); }
@media (max-width: 859px) { .acc-link { display: none; } }
.form-wrap { max-width: 720px; }
.card-form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.card-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.card-form input[type=text], .card-form input[type=email], .card-form select { font: inherit; font-weight: 400; font-size: 16px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.card-form input:focus, .card-form select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.card-form .check { grid-template-columns: 20px 1fr; align-items: start; font-weight: 400; color: var(--muted); }
.card-form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: 14px; color: #b42318; margin: 0; }
.form-msg.ok { color: #1a7f37; background: #eaf6ec; padding: 12px 14px; border-radius: 10px; }
.copy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 12px; }
.copy code, .copy pre { flex: 1 1 260px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--sand); font: 13px/1.6 ui-monospace, Menlo, monospace; overflow-x: auto; word-break: break-all; white-space: pre-wrap; color: var(--ink); }
.copy .btn { min-height: 44px; }
.steps-ol { padding-left: 20px; display: grid; gap: 6px; color: #3d3a37; margin: 12px 0 0; }
.stats { display: grid; gap: 12px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats div { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: grid; gap: 4px; }
.stats span { font-size: 13px; color: var(--muted); }
.stats b { font: 400 30px var(--serif); }
.stats small { font-size: 13px; color: var(--muted); }
.acc-h { font-size: 24px; margin: 40px 0 8px; }
.plans-3 { display: grid; gap: 12px; margin-top: 20px; } /* odstęp na plakietkę wyróżnionego planu */
@media (min-width: 700px) { .plans-3 { grid-template-columns: repeat(3, 1fr); } }

.limit { display: flex; gap: 8px; align-items: center; }
.limit input { width: 96px; min-height: 44px; padding: 0 10px; font: 400 26px var(--serif); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.limit .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (min-width: 700px) { .stats.stats-5 { grid-template-columns: repeat(5, 1fr); } }
.stats-5 b { font-size: 26px; }
.plan button { cursor: pointer; font-family: var(--sans); background: none; }
.plan button.btn-dark { background: var(--ink); }
.plan button:disabled, #portal:disabled { opacity: .5; cursor: default; }
button.btn { cursor: pointer; font-family: var(--sans); }
button.btn-line { background: none; }
button.btn-dark { border: 0; }
/* Długie klucze i linki nie rozpychają kart na telefonie */
.card-form > *, .copy > *, .stats > div { min-width: 0; }
.card-form code, .steps-ol code, .note code { overflow-wrap: anywhere; word-break: break-all; }
.card-form h2, .page-head h1 { overflow-wrap: anywhere; }
/* Atrybut hidden ma pierwszeństwo przed display z klas (karty formularzy). */
[hidden] { display: none !important; }

/* Logo platform w znaczkach na stronie głównej (jeden kolor) */
.chip { display: inline-flex; align-items: center; gap: 7px; }
.chip img, .chip svg { width: 16px; height: 16px; flex: none; }
/* Informacja dla klientek */
.lang-switch { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.lang-switch a { color: inherit; text-underline-offset: 2px; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.summary { margin: 28px 0 8px; padding: 22px 24px; border-radius: var(--r); background: var(--sand); }
.summary h2, .summary h3 { margin: 0 0 10px; font-size: 20px; }
.summary p + p { margin-top: 10px; }

/* Przełącznik brutto / netto w cenniku */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; margin-bottom: 20px; }
.seg button { all: unset; cursor: pointer; padding: 7px 16px; border-radius: 999px; font: 500 13.5px var(--sans); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip img { height: 15px; width: auto; }
.chip img.wm { height: 13px; } /* logo-napis jest cięższe od tekstu obok */
