/* CSS Variables based on user palette */
:root {
    --primary: #709c71;
    /* Sea green - Main CTA */
    --primary-hover: #5d825e;
    /* Darker shade for hover */
    --secondary: #1a222b;
    /* Dark teal - Headings/Text */
    --background: #f8f1e3;
    /* Light peach - Main BG */
    --background-secondary: #DDC07E;
    /* Soft Fawn */
    --background-tertiary: rgba(112, 156, 113, 0.05);
    /* Very subtle green tint */
    --border: #e3ddd3;
    /* Soft border */
    --text-primary: #1a222b;
    /* Dark navy */
    --text-secondary: #5b646f;
    /* Gray */
    --white: #ffffff;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 20px 40px -10px rgba(112, 156, 113, 0.1);

    /* Fonts */
    --font-heading: 'Goudy Bookletter 1911', serif;
    --font-subheading: 'Space Grotesk', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.1;
    font-weight: 400;
    /* Goudy usually looks better less bold */
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-subheading);
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-sm);
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-subheading);
    /* Labels use Space Grotesk */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(112, 156, 113, 0.3);
}

.btn.small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(248, 241, 227, 0.9);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a:not(.btn) {
    font-family: var(--font-subheading);
    font-weight: 500;
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

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

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--secondary);
    border-radius: 40px;
    padding: 10px;
    /* Center the shadow with equal spread/blur on all sides (top, bottom, left, right) */
    box-shadow: 0 0 60px rgba(26, 34, 43, 0.4);
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

.hero-image:hover .phone-mockup {
    transform: rotate(0deg) scale(1.02);
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    font-family: var(--font-subheading);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.app-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notch {
    width: 80px;
    height: 24px;
    background: var(--secondary);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Removed .app-content, .app-card, .screen-header styles as they are replaced by video */

.home-indicator {
    width: 120px;
    height: 4px;
    background: #000;
    border-radius: 2px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--background) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-top: var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

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

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

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(91, 100, 111, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
    }

    .nav-links {
        display: none;
        /* Simple hiding for mobile, ideally would be a burger menu */
    }
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
    /* Use var(--spacing-md) for horizontal padding to match .container */
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: var(--spacing-md);
}

.legal-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.75rem;
}

.legal-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.legal-content p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}