/* Blog post + listing styles — theme-adaptive via site.css custom properties. */

/* ── Hero ────────────────────────────────────────────────────── */
.bl-hero { padding: 76px 0 36px; }
.bl-hero .lc-container { max-width: 1060px; }
.bl-hero h1 { font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 18px; line-height: 1.18; }
.bl-crumb { font-size: 13px; color: var(--ink-dim); margin-bottom: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bl-crumb a { color: var(--accent); }
.bl-crumb a:hover { text-decoration: underline; }
.bl-crumb .sep { opacity: .45; }
.bl-meta { font-size: 14px; color: var(--ink-faint); margin-top: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); background: rgba(255,176,84,.1); padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
[data-theme="light"] .bl-tag { background: rgba(230,149,46,.1); }

/* ── Article body ────────────────────────────────────────────── */
.bl-article { max-width: 1060px; margin: 0 auto; padding: 32px 0 64px; }
.bl-body { max-width: 720px; margin: 0; padding: 0 24px; font-size: 17px; line-height: 1.82; color: var(--ink); }
/* The opening paragraph gets a drop cap, the one editorial flourish on the page. */
.bl-body > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-size: 3.4em; line-height: .82; padding: 6px 10px 0 0; color: var(--accent); }

/* The rail only exists once the script has built it, so the grid is opt-in. */
.bl-article.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 56px; align-items: start; }
.bl-toc { position: sticky; top: 96px; padding-right: 24px; }
.bl-toc-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.bl-toc nav { display: flex; flex-direction: column; }
.bl-toc nav a { font-size: 13.5px; line-height: 1.45; color: var(--ink-dim); padding: 8px 0 8px 14px; border-left: 1px solid var(--line); transition: color .18s var(--ease), border-color .18s var(--ease); }
.bl-toc nav a:hover, .bl-toc nav a.active { color: var(--accent); border-left-color: var(--accent); }
.bl-toc-share { display: flex; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.bl-toc-share a, .bl-toc-share button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink-dim); font-size: 13px; cursor: pointer; transition: color .18s var(--ease), border-color .18s var(--ease); }
.bl-toc-share a:hover, .bl-toc-share button:hover { color: var(--accent); border-color: var(--accent); }
.bl-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 48px 0 16px; color: var(--ink); }
.bl-body h3 { font-size: clamp(18px, 2.4vw, 22px); margin: 36px 0 12px; color: var(--ink); }
.bl-body p { margin: 0 0 20px; }
.bl-body strong { color: var(--ink); font-weight: 700; }
.bl-body a { color: var(--accent); font-weight: 500; border-bottom: 1px solid rgba(255,176,84,.3); transition: border-color .2s var(--ease); }
.bl-body a:hover { border-color: var(--accent); }
[data-theme="light"] .bl-body a { border-bottom-color: rgba(230,149,46,.3); }
[data-theme="light"] .bl-body a:hover { border-color: var(--accent); }

.bl-body ul, .bl-body ol { margin: 0 0 24px; padding-left: 24px; }
.bl-body li { margin-bottom: 10px; }
.bl-body li::marker { color: var(--accent); }

/* Pull-quote / highlight block */
.bl-highlight { background: var(--bg-card); border-left: 4px solid var(--accent); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; margin: 32px 0; font-size: 16px; line-height: 1.7; }
.bl-highlight p:last-child { margin-bottom: 0; }

/* Stat / number callout */
.bl-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 32px 0; }
.bl-stat { text-align: center; background: var(--bg-card); border-radius: var(--radius); padding: 24px 16px; box-shadow: var(--shadow-card); }
.bl-stat b { display: block; font-size: 28px; font-family: var(--font-display); color: var(--accent); margin-bottom: 4px; }
.bl-stat span { font-size: 13px; color: var(--ink-dim); }

