/* Landing Page Styles - imports base.css for reset and variables */

body {
    background-color: var(--color-bg);
    font-family: var(--font-family);
    color: var(--color-text-primary);
    height: 100vh;
    /* Force full viewport height */
    overflow: hidden;
    /* Prevent scrolling */
    display: flex;
    flex-direction: column;
}

/* Main Layout */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 40px;
    height: 100%;
    /* Take available vertical space */
}

/* Left Column: Device Showcase */
.device-showcase {
    position: relative;
    height: 85vh;
    /* Scale device based on viewport height */
    max-height: 800px;
    /* Width will be auto based on aspect ratio */
    display: flex;
    align-items: center;
    /* Vertically center */
}

.iphone-frame {
    height: 100%;
    /* Fill the container height */
    width: auto;
    /* Maintain aspect ratio */
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

.screen-content {
    position: absolute;
    top: 13.5%;
    left: 7.7%;
    /* Slight adjustment for alignment */
    width: 84.7%;
    height: 73%;
    z-index: 1;
    background: #000;
    overflow: hidden;
    border-radius: 2px;
}

.screen-animation {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: The Pitch */
.content-showcase {
    width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header with Icon + Logo */
.header-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.app-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    /* Remove background/border-radius as the icon image itself is stylized */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    /* Assuming standard iOS-ish curve just in case, or remove if raw image is perfect */
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80px;
}

.logo-text {
    font-family: 'Gufiaito', cursive;
    font-weight: bold;
    font-size: 4.2rem;
    color: #333;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    line-height: 0.75;
    margin: 0;
}

.tagline {
    font-family: 'Gufiaito', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: #444;
    margin: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    line-height: 1;
}

/* Main Pitch Text */
.pitch-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.highlight-head {
    font-family: 'Gufiaito', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #999;
    line-height: 1.2;
}

.highlight-head strong {
    color: #333;
    font-weight: bold;
}

.pitch-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.2rem;
}

.pitch-text strong {
    color: #333;
}

.last-line {
    font-style: italic;
    color: #777;
    margin-bottom: 0;
}

/* App Store Button */
.app-store-btn {
    display: inline-block;
    transition: transform 0.2s;
    align-self: flex-start;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    height: 60px;
}

/* Footer */
footer {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

footer a {
    margin: 0 10px;
    transition: color 0.2s;
}

footer a:hover {
    color: #555;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        height: auto;
        overflow-y: auto;
    }

    .main-container {
        flex-direction: column;
        padding: 40px 20px;
        padding-bottom: 60px;
        height: auto;
        gap: 25px;
    }

    /* Flatten content-showcase so children can be reordered with device-showcase */
    .content-showcase {
        display: contents;
    }

    /* Reorder elements: 1=header, 2=device, 3=app-store, 4=pitch */
    .header-group {
        order: 1;
        justify-content: center;
        gap: 15px;
        margin-bottom: 0;
    }

    .device-showcase {
        order: 2;
        height: auto;
        max-height: none;
        width: 100%;
        max-width: 320px;
        /* Padding removed to prevent misalignment of absolute children */
    }

    .iphone-frame {
        width: 100%;
        height: auto;
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
    }

    .app-store-btn {
        order: 3;
        align-self: center;
    }

    .app-store-btn img {
        height: 50px;
    }

    .pitch-box {
        order: 4;
        padding: 20px;
        margin-bottom: 0;
        max-width: 500px;
        text-align: center;
    }

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

    .header-text {
        height: auto;
        gap: 5px;
    }

    .logo-text {
        font-size: 3rem;
        line-height: 1;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .highlight-head {
        font-size: 1.8rem;
    }

    .pitch-text {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .main-container {
        padding: 20px 15px;
        padding-bottom: 40px;
        gap: 20px;
    }

    .device-showcase {
        max-width: 260px;
        /* Padding removed here too */
    }

    .iphone-frame {
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
    }

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

    .logo-text {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .highlight-head {
        font-size: 1.5rem;
    }

    .pitch-text {
        font-size: 0.95rem;
    }
}