/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: auto;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    display: block;
    min-height: 100vh;
}

/* Common Tile Styles */
.app-tile {
    width: 100%;
    min-height: auto;
    max-height: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    background-color: #e4e4e4;
    padding: 80px;
    box-sizing: border-box;
}

.footer-tile {
    width: 100%;
    min-height: auto;
    max-height: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    background-color: #ffffff;
    padding: 80px;
    box-sizing: border-box;
}

.footer-tile .top-left {
    height: auto;
}

.footer-tile .description {
    padding-bottom: 50px;
}

/* Logo */
.logo {
    position: absolute;
    top: 0;
    right: 0;
    height: 120px;
    width: auto;
    max-width: none;
    max-height: none;
}

/* Typography */
.title {
    font-family: 'Space Grotesk', sans-serif;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: 56px;
    padding-bottom: 10px;
    text-align: center;
}

.description {
    font-family: 'Space Grotesk', sans-serif;
    color: rgb(0, 0, 0);
    font-size: 24px;
    line-height: 1.5;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

/* Layout */
.top-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: min(600px, 90vw);
    height: auto;
    align-items: center;
}

.preview-container {
    display: flex;
    gap: 40px;
    flex: 0;
    align-items: flex-start;
    align-self: center;
}

.preview {
    max-width: 450px;
    max-height: 700px;
    height: auto;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* App Store Link */
.app-store-link {
    display: inline-block;
    padding-top: 0px;
    padding-bottom: 0px;
}

.app-store-link img {
    height: 50px;
    width: auto;
    max-width: none;
    max-height: none;
}

/* Email Link */
.email-link {
    color: rgb(0, 0, 0);
    text-decoration: underline;
    font-family: 'Space Grotesk', sans-serif;
}

.email-link:hover {
    text-decoration: underline;
}

/* Mobile Styles (iPhone) */
@media (max-width: 767px) {
    .app-tile {
        padding: 50px;
    }
    
    .footer-tile {
        padding: 25px;
    }
    
    .footer-tile .description {
        font-size: 16px;
        padding-bottom: 25px;
    }
    
    .top-left {
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .title {
        font-size: 42px;
        text-align: center;
    }
    
    .description {
        font-size: 18px;
        text-align: center;
    }
    
    .preview-container {
        flex-direction: column;
        gap: 10px;
        width: 60vw;
        align-items: center;
        align-self: center;
    }
    
    .preview {
        max-width: 100%;
        max-height: none;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .logo {
        height: 50px;
    }
    
    .app-store-link img {
        height: 50px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
}
