/* ============================================================
   Expense Management — Pricing Page
   Design System: Electric Blue (#2563EB), Ubuntu font, INR
   ============================================================ */

/* ---- HERO ---- */
.em-hero {
    padding: 72px 0 52px;
    background: #FFFFFF;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #E5E5E5);
}

.em-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary-color, #2563EB);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.em-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.em-hero-sub {
    font-size: 17px !important;
    color: var(--text-muted, #6E6E73);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.em-hero-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted, #6E6E73);
    background: var(--bg-light, #F5F5F7);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color, #E5E5E5);
}

.em-hero-note i {
    color: var(--primary-color, #2563EB);
    font-size: 12px;
}

/* ---- PLANS SECTION ---- */
.em-plans-section {
    padding: 64px 0 80px;
    background: var(--bg-light, #F5F5F7);
}

.em-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* ---- PLAN CARD ---- */
.em-plan-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color, #E5E5E5);
    border-radius: 18px;
    padding: 32px 28px 36px;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.em-plan-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.em-plan-featured {
    border: 2px solid var(--primary-color, #2563EB);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
}

.em-plan-featured:hover {
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
}

.em-plan-enterprise {
    background: #FAFAFA;
}

/* Popular badge */
.em-popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Plan top section */
.em-plan-top {
    margin-bottom: 22px;
}

.em-plan-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 14px;
}

.em-icon-starter    { background: rgba(6, 182, 212, 0.1);   color: #0891B2; }
.em-icon-business   { background: rgba(37, 99, 235, 0.08);   color: var(--primary-color, #2563EB); }
.em-icon-enterprise { background: rgba(158, 94, 229, 0.1);  color: #7B3FBF; }

/* Plan category badge */
.em-plan-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.em-badge-starter    { background: rgba(6, 182, 212, 0.1);   color: #0E7490; }
.em-badge-business   { background: rgba(37, 99, 235, 0.08);   color: var(--primary-color, #2563EB); }
.em-badge-enterprise { background: rgba(158, 94, 229, 0.1);  color: #7B3FBF; }

.em-plan-name {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    margin-bottom: 5px;
    display: block;
}

.em-plan-tagline {
    font-size: 13.5px;
    color: var(--text-muted, #6E6E73);
    line-height: 1.4;
}

/* Price display */
.em-plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 6px;
    min-height: 52px;
}

.em-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    line-height: 1;
    align-self: flex-start;
    margin-top: 6px;
}

.em-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    letter-spacing: -0.04em;
    line-height: 1;
}

.em-period {
    font-size: 15px;
    color: var(--text-muted, #6E6E73);
    font-weight: 500;
    margin-left: 2px;
}

.em-price-custom {
    align-items: center;
    min-height: 52px;
}

.em-custom-label {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    letter-spacing: -0.02em;
}

.em-price-note {
    font-size: 12.5px;
    color: var(--text-muted, #6E6E73);
    margin-bottom: 22px;
}

/* CTA buttons */
.em-btn {
    display: block;
    text-align: center;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.em-btn-outline {
    border: 1.5px solid var(--border-color, #E5E5E5);
    color: var(--text-main, #1D1D1F);
    background: transparent;
}

.em-btn-outline:hover {
    border-color: var(--primary-color, #2563EB);
    color: var(--primary-color, #2563EB);
    background: rgba(37, 99, 235, 0.04);
}

.em-btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #FFFFFF;
    border: none;
}

.em-btn-primary:hover {
    background: #1D4ED8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* Divider */
.em-divider {
    height: 1px;
    background: var(--border-color, #E5E5E5);
    margin: 24px 0 20px;
}

/* Features list label */
.em-features-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #6E6E73);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

/* Features list */
.em-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.em-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-main, #1D1D1F);
    line-height: 1.4;
}

.em-feat-yes i { color: #2563EB; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.em-feat-no    { color: var(--text-muted, #6E6E73); }
.em-feat-no i  { color: #C0C0C5; font-size: 12px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.em-compare-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.em-compare-header {
    text-align: center;
    margin-bottom: 48px;
}

.em-compare-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.em-compare-header p {
    font-size: 16px;
    color: var(--text-muted, #6E6E73);
}

.em-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color, #E5E5E5);
    border-radius: 16px;
}

.em-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 620px;
}

.em-compare-table thead tr {
    background: var(--bg-light, #F5F5F7);
}

.em-compare-table th {
    padding: 18px 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main, #1D1D1F);
    text-align: center;
    border-bottom: 1px solid var(--border-color, #E5E5E5);
    line-height: 1.4;
}

.em-compare-table th.em-col-feature {
    text-align: left;
    width: 36%;
}

.em-th-price {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted, #6E6E73);
}

.em-col-plan { width: 21.3%; }

.em-col-featured {
    background: rgba(37, 99, 235, 0.04);
}

.em-compare-table th.em-col-featured {
    color: var(--primary-color, #2563EB);
}

.em-compare-table td {
    padding: 13px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #E5E5E5);
    color: var(--text-main, #1D1D1F);
    vertical-align: middle;
}

.em-compare-table td.em-col-feature {
    text-align: left;
    font-weight: 500;
    color: var(--text-main, #1D1D1F);
}

.em-compare-table td.em-col-featured {
    background: rgba(37, 99, 235, 0.025);
}

.em-row-group td.em-group-label {
    background: var(--bg-light, #F5F5F7);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #6E6E73);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #E5E5E5);
}

.em-yes       { color: #2563EB; font-size: 14px; }
.em-no        { color: #C0C0C5; font-size: 14px; }
.em-unlimited { color: var(--primary-color, #2563EB); font-weight: 600; }

/* Table footer */
.em-tfoot-cta td {
    padding: 20px;
    border-bottom: none;
}

.em-table-btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.em-tbtn-outline {
    border: 1.5px solid var(--border-color, #E5E5E5);
    color: var(--text-main, #1D1D1F);
    background: transparent;
}

.em-tbtn-outline:hover {
    border-color: var(--primary-color, #2563EB);
    color: var(--primary-color, #2563EB);
    background: rgba(37, 99, 235, 0.04);
}

.em-tbtn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #FFFFFF;
    border: none;
}

.em-tbtn-primary:hover {
    background: #1D4ED8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============================================================
   IDEAL FOR SECTION
   ============================================================ */
.em-ideal-section {
    padding: 80px 0;
    background: var(--bg-light, #F5F5F7);
}

.em-ideal-header {
    text-align: center;
    margin-bottom: 48px;
}

.em-ideal-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.em-ideal-header p {
    font-size: 16px;
    color: var(--text-muted, #6E6E73);
}

.em-ideal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.em-ideal-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color, #E5E5E5);
    border-radius: 16px;
    padding: 32px 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.em-ideal-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.em-ideal-featured {
    border-color: var(--primary-color, #2563EB);
    border-width: 2px;
}

.em-ideal-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light, #F5F5F7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted, #6E6E73);
    margin-bottom: 20px;
}

.em-ideal-icon-featured {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color, #2563EB);
}

.em-ideal-card h3 {
    font-size: 17px !important;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    margin-bottom: 12px;
}

.em-ideal-card p {
    font-size: 14px;
    color: var(--text-muted, #6E6E73);
    line-height: 1.65;
    margin-bottom: 24px;
}

.em-ideal-card p strong {
    color: var(--text-main, #1D1D1F);
    font-weight: 600;
}

.em-ideal-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-color, #2563EB);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.em-ideal-link:hover {
    gap: 10px;
}

.em-ideal-link-featured {
    color: var(--primary-color, #2563EB);
}

/* ============================================================
   FAQ
   ============================================================ */
.em-faq-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.em-faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.em-faq-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem) !important;
    font-weight: 700;
    color: var(--text-main, #1D1D1F);
    letter-spacing: -0.02em;
}

.em-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}

.em-faq-item {
    background: var(--bg-light, #F5F5F7);
    border: 1px solid var(--border-color, #E5E5E5);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.em-faq-item:hover {
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0,0,0,0.08));
}

.em-faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main, #1D1D1F);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.4;
}

.em-faq-q:hover {
    color: var(--primary-color, #2563EB);
}

.em-faq-icon {
    font-size: 11px;
    color: var(--text-muted, #6E6E73);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.em-faq-q.em-faq-open .em-faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color, #2563EB);
}

.em-faq-a {
    display: none;
    padding: 0 20px 18px;
}

.em-faq-a.em-faq-visible {
    display: block;
}

.em-faq-a p {
    font-size: 13.5px;
    color: var(--text-muted, #6E6E73);
    line-height: 1.65;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.em-cta-section {
    padding: 80px 0;
    background: var(--bg-light, #F5F5F7);
}

.em-cta-inner {
    background: linear-gradient(135deg, #0B1437 0%, #1338BE 50%, #2563EB 100%);
    border-radius: 20px;
    padding: 56px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.em-cta-text h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.em-cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 460px;
    line-height: 1.6;
}

.em-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.em-cta-btn-primary {
    padding: 12px 28px;
    background: #FFFFFF;
    color: var(--primary-color, #2563EB);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.em-cta-btn-primary:hover {
    background: #F0F4FF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.em-cta-btn-outline {
    padding: 12px 28px;
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.em-cta-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .em-plans-grid {
        grid-template-columns: 1fr 1fr;
    }

    .em-plan-enterprise {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .em-ideal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .em-ideal-grid > .em-ideal-card:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .em-hero {
        padding: 48px 0 40px;
    }

    .em-plans-section,
    .em-ideal-section {
        padding: 48px 0 56px;
    }

    .em-compare-section,
    .em-faq-section,
    .em-cta-section {
        padding: 56px 0;
    }

    .em-plans-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .em-plan-enterprise {
        grid-column: auto;
        max-width: 100%;
    }

    .em-ideal-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .em-ideal-grid > .em-ideal-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .em-faq-grid {
        grid-template-columns: 1fr;
    }

    .em-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
        gap: 28px;
    }

    .em-cta-text p { max-width: 100%; }

    .em-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .em-cta-btn-primary,
    .em-cta-btn-outline {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .em-plan-card {
        padding: 24px 20px 28px;
    }

    .em-ideal-card {
        padding: 24px 20px;
    }

    .em-amount {
        font-size: 36px;
    }

    .em-custom-label {
        font-size: 22px;
    }
}
