/* -- Import Google Font -- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* -- CSS Variables for Colors -- */
:root {
    --bg-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --primary-blue: #007aff;
    --primary-blue-hover: #0056b3;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
}

/* -- General Body & Container Styling -- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    padding: 40px 20px;
}

.container {
    max-width: 960px; /* Increased max-width for more column space */
    margin: 0 auto;
    background-color: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures content respects the border radius */
    position: relative; /* CRUCIAL: Establishes context for absolutely positioned children */
    padding-top: 40px; /* Make space for the absolute image at the top */
    padding-bottom: 40px; /* Consistent bottom padding for the container */
}

main {
    padding: 0 40px; /* Horizontal padding for main content */
    padding-top: 0; /* No extra top padding, container handles it */
}

section {
    margin-bottom: 50px;
    padding-bottom: 40px;
}

/* Only apply border to sections not in the grid, or adjust as needed for grid items */
main > section:not(.image-with-caption) {
    border-bottom: 1px solid var(--border-color);
}

/* Removed last-of-type border rule from here to be more specific in grid */


/* -- Typography -- */
.page-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px; /* Small space before the images start */
    padding-top: 20px;   /* Standard top padding */
    padding-left: 20px;
    padding-right: 20px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}
h1 {
    font-size: 48px; /* Slightly larger for impact */
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

h2 {
    font-size: 32px; /* Slightly larger */
    font-weight: 600;
    margin-bottom: 24px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 500px;
    /* ADDED: This pushes the text down so it clears the side images */
    margin: 110px auto 32px auto;
}

/* -- Hero Section with App Icon -- */
.hero {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 40px;
}

.app-icon {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

/* -- Features List -- */
.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.features li::before {
    content: '✓';
    color: var(--primary-blue);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* -- Call to Action (CTA) Button -- */
.button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.button:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* -- Footer -- */
footer {
    text-align: center;
    padding: 20px 40px;
    font-size: 14px;
    color: var(--text-light);
    background-color: #f8f9fa;
    position: relative; /* Ensure footer appears above other elements if needed */
    z-index: 1; 
    margin-top: 40px;
}

/* -- Corner Images (Happy & Frustrated) -- */
.image-corner {
    position: absolute;
    top: 150px; /* Pushes images down to sit next to the App Icon */
    z-index: 10;
    width: 280px;
    padding-top: 0;
}

/* Left Side Specifics */
.image-corner.top-left {
    left: 0;
    padding-left: 20px;
    text-align: left;
}

/* Right Side Specifics */
.image-corner.top-right {
    right: 0;
    padding-right: 20px;
    text-align: right;
}

/* The Images themselves */
.corner-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: block;
    margin-bottom: 10px;
}

/* Aligning the captions properly */
.top-left .caption-wrapper {
    align-items: flex-start; /* Aligns text to left */
}

.top-right .caption-wrapper {
    align-items: flex-end; /* Aligns text to right */
}

.image-caption {
    font-style: italic;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.4;
    width: 100%;
    max-width: 220px;
}

.top-left .image-caption { text-align: left; }
.top-right .image-caption { text-align: right; }

/* -- Content Grid Styling -- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px; /* Space between columns */
    margin-top: 50px; /* Space below hero section */
}

.content-grid .grid-item {
    border-bottom: none; /* Remove individual section borders inside grid */
    padding-bottom: 0; /* Remove individual section padding inside grid */
    margin-bottom: 0; /* Remove individual section margins inside grid */
}

/* Add a vertical border between the grid items for visual separation */
.content-grid .grid-item:first-child {
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
}


/* Responsive adjustments */
@media (max-width: 992px) { /* Adjust breakpoint for larger container */
    .container {
        max-width: 720px; /* Shrink container */
        padding-top: 80px; /* Adjust top padding */
    }
    .content-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 30px;
    }
    .content-grid .grid-item:first-child {
        border-right: none; /* Remove vertical border */
        border-bottom: 1px solid var(--border-color); /* Add horizontal border */
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    main {
        padding: 0 20px;
    }

    /* Adjust image positioning for smaller wide screens */
    .image-with-caption {
        top: 0px;
        right: 0px;
        width: 220px; /* Reduce width */
        padding-top: 15px;
        padding-right: 15px;
    }
    .frustrated-image {
        max-width: 180px; /* Smaller image */
    }
    .image-caption {
        max-width: 180px; /* Smaller caption width */
    }
}

    /* =========================================
    1. GLOBAL STYLES (Apply to Desktop & All)
    ========================================= */

    /* -- Screenshots / Feature Rows -- */
    .screenshots {
        margin-top: 80px;
        padding-top: 40px;
        border-top: 1px solid var(--border-color);
    }

    .screenshots h2 {
        text-align: center;
        margin-bottom: 60px;
    }

    .feature-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
        margin-bottom: 80px;
    }

    .feature-row:last-child {
        margin-bottom: 0;
    }

    .feature-row.reverse {
        flex-direction: row-reverse;
    }

    .feature-media {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .feature-text {
        flex: 1;
    }

    .feature-text h3 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 16px;
        color: var(--text-dark);
    }

    .feature-text p {
        font-size: 18px;
        color: var(--text-light);
        line-height: 1.6;
    }

    .screenshot-image {
        width: 100%;
        max-width: 450px; /* This fixes the massive image size */
        height: auto;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0,0,0,0.05);
        transition: transform 0.3s ease;
    }

    .screenshot-image:hover {
        transform: translateY(-5px);
    }

    /* =========================================
    2. MOBILE OVERRIDES (Max-Width 768px)
    ========================================= */

    @media (max-width: 768px) {
        body {
            padding: 20px 10px;
        }

        .container {
            padding-top: 50px;
            padding-bottom: 20px;
        }

        main {
            padding: 0 15px;
        }

        h1 {
            font-size: 32px;
        }

        h2 {
            font-size: 24px;
        }

        .subtitle {
            font-size: 16px;
        }

        .app-icon {
            width: 100px;
            height: 100px;
        }

        /* Mobile: Stack the feature rows vertically */
        .feature-row, 
        .feature-row.reverse {
            flex-direction: column;
            gap: 30px;
            margin-bottom: 60px;
            text-align: center;
        }

        .feature-text h3 {
            font-size: 24px;
        }

        .feature-text p {
            font-size: 16px;
        }

        /* Mobile: Adjust the corner images */
        /* Mobile: Adjust the corner images */
            .image-corner {
                position: static; /* Stack them normally in the flow */
                width: 100%;
                padding: 0;
                margin-bottom: 40px;
                display: flex;
                justify-content: center; /* Center the entire block */
            }
            
            .caption-wrapper {
                align-items: center; /* Center the flex items */
                text-align: center;
                max-width: 100%;
            }

            .corner-img {
                max-width: 250px; /* Good size for mobile */
                margin: 0 auto 10px auto; /* Center the image */
            }

            .image-caption {
                text-align: center;
                margin: 0 auto;
            }

        main > section:not(.image-with-caption) {
            border-bottom: 1px solid var(--border-color);
        }
        .hero {
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 40px;
        }
        .content-grid {
            margin-top: 40px;
        }
    }
}