:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f3f4f6;
    --white: #ffffff;
    --accent: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
header {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    text-align: center;
}

/* Hero Section (Mobile First) */
.hero {
    padding: 40px 0 60px;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
    overflow: hidden; /* Prevent horizontal scroll from mockup */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.text-col {
    width: 100%;
    max-width: 100%;
}

.visual-col {
    width: 100%;
    display: flex;
    justify-content: center;
    /* On mobile, maybe scale it down a bit */
    transform: scale(0.9); 
}

h1 {
    font-size: 2.25rem; /* Smaller on mobile */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

h1 span {
    color: var(--primary);
    display: block; /* Break line on mobile for emphasis */
}

.subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 auto 32px;
    max-width: 400px;
}

/* Waitlist Form (Mobile Optimized) */
.waitlist-form {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 12px;
    margin: 0 auto 12px;
    width: 100%;
    max-width: 400px;
}

.waitlist-form input {
    width: 100%;
    padding: 14px 16px; /* Larger touch target */
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    appearance: none; /* Remove iOS styles */
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.waitlist-form button {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px; /* Larger touch target */
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.waitlist-form button:active {
    background-color: var(--primary-dark);
    transform: scale(0.98);
}

.small-print {
    font-size: 0.8rem;
    color: var(--text-light);
}

#success-message {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px;
    background: #ecfdf5;
    border-radius: 8px;
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* Phone Mockup - Keep as is, but responsive container handles sizing */
.phone-mockup {
    width: 280px; /* Slightly smaller for mobile width safety */
    height: 560px;
    background: #111;
    border-radius: 36px;
    padding: 10px;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    border: 4px solid #333;
}

.notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #111;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.screen {
    background: #f3f4f6;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: white;
    padding: 36px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.app-header span {
    font-weight: 700;
    font-size: 1.1rem;
}

.avatar {
    width: 28px;
    height: 28px;
    background: #d1d5db;
    border-radius: 50%;
}

.app-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-card {
    background: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.offer-badge {
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

.secondary .offer-badge {
    background: #dbeafe;
    color: #2563eb;
}

.offer-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-text strong {
    font-size: 0.85rem;
}

.offer-text span {
    font-size: 0.7rem;
    color: var(--text-light);
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
}

.checkbox.checked {
    background: var(--accent);
    border-color: var(--accent);
}

.strikethrough {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-nav {
    background: white;
    padding: 12px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e5e7eb;
}

.nav-item {
    width: 20px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 6px;
}

.nav-item.active {
    background: var(--primary);
}

/* Features Section (Mobile First) */
.features {
    padding: 60px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stacked by default */
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background: #fff; /* Ensure bg is white */
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 16px;
}

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

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

/* --- DESKTOP ENHANCEMENTS (min-width: 768px) --- */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .logo {
        text-align: left;
        font-size: 1.5rem;
    }

    .hero {
        padding: 80px 0 120px;
    }

    .hero-content {
        flex-direction: row; /* Side by side */
        text-align: left;
        align-items: center; /* Center vertically */
    }

    .text-col {
        flex: 1;
        max-width: 550px;
    }

    .visual-col {
        flex: 1;
        transform: none; /* Reset mobile scale */
        justify-content: flex-end; /* Push phone to right */
        padding-right: 20px;
    }

    h1 {
        font-size: 3.5rem;
        margin-bottom: 24px;
    }

    h1 span {
        display: inline; /* Back to inline */
    }

    .subtitle {
        font-size: 1.25rem;
        margin: 0 0 32px 0; /* Reset auto margin */
        max-width: 480px;
    }

    .waitlist-form {
        flex-direction: row; /* Side by side inputs */
        max-width: 480px;
        margin: 0 0 12px 0;
    }

    .waitlist-form input {
        width: auto;
        flex: 1;
    }

    .waitlist-form button {
        width: auto;
        flex: 0 0 auto;
    }

    .waitlist-form button:hover {
        background-color: var(--primary-dark);
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 40px;
    }

    .phone-mockup {
        width: 300px;
        height: 600px;
    }
}