/*
 * What 2 Watch - Main Stylesheet
 * Shared styles for all pages
 */

/* ==================== */
/* Base Styles          */
/* ==================== */

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

:root {
    /* Brand Colors - matching iOS app */
    --navy: rgb(25.5, 38.25, 63.75);      /* rgb(0.1*255, 0.15*255, 0.25*255) */
    --burgundy: rgb(51, 12.75, 25.5);     /* rgb(0.2*255, 0.05*255, 0.1*255) */
    --orange: #ff9500;                     /* iOS orange */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

html {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: linear-gradient(to bottom, var(--navy) 0%, var(--burgundy) 100%) no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    width: 100%;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==================== */
/* Layout               */
/* ==================== */

.container {
    max-width: 980px;
    margin: 0 auto;
    padding-top: env(safe-area-inset-top, 0);
    padding-right: max(env(safe-area-inset-right, 0), 20px);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: max(env(safe-area-inset-left, 0), 20px);
}

/* ==================== */
/* Header               */
/* ==================== */

header {
    padding: 40px 0 10px;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.tagline {
    font-size: 21px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 20px;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255, 149, 0, 0.15);
    color: var(--orange);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* ==================== */
/* App Store Badge      */
/* ==================== */

.download-section {
    margin-bottom: 20px;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.app-store-badge img {
    height: 60px;
    width: auto;
}

/* ==================== */
/* Screenshots Section  */
/* ==================== */

.screenshots {
    text-align: center;
    padding: 10px 0;
}

.screenshots-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.screenshots-container img {
    max-width: 360px;
    height: 650px;
    object-fit: contain;
}

.screenshots-container.single {
    gap: 0;
}

.screenshots-container.single img {
    max-width: 380px;
    height: 680px;
}

/* ==================== */
/* Teaser Text          */
/* ==================== */

.teaser-text {
    text-align: center;
    padding: 30px 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

.teaser-description {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* ==================== */
/* Features Section     */
/* ==================== */

.features {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== */
/* Footer               */
/* ==================== */

footer {
    text-align: center;
    padding: 40px 0 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== */
/* Responsive           */
/* ==================== */

@media (max-width: 768px) {
    header {
        padding: 20px 0 5px;
    }

    .logo {
        font-size: 32px;
    }

    .tagline {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .coming-soon-badge {
        margin-bottom: 10px;
    }

    .download-section {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 36px;
    }

    .features {
        padding: 60px 0;
    }

    .screenshots {
        padding: 10px 0;
    }

    .screenshots-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .screenshots-container img {
        max-width: 280px;
        height: 560px;
    }

    .screenshots-container.single img {
        max-width: 300px;
        height: 600px;
    }

    .teaser-text {
        padding: 15px 0 10px;
    }

    .teaser-description {
        font-size: 17px;
    }

    .features-grid {
        gap: 48px;
    }

    .app-store-badge img {
        height: 48px;
    }

    footer {
        padding: 30px 0 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0 5px;
    }

    .logo {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .tagline {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .coming-soon-badge {
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 32px;
    }

    .screenshots {
        padding: 5px 0;
    }

    .screenshots-container {
        gap: 15px;
    }

    .teaser-text {
        padding: 10px 0;
    }

    .teaser-description {
        font-size: 16px;
    }

    .feature-icon {
        font-size: 48px;
    }

    .feature-title {
        font-size: 21px;
    }

    .feature-description {
        font-size: 16px;
    }

    footer {
        padding: 20px 0 15px;
    }
}
