/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --section-spacing: 100px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
    background-color: var(--dark-bg);
    padding: 0.75rem 0;
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    padding: 0 1rem;
}

.nav-brand {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

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

/* ============================================================
   Header
   ============================================================ */
header {
    background-color: var(--light-bg);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

/* ============================================================
   Typography
   ============================================================ */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

a:hover {
    text-decoration: underline;
}

.last-updated {
    color: #777;
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

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

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    margin: 0 0.5rem;
}

/* ============================================================
   Shared Components
   ============================================================ */
.contact {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact h2 {
    margin-top: 0;
}

.back-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* ============================================================
   Support Form
   ============================================================ */
.contact-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: var(--text-color);
}

.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input[type="email"]:focus,
.form-field textarea:focus {
    border-color: var(--primary-color);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    text-decoration: none;
}

.submit-button:hover {
    opacity: 0.9;
}

/* ============================================================
   Home Page Overrides (index.html uses <body class="home">)
   ============================================================ */
body.home .container {
    max-width: 1200px;
    padding: 0 1rem;
}

body.home header {
    padding: 4rem 0;
    margin-bottom: 0;
}

body.home .logo {
    margin: 0 0 1rem 0;
}

body.home h1 {
    text-align: left;
}

body.home h2 {
    font-size: 2rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

body.home footer {
    padding: 3rem 0;
    margin-top: 0;
}

/* Header layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-text {
    flex: 1;
    text-align: left;
    min-width: 300px;
}

.header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

/* iPhone mockup */
.iphone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    overflow: hidden;
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

/* CTA & signup */
.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.signup-form {
    margin-top: 1.5rem;
    max-width: 400px;
}

.signup-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

.form-group {
    display: flex;
    margin-top: 0.5rem;
}

.email-input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    outline: none;
}

.email-input:focus {
    border-color: var(--primary-color);
}

.subscribe-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: bold;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Split sections */
.split-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.split-section > div {
    flex: 1;
    min-width: 300px;
}

.app-screenshot {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.privacy-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .container {
        width: 95%;
        padding: 1rem;
    }

    .contact {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    body.home h2 {
        font-size: 1.7rem;
    }

    .split-section {
        flex-direction: column;
    }

    section {
        padding: 3rem 0;
    }

    .header-content {
        flex-direction: column;
    }

    .header-text {
        text-align: center;
        padding: 0 1rem;
    }

    body.home .logo {
        margin: 0 auto 1rem auto;
    }

    .signup-form {
        margin: 1.5rem auto 0 auto;
    }
}
