/* Font Faces - Local fonts */
@font-face {
    font-family: 'PP Pangaia';
    src: url('./fonts/PPPangaia-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Background - Warm cream gradient */
    --bg-gradient-top: #FBF7F5;
    --bg-gradient-mid: #FCF3EB;
    --bg-gradient-bottom: #F9F0E0;

    /* Text */
    --text-primary: #000000;
    --text-secondary: #79706A;
    --text-tertiary: #5C5C5C;

    /* CTA Buttons (dark forest green) */
    --cta-green: #32453B;
    --cta-green-dark: #1F382B;
    --cta-border: #0C1E14;

    /* Accents */
    --accent-tan: #A2845E;
    --accent-sage: #559975;
    --accent-sage-light: #C7DCD1;

    /* Cards & Surfaces */
    --card-bg: #FFFFFF;
    --card-border: #E2DAD3;
    --shadow-peach: rgba(242, 201, 172, 0.5);
    --shadow-ambient: rgba(0, 0, 0, 0.06);

    /* Secondary elements */
    --btn-secondary-border: #DFDCD8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-bottom) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
}

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

.hero-text {
    text-align: left;
}

/* Logo styling */
.brand-logo {
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.brand-logo svg {
    width: 56px;
    height: auto;
}

.hero h1 {
    font-family: 'PP Pangaia', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* iPhone Mockup */
.iphone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.iphone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #FFFFFF 0%, #F5F0EB 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 25px 50px var(--shadow-peach),
        0 10px 20px var(--shadow-ambient),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    position: relative;
    border: 1px solid var(--card-border);
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: linear-gradient(180deg, #F5F0EB 0%, #EBE6E1 100%);
    border-radius: 0 0 18px 18px;
    border: 1px solid var(--card-border);
    border-top: none;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-mid);
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
}

/* Mobile Responsive - Hero */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .brand-logo {
        display: flex;
        justify-content: center;
    }

    .hero-text .subtitle {
        max-width: 500px;
        margin: 0 auto;
    }

    .iphone-mockup {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .iphone-frame {
        transform: scale(0.9);
    }
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 70px 0;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-ambient);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px var(--shadow-peach),
        0 4px 12px var(--shadow-ambient);
    border-color: var(--accent-sage-light);
}

.feature .icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.feature h3 {
    font-family: 'PP Pangaia', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Testimonials */
.testimonials {
    margin: 80px 0;
    display: grid;
    gap: 20px;
}

.testimonial {
    text-align: left;
    padding: 24px 28px;
    border-left: 3px solid var(--accent-sage);
    background: var(--card-bg);
    border-radius: 0 16px 16px 0;
    box-shadow: 0 4px 16px var(--shadow-ambient);
    transition: all 0.3s ease;
}

.testimonial:hover {
    box-shadow: 0 8px 30px var(--shadow-peach);
    transform: translateX(4px);
}

.testimonial p {
    font-size: 1.05rem;
    font-style: normal;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 400;
}

.testimonial cite {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
}

/* CTA Section */
.cta {
    text-align: center;
    margin: 80px 0;
    padding: 48px 32px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px var(--shadow-ambient);
}

.cta h2 {
    font-family: 'PP Pangaia', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 36px;
    color: var(--text-primary);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    max-width: 280px;
    margin: 0 auto;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 43px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.download-btn.primary {
    background: linear-gradient(90deg, var(--cta-green) 0%, var(--cta-green-dark) 50%, var(--cta-green) 100%);
    background-size: 200% 100%;
    color: white;
    border: 1px solid var(--cta-border);
    box-shadow: 0 4px 16px rgba(50, 69, 59, 0.25);
}

.download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(50, 69, 59, 0.35);
    background-position: 100% 0;
}

.download-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--btn-secondary-border);
}

.download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border-color: var(--accent-sage);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 60px 0 40px;
    text-align: center;
}

.closing {
    font-family: 'PP Pangaia', 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.links a:hover {
    color: var(--accent-sage);
}

.links span {
    color: var(--btn-secondary-border);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Mobile Responsive - General */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .features {
        gap: 16px;
        margin: 50px 0;
    }

    .feature {
        padding: 24px 20px;
    }

    .testimonials {
        margin: 60px 0;
    }

    .cta {
        margin: 60px 0;
        padding: 36px 24px;
    }
}

/* Subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .feature, .testimonial, .cta {
    animation: fadeIn 0.7s ease-out backwards;
}

.feature:nth-child(2) {
    animation-delay: 0.1s;
}

.feature:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial:nth-child(3) {
    animation-delay: 0.2s;
}

/* Legal pages specific styles */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-family: 'PP Pangaia', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-content .last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.legal-content h2 {
    font-family: 'PP Pangaia', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content a {
    color: var(--accent-sage);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--cta-green);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-sage);
}

.back-link::before {
    content: '←';
}
