/* site.css — shared styles of the public pages (landing, articles, help, legal).
   Tokens mirror the app (css/styles.css, iOS SakvaTheme.swift, palette "Warm Heritage"). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/IBMPlexSans-Regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/IBMPlexSans-Medium.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); }

/* ========== TOKENS ==========
   Colours mirror the app (css/styles.css, iOS DesignSystem/SakvaTheme.swift,
   palette "Warm Heritage"): light and dark. --petrol stays petrol in both
   modes for surfaces that are always dark (Pro card, final CTA). */
:root {
    color-scheme: light dark;
    --bg: #FCFDFD;
    --surface: #F2F4F5;
    --surface-2: #E8ECEE;
    --card: #FFFFFF;
    --ink: #14120F;
    --ink-soft: #6E695F;
    --line: #DDE2E4;
    --primary: #355663;
    --primary-hover: #2B4752;
    --on-primary: #FFFFFF;
    --primary-soft: #4a7384;
    --primary-container: #D6E2E8;
    --tertiary: #B88862;
    --tertiary-soft: #d4a482;
    --tertiary-container: #F1E2CC;
    --accent: #6B2E3A;
    --error: #8C2E26;
    --success: #4A7A56;
    --petrol: #355663;
    --petrol-deep: #213F4A;
    --logo: #355663;

    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --shadow-sm: 0 4px 14px rgba(20,18,15,0.05);
    --shadow-md: 0 12px 32px rgba(20,18,15,0.08);
    --shadow-lg: 0 28px 60px rgba(20,18,15,0.12);
    --card-shadow: 0 1px 2px rgba(20,18,15,.06), 0 18px 40px -14px rgba(20,18,15,.30);
    --card-border: rgba(160,149,133,.22);
    --phone-shadow: 0 .4cqw .8cqw rgba(20,18,15,.20), 0 4cqw 8cqw -2cqw rgba(20,18,15,.22), 0 12cqw 20cqw -8cqw rgba(33,63,74,.34);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14120F;
        --surface: #1A1815;
        --surface-2: #2E2B26;
        --card: #1F1D1A;
        --ink: #FCFDFD;
        --ink-soft: #A39F96;
        --line: #2E2B26;
        --primary: #7FA9B8;
        --primary-hover: #94B9C6;
        --on-primary: #14120F;
        --primary-soft: #9cc0cc;
        --primary-container: #213F4A;
        --tertiary: #C68891;
        --tertiary-soft: #d9a2aa;
        --tertiary-container: #3A2A24;
        --accent: #C68891;
        --error: #F0736A;
        --success: #7DB895;
        --logo: #CFE0E6;
        --shadow-sm: 0 4px 14px rgba(0,0,0,0.3);
        --shadow-md: 0 12px 32px rgba(0,0,0,0.35);
        --shadow-lg: 0 28px 60px rgba(0,0,0,0.45);
        --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -12px rgba(0,0,0,.65);
        --card-border: rgba(255,255,255,.07);
        --phone-shadow: 0 .4cqw .8cqw rgba(0,0,0,.55), 0 5cqw 10cqw -2cqw rgba(0,0,0,.6), 0 14cqw 22cqw -9cqw rgba(0,0,0,.7);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; }
