/* Understudy Static Site Styles */
/* Following app design principles with Flutter app color scheme */
/* Primary: #625B72, Secondary: #D1C4E9, Tertiary: #E0AED0 */

:root {
    --primary-color: #625B72;
    --secondary-color: #D1C4E9;
    --tertiary-color: #E0AED0;
    --text-primary: #1C1B1F;
    --text-secondary: #49454F;
    --surface: #FFFBFE;
    --surface-variant: #F3EDF7;
    --outline: #79747E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-variant) 100%);
    padding: 2rem;
    text-align: center;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Call-to-Action Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-width: 160px;
    text-align: center;
}

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

.cta-button.primary:hover {
    background-color: #4E4763;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(98, 91, 114, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--outline);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Features Section */
#features {
    padding: 5rem 2rem;
    background: var(--surface);
}

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

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.feature-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(98, 91, 114, 0.08);
    border: 1px solid var(--outline);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(98, 91, 114, 0.15);
    border-color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* FAQs Section */
#faqs {
    background-color: var(--surface-variant);
    padding: 4rem 2rem;
}

#faqs h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(98, 91, 114, 0.1);
    border: 1px solid var(--outline);
}

.faq-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Collapsible FAQ (details/summary) */
details.faq-item {
    padding: 0;
    background: var(--surface);
    margin: 0 auto 1.5rem auto;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(98, 91, 114, 0.1);
    border: 1px solid var(--outline);
    overflow: hidden;
}

details.faq-item summary {
    list-style: none;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

details.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.28s ease;
}

details.faq-item[open] .faq-content {
    max-height: 400px;
    opacity: 1;
}

/* Testimonials Section */
#testimonials {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(98, 91, 114, 0.1);
    border: 1px solid var(--outline);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


.testimonial-carousel {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(98, 91, 114, 0.1);
    border: 1px solid var(--outline);
    text-align: center;
}

.testimonial-item blockquote {
    margin-bottom: 1.5rem;
}

.testimonial-item p {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid var(--outline);
    padding-top: 1.5rem;
}

.testimonial-author span {
    display: block;
}

.testimonial-author span:first-child {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* Get Started Section */
#get-started {
    background-color: var(--surface-variant);
    padding: 4rem 2rem;
    text-align: center;
}

#get-started h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

#get-started p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

#get-started .cta-button {
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-buttons .cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.store-icon {
    font-size: 1.4rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--surface);
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--surface);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-separator {
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-stats {
        grid-template-columns: 1fr;
    }
    
    #faqs h2 {
        font-size: 2rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 140px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-buttons .cta-button {
        min-width: 250px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
}
