/* ============================================================================
   Mihu AI — Blog post: Conversation Intelligence
   Page-specific (content) styles only; header/footer come from index.html's
   stylesheets (s-7b769d0663 + s-ef39ab5d25). Inherit --bronze-*/--gray-*/--white
   from shared; define only the tokens they lack.
   ============================================================================ */

/* index.html's #header is position:fixed; offset body so blog content clears it. */
body{padding-top:80px;}
/* index's header is transparent at the top (it overlays the homepage hero). On a
   content page that lets the breadcrumb/article show through the fixed bar, so make
   it opaque always — matching the other blog posts. */
#header{background:rgba(255,255,255,0.96); -webkit-backdrop-filter:saturate(180%) blur(16px); backdrop-filter:saturate(180%) blur(16px); border-bottom:1px solid var(--gray-100);}

:root{
  --bronze-50:#f5f7ff;
  --violet-600:#6d5bd0; --violet-500:#8775e0; --violet-100:#ece8fb; --violet-50:#f5f3fd;
  --emerald:#2f9e72; --emerald-bg:#e7f5ee; --rose:#d8593f; --rose-bg:#fdeee9; --amber:#c98a22; --amber-bg:#fbf1dd;
  --radius:16px; --radius-sm:10px; --maxw:1180px; --narrow:760px;
}
.container-narrow{max-width:var(--narrow); margin:0 auto; padding:0 24px;}

