/* ============================================================
   CRM DEBUGZONE — For Law Firms / Litify page (LIGHT theme)
   Scoped under .lf-revamp. Static marketing page.
   ============================================================ */
.lf-revamp {
    --l-blue: #1d6cff; --l-blue-2: #1558d6; --l-cyan: #06b6d4; --l-cyan-2: #22d3ee;
    --l-navy: #0a2540; --l-ink: #16273f; --l-muted: #5a6b82;
    --l-bg: #f6f9fe; --l-bg-2: #eef5ff; --l-line: #e5edf7; --l-card: #fff;
    --l-radius: 18px; --l-radius-sm: 12px;
    --l-shadow: 0 22px 54px rgba(17, 66, 126, .12); --l-shadow-sm: 0 8px 24px rgba(17, 66, 126, .07);
    --l-font: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--l-ink); font-family: var(--l-font); background: #fff; overflow-x: hidden;
}
.lf-revamp p { color: var(--l-muted); line-height: 1.75; }
.lf-revamp a { text-decoration: none; }
.lf-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--l-blue); background: rgba(29, 108, 255, .08); padding: 7px 16px; border-radius: 999px; margin-bottom: 16px; }
.lf-eyebrow.on-dark { color: var(--l-cyan-2); background: rgba(34, 211, 238, .12); }
.lf-title { font-size: clamp(26px, 3.3vw, 38px); font-weight: 800; color: var(--l-navy); line-height: 1.16; margin: 0 0 12px; }
.lf-title .grad { background: linear-gradient(90deg, var(--l-blue), var(--l-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lf-sub { font-size: 16.5px; max-width: 740px; }
.lf-center { text-align: center; } .lf-center .lf-sub { margin: 0 auto; }
.lf-head { margin-bottom: 46px; }
.lf-section { padding: 78px 0; }
.lf-section.tint { background: var(--l-bg); }

.lf-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; padding: 14px 28px; border-radius: 999px; transition: transform .15s ease, box-shadow .18s ease, background .18s ease; border: none; cursor: pointer; }
.lf-btn-primary { background: linear-gradient(135deg, var(--l-blue), var(--l-cyan)); color: #fff; box-shadow: 0 12px 26px rgba(29, 108, 255, .30); }
.lf-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(29, 108, 255, .38); }
.lf-btn-ghost { background: #fff; color: var(--l-navy); border: 1.5px solid var(--l-line); }
.lf-btn-ghost:hover { border-color: var(--l-blue); color: var(--l-blue); }
.lf-btn-white { background: #fff; color: var(--l-blue); } .lf-btn-white:hover { color: var(--l-blue-2); transform: translateY(-2px); }
.lf-btn-outline { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); } .lf-btn-outline:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------------- Hero ---------------- */
.lf-hero { position: relative; padding: 72px 0 78px; overflow: hidden; border-bottom: 1px solid var(--l-line);
    background:
        radial-gradient(900px 460px at 92% -10%, rgba(34, 211, 238, .18), transparent 62%),
        radial-gradient(820px 440px at -5% 120%, rgba(29, 108, 255, .13), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--l-bg-2) 100%); }
.lf-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(29, 108, 255, .05) 1px, transparent 1px); background-size: 26px 26px; }
.lf-hero > .lf-container { position: relative; z-index: 2; max-width: 860px; }
.lf-hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; color: var(--l-navy); line-height: 1.08; margin: 0 0 18px; }
.lf-hero h1 .grad { background: linear-gradient(90deg, var(--l-blue), var(--l-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lf-hero-sub { font-size: 18px; max-width: 680px; margin-bottom: 28px; }
.lf-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.lf-chip { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--l-line); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; color: var(--l-navy); box-shadow: var(--l-shadow-sm); }
.lf-chip i { color: var(--l-cyan); }

/* ---------------- Stats ---------------- */
.lf-stats { background: linear-gradient(135deg, #ffffff, var(--l-bg-2)); border-bottom: 1px solid var(--l-line); }
.lf-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 44px 0; }
.lf-stat { text-align: center; }
.lf-stat .num { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; color: var(--l-navy); line-height: 1; }
.lf-stat .num .u { background: linear-gradient(135deg, var(--l-blue), var(--l-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lf-stat .lbl { margin-top: 9px; font-size: 13.5px; color: var(--l-muted); font-weight: 600; }

/* ---------------- Solutions grid ---------------- */
.lf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lf-card { position: relative; background: #fff; border: 1px solid var(--l-line); border-radius: 16px; padding: 26px 22px; box-shadow: var(--l-shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.lf-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--l-blue), var(--l-cyan)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.lf-card:hover { transform: translateY(-6px); box-shadow: var(--l-shadow); border-color: #cfe0f5; }
.lf-card:hover::before { transform: scaleX(1); }
.lf-card .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: #fff; margin-bottom: 15px; background: linear-gradient(135deg, var(--l-navy), var(--l-blue)); }
.lf-card:nth-child(4n+2) .ic { background: linear-gradient(135deg, var(--l-blue), var(--l-cyan)); }
.lf-card:nth-child(4n+3) .ic { background: linear-gradient(135deg, var(--l-cyan), #0891b2); }
.lf-card:nth-child(4n) .ic { background: linear-gradient(135deg, #7c3aed, var(--l-blue)); }
.lf-card h3 { font-size: 16.5px; font-weight: 800; color: var(--l-navy); margin: 0 0 8px; }
.lf-card p { font-size: 13.5px; margin: 0; line-height: 1.6; }

/* ---------------- Integrations ---------------- */
.lf-int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lf-int { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--l-line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--l-shadow-sm); transition: transform .18s ease, border-color .18s ease; }
.lf-int:hover { transform: translateY(-4px); border-color: #bcd3f5; }
.lf-int i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; color: var(--l-blue); background: rgba(29, 108, 255, .09); }
.lf-int span { font-weight: 700; color: var(--l-navy); font-size: 14.5px; }

/* ---------------- Comparison (them vs us) ---------------- */
.lf-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; }
.lf-cmp { border-radius: 20px; padding: 32px 28px; border: 1px solid var(--l-line); box-shadow: var(--l-shadow-sm); }
.lf-cmp__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--l-line); }
.lf-cmp__ico { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; }
.lf-cmp__top h3 { font-size: 20px; font-weight: 800; margin: 0; }
.lf-cmp__top .tag { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.lf-cmp ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.lf-cmp li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.lf-cmp li .chip { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; margin-top: 1px; }
.lf-cmp--them { background: #fbfcfe; }
.lf-cmp--them .lf-cmp__ico { background: #eef1f6; color: #94a3b8; }
.lf-cmp--them h3 { color: #5b6b82; } .lf-cmp--them .tag { color: #9aa7ba; }
.lf-cmp--them li { color: #64748b; } .lf-cmp--them li .chip { background: rgba(225, 29, 72, .10); color: #e11d48; }
.lf-cmp--us { background: linear-gradient(155deg, var(--l-navy), #0d2c4d 60%, #113a67); border-color: transparent; color: #fff; position: relative; overflow: hidden; box-shadow: 0 26px 60px rgba(8, 32, 60, .30); }
.lf-cmp--us::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); }
.lf-cmp--us > * { position: relative; z-index: 2; }
.lf-cmp--us .lf-cmp__ico { background: linear-gradient(135deg, var(--l-cyan), #0891b2); color: #fff; }
.lf-cmp--us .lf-cmp__top { border-bottom-color: rgba(255, 255, 255, .12); }
.lf-cmp--us h3 { color: #fff; } .lf-cmp--us .tag { color: var(--l-cyan-2); }
.lf-cmp--us li { color: #dbe7f6; } .lf-cmp--us li strong { color: #fff; }
.lf-cmp--us li .chip { background: rgba(34, 211, 238, .18); color: var(--l-cyan-2); }
.lf-vs { align-self: center; justify-self: center; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--l-navy); background: #fff; border: 1px solid var(--l-line); box-shadow: var(--l-shadow-sm); z-index: 4; }

/* ---------------- AI grid ---------------- */
.lf-ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lf-ai { background: #fff; border: 1px solid var(--l-line); border-radius: 16px; padding: 26px 24px; box-shadow: var(--l-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.lf-ai:hover { transform: translateY(-5px); box-shadow: var(--l-shadow); }
.lf-ai .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; color: #fff; margin-bottom: 14px; background: linear-gradient(135deg, #7c3aed, var(--l-blue)); }
.lf-ai h3 { font-size: 17px; font-weight: 800; color: var(--l-navy); margin: 0 0 7px; }
.lf-ai p { font-size: 14px; margin: 0; }

/* ---------------- Support / cost ---------------- */
.lf-support-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lf-support-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lf-support-list li { display: flex; gap: 15px; align-items: flex-start; }
.lf-support-list .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--l-blue), var(--l-cyan)); }
.lf-support-list h4 { font-size: 16px; font-weight: 700; color: var(--l-navy); margin: 3px 0 3px; }
.lf-support-list p { font-size: 14px; margin: 0; }
.lf-costcard { background: linear-gradient(155deg, var(--l-navy), #113a67); color: #fff; border-radius: 20px; padding: 34px 30px; box-shadow: var(--l-shadow); position: relative; overflow: hidden; }
.lf-costcard::after { content: ""; position: absolute; width: 230px; height: 230px; right: -70px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .2), transparent 70%); }
.lf-costcard > * { position: relative; z-index: 2; }
.lf-costcard .lf-eyebrow { background: rgba(34, 211, 238, .14); color: var(--l-cyan-2); }
.lf-costrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lf-costrow:last-child { border-bottom: none; }
.lf-costrow .k { color: #cfe0f2; font-size: 14.5px; }
.lf-costrow .v { font-weight: 800; font-size: 16px; }
.lf-costrow .v.good { color: var(--l-cyan-2); } .lf-costrow .v.bad { color: #ff9d9d; }
.lf-costcard h3 { font-size: 22px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.lf-costcard .cc-sub { color: #cfe0f2; font-size: 14px; margin: 0 0 16px; }

/* ---------------- CTA ---------------- */
.lf-cta { padding: 0 0 84px; }
.lf-cta__inner { background: linear-gradient(135deg, var(--l-blue), var(--l-cyan)); border-radius: 24px; padding: 52px 46px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: 0 26px 60px rgba(29, 108, 255, .30); }
.lf-cta__inner::after { content: ""; position: absolute; width: 320px; height: 320px; left: -90px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); }
.lf-cta__inner h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 0 0 12px; position: relative; z-index: 2; }
.lf-cta__inner p { color: #eaf4ff; font-size: 17px; max-width: 640px; margin: 0 auto 26px; position: relative; z-index: 2; }
.lf-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 2; }

/* ---------------- Animations ---------------- */
@keyframes lfUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.lf-hero > .lf-container > * { animation: lfUp .55s ease both; }
.lf-revamp.js-anim .lf-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.lf-revamp.js-anim .lf-reveal.in { opacity: 1; transform: none; }
.lf-revamp.js-anim .lf-stagger.in > * { animation: lfUp .5s ease both; }
.lf-revamp.js-anim .lf-stagger.in > *:nth-child(2) { animation-delay: .06s; }
.lf-revamp.js-anim .lf-stagger.in > *:nth-child(3) { animation-delay: .12s; }
.lf-revamp.js-anim .lf-stagger.in > *:nth-child(4) { animation-delay: .18s; }
.lf-revamp.js-anim .lf-stagger.in > *:nth-child(5) { animation-delay: .24s; }
.lf-revamp.js-anim .lf-stagger.in > *:nth-child(6) { animation-delay: .30s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .lf-grid, .lf-int-grid { grid-template-columns: repeat(2, 1fr); }
    .lf-ai-grid { grid-template-columns: 1fr 1fr; }
    .lf-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .lf-compare { grid-template-columns: 1fr; } .lf-vs { margin: -4px 0; }
    .lf-support-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
    .lf-section { padding: 54px 0; } .lf-hero { padding: 52px 0 60px; }
    .lf-grid, .lf-int-grid, .lf-ai-grid { grid-template-columns: 1fr; }
    .lf-cta__inner { padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .lf-revamp *, .lf-revamp *::before, .lf-revamp *::after { animation: none !important; transition: none !important; }
    .lf-revamp.js-anim .lf-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Extra animation + roles/note styling
   ============================================================ */
/* icon micro-interactions on hover */
.lf-card .ic, .lf-ai .ic, .lf-support-list .ic { transition: transform .25s ease; }
.lf-card:hover .ic, .lf-ai:hover .ic { transform: scale(1.1) rotate(-5deg); }
.lf-int i { transition: transform .2s ease; }
.lf-int:hover i { transform: scale(1.15); }
.lf-cmp li .chip { transition: transform .2s ease; }
.lf-cmp:hover li .chip { transform: scale(1.12); }

/* attention pulse on the hero CTA */
@keyframes lfPulse {
    0%   { box-shadow: 0 12px 26px rgba(29, 108, 255, .30), 0 0 0 0 rgba(29, 108, 255, .45); }
    70%  { box-shadow: 0 12px 26px rgba(29, 108, 255, .30), 0 0 0 16px rgba(29, 108, 255, 0); }
    100% { box-shadow: 0 12px 26px rgba(29, 108, 255, .30), 0 0 0 0 rgba(29, 108, 255, 0); }
}
.lf-pulse { animation: lfPulse 2.8s ease-out infinite; }
.lf-pulse:hover { animation: none; }

/* floating hero chips */
.lf-hero .lf-chip { transition: transform .18s ease, box-shadow .18s ease; }
.lf-hero .lf-chip:hover { transform: translateY(-3px); box-shadow: var(--l-shadow); }

/* roles chips inside the cost card */
.lf-roles { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.lf-roles__title { color: #cfe0f2; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin: 0 0 12px; }
.lf-roles__list { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-roles__list span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #eaf2fb; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.lf-roles__list span:hover { transform: translateY(-2px); background: rgba(34, 211, 238, .16); border-color: rgba(34, 211, 238, .4); }
.lf-roles__list span i { color: var(--l-cyan-2); }

/* integrate-anything note */
.lf-int-note { text-align: center; margin: 30px auto 0; max-width: 760px; font-size: 15px; color: var(--l-muted); }
.lf-int-note i { color: var(--l-cyan); margin-right: 6px; }
.lf-int-note a { color: var(--l-blue); font-weight: 700; }
.lf-int-note a:hover { text-decoration: underline; }
