/* ==========================================================================
   TULAA APP SECTION COMPONENT (GRID LAYOUT)
   ========================================================================== */

#tulaa {
    text-align: center;
}

.tulaa-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.15rem;
    line-height: 1.7;
    padding: 0 1rem;
    color: var(--text-gray);
}

.tulaa-intro strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ==========================================================================
   FEATURE GRID & CARDS
   ========================================================================== */
.tulaa-features-grid {
    display: grid;
    /* Lowered from 240px to 200px so it stays 3-columns on smaller laptop screens */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 850px;
    /* Brought in slightly from 900px to stop them stretching too wide */
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.tulaa-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 16px;
    /* Slightly tighter border radius */
    padding: 1.25rem 1.25rem;
    /* Reduced padding for a more compact card */
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(140, 74, 50, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* Forces all content to the left inside the flexbox */
    min-height: 80px;
    /* Reduced from 140px to fix the excessive height */
}

.tulaa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

/* Typography Inside Cards */
.tulaa-card-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    /* Scaled down slightly */
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.25rem;
    /* Tighter gap between title and description */
    text-align: left;
    /* THE FIX: Explicitly overrides the global h3 centering */
    position: relative;
    z-index: 2;
}

.tulaa-card-desc {
    font-size: 0.9rem;
    /* Scaled down slightly */
    color: var(--text-gray);
    line-height: 1.4;
    margin: 0;
    text-align: left;
    /* Ensures description stays left aligned too */
    position: relative;
    z-index: 2;
}

/* Large Faded Icon in bottom right */
.tulaa-card-watermark {
    position: absolute;
    /* Adjusted positioning to keep the emoji better anchored in the corner */
    bottom: -10px;
    right: -5px;
    font-size: 5rem;
    opacity: 0.06;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(100%);
}

/* Subtle Corner Gradients to match the screenshot */
.cycle-card {
    background: linear-gradient(145deg, #ffffff 50%, #fff0f5 100%);
}

.rhythm-card {
    background: linear-gradient(145deg, #ffffff 50%, #fffbea 100%);
}

.hydration-card {
    background: linear-gradient(145deg, #ffffff 50%, #f0f8ff 100%);
}

.fasting-card {
    background: linear-gradient(145deg, #ffffff 50%, #f8f5ff 100%);
}

.health-card {
    background: linear-gradient(145deg, #ffffff 50%, #fffaf0 100%);
}

.blog-card {
    background: linear-gradient(145deg, #ffffff 50%, #f0fff4 100%);
}

/* ==========================================================================
   ANIMATED SOCIAL PROOF TEXT
   ========================================================================== */
.tulaa-social-proof {
    font-size: 0.9rem;
    color: var(--text-gray);
    opacity: 0.8;
    text-align: center;
    min-height: 1.5rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(0);
}

/* Class toggled by JavaScript to create the animation */
.tulaa-social-proof.fade-out {
    opacity: 0;
    transform: translateY(5px);
}

/* ==========================================================================
   OFFICIAL APP STORE BADGES
   ========================================================================== */
.store-btn {
    display: inline-flex;
    align-items: center;
    background-color: #000000;
    color: #ffffff !important;
    border: 1px solid #a6a6a6;
    border-radius: 10px;
    padding: 8px 8px;
    text-decoration: none;
    min-width: 160px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.store-btn:hover {
    transform: translateY(-2px);
    background-color: #1a1a1a;
}

.store-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    object-fit: contain;
}

.store-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.store-text-small {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.5px;
}

.store-text-large {
    font-size: 19px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FOR TULAA GRID
   ========================================================================== */
@media (max-width: 600px) {
    .tulaa-features-grid {
        /* Forces exactly 2 columns of equal width */
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        /* Slightly tighter gap between cards */
        padding: 0 0.5rem;
    }

    .tulaa-card {
        padding: 1rem 0.75rem;
        /* Reduces inner padding to maximize space for text */
        min-height: 60px;
        border-radius: 12px;
    }

    .tulaa-card-title {
        font-size: 0.95rem;
        /* Scaled down for mobile */
        margin-bottom: 0.15rem;
    }

    .tulaa-card-desc {
        font-size: 0.8rem;
        /* Scaled down for mobile */
        line-height: 1.3;
    }

    .tulaa-card-watermark {
        font-size: 3.5rem;
        /* Shrinks the emoji so it doesn't overwhelm the smaller card */
        bottom: -5px;
        right: -5px;
    }
}