/* Sage Terminal — Máshogy építve ([anyweb_build]).
   Sticky scrollytelling: bal lista, jobb HTML panel. */

.anyweb-build {
	--ink: #1B211D;
	--paper: #FAFAF7;
	--white: #FFFFFF;
	--mist: #E4E9E0;
	--sage: #8FA894;
	--leaf: #4F6B55;
	--forest: #34503C;
	--text: #4E5751;
	--text-muted: #6A716B;
	--text-soft: #8A9186;
	--color-border: rgba(27, 33, 29, 0.10);
	--color-border-hairline: rgba(27, 33, 29, 0.08);
	--font-heading: "Manrope", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, sans-serif;
	--font-mono: "DM Mono", ui-monospace, monospace;
	--radius-chip: 4px;
	--radius-button: 6px;
	--radius-card: 8px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	font-family: var(--font-body);
	color: var(--text);
	box-sizing: border-box;
}

.anyweb-build *,
.anyweb-build *::before,
.anyweb-build *::after {
	box-sizing: border-box;
}

.anyweb-build__grid {
	display: grid;
	grid-template-columns: 1fr 0.9fr;
	gap: 64px;
	align-items: start;
}

.anyweb-build__list {
	display: flex;
	flex-direction: column;
	padding: 32px 0 180px;
	border-left: 1px solid var(--color-border);
}

.anyweb-build__item {
	position: relative;
	padding: 24px 0 24px 32px;
}

.anyweb-build__mark {
	position: absolute;
	left: -1px;
	top: 26px;
	width: 2px;
	height: 36px;
	background: var(--leaf);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.anyweb-build__item.is-active .anyweb-build__mark {
	opacity: 1;
}

.anyweb-build__head {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 34px;
	line-height: 1.14;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--text-soft);
	transition: color 0.2s ease;
}

.anyweb-build__item.is-active .anyweb-build__head {
	color: var(--ink);
}

/* Clickable heading (button reset, inherits the h3 look). */
.anyweb-build__head-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s ease;
}

.anyweb-build__head-btn:hover {
	color: var(--ink);
}

.anyweb-build__head-btn:focus-visible {
	outline: 2px solid var(--leaf);
	outline-offset: 4px;
	border-radius: 2px;
}

.anyweb-build__body {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, grid-template-rows 0.2s ease;
}

.anyweb-build__item.is-active .anyweb-build__body {
	grid-template-rows: 1fr;
	opacity: 1;
}

.anyweb-build__body-in {
	min-height: 0;
}

.anyweb-build__checks {
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--text);
}

.anyweb-build__check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.anyweb-build__check-mark {
	font-family: var(--font-mono);
	color: var(--leaf);
	flex: 0 0 auto;
}

.anyweb-build__visuals {
	position: sticky;
	top: 122px;
	height: 520px;
	overflow: hidden;
	background: transparent;
	border: 0;
}

.anyweb-build__visual {
	position: absolute;
	inset: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	opacity: 0;
	transform: translateY(16px);
	background: transparent;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	overflow: auto;
}

.anyweb-build__visual.is-active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.anyweb-build__empty {
	margin: 24px auto;
	max-width: 620px;
	padding: 0 40px;
	font-size: 15.5px;
	color: var(--text-muted);
	text-align: center;
}

/* Pasted template HTML — device row */
.anyweb-build .device-row {
	display: flex;
	gap: 16px;
	align-items: flex-end;
}
.anyweb-build .device-a {
	flex: 1;
	height: 210px;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--mist);
	border: 1px solid var(--color-border);
}
.anyweb-build .device-b {
	width: 96px;
	height: 158px;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--mist);
	border: 1px solid var(--color-border);
}
.anyweb-build .device-c {
	width: 56px;
	height: 104px;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--mist);
	border: 1px solid var(--color-border);
}
.anyweb-build .badge-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.anyweb-build .gimg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.anyweb-build .gimg--gray {
	filter: grayscale(1) contrast(0.94);
}
.anyweb-build .gimg--gray2 {
	filter: grayscale(1);
}