.ic { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
:root[data-ios="wkrotce"] .ios-jest,
:root[data-ios="dostepna"] .ios-wkrotce { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: 12px; top: 12px; z-index: 100; transform: translateY(-200%);
    padding: 12px 18px; border-radius: 12px;
    background: var(--card); color: var(--ink); box-shadow: var(--card-shadow);
    font-weight: 600; text-decoration: none;
}
.skip-link:not(:focus) { box-shadow: none; }
.skip-link:focus { transform: none; }

/* ========== NAV ========== */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 10px 24px; min-height: 68px;
}
@media (max-width: 600px) { .nav-inner { padding: 8px 12px 8px 20px; min-height: 64px; } }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--logo); }
.logo-img { display: block; height: 28px; width: auto; }
.logo svg.logo-img { width: 89px; fill: currentColor; }
.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border-radius: 999px; font-size: 15px; color: var(--ink-soft); text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.nav-social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink-soft); transition: color .2s ease, background-color .2s ease; }
.nav-social:hover { color: var(--ink); background: var(--surface); }
.nav-social svg { width: 19px; height: 19px; fill: currentColor; }
.nav-social + .nav-cta { margin-left: 6px; }
@media (max-width: 379px) { .nav-social { display: none; } }  /* najmniejsze telefony: brak miejsca obok „Wypróbuj”, ikony zostają w stopce */
.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--primary); color: var(--on-primary);
    font-weight: 600; font-size: 15px; text-decoration: none;
    transition: background-color .2s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--primary-hover); }
.nav-cta:active { transform: scale(.96); }
.nav-menu { position: relative; }
.nav-menu summary {
    list-style: none; cursor: pointer;
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 999px; color: var(--ink); font-size: 24px;
    transition: background-color .2s ease;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--surface); }
.nav-menu .i-close, .nav-menu[open] .i-menu { display: none; }
.nav-menu[open] .i-close { display: block; }
.nav-menu-panel {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 232px; padding: 8px; border-radius: 20px;
    background: var(--card); box-shadow: var(--card-shadow); border: 1px solid var(--card-border);
    display: grid;
}
.nav-menu-panel a {
    display: flex; align-items: center; min-height: 48px; padding: 0 14px;
    border-radius: 12px; text-decoration: none; font-size: 16px; color: var(--ink);
}
.nav-menu-panel a:hover { background: var(--surface); }
@media (min-width: 880px) {
    .nav-links { display: flex; }
    .nav-menu { display: none; }
}

/* ========== iPHONE FRAME ==========
   Drawn in CSS, proportions of a 6.3" Pro body (71.5 x 149.6 mm, screen
   402 x 874 pt). All sizes in cqw = 1% of the phone width, so the frame
   stays sharp at any size. The screenshot is shot at 402 x 778 pt:
   62 pt status bar above it and 34 pt home-indicator strip below are
   painted in the colours sampled from the shot (--top / --bot), so the
   Dynamic Island never covers app content. */
