/* ============================================
   THE WEEKEND EARNER - LEAD MAGNET CSS
   Optimized for 7-page "Quick Start Guide"
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary-teal: #387677;
    --primary-terracotta: #D98565;
    --accent-yellow: #F2A52E;
    --bg-cream: #FCF9F6;
    --bg-white: #FFFFFF;
    --bg-light-grey: #F5F5F3;
    --text-dark: #2C3E50;
    --text-body: #444444;
    --text-muted: #888888;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --page-width: 210mm;
    --page-height: 297mm;
    --margin-outer: 25mm;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 12pt;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: #f0f0f0;
    line-height: 1.65;
}

.page {
    width: var(--page-width);
    height: var(--page-height);
    margin: 40px auto;
    padding: var(--margin-outer);
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    page-break-after: always;
    overflow: hidden;
}

.page-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding-bottom: 20mm;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: 2.22rem;
    font-weight: 800;
    color: var(--primary-teal);
}

h2 {
    font-size: 1.52rem;
    font-weight: 700;
    color: var(--primary-teal);
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-sm);
}

.chapter-header {
    border-bottom: 4px solid var(--primary-teal);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.highlight-box {
    background: #fdf6f2;
    padding: var(--spacing-md);
    border: 1px solid rgba(217, 133, 101, 0.2);
    border-radius: 8px;
    margin: var(--spacing-md) 0;
}

.callout {
    background: var(--bg-cream);
    padding: var(--spacing-md);
    border-left: 5px solid var(--primary-terracotta);
    margin: var(--spacing-md) 0;
}

.page-number {
    position: absolute;
    bottom: 8mm;
    width: 100%;
    left: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cover-logo {
    position: absolute;
    top: 20mm;
    left: 20mm;
    width: 140px;
}

.cover-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin: 30px 0;
}

.cover-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--bg-light-grey);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-top: 20px;
}

.lead-h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 20px 0;
}

.cta-h1 {
    color: white;
    font-size: 2.8rem;
}

@media (max-width: 600px) {
    .page {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 20px;
        page-break-after: unset;
        box-shadow: none;
    }

    .lead-h1 {
        font-size: 2.2rem;
    }

    .cta-h1 {
        font-size: 2.2rem;
    }

    .page-inner {
        height: auto;
        padding-bottom: 20px;
    }

    .cover-logo {
        position: static;
        width: 120px;
        margin-bottom: 20px;
    }

    .cover-image-grid {
        grid-template-columns: 1fr;
    }

    .cover-img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 15px;
    }

    .lead-h1 {
        font-size: 1.6rem;
    }

    .cta-h1 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p,
    li {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

@media print {
    body {
        background: white;
    }

    .page {
        margin: 0;
        box-shadow: none;
        border: none;
    }

    @page {
        size: A4 portrait;
        margin: 0;
    }
}

.text-teal {
    color: var(--primary-teal);
}

.text-terracotta {
    color: var(--primary-terracotta);
}

.text-center {
    text-align: center;
}