/* Badges */
.anyweb-build .badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.2;
	padding: 7px 12px;
	border-radius: var(--radius-chip);
	border: 1px solid transparent;
	white-space: nowrap;
}
.anyweb-build .badge--ink {
	background: var(--ink);
	color: var(--mist);
}
.anyweb-build .badge--mist {
	background: var(--mist);
	color: var(--forest);
}
.anyweb-build .badge--outline {
	background: var(--paper);
	border-color: var(--color-border);
	color: var(--text);
}

/* Content types */
.anyweb-build .ctype-kicker {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-soft);
}
.anyweb-build .ctype-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.anyweb-build .ctype-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-radius: var(--radius-card);
	background: var(--paper);
	border: 1px solid var(--color-border-hairline);
}
.anyweb-build .ctype-thumb {
	width: 46px;
	height: 46px;
	border-radius: var(--radius-button);
	overflow: hidden;
	flex: 0 0 auto;
}
.anyweb-build .ctype-name {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--ink);
}
.anyweb-build .ctype-meta {
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
}

/* Preview / comment */
.anyweb-build .preview-img {
	height: 132px;
	border-radius: var(--radius-card);
	overflow: hidden;
	border: 1px solid var(--color-border);
}
.anyweb-build .comment-card {
	border-radius: var(--radius-card);
	background: var(--mist);
	padding: 24px;
}
.anyweb-build .comment-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.anyweb-build .comment-avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	overflow: hidden;
	flex: 0 0 auto;
}
.anyweb-build .comment-name {
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}
.anyweb-build .comment-text {
	margin: 12px 0 0;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--forest);
}
.anyweb-build .comment-badges {
	margin-top: 16px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.anyweb-build .preview-note {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-soft);
}

/* Terminal + metrics */
.anyweb-build .term {
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--ink);
}
.anyweb-build .term-head {
	height: 40px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.anyweb-build .term-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(228, 233, 224, 0.25);
}
.anyweb-build .term-dot--ok {
	background: var(--sage);
}
.anyweb-build .term-title {
	margin-left: 12px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: rgba(228, 233, 224, 0.45);
}
.anyweb-build .term-body {
	padding: 22px 22px 26px;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 2;
	color: rgba(250, 250, 247, 0.72);
}
.anyweb-build .term-line .mk {
	color: var(--sage);
}
.anyweb-build .term-line--out {
	color: rgba(250, 250, 247, 0.45);
}
.anyweb-build .metrics-grid {
	border-radius: var(--radius-card);
	background: var(--mist);
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.anyweb-build .metric-label {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--forest);
}
.anyweb-build .metric-value {
	margin-top: 6px;
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.035em;
	color: var(--ink);
}

