/* ========================================
   ESSENTIA STYLES - MOBILE-FIRST
   Design System: Estilo que Cuida
   ======================================== */

/* ===================================
   ESSENTIA COLOR TOKENS
   =================================== */

:root {
    /* Essentia Accent (Verde) */
    --essentia-50: #E6F7F2;
    --essentia-100: #C6F6D5;
    --essentia-500: #00B386; /* Base */
    --essentia-700: #008F6B; /* Hover */
    --essentia-900: #006B51; /* Dark */
}

/* ===================================
   ESSENTIA CTA BUTTONS
   =================================== */

.essentia-cta {
    background: var(--essentia-500);
    color: white;
}

@media (hover: hover) {
    .essentia-cta:hover {
        background: var(--essentia-700);
    }
}

.essentia-cta:active {
    transform: scale(0.98);
}

.essentia-accent {
    color: var(--essentia-500);
}

/* ===================================
   ESSENTIA HERO
   =================================== */

.essentia-hero {
    padding: 6rem 1rem 3rem; /* Mobile */
    background: linear-gradient(to bottom, #FAFBFC, white);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .essentia-hero {
        padding: 8rem 2rem 5rem;
    }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    background: var(--essentia-50);
    border: 1px solid rgba(0, 179, 134, 0.2);
    border-radius: 50px;
    color: var(--essentia-700);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.badge-new span {
    background: var(--essentia-500);
    color: white;
    border-radius: 50px;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
}

/* ===================================
   SOCIAL PROOF
   =================================== */

.social-proof {
    padding: 2rem 1rem;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    background: white;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    opacity: 0.7;
    transition: all 0.5s;
}

@media (hover: hover) {
    .stats-grid:hover {
        opacity: 1;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A202C;
}

.stat-label {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #718096;
    text-transform: uppercase;
}

/* ===================================
   FEATURES GRID
   =================================== */

/* Mobile: 1 coluna */
.features-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

/* Tablet: 2 colunas */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 colunas */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

@media (hover: hover) {
    .feature-card:hover {
        background: rgba(255,255,255,0.1);
    }
}

.feature-icon {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    width: fit-content;
}

/* ===================================
   PRICING SECTION
   =================================== */

/* Mobile: 1 coluna */
.pricing-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

/* Desktop: 3 colunas */
@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

@media (hover: hover) {
    .pricing-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

.pricing-card.featured {
    border: 2px solid var(--essentia-500);
    box-shadow: 0 10px 40px rgba(0,179,134,0.15);
    position: relative;
}

@media (min-width: 1024px) {
    .pricing-card.featured {
        transform: translateY(-1rem);
    }
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--essentia-500);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card.dark {
    background: #1A202C;
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

.price-period {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
}

.pricing-card.dark .price-period {
    color: #A0AEC0;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
}

.pricing-card.dark .pricing-features {
    border-color: #4A5568;
}

.pricing-features li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #4A5568;
}

.pricing-card.dark .pricing-features li {
    color: #CBD5E0;
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-list {
    max-width: 48rem;
    margin: 3rem auto 0;
}

.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

@media (hover: hover) {
    .faq-item:hover {
        border-color: rgba(0,179,134,0.5);
    }
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    font-weight: 700;
    color: #1A202C;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px; /* Touch target */
}

.faq-icon {
    transition: transform 0.3s;
    color: #A0AEC0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0 1.5rem;
    color: #4A5568;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: var(--essentia-500);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-white {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--essentia-500);
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .btn-white:hover {
        box-shadow: 0 10px 40px rgba(255,255,255,0.3);
        transform: scale(1.05);
    }
}

.btn-outline-white {
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .btn-outline-white:hover {
        background: rgba(255,255,255,0.1);
    }
}

/* ===================================
   PHONE MOCKUP
   =================================== */

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: #1A202C;
    border-radius: 3rem;
    border: 8px solid #1A202C;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: rotate(-6deg);
    transition: transform 0.7s;
    margin: 0 auto;
}

@media (hover: hover) {
    .phone-mockup:hover {
        transform: rotate(0deg);
    }
}

.phone-screen {
    position: absolute;
    inset: 0;
    background: #FAFBFC;
    overflow: hidden;
}

.phone-header {
    background: white;
    padding: 3rem 1.5rem 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-header-label {
    font-size: 0.625rem;
    color: #A0AEC0;
    font-family: 'JetBrains Mono', monospace;
}

.phone-header-title {
    font-weight: 700;
    color: #1A202C;
    font-size: 0.875rem;
}

.phone-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #E2E8F0;
}

.meal-cards {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meal-card {
    background: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #F7FAFC;
    display: flex;
    gap: 0.75rem;
}

.meal-card.faded {
    opacity: 0.5;
}

.meal-thumb {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
}

.meal-thumb.green { background: #C6F6D5; }
.meal-thumb.orange { background: #FED7AA; }
.meal-thumb.blue { background: #BEE3F8; }

.meal-info {
    flex: 1;
}

.meal-title {
    height: 1rem;
    background: #E2E8F0;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.meal-title.w-24 { width: 6rem; }
.meal-title.w-32 { width: 8rem; }
.meal-title.w-28 { width: 7rem; }

.meal-subtitle {
    height: 0.75rem;
    background: #F7FAFC;
    border-radius: 0.25rem;
}

.meal-subtitle.w-16 { width: 4rem; }
.meal-subtitle.w-20 { width: 5rem; }
.meal-subtitle.w-12 { width: 3rem; }

.ai-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    background: var(--essentia-500);
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,179,134,0.3);
}

/* ===================================
   MODALS AND UTILITIES (Restored)
   =================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    max-width: 90%;
    width: 400px;
    z-index: 10;
    animation: slideUp 0.3s ease-out;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4A5568;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #E2E8F0;
    padding: 1rem;
    z-index: 9998;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}
.cookie-banner.active {
    display: block;
}
.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-cookie-accept {
    background: #00B386;
    color: white;
}
.btn-cookie-decline {
    background: #EDF2F7;
    color: #4A5568;
}

.sticky-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: white;
    border-top: 1px solid #E2E8F0;
    z-index: 9990;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}
.sticky-mobile.active {
    display: flex;
    justify-content: center;
}
.btn-sticky {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #00B386;
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
}

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