/* ==========================================================================
   ChoreUp Website - Design System & Styles
   Playful, family-friendly design with Fredoka + DM Sans
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Purple/Gold/Cream palette */
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-secondary: #f59e0b;
    --color-secondary-light: #fbbf24;
    --color-accent: #10b981;
    --color-background: #fefce8;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-footer-bg: #1e293b;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Typography */
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    --spacing-section: 100px;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--color-text);
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

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

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    padding: 12px 0;
    position: sticky;
    top: 0;
    background: rgba(254, 252, 232, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-primary);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

/* App Store Badge */
.app-store-badge {
    height: 44px;
    transition: transform 0.2s ease;
}

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

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 60px 0 48px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto var(--spacing-lg);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-surface);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.badge-icon {
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.hero-cta .secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.hero-cta .secondary-link:hover {
    background: var(--color-primary);
    color: white;
}

/* --------------------------------------------------------------------------
   Problem Section
   -------------------------------------------------------------------------- */
.problem-section {
    padding: 48px 0 80px;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
}

.problem-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.problem-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.problem-quote {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    font-style: italic;
    padding: var(--spacing-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.problem-body {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.problem-solution {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-display);
    margin-top: var(--spacing-md);
}

.problem-subtext {
    margin-top: 12px;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   How It Works
   -------------------------------------------------------------------------- */
.how-it-works {
    padding: var(--spacing-section) 0;
}

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

.step {
    background: var(--color-surface);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -16px;
    left: 32px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03), rgba(245, 158, 11, 0.03));
}

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

.feature-card {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing-section {
    padding: var(--spacing-section) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
}

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

.pricing-features .check {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pricing-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.pricing-cta .app-store-badge {
    height: 54px;
}

.pricing-note {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Screenshots Section
   -------------------------------------------------------------------------- */
.screenshots-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
}

.screenshots-carousel {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-item img {
    height: 500px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
}

@media (max-width: 480px) {
    .screenshot-item img {
        height: 460px;
    }
}

@media (min-width: 900px) {
    .screenshots-carousel {
        justify-content: center;
        overflow-x: visible;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: auto;
        flex-wrap: wrap;
    }

    .screenshot-item {
        flex: 0 0 auto;
    }

    .screenshot-item img {
        height: 420px;
    }
}

.screenshot-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 200;
}

.screenshot-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.screenshot-lightbox-inner {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: min(75vw, 400px);
    max-height: 80vh;
    padding: var(--spacing-md);
    position: relative;
    box-shadow: var(--shadow-xl, 0 25px 60px rgba(15, 23, 42, 0.2));
    overflow: auto;
}

.screenshot-lightbox-inner img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: none;
}

.screenshot-lightbox-caption {
    margin-top: var(--spacing-sm);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .screenshot-lightbox {
        padding: var(--spacing-lg);
    }

    .screenshot-lightbox-inner {
        max-width: 280px;
        width: 70vw;
        max-height: 70vh;
        padding: var(--spacing-sm);
    }

    .screenshot-lightbox-caption {
        font-size: 0.8rem;
    }
}


.badge-pro {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 4px;
}

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

.faq-list {
    display: grid;
    gap: 20px;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

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

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

.faq-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Testimonial Section
   -------------------------------------------------------------------------- */
.testimonial-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03), transparent);
}

.testimonial-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.testimonial-author {
    color: var(--color-text-muted);
}

.testimonial-author strong {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.trust-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.trust-section h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.trust-body {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-surface);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.trust-badge-icon {
    font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   Final CTA Section
   -------------------------------------------------------------------------- */
.final-cta {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
    color: white;
}

.final-cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.final-cta .app-store-badge {
    height: 54px;
    margin: 0 auto;
}

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

.final-cta-meta {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 40px 0;
    background: var(--color-footer-bg);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    border-radius: var(--radius-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-contact {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Privacy Policy Page
   -------------------------------------------------------------------------- */
.privacy-content {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-section);
}

.privacy-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-xs);
}

.privacy-updated {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xl);
}

.privacy-section {
    margin-bottom: var(--spacing-lg);
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.privacy-section p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--color-text-muted);
}

.privacy-section ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

.privacy-section li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.privacy-section a {
    color: var(--color-primary);
    font-weight: 500;
}

.privacy-section a:hover {
    color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        padding: 48px 0 32px;
    }

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

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

    /* Keep header horizontal on mobile */
    .header-content {
        flex-direction: row;
        gap: var(--spacing-sm);
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .app-store-badge {
        height: 36px;
    }

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

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .screenshots-carousel {
        padding-left: var(--spacing-md);
    }

    .screenshot-item img {
        height: 400px;
    }
}
