/* Infocus blog components. Colours and shapes follow the site theme (main.css). */
:root{
  --bp-ink:#1a1a1c; --bp-muted:#5b5b66; --bp-line:#e6e3f3; --bp-card:#ffffff; --bp-soft:#f6f5fb;
  --bp-purple:#864ffe; --bp-purple-2:#7c31f6; --bp-lilac:#ece8ff; --bp-lilac-2:#dcd4ff;
  --bp-lime:#c6f56f; --bp-cyan:#83e7ee; --bp-yellow:#f9eb57; --bp-mint:#effbf3; --bp-butter:#fff8e1;
}
.dark{ --bp-ink:#fcfcfc; --bp-muted:#b5b5c0; --bp-line:#2c2c33; --bp-card:#1f1f23; --bp-soft:#18181b; }

/* reading progress */
.bp-progress{position:fixed;top:0;left:0;height:4px;width:0;background:linear-gradient(90deg,var(--bp-purple),var(--bp-cyan));z-index:70;transition:width .1s linear}

/* hero */
.bp-hero{border-radius:32px;padding:56px;display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center;position:relative;overflow:hidden}
.bp-hero::after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-120px;top:-160px;background:rgba(255,255,255,.45);pointer-events:none}
.bp-hero > *{position:relative;z-index:1}
.bp-tone-lilac{background:var(--bp-lilac)} .bp-tone-mint{background:#dff3e6} .bp-tone-butter{background:#fdf0bf}
.bp-tone-dark{background:#1a1a1c;color:#fff} .bp-tone-dark::after{background:rgba(134,79,254,.25)}
.bp-crumb{font-size:14px;opacity:.7;margin-bottom:18px} .bp-crumb a{text-decoration:underline}
.bp-chip{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;padding:7px 16px;border-radius:999px;background:var(--bp-ink);color:#fff}
.bp-tone-dark .bp-chip{background:var(--bp-yellow);color:#1a1a1c}
.bp-hero h1{font-size:46px;line-height:1.1;letter-spacing:-.02em;font-weight:500;margin:18px 0 16px}
.bp-hero .bp-dek{font-size:18px;line-height:1.6;opacity:.8;max-width:520px}
.bp-author{display:flex;align-items:center;gap:12px;margin-top:28px;font-size:15px}
.bp-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--bp-purple);color:#fff;flex-shrink:0}
.bp-author small{display:block;opacity:.7;font-size:13px}
.bp-cover{border-radius:22px;box-shadow:0 30px 60px -20px rgba(26,26,28,.35);transform:rotate(1.5deg);width:100%;height:auto;border:4px solid #fff}

/* layout */
.bp-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;margin-top:72px}
.bp-aside{position:sticky;top:120px;align-self:start}
.bp-aside h4{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--bp-muted);margin-bottom:14px;font-weight:600}
.bp-toc{border-left:2px solid var(--bp-line);display:grid;gap:2px}
.bp-toc a{display:block;padding:8px 0 8px 16px;margin-left:-2px;border-left:2px solid transparent;font-size:15px;color:var(--bp-muted);line-height:1.35;transition:all .2s}
.bp-toc a:hover{color:var(--bp-ink)}
.bp-toc a.active{border-left-color:var(--bp-purple);color:var(--bp-ink);font-weight:500}
.bp-share{margin-top:32px;display:flex;gap:10px;flex-wrap:wrap}
.bp-share a,.bp-share button{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--bp-soft);border:1px solid var(--bp-line);cursor:pointer;transition:all .2s;color:var(--bp-ink)}
.bp-share a:hover,.bp-share button:hover{background:var(--bp-ink);color:#fff;transform:translateY(-2px)}
.bp-share svg{width:18px;height:18px}
.bp-copied{font-size:13px;color:var(--bp-purple);margin-top:8px;min-height:18px}

.bp-content{min-width:0;color:var(--bp-ink)}
.bp-content p{font-size:17px;line-height:1.75;color:var(--bp-muted)}
.bp-content a{color:var(--bp-purple);text-decoration:underline;text-underline-offset:3px}
.bp-lead{font-size:20px !important;line-height:1.7 !important;color:var(--bp-ink) !important}
.bp-section{margin-top:72px;scroll-margin-top:120px}
.bp-h2{display:flex;align-items:center;gap:14px;font-size:32px;line-height:1.2;letter-spacing:-.01em;font-weight:500;margin-bottom:28px}
.bp-h2 .bp-idx{font-size:14px;font-weight:600;color:var(--bp-purple);background:var(--bp-lilac);border-radius:999px;padding:6px 12px;letter-spacing:.04em}

/* key takeaways */
.bp-takeaways{margin-top:40px;background:#1a1a1c;color:#fff;border-radius:24px;padding:32px 36px;position:relative;overflow:hidden}
.bp-takeaways::before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-80px;bottom:-120px;background:radial-gradient(circle,rgba(134,79,254,.7),transparent 70%)}
.bp-takeaways h3{font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--bp-lime);font-weight:600;margin-bottom:18px;position:relative}
.bp-takeaways ul{display:grid;gap:14px;position:relative}
.bp-takeaways li{display:flex;gap:14px;align-items:flex-start;font-size:17px;line-height:1.55}
.bp-takeaways li span{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--bp-lime);color:#1a1a1c;display:grid;place-items:center;font-weight:700;font-size:14px}

/* numbered cards */
.bp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.bp-card{background:var(--bp-card);border:1px solid var(--bp-line);border-radius:22px;padding:28px;transition:transform .25s,box-shadow .25s,border-color .25s;position:relative;overflow:hidden}
.bp-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px -20px rgba(134,79,254,.35);border-color:var(--bp-lilac-2)}
.bp-num{font-size:44px;line-height:1;font-weight:600;letter-spacing:-.03em;-webkit-text-stroke:1.5px var(--bp-purple);color:transparent;margin-bottom:16px;display:block}
.bp-card h3{font-size:20px;font-weight:500;margin-bottom:10px;color:var(--bp-ink)}
.bp-card p{font-size:15.5px;line-height:1.65}
.bp-card:nth-child(4n+1) .bp-dot{background:var(--bp-lime)} .bp-card:nth-child(4n+2) .bp-dot{background:var(--bp-cyan)}
.bp-card:nth-child(4n+3) .bp-dot{background:var(--bp-yellow)} .bp-card:nth-child(4n+4) .bp-dot{background:var(--bp-lilac-2)}
.bp-dot{position:absolute;top:24px;right:24px;width:14px;height:14px;border-radius:50%}

