/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #2d3748;
    line-height: 1.7;
}

/* ===== NAVIGATION ===== */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.nav-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.nav-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.logo-img {
    max-width: 80px;
    height: auto;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
    text-align: center;
    margin-bottom: 48px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    margin-bottom: 40px;
}

.article-content p {
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 24px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a202c;
    margin-top: 48px;
    margin-bottom: 24px;
}

.article-content ol,
.article-content ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

.article-content li {
    font-size: 1.125rem;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content strong {
    color: #1a202c;
    font-weight: 600;
}

.inline-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.inline-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ===== CTA BOXES ===== */
.cta-box {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 60px 0;
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 32px;
}

.convertkit-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Green download button styling for ConvertKit forms */
.cta-box .formkit-submit {
    background: #28a745 !important;
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 6px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.cta-box .formkit-submit:hover {
    background: #218838 !important;
}

/* ===== SECONDARY CTA BOX ===== */
.cta-box-secondary {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
}

.cta-box-secondary p {
    font-size: 1.125rem;
    color: #2d3748;
    margin: 0;
    line-height: 1.6;
}

/* ===== ARTICLE FOOTER ===== */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ===== MAIN FOOTER ===== */
.main-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background: #f7fafc;
}

.footer-content p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 20px;
    color: #a0aec0;
}

/* ===== CONVERTKIT FORM OVERRIDES ===== */
/* Override ConvertKit's inline styles */
.cta-box .formkit-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.cta-box .formkit-fields {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}

.cta-box .formkit-field {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.cta-box .formkit-input {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    background: white !important;
    color: #2d3748 !important;
}

.cta-box .formkit-input:focus {
    border-color: #667eea !important;
    outline: none !important;
}

.cta-box .formkit-submit {
    flex: 0 0 auto !important;
    background: #28a745 !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;
    position: static !important;
}

.cta-box .formkit-submit span {
    display: block !important;
    padding: 14px 32px !important;
    background: transparent !important;
}

.cta-box .formkit-submit:hover {
    background: #218838 !important;
}

.cta-box .formkit-submit:hover span {
    background: transparent !important;
}

.cta-box .formkit-powered-by-convertkit-container {
    display: none !important;
}

.cta-box .formkit-alert {
    margin: 20px 0 0 0 !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .cta-box .formkit-fields {
        flex-direction: column !important;
    }
    
    .cta-box .formkit-submit span {
        padding: 14px 24px !important;
        width: 100%;
    }
    .container {
        padding: 40px 20px;
    }

    .nav-content {
        gap: 20px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1.0625rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 36px;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .cta-box h3 {
        font-size: 1.25rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .cta-box-secondary p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 32px 16px;
    }

    .nav-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .cta-box {
        padding: 24px 20px;
    }
}