/* SaaS page styles — trang "Giải pháp phần mềm SaaS theo yêu cầu".
   Kế thừa design system trang dịch vụ (đồng bộ website-design + erp + crm):
   accent đỏ #e31d22 + nút primary var(--site-primary), glass theo liquid-glass-ui.
   Bố cục CỐ TÌNH khác ERP (bento) & CRM (editorial split / vertical timeline):
   feature 1 lớn+2 nhỏ+trio, benefit ledger rows, quy trình step-card LỆCH TẦNG,
   bảng SO SÁNH SaaS vs đóng gói. Nạp qua @push('styles') + ?v=filemtime. */

/* ============================================================
   BASE — hệ thống service-* dùng chung của trang dịch vụ (self-contained).
   ============================================================ */
.service-page { color: #0f172b; background: #fff; }

.service-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 22px;
    border-radius: 999px;
    color: #ed1c24;
    background: #fff;
    border: 1px solid rgba(237, 28, 36, .28);
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.service-eyebrow--solid {
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #e31d22, #c9151b);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(227, 29, 34, .18);
}
.service-eyebrow--solid::before { content: '★'; color: #fff; font-size: 12px; line-height: 1; }

.service-section-title {
    margin-top: 10px;
    color: #0f172b;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.24;
    font-weight: 900;
}
.service-section-text { margin-top: 9px; color: #64748b; font-size: 14px; line-height: 1.75; }

.service-hero {
    position: relative;
    overflow: hidden;
    /* padding-top do header.css (.service-hero → 120px) quản lý — nguồn duy nhất */
    padding-bottom: 56px;
    background:
        radial-gradient(circle at 88% 48%, rgba(var(--site-primary-rgb, 59, 79, 232), .08) 0 15%, transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: 54px;
    align-items: center;
}
.service-hero h1 {
    margin: 16px 0 18px;
    max-width: 640px;
    font-size: clamp(30px, 3.35vw, 44px);
    line-height: 1.13;
    font-weight: 900;
    letter-spacing: 0;
}
.service-hero h1 span { display: block; color: #e31d22; }
.service-lead { max-width: 580px; color: #64748b; font-size: 15px; line-height: 1.8; }

.service-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0 30px;
}
.service-feature { min-width: 0; }

.service-icon,
.service-feature__icon,
.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #e31d22;
    background: #fff1f1;
    border: 1px solid #ffe1e1;
}
.service-icon svg,
.service-feature__icon svg,
.service-card__icon svg { width: 21px; height: 21px; }

.service-feature h3 { margin: 10px 0 2px; font-size: 13px; font-weight: 900; }
.service-feature p { color: #64748b; font-size: 12px; line-height: 1.45; }

.service-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.service-btn:hover { transform: translateY(-1px); }
.service-btn--primary {
    color: #fff;
    font-weight: 600;
    background: var(--site-primary, #3B4FE8);
    box-shadow: 0 10px 24px rgba(var(--site-primary-rgb, 59, 79, 232), .3);
}
.service-btn--primary:hover { background: var(--site-primary-dark, #2B3FD9); }
.service-btn--outline {
    color: var(--site-primary, #3B4FE8);
    background: #fff;
    border: 1.5px solid var(--site-primary, #3B4FE8);
}
.service-btn--outline:hover { background: var(--site-primary-soft, #eef2ff); }

.service-section { padding: 58px 0; }
.service-section--tight { padding-top: 42px; }
.service-section-header { max-width: 690px; margin: 0 auto 36px; text-align: center; }
.service-section-header--left { max-width: 660px; margin: 0 0 30px; text-align: left; }
.service-center-action { margin-top: 28px; text-align: center; }

.service-cta { padding: 20px 0 72px; }
.service-cta-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    overflow: hidden;
    padding: 26px 34px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 45%, rgba(255, 255, 255, .16), transparent 24%),
        linear-gradient(135deg, #e31d22 0%, #c9151b 100%);
    box-shadow: 0 26px 70px rgba(227, 29, 34, .24);
}
.service-cta-card img { width: 100%; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .18)); }
.service-cta-card h2 { color: #fff; font-size: clamp(22px, 3vw, 31px); font-weight: 900; line-height: 1.25; }
.service-cta-card p { margin-top: 9px; color: rgba(255, 255, 255, .84); font-size: 14px; line-height: 1.7; }
.service-cta-actions { display: flex; gap: 12px; }
.service-cta-actions .service-btn--primary { color: #e31d22; background: #fff; box-shadow: none; }
.service-cta-actions .service-btn--outline { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .5); }

/* Nền wash mềm — lõi tông site, 2 mép fade về trong suốt (liquid-glass §4b). */
.saas-soft {
    background:
        linear-gradient(180deg,
            rgba(var(--site-primary-rgb, 59, 79, 232), 0) 0,
            rgba(var(--site-primary-rgb, 59, 79, 232), .045) 130px,
            rgba(var(--site-primary-rgb, 59, 79, 232), .045) calc(100% - 130px),
            rgba(var(--site-primary-rgb, 59, 79, 232), 0) 100%);
}

/* ============================================================
   1. HERO VISUAL — panel kính CHỒNG LỚP (cloud stack) + chip uptime nổi.
   Khác ERP (ảnh trong vòng tròn) & CRM (1 board + 2 chip).
   ============================================================ */
.saas-hero-visual {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.saas-hero-visual::before {
    content: '';
    position: absolute;
    inset: 8% 3% 3% 14%;
    border-radius: 28px;
    background: #eef4ff;
    z-index: 0;
}
.saas-hero-back {
    position: absolute;
    z-index: 1;
    top: 6%;
    right: 4%;
    width: 58%;
    height: 46%;
    border-radius: 18px;
    background:
        radial-gradient(120% 120% at 0 0, rgba(227, 29, 34, .12), transparent 50%),
        rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 18px 40px rgba(15, 23, 43, .12), inset 0 1px 0 rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}
.saas-hero-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 540px);
    margin-top: 32px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 30px 64px rgba(15, 23, 43, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
}
.saas-hero-panel img { width: 100%; height: auto; display: block; }
.saas-hero-chip {
    position: absolute;
    z-index: 3;
    bottom: 22px;
    left: -10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 16px 38px rgba(15, 23, 43, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}
.saas-hero-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #e31d22;
    background: #fff1f1;
    border: 1px solid #ffe1e1;
}
.saas-hero-chip__icon svg { width: 20px; height: 20px; }
.saas-hero-chip strong { display: block; font-size: 17px; font-weight: 900; color: #0f172b; line-height: 1; }
.saas-hero-chip span { display: block; margin-top: 3px; font-size: 11.5px; color: #64748b; }

/* ============================================================
   2. SaaS LÀ GÌ — split: chữ TRÁI + card kính "vì sao SaaS" PHẢI (không ảnh,
   dạng danh sách lý do). Khác CRM (ảnh phải) & ERP (ảnh trái).
   ============================================================ */
.saas-why {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 46px;
    align-items: center;
}
.saas-why-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 20px 58px rgba(15, 23, 43, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
}
.saas-why-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #0f172b;
    font-size: 15px;
    font-weight: 900;
}
.saas-why-card__title::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #e31d22;
    box-shadow: 0 0 0 4px rgba(227, 29, 34, .14);
}
.saas-why-list { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; }
.saas-why-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; list-style: none; }
.saas-why-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #e31d22;
    background: #fff1f1;
    border: 1px solid #ffe1e1;
}
.saas-why-list__icon svg { width: 20px; height: 20px; }
.saas-why-list h4 { margin: 0 0 2px; font-size: 13.5px; font-weight: 900; color: #0f172b; }
.saas-why-list p { margin: 0; color: #64748b; font-size: 12.5px; line-height: 1.55; }
.saas-checklist { display: grid; gap: 12px; margin-top: 20px; padding: 0; }
.saas-checklist li {
    position: relative;
    padding-left: 32px;
    list-style: none;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.6;
}
.saas-checklist li strong { color: #0f172b; font-weight: 800; }
.saas-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff1f1;
    border: 1px solid #ffe1e1;
    color: #e31d22;
    font-size: 11px;
    font-weight: 900;
}

/* ============================================================
   3. DẢI SỐ LIỆU — băng ngang kính, 4 ô vách ngăn.
   ============================================================ */
.saas-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 20px 58px rgba(15, 23, 43, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
}
.saas-stat { padding: 26px 24px; text-align: center; border-left: 1px solid rgba(15, 23, 43, .07); }
.saas-stat:first-child { border-left: 0; }
.saas-stat strong { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1; color: #e31d22; }
.saas-stat span { display: block; margin-top: 8px; color: #64748b; font-size: 12.5px; }

/* ============================================================
   4. NĂNG LỰC SaaS — "1 lớn + 2 nhỏ" (§1d) + hàng trio. KHÔNG bento (khác
   ERP 4 cột & CRM 3 cột).
   ============================================================ */
.saas-caps {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 26px;
}
.saas-cap-feature {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 20px;
    box-shadow: 0 20px 58px rgba(15, 23, 43, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    transition: transform .22s ease, border-color .22s ease;
}
.saas-cap-feature:hover { transform: translateY(-4px); border-color: #fecaca; }
.saas-cap-feature__shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eef2ff; }
.saas-cap-feature__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.saas-cap-feature:hover .saas-cap-feature__shot img { transform: scale(1.04); }
.saas-cap-feature__badge {
    position: absolute; left: 14px; top: 14px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .56); color: #0f172b;
    border: 1px solid rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    font-size: 11px; font-weight: 800;
}
.saas-cap-feature__body { padding: 24px 26px; display: flex; flex-direction: column; flex: 1; }
.saas-cap-feature__body h3 { font-size: 19px; font-weight: 900; color: #0f172b; margin-bottom: 8px; }
.saas-cap-feature__body > p { color: #64748b; font-size: 13px; line-height: 1.65; }
.saas-cap-feature__list { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; }
.saas-cap-feature__list li {
    position: relative; padding-left: 24px; list-style: none;
    color: #475569; font-size: 12.5px; line-height: 1.5;
}
.saas-cap-feature__list li::before {
    content: '✓'; position: absolute; left: 0; top: 0; color: #e31d22; font-weight: 900;
}
.saas-cap-mini {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 43, .06), inset 0 1px 0 rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    transition: transform .22s ease, border-color .22s ease;
}
.saas-cap-mini:hover { transform: translateY(-3px); border-color: #fecaca; }
.saas-cap-mini:hover .service-card__icon { transform: translateY(-2px) scale(1.05); }
.saas-cap-mini h3 { font-size: 14.5px; font-weight: 900; color: #0f172b; margin-bottom: 4px; }
.saas-cap-mini p { color: #64748b; font-size: 12.5px; line-height: 1.55; }

.saas-caps-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.saas-cap-card {
    padding: 22px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 16px;
    box-shadow: 0 20px 58px rgba(15, 23, 43, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    transition: transform .22s ease, border-color .22s ease;
}
.saas-cap-card:hover { transform: translateY(-4px); border-color: #fecaca; }
.saas-cap-card:hover .service-card__icon { transform: translateY(-2px) scale(1.05); }
.saas-cap-card h3 { margin: 14px 0 7px; font-size: 15px; font-weight: 900; color: #0f172b; }
.saas-cap-card p { color: #64748b; font-size: 12.5px; line-height: 1.6; }

/* ============================================================
   5. LỢI ÍCH — "benefit ledger": hàng full-width [icon | text | stat].
   Khác ERP (split numbered) & CRM (spotlight + grid).
   ============================================================ */
.saas-benefits { display: grid; gap: 14px; margin-top: 22px; }
.saas-benefit-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 20px 26px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 43, .06), inset 0 1px 0 rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    transition: transform .22s ease, border-color .22s ease;
}
.saas-benefit-row:hover { transform: translateX(6px); border-color: #fecaca; }
.saas-benefit-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    color: #e31d22;
    background: #fff1f1;
    border: 1px solid #ffe1e1;
    transition: transform .25s ease;
}
.saas-benefit-row:hover .saas-benefit-row__icon { transform: scale(1.06); }
.saas-benefit-row__icon svg { width: 25px; height: 25px; }
.saas-benefit-row h3 { font-size: 15px; font-weight: 900; color: #0f172b; margin-bottom: 3px; }
.saas-benefit-row p { color: #64748b; font-size: 12.5px; line-height: 1.55; max-width: 62ch; }
.saas-benefit-row__stat { text-align: right; min-width: 92px; }
.saas-benefit-row__stat strong { display: block; font-size: 24px; font-weight: 900; color: #e31d22; line-height: 1; }
.saas-benefit-row__stat span { display: block; margin-top: 5px; font-size: 11px; color: #64748b; }

/* ============================================================
   6. QUY TRÌNH — step-card LỆCH TẦNG (cột chẵn tụt xuống) + số ghost. Khác
   ERP (timeline ngang comet) & CRM (timeline dọc). Offset bằng margin-top
   (KHÔNG transform) để không xung đột với reveal.
   ============================================================ */
.saas-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}
.saas-flow__step {
    position: relative;
    overflow: hidden;
    padding: 24px 22px 22px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    box-shadow: 0 20px 58px rgba(15, 23, 43, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    transition: transform .22s ease, border-color .22s ease;
}
.saas-flow__step:hover { transform: translateY(-4px); border-color: #fecaca; }
/* Lệch tầng: cột giữa (2,5) tụt xuống — dùng margin-top (layout tĩnh, không animate) */
.saas-flow__step:nth-child(3n+2) { margin-top: 34px; }
.saas-flow__ghost {
    position: absolute;
    top: 8px;
    right: 14px;
    z-index: 0;
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    color: rgba(227, 29, 34, .08);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.saas-flow__node {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #e31d22;
    background: #fff1f1;
    border: 1px solid #ffe1e1;
    transition: transform .25s ease;
}
.saas-flow__step:hover .saas-flow__node { transform: translateY(-2px) scale(1.05); }
.saas-flow__node svg { width: 24px; height: 24px; }
.saas-flow__step h3 { position: relative; z-index: 1; margin: 16px 0 7px; font-size: 15px; font-weight: 900; color: #0f172b; }
.saas-flow__step p { position: relative; z-index: 1; color: #64748b; font-size: 12.5px; line-height: 1.62; }

/* ============================================================
   7. BẢNG GIÁ SaaS — 3 gói subscription, gói GIỮA nâng lên (lệch tầng).
   ============================================================ */
.saas-pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 24px;
}
.saas-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    box-shadow: 0 20px 58px rgba(15, 23, 43, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    transition: transform .22s ease, border-color .22s ease;
}
.saas-plan:hover { transform: translateY(-4px); border-color: #fecaca; }
.saas-plan--featured {
    margin-top: -18px;
    padding-top: 46px;
    padding-bottom: 46px;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #e31d22 0%, #c9151b 100%);
    box-shadow: 0 30px 74px rgba(227, 29, 34, .28);
}
.saas-plan__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff;
    color: #e31d22;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.saas-plan__name { color: #0f172b; font-size: 16px; font-weight: 900; }
.saas-plan__price { margin: 12px 0 4px; color: #0f172b; font-size: 26px; font-weight: 900; }
.saas-plan__price span { color: #64748b; font-size: 13px; font-weight: 700; }
.saas-plan__desc { color: #64748b; font-size: 12.5px; line-height: 1.6; }
.saas-plan__features { display: grid; gap: 10px; margin: 18px 0 22px; padding: 0; }
.saas-plan__features li {
    position: relative; padding-left: 24px; list-style: none;
    color: #475569; font-size: 12.5px; line-height: 1.5;
}
.saas-plan__features li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #e31d22; font-weight: 900; }
.saas-plan .service-btn { margin-top: auto; width: 100%; }
.saas-plan--featured .saas-plan__name,
.saas-plan--featured .saas-plan__price,
.saas-plan--featured .saas-plan__price span,
.saas-plan--featured .saas-plan__desc,
.saas-plan--featured .saas-plan__features li { color: #fff; }
.saas-plan--featured .saas-plan__features li::before { color: #fff; }
.saas-plan--featured .service-btn--primary { color: #e31d22; background: #fff; box-shadow: none; }

/* ============================================================
   8. BẢNG SO SÁNH — SaaS vs phần mềm đóng gói (glass table). Shape mới.
   ============================================================ */
.saas-compare {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .56);
    box-shadow: 0 20px 58px rgba(15, 23, 43, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    margin-top: 22px;
}
.saas-compare table { width: 100%; border-collapse: collapse; }
.saas-compare th,
.saas-compare td { padding: 15px 20px; text-align: left; vertical-align: middle; }
.saas-compare thead th {
    color: #0f172b;
    font-size: 13.5px;
    font-weight: 900;
    background: rgba(255, 255, 255, .5);
    border-bottom: 1px solid rgba(15, 23, 43, .08);
}
.saas-compare thead th:nth-child(2) { color: #e31d22; }
.saas-compare tbody td { font-size: 13px; color: #475569; border-bottom: 1px solid rgba(15, 23, 43, .06); }
.saas-compare tbody tr:last-child td { border-bottom: 0; }
.saas-compare tbody th {
    font-size: 13px;
    font-weight: 800;
    color: #0f172b;
    border-bottom: 1px solid rgba(15, 23, 43, .06);
}
.saas-compare col.saas-compare__hl { }
.saas-compare tbody td:nth-child(2) { color: #0f172b; font-weight: 700; background: rgba(227, 29, 34, .04); }
.saas-compare thead th:nth-child(2) { background: rgba(227, 29, 34, .06); }
.saas-compare__yes { color: #e31d22; font-weight: 900; }
.saas-compare__no { color: #94a3b8; }
.saas-compare__links { margin-top: 16px; font-size: 13px; color: #64748b; }
.saas-compare__links a { color: var(--site-primary, #3B4FE8); font-weight: 800; }

/* ============================================================
   9. CASE SPOTLIGHT — placeholder (ảnh + số liệu).
   ============================================================ */
.saas-case {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 20px 58px rgba(15, 23, 43, .11), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
}
.saas-case__shot { position: relative; overflow: hidden; min-height: 300px; background: #eef2ff; }
.saas-case__shot img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.saas-case__badge {
    position: absolute; left: 16px; top: 16px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .56); color: #0f172b;
    border: 1px solid rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    font-size: 11px; font-weight: 800;
}
.saas-case__body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.saas-case__body h3 { font-size: 20px; font-weight: 900; color: #0f172b; }
.saas-case__body p { margin-top: 10px; color: #475569; font-size: 13.5px; line-height: 1.7; }
.saas-case__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.saas-case__metric strong { display: block; font-size: 26px; font-weight: 900; color: #e31d22; line-height: 1; }
.saas-case__metric span { display: block; margin-top: 6px; font-size: 11.5px; color: #64748b; line-height: 1.4; }

/* ============================================================
   FALLBACK — không hỗ trợ backdrop-filter → nền gần đặc.
   ============================================================ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .saas-hero-back, .saas-hero-panel, .saas-hero-chip, .saas-why-card,
    .saas-stats, .saas-cap-feature, .saas-cap-mini, .saas-cap-card,
    .saas-cap-feature__badge, .saas-benefit-row, .saas-flow__step,
    .saas-plan, .saas-compare, .saas-case, .saas-case__badge { background: rgba(255, 255, 255, .93); }
    .saas-plan--featured { background: linear-gradient(135deg, #e31d22 0%, #c9151b 100%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
    .service-hero-grid, .service-cta-card { grid-template-columns: 1fr; }
    .service-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-why { grid-template-columns: 1fr; gap: 28px; }
    .saas-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-stat:nth-child(odd) { border-left: 0; }
    .saas-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(15, 23, 43, .07); }
    .saas-caps { grid-template-columns: 1fr; }
    .saas-cap-feature { grid-row: auto; }
    .saas-caps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .saas-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-flow__step:nth-child(3n+2) { margin-top: 0; }
    .saas-flow__step:nth-child(2n) { margin-top: 28px; }
    .saas-pricing { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    .saas-plan--featured { margin-top: 0; padding-top: 28px; padding-bottom: 28px; }
    .saas-case { grid-template-columns: 1fr; }
    .service-cta-card { text-align: center; }
    .service-cta-card img { max-width: 260px; margin: 0 auto; }
    .service-cta-actions { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .service-hero { padding-bottom: 44px; }
    .service-features { grid-template-columns: 1fr; }
    .saas-hero-visual { min-height: 300px; }
    .saas-hero-back { display: none; }
    .saas-hero-chip { left: 0; }
    .saas-stats { grid-template-columns: 1fr; }
    .saas-stat { border-left: 0; border-top: 1px solid rgba(15, 23, 43, .07); }
    .saas-stat:first-child { border-top: 0; }
    .saas-caps-row { grid-template-columns: 1fr; }
    .saas-benefit-row { grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 18px; }
    .saas-benefit-row__stat { grid-column: 2; text-align: left; margin-top: 4px; }
    .saas-flow { grid-template-columns: 1fr; }
    .saas-flow__step:nth-child(2n) { margin-top: 0; }
    .saas-case__body { padding: 24px 22px; }
    .saas-compare { overflow-x: auto; }
    .saas-compare table { min-width: 560px; }
    .service-section { padding: 46px 0; }
}

/* ============================================================
   ANIMATIONS — chỉ transform/opacity (GPU). Gate .saas-anim trên <html>
   (script <head> chỉ thêm khi hỗ trợ IO & KHÔNG prefers-reduced-motion).
   ============================================================ */
.saas-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.saas-orb { position: absolute; border-radius: 999px; filter: blur(34px); opacity: .55; will-change: transform; }
.saas-orb--1 {
    width: 320px; height: 320px; top: -60px; right: 4%;
    background: radial-gradient(circle at 32% 30%, rgba(var(--site-primary-rgb, 59, 79, 232), .4), transparent 70%);
}
.saas-orb--2 {
    width: 260px; height: 260px; bottom: -50px; left: -40px;
    background: radial-gradient(circle at 32% 30%, rgba(227, 29, 34, .2), transparent 70%);
}
.service-hero .service-container { position: relative; z-index: 1; }

/* Scroll-reveal — hero KHÔNG dùng (giữ LCP nhanh) */
.saas-anim [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.saas-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero entrance — KHÔNG đụng H1/lead (giữ LCP). Chỉ chip tính năng, nút, ảnh. */
@keyframes saasFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.saas-anim .service-hero .service-feature { animation: saasFadeUp .6s both; }
.saas-anim .service-hero .service-feature:nth-child(1) { animation-delay: .05s; }
.saas-anim .service-hero .service-feature:nth-child(2) { animation-delay: .13s; }
.saas-anim .service-hero .service-feature:nth-child(3) { animation-delay: .21s; }
.saas-anim .service-hero .service-feature:nth-child(4) { animation-delay: .29s; }
.saas-anim .service-hero .service-actions { animation: saasFadeUp .6s .34s both; }
/* Hero visual có thể là LCP → chỉ trượt (transform), KHÔNG opacity. */
@keyframes saasRiseUp { from { transform: translateY(24px); } to { transform: none; } }
.saas-anim .saas-hero-visual { animation: saasRiseUp .7s .12s both; }

.saas-anim .saas-orb--1 { animation: saasFloat 9s ease-in-out infinite; }
.saas-anim .saas-orb--2 { animation: saasFloat 11s ease-in-out .6s infinite; }
@keyframes saasFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -22px, 0); } }

@media (prefers-reduced-motion: reduce) {
    .saas-orb { animation: none !important; }
    .saas-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