/* ---- Hero ---- */
    .blog-hero{padding:54px 0 8px; background:radial-gradient(900px 360px at 80% -10%, var(--bronze-50), transparent 60%);}
    .blog-breadcrumb{display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--gray-500); margin-bottom:22px;}
    .blog-breadcrumb a{color:var(--gray-500);}
    .blog-breadcrumb a:hover{color:var(--bronze-600);}
    .blog-breadcrumb svg{width:14px; height:14px;}
    .blog-category{display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--bronze-600); background:var(--bronze-100); padding:7px 14px; border-radius:999px; margin-bottom:20px;}
    .blog-title{font-family:"DM Serif Display",Georgia,serif; font-weight:400; color:var(--gray-900); font-size:clamp(33px,5vw,52px); line-height:1.08; letter-spacing:-.015em; margin:0 0 18px; max-width:20ch;}
    .blog-excerpt{font-size:20px; color:var(--gray-600); max-width:64ch; margin:0 0 26px;}
    .blog-meta{display:flex; flex-wrap:wrap; gap:22px; color:var(--gray-500); font-size:14px; border-top:1px solid var(--gray-200); padding-top:20px;}
    .blog-meta-item{display:flex; align-items:center; gap:8px;}
    .blog-meta-item svg{width:16px; height:16px; color:var(--bronze-500);}

    /* ---- Featured visual ---- */
    .blog-featured-image{padding:30px 0 6px;}
    .featured-wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
    .ci-visual{background:linear-gradient(160deg,var(--gray-900),#221f2b 70%); border-radius:22px; padding:36px 28px; color:#fff; position:relative; overflow:hidden;}
    .ci-visual:before{content:""; position:absolute; inset:0; background:radial-gradient(600px 220px at 16% 0%, rgba(135,117,224,.3), transparent 60%);}
    .ci-flow{position:relative; display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap;}
    .ci-card{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.13); border-radius:14px; padding:16px; min-width:170px;}
    .ci-card .h{font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.55); margin-bottom:8px;}
    .ci-quote{font-size:14px; color:rgba(255,255,255,.9); line-height:1.5;}
    .ci-arrow{color:rgba(255,255,255,.35);} .ci-arrow svg{width:24px; height:24px;}
    .ci-signals{display:flex; flex-direction:column; gap:7px;}
    .ci-sig{display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,.9);}
    .ci-sig .tagx{font-size:11px; font-weight:700; padding:2px 8px; border-radius:6px;}
    .tagx.neg{background:rgba(216,89,63,.25); color:#ffb3a1;}
    .tagx.pos{background:rgba(47,158,114,.25); color:#9fe6c6;}
    .tagx.score{background:rgba(207,160,102,.25); color:#f0d3ad;}
    .ci-foot{position:relative; text-align:center; margin-top:24px; font-size:13px; color:rgba(255,255,255,.7);}
    .ci-foot b{color:#fff;}
    @media(max-width:760px){.ci-flow{flex-direction:column;} .ci-arrow{transform:rotate(90deg);}}

    /* ---- Article body ---- */
    .blog-content{padding:42px 0 30px;}
    .article-body{font-size:18px;}
    .article-body h2{font-family:"DM Serif Display",Georgia,serif; font-weight:400; color:var(--gray-900); font-size:clamp(26px,3.4vw,34px); line-height:1.18; letter-spacing:-.01em; margin:46px 0 14px; scroll-margin-top:90px;}
    .article-body h3{font-size:21px; font-weight:800; color:var(--gray-900); margin:30px 0 8px; letter-spacing:-.01em;}
    .article-body p{margin:0 0 18px; color:var(--gray-700);}
    .article-body ul{margin:0 0 20px; padding-left:0; list-style:none;}
    .article-body ul li{position:relative; padding-left:30px; margin-bottom:11px; color:var(--gray-700);}
    .article-body ul li:before{content:""; position:absolute; left:8px; top:11px; width:7px; height:7px; border-radius:2px; background:var(--bronze-500); transform:rotate(45deg);}
    .article-body strong{color:var(--gray-900); font-weight:700;}
    .article-body code{background:var(--bronze-50); border:1px solid var(--bronze-200); color:var(--bronze-700); padding:1px 7px; border-radius:6px; font-size:15px;}
    .lead{font-size:21px; color:var(--gray-800);}

    /* ---- TOC ---- */
    .toc{background:var(--bronze-50); border:1px solid var(--bronze-200); border-radius:var(--radius); padding:24px 26px; margin:6px 0 36px;}
    .toc-title{font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--bronze-600); margin-bottom:14px;}
    .toc-list{list-style:none; margin:0; padding:0; columns:2; column-gap:30px;}
    .toc-list li{margin:0 0 10px; padding:0; break-inside:avoid;}
    .toc-list li:before{display:none;}
    .toc-list a{color:var(--gray-700); font-size:15px; font-weight:600;}
    .toc-list a:hover{color:var(--bronze-600); text-decoration:none;}
    @media(max-width:600px){.toc-list{columns:1;}}

    /* ---- Callout ---- */
    .callout{position:relative; background:var(--white); border:1px solid var(--gray-200); border-left:4px solid var(--bronze-500); border-radius:var(--radius-sm); padding:24px 26px 22px; margin:30px 0; box-shadow:0 8px 30px -22px rgba(20,20,28,.35);}
    .callout-icon{width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:var(--bronze-100); margin-bottom:12px;}
    .callout-icon svg{width:20px; height:20px; stroke:var(--bronze-600);}
    .callout-title{font-size:17px; font-weight:800; color:var(--gray-900); margin:0 0 8px;}
    .callout-text{margin:0; color:var(--gray-700); font-size:16.5px;}
    .callout.success{border-left-color:var(--emerald); background:linear-gradient(180deg,var(--emerald-bg),#fff 65%);}
    .callout.success .callout-icon{background:#d6efe1;}
    .callout.success .callout-icon svg{stroke:var(--emerald);}

    /* ---- Signal grid ---- */
    .signals-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:26px 0;}
    .sig-card{border:1px solid var(--gray-200); border-radius:var(--radius); padding:20px; background:#fff;}
    .sig-card .sig-h{display:flex; align-items:center; gap:10px; margin-bottom:6px;}
    .sig-card .sig-ico{width:36px; height:36px; border-radius:9px; display:grid; place-items:center; background:var(--bronze-100); flex-shrink:0;}
    .sig-card .sig-ico svg{width:19px; height:19px; stroke:var(--bronze-600);}
    .sig-card h3{margin:0; font-size:16.5px;}
    .sig-card p{margin:0; font-size:14.5px; color:var(--gray-600);}
    @media(max-width:680px){.signals-grid{grid-template-columns:1fr;}}

    /* ---- Chat demo ---- */
    .chat{border:1px solid var(--gray-200); border-radius:var(--radius); overflow:hidden; margin:26px 0; background:#fff;}
    .chat-bar{display:flex; align-items:center; gap:8px; padding:12px 16px; background:var(--gray-100); border-bottom:1px solid var(--gray-200); font-size:13px; color:var(--gray-500); font-weight:600;}
    .chat-bar .dot{width:9px; height:9px; border-radius:50%; background:var(--violet-500);}
    .chat-body{padding:18px;}
    .bubble{max-width:90%; padding:13px 16px; border-radius:14px; margin-bottom:12px; font-size:15.5px; line-height:1.55;}
    .bubble.user{background:var(--gray-900); color:#fff; margin-left:auto; border-bottom-right-radius:4px;}
    .bubble.ai{background:var(--violet-50); border:1px solid var(--violet-100); color:var(--gray-800); border-bottom-left-radius:4px;}
    .bubble.ai ul{margin:8px 0 4px;} .bubble.ai li{padding-left:22px; margin-bottom:6px; font-size:14.5px;}
    .bubble.ai li:before{top:9px; left:6px;}

    /* ---- CRM update mock ---- */
    .crm{border:1px solid var(--gray-200); border-radius:var(--radius); overflow:hidden; margin:24px 0; background:#fff;}
    .crm-bar{display:flex; align-items:center; gap:8px; padding:12px 16px; background:var(--gray-100); border-bottom:1px solid var(--gray-200); font-size:13px; font-weight:700; color:var(--gray-600);}
    .crm-row{display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--gray-100); font-size:15px;}
    .crm-row:last-child{border-bottom:none;}
    .crm-field{width:170px; color:var(--gray-500); font-weight:600; flex-shrink:0; font-size:14px;}
    .crm-val{color:var(--gray-900); font-weight:600; flex:1;}
    .crm-auto{font-size:11px; font-weight:800; letter-spacing:.04em; color:var(--violet-600); background:var(--violet-100); padding:3px 9px; border-radius:6px; white-space:nowrap;}
    @media(max-width:560px){.crm-field{width:120px;}}

    /* ---- Score meter ---- */
    .scores{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:24px 0;}
    .score-card{border:1px solid var(--gray-200); border-radius:var(--radius); padding:18px; background:#fff;}
    .score-name{font-size:14.5px; font-weight:700; color:var(--gray-900); margin-bottom:2px;}
    .score-sub{font-size:12.5px; color:var(--gray-500); margin-bottom:12px;}
    .meter{height:8px; border-radius:99px; background:var(--gray-200); overflow:hidden; margin-bottom:8px;}
    .meter i{display:block; height:100%; border-radius:99px;}
    .meter.hot i{width:88%; background:linear-gradient(90deg,var(--emerald),#27b07e);}
    .meter.warm i{width:54%; background:linear-gradient(90deg,var(--amber),#e0a338);}
    .meter.cold i{width:23%; background:linear-gradient(90deg,#9aa0ad,#b9bec8);}
    .score-num{display:flex; justify-content:space-between; font-size:13px;}
    .score-num b{font-size:20px; color:var(--gray-900);}
    .badge{font-size:11px; font-weight:800; letter-spacing:.04em; padding:3px 8px; border-radius:6px;}
    .badge.hot{background:var(--emerald-bg); color:#1f7a55;}
    .badge.warm{background:var(--amber-bg); color:#9a6b15;}
    .badge.cold{background:var(--gray-100); color:var(--gray-500);}
    @media(max-width:640px){.scores{grid-template-columns:1fr;}}

    /* ---- Endless grid ---- */
    .endless{display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:24px 0;}
    .endless div{display:flex; align-items:flex-start; gap:10px; border:1px solid var(--gray-200); border-radius:12px; padding:14px 16px; font-size:15px; color:var(--gray-700); background:#fff;}
    .endless svg{width:18px; height:18px; stroke:var(--bronze-500); flex-shrink:0; margin-top:2px;}
    @media(max-width:600px){.endless{grid-template-columns:1fr;}}

    /* ---- FAQ ---- */
    .faq-item{border-bottom:1px solid var(--gray-200); padding:18px 0;}
    .faq-q{font-weight:800; color:var(--gray-900); font-size:18px; margin:0 0 8px;}
    .faq-a{margin:0; color:var(--gray-700); font-size:16.5px;}

    /* ---- CTA ---- */
    .cta{background:linear-gradient(150deg,var(--gray-900),#241f2e); border-radius:22px; color:#fff; padding:46px 40px; margin:50px 0 10px; text-align:center; position:relative; overflow:hidden;}
    .cta:before{content:""; position:absolute; inset:0; background:radial-gradient(500px 220px at 50% -30%, rgba(135,117,224,.38), transparent 60%);}
    .cta h2{font-family:"DM Serif Display",serif; font-weight:400; color:#fff !important; font-size:32px; margin:0 0 12px; position:relative;}
    .cta p{color:rgba(255,255,255,.82); max-width:56ch; margin:0 auto 26px; position:relative;}
    .cta .btn-primary{background:var(--violet-500); position:relative;}
    .cta .btn-primary:hover{background:var(--violet-600);}
    .cta-sub{display:block; margin-top:14px; font-size:13.5px; color:rgba(255,255,255,.6); position:relative;}

    /* ---- Share ---- */
    .share{display:flex; align-items:center; gap:12px; margin:40px 0 0; padding-top:26px; border-top:1px solid var(--gray-200);}
    .share-label{font-size:14px; font-weight:700; color:var(--gray-600);}
    .share-btn{width:40px; height:40px; border-radius:10px; border:1px solid var(--gray-200); background:#fff; display:grid; place-items:center; cursor:pointer; color:var(--gray-600); transition:.16s;}
    .share-btn:hover{border-color:var(--bronze-400); color:var(--bronze-600);}
    .share-btn svg{width:18px; height:18px;}

/* ---- RTL tweaks (ar / he) ---- */
[dir="rtl"] .bubble.agent,[dir="rtl"] .bubble.human,[dir="rtl"] .bubble.cust{margin-left:0;}
[dir="rtl"] .blog-title,[dir="rtl"] .blog-excerpt,[dir="rtl"] .article-body{text-align:right;}
