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

:root {
    --primary-color: #D85A30;
    --primary-dark: #993C1D;
    --accent-color: #378ADD;
    --text-primary: #2C2C2A;
    --text-secondary: #5F5E5A;
    --text-light: #888780;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F1EFE8;
    --border-color: #D3D1C7;
    --success-color: #639922;
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

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

/* Header */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.app-badges {
    margin-bottom: 16px;
}

.app-store-badge img {
    height: 48px;
    transition: transform 0.2s;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.hero-footnote {
    font-size: 14px;
    color: var(--text-light);
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-primary);
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.pricing-header {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    text-align: center;
}

.pricing-header h3 {
    color: white;
    margin-bottom: 16px;
}

.price {
    font-size: 48px;
    font-weight: 700;
}

.price span {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

.pricing-features {
    padding: 40px;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 32px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 20px;
}

.pricing-trial {
    padding: 32px 40px;
    background: var(--bg-primary);
    text-align: center;
}

.pricing-trial strong {
    color: var(--primary-color);
}

.pricing-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta h2 {
    color: white;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    margin-bottom: 16px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
        text-align: center;
    }

    .nav-links {
        gap: 16px;
        font-size: 14px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .pricing-header,
    .pricing-features,
    .pricing-trial {
        padding: 24px;
    }

    .hero,
    .features,
    .how-it-works,
    .pricing,
    .cta {
        padding: 60px 0;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    margin-bottom: 16px;
}

.legal-page .last-updated {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 14px;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
    text-align: left;
}

.legal-page h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.legal-page ul,
.legal-page ol {
    margin-left: 24px;
    margin-bottom: 24px;
}

.legal-page strong {
    color: var(--text-primary);
}

.legal-page a {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Support Page Styles */
.support-section {
    margin-bottom: 60px;
}

.faq-item {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.faq-item h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.contact-info {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 8px;
    margin-top: 24px;
}

.contact-info p {
    margin-bottom: 12px;
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 500;
}