/*
 * ShopDepot - komponenty sekcji strony informacyjnej (etap 1): hero z e-mailem, filtr kanałów makiety,
 * pas przewijany, przed/po, zakładki, licznik stanu, oś zamówienia, galeria szablonów, przełącznik segmentów,
 * tabele porównań, kalkulatory, oś czasu przepisów, checklisty, katalog z filtrem, przełącznik platform.
 * Tokeny w site.css (:root). Każdy typ strony ma swój wyróżnik - patrz templates/site/pages/*.
 */

/* ── Hero: pole e-mail jak w Shopify ─────────────────────── */
.email-start { display: flex; gap: 8px; max-width: 520px; margin-top: 32px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.email-start input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--font); padding: 0 16px; color: var(--ink); outline: none; }
.email-start input::placeholder { color: var(--subtle); }
.email-start:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,92,77,.14), var(--shadow); }
.email-start .btn { flex: none; }
.cta-band .email-start { margin-top: 0; }
@media (max-width: 480px) {
    .email-start { flex-direction: column; border-radius: 18px; }
    .email-start input { height: 46px; }
    .email-start .btn { width: 100%; }
}

/* Makieta z filtrem kanałów */
.mock-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mock-filter button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mock-filter button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); }
.mock-filter button[data-channel="all"]::before { display: none; }
.mock-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mock-row[hidden] { display: none; }
.mock-row.is-new { animation: rowIn .5s ease; }
@keyframes rowIn { from { background: #f3fbdf; } to { background: transparent; } }

/* ── Pas przewijany (marquee) ────────────────────────────── */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font-weight: 750; font-size: 19px; letter-spacing: -.02em; color: #8b9894; text-decoration: none; white-space: nowrap; transition: color .15s; }
.marquee a:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ── Przed / po: stos narzędzi → jeden panel ─────────────── */
.stack-compare { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 860px) { .stack-compare { grid-template-columns: 1fr; } .stack-arrow { transform: rotate(90deg); justify-self: center; } }
.tool-stack { display: grid; gap: 10px; }
.tool { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); transform: rotate(var(--r, 0deg)); transition: transform .3s; }
.tool:nth-child(odd) { --r: -.6deg; }
.tool:nth-child(even) { --r: .5deg; margin-left: 14px; }
.tool-stack:hover .tool { --r: 0deg; }
.tool-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--c, #8b9894); }
.tool strong { display: block; font-size: 15px; }
.tool small { display: block; font-size: 13px; color: var(--muted); }
.tool em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack-total { display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 12px; background: #fff4e5; color: #7a3d00; font-weight: 700; font-size: 15px; }
.stack-arrow { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.one-panel { padding: 28px; border-radius: 22px; background: var(--brand-900); color: #cfe0da; box-shadow: var(--shadow-lg);
    background-image: radial-gradient(500px 240px at 100% 0%, rgba(198,243,109,.2), transparent 60%); }
.one-panel .brand { color: #fff; margin-bottom: 18px; }
.one-panel .brand-mark { background: var(--accent); color: var(--accent-ink); }
.one-panel ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.one-panel li { display: flex; gap: 10px; align-items: center; color: #e4eee9; }
.one-panel li .ico { color: var(--accent); }
.one-panel .stack-total { background: rgba(198,243,109,.14); color: var(--accent); }
.src-note { font-size: 13px; color: var(--subtle); margin-top: 14px; }
.src-note a { color: inherit; }

/* ── Zakładki (filary, segmenty, platformy) ──────────────── */
.tabs-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper-3); border: 1px solid var(--line); width: fit-content; max-width: 100%; margin: 0 auto 36px; }
.tabs-bar [role="tab"] { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font: 650 15px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs-bar [role="tab"][aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs-left { margin-left: 0; }
@media (max-width: 640px) { .tabs-bar { border-radius: 16px; } .tabs-bar [role="tab"] { flex: 1 1 auto; padding: 0 12px; font-size: 14px; } }
.tab-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tab-panel[hidden] { display: none; }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; } }
.tab-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.tab-panel .lead { margin-bottom: 20px; }
.link-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.link-list a:hover { color: var(--brand); }
.link-list small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }

/* Małe ekrany panelu (screens) */
.screen { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.screen-head strong { font-size: 14.5px; }
.screen-body { padding: 16px; display: grid; gap: 12px; }
.srow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.srow .thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--t, linear-gradient(135deg, #eef3f1, #dfe8e4)); }
.srow .thumb.has-logo { box-sizing: border-box; width: 56px; height: 40px; overflow: hidden; padding: 4px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
*:has(> .srow > .thumb.has-logo) > .srow { grid-template-columns: 56px minmax(0, 1fr) auto; }
.srow .thumb.has-logo img { width: 100%; height: 100%; max-height: 32px; min-height: 0; object-fit: contain; display: block; }
.srow b { display: block; font-size: 13.5px; }
.srow small { display: block; color: var(--muted); font-size: 12px; }
.srow .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.channels-row { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle-sw { width: 34px; height: 20px; border-radius: 999px; background: var(--brand); position: relative; flex: none; }
.toggle-sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.toggle-sw.off { background: var(--line-strong); }
.toggle-sw.off::after { right: auto; left: 3px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; border-radius: 6px 6px 0 0; background: var(--c, var(--brand)); height: var(--h); min-width: 8px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* ── Licznik stanu w diagramie kanałów ──────────────────── */
.hubviz-node .stock { font: 700 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--paper-3); color: var(--ink); font-variant-numeric: tabular-nums; transition: background .3s; }
.hubviz-node .stock.tick { background: var(--accent); }
.hubviz-core .stock-core { display: block; font: 800 34px/1 var(--font); margin-top: 8px; font-variant-numeric: tabular-nums; }
.sale-toast { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.sale-toast.show { opacity: 1; }

/* ── Oś jednego zamówienia ───────────────────────────────── */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 25px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.journey li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 8px; }
.journey .dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--brand); color: var(--brand); position: relative; z-index: 1; }
.journey li:last-child .dot { background: var(--brand); color: #fff; }
.journey time { font: 700 13px var(--mono); color: var(--brand); }
.journey strong { font-size: 15px; line-height: 1.3; }
.journey small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.journey a { color: inherit; text-decoration: none; }
.journey a:hover strong { color: var(--brand); }
@media (max-width: 900px) {
    .journey { grid-template-columns: 1fr; gap: 18px; }
    .journey::before { left: 25px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
    .journey li { display: grid; grid-template-columns: 52px 1fr; text-align: left; align-items: start; column-gap: 16px; row-gap: 2px; }
    .journey .dot { grid-row: span 3; }
}

/* ── Przepisy (ciemny pas) ───────────────────────────────── */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; } }
.rule { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 8px; }
.rule b { font: 800 22px var(--font); color: #fff; letter-spacing: -.02em; }
.rule p { font-size: 14.5px; color: #b7c9c3; }
.rule a { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.rule-featured { background: var(--accent); border-color: var(--accent); }
.rule-featured b, .rule-featured p, .rule-featured a { color: var(--accent-ink); }

/* ── Galeria szablonów + checkout ────────────────────────── */
.themes-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; }
@media (max-width: 960px) { .themes-row { grid-template-columns: 1fr; } }
.theme-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; }
.theme { flex: 0 0 260px; scroll-snap-align: start; border-radius: 16px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.theme-preview { aspect-ratio: 4 / 3.3; background: var(--bg, #f6f1ea); padding: 12px; display: grid; grid-template-rows: 14px 1fr 34px; gap: 8px; }
.theme-preview .tp-nav { display: flex; justify-content: space-between; align-items: center; }
.theme-preview .tp-nav i { width: 42px; height: 8px; border-radius: 4px; background: var(--fg, #2b2b2b); opacity: .8; }
.theme-preview .tp-nav i + i { width: 60px; opacity: .3; }
.theme-preview .tp-hero { border-radius: 10px; background: var(--hero, #d9cdbd); display: flex; align-items: flex-end; padding: 12px; }
.theme-preview .tp-hero b { font: 800 17px/1.1 var(--display-font, var(--font)); color: var(--hero-fg, #1d1d1d); max-width: 70%; }
.theme-preview .tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.theme-preview .tp-grid i { border-radius: 6px; background: var(--card, #fff); }
.theme figcaption { padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.theme figcaption strong { font-size: 15px; }
.theme figcaption small { color: var(--muted); font-size: 13px; }
.phone { width: 260px; max-width: 100%; justify-self: center; border-radius: 34px; border: 10px solid var(--ink); background: #fff; box-shadow: var(--shadow-lg); padding: 14px 14px 18px; display: grid; gap: 10px; font-size: 13px; }
.phone .ph-title { font-weight: 800; font-size: 15px; }
.phone .ph-opt { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.phone .ph-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,92,77,.12); }
.phone .ph-opt i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.phone .ph-opt.on i { border: 5px solid var(--brand); }
.phone .ph-opt span { flex: 1; }
.phone .ph-opt em { font-style: normal; font-weight: 700; }
.phone .ph-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone .ph-pay b { display: grid; place-items: center; height: 34px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; }
.phone .ph-pay b.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.phone .ph-btn { height: 42px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ── Przełącznik segmentów ───────────────────────────────── */
.segment { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; }
.segment[hidden] { display: none; }
@media (max-width: 860px) { .segment { grid-template-columns: 1fr; } }
.segment-story { padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.segment-story blockquote { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; letter-spacing: -.015em; font-weight: 650; color: var(--ink); }
.segment-story .checklist { margin-top: 4px; }
.plan-pick { padding: clamp(24px, 4vw, 36px); border-radius: 22px; background: var(--brand-900); color: #cfe0da; display: flex; flex-direction: column; gap: 12px; }
.plan-pick small { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--accent); }
.plan-pick strong { font-size: 2rem; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.plan-pick p { color: #b7c9c3; }
.plan-pick .btn { margin-top: auto; align-self: flex-start; }

/* ── Zbudowane przez praktyków ───────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }
.fact { padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--line); }
@media (max-width: 720px) { .fact + .fact { border-left: 0; border-top: 1px solid var(--line); } }
.fact b { font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--font); letter-spacing: -.04em; color: var(--brand); font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 15px; }

/* Platformy źródłowe */
.platform-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.platform-chips a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; }
.platform-chips a:hover { border-color: var(--ink); }
.platform-chips small { color: var(--muted); font-weight: 500; }

/* ── Tabela porównawcza (vs) ─────────────────────────────── */
.vs-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.vs { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.vs th, .vs td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vs thead th { font-size: 14px; background: var(--paper-2); }
.vs thead th.us { background: var(--brand-900); color: #fff; }
.vs td.us { background: #f2f8f5; font-weight: 600; }
.vs tr:last-child td, .vs tr:last-child th { border-bottom: 0; }
.vs .yes, .vs .no, .vs .part { display: inline-flex; align-items: center; gap: 8px; }
.vs .yes .ico { color: var(--brand); }
.vs .no { color: var(--subtle); }
.vs .part { color: #8a5a00; }
.vs small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.vs tbody th { font-weight: 600; width: 34%; }

/* TL;DR */
.tldr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .tldr { grid-template-columns: 1fr; } }
.tldr > div { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.tldr > div.us { background: var(--brand-900); color: #cfe0da; border-color: var(--brand-900); }
.tldr > div.us h3 { color: #fff; }
.tldr > div.us .checklist li { color: #e4eee9; }
.tldr > div.us .checklist .ico { background: var(--accent); color: var(--accent-ink); }
.tldr h3 { font-size: 1.1rem; }

/* ── Kalkulatory ─────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { padding: clamp(22px, 4vw, 36px); display: grid; gap: 24px; align-content: start; }
.calc-field { display: grid; gap: 8px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 650; }
.calc-field output { font: 800 1.35rem var(--font); letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--brand); height: 28px; }
.calc-field small { color: var(--subtle); font-size: 13px; }
.calc-field select { height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); padding: 0 12px; font: 15px var(--font); background: #fff; }
.calc-result { padding: clamp(22px, 4vw, 36px); background: var(--brand-900); color: #cfe0da; display: grid; gap: 14px; align-content: start;
    background-image: radial-gradient(500px 260px at 100% 0%, rgba(198,243,109,.16), transparent 60%); }
.calc-line { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.calc-line span { color: #b7c9c3; }
.calc-line b { color: #fff; }
.calc-line.them b { color: #ffd2a8; }
.calc-big { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.calc-big small { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--accent); font-weight: 700; }
.calc-big strong { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.calc-result .btn { justify-self: start; margin-top: 6px; }
.calc-result .src-note { color: #8ea79f; }

/* ── Przepisy: odpowiedź, oś czasu, checklista ───────────── */
.answer { padding: 22px 26px; border-radius: 18px; background: #fff; border: 2px solid var(--brand); box-shadow: var(--shadow); max-width: 760px; }
.answer small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.answer p { font-size: 17px; line-height: 1.55; color: var(--ink); }
.law-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.law-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: var(--line); }
.law-timeline li { position: relative; padding: 34px 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.law-timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.law-timeline li.past::before { background: var(--brand); }
.law-timeline li.now::before { background: var(--accent); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(198,243,109,.35); }
.law-timeline time { font: 800 1.2rem var(--font); letter-spacing: -.02em; }
.law-timeline strong { font-size: 15px; }
.law-timeline p { font-size: 14px; color: var(--muted); }
.law-timeline .tag-now { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
@media (max-width: 860px) {
    .law-timeline { grid-template-columns: 1fr; gap: 22px; }
    .law-timeline::before { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
    .law-timeline li { padding: 0 0 0 40px; }
}
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.todo input { width: 22px; height: 22px; accent-color: var(--brand); margin: 2px 0 0; }
.todo strong { display: block; font-size: 15.5px; }
.todo span span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.todo input:checked + span strong { text-decoration: line-through; color: var(--muted); }
.todo label:has(input:checked) { background: var(--paper-2); }
.todo-progress { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.todo-progress i { flex: 1; height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.todo-progress i b { display: block; height: 100%; width: var(--p, 0%); background: var(--brand); transition: width .3s; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
@media (max-width: 720px) { .glossary { grid-template-columns: 1fr; } }
.glossary div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { color: var(--brand); }
.status-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #fff7df; border: 1px solid #f3dd98; color: #5e4200; font-size: 15px; }
.status-note .ico { color: #b58100; margin-top: 2px; }

/* ── Kanał: tabela synchronizacji ────────────────────────── */
.channel-hero-mark { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font: 800 26px var(--font); color: #fff; background: var(--c, var(--brand)); box-shadow: var(--shadow); }
.sync-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.sync-table th, .sync-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.sync-table thead th { background: var(--paper-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sync-table td:nth-child(2), .sync-table th:nth-child(2) { text-align: center; white-space: nowrap; }
.dir { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--mono); color: var(--ink-2); }
.state { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.state-live { background: #cdfee1; color: #0c5132; }
.state-soon { background: #fff1c7; color: #5e4200; }

/* ── Dzień z życia (persona) ─────────────────────────────── */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 920px; }
.day li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.day li:last-child { border-bottom: 1px solid var(--line); }
.day time { font: 800 1.3rem var(--font); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.day .before { color: var(--muted); font-size: 15px; }
.day .before b, .day .after b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.day .before b { color: #a24a00; }
.day .after { font-size: 15px; color: var(--ink); }
.day .after b { color: var(--brand); }
@media (max-width: 720px) { .day li { grid-template-columns: 1fr; gap: 8px; } }

/* Problemy → rozwiązania */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr; } }
.pain { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.pain > div { padding: 20px 22px; }
.pain .p-problem { background: #fff6ee; color: #7a3d00; font-weight: 650; }
.pain .p-problem small, .pain .p-fix small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.pain .p-fix { color: var(--ink-2); flex: 1; }
.pain .p-fix small { color: var(--brand); }
.pain .p-fix a { display: inline-flex; margin-top: 10px; font-weight: 600; color: var(--brand); text-decoration: none; }

/* ── Katalog integracji z filtrem ────────────────────────── */
.dir-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.dir-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; }
.dir-search input { flex: 1; border: 0; outline: none; font: 15.5px var(--font); background: none; min-width: 0; }
.dir-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,92,77,.12); }
.dir-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-filters button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 600 14px var(--font); cursor: pointer; color: var(--ink-2); }
.dir-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dir-filters button small { opacity: .7; font-weight: 500; margin-left: 4px; }
.int-tile a, a.int-tile { color: inherit; text-decoration: none; }
a.int-tile:hover { border-color: var(--ink); }
.int-tile .state { margin-left: auto; }
.dir-empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 16px; }

/* ── Przełącznik platform (migracja) ─────────────────────── */
.move-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.move-table td, .move-table th { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.move-table th { font-weight: 600; }
.move-table td { color: var(--muted); }
.timeline-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .timeline-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .timeline-days { grid-template-columns: 1fr; } }
.timeline-days > div { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.timeline-days b { font: 800 13px var(--mono); color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.timeline-days strong { font-size: 16px; }
.timeline-days p { color: var(--muted); font-size: 14.5px; }

/* ── Hub: hierarchia ─────────────────────────────────────── */
.hub-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--paper-2); border: 1px solid var(--line); text-decoration: none; color: inherit; margin-bottom: 44px; }
.hub-featured:hover { border-color: var(--line-strong); }
@media (max-width: 860px) { .hub-featured { grid-template-columns: 1fr; } }
.hub-featured h2 { margin: 6px 0 12px; }
.hub-group + .hub-group { margin-top: 40px; }
.hub-group > h2 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.hub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.hub-list a { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hub-list a:hover strong { color: var(--brand); }
.hub-list .mega-icon { margin-top: 2px; }
.hub-list strong { display: block; font-size: 16px; }
.hub-list small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ── Specyfikacja (tour) ─────────────────────────────────── */
.spec-search { max-width: 460px; margin-bottom: 18px; }
.spec { columns: 3 260px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.spec li { break-inside: avoid; display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.spec li .ico { color: var(--brand); margin-top: 3px; }
.spec li[hidden] { display: none; }
.screens-steps { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .screens-steps { grid-template-columns: 1fr; } }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: st; }
.step-list button { counter-increment: st; width: 100%; text-align: left; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: inherit; }
.step-list button::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--paper-3); color: var(--muted); }
.step-list button[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.step-list button[aria-selected="true"]::before { background: var(--brand); color: #fff; }
.step-list strong { display: block; font-size: 16px; }
.step-list span span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.step-screen { position: sticky; top: calc(var(--header-h) + 24px); }
.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .before-after { grid-template-columns: 1fr; } }
.before-after > div { padding: 26px; border-radius: 18px; display: grid; gap: 12px; align-content: start; }
.before-after .ba-before { background: #fff6ee; border: 1px solid #f6dcc3; }
.before-after .ba-after { background: #f0f8f4; border: 1px solid #cfe7dc; }
.before-after small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.before-after .ba-before small { color: #a24a00; }
.before-after .ba-after small { color: var(--brand); }
.before-after b { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.before-after ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; font-size: 15px; }
.calc .if-more, .calc.is-more .if-less { display: none; }
.calc.is-more .if-more { display: block; color: #ffd2a8; }
.calc-when-plan, .calc-when-enterprise { display: grid; gap: 14px; }
.calc-plan.is-enterprise .calc-when-plan, .calc-plan:not(.is-enterprise) .calc-when-enterprise { display: none; }
.fact b.fact-word { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.15; }
.plan-pick .checklist li { color: #e4eee9; }
.plan-pick .checklist .ico { background: var(--accent); color: var(--accent-ink); }
.move-table tbody th { width: 32%; white-space: nowrap; }
.move-table th .ico { display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--brand); }
@media (max-width: 640px) { .move-table tbody th { white-space: normal; } }
