/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base styles with consistent color scheme matching app theme */
:root {
    --primary-color: #745615;
    --primary-light: #F3E2BE;
    --primary-dark: #7E542D;
    --secondary-color: #F1F1F1;
    --text-color: #333333;
    --text-strong: #171A1F;
    --text-light: #9095A0;
    --text-secondary: #565E6C;
    --background-color: #FFFFFF;
    --background-light: #F8F9FA;
    --background-cream: #F3E2BE;
    --surface-light: #F8F9FA;
    --error-color: #DE3B40;
    --success-color: #1DD75B;
    --warning-color: #EFB034;
    --info-color: #379AE6;
    --border-color: #CCCCCC;
    --border-light: #E9ECEF;
    --shadow: 0 2px 12px rgba(116, 86, 21, 0.08);
    --shadow-hover: 0 4px 20px rgba(116, 86, 21, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 0 0 1rem 0;
    color: var(--text-light);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: 32px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* Hero section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/><circle cx="10" cy="60" r="1" fill="%23000" opacity="0.02"/><circle cx="90" cy="40" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features section */
.features {
    padding: 6rem 2rem;
    background-color: var(--background-color);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

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

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* How it works section */
.how-it-works {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials section */
.testimonials {
    padding: 6rem 2rem;
    background-color: var(--background-cream);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.testimonial {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button, .button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.cta-button:hover, .button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.button-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.button-white:hover {
    background-color: var(--background-light);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}

/* Page layouts */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--background-light);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* FAQ */
.faq-item {
    margin-bottom: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--background-light);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--border-color);
}

.faq-answer {
    padding: 1.5rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Loading and error states */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

.loading-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    text-align: center;
    padding: 2rem;
}

.error-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.error h2 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

/* Memory content */
.memory-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.memory {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.memory h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.memory-meta {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.memory-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 8px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .features-container,
    .how-it-works-container,
    .testimonials-container {
        padding: 0 1rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 28px;
        width: 28px;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Sections */
    .features, .how-it-works, .testimonials, .cta-section {
        padding: 4rem 1rem;
    }
    
    .page-header {
        padding: 3rem 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Typography */
    h2 {
        font-size: 2rem;
    }
    
    .features h2,
    .how-it-works h2,
    .testimonials h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Grids */
    .feature-grid, .steps, .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 2rem 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 1rem;
        align-self: center;
    }
    
    /* Testimonials */
    .testimonial {
        padding: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0;
    }
    
    /* Memory pages */
    .memory {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .memory h1 {
        font-size: 2rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    nav {
        padding: 0.75rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Sections */
    .features, .how-it-works, .testimonials, .cta-section {
        padding: 3rem 0.75rem;
    }
    
    .page-header {
        padding: 2.5rem 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Typography */
    h2 {
        font-size: 1.75rem;
    }
    
    .features h2,
    .how-it-works h2,
    .testimonials h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Components */
    .feature {
        padding: 1.5rem 1rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    .step {
        padding: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .testimonial {
        padding: 1.25rem;
    }
    
    .testimonial-content {
        font-size: 0.95rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }
    
    .button-white {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Memory */
    .memory {
        margin: 0.75rem;
        padding: 1.25rem;
    }
    
    .memory h1 {
        font-size: 1.75rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features, .how-it-works, .testimonials, .cta-section {
        padding: 3rem 1rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .cta-button,
    .button,
    .button-white,
    .button-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature:hover,
    .step:hover {
        transform: none;
    }
    
    .feature,
    .step,
    .testimonial {
        transition: none;
    }
}

/* Mobile Navigation Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: var(--background-light);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background-color 0.2s;
        text-align: center;
    }
    
    .nav-links a:hover {
        background-color: var(--background-light);
    }
    
    .nav-links .cta-button {
        margin-top: 0.5rem;
        align-self: center;
        width: fit-content;
    }
} 