/* ── Zmienne ──────────────────────────────────────────── */
:root {
    --lp-hero-bg:      #eceeff;
    --lp-white:        #ffffff;
    --lp-text:         #151826;
    --lp-muted:        #667085;
    --lp-line:         rgba(18, 24, 40, 0.08);
    --lp-primary:      #5b5cf0;
    --lp-primary-dark: #4748d8;
    --lp-shadow:       0 20px 60px rgba(91, 92, 240, 0.13);
    --lp-container:    1200px;
    --lp-radius:       18px;

    /* backwards compat */
    --landing-primary: #5b5cf0;
}

/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--lp-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--lp-white);
}

a { color: inherit; text-decoration: none; }

/* ── Dostępność ───────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.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: -9999px; top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
    z-index: 9999;
}
.skip-link:focus {
    position: fixed;
    top: 0; left: 0;
    width: auto; height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--lp-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* ── Layout shell ─────────────────────────────────────── */
.landing-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-container {
    width: min(var(--lp-container), calc(100% - 32px));
    margin: 0 auto;
}

.landing-main { flex: 1 1 auto; }

/* ── Header ───────────────────────────────────────────── */
.landing-header {
    padding: 14px 0;
    background: rgba(236, 238, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 92, 240, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.h-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.h-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--lp-text);
}

.h-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* Badge "Budowany w Polsce" */
.h-pl-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1.5px solid rgba(91, 92, 240, 0.2);
    border-radius: 999px;
    background: var(--lp-white);
}

.h-pl-badge__flag { font-size: 1.3rem; line-height: 1; }

.h-pl-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.h-pl-badge__text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--lp-primary);
}

.h-pl-badge__text span {
    font-size: 0.75rem;
    color: var(--lp-muted);
}

/* ── Hero section ─────────────────────────────────────── */
.hero-section {
    background: linear-gradient(150deg, #eceeff 0%, #e6e8ff 50%, #dfe1ff 100%);
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 52px;
    align-items: center;
  }

/* Hero badge pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1.5px solid rgba(91, 92, 240, 0.25);
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 24px;
}

/* H1 */
.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--lp-text);
}

.hero-highlight { color: var(--lp-primary); }

/* Subtitle */
.hero-sublead {
    font-size: 1.15rem;
    color: var(--lp-text);
    margin: 0 0 32px;
    line-height: 1.5;
}

.hero-sublead strong { color: var(--lp-primary); }

/* Feature pills */
.hero-pills {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-pill {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-pill__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-pill__icon svg { width: 18px; height: 18px; }

.hero-pill__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hero-pill__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lp-text);
}

.hero-pill__text span {
    font-size: 0.82rem;
    color: var(--lp-muted);
}

/* ── Newsletter card ──────────────────────────────────── */
.newsletter-card {
    background: var(--lp-white);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--lp-shadow);
}

.newsletter-card h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 10px;
    text-align: center;
    color: var(--lp-text);
}

.newsletter-card__lead {
    font-size: 0.92rem;
    color: var(--lp-muted);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    height: 52px;
    border: 1.5px solid #d8d9f7;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 1rem;
    color: var(--lp-text);
    background: #fafaff;
    transition: border-color .2s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--lp-primary);
    outline: none;
    background: var(--lp-white);
}

.newsletter-form input[type="email"]::placeholder { color: #aab; }

.newsletter-form button[type="submit"] {
    width: 100%;
    height: 56px;
    background: var(--lp-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, transform .15s;
}

.newsletter-form button[type="submit"]:hover {
    background: var(--lp-primary-dark);
    transform: translateY(-1px);
}

/* Consent checkbox */
.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--lp-primary);
    width: 15px;
    height: 15px;
}

.newsletter-consent span {
    font-size: 0.78rem;
    color: var(--lp-muted);
    line-height: 1.5;
}

.newsletter-consent a {
    color: var(--lp-primary);
    text-decoration: underline;
}

/* Privacy note */
.newsletter-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--lp-muted);
    margin: 8px 0 0;
}

.newsletter-privacy svg { color: var(--lp-primary); flex-shrink: 0; }

/* Alert messages */
.newsletter-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.newsletter-alert--success { background: #edfbf1; color: #1a7a40; }
.newsletter-alert--error   { background: #fff0f0; color: #b91c1c; }

/* ── Wave SVG ─────────────────────────────────────────── */
.hero-wave {
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.hero-wave svg { display: block; width: 100%; height: 160px; }

/* ── Features section ─────────────────────────────────── */
.features-section {
    background: #f8f9ff;
    padding: 64px 0 72px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.feature-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--lp-text);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--lp-muted);
    line-height: 1.6;
    margin: 0;
}

.foot-ikon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(91, 92, 240, 0.10);
    border: 1px solid rgba(91, 92, 240, 0.10);
    box-shadow: 0 8px 24px rgba(91, 92, 240, 0.10);
}

.foot-ikon picture img {
    height: 28px;
    width: auto;
    display: block;
}

/* ── Footer ───────────────────────────────────────────── */
.landing-footer {
    padding: 24px 0;
    border-top: 1px solid var(--lp-line);
    background: var(--lp-white);
}

.landing-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.landing-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    color: var(--lp-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-footer__tagline span[aria-hidden] { color: #e05; }

.landing-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.landing-footer__links a {
    font-size: 0.85rem;
    color: var(--lp-muted);
    transition: color .2s;
}

.landing-footer__links a:hover { color: var(--lp-primary); }

.btn-coffee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid #f5a623;
    background: #fff8ee;
    color: #b06000;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

.btn-coffee:hover {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 60px;
    }

    .hero-copy h1 { font-size: 2.6rem; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }

    .h-pl-badge { display: none; }
}

@media (max-width: 600px) {
    .hero-section { padding-top: 40px; }
    .hero-copy h1 { font-size: 2.1rem; }
    .newsletter-card { padding: 28px 20px; }
    .features-grid { grid-template-columns: 1fr; }

    .landing-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-copy h1 { font-size: 1.85rem; }
    .newsletter-card { padding: 18px 14px; }
}
