/* Vibe coding production checklist page */

/* overflow-x: hidden on html/body breaks the sticky progress bar; clip does not */
html:has(body.bi-vcl-page),
body.bi-vcl-page { overflow-x: clip !important; overflow-y: visible !important; }

/* ── Hero header ─────────────────────────── */
.bi-vcl-hero {
	position: relative;
	z-index: 1;
	color: #fff;
	padding: 7rem 0 3.5rem;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background:
		radial-gradient(ellipse 60% 70% at 15% 20%, rgba(124, 58, 237, 0.28), transparent 70%),
		radial-gradient(ellipse 50% 60% at 90% 70%, rgba(8, 145, 178, 0.22), transparent 70%);
}
.bi-vcl-hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
	animation: bi-vcl-grid 22s linear infinite;
	pointer-events: none;
}
@keyframes bi-vcl-grid { to { background-position: 0 44px, 44px 0; } }
.bi-vcl-hero-inner { position: relative; max-width: 1140px; }
.bi-vcl-crumbs { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.25rem; }
.bi-vcl-crumbs a { color: #a78bfa; text-decoration: none; }
.bi-vcl-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c4b5fd;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(167, 139, 250, 0.35);
	background: rgba(124, 58, 237, 0.12);
}
.bi-vcl-hero h1 {
	font-weight: 900;
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 1rem 0 1rem;
}
.bi-vcl-hero-sub { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; line-height: 1.6; max-width: 600px; }
.bi-vcl-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.75rem; }
.bi-vcl-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bi-vcl-stats li {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.5rem 0.9rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.bi-vcl-stats strong { font-size: 1.25rem; font-weight: 800; background: linear-gradient(90deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bi-vcl-stats span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }

/* ── Readiness dashboard ─────────────────── */
.bi-vcl-dash {
	position: relative;
	border-radius: 20px;
	background: rgba(11, 10, 23, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 58, 237, 0.12);
	backdrop-filter: blur(12px);
	overflow: hidden;
	animation: bi-vcl-float 7s ease-in-out infinite;
}
@keyframes bi-vcl-float { 50% { transform: translateY(-8px); } }
.bi-vcl-dash::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(140deg, rgba(167, 139, 250, 0.7), transparent 40%, transparent 60%, rgba(34, 211, 238, 0.6));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.bi-vcl-dash-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.03);
}
.bi-vcl-dash-body { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.1rem 0.6rem; }
.bi-vcl-dash-score { position: relative; width: 112px; height: 112px; flex: 0 0 112px; }
.bi-vcl-dash .bi-vcl-ring-bar {
	stroke: #f87171;
	stroke-dashoffset: calc(326.73 * (1 - var(--bi-vibe-score, 0) / 100));
	transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.6s ease;
}
.bi-vcl-dash.is-high .bi-vcl-ring-bar { stroke: #34d399; }
.bi-vcl-dash-levels { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 0.55rem; }
.bi-vcl-dash-levels li { display: grid; grid-template-columns: 92px 1fr 48px; align-items: center; gap: 0.5rem; font-size: 0.74rem; }
.bi-vcl-dash-lname { color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.bi-vcl-dash-lname b { color: rgba(255, 255, 255, 0.45); font-weight: 700; margin-right: 2px; }
.bi-vcl-dash-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bi-vcl-dash-track span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
[data-vcl-level="1"] .bi-vcl-dash-track span { background: #f87171; }
[data-vcl-level="2"] .bi-vcl-dash-track span { background: #fbbf24; }
[data-vcl-level="3"] .bi-vcl-dash-track span { background: #22d3ee; }
[data-vcl-level="4"] .bi-vcl-dash-track span { background: #34d399; }
.bi-vcl-dash-lcount { text-align: right; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.bi-vcl-term {
	margin: 0.4rem 1.1rem 0;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: #07060f;
	border: 1px solid rgba(255, 255, 255, 0.05);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.72rem;
	line-height: 1.75;
	white-space: normal;
	min-height: 150px;
}
.bi-vcl-term-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-vcl-term-line--cmd { color: #e0e7ff; }
.bi-vcl-term-line--info { color: rgba(255, 255, 255, 0.5); }
.bi-vcl-term-line--bad { color: #fca5a5; }
.bi-vcl-term-line--warn { color: #fcd34d; }
.bi-vcl-term-line--ok { color: #6ee7b7; font-weight: 600; }
.bi-vcl-term-anim .bi-vcl-term-line { opacity: 0; transform: translateX(-6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.bi-vcl-term-anim .bi-vcl-term-line.is-on { opacity: 1; transform: none; }
.bi-vcl-term-anim .bi-vcl-term-line.is-on:last-child::after { content: "▋"; margin-left: 4px; animation: bi-vcl-caret 1s steps(1) infinite; }
@keyframes bi-vcl-caret { 50% { opacity: 0; } }
.bi-vcl-dash-verdict { margin: 0; padding: 0.8rem 1.1rem 1rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }

/* ── Main ────────────────────────────────── */
.bi-vcl-main { position: relative; z-index: 1; color: #fff; max-width: 1140px; padding: 2rem 1rem 3rem; }
.bi-vcl-progress {
	position: sticky;
	top: 72px;
	z-index: 5;
	margin: 0 0 1.75rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	background: rgba(11, 10, 23, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	scroll-margin-top: 90px;
}
.bi-vcl-progress p { margin: 0.5rem 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.bi-vcl-progress strong { color: #fff; }
.bi-vcl-progress-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bi-vcl-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f87171, #fbbf24 40%, #34d399); transition: width 0.4s ease; }
.bi-vcl-reset { margin-left: 0.5rem; border: 0; background: none; color: #a78bfa; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.bi-vcl-lead { color: rgba(255, 255, 255, 0.68); max-width: 820px; font-size: 0.95rem; line-height: 1.65; }
.bi-vcl-h2 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; margin: 2.75rem 0 1rem; }
.bi-vcl-h2 i { color: #a78bfa; font-size: 1.25rem; }

/* Maturity staircase */
.bi-vcl-stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; align-items: end; }
.bi-vcl-stair {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1rem 1.05rem;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	overflow: hidden;
}
.bi-vcl-stair::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.bi-vcl-stair--1 { min-height: 130px; }
.bi-vcl-stair--2 { min-height: 155px; }
.bi-vcl-stair--3 { min-height: 180px; }
.bi-vcl-stair--4 { min-height: 205px; background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02)); }
.bi-vcl-stair--1::before { background: #f87171; }
.bi-vcl-stair--2::before { background: #fbbf24; }
.bi-vcl-stair--3::before { background: #22d3ee; }
.bi-vcl-stair--4::before { background: #34d399; }
.bi-vcl-stair-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.bi-vcl-stair strong { font-size: 1rem; }
.bi-vcl-stair small { color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; }
.bi-vcl-stair-count { margin-top: auto; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

/* Priorities */
.bi-vcl-priorities > p { color: rgba(255, 255, 255, 0.65); margin-top: -0.4rem; }
.bi-vcl-prio-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.bi-vcl-prio {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.75rem 0.9rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.88);
	transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.bi-vcl-prio:hover { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.06); transform: translateY(-2px); }
.bi-vcl-prio-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; color: #fca5a5; }
.bi-vcl-prio i { font-size: 1.05rem; color: #c4b5fd; }

/* TOC */
.bi-vcl-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.bi-vcl-toc-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
	text-decoration: none;
}
.bi-vcl-toc-link:hover { border-color: rgba(167, 139, 250, 0.5); color: #fff; }
.bi-vcl-toc-link small { color: rgba(255, 255, 255, 0.45); }
.bi-vcl-toc-link.is-complete { border-color: rgba(52, 211, 153, 0.45); }
.bi-vcl-toc-link.is-complete small { color: #34d399; font-weight: 700; }
.bi-vcl-lvl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; }
.bi-vcl-lvl--1 { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }
.bi-vcl-lvl--2 { color: #fcd34d; background: rgba(251, 191, 36, 0.14); }
.bi-vcl-lvl--3 { color: #67e8f9; background: rgba(34, 211, 238, 0.14); }
.bi-vcl-lvl--4 { color: #6ee7b7; background: rgba(52, 211, 153, 0.14); }

/* Sections */
.bi-vcl-section {
	position: relative;
	margin-top: 1.25rem;
	padding: 1.4rem 1.5rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	scroll-margin-top: 160px;
	transition: border-color 0.3s ease;
}
.bi-vcl-section:hover { border-color: rgba(255, 255, 255, 0.14); }
.bi-vcl-section-head { display: flex; align-items: flex-start; gap: 1rem; }
.bi-vcl-section-ico {
	flex: 0 0 46px;
	height: 46px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
}
.bi-vcl-section--l1 .bi-vcl-section-ico { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }
.bi-vcl-section--l2 .bi-vcl-section-ico { color: #fcd34d; background: rgba(251, 191, 36, 0.14); }
.bi-vcl-section--l3 .bi-vcl-section-ico { color: #67e8f9; background: rgba(34, 211, 238, 0.14); }
.bi-vcl-section--l4 .bi-vcl-section-ico { color: #6ee7b7; background: rgba(52, 211, 153, 0.14); }
.bi-vcl-section-titles { flex: 1; min-width: 0; }
.bi-vcl-section-head h2 { font-size: 1.2rem; font-weight: 700; margin: 0.45rem 0 0.25rem; }
.bi-vcl-section-head p { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; margin: 0; }
.bi-vcl-section-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.bi-vcl-section-count { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bi-vcl-section-count.is-complete { color: #34d399; font-weight: 700; }
.bi-vcl-checkall {
	border: 1px solid rgba(167, 139, 250, 0.35);
	background: rgba(124, 58, 237, 0.1);
	color: #c4b5fd;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}
.bi-vcl-checkall:hover { background: rgba(124, 58, 237, 0.22); color: #fff; }
.bi-vcl-section-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin: 1rem 0 0.9rem; overflow: hidden; }
.bi-vcl-section-track span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.bi-vcl-section--l1 .bi-vcl-section-track span { background: #f87171; }
.bi-vcl-section--l2 .bi-vcl-section-track span { background: #fbbf24; }
.bi-vcl-section--l3 .bi-vcl-section-track span { background: #22d3ee; }
.bi-vcl-section--l4 .bi-vcl-section-track span { background: #34d399; }
.bi-vcl-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem 1rem; }
.bi-vcl-items label {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.82);
	cursor: pointer;
	padding: 0.35rem 0.5rem;
	border-radius: 8px;
	transition: background 0.2s ease;
}
.bi-vcl-items label:hover { background: rgba(255, 255, 255, 0.04); }
.bi-vcl-items input { margin-top: 0.22rem; accent-color: #34d399; flex: 0 0 auto; width: 15px; height: 15px; }
.bi-vcl-items input:checked + span { color: rgba(167, 243, 208, 0.85); text-decoration: line-through; text-decoration-color: rgba(167, 243, 208, 0.4); }

/* CTA + FAQ */
.bi-vcl-cta {
	margin-top: 2.75rem;
	padding: 2.25rem 2rem;
	border-radius: 22px;
	text-align: center;
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(8, 145, 178, 0.18));
	border: 1px solid rgba(167, 139, 250, 0.3);
}
.bi-vcl-cta h2 { font-size: 1.5rem; font-weight: 800; }
.bi-vcl-cta p { color: rgba(255, 255, 255, 0.72); max-width: 620px; margin: 0.5rem auto 1.25rem; }
.bi-vcl-faq { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.bi-vcl-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 2rem 1rem 0;
	font-weight: 700;
	position: relative;
}
.bi-vcl-faq summary::-webkit-details-marker { display: none; }
.bi-vcl-faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.2rem; color: #a78bfa; transition: transform 0.25s ease; }
.bi-vcl-faq[open] summary::after { transform: rotate(45deg); }
.bi-vcl-faq p { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; line-height: 1.6; }

@media (max-width: 991.98px) {
	.bi-vcl-hero { padding-top: 6rem; }
	.bi-vcl-stairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bi-vcl-prio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	.bi-vcl-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bi-vcl-section-head { flex-wrap: wrap; }
	.bi-vcl-section-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
@media (max-width: 479.98px) {
	.bi-vcl-items, .bi-vcl-prio-grid { grid-template-columns: 1fr; }
	.bi-vcl-stairs { grid-template-columns: 1fr; }
	.bi-vcl-stair { min-height: 0 !important; }
	.bi-vcl-dash-body { flex-direction: column; }
	.bi-vcl-dash-levels { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.bi-vcl-hero-grid, .bi-vcl-dash { animation: none !important; }
}