/* Detailed visual panels */
.anyweb-viz {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	height: 100%;
}
.anyweb-viz__kicker {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-soft);
}
.anyweb-viz__card {
	background: var(--white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	padding: 22px 24px;
}
.anyweb-viz__mist {
	background: var(--mist);
	border-radius: var(--radius-card);
	padding: 20px 24px;
	color: var(--forest);
}
.anyweb-viz__mist-title {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--ink);
}
.anyweb-viz__mist-text {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--forest);
}
.anyweb-viz__devices {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}
.anyweb-viz__device {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--white);
}
.anyweb-viz__device--desk {
	flex: 1;
}
.anyweb-viz__device--tab {
	width: 108px;
	flex: 0 0 auto;
}
.anyweb-viz__device--mob {
	width: 64px;
	flex: 0 0 auto;
}
.anyweb-viz__chrome {
	height: 28px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	border-bottom: 1px solid var(--color-border-hairline);
	background: var(--paper);
}
.anyweb-viz__chrome-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(27, 33, 29, 0.14);
}
.anyweb-viz__chrome-url {
	margin-left: 8px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.anyweb-viz__wire {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--paper);
}
.anyweb-viz__device--desk .anyweb-viz__wire {
	height: 168px;
}
.anyweb-viz__device--tab .anyweb-viz__wire {
	height: 128px;
	padding: 10px;
	gap: 6px;
}
.anyweb-viz__device--mob .anyweb-viz__wire {
	height: 88px;
	padding: 8px;
	gap: 5px;
}
.anyweb-viz__bar {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: var(--mist);
}
.anyweb-viz__bar--lg {
	height: 36px;
}
.anyweb-viz__bar--md {
	height: 16px;
	width: 72%;
}
.anyweb-viz__bar--sm {
	width: 48%;
}
.anyweb-viz__specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.anyweb-viz__spec-label {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-soft);
}
.anyweb-viz__spec-value {
	margin-top: 6px;
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.035em;
	color: var(--ink);
}
.anyweb-viz__spec-value--hl {
	color: var(--leaf);
}
.anyweb-viz__mod {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--color-border-hairline);
}
.anyweb-viz__mod:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.anyweb-viz__mod:first-child {
	padding-top: 0;
}
.anyweb-viz__mod-name {
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--ink);
}
.anyweb-viz__mod-meta {
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
}
.anyweb-viz__ok {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--leaf);
	white-space: nowrap;
}
.anyweb-viz__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.anyweb-viz__step {
	padding-top: 16px;
	border-top: 1px solid var(--color-border);
}
.anyweb-viz__step-num {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-soft);
}
.anyweb-viz__step-title {
	margin-top: 10px;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--ink);
}
.anyweb-viz__step-text {
	margin: 8px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--text);
}
.anyweb-viz__jobs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.anyweb-viz__job {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--radius-card);
	background: var(--paper);
	border: 1px solid var(--color-border-hairline);
}
.anyweb-viz__job-name {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--ink);
}
.anyweb-viz__check-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.6;
	color: var(--forest);
}
.anyweb-viz__check-row + .anyweb-viz__check-row {
	margin-top: 8px;
}
.anyweb-viz__mist-title + .anyweb-viz__check-row {
	margin-top: 10px;
}
.anyweb-viz__check-mark {
	font-family: var(--font-mono);
	color: var(--leaf);
	flex: 0 0 auto;
}

/* Stacked mode (JS moves each visual under its item on ≤ 900px). */
.anyweb-build__grid--stacked {
	grid-template-columns: 1fr;
	gap: 0;
}

.anyweb-build__grid--stacked .anyweb-build__visuals {
	display: none;
}

.anyweb-build__grid--stacked .anyweb-build__list {
	padding: 0 0 8px;
}

.anyweb-build__grid--stacked .anyweb-build__item {
	padding: 24px 0 32px 24px;
}

.anyweb-build__grid--stacked .anyweb-build__head {
	color: var(--ink);
}

.anyweb-build__grid--stacked .anyweb-build__body {
	grid-template-rows: 1fr;
	opacity: 1;
}

.anyweb-build__grid--stacked .anyweb-build__visual {
	position: static;
	inset: auto;
	margin-top: 20px;
	opacity: 1;
	transform: none;
	pointer-events: auto;
	overflow: visible;
	justify-content: flex-start;
}

.anyweb-build__grid--stacked .anyweb-viz {
	height: auto;
	justify-content: flex-start;
}

@media (max-width: 900px) {
	.anyweb-build {
		padding: 0 24px;
	}
	.anyweb-build__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.anyweb-build__visuals {
		order: -1;
		top: 80px;
		height: 360px;
	}
	.anyweb-build__list {
		padding: 0 0 48px;
	}
	.anyweb-build__head {
		font-size: 28px;
	}
	.anyweb-viz {
		gap: 12px;
		justify-content: flex-start;
	}
	.anyweb-viz__card,
	.anyweb-viz__mist {
		padding: 16px;
	}
	.anyweb-viz__device--desk .anyweb-viz__wire {
		height: 96px;
	}
	.anyweb-viz__device--tab,
	.anyweb-viz__device--mob {
		display: none;
	}
	.anyweb-viz__mod:nth-child(n+4) {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.anyweb-build__body,
	.anyweb-build__head,
	.anyweb-build__mark,
	.anyweb-build__visual {
		transition: none;
	}
}
