/* ===========================================================================
   Module introduction modal (Showcase only)

   Fills the house .modal-overlay / .modal-container.modal-xl shell from
   v2-styles.css; this file styles only what goes inside. The look copies the
   About pages (guide.css): the same green payoff strip, the same label
   weights, so it reads as part of the app rather than a marketing overlay.

   Structure:
     #module-intro-modal.modal-overlay
       .modal-container.modal-xl.mi-container
         .modal-header.mi-header > .mi-heading (.mi-icon + eyebrow + title) + .modal-close
         .modal-body.mi-body
           .mi-kicker, .mi-lead
           .mi-columns > .mi-card.mi-pain + .mi-card.mi-fix (each: title + ul.mi-points)
           .mi-payoff
           .mi-sections > label + .mi-chips
         .modal-footer.mi-footer
   =========================================================================== */

.mi-container {
    max-width: 1100px;
}

/* ---- Header ---- */

.mi-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mi-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 2px;
}

/* ---- Opening ---- */

.mi-kicker {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 10px;
}

.mi-lead {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 20px;
}

/* ---- Pain / fix columns ---- */

.mi-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.mi-card {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 18px 20px;
    background: #ffffff;
}

.mi-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mi-pain {
    background: #fffbeb;
    border-color: #fde68a;
}

.mi-pain .mi-card-title {
    color: #b45309;
}

.mi-pain .mi-card-title i {
    color: #d97706;
}

.mi-fix {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mi-fix .mi-card-title {
    color: #047857;
}

.mi-fix .mi-card-title i {
    color: #059669;
}

.mi-points {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #334155;
}

.mi-points li + li {
    margin-top: 8px;
}

.mi-points strong {
    color: #0f172a;
}

.mi-pain .mi-points li::marker {
    color: #d97706;
}

.mi-fix .mi-points li::marker {
    color: #059669;
}

/* ---- Payoff strip: same family as .fg-payoff on the About pages ---- */

.mi-payoff {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #065f46;
    margin-bottom: 16px;
}

.mi-payoff > i {
    color: #059669;
    font-size: 15px;
    margin-top: 2px;
}

.mi-payoff strong {
    color: #064e3b;
}

/* ---- Section chips ---- */

.mi-sections {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.mi-sections-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

.mi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mi-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}

/* ---- Footer ---- */

.mi-footer {
    justify-content: space-between;
    align-items: center;
}

.mi-learn-more {
    font-size: 13px;
    color: #64748b;
}

.mi-learn-more a {
    color: #059669;
    font-weight: 600;
    text-decoration: underline;
}

.mi-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* ---- Narrow screens: one column; the shared responsive layer already turns
   the shell into a bottom sheet under 640px ---- */

@media (max-width: 767px) {
    .mi-columns {
        grid-template-columns: 1fr;
    }

    .mi-kicker {
        font-size: 17px;
    }

    .mi-lead {
        font-size: 14px;
    }
}