/* Feature list with icons */
.bl-features { list-style: none; padding: 0; margin: 28px 0; }
.bl-features li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding: 16px 20px; background: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow-card); }
.bl-features li .bl-ic { flex-shrink: 0; width: 36px; height: 36px; background: rgba(255,176,84,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 16px; }
[data-theme="light"] .bl-features li .bl-ic { background: rgba(230,149,46,.1); }
.bl-features li div { flex: 1; }
.bl-features li strong { display: block; margin-bottom: 2px; }

/* ── CTA banner ──────────────────────────────────────────────── */
.bl-cta { padding: 72px 0; text-align: center; }
.bl-cta-card { max-width: 640px; margin: 0 auto; background: var(--bg-card); border-radius: var(--radius); padding: 48px 36px; box-shadow: var(--shadow-card); }
.bl-cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.bl-cta p { color: var(--ink-dim); margin-bottom: 24px; font-size: 16px; }
.bl-cta .lc-btn { display: inline-block; }
/* Secondary path for a reader who's an agency/consultant, not a prospective user — quieter than the
   primary trial CTA above it so it reads as an alternative, not a competing offer. */
.bl-cta-alt { margin: 16px 0 0; font-size: 14px; color: var(--ink-faint); }
.bl-cta-alt a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px dotted rgba(255, 176, 84, .5); }
.bl-cta-alt a:hover { border-color: var(--accent); }

/* ── Related posts ───────────────────────────────────────────── */
.bl-related { padding: 0 0 80px; }
.bl-related .lc-container { max-width: 1060px; }
.bl-related h2 { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--ink-dim); letter-spacing: .04em; }
.bl-related .bl-cards { display: flex; flex-direction: column; gap: 0; max-width: none; padding: 0; }
.bl-related .bl-card { background: none; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: baseline; }
.bl-related .bl-card:hover { transform: none; box-shadow: none; }
.bl-related .bl-card .bl-tag { background: none; padding: 0; margin: 0; color: var(--ink-faint); font-size: 12px; letter-spacing: .14em; }
.bl-related .bl-card h3 { font-size: 17px; margin: 0 0 4px; flex: none; }
.bl-related .bl-card .bl-card-meta { grid-column: 2; }
.bl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; padding: 0 24px; }
.bl-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
[data-theme="light"] .bl-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.bl-card .bl-tag { font-size: 10px; margin-bottom: 10px; }
.bl-card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 10px; flex: 1; }
.bl-card h3 a { color: var(--ink); border: none; }
.bl-card h3 a:hover { color: var(--accent); }
.bl-card .bl-card-meta { font-size: 12px; color: var(--ink-faint); }