/* checklist */
.bp-check{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:var(--bp-soft);border-radius:24px;padding:24px}
.bp-check li{display:flex;gap:12px;align-items:center;background:var(--bp-card);border-radius:14px;padding:14px 16px;font-size:16px;line-height:1.4;color:var(--bp-ink);border:1px solid var(--bp-line)}
.bp-tick{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--bp-lime);display:grid;place-items:center}
.bp-tick svg{width:14px;height:14px}

/* steps / timeline */
.bp-steps{display:grid;gap:14px;counter-reset:none}
.bp-step{display:grid;grid-template-columns:52px minmax(0,1fr);gap:18px;position:relative}
.bp-step:not(:last-child)::before{content:"";position:absolute;left:25px;top:52px;bottom:-14px;width:2px;background:var(--bp-line)}
.bp-step-n{width:52px;height:52px;border-radius:16px;background:var(--bp-purple);color:#fff;display:grid;place-items:center;font-weight:600;font-size:18px;position:relative;z-index:1}
.bp-step-b{background:var(--bp-card);border:1px solid var(--bp-line);border-radius:18px;padding:16px 20px}
.bp-step-b p{font-size:16px;line-height:1.6}
.bp-step-b strong{color:var(--bp-ink);font-weight:600}

/* compare */
.bp-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;position:relative}
.bp-vs{position:absolute;left:50%;top:44px;transform:translateX(-50%);width:52px;height:52px;border-radius:50%;background:var(--bp-purple);color:#fff;display:grid;place-items:center;font-weight:700;border:4px solid var(--bp-card);z-index:2}
.bp-cmp{border-radius:24px;padding:28px;border:1px solid var(--bp-line);background:var(--bp-card)}
.bp-cmp.alt{background:#1a1a1c;color:#fff;border-color:#1a1a1c}
.bp-cmp.alt p,.bp-cmp.alt dd{color:#c9c9d1}
.bp-cmp-h{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.bp-cmp-ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--bp-yellow);color:#1a1a1c}
.bp-cmp.alt .bp-cmp-ic{background:var(--bp-cyan)}
.bp-cmp-ic svg{width:22px;height:22px}
.bp-cmp h3{font-size:22px;font-weight:600}
.bp-cmp h3 small{display:block;font-size:13px;font-weight:500;opacity:.65}
.bp-cmp .lead{font-weight:600;font-size:17px;margin-bottom:8px;color:inherit}
.bp-cmp dl{margin-top:20px;display:grid;gap:0;border-top:1px solid var(--bp-line)}
.bp-cmp.alt dl{border-color:#333}
.bp-cmp dl div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--bp-line)}
.bp-cmp.alt dl div{border-color:#333}
.bp-cmp dt{font-size:13px;letter-spacing:.04em;text-transform:uppercase;opacity:.6;font-weight:600;padding-top:2px}
.bp-cmp dd{font-size:15.5px;line-height:1.5;color:var(--bp-muted)}

/* when */
.bp-when{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.bp-when > div{border-radius:24px;padding:28px}
.bp-when > div:first-child{background:#fdf6bf} .bp-when > div:last-child{background:#dcf7f9}
.bp-when h3{font-size:20px;font-weight:600;margin-bottom:16px;color:#1a1a1c}
.bp-when ul{display:grid;gap:12px}
.bp-when li{display:flex;gap:12px;font-size:16px;line-height:1.5;color:#1a1a1c}
.bp-when .bp-tick{background:#1a1a1c} .bp-when .bp-tick svg path{stroke:#fff}

/* callout */
.bp-callout{display:grid;grid-template-columns:56px minmax(0,1fr);gap:20px;background:#fdf6bf;border-radius:24px;padding:28px;border:1px solid #f1e48a}
.bp-callout-ic{width:56px;height:56px;border-radius:18px;background:var(--bp-yellow);display:grid;place-items:center;border:2px solid #1a1a1c}
.bp-callout-ic svg{width:26px;height:26px}
.bp-callout h3{font-size:22px;font-weight:600;margin-bottom:8px;color:#1a1a1c}
.bp-callout p{color:#3d3a2a !important}

/* highlight + pull quote */
.bp-quote{margin-top:24px;border-left:5px solid var(--bp-purple);padding:8px 0 8px 24px;font-size:24px;line-height:1.45;font-weight:500;color:var(--bp-ink);letter-spacing:-.01em}

/* inline CTA */
.bp-inline-cta{margin-top:56px;border-radius:24px;padding:28px 32px;background:linear-gradient(120deg,var(--bp-purple),var(--bp-purple-2));color:#fff;display:flex;gap:24px;align-items:center;justify-content:space-between;position:relative;overflow:hidden}
.bp-inline-cta::after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:120px;top:-140px;background:rgba(255,255,255,.12)}
.bp-inline-cta h3{font-size:22px;font-weight:600;margin-bottom:4px}
.bp-inline-cta p{color:rgba(255,255,255,.85) !important;font-size:16px}
.bp-btn{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border-radius:999px;padding:12px 22px;font-weight:600;font-size:15px;transition:transform .2s;text-decoration:none !important;position:relative;z-index:1}
.bp-btn:hover{transform:translateY(-2px)}
.bp-btn-light{background:#fff;color:#1a1a1c !important}
.bp-btn-dark{background:#1a1a1c;color:#fff !important}
.bp-btn-wa{background:#25D366;color:#fff !important}

/* end card + author */
.bp-end{margin-top:72px;background:var(--bp-lilac);border-radius:28px;padding:36px;color:#1a1a1c}
.bp-end h2{font-size:30px;font-weight:500;margin-bottom:10px}
.bp-end p{color:#3b3550 !important}
.bp-end .bp-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.bp-authorbox{margin-top:28px;display:flex;gap:18px;align-items:center;border:1px solid var(--bp-line);border-radius:22px;padding:22px}
.bp-authorbox .bp-avatar{width:60px;height:60px;font-size:20px}
.bp-authorbox strong{display:block;font-size:17px;color:var(--bp-ink)}
.bp-authorbox p{font-size:15px !important;line-height:1.55 !important;margin-top:2px}

/* related + index cards */
.bp-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.bp-post{display:flex;flex-direction:column;background:var(--bp-card);border:1px solid var(--bp-line);border-radius:24px;overflow:hidden;transition:transform .25s,box-shadow .25s}
.bp-post:hover{transform:translateY(-6px);box-shadow:0 26px 50px -24px rgba(26,26,28,.35)}
.bp-post img{width:100%;height:auto;display:block}
.bp-post-b{padding:22px 24px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
.bp-post-meta{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--bp-muted)}
.bp-post-meta .bp-chip{font-size:12px;padding:5px 12px}
.bp-post h3{font-size:20px;line-height:1.3;font-weight:500;color:var(--bp-ink)}
.bp-post p{font-size:15px;line-height:1.6;color:var(--bp-muted);flex:1}
.bp-more{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;color:var(--bp-purple)}
.bp-more span{transition:transform .2s} .bp-post:hover .bp-more span{transform:translateX(4px)}
.bp-chip.t-lilac{background:var(--bp-lilac-2);color:#1a1a1c} .bp-chip.t-mint{background:var(--bp-cyan);color:#1a1a1c}
.bp-chip.t-dark{background:var(--bp-yellow);color:#1a1a1c} .bp-chip.t-butter{background:var(--bp-lime);color:#1a1a1c}
.bp-feature{display:grid;grid-template-columns:1.2fr 1fr;border-radius:28px;overflow:hidden;background:#1a1a1c;color:#fff;transition:transform .25s}
.bp-feature:hover{transform:translateY(-4px)}
.bp-feature img{width:100%;height:100%;object-fit:cover;display:block}
.bp-feature-b{padding:44px;display:flex;flex-direction:column;justify-content:center;gap:16px}
.bp-feature-b h2{font-size:34px;line-height:1.15;font-weight:500;letter-spacing:-.01em}
.bp-feature-b p{color:#c9c9d1;font-size:16px;line-height:1.6}
.bp-feature .bp-more{color:var(--bp-lime)}

/* responsive */
@media (max-width:1100px){
  .bp-layout{grid-template-columns:minmax(0,1fr);gap:0}
  .bp-aside{position:static;order:2;margin-top:48px}
  .bp-toc{display:none} .bp-aside h4.toc-h{display:none}
}
@media (max-width:900px){
  .bp-hero{grid-template-columns:1fr;padding:32px;gap:32px}
  .bp-hero h1{font-size:34px}
  .bp-feature{grid-template-columns:1fr} .bp-feature-b{padding:28px}
  .bp-grid3{grid-template-columns:1fr}
}
@media (max-width:700px){
  .bp-hero{padding:24px;border-radius:24px} .bp-hero h1{font-size:30px}
  .bp-cards,.bp-check,.bp-compare,.bp-when{grid-template-columns:1fr}
  .bp-vs{display:none}
  .bp-h2{font-size:26px} .bp-section{margin-top:56px}
  .bp-inline-cta{flex-direction:column;align-items:flex-start}
  .bp-cmp dl div{grid-template-columns:1fr;gap:2px}
  .bp-quote{font-size:20px}
  .bp-takeaways{padding:26px}
  .bp-callout{grid-template-columns:1fr}
}

/* theme overrides: the theme sets heading colours globally */
.bp-tone-dark h1,.bp-tone-dark .bp-dek,.bp-tone-dark .bp-author{color:#fff !important}
.bp-tone-dark .bp-dek{opacity:.75}
.bp-cmp.alt h3,.bp-cmp.alt .lead{color:#fff !important}
.bp-inline-cta h3{color:#fff !important}
.bp-takeaways h3{color:var(--bp-lime) !important}
.bp-takeaways li{color:#fff}
.bp-content .bp-quote{font-size:24px;line-height:1.45;color:var(--bp-ink);font-weight:500}
@media (max-width:700px){.bp-content .bp-quote{font-size:20px}}
.bp-feature-b h2{color:#fff !important}
.bp-end h2{color:#1a1a1c !important}
.bp-callout h3,.bp-when h3{color:#1a1a1c !important}
