/* ============================================================
   MEED FRAMEWORK v2
   Premium Spacing, Alignment, Responsive System
   (NO HTML CHANGES REQUIRED)
   ============================================================ */

/* -------------------------------------------
   1. GLOBAL CONTAINER SYSTEM
   ------------------------------------------- */
.meed-container,
.section,
.centered-width,
.aup-benefits,
.aup-usecases,
.workflow,
.capability-compare,
.why-meed,
.cta-hero-final {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* -------------------------------------------
   2. GLOBAL SECTION SPACING (Premium Rhythm)
   ------------------------------------------- */
.section,
.meed-section,
.centered-width,
.aup-benefits,
.aup-usecases,
.workflow,
.capability-compare,
.why-meed {
    padding-top: 90px;
    padding-bottom: 90px;
}

.section-tight {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-xl {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* Space cleanup between back-to-back sections */
.section + .section,
.meed-section + .meed-section {
    margin-top: -20px;
}

/* -------------------------------------------
   3. TYPOGRAPHY — PREMIUM HEADINGS
   ------------------------------------------- */
.title,
.meed-title,
.aup-title,
.compare-title,
.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    color: #071A2F;
    margin-bottom: 24px;
    position: relative;
}

.title::after,
.meed-title::after,
.aup-title::after,
.compare-title::after {
    content: "";
    width: 90px;
    height: 4px;
    background: #1FCF8C;
    border-radius: 4px;
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
}

.subtitle,
.sublead,
.meed-subtitle,
.intro {
    max-width: 800px;
    margin: 0 auto 48px auto;
    font-size: 18px;
    line-height: 1.65;
    text-align: center;
    color: #3A4A5C;
}

/* -------------------------------------------
   4. CARD SYSTEM (Unified Premium Style)
   ------------------------------------------- */
.usecase-card,
.feature-card,
.why-card,
.compare-col,
.workflow-steps > div,
.aup-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.usecase-card:hover,
.feature-card:hover,
.why-card:hover,
.compare-col:hover,
.workflow-steps > div:hover,
.aup-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.12);
}

/* -------------------------------------------
   5. GRID ALIGNMENT (No HTML Changes Needed)
   ------------------------------------------- */
.usecase-grid,
.feature-cards,
.why-grid,
.workflow-steps,
.compare-table,
.aup-benefit-grid {
    display: grid;
    gap: 32px;
}

/* Auto-fit layout for laptops/tablets/phones */
.usecase-grid,
.aup-benefit-grid,
.feature-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.why-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.workflow-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compare-table {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* -------------------------------------------
   6. DARK SECTION TEXT FIXES
   ------------------------------------------- */
.dark-bg,
.dark-bg p,
.dark-bg li {
    color: #E8F1FF !important;
}

.dark-bg h2,
.title-light {
    color: #FFFFFF !important;
}

/* -------------------------------------------
   7. CTA PANEL UPGRADE
   ------------------------------------------- */
.cta-hero-final {
    max-width: 1280px;
    background: #071A2F;
    border-radius: 26px;
    padding: 70px 50px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}

.cta-hero-final h2 {
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-hero-final p {
    max-width: 750px;
    margin: 0 auto 34px auto;
    color: #DAE8FF;
    font-size: 18px;
}

/* -------------------------------------------
   8. RESPONSIVE BEHAVIOR (v2 Enhancements)
   ------------------------------------------- */
@media (max-width: 1024px) {
    .section,
    .meed-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .title,
    .meed-title {
        font-size: 34px;
    }

    .cta-hero-final {
        padding: 60px 28px;
    }
}

@media (max-width: 768px) {
    .section,
    .meed-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .title,
    .meed-title {
        font-size: 28px;
    }

    .subtitle,
    .intro {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .cta-hero-final {
        padding: 50px 22px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .title,
    .meed-title {
        font-size: 24px;
    }

    .subtitle,
    .intro {
        font-size: 16px;
    }

    .cta-hero-final {
        padding: 42px 18px;
    }
}
/* Increase breathing room under section titles */
.meed-title,
.section-title,
.aup-title {
    margin-bottom: 46px;  /* was ~24px */
}

.meed-title::after,
.section-title::after,
.aup-title::after {
    bottom: -18px;  /* lower the underline slightly */
}

.meed-subtitle {
    margin-bottom: 52px; /* ensure consistent space before cards/grids */
}
.meed-section,
.aup-benefits {
    padding-top: 90px;
    padding-bottom: 90px;
}



