/* ═══════════════════════════════════════════════════════════════════════════
   Profilio Landingi — Base Stylesheet
   Tokens, reset, shared buttons, shared header, shared footer, shared modal.
   Mirrors Tailwind classes from the JSX source (pixel-perfect).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand colors (odwzorowane 1:1 z JSX) */
    --pfl-green:          #00A859;
    --pfl-green-hover:    #008A4B;
    --pfl-green-dark:     #00964F;
    --pfl-green-50:       #EAF8F0;
    --pfl-green-100:      #A7DFC0;

    --pfl-blue:           #2563EB;
    --pfl-blue-50:        #EFF6FF;
    --pfl-blue-100:       #bfdbfe;

    --pfl-orange:         #D97706;
    --pfl-orange-50:      #FFF3E8;
    --pfl-orange-100:     #F3C38E;

    --pfl-navy-900:       #071734;
    --pfl-navy-800:       #10213E;

    --pfl-text:           #5E6B82;
    --pfl-text-light:     #828F9F;
    --pfl-icon:           #A0ABB8;

    --pfl-bg:             #F7F8F7;
    --pfl-bg-alt:         #F4F6F7;
    --pfl-bg-dark:        #111827;
    --pfl-bg-darker:      #0A0F1C;
    --pfl-slate-900:      #0f172a;
    --pfl-slate-800:      #1e293b;
    --pfl-slate-700:      #334155;
    --pfl-slate-500:      #64748b;
    --pfl-slate-300:      #cbd5e1;

    --pfl-white:          #ffffff;
    --pfl-border:         #E2E8F0;
    --pfl-red-500:        #ef4444;
    --pfl-red-600:        #dc2626;

    --pfl-footer-text:    #B7C2D6;

    /* Typography */
    --pfl-font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --pfl-container:      1440px;
    --pfl-container-narrow: 800px;

    /* Shadows (odwzorowane z Tailwind shadow-sm/lg i custom z JSX) */
    --pfl-shadow-sm:      0 1px 2px rgba(0,0,0,.05);
    --pfl-shadow:         0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --pfl-shadow-md:      0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --pfl-shadow-lg:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --pfl-shadow-xl:      0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --pfl-shadow-2xl:     0 25px 50px -12px rgba(0,0,0,.25);

    --pfl-shadow-preview: 0 24px 48px rgba(7,23,52,0.12);
    --pfl-shadow-header:  0 1px 2px rgba(0,0,0,.05);
    --pfl-shadow-float:   0 12px 24px rgba(7,23,52,0.15);
    --pfl-shadow-green:   0 4px 16px rgba(0,168,89,0.2);
    --pfl-shadow-green-top: 0 -8px 16px rgba(0,168,89,0.2);

    /* Radii */
    --pfl-r-4:            4px;
    --pfl-r-8:            8px;
    --pfl-r-12:           12px;
    --pfl-r-16:           16px;
    --pfl-r-24:           24px;
    --pfl-r-full:         9999px;

    /* Transitions */
    --pfl-t:              .2s ease;
    --pfl-t-slow:         .3s ease;
    --pfl-t-1000:         1s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.pfl-landing-body {
    font-family: var(--pfl-font);
    background-color: var(--pfl-bg);
    color: var(--pfl-text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Shortcode containment ──────────────────────────────────────────────────
   Kiedy shortcode jest osadzony wewnątrz aktywnego motywu WP, jego reguły
   (np. font-size dla h1/h2, line-height, letter-spacing, globalne `a`) potrafią
   nadpisać nasz design. Wnętrze .pfl-kalk i .pfl-landing-container musi być
   izolowane — wymuszamy własne wartości tam, gdzie motywy najczęściej szaleją.
   ═══════════════════════════════════════════════════════════════════════════ */
.pfl-kalk,
.pfl-kalk * {
    box-sizing: border-box;
}

.pfl-kalk {
    font-family: var(--pfl-font);
    color: var(--pfl-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pfl-kalk h1,
.pfl-kalk h2,
.pfl-kalk h3,
.pfl-kalk h4,
.pfl-kalk h5,
.pfl-kalk h6,
.pfl-kalk p,
.pfl-kalk ul,
.pfl-kalk ol,
.pfl-kalk li,
.pfl-kalk table,
.pfl-kalk th,
.pfl-kalk td,
.pfl-kalk label,
.pfl-kalk input,
.pfl-kalk select,
.pfl-kalk textarea,
.pfl-kalk button,
.pfl-kalk a {
    font-family: inherit;
    letter-spacing: normal;
}

.pfl-kalk h1,
.pfl-kalk h2,
.pfl-kalk h3,
.pfl-kalk h4,
.pfl-kalk h5,
.pfl-kalk h6 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: var(--pfl-navy-800) !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    font-family: var(--pfl-font) !important;
    text-align: inherit !important;
    text-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
}

.pfl-kalk p {
    margin: 0;
}

.pfl-kalk ul,
.pfl-kalk ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pfl-kalk a {
    color: inherit;
    text-decoration: none;
}

.pfl-kalk img {
    max-width: 100%;
    height: auto;
    display: block;
}

.pfl-kalk button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
}

.pfl-kalk input,
.pfl-kalk select,
.pfl-kalk textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: #fff;
}

body.pfl-landing-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.pfl-landing-body button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

body.pfl-landing-body input,
body.pfl-landing-body select,
body.pfl-landing-body textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

body.pfl-landing-body a {
    color: inherit;
    text-decoration: none;
}

body.pfl-landing-body ul {
    list-style: none;
}

.pfl-main {
    display: block;
}

/* Shared animation (replaces Tailwind animate-[slideIn_…]) */
@keyframes pfl-slide-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pfl-slide-in { animation: pfl-slide-in 0.2s ease-out; }

/* ── Icon reset ──────────────────────────────────────────────────────────── */
.pfl-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS (shared variants)
   ═══════════════════════════════════════════════════════════════════════════ */
.pfl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: var(--pfl-r-full);
    transition: background-color var(--pfl-t), color var(--pfl-t), border-color var(--pfl-t), box-shadow var(--pfl-t), transform var(--pfl-t);
    white-space: nowrap;
    text-align: center;
}
.pfl-btn--lg { height: 48px; padding: 0 32px; font-size: 14px; }
.pfl-btn--md { height: 40px; padding: 0 16px; font-size: 13px; }

