/* Brand Colors and Variables */
:root {
    --primary-blue: #44AAFE;
    --accent-magenta: #BF1D7C;
    --highlight-yellow: #FFCE00;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --card-bg: #f9f9f9;
    --transition-speed: 0.3s;
}

/* System-level Dark Mode Implementation (Green SEO) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #f5f5f5;
        --card-bg: #1e1e1e;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-blue);
	margin-bottom: 40px;
}

.logo {
    max-width: 150px; /* Optimal Logo Size: 400x100 for desktop, auto-scaled */
    height: auto;
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    margin-left: 20px;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--accent-magenta);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-magenta) 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* App Grid and Cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.app-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    /* Optimal size for screenshots: 1080x2340 (Portrait) for high-end mobile rendering */
	max-width: 150px; /* Optimal Logo Size: 400x100 for desktop, auto-scaled */
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--highlight-yellow);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 15px;
	margin-bottom: 15px;
}

.btn-story-saver {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-magenta) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 15px;
	margin-bottom: 15px;
}

/* Animated FAQ Section (CSS Only) */
.faq-section {
    margin-top: 60px;
}

details {
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
}

details[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--primary-blue);
    margin-top: 60px;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
	.logo {
		max-width: 80px; /* Optimal Logo Size: 400x100 for desktop, auto-scaled */
		height: auto;
	}
	
	.app-screenshot {
		max-width: 100%;
		height: auto;
		/* Optimal size for screenshots: 1080x2340 (Portrait) for high-end mobile rendering */
		max-width: 80px; /* Optimal Logo Size: 400x100 for desktop, auto-scaled */
		height: auto;
	}
	
    .container {
        padding: 15px;
    }

    header {
        flex-direction: column; /* Stacks logo and nav */
        text-align: center;
        gap: 15px;
        padding-bottom: 15px;
    }

    nav {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 40px 15px; /* Smaller vertical footprint */
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 1.8rem; /* Scaled down header */
    }

    .hero p {
        font-size: 1rem;
    }

    .app-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .app-card {
        padding: 20px;
    }
}