/* BhaiFinder — shared premium layer for blog, guide and landing pages.
   Loaded after each page's own <style>, so it restyles the existing markup
   without changing content. Matches the homepage's premium look:
   Plus Jakarta Sans, hairline cards with soft shadows, and dark mode via
   html.dark (same "bf_dark" preference as the homepage). */

html:root{
  --bf-bg:#FBF6EE; --bf-card:#fff; --bf-line:rgba(22,18,31,.09);
  --bf-ink:#16121F; --bf-text:#3D3752; --bf-muted:#6F6886;
  --bf-blue:#2257D6; --bf-blue-l:#3F86FF; --bf-red:#F0453F;
  --bf-tint:rgba(34,87,214,.06);
  --bf-shadow:0 14px 32px -6px rgba(58,42,18,.10),0 1px 3px rgba(22,18,31,.05);
  --bf-shadow-h:0 22px 44px -10px rgba(58,42,18,.16),0 2px 6px rgba(22,18,31,.06);
  --bf-font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  /* re-point the page-level variables so old rules inherit the new look */
  --ink:var(--bf-ink); --ink-soft:var(--bf-text); --paper:var(--bf-card); --line:var(--bf-line);
  --blue:var(--bf-blue);
  --f-disp:var(--bf-font); --f-body:var(--bf-font); --f-mono:var(--bf-font);
  color-scheme:light;
}
html.dark:root{
  --bf-bg:#110E1A; --bf-card:#1C1829; --bf-line:rgba(255,255,255,.09);
  --bf-ink:#F3EFFA; --bf-text:#C9C2DC; --bf-muted:#A49DBD;
  --bf-blue:#7EA8FF; --bf-blue-l:#9DBCFF; --bf-tint:rgba(126,168,255,.10);
  --bf-shadow:0 14px 32px -6px rgba(0,0,0,.5),0 1px 3px rgba(0,0,0,.3);
  --bf-shadow-h:0 22px 44px -10px rgba(0,0,0,.6),0 2px 6px rgba(0,0,0,.35);
  color-scheme:dark;
}

html body{
  font-family:var(--bf-font);color:var(--bf-ink);letter-spacing:-.005em;
  background:
    radial-gradient(900px 520px at 8% -8%,rgba(63,134,255,.10),transparent 60%),
    radial-gradient(800px 480px at 100% 0%,rgba(240,69,63,.08),transparent 60%),
    var(--bf-bg);
  background-attachment:fixed;
}
html.dark body{
  background:
    radial-gradient(900px 520px at 8% -8%,rgba(63,134,255,.16),transparent 60%),
    radial-gradient(800px 480px at 100% 0%,rgba(240,69,63,.10),transparent 60%),
    var(--bf-bg);
}
html body .wrap{max-width:780px;padding:34px 20px 40px}
html body main{display:block}

/* ---------- typography ---------- */
html body h1,html body h2,html body h3{font-family:var(--bf-font);color:var(--bf-ink)}
html body h1{font-weight:800;font-size:clamp(2rem,5.4vw,3.1rem);line-height:1.08;letter-spacing:-.035em;margin-bottom:16px}
html body h2{font-weight:800;font-size:clamp(1.35rem,3.3vw,1.85rem);line-height:1.18;letter-spacing:-.025em;margin:44px 0 14px}
html body h3{font-weight:700;font-size:1.12rem;letter-spacing:-.015em;margin:26px 0 8px}
html body p{font-weight:500;color:var(--bf-text);line-height:1.72;font-size:1.02rem}
html body p b,html body li b,html body p strong{color:var(--bf-ink);font-weight:700}
html body .lede{font-size:clamp(1.08rem,2.4vw,1.22rem);color:var(--bf-ink);font-weight:500;line-height:1.65}
html body .sub{color:var(--bf-muted);font-size:1.12rem;font-weight:500}
html body a.inline,html body .rel a,html body .tip a,html body main p a{color:var(--bf-blue)!important;font-weight:700;text-decoration:none;
  background-image:linear-gradient(currentColor,currentColor);background-size:100% 1px;background-repeat:no-repeat;background-position:0 100%}
html body main p a:hover{background-size:100% 2px}
html body .crumbs,html body .meta{font-family:var(--bf-font);font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--bf-muted)}
html body .crumbs a{color:var(--bf-blue)}
html body .meta{display:inline-block;border:1px solid var(--bf-line);border-radius:999px;padding:.35em .9em;background:var(--bf-card);margin-bottom:22px}

/* ---------- answer box ---------- */
html body .answer{position:relative;background:var(--bf-card);border:1px solid var(--bf-line);border-radius:20px;
  box-shadow:var(--bf-shadow);padding:20px 22px 20px 26px;margin:24px 0 10px;overflow:hidden}
html body .answer::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--bf-blue-l),var(--bf-red))}
html body .answer p{color:var(--bf-ink);font-weight:500;line-height:1.68}
html body .answer .k{color:var(--bf-blue);font-weight:800}

/* ---------- steps & feature lists ---------- */
html body ol.steps{margin:10px 0}
html body ol.steps li{padding:14px 0 14px 50px;border-bottom:1px solid var(--bf-line);font-weight:500;color:var(--bf-text);line-height:1.65}
html body ol.steps li::before{width:32px;height:32px;top:13px;border:0;font-family:var(--bf-font);font-weight:800;font-size:.9rem;
  background:linear-gradient(135deg,var(--bf-blue-l),#2257D6);box-shadow:0 8px 16px -8px rgba(34,87,214,.7)}
html body ul.feats li{padding:10px 0 10px 36px;font-weight:500;color:var(--bf-text);line-height:1.6;border-bottom:1px solid var(--bf-line)}
html body ul.feats li:last-child{border-bottom:0}
html body ul.feats li::before{content:"";left:0;top:12px;width:22px;height:22px;border-radius:50%;background:var(--bf-tint)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232257D6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat}
html body ul.plain li{font-weight:500;color:var(--bf-text)}
html body .tip{font-family:var(--bf-font);font-size:.92rem;font-weight:600;color:var(--bf-muted);margin-top:10px}

/* ---------- tables ---------- */
html body .cmp,html body .facts{width:100%;border-collapse:separate;border-spacing:0;background:var(--bf-card);border:1px solid var(--bf-line);
  border-radius:18px;overflow:hidden;box-shadow:var(--bf-shadow);font-size:.94rem;margin:12px 0 10px}
html body .cmp th,html body .cmp td,html body .facts th,html body .facts td{padding:12px 14px;text-align:left;vertical-align:top;
  border-bottom:1px solid var(--bf-line);font-weight:500;color:var(--bf-text)}
html body .cmp th,html body .facts th{font-family:var(--bf-font);font-weight:700;color:var(--bf-ink);background:var(--bf-tint)}
html body .cmp tr:last-child td,html body .facts tr:last-child td,html body .facts tr:last-child th{border-bottom:0}
html body .cmp td.y{color:#0f8a63;font-weight:600}html body .cmp td.n{color:#c0392b;font-weight:600}
html.dark body .cmp td.y{color:#4fd1a1}html.dark body .cmp td.n{color:#ff8a80}
html body .facts a{color:var(--bf-blue);font-weight:600}

/* ---------- picks (comparison posts) ---------- */
html body .pick{background:var(--bf-card);border:1px solid var(--bf-line);border-radius:20px;box-shadow:var(--bf-shadow);padding:18px 20px;margin:16px 0}
html body .pick.best{border:1.5px solid var(--bf-blue);box-shadow:0 18px 40px -14px rgba(34,87,214,.35)}
html body .pick .rank{font-family:var(--bf-font);font-weight:800;letter-spacing:.12em;color:var(--bf-blue)}
html body .pick.best .rank{color:var(--bf-red)}
html body .pick .tags{font-family:var(--bf-font);font-weight:600;color:var(--bf-muted)}

/* ---------- FAQ ---------- */
html body .faq details{background:var(--bf-card);border:1px solid var(--bf-line);border-radius:16px;padding:2px 18px;margin-bottom:10px;
  box-shadow:0 1px 2px rgba(22,18,31,.04);transition:box-shadow .2s}
html body .faq details[open]{box-shadow:var(--bf-shadow)}
html body .faq summary{font-family:var(--bf-font);font-weight:700;font-size:1.02rem;color:var(--bf-ink);padding:15px 34px 15px 0;position:relative}
html body .faq summary::after{position:absolute;right:0;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;background:var(--bf-tint);color:var(--bf-blue);font-size:1rem;line-height:1;float:none}
html body .faq details p{padding:0 0 16px}

/* ---------- screenshots ---------- */
html body .shot img{border:1px solid var(--bf-line);border-radius:28px;box-shadow:var(--bf-shadow-h);background:var(--bf-card)}
html body .shot figcaption{font-family:var(--bf-font);font-weight:700;letter-spacing:.1em;color:var(--bf-muted)}

/* ---------- demo video ---------- */
html body .bf-demo{margin:30px auto 8px;max-width:300px;text-align:center}
html body .bf-demo-frame{position:relative;border-radius:30px;overflow:hidden;background:#0d0b14;border:1px solid var(--bf-line);
  box-shadow:0 30px 60px -20px rgba(34,24,60,.45),0 2px 8px rgba(22,18,31,.08);aspect-ratio:9/16}
html body .bf-demo video{display:block;width:100%;height:100%;object-fit:cover}
html body .bf-demo figcaption{font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--bf-muted);margin-top:12px}

/* ---------- WhatsApp share ---------- */
html body .wa-share{background:linear-gradient(135deg,rgba(37,211,102,.10),rgba(37,211,102,.04));border:1px solid rgba(37,211,102,.30);
  border-radius:20px;box-shadow:none;padding:16px 18px}
html body .wa-share .wa-txt{font-family:var(--bf-font);font-weight:700;color:var(--bf-ink)}
html body .wa-share button{background:#25D366;color:#fff;border:0;border-radius:999px;box-shadow:0 10px 20px -10px rgba(37,211,102,.8);
  font-family:var(--bf-font);font-weight:700;padding:11px 20px}
html body .wa-share button svg path{fill:#fff}
html body .wa-share button:hover{transform:translateY(-1px);box-shadow:0 14px 24px -10px rgba(37,211,102,.9)}
html body .wa-share button:active{transform:none}

/* ---------- CTA ---------- */
html body .cta{position:relative;overflow:hidden;border:0;border-radius:28px;padding:34px 24px;margin:40px 0 10px;text-align:center;
  background:radial-gradient(600px 260px at 15% 0%,rgba(63,134,255,.55),transparent 60%),
             radial-gradient(500px 240px at 100% 100%,rgba(240,69,63,.45),transparent 60%),#16121F;
  box-shadow:0 30px 60px -24px rgba(22,18,31,.55)}
html body .cta h2{color:#fff;margin:0 0 8px}
html body .cta p{color:rgba(255,255,255,.78)}
html body .cta .btns{gap:12px;margin-top:18px}
html body .cta a{background:#fff;color:#16121F;font-family:var(--bf-font);font-weight:700;border-radius:999px;padding:12px 22px;
  box-shadow:0 10px 24px -12px rgba(0,0,0,.6);transition:transform .15s}
html body .cta a:hover{transform:translateY(-2px)}
html body .cta a + a{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.28)}

/* ---------- related links ---------- */
html body .rel{margin-top:34px;padding:18px 20px;border:1px solid var(--bf-line);border-radius:18px;background:var(--bf-card);
  color:var(--bf-muted);font-weight:600;line-height:1.9}

/* ---------- blog index ---------- */
html body .grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:26px}
@media(min-width:700px){html body .grid{grid-template-columns:1fr 1fr}}
html body .post{display:flex;flex-direction:column;gap:6px;background:var(--bf-card);border:1px solid var(--bf-line);border-radius:22px;
  box-shadow:var(--bf-shadow);padding:22px;text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s}
html body .post:hover{transform:translateY(-3px);box-shadow:var(--bf-shadow-h)}
html body .post h2{font-size:1.18rem;margin:6px 0 4px;line-height:1.3}
html body .post p{font-size:.95rem;margin:0}
html body .post .tag,html body .tag{align-self:flex-start;font-family:var(--bf-font);font-size:.68rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--bf-blue);background:var(--bf-tint);border-radius:999px;padding:.35em .85em;border:0}
html body .post .more,html body .more{margin-top:auto;padding-top:10px;color:var(--bf-blue);font-weight:700;font-size:.92rem}

/* ---------- navigation ---------- */
html body header.site{display:none}
.bf-nav{position:sticky;top:0;z-index:60;background:rgba(251,246,238,.78);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--bf-line)}
html.dark .bf-nav{background:rgba(17,14,26,.78)}
.bf-nav-in{max-width:1120px;margin:0 auto;display:flex;align-items:center;gap:18px;padding:10px clamp(16px,4vw,32px)}
.bf-brand{display:flex;align-items:center;gap:9px;text-decoration:none;margin-right:auto}
.bf-brand img{width:36px;height:36px;border-radius:50%}
.bf-wm{font-family:'Baloo 2',var(--bf-font);font-weight:800;font-size:1.25rem;letter-spacing:-.01em;line-height:1}
.bf-wm b{color:#2257D6}.bf-wm i{color:#F0453F;font-style:normal}
html.dark .bf-wm b{color:#7EA8FF}
.bf-links{display:flex;gap:24px}
.bf-links a{font-family:var(--bf-font);font-weight:600;font-size:.95rem;color:var(--bf-text);text-decoration:none}
.bf-links a:hover,.bf-links a[aria-current="page"]{color:var(--bf-ink)}
.bf-theme{width:38px;height:38px;border-radius:50%;border:1px solid var(--bf-line);background:var(--bf-card);color:var(--bf-ink);
  display:grid;place-items:center;cursor:pointer;font-size:1rem;line-height:1}
.bf-btn{font-family:var(--bf-font);font-weight:700;font-size:.92rem;color:#fff;background:#F0453F;border-radius:999px;padding:.62em 1.15em;
  text-decoration:none;white-space:nowrap;box-shadow:0 10px 22px -10px rgba(240,69,63,.8);transition:transform .15s}
.bf-btn:hover{transform:translateY(-1px)}
@media(max-width:820px){.bf-links{display:none}}

/* ---------- footer ---------- */
html body footer.bf-foot{margin-top:56px;border-top:1px solid var(--bf-line);background:var(--bf-card);font-family:var(--bf-font);
  text-align:left;font-size:1rem;font-weight:500;color:var(--bf-text)}
html:not(.dark) body footer.bf-foot{background:rgba(255,255,255,.55)}
.bf-foot-in{max-width:1120px;margin:0 auto;padding:44px clamp(16px,4vw,32px) 28px;display:grid;gap:30px 20px;grid-template-columns:1fr 1fr}
.bf-foot-brand{grid-column:1/-1}
@media(min-width:760px){.bf-foot-in{grid-template-columns:1.4fr 1fr 1fr 1fr}.bf-foot-brand{grid-column:auto}}
.bf-foot-brand p{color:var(--bf-muted);font-weight:500;font-size:.95rem;margin:12px 0 16px;line-height:1.6}
.bf-social{display:flex;gap:10px}
.bf-social a{width:38px;height:38px;border-radius:50%;border:1px solid var(--bf-line);display:grid;place-items:center;color:var(--bf-text)}
.bf-social a:hover{color:var(--bf-ink);border-color:var(--bf-text)}
.bf-foot h3{font-family:var(--bf-font);font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--bf-muted);margin:4px 0 12px}
.bf-foot ul{list-style:none;margin:0;padding:0}
.bf-foot li{margin:0 0 9px}
html body .bf-foot li a{color:var(--bf-text);text-decoration:none;font-weight:500;font-size:.93rem}
.bf-foot li a:hover{color:var(--bf-blue)}
.bf-foot-bot{max-width:1120px;margin:0 auto;padding:18px clamp(16px,4vw,32px) 30px;border-top:1px solid var(--bf-line);
  display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:space-between;color:var(--bf-muted);font-size:.84rem;font-weight:500}
html body .bf-foot-bot a,html body .bf-social a{color:var(--bf-muted)}

@media(prefers-reduced-motion:reduce){html body *{transition:none!important}}

/* ---------- wide illustrations & inline code ---------- */
html body .shot.wide{max-width:100%;margin:26px 0}
html body .shot.wide img{border-radius:20px}
html body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;font-weight:600;background:var(--bf-tint);
  color:var(--bf-ink);border-radius:8px;padding:.15em .45em;word-break:break-all}

/* base rules some page templates lack */
html body ul.feats{list-style:none;margin:8px 0 12px;padding:0}
html body ul.feats li{position:relative}
html body .cmp-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
html body ul.feats li::before{position:absolute}
