/* ==========================================================
   LeadCanal clean layer (v1.4)
   White surfaces, LeadCanal green for actions and accents,
   centered light heroes with soft mint lines.
   Loaded after main.css; only overrides what changes.
   ========================================================== */
:root {
	--line-soft: #E6ECE7;
	--shadow-card: 0 30px 60px -40px rgba(10, 35, 27, .35);
	--r-btn: 10px;
}

/* ---------- Buttons ---------- */
.lc-btn { border-radius: var(--r-btn); font-weight: 700; }
.lc-btn-ghost { background: #fff; color: var(--ink); border-color: #D5DED7; }
.lc-btn-ghost:hover { background: #fff; color: var(--canal-700); border-color: var(--canal-700); }
.lc-btn-block { display: flex; width: 100%; }

/* ---------- Top bar + header ---------- */
.lc-topbar { background: var(--canal-900); color: #fff; text-align: center; font-size: 14px; line-height: 1.4; }
.lc-topbar .lc-wrap { padding-top: 11px; padding-bottom: 11px; }
.lc-topbar-link { color: #fff; text-decoration: none; font-weight: 500; }
.lc-topbar-link::after { content: " \2192"; color: var(--mint); }
.lc-topbar-link:hover { color: var(--mint); }
.lc-header { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line-soft); }
.lc-header-actions .lc-btn-primary { min-height: 42px; }

/* ---------- Decorative lines ---------- */
.lc-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; color: var(--mint); }
.lc-lines svg { position: absolute; top: 12px; width: 520px; height: 560px; opacity: .6; }
.lc-lines-l { left: -80px; }
.lc-lines-r { right: -80px; transform: scaleX(-1); }

/* ---------- Kicker (light) ---------- */
.lc-hero-clean .lc-kicker,
.lc-phero .lc-kicker,
.lc-post-hero .lc-kicker {
	color: var(--body); background: #fff; border-color: var(--line);
}
.lc-hero-clean .lc-kicker::before,
.lc-phero .lc-kicker::before { background: var(--pass); }

/* ---------- Homepage hero ---------- */
.lc-hero.lc-hero-clean { position: relative; background: #fff; color: var(--body); padding: 88px 0 0; overflow: hidden; }
.lc-hero-center { position: relative; max-width: 900px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lc-hero-clean .lc-hero-title { color: var(--ink); max-width: 19ch; font-size: clamp(40px, 6vw, 74px); margin-bottom: 22px; }
.lc-hero-clean .lc-hero-text { color: #4A5A52; max-width: 40em; font-size: 20px; margin-bottom: 30px; }
.lc-hero-center .lc-hero-actions { justify-content: center; }
.lc-hero-center .lc-btn { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.lc-hero-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lc-hero-chips li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; color: var(--body); background: #fff; }
.lc-hero-chips .lc-ico { width: 16px; height: 16px; color: var(--pass); stroke-width: 2.4; }

/* Product preview */
.lc-preview { position: relative; max-width: 1100px; margin: 64px auto 0; background: var(--mint-50); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.lc-preview-window { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; text-align: left; }
.lc-preview-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #EEF2EF; }
.lc-preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lc-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lc-preview-pane { padding: 24px; }
.lc-preview-pane + .lc-preview-pane { border-left: 1px solid #EEF2EF; }
.lc-preview-k { margin: 0 0 14px; font-family: var(--f-display); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lc-preview-input { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 14.5px; color: var(--ink); }
.lc-preview-email { margin: 14px 0 2px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.lc-preview-ok { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--pass); }
.lc-preview-ok .lc-ico { width: 15px; height: 15px; stroke-width: 2.4; }
.lc-preview-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.lc-preview-checks li { display: flex; justify-content: space-between; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid #F0F4F1; }
.lc-preview-checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.lc-preview-checks b { font-weight: 600; }
.lc-preview-checks .is-pass { color: var(--pass); }
.lc-preview-checks .is-warn { color: var(--warn); }
.lc-preview-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-preview-tags span { background: var(--mint-50); color: var(--canal-700); border-radius: 8px; padding: 7px 10px; font-size: 13.5px; font-weight: 600; }
.lc-preview-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* Stats on white */
.lc-hero-clean .lc-stats { margin-top: 72px; border-top: 1px solid var(--line); }
.lc-hero-clean .lc-stat + .lc-stat { border-left-color: var(--line); }
.lc-hero-clean .lc-stat-n { color: var(--ink); }
.lc-hero-clean .lc-stat-l { color: var(--muted); }

/* ---------- Tools block on the homepage (was dark) ---------- */
.lc-tools { background: var(--mint-50); color: var(--body); }
.lc-tools .lc-h2 { color: var(--ink); }
.lc-tools .lc-lead { color: var(--muted); }
.lc-tool { background: #fff; border-color: var(--line); color: var(--body); }
.lc-tool:hover { background: #fff; border-color: var(--canal-700); color: var(--body); box-shadow: var(--shadow-card); }
.lc-tool-ico { color: var(--canal-700); }
.lc-tool-t { color: var(--ink); }
.lc-tool-d { color: var(--muted); }
.lc-tool.is-lead { background: var(--canal-700); border-color: var(--canal-700); }
.lc-tool.is-lead .lc-tool-ico { color: var(--mint); }
.lc-tool.is-lead .lc-tool-t { color: #fff; }
.lc-tool.is-lead .lc-tool-d { color: var(--mint-200); }
.lc-tool.is-lead:hover { background: var(--canal-900); border-color: var(--canal-900); }

/* ---------- Page heroes (services, tools, lists) ---------- */
.lc-phero {
	background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--mint-50) 100%);
	color: var(--body); overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
}
.lc-phero > .lc-wrap { position: relative; }
.lc-phero .lc-lines svg { opacity: .45; }
.lc-crumbs { color: var(--muted); }
.lc-crumbs a { color: var(--body); }
.lc-crumbs a:hover { color: var(--canal-700); }
.lc-crumbs [aria-current] { color: var(--muted); }
.lc-phero-title { color: var(--ink); }
.lc-phero-text { color: #4A5A52; }
.lc-phero .lc-hero-points { color: var(--body); }
.lc-hero-points li::before { background-color: var(--mint-50); box-shadow: inset 0 0 0 1px var(--mint); }
.lc-phero-aside .lc-ui { box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.lc-phero-grid.is-single, .lc-phero-tool-head { margin-left: auto; margin-right: auto; text-align: center; }
.lc-phero-grid.is-single .lc-phero-title, .lc-phero-tool-head .lc-phero-title,
.lc-phero-grid.is-single .lc-phero-text, .lc-phero-tool-head .lc-phero-text { margin-left: auto; margin-right: auto; }
.lc-phero-grid.is-single .lc-hero-actions, .lc-phero-grid.is-single .lc-hero-points, .lc-phero-tool-head .lc-hero-points { justify-content: center; }
.lc-phero-grid.is-single .lc-kicker { margin-left: auto; margin-right: auto; }
.lc-phero .lc-crumbs { justify-content: flex-start; }

/* Tool frame sits on the mint edge of the hero */
.lc-tool-frame { border: 1px solid var(--line); box-shadow: var(--shadow-card); }

/* ---------- Dark sections become soft mint panels ---------- */
.lc-section.is-dark { background: var(--mint-50); color: var(--body); }
.lc-section.is-dark .lc-h2, .lc-section.is-dark h3 { color: var(--ink); }
.lc-section.is-dark .lc-lead, .lc-section.is-dark .lc-feature-d { color: var(--muted); }
.lc-section.is-dark .lc-feature { border-color: var(--line); }
.lc-section.is-dark .lc-feature-ico { background: #fff; color: var(--canal-700); }
.is-dark .lc-stat-row, .is-dark .lc-stat-box + .lc-stat-box { border-color: var(--line); }
.is-dark .lc-stat-box-n { color: var(--canal-700); }
.lc-section.is-dark .lc-split-aside { background: #fff; }

/* ---------- Closing call to action: rounded green panel ---------- */
.lc-cta { background: #fff; padding: 24px 0 96px; }
.lc-cta-inner {
	background: var(--canal-700); border-radius: 28px; padding: 72px 32px;
	max-width: calc(var(--wrap) - 2 * var(--gutter));
	position: relative; overflow: hidden;
}
.lc-cta-inner::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(600px 240px at 50% 0%, rgba(189, 229, 195, .18), transparent 70%);
}
.lc-cta-inner > * { position: relative; }

/* ---------- FAQ ---------- */
.lc-faq-section { background: #fff; border-top: 1px solid var(--line-soft); }

/* ---------- Blog archive cards ---------- */
.lc-card-link { border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 12px 18px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.lc-card-link:hover { border-color: var(--canal-700); box-shadow: var(--shadow-card); }
.lc-card-media { border-radius: 12px; margin-bottom: 14px; }
.lc-card-body { padding: 0 6px; }

/* ==========================================================
   Single post
   ========================================================== */
.lc-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 200; pointer-events: none; }
.admin-bar .lc-progress { top: 32px; }
.lc-progress span { display: block; height: 100%; background: var(--canal-700); transform: scaleX(0); transform-origin: 0 50%; }

.lc-post-hero { position: relative; background: #fff; color: var(--body); padding: 28px 0 0; overflow: hidden; }
.lc-post-hero-inner { position: relative; max-width: 880px; text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 48px; }
.lc-post-hero .lc-crumbs { justify-content: center; margin-bottom: 36px; }
.lc-post-cat { background: var(--mint-50); color: var(--canal-700); border: 1px solid var(--mint-200); }
.lc-post-cat:hover { background: var(--mint); color: var(--canal-950); }
.lc-post-title { color: var(--ink); max-width: 22ch; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; }
.lc-post-dek { color: #4A5A52; margin-left: auto; margin-right: auto; font-size: 20px; }
.lc-post-meta { justify-content: center; color: var(--muted); gap: 12px 28px; }
.lc-post-meta a { color: var(--ink); }
.lc-post-avatar { width: 40px; height: 40px; font-size: 16px; background: var(--canal-700); color: #fff; }
.lc-post-by { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.lc-post-by > span { font-size: 13.5px; }
.lc-post-read { display: inline-flex; align-items: center; gap: 6px; }
.lc-post-read .lc-ico { width: 17px; height: 17px; }

.lc-post-cover.lc-article-cover { position: relative; max-width: 1100px; margin: 0 auto; padding: 16px; background: var(--mint-50); border: 1px solid var(--line); border-radius: 24px; }
.lc-post-cover.lc-article-cover img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.lc-post-layout {
	max-width: 1320px;
	grid-template-columns: 210px minmax(0, 1fr) 290px;
	gap: 48px; padding-top: 56px; padding-bottom: 72px;
}
.lc-post-main { max-width: 720px; width: 100%; justify-self: center; }
.lc-post-toc-col, .lc-post-side { position: relative; height: 100%; }
.lc-post-toc-col .lc-toc { border: 0; padding: 0; background: none; border-radius: 0; }
.lc-post-toc-col .lc-toc ol { border-left: 2px solid var(--line-soft); gap: 0; max-height: 56vh; }
.lc-post-toc-col .lc-toc a { border-radius: 0; margin-left: -2px; border-left: 2px solid transparent; padding: 7px 0 7px 14px; font-size: 14px; color: var(--muted); }
.lc-post-toc-col .lc-toc a:hover { background: none; color: var(--ink); }
.lc-post-toc-col .lc-toc a.is-active { background: none; color: var(--canal-700); border-left-color: var(--canal-700); font-weight: 600; }

/* Prose refinements */
.lc-article .lc-prose { font-size: 18px; line-height: 1.75; color: #2E3D36; }
.lc-article .lc-prose h2 { font-size: clamp(26px, 2.5vw, 32px); padding-top: 8px; }
.lc-article .lc-prose > p:first-child { font-size: 20px; line-height: 1.65; color: var(--ink); }
.lc-article .lc-prose blockquote { background: var(--mint-50); border-left: 3px solid var(--canal-700); border-radius: 0 14px 14px 0; padding: 18px 22px; font-size: 19px; }
.lc-article .lc-prose img { border: 1px solid var(--line-soft); }
.lc-article .lc-prose table { border-radius: 12px; }
.lc-article .lc-prose code { background: var(--mint-50); color: var(--canal-900); border-radius: 6px; padding: 2px 6px; font-size: .9em; }
.lc-article .lc-prose pre code { background: none; color: inherit; padding: 0; }

/* Tags + share */
.lc-post-tags { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-post-tags a { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--body); text-decoration: none; }
.lc-post-tags a:hover { border-color: var(--canal-700); color: var(--canal-700); }
.lc-share { margin-top: 28px; }
.lc-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-share-btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
	border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
	font-family: var(--f-display); font-weight: 600; font-size: 13.5px; text-decoration: none; cursor: pointer;
}
.lc-share-btn:hover { border-color: var(--canal-700); color: var(--canal-700); }
.lc-share-btn .lc-ico { width: 15px; height: 15px; }
.lc-post-share-end { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--line-soft); border-radius: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.lc-post-share-end p { margin: 0; font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.lc-post-share-end .lc-share { margin: 0; }
.lc-author-box { background: var(--mint-50); border-color: var(--line); margin-top: 20px; }
.lc-author-avatar { background: var(--canal-700); color: #fff; }

/* Right column: light service card + free tool link */
.lc-svc-card { background: #fff; color: var(--body); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.lc-svc-card-kicker { color: var(--pass); }
.lc-svc-card-title { color: var(--ink); }
.lc-svc-card-text { color: var(--muted); }
.lc-svc-card li .lc-ico { color: var(--pass); }
.lc-side-tool { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--mint-50); text-decoration: none; color: var(--ink); }
.lc-side-tool:hover { border-color: var(--canal-700); color: var(--ink); }
.lc-side-tool-ico { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--canal-700); display: grid; place-items: center; flex-shrink: 0; }
.lc-side-tool > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-side-tool-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lc-side-tool-t { font-family: var(--f-display); font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.lc-side-tool-go { color: var(--canal-700); }

/* Post CTA as a rounded green panel */
.lc-post-cta { background: #fff; padding: 0 0 24px; }
.lc-post-cta-inner { background: var(--canal-700); color: var(--mint-200); border-radius: 28px; padding: 48px; }
.lc-post-cta-kicker { color: var(--mint); }

/* Related guides */
.lc-related { background: #fff; margin-top: 0; padding: 72px 0 88px; }
.lc-related .lc-h2 { text-align: center; margin-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.lc-post-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
	.lc-post-toc-col { display: none; }
	.lc-toc-mobile { display: block; }
	.lc-post-main { justify-self: start; }
}
@media (max-width: 960px) {
	.lc-preview-grid { grid-template-columns: 1fr; }
	.lc-preview-pane + .lc-preview-pane { border-left: 0; border-top: 1px solid #EEF2EF; }
	.lc-lines svg { width: 360px; height: 390px; opacity: .4; }
	.lc-post-layout { grid-template-columns: 1fr; }
	.lc-post-main { max-width: none; }
	.lc-post-side .lc-post-sticky { position: static; }
}
@media (max-width: 640px) {
	.lc-topbar { font-size: 13px; }
	.lc-hero.lc-hero-clean { padding-top: 56px; }
	.lc-hero-clean .lc-hero-text, .lc-post-dek { font-size: 17px; }
	.lc-article .lc-prose { font-size: 17px; }
	.lc-article .lc-prose > p:first-child { font-size: 18px; }
	.lc-hero-center .lc-hero-actions { flex-direction: column; width: 100%; }
	.lc-hero-center .lc-btn { width: 100%; }
	.lc-preview { margin-top: 40px; padding: 12px; border-radius: 16px; }
	.lc-lines-r { display: none; }
	.lc-lines-l { left: -140px; }
	.lc-cta-inner { padding: 48px 20px; border-radius: 20px; max-width: calc(100% - 32px); }
	.lc-post-cta-inner { padding: 32px 22px; border-radius: 20px; }
	.lc-post-cover.lc-article-cover { padding: 8px; border-radius: 16px; }
	.lc-post-cover.lc-article-cover img { border-radius: 10px; }
	.lc-post-meta { gap: 10px 18px; }
	.lc-post-share-end { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.lc-progress { display: none; }
}