/* ── Blog index / listing ────────────────────────────────────── */
/* The listing reads as an editorial page, not a product grid: a left-aligned hero, one featured story, then a scannable list. */
.bl-index-hero { padding: 92px 0 40px; }
.bl-index-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.14; margin-bottom: 18px; }
.bl-index-hero h1 .grad { background: linear-gradient(92deg, #ffb054, #ff7a9c 55%, #8b7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-index-hero p { color: var(--ink-dim); font-size: 18px; line-height: 1.6; margin: 0; max-width: 78ch; }

.bl-index { padding-bottom: 96px; }

/* Pinned article — sits above the featured story with a distinct accent border and badge. */
.bl-pinned { display: grid; grid-template-columns: 150px 1fr 92px; gap: 28px; align-items: start; padding: 22px 24px; margin-bottom: 32px; border: 1px solid var(--accent); border-radius: var(--radius); background: linear-gradient(165deg, rgba(255, 176, 84, .06), transparent 60%); color: inherit; position: relative; }
.bl-pinned-badge { position: absolute; top: -11px; right: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #25160a; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 5px; }
.bl-pinned-badge i { font-size: 10px; }
.bl-pinned .bl-row-cat { padding-top: 0; color: var(--accent); }
.bl-pinned .bl-row-title { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.32; color: var(--ink); margin-bottom: 6px; transition: color .18s var(--ease); }
.bl-pinned .bl-row-desc { display: block; color: var(--ink-dim); font-size: 14px; line-height: 1.6; }
.bl-pinned .bl-row-go { font-size: 13px; font-weight: 600; color: var(--ink-faint); text-align: right; padding-top: 4px; white-space: nowrap; transition: color .18s var(--ease); }
.bl-pinned .bl-row-go i { font-size: 11px; transition: transform .18s var(--ease); }
.bl-pinned:hover .bl-row-title, .bl-pinned:hover .bl-row-go { color: var(--accent); }
.bl-pinned:hover .bl-row-go i { transform: translateX(3px); }
.bl-pinned:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[data-theme="light"] .bl-pinned { background: linear-gradient(165deg, rgba(255, 176, 84, .08), #fff 60%); border-color: var(--accent); box-shadow: 0 6px 20px rgba(255, 176, 84, .08); }
@media (max-width: 640px) { .bl-pinned { grid-template-columns: 1fr; gap: 6px; padding: 28px 18px 18px; } .bl-pinned .bl-row-go { text-align: left; } }

.bl-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.bl-featured h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.22; margin: 14px 0 16px; }
.bl-featured h2 a { color: var(--ink); }
.bl-featured h2 a:hover { color: var(--accent); }
.bl-featured p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.7; margin-bottom: 22px; }
.bl-featured-link { color: var(--ink); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.bl-featured-link:hover { color: var(--accent); }
.bl-featured-visual { display: flex; align-items: center; justify-content: center; height: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, var(--bg-card), var(--bg-page) 72%); }
.bl-featured-mark { width: 200px; max-width: 62%; opacity: .75; }

/* One row per article: category, then the story, then the affordance - the same three columns at every width until it stacks. */
.bl-rows { display: flex; flex-direction: column; }
.bl-row { display: grid; grid-template-columns: 150px 1fr 92px; gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); color: inherit; }
.bl-row-cat { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); padding-top: 5px; }
.bl-row-main { display: block; }
.bl-row-title { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.32; color: var(--ink); margin-bottom: 8px; transition: color .18s var(--ease); }
.bl-row-desc { display: block; color: var(--ink-dim); font-size: 14.5px; line-height: 1.65; max-width: 62ch; }
.bl-row-go { font-size: 13px; font-weight: 600; color: var(--ink-faint); text-align: right; padding-top: 6px; white-space: nowrap; transition: color .18s var(--ease); }
.bl-row-go i { font-size: 11px; transition: transform .18s var(--ease); }
.bl-row:hover .bl-row-title, .bl-row:hover .bl-row-go { color: var(--accent); }
.bl-row:hover .bl-row-go i { transform: translateX(3px); }
.bl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bl-featured .bl-row-cat { padding-top: 0; color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .bl-article.has-toc { display: block; }
    .bl-toc { position: static; padding: 28px 24px 0; max-width: 720px; margin: 0 auto; }
    .bl-toc nav { display: none; }
}

@media (max-width: 900px) {
    .bl-featured { grid-template-columns: 1fr; gap: 28px; }
    .bl-featured-visual { height: 180px; order: -1; }
    .bl-row { grid-template-columns: 1fr; gap: 8px; }
    .bl-row-cat { padding-top: 0; }
    .bl-row-go { text-align: left; padding-top: 2px; }
}

@media (max-width: 640px) {
    .bl-hero { padding: 80px 0 32px; }
    .bl-hero h1 { font-size: 26px; }
    .bl-body { font-size: 16px; padding: 0 18px; }
    .bl-body h2 { font-size: 22px; margin-top: 36px; }
    .bl-highlight { padding: 18px 20px; }
    .bl-stat-row { grid-template-columns: 1fr 1fr; }
    .bl-cta-card { padding: 32px 24px; }
    .bl-cards { grid-template-columns: 1fr; }
    .bl-index-hero { padding: 28px 0 24px; }
    .bl-index-hero h1 { font-size: 24px; margin-bottom: 12px; }
    .bl-index-hero p { font-size: 13px; line-height: 1.55; }
}
