/* Global Variables */
:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    color: white;
    background-color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-btn:hover {
    background-color: var(--primary-hover);
    opacity: 0.9;
}

/* --- Components for Landing Page --- */

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a:not(.contact-btn) {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:not(.contact-btn):hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(to bottom, #fff 0%, #f5f5f7 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    background: -webkit-linear-gradient(45deg, #1d1d1f, #434344);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-height: 500px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    border-radius: 30px; /* Simulate iPhone corners if image is square */
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 20px;
    background-color: var(--bg-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background-color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(0,0,0,0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.icon-box svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card ul {
    padding-left: 0;
}

.feature-card ul li {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.feature-card ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Screenshots Section */
.screenshots-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    overflow: hidden;
}

.screenshots-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.screenshots-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.screenshots-scroll img {
    height: 500px; /* Fixed height */
    width: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.screenshots-scroll img:hover {
    transform: scale(1.02);
}

/* Why Choose Us */
.why-us-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.reason-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.reason-item p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Subscription Info */
.subscription-info {
    padding: 80px 0;
    background-color: #f9f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.subscription-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.subscription-info .sub-note {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-info .sub-note:last-of-type {
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -12px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.plan-period {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.plan-features p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Footer */
.main-footer {
    padding: 50px 0 30px;
    background-color: var(--bg-white);
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-logo img {
    width: 30px;
    height: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    font-size: 0.85rem;
    color: #ccc;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* Simple hide for mobile for now */
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-scroll img {
        height: 400px;
    }
}

/* --- Legacy Support for Privacy/Terms Pages --- */
/* We can let them inherit the global styles, but if they need specific overrides: */
body:not(.landing-page) .container {
    background-color: var(--bg-white);
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    max-width: 900px; /* Keep text pages narrower */
}

body:not(.landing-page) {
    background-color: var(--bg-light);
}

body:not(.landing-page) header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

body:not(.landing-page) h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

body:not(.landing-page) section {
    margin-bottom: 30px;
}

body:not(.landing-page) h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

body:not(.landing-page) p {
    margin-bottom: 15px;
    color: #515154;
    text-align: justify;
}

body:not(.landing-page) footer {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}
