/* 
  Manual Essencial do Autismo - Design System 
  Aesthetic: Calm, Empathetic, Safe, Modern
*/

:root {
    /* Color Palette */
    --primary: #14B8A6; /* Teal 500 - Calming and professional */
    --primary-dark: #0F766E; /* Teal 700 */
    --primary-light: #CCFBF1; /* Teal 50 */
    --accent: #F59E0B; /* Amber 500 - Warm, welcoming action color */
    --accent-hover: #D97706; /* Amber 600 */
    
    /* Backgrounds */
    --bg-page: #FAF5F0; /* Warm off-white, less clinical */
    --bg-white: #FFFFFF;
    --bg-alt: #F0FDFA; /* Soft teal tint for section alternation */
    
    /* Text Colors */
    --text-main: #334155; /* Slate 700 - Softer than pure black */
    --text-muted: #64748B; /* Slate 500 */
    --text-light: #475569;
    
    /* Decorative Colors for Icons/Tags */
    --icon-green: #D1FAE5;
    --icon-blue: #DBEAFE;
    --icon-orange: #FFEDD5;
    --icon-yellow: #FEF3C7;
    --icon-pink: #FCE7F3;
    --icon-purple: #F3E8FF;
    --icon-teal: #CCFBF1;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    /* Variables */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Utilities */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ==================
   Hero Section 
================== */
.hero {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-page) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background: var(--bg-white);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #0F172A; /* Deeper color for contrast */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.cta-button {
    background-color: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.guarantee-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-card .emoji {
    font-size: 2rem;
}

.floating-card .card-text strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

.floating-card .card-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================
   Empathy Section
================== */
.empathy {
    padding: 6rem 0;
    background: var(--bg-white);
}

.empathy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.empathy-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.empathy-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.quote-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.highlight-text {
    font-weight: 700;
    color: var(--text-main);
}

/* ==================
   Solution Section
================== */
.solution {
    padding: 5rem 0;
    background: var(--bg-alt);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.bg-green { background: var(--icon-green); }
.bg-blue { background: var(--icon-blue); }
.bg-orange { background: var(--icon-orange); }

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

/* ==================
   Library Section
================== */
.library {
    padding: 6rem 0;
    background: var(--bg-white);
}

.library-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.lib-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-md);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: var(--transition);
}

.lib-card:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

.lib-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.lib-card:hover .lib-icon {
    transform: rotate(0deg) scale(1.05);
}

.bg-yellow { background: var(--icon-yellow); }
.bg-pink { background: var(--icon-pink); }
.bg-purple { background: var(--icon-purple); }
.bg-teal { background: var(--icon-teal); }

.lib-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lib-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==================
   Pricing Section
================== */
.pricing {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.pricing-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.price-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.price-card.premium {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.price-card h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-box {
    text-align: center;
    margin-bottom: 2rem;
}

.old-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    font-family: var(--font-heading);
    margin-top: 0.25rem;
}

.payment-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

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

.check {
    color: var(--primary);
    font-weight: bold;
}

.cross {
    color: #EF4444;
}

.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.btn-outline, .btn-primary {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline {
    background: white;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.scarcity {
    text-align: center;
    font-size: 0.8rem;
    color: #EF4444; /* Red for alert */
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ==================
   FAQ Section
================== */
.faq {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.faq-item {
    border-bottom: 1px solid #E2E8F0;
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--text-main);
}

.toggle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
    padding-top: 0;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
}

/* ==================
   Footer
================== */
footer {
    background: #0F172A;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #94A3B8;
    transition: var(--transition);
}

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

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #64748B;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: inherit;
    margin: 0;
}

/* ==================
   Responsive Media Queries
================== */
@media (max-width: 900px) {
    .pricing-cards {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-card.premium {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .library-cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-cta-group {
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        left: 50%;
        transform: translateX(-50%) !important; /* Overrides animation on mobile layout lightly or re-align text */
        bottom: -30px;
        animation: none;
    }
    
    .empathy-container {
        grid-template-columns: 1fr;
    }
    
    .empathy-image-wrapper {
        order: -1;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
