/* CSS Custom Properties */
:root {
    --background: 37 15% 96%; /* #F9F4F1 */
    --primary: 268 30% 25%; /* #3E2A56 */
    --accent: 48 68% 62%; /* #E3C65D */
    --text-primary: 0 0% 13%; /* #222222 */
    --text-secondary: 0 0% 40%; /* #666666 */
    --white: 0 0% 100%; /* #FFFFFF */
    --shadow: 0 0% 0%; /* #000000 */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --max-width: 1080px;
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --shadow-light: 0 4px 20px hsla(var(--shadow) / 0.1);
    --shadow-medium: 0 8px 40px hsla(var(--shadow) / 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--primary));
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: hsla(var(--white) / 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: hsl(var(--primary));
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: hsl(var(--text-primary));
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: hsl(var(--accent));
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--primary));
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 var(--section-padding);
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary));
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: hsl(var(--text-secondary));
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.app-store-btn img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

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

.cta-button {
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    box-shadow: var(--shadow-light);
}

.cta-button:hover {
    background-color: hsl(var(--primary) / 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.download-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 hsla(var(--primary) / 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px hsla(var(--primary) / 0);
    }
    100% {
        box-shadow: 0 0 0 0 hsla(var(--primary) / 0);
    }
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background-color: hsl(var(--white));
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: hsl(var(--background));
    box-shadow: var(--shadow-light);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: hsl(var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--white));
    font-size: 2rem;
}

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

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

/* Showcase Section */
.showcase {
    padding: var(--section-padding);
}

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

.mockup-item {
    text-align: center;
}

.mockup-item img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(var(--shadow-light));
    transition: var(--transition);
}

.mockup-item:hover img {
    transform: scale(1.02);
}

.mockup-label {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

/* Upgrade Section */
.upgrade {
    padding: var(--section-padding);
    background-color: hsl(var(--white));
    text-align: center;
}

.upgrade-content {
    max-width: 900px;
    margin: 0 auto;
}

.upgrade-description {
    font-size: 1.2rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 3rem;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: hsl(var(--background));
    border: 2px solid hsl(var(--primary) / 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

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

.pricing-card.featured {
    border-color: hsl(var(--accent));
    box-shadow: 0 8px 40px hsla(var(--accent) / 0.2);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.savings-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: hsl(var(--accent));
    color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.3rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    color: hsl(var(--accent));
    font-weight: 700;
}

.price {
    font-size: 3rem;
    color: hsl(var(--primary));
    font-weight: 700;
    font-family: var(--font-heading);
}

.period {
    font-size: 1.1rem;
    color: hsl(var(--text-secondary));
    font-weight: 500;
}

.monthly-equivalent {
    font-size: 0.9rem;
    color: hsl(var(--accent));
    font-weight: 600;
    margin-top: 0.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.benefits-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--primary) / 0.1);
    color: hsl(var(--text-primary));
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: hsl(var(--accent));
    font-weight: bold;
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
}

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

.faq-item {
    border-bottom: 1px solid hsla(var(--text-secondary) / 0.2);
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: hsl(var(--primary));
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-icon {
    transition: var(--transition);
    color: hsl(var(--accent));
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: hsl(var(--text-secondary));
    line-height: 1.7;
}

/* Footer */
.footer {
    background-color: hsl(var(--primary));
    color: hsl(var(--white));
    padding: 2rem 0;
    text-align: center;
}

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

.footer-links a {
    color: hsl(var(--white));
    text-decoration: none;
    transition: var(--transition);
}

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

.separator {
    margin: 0 1rem;
    opacity: 0.5;
}

.footer-copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: hsl(var(--white));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .app-store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .mockup-grid {
        grid-template-columns: 1fr;
    }

    .mockup-item img {
        max-height: 300px;
    }

    /* Pricing Cards Mobile */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .price {
        font-size: 2.5rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0 15px;
        --section-padding: 60px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }
}

/* Legal Content Styles */
.legal-content {
    padding: 140px 0 80px;
    background-color: hsl(var(--background));
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-family: var(--font-heading);
    color: hsl(var(--primary));
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.effective-date {
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
    font-weight: 500;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    background: hsl(var(--white));
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    line-height: 1.8;
}

.legal-body .intro {
    font-size: 1.1rem;
    color: hsl(var(--text-primary));
    margin-bottom: 2.5rem;
    font-weight: 500;
    background: hsl(var(--background));
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid hsl(var(--accent));
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--background));
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-heading);
    color: hsl(var(--primary));
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.legal-section p {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.legal-section a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.legal-section a:hover {
    color: hsl(var(--accent));
    border-bottom-color: hsl(var(--accent));
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.back-to-home:hover {
    color: hsl(var(--accent));
    border-bottom-color: hsl(var(--accent));
}

.back-to-home i {
    font-size: 0.9rem;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 120px 0 60px;
    }

    .legal-header h1 {
        font-size: 2.5rem;
    }

    .legal-body {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-body .intro {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-body {
        padding: 1.5rem 1rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .effective-date {
        font-size: 1rem;
    }
}
