/* Lead Magnet Styles for Protokol Bezpiecznej Wody 2026 */

:root {
    --primary: #007FFF;
    --primary-light: #4DA6FF;
    --primary-dark: #005FCC;
    --cream: #FBF7F2;
    --cream-dark: #F5EDE3;
    --charcoal: #2C2625;
    --charcoal-light: rgba(44, 38, 37, 0.85);
    --charcoal-muted: rgba(44, 38, 37, 0.6);
    --white: #ffffff;
    --success: #22c55e;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Space Grotesk', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
}

.logo span {
    display: block;
    font-family: var(--font-main);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--primary);
}

.social-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 127, 255, 0.25);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.badge-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.badge-text {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    font-weight: 600;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: var(--charcoal-light);
    margin-bottom: 2.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 127, 255, 0.3);
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 127, 255, 0.35);
}

.btn-cta svg {
    width: 22px;
    height: 22px;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--charcoal-muted);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.social-proof-box {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.social-proof-label {
    font-size: 0.875rem;
    color: var(--charcoal-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.social-proof-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.social-proof-text {
    font-size: 0.95rem;
    color: var(--charcoal-light);
}

.preview-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--primary);
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--cream);
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.preview-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--success);
}

.preview-step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
}

.preview-step-text {
    font-size: 0.95rem;
    color: var(--charcoal);
    font-weight: 500;
}

.benefits-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.benefits-container {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--charcoal-light);
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-box {
    background: var(--cream);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.benefits-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 127, 255, 0.15);
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-icon {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 30px;
}

.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-bottom: 2rem;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    max-width: 550px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-medium);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--charcoal-muted);
    cursor: pointer;
}

.popup-form input[type="text"],
.popup-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.popup-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-light);
}

/* Thank you & dashboard shared styles */
.thankyou-hero,
.dashboard-hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.thankyou-icon {
    margin-bottom: 2rem;
}

.thankyou-icon svg {
    width: 72px;
    height: 72px;
    color: var(--success);
}

.thankyou-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.thankyou-title span {
    color: var(--primary);
}

.thankyou-instructions {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 127, 255, 0.15);
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    box-shadow: 0 12px 25px rgba(0, 127, 255, 0.2);
    flex-shrink: 0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
}

.step-description {
    color: var(--charcoal-light);
    margin-bottom: 1.5rem;
    padding-left: 64px;
}

.step-content {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-left: 64px;
    position: relative;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary);
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

@media (max-width: 900px) {
    .hero {
        padding: 2.5rem 1rem;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .preview-card {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .btn-cta,
    .btn-dashboard {
        width: 100%;
        justify-content: center;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .popup-container {
        padding: 2rem 1.5rem;
    }

    .benefits-box {
        padding: 2rem 1.5rem;
    }

    .steps-container {
        padding: 2rem 1rem;
    }

    .step-description,
    .step-content {
        margin-left: 0;
        padding-left: 0;
    }
}
