/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #0f172a;
    color: #1f2937;
    scroll-behavior: smooth;
}

/* ===== BLAZOR LOADING ===== */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.loading-progress {
    position: absolute; display: block;
    width: 8rem; height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}
.loading-progress circle {
    fill: none; stroke: #334155; stroke-width: .6rem;
    transform-origin: 50% 50%; transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #3b82f6;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%;
    transition: stroke-dasharray .05s ease-in-out;
}
.loading-progress-text {
    position: absolute; text-align: center; font-weight: bold; color: #94a3b8;
    inset: calc(20vh + 3.25rem) 0 auto .2rem;
}
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }

/* ===== NAVBAR ===== */
.lp-navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: .9rem 0;
}
.lp-brand-text {
    font-weight: 700; font-size: 1.05rem; color: #f1f5f9;
    letter-spacing: -.01em;
}
.lp-btn-nav {
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(59, 130, 246, .4);
    color: #93c5fd;
    font-size: .85rem; font-weight: 600;
    padding: .4rem 1rem; border-radius: 8px;
    transition: background .2s, color .2s;
}
.lp-btn-nav:hover { background: rgba(59,130,246,.3); color: #fff; }

/* App icon – extra small (navbar) */
.lp-icon-xs {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 8px;
}
.lp-icon-check-xs { font-size: .7rem; color: #4ade80; line-height: 1; }
.lp-icon-label-xs { font-size: .55rem; font-weight: 900; color: #fff; letter-spacing: .5px; }

/* ===== HERO ===== */
.lp-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #312e81 100%);
    padding: 90px 0 80px;
}
.lp-hero-bg-glow {
    pointer-events: none; position: absolute;
    top: -20%; left: 30%; width: 60%; height: 80%;
    background: radial-gradient(ellipse, rgba(99,102,241,.18) 0%, transparent 65%);
}
.lp-hero-inner { position: relative; }

/* App icon – hero */
.lp-icon-hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100px; height: 100px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(59,130,246,.45);
}
.lp-icon-check-hero { font-size: 1.6rem; color: #4ade80; line-height: 1; }
.lp-icon-label-hero { font-size: .95rem; font-weight: 900; color: #fff; letter-spacing: 1.5px; }

/* Tags row */
.lp-badge-row { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.lp-tag {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: #cbd5e1; font-size: .75rem; font-weight: 600;
    padding: .2rem .7rem; border-radius: 20px;
    backdrop-filter: blur(6px);
}

.lp-hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900; color: #f8fafc;
    letter-spacing: -.03em; line-height: 1.15;
    margin: .6rem 0 1rem;
}
.lp-hero-sub {
    font-size: 1.15rem; color: #94a3b8;
    line-height: 1.75; margin-bottom: 2rem;
}
.lp-hero-sub strong { color: #e2e8f0; }

/* Price strip */
.lp-price-strip {
    display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px; padding: .6rem 1.6rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}
.lp-price-was { color: #64748b; text-decoration: line-through; font-size: .95rem; }
.lp-price-now { color: #fbbf24; font-weight: 800; font-size: 1.5rem; }
.lp-discount-badge {
    background: #ef4444; color: #fff;
    font-weight: 700; font-size: .8rem;
    padding: .15rem .65rem; border-radius: 20px;
}
.lp-price-note { color: #64748b; font-size: .8rem; }

/* Store button */
.lp-store-btn {
    display: inline-flex; align-items: center; gap: 14px;
    background: #1f2937; color: #f8fafc;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px; padding: .75rem 1.8rem;
    text-decoration: none; font-family: inherit;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.lp-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,.45);
    background: #111827; color: #fff;
}
.lp-store-btn-lg { padding: 1rem 2.4rem; border-radius: 16px; }
.lp-store-btn-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.lp-store-btn-small { font-size: .72rem; color: #94a3b8; }
.lp-store-btn-big { font-size: 1.1rem; font-weight: 700; }
.lp-store-btn-lg .lp-store-btn-big { font-size: 1.25rem; }
.lp-win-logo { flex-shrink: 0; }
.lp-hero-note { color: #475569; font-size: .8rem; margin-top: 1.2rem; }

/* ===== FEATURES ===== */
.lp-features { background: #fff; padding: 80px 0; }
.lp-section-label {
    text-align: center; text-transform: uppercase;
    font-size: .75rem; font-weight: 700; letter-spacing: .12em;
    color: #3b82f6; margin-bottom: .5rem;
}
.lp-section-title {
    text-align: center; font-size: clamp(1.6rem,3vw,2.2rem);
    font-weight: 800; color: #0f172a; letter-spacing: -.02em; margin-bottom: .75rem;
}
.lp-section-sub { text-align: center; color: #64748b; font-size: 1.05rem; margin-bottom: 0; }

.lp-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px; padding: 32px 28px;
    transition: transform .2s, box-shadow .2s;
}
.lp-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.09); }
.lp-card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.lp-card-title { font-weight: 700; color: #1e3a8a; font-size: 1.05rem; margin-bottom: 10px; }
.lp-card-body { color: #64748b; line-height: 1.75; margin: 0; font-size: .95rem; }

/* ===== PRO ===== */
.lp-pro { background: #f1f5f9; padding: 80px 0; }
.lp-pro-label {
    display: inline-block;
    background: #fef3c7; color: #92400e;
    font-weight: 700; font-size: .8rem;
    padding: .3rem .9rem; border-radius: 20px;
    margin-bottom: 1rem;
}
.lp-pro-title { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: #0f172a; letter-spacing: -.02em; margin-bottom: 1rem; }
.lp-pro-desc { color: #64748b; line-height: 1.75; }
.lp-btn-pro {
    display: inline-block; margin-top: 1.2rem;
    background: #f59e0b; color: #1c1917;
    font-weight: 700; font-size: .95rem;
    padding: .7rem 1.8rem; border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.lp-btn-pro:hover { background: #d97706; transform: translateY(-2px); color: #1c1917; }

.lp-pro-item {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 18px 16px;
}
.lp-pro-item p { margin: 4px 0 0; color: #64748b; font-size: .85rem; line-height: 1.6; }
.lp-pro-item strong { font-size: .9rem; color: #0f172a; }
.lp-pro-star { color: #f59e0b; font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.lp-pro-item-highlight {
    border-color: #fde68a;
    background: linear-gradient(to right, #fffbeb, #fff);
}
.lp-pro-item-highlight strong { color: #92400e; }

/* ===== TRUST ===== */
.lp-trust { background: #fff; padding: 72px 0; }
.lp-trust-item { padding: 10px; }
.lp-trust-icon { font-size: 2.4rem; margin-bottom: 12px; }
.lp-trust-item h5 { font-weight: 700; color: #1e3a8a; margin-bottom: 8px; }
.lp-trust-item p { color: #64748b; font-size: .9rem; line-height: 1.7; margin: 0; }

/* ===== CTA ===== */
.lp-cta {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 50%, #7c3aed 100%);
    padding: 90px 0;
}
.lp-cta-glow {
    pointer-events: none; position: absolute;
    top: -30%; right: -10%; width: 70%; height: 160%;
    background: radial-gradient(ellipse, rgba(167,139,250,.2) 0%, transparent 65%);
}
.lp-cta-inner { position: relative; }
.lp-cta-title { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; color: #f8fafc; letter-spacing: -.02em; margin-bottom: 1rem; }
.lp-cta-sub { color: #bfdbfe; font-size: 1.1rem; line-height: 1.75; margin-bottom: 2rem; }
.lp-cta-sub strong { color: #fde68a; }
.lp-cta-note { color: rgba(255,255,255,.4); font-size: .82rem; margin-top: 1rem; }

/* ===== FOOTER ===== */
.lp-footer {
    background: #080e1a;
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.4rem 0;
}
.lp-footer-copy { color: #475569; font-size: .82rem; }
.lp-footer-link { color: #475569; font-size: .82rem; text-decoration: none; transition: color .2s; }
.lp-footer-link:hover { color: #94a3b8; }

/* ===== AUDIENCE ===== */
.lp-audience { background: #f8fafc; padding: 80px 0; }

/* ===== KSEF INVOICES ===== */
.lp-ksef {
    position: relative;
    background: linear-gradient(160deg, #1a1038 0%, #2e1065 45%, #4c1d95 100%);
    padding: 88px 0 80px;
    overflow: hidden;
}
.lp-ksef::before {
    content: '';
    pointer-events: none; position: absolute;
    top: -15%; right: -5%; width: 55%; height: 70%;
    background: radial-gradient(ellipse, rgba(167,139,250,.12) 0%, transparent 65%);
}
.lp-ksef .lp-section-label { color: #c4b5fd; }
.lp-ksef-title { color: #f5f3ff !important; }
.lp-ksef-sub { color: #a78bfa !important; }

.lp-ksef-new-badge {
    text-align: center;
    margin-bottom: .75rem;
}
.lp-ksef-new-badge::after {
    content: 'NOWOŚĆ';
    display: inline-block;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    font-size: .7rem; font-weight: 800; letter-spacing: .15em;
    padding: .3rem 1rem; border-radius: 20px;
    box-shadow: 0 4px 16px rgba(124,58,237,.4);
}
/* hide text node so only pseudo content shows */
.lp-ksef-new-badge { font-size: 0; }

.lp-ksef-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(167,139,250,.2);
    border-radius: 18px; padding: 28px 24px;
    backdrop-filter: blur(6px);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-ksef-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(124,58,237,.25);
    border-color: rgba(167,139,250,.45);
}
.lp-ksef-card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.lp-ksef-card-icon { font-size: 1.8rem; }
.lp-ksef-card h5 {
    font-weight: 700; color: #e9d5ff;
    font-size: 1.05rem; margin: 0;
}
.lp-ksef-card p {
    color: #c4b5fd; font-size: .9rem; line-height: 1.7;
    margin: 0 0 10px;
}
.lp-ksef-list { list-style: none; padding: 0; margin: 0; }
.lp-ksef-list li {
    color: #c4b5fd; font-size: .85rem;
    padding: .25rem 0 .25rem 1.4rem;
    position: relative; line-height: 1.5;
}
.lp-ksef-list li::before {
    content: '✓'; position: absolute; left: 0;
    color: #a78bfa; font-weight: 700;
}
.lp-ksef-list li strong { color: #e9d5ff; }

/* KSeF flow steps */
.lp-ksef-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap;
}
.lp-ksef-flow-step {
    display: flex; align-items: center; gap: 8px;
    background: rgba(167,139,250,.12);
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 10px; padding: .5rem 1rem;
    color: #e9d5ff; font-size: .88rem; font-weight: 600;
}
.lp-ksef-flow-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: #7c3aed; color: #fff;
    font-size: .72rem; font-weight: 800;
    border-radius: 50%;
}
.lp-ksef-flow-arrow { color: #7c3aed; font-size: 1.2rem; font-weight: 700; }
.lp-ksef-flow-note {
    text-align: center; color: #8b5cf6;
    font-size: .8rem; margin-top: 1rem; line-height: 1.6;
}

@media (max-width: 767px) {
    .lp-ksef { padding: 56px 0; }
    .lp-ksef-flow { gap: 6px; }
    .lp-ksef-flow-step { font-size: .78rem; padding: .4rem .7rem; }
    .lp-ksef-flow-arrow { font-size: 1rem; }
}
.lp-audience-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 18px; padding: 32px 28px;
    transition: transform .2s, box-shadow .2s;
}
.lp-audience-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.09); }
.lp-audience-num {
    font-size: 2.8rem; font-weight: 900;
    color: #e2e8f0; line-height: 1; margin-bottom: 12px;
}
.lp-audience-card h5 { font-weight: 700; color: #1e3a8a; font-size: 1.05rem; margin-bottom: 10px; }
.lp-audience-card > p { color: #64748b; font-size: .92rem; line-height: 1.7; margin-bottom: 14px; }
.lp-audience-list { list-style: none; padding: 0; margin: 0; }
.lp-audience-list li {
    color: #475569; font-size: .85rem;
    padding: .3rem 0 .3rem 1.4rem;
    position: relative; line-height: 1.5;
}
.lp-audience-list li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }

/* ===== SCHEMAS ===== */
.lp-schemas { background: #fff; padding: 72px 0; }
.lp-schema-categories { display: flex; flex-direction: column; gap: 28px; }
.lp-schema-group-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #94a3b8; margin-bottom: 10px;
}
.lp-schema-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .83rem; font-weight: 600;
    padding: .38rem .9rem; border-radius: 9px;
    border: 1px solid transparent;
}
.lp-chip-cit  { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.lp-chip-vat  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.lp-chip-ksef { background: #fdf4ff; color: #7e22ce; border-color: #e9d5ff; }
.lp-chip-req  { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.lp-chip-badge {
    background: #f59e0b; color: #1c1917;
    font-size: .65rem; font-weight: 700;
    padding: 1px 6px; border-radius: 4px;
}
.lp-schemas-note {
    margin-top: 24px; color: #94a3b8; font-size: .8rem; line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .lp-hero { padding: 60px 0 56px; }
    .lp-features, .lp-audience, .lp-schemas, .lp-pro, .lp-trust, .lp-contact, .lp-cta { padding: 56px 0; }
    .lp-price-strip { padding: .5rem 1rem; gap: 8px; }
    .lp-contact-card { padding: 28px 20px; }
}
.lp-urgency {
    color: #fbbf24;
    font-size: .82rem; font-weight: 600;
    margin-top: .5rem; margin-bottom: 1.6rem;
}
.lp-urgency strong { color: #fde68a; }
.lp-urgency-banner {
    display: inline-block;
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5;
    font-size: .85rem; font-weight: 600;
    padding: .55rem 1.4rem;
    border-radius: 10px;
    margin-bottom: 1.8rem;
    max-width: 520px;
    line-height: 1.5;
}

/* ===== CONTACT ===== */
.lp-contact { background: #f1f5f9; padding: 80px 0; }
.lp-contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.lp-contact-title {
    font-size: clamp(1.4rem,3vw,1.9rem);
    font-weight: 800; color: #0f172a;
    letter-spacing: -.02em; margin-bottom: .9rem;
}
.lp-contact-desc { color: #64748b; line-height: 1.75; margin-bottom: 1.1rem; font-size: .97rem; }
.lp-contact-list { list-style: none; padding: 0; margin: 0; }
.lp-contact-list li {
    color: #475569; font-size: .91rem;
    padding: .35rem 0 .35rem 1.5rem;
    position: relative; line-height: 1.6;
}
.lp-contact-list li::before {
    content: '→'; position: absolute; left: 0;
    color: #3b82f6; font-weight: 700;
}
.lp-contact-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 100%);
    border-radius: 20px; padding: 40px 32px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(30,58,138,.28);
}
.lp-contact-icon { font-size: 2.4rem; margin-bottom: 10px; }
.lp-contact-label {
    color: #bfdbfe; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em;
    margin-bottom: 10px;
}
.lp-contact-email {
    display: block; color: #fbbf24;
    font-size: 1.15rem; font-weight: 700;
    text-decoration: none; word-break: break-all;
    transition: color .2s;
}
.lp-contact-email:hover { color: #fde68a; text-decoration: underline; }
.lp-contact-hint { color: #93c5fd; font-size: .78rem; margin-top: 10px; margin-bottom: 0; }

/* ===== NAV LINKS ===== */
.lp-nav-link {
    color: #94a3b8; font-size: .85rem; font-weight: 600;
    text-decoration: none; transition: color .2s;
}
.lp-nav-link:hover { color: #e2e8f0; }

/* ===== COMPARISON TABLE ===== */
.lp-compare-table {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.lp-compare-table thead th {
    background: #1e3a8a; color: #f8fafc;
    font-size: .82rem; font-weight: 700; letter-spacing: .04em;
    padding: .75rem 1rem; border: none;
    text-transform: uppercase;
}
.lp-compare-table tbody td {
    padding: .6rem 1rem; font-size: .88rem;
    color: #334155; border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.lp-compare-table tbody tr:nth-child(even) td { background: #f8fafc; }
.lp-compare-table tbody tr:hover td { background: #eff6ff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .lp-hero { padding: 60px 0 56px; }
    .lp-features, .lp-pro, .lp-trust, .lp-contact, .lp-cta { padding: 56px 0; }
    .lp-price-strip { padding: .5rem 1rem; gap: 8px; }
    .lp-contact-card { padding: 28px 20px; }
    .lp-compare-table { font-size: .8rem; }
    .lp-compare-table thead th { font-size: .72rem; padding: .5rem .6rem; }
    .lp-compare-table tbody td { padding: .4rem .6rem; font-size: .78rem; }
}