.phone {
    --w: 300px;
    position: relative; width: var(--w); aspect-ratio: 715 / 1496;
    container-type: inline-size; flex-shrink: 0;
}
.phone-body {
    position: absolute; inset: 0; border-radius: 17.6cqw;
    background: linear-gradient(152deg, #a7a39b 0%, #66625c 9%, #3b3936 26%, #2a2927 52%, #3a3835 76%, #6e6a63 92%, #a29e96 100%);
    box-shadow: var(--phone-shadow), inset 0 0 0 .3cqw rgba(255,255,255,.18), inset 0 0 0 .7cqw rgba(0,0,0,.28);
}
.phone-body::before {
    content: ""; position: absolute; inset: 1.05cqw; border-radius: 16.6cqw;
    background: #070707;
    box-shadow: inset 0 0 0 .18cqw rgba(255,255,255,.07);
}
.phone-btn { position: absolute; width: .85cqw; background: linear-gradient(90deg, #8b877f, #4a4844 55%, #2e2d2a); }
.phone-btn.l { left: -.62cqw; border-radius: .6cqw 0 0 .6cqw; }
.phone-btn.r { right: -.62cqw; border-radius: 0 .6cqw .6cqw 0; background: linear-gradient(270deg, #8b877f, #4a4844 55%, #2e2d2a); }
.phone-btn.act { top: 19.4%; height: 4.6%; }
.phone-btn.up { top: 28.4%; height: 8.2%; }
.phone-btn.down { top: 39.2%; height: 8.2%; }
.phone-btn.side { top: 30%; height: 13.4%; }
.phone-btn.cam { top: 62%; height: 10.4%; width: .5cqw; right: -.28cqw; background: linear-gradient(270deg, #55534e, #1d1c1a); }
.phone-screen {
    position: absolute; left: 3.435cqw; right: 3.435cqw; top: 3.37cqw; bottom: 3.37cqw;
    border-radius: 14.36cqw; overflow: hidden; background: #000; isolation: isolate;
}
.phone-island {
    position: absolute; z-index: 3; left: 50%; top: 2.55cqw;
    width: 29.2cqw; height: 8.65cqw; transform: translateX(-50%);
    border-radius: 99px;
    background: radial-gradient(circle at 81% 50%, #263048 0, #11141c 1.3cqw, #000 1.9cqw);
}
.scr { position: absolute; inset: 0; background: linear-gradient(var(--top) 0 50%, var(--bot) 50% 100%); }
.scr picture { display: contents; }
.scr img { position: absolute; left: 0; top: 7.0938%; width: 100%; height: 89.016%; display: block; }
.scr .sb { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 402 / 62; color: var(--sb); }
.scr .hi { position: absolute; left: 32.7%; width: 34.6%; bottom: .9%; height: .58%; border-radius: 99px; background: var(--hi); opacity: .92; }
.scr-start { --top:#355663;--bot:#FCFDFD;--sb:#FFFFFF;--hi:#14120F }
.scr-plan { --top:#FFFFFF;--bot:#FCFDFD;--sb:#14120F;--hi:#14120F }
.scr-dodaj-biedronka { --top:#FCFDFD;--bot:#F3F6F7;--sb:#14120F;--hi:#14120F }
.scr-platnosci { --top:#FFFFFF;--bot:#FCFDFD;--sb:#14120F;--hi:#14120F }
.scr-plan-wydatki { --top:#FCFDFD;--bot:#FCFDFD;--sb:#14120F;--hi:#14120F }
.scr-udostepnianie { --top:#FFFFFF;--bot:#FCFDFD;--sb:#14120F;--hi:#14120F }
.scr-kalendarz-przemek { --top:#FFFFFF;--bot:#FBFDFD;--sb:#14120F;--hi:#14120F }
.scr-cel { --top:#FCFDFD;--bot:#FCFDFD;--sb:#14120F;--hi:#14120F }
.scr-rok { --top:#FFFFFF;--bot:#FAFBFC;--sb:#14120F;--hi:#14120F }
.scr-import { --top:#A1A09F;--bot:#E3D0C2;--sb:#14120F;--hi:#14120F }
.scr-blokada { --top:#FCFDFD;--bot:#FCFDFD;--sb:#14120F;--hi:#14120F }
.scr-start-dark { --top:#7FA9B8;--bot:#151311;--sb:#14120F;--hi:#FFFFFF }
@media (prefers-color-scheme: dark) {
    .scr-cel { --top:#1C1A17;--bot:#151310;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-rok { --top:#1C1A17;--bot:#161513;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-import { --top:#191714;--bot:#CBB8A9;--sb:#FFFFFF;--hi:#14120F }
    .scr-blokada { --top:#14120F;--bot:#14120F;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-start { --top:#7FA9B8;--bot:#151311;--sb:#14120F;--hi:#FFFFFF }
    .scr-plan { --top:#1C1A17;--bot:#14120F;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-dodaj-biedronka { --top:#1C1A17;--bot:#1C1E1E;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-platnosci { --top:#1C1A17;--bot:#151310;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-plan-wydatki { --top:#1C1A17;--bot:#14120F;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-udostepnianie { --top:#1C1A17;--bot:#151310;--sb:#FFFFFF;--hi:#FFFFFF }
    .scr-kalendarz-przemek { --top:#1C1A17;--bot:#141210;--sb:#FFFFFF;--hi:#FFFFFF }
}

/* App-faithful floating cards (same type, radii and colours as the app's rows) */
.fc { position: absolute; z-index: 4; font-variant-numeric: tabular-nums; }
.fc-card {
    background: var(--card); color: var(--ink);
    border: 1px solid var(--card-border); border-radius: 18px;
    box-shadow: var(--card-shadow);
}
.fc-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.fc-ico {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 20px;
    background: var(--surface); color: var(--ink);
}
.fc-ico.round { border-radius: 50%; }
.fc-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fc-title, .fc-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.fc-sub { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.fc-amt { font-weight: 600; font-size: 15px; white-space: nowrap; }
.fc-amt.neg { color: var(--error); }
.fc-amt.pos { color: var(--success); }
.fc-bar { height: 4px; border-radius: 99px; background: var(--surface-2); margin: 0 16px 14px; overflow: hidden; }
.fc-bar i { display: block; height: 100%; border-radius: 99px; background: var(--success); }

/* In-app reminder banner — same values as .inapp-card in the app */
.fc-banner {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 11px 13px; border-radius: 22px;
    background: rgba(250, 250, 252, .86);
    -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0,0,0,.04);
    color: #111; font-family: -apple-system, BlinkMacSystemFont, "IBM Plex Sans", system-ui, sans-serif;
}
.fc-banner .b-ico { width: 38px; height: 38px; border-radius: 9px; background: #355663; display: grid; place-items: center; flex-shrink: 0; }
.fc-banner .b-mark { width: 16px; height: 21px; background: #fff; -webkit-mask: url(/sakva-mark.svg) center / contain no-repeat; mask: url(/sakva-mark.svg) center / contain no-repeat; }
.fc-banner .b-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc-banner .b-meta { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .02em; color: rgba(60, 60, 67, .8); }
.fc-banner .b-meta span:first-child { font-weight: 600; }
.fc-banner .b-title { font-weight: 600; font-size: 14.5px; line-height: 1.25; margin-top: 1px; }
.fc-banner .b-line { font-size: 14px; line-height: 1.3; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-color-scheme: dark) {
    .fc-banner { background: rgba(44, 44, 46, .82); box-shadow: 0 10px 34px rgba(0, 0, 0, .5); color: #F5F5F7; }
    .fc-banner .b-meta { color: rgba(235, 235, 245, .72); }
}

/* ========== BUTTONS ========== */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px; border-radius: 999px; border: none;
    font-family: inherit; font-weight: 600; font-size: 16px;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s ease, box-shadow .25s ease, transform .15s ease;
}
.btn .ic { font-size: 20px; transition: transform .25s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.96); }
.btn-primary {
    background: var(--primary); color: var(--on-primary);
    box-shadow: 0 1px 2px rgba(20,18,15,.14), 0 12px 26px -10px rgba(53,86,99,.65);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }

/* ========== SECTIONS (shared) ========== */
.sec { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.sec h2 { font-size: clamp(34px, 4.1vw, 58px); line-height: 1.04; letter-spacing: -0.034em; font-weight: 600; }
.sec-head { max-width: 44rem; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-lead { margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 38em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-weight: 600; color: var(--primary); text-decoration: none; }
.text-link .ic { font-size: 20px; transition: transform .25s var(--ease-out); }
.text-link:hover .ic { transform: translateX(3px); }

/* Scroll reveal: hidden only when JS runs, so every page reads without it */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }

/* ========== FOOTER ========== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 48px 0 28px; font-size: 15px; color: var(--ink-soft); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.footer-brand p { margin-top: 10px; max-width: 30rem; line-height: 1.55; }
.footer-brand .logo { min-height: 44px; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.footer-social span { width: 100%; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); transition: background-color .2s ease, color .2s ease; }
.footer-social a:hover { background: var(--ink); color: var(--bg); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 4px; margin: -10px -12px 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.footer-links a:hover { color: var(--ink); background: var(--surface); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

/* ========== PAGE HEAD (articles, hub, help, legal) ========== */
.page { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { opacity: .6; }
.page-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.034em; font-weight: 600; max-width: 22ch; }
.page-lead { margin-top: 20px; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 38em; }
.page-lead strong { color: var(--ink); font-weight: 600; }
.page-meta { margin-top: 16px; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ========== ARTICLE ========== */
.art-head { max-width: 46rem; }
.art-layout { display: grid; gap: 32px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 1100px) {
    .art-layout { grid-template-columns: minmax(0, 44rem) minmax(0, 17rem); column-gap: 72px; align-items: start; }
    .art-layout .toc { grid-column: 2; grid-row: 1; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
    .art-layout .article-body { grid-column: 1; grid-row: 1; }
}
.toc { padding: 20px 22px; border-radius: 18px; background: var(--surface); font-size: 15px; }
.toc-title { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; color: var(--ink-soft); }
.toc li::marker { font-variant-numeric: tabular-nums; }
.toc a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; line-height: 1.4; }
@media (max-width: 1099px) { .toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; } }
.toc a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1100px) { .toc { background: transparent; padding: 4px 0 4px 20px; border-radius: 0; font-size: 14px; } }

.article-body { font-size: 18px; line-height: 1.72; color: var(--ink); max-width: 44rem; min-width: 0; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.024em; margin: 2.4em 0 .6em; scroll-margin-top: 96px; }
.article-body h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.012em; margin: 1.8em 0 .5em; scroll-margin-top: 96px; }
.article-body h4 { font-size: 18px; margin: 1.4em 0 .4em; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.05em; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li { margin: .3em 0; }
.article-body li::marker { color: var(--ink-soft); }
.article-body strong, .article-body b { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { text-decoration-thickness: 2px; }
/* przyciski w treści artykułu nie dziedziczą wyglądu zwykłego linku */
.article-body a.btn { text-decoration: none; font-weight: 600; }
.article-body a.btn-primary { color: var(--on-primary); }
.article-body .note { font-size: 14px; color: var(--ink-soft); font-style: italic; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article-body blockquote { margin: 1.6em 0; padding: 16px 20px; border-radius: 14px; background: var(--surface); color: var(--ink); }

.table-scroll { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 2px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-body .table-scroll table { margin: 0; }
/* only tables with four or more columns need sideways scrolling on a phone */
.article-body .table-scroll table:has(tr > :nth-child(4)) { min-width: 34rem; }
.article-body th, .article-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-body thead th { background: var(--surface); font-weight: 600; color: var(--ink); white-space: nowrap; }
.article-body tbody tr:last-child td, .article-body tbody tr:last-child th { border-bottom: 0; }
.article-body td { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }

.callout { margin: 1.6em 0; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, var(--bg)); }
.callout p { margin: 0; color: var(--ink) !important; }
.budget-example { margin: 1.4em 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); }
.budget-example h4 { margin: 0 0 4px; font-size: 17px; }
.budget-example .who { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.budget-example .table-scroll { margin: 0; background: var(--bg); }

.article-body details { margin: 0; border-top: 1px solid var(--line); }
.article-body details:last-of-type { border-bottom: 1px solid var(--line); }
.article-body details + :not(details) { margin-top: 2em; }
.article-body details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; color: var(--ink); line-height: 1.4; }
.article-body details summary::-webkit-details-marker { display: none; }
.article-body details summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.article-body details[open] summary::after { transform: rotate(225deg) translate(-3px, 0); }
.article-body details > :not(summary) { margin: 0 0 16px; }

figure { margin: 2em 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 16px; outline: 1px solid oklch(0 0 0 / .08); outline-offset: -1px; }
figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.figure-hero { margin: 8px 0 0; }
.figure-hero img { border-radius: 22px; }
.figure-side-right { float: none; }
@media (min-width: 900px) { .figure-side-right { float: right; width: 42%; margin: .3em 0 1.2em 1.8em; } }
.figure-inline-mid { max-width: 34rem; margin-inline: auto; }
.figure-banner { margin: 2.5em 0; }
@media (prefers-color-scheme: dark) { figure img { outline-color: oklch(1 0 0 / .08); } }

.author-bio { display: flex; gap: 18px; align-items: flex-start; margin: 3em 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.author-mark { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--petrol); color: #fff; font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.author-bio .meta { margin: 0 0 2px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.author-bio h3 { margin: 0 0 6px; font-size: 18px; }
.author-bio p { margin: 0; font-size: 16px; line-height: 1.6; }
.article-body .author-bio + * { clear: both; }

/* closing call to action with a real screen */
.art-cta { margin-top: clamp(56px, 8vw, 96px); border-radius: 28px; background: var(--surface); overflow: hidden; display: grid; }
.art-cta-copy { padding: clamp(28px, 5vw, 56px); align-self: center; }
.art-cta h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -0.026em; }
.art-cta p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 32em; }
.art-cta .btn { margin-top: 26px; }
.art-cta-visual { display: flex; justify-content: center; align-items: flex-start; height: 330px; overflow: hidden; padding-top: 36px; }
.art-cta-visual .phone { --w: 250px; }
@media (min-width: 860px) {
    .art-cta { grid-template-columns: minmax(0, 1fr) 340px; }
    .art-cta-visual { height: auto; max-height: 440px; padding-top: 48px; }
    .art-cta-visual .phone { --w: 270px; }
}
.related { margin-top: 2.6em; }

/* ========== HUB ========== */
.hub-list { margin-top: clamp(40px, 5vw, 64px); display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .hub-list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.hub-item { display: grid; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.hub-item .tag { font-size: 13px; font-weight: 500; color: var(--primary); }
.hub-item h2, .hub-item h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; transition: color .2s ease; }
.hub-item p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.hub-item .more { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.hub-item:hover h2, .hub-item:hover h3 { color: var(--primary); }
.hub-item:hover .more .ic { transform: translateX(3px); }
.hub-item .more .ic { transition: transform .25s var(--ease-out); }
.hub-feature { display: grid; gap: 10px; padding: clamp(26px, 4vw, 44px); border-radius: 24px; background: var(--surface); text-decoration: none; color: inherit; margin-top: clamp(32px, 4vw, 48px); }
.hub-feature .tag { font-size: 14px; font-weight: 500; color: var(--primary); }
.hub-feature h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.026em; max-width: 24ch; }
.hub-feature p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 40em; }
.hub-feature .more { font-weight: 600; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.hub-feature:hover h2 { color: var(--primary); }

/* ========== HELP ========== */
.help-layout { display: grid; gap: 40px; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 1000px) { .help-layout { grid-template-columns: minmax(0, 20rem) minmax(0, 44rem); column-gap: 80px; align-items: start; } .help-contact { position: sticky; top: 100px; } }
.help-contact { padding: 26px; border-radius: 22px; background: var(--surface); }
.help-contact h2 { font-size: 22px; letter-spacing: -0.016em; }
.help-mail { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; font-weight: 600; font-size: 17px; color: var(--primary); text-decoration: none; word-break: break-all; }
.help-mail .ic { font-size: 22px; flex-shrink: 0; }
.help-contact p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.help-contact .help-small { font-size: 14px; }
.help-contact a:not(.help-mail) { color: var(--primary); text-underline-offset: 3px; }
.help-faq h2 { margin: 1.6em 0 .3em; font-size: 22px; }
.help-faq h2:first-child { margin-top: 0; }
.help-faq details:last-of-type { border-bottom: 1px solid var(--line); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ========== LEGAL ========== */
.prose { max-width: 46rem; margin-top: clamp(28px, 4vw, 44px); font-size: 17px; line-height: 1.7; }
.prose section + section { margin-top: 2.2em; }
.prose h2 { font-size: clamp(21px, 2vw, 25px); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -0.016em; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 1.4em 0 .5em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 .9em; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose ul { padding-left: 1.35em; list-style: disc; }
.prose ol { padding-left: 1.35em; }
.prose li { margin: .3em 0; }
.prose li > ul, .prose li > ol { margin: .4em 0 0; }
.prose a { color: var(--primary); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .block { display: block; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .callout { margin: 0 0 2em; }