.pfl-btn--primary { background: var(--pfl-green); color: #fff; }
.pfl-btn--primary:hover { background: var(--pfl-green-hover); }

.pfl-btn--outline-light {
    border: 1px solid var(--pfl-text);
    color: #fff;
    background: transparent;
}
.pfl-btn--outline-light:hover { background: rgba(255,255,255,0.05); }

.pfl-btn--dark {
    background: var(--pfl-navy-800);
    color: #fff;
    box-shadow: var(--pfl-shadow-lg);
}
.pfl-btn--dark:hover {
    background: var(--pfl-navy-900);
    box-shadow: var(--pfl-shadow-xl);
    transform: translateY(-2px);
}

.pfl-btn--icon { gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.pfl-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--pfl-white);
    border-bottom: 1px solid var(--pfl-border);
    box-shadow: var(--pfl-shadow-header);
}

.pfl-header__inner {
    max-width: var(--pfl-container);
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pfl-header__left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pfl-header__logo { height: 28px; }
.pfl-header__logo-link { display: inline-block; }

.pfl-header__app-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--pfl-r-full);
    border: 1px solid var(--pfl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pfl-green);
    cursor: pointer;
    transition: background-color var(--pfl-t);
}
.pfl-header__app-icon:hover { background: var(--pfl-green-50); }

.pfl-header__nav {
    display: none;
    align-items: center;
    gap: 32px;
    color: var(--pfl-navy-800);
    font-weight: 500;
    font-size: 15px;
}
@media (min-width: 1024px) { .pfl-header__nav { display: flex; } }

.pfl-header__nav-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color var(--pfl-t);
}
.pfl-header__nav-item:hover { color: var(--pfl-green); }
.pfl-header__nav-chev { color: var(--pfl-text); opacity: .5; }

.pfl-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pfl-header__lang {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--pfl-border);
    border-radius: var(--pfl-r-full);
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color var(--pfl-t);
}
.pfl-header__lang:hover { background: #f9fafb; }
.pfl-header__flag-pl {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dc2626;
    overflow: hidden;
    position: relative;
}
.pfl-header__flag-pl-white {
    position: absolute;
    inset: 0;
    background: #fff;
    width: 100%;
    height: 50%;
}
.pfl-header__lang-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pfl-navy-800);
}

.pfl-header__notif {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--pfl-r-full);
    border: 1px solid var(--pfl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pfl-navy-800);
    transition: background-color var(--pfl-t);
}
.pfl-header__notif:hover { background: #f9fafb; }

.pfl-header__notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--pfl-red-500);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: var(--pfl-r-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfl-header__profile {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--pfl-border);
    border-radius: var(--pfl-r-full);
    padding: 4px 8px 4px 4px;
    cursor: pointer;
    transition: background-color var(--pfl-t);
    color: var(--pfl-text);
}
.pfl-header__profile:hover { background: #f9fafb; }
.pfl-header__profile-img {
    width: 32px;
    height: 32px;
    border-radius: var(--pfl-r-full);
    object-fit: cover;
}

.pfl-header__logout {
    width: 40px;
    height: 40px;
    border-radius: var(--pfl-r-full);
    border: 1px solid var(--pfl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--pfl-green);
    transition: background-color var(--pfl-t);
}
.pfl-header__logout:hover { background: #f9fafb; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.pfl-footer {
    background: var(--pfl-navy-900);
    color: var(--pfl-footer-text);
    padding: 64px 16px 32px;
    position: relative;
}

.pfl-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pfl-footer__top {
    text-align: center;
    margin-bottom: 64px;
}

.pfl-footer__top-heading {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.pfl-footer__top-text { margin-bottom: 32px; }

.pfl-footer__top-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
@media (min-width: 640px) {
    .pfl-footer__top-ctas { flex-direction: row; }
}

.pfl-footer__divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.10);
    margin-bottom: 64px;
}
.pfl-footer__divider--thin { margin-bottom: 24px; }

.pfl-footer__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
@media (min-width: 768px) {
    .pfl-footer__cols { grid-template-columns: repeat(4, 1fr); }
}

.pfl-footer__col-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pfl-footer__list { font-size: 14px; }
.pfl-footer__list li { margin-bottom: 16px; }
.pfl-footer__list a { transition: color var(--pfl-t); }
.pfl-footer__list a:hover { color: #fff; }

.pfl-footer__logo {
    height: 32px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.pfl-footer__tagline {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.pfl-footer__desc { font-size: 14px; line-height: 1.6; }

.pfl-footer__socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.pfl-footer__social {
    width: 48px;
    height: 48px;
    border-radius: var(--pfl-r-full);
    background: #fff;
    color: var(--pfl-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--pfl-t);
}
.pfl-footer__social:hover { background: #e5e7eb; }

.pfl-footer__bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 8px;
    text-align: center;
}
@media (min-width: 768px) {
    .pfl-footer__bottom { flex-direction: row; text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING CHAT BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */
.pfl-float-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--pfl-green);
    color: #fff;
    border-radius: var(--pfl-r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--pfl-shadow-float);
    transition: background-color var(--pfl-t);
    z-index: 50;
}
.pfl-float-chat:hover { background: var(--pfl-green-hover); }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL BASE (shared container + backdrop)
   ═══════════════════════════════════════════════════════════════════════════ */
.pfl-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
}
.pfl-modal[hidden] { display: none; }

.pfl-modal--docs { z-index: 110; }

.pfl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity var(--pfl-t);
}
.pfl-modal--docs .pfl-modal__backdrop { background: rgba(0, 0, 0, 0.6); }

.pfl-modal__inner {
    position: relative;
    background: #fff;
    border-radius: var(--pfl-r-16);
    box-shadow: var(--pfl-shadow-2xl);
    animation: pfl-slide-in 0.2s ease-out;
}

.pfl-modal__close {
    width: 40px;
    height: 40px;
    border-radius: var(--pfl-r-full);
    background: var(--pfl-bg-alt);
    color: var(--pfl-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--pfl-t), color var(--pfl-t);
}
.pfl-modal__close:hover { background: var(--pfl-border); color: var(--pfl-navy-800); }